4 package com.google.ortools.sat;
16 com.google.protobuf.GeneratedMessageV3 implements
19 private static final long serialVersionUID = 0L;
26 solution_ = emptyLongList();
27 solutionLowerBounds_ = emptyLongList();
28 solutionUpperBounds_ = emptyLongList();
29 tightenedVariables_ = java.util.Collections.emptyList();
34 @SuppressWarnings({
"unused"})
36 UnusedPrivateParameter unused) {
41 public final com.
google.protobuf.UnknownFieldSet
43 return this.unknownFields;
46 com.
google.protobuf.CodedInputStream input,
47 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
48 throws com.
google.protobuf.InvalidProtocolBufferException {
50 if (extensionRegistry ==
null) {
51 throw new java.lang.NullPointerException();
53 int mutable_bitField0_ = 0;
54 com.
google.protobuf.UnknownFieldSet.Builder unknownFields =
55 com.
google.protobuf.UnknownFieldSet.newBuilder();
59 int tag = input.readTag();
65 int rawValue = input.readEnum();
71 if (!((mutable_bitField0_ & 0x00000001) != 0)) {
72 solution_ = newLongList();
73 mutable_bitField0_ |= 0x00000001;
75 solution_.addLong(input.readInt64());
79 int length = input.readRawVarint32();
80 int limit = input.pushLimit(length);
81 if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
82 solution_ = newLongList();
83 mutable_bitField0_ |= 0x00000001;
85 while (input.getBytesUntilLimit() > 0) {
86 solution_.addLong(input.readInt64());
88 input.popLimit(limit);
93 objectiveValue_ = input.readDouble();
98 bestObjectiveBound_ = input.readDouble();
103 allSolutionsWereFound_ = input.readBool();
108 numBooleans_ = input.readInt64();
113 numConflicts_ = input.readInt64();
118 numBranches_ = input.readInt64();
123 numBinaryPropagations_ = input.readInt64();
128 numIntegerPropagations_ = input.readInt64();
133 wallTime_ = input.readDouble();
138 userTime_ = input.readDouble();
143 deterministicTime_ = input.readDouble();
147 if (!((mutable_bitField0_ & 0x00000002) != 0)) {
148 solutionLowerBounds_ = newLongList();
149 mutable_bitField0_ |= 0x00000002;
151 solutionLowerBounds_.addLong(input.readInt64());
155 int length = input.readRawVarint32();
156 int limit = input.pushLimit(length);
157 if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
158 solutionLowerBounds_ = newLongList();
159 mutable_bitField0_ |= 0x00000002;
161 while (input.getBytesUntilLimit() > 0) {
162 solutionLowerBounds_.addLong(input.readInt64());
164 input.popLimit(limit);
168 if (!((mutable_bitField0_ & 0x00000004) != 0)) {
169 solutionUpperBounds_ = newLongList();
170 mutable_bitField0_ |= 0x00000004;
172 solutionUpperBounds_.addLong(input.readInt64());
176 int length = input.readRawVarint32();
177 int limit = input.pushLimit(length);
178 if (!((mutable_bitField0_ & 0x00000004) != 0) && input.getBytesUntilLimit() > 0) {
179 solutionUpperBounds_ = newLongList();
180 mutable_bitField0_ |= 0x00000004;
182 while (input.getBytesUntilLimit() > 0) {
183 solutionUpperBounds_.addLong(input.readInt64());
185 input.popLimit(limit);
189 java.lang.String s = input.readStringRequireUtf8();
195 if (!((mutable_bitField0_ & 0x00000008) != 0)) {
197 mutable_bitField0_ |= 0x00000008;
199 tightenedVariables_.add(
204 if (!parseUnknownField(
205 input, unknownFields, extensionRegistry, tag)) {
212 }
catch (
com.
google.protobuf.InvalidProtocolBufferException e) {
213 throw e.setUnfinishedMessage(
this);
214 }
catch (java.io.IOException e) {
215 throw new com.
google.protobuf.InvalidProtocolBufferException(
216 e).setUnfinishedMessage(
this);
218 if (((mutable_bitField0_ & 0x00000001) != 0)) {
219 solution_.makeImmutable();
221 if (((mutable_bitField0_ & 0x00000002) != 0)) {
222 solutionLowerBounds_.makeImmutable();
224 if (((mutable_bitField0_ & 0x00000004) != 0)) {
225 solutionUpperBounds_.makeImmutable();
227 if (((mutable_bitField0_ & 0x00000008) != 0)) {
228 tightenedVariables_ = java.util.Collections.unmodifiableList(tightenedVariables_);
230 this.unknownFields = unknownFields.build();
231 makeExtensionsImmutable();
234 public static final com.
google.protobuf.Descriptors.Descriptor
240 protected com.
google.protobuf.GeneratedMessageV3.FieldAccessorTable
243 .ensureFieldAccessorsInitialized(
267 @SuppressWarnings(
"deprecation")
273 private com.
google.protobuf.Internal.LongList solution_;
284 public java.util.List<java.lang.Long>
299 return solution_.size();
312 return solution_.getLong(index);
314 private int solutionMemoizedSerializedSize = -1;
317 private double objectiveValue_;
329 return objectiveValue_;
333 private double bestObjectiveBound_;
344 return bestObjectiveBound_;
348 private com.
google.protobuf.Internal.LongList solutionLowerBounds_;
361 public java.util.List<java.lang.Long>
363 return solutionLowerBounds_;
378 return solutionLowerBounds_.size();
393 return solutionLowerBounds_.getLong(index);
395 private int solutionLowerBoundsMemoizedSerializedSize = -1;
398 private com.
google.protobuf.Internal.LongList solutionUpperBounds_;
402 public java.util.List<java.lang.Long>
404 return solutionUpperBounds_;
410 return solutionUpperBounds_.size();
416 return solutionUpperBounds_.getLong(index);
418 private int solutionUpperBoundsMemoizedSerializedSize = -1;
439 return tightenedVariables_;
459 return tightenedVariables_;
478 return tightenedVariables_.size();
497 return tightenedVariables_.get(index);
517 return tightenedVariables_.get(index);
521 private boolean allSolutionsWereFound_;
533 return allSolutionsWereFound_;
537 private long numBooleans_;
550 private long numConflicts_;
555 return numConflicts_;
559 private long numBranches_;
568 private long numBinaryPropagations_;
573 return numBinaryPropagations_;
577 private long numIntegerPropagations_;
582 return numIntegerPropagations_;
586 private double wallTime_;
595 private double userTime_;
604 private double deterministicTime_;
609 return deterministicTime_;
613 private volatile java.lang.Object solutionInfo_;
622 java.lang.Object ref = solutionInfo_;
623 if (ref instanceof java.lang.String) {
624 return (java.lang.String) ref;
628 java.lang.String s = bs.toStringUtf8();
642 java.lang.Object ref = solutionInfo_;
643 if (ref instanceof java.lang.String) {
645 com.
google.protobuf.ByteString.copyFromUtf8(
646 (java.lang.String) ref);
650 return (
com.
google.protobuf.ByteString) ref;
654 private byte memoizedIsInitialized = -1;
661 memoizedIsInitialized = 1;
667 throws java.io.IOException {
670 output.writeEnum(1, status_);
673 output.writeUInt32NoTag(18);
674 output.writeUInt32NoTag(solutionMemoizedSerializedSize);
676 for (
int i = 0; i < solution_.size(); i++) {
677 output.writeInt64NoTag(solution_.getLong(i));
679 if (objectiveValue_ != 0D) {
680 output.writeDouble(3, objectiveValue_);
682 if (bestObjectiveBound_ != 0D) {
683 output.writeDouble(4, bestObjectiveBound_);
685 if (allSolutionsWereFound_ !=
false) {
686 output.writeBool(5, allSolutionsWereFound_);
688 if (numBooleans_ != 0L) {
689 output.writeInt64(10, numBooleans_);
691 if (numConflicts_ != 0L) {
692 output.writeInt64(11, numConflicts_);
694 if (numBranches_ != 0L) {
695 output.writeInt64(12, numBranches_);
697 if (numBinaryPropagations_ != 0L) {
698 output.writeInt64(13, numBinaryPropagations_);
700 if (numIntegerPropagations_ != 0L) {
701 output.writeInt64(14, numIntegerPropagations_);
703 if (wallTime_ != 0D) {
704 output.writeDouble(15, wallTime_);
706 if (userTime_ != 0D) {
707 output.writeDouble(16, userTime_);
709 if (deterministicTime_ != 0D) {
710 output.writeDouble(17, deterministicTime_);
713 output.writeUInt32NoTag(146);
714 output.writeUInt32NoTag(solutionLowerBoundsMemoizedSerializedSize);
716 for (
int i = 0; i < solutionLowerBounds_.size(); i++) {
717 output.writeInt64NoTag(solutionLowerBounds_.getLong(i));
720 output.writeUInt32NoTag(154);
721 output.writeUInt32NoTag(solutionUpperBoundsMemoizedSerializedSize);
723 for (
int i = 0; i < solutionUpperBounds_.size(); i++) {
724 output.writeInt64NoTag(solutionUpperBounds_.getLong(i));
727 com.
google.protobuf.GeneratedMessageV3.writeString(output, 20, solutionInfo_);
729 for (
int i = 0; i < tightenedVariables_.size(); i++) {
730 output.writeMessage(21, tightenedVariables_.get(i));
732 unknownFields.writeTo(output);
737 int size = memoizedSize;
738 if (size != -1)
return size;
742 size +=
com.
google.protobuf.CodedOutputStream
743 .computeEnumSize(1, status_);
747 for (
int i = 0; i < solution_.size(); i++) {
748 dataSize +=
com.
google.protobuf.CodedOutputStream
749 .computeInt64SizeNoTag(solution_.getLong(i));
754 size +=
com.
google.protobuf.CodedOutputStream
755 .computeInt32SizeNoTag(dataSize);
757 solutionMemoizedSerializedSize = dataSize;
759 if (objectiveValue_ != 0D) {
760 size +=
com.
google.protobuf.CodedOutputStream
761 .computeDoubleSize(3, objectiveValue_);
763 if (bestObjectiveBound_ != 0D) {
764 size +=
com.
google.protobuf.CodedOutputStream
765 .computeDoubleSize(4, bestObjectiveBound_);
767 if (allSolutionsWereFound_ !=
false) {
768 size +=
com.
google.protobuf.CodedOutputStream
769 .computeBoolSize(5, allSolutionsWereFound_);
771 if (numBooleans_ != 0L) {
772 size +=
com.
google.protobuf.CodedOutputStream
773 .computeInt64Size(10, numBooleans_);
775 if (numConflicts_ != 0L) {
776 size +=
com.
google.protobuf.CodedOutputStream
777 .computeInt64Size(11, numConflicts_);
779 if (numBranches_ != 0L) {
780 size +=
com.
google.protobuf.CodedOutputStream
781 .computeInt64Size(12, numBranches_);
783 if (numBinaryPropagations_ != 0L) {
784 size +=
com.
google.protobuf.CodedOutputStream
785 .computeInt64Size(13, numBinaryPropagations_);
787 if (numIntegerPropagations_ != 0L) {
788 size +=
com.
google.protobuf.CodedOutputStream
789 .computeInt64Size(14, numIntegerPropagations_);
791 if (wallTime_ != 0D) {
792 size +=
com.
google.protobuf.CodedOutputStream
793 .computeDoubleSize(15, wallTime_);
795 if (userTime_ != 0D) {
796 size +=
com.
google.protobuf.CodedOutputStream
797 .computeDoubleSize(16, userTime_);
799 if (deterministicTime_ != 0D) {
800 size +=
com.
google.protobuf.CodedOutputStream
801 .computeDoubleSize(17, deterministicTime_);
805 for (
int i = 0; i < solutionLowerBounds_.size(); i++) {
806 dataSize +=
com.
google.protobuf.CodedOutputStream
807 .computeInt64SizeNoTag(solutionLowerBounds_.getLong(i));
812 size +=
com.
google.protobuf.CodedOutputStream
813 .computeInt32SizeNoTag(dataSize);
815 solutionLowerBoundsMemoizedSerializedSize = dataSize;
819 for (
int i = 0; i < solutionUpperBounds_.size(); i++) {
820 dataSize +=
com.
google.protobuf.CodedOutputStream
821 .computeInt64SizeNoTag(solutionUpperBounds_.getLong(i));
826 size +=
com.
google.protobuf.CodedOutputStream
827 .computeInt32SizeNoTag(dataSize);
829 solutionUpperBoundsMemoizedSerializedSize = dataSize;
832 size +=
com.
google.protobuf.GeneratedMessageV3.computeStringSize(20, solutionInfo_);
834 for (
int i = 0; i < tightenedVariables_.size(); i++) {
835 size +=
com.
google.protobuf.CodedOutputStream
836 .computeMessageSize(21, tightenedVariables_.get(i));
838 size += unknownFields.getSerializedSize();
844 public boolean equals(
final java.lang.Object obj) {
849 return super.equals(obj);
853 if (status_ != other.status_)
return false;
855 .equals(other.getSolutionList()))
return false;
857 != java.lang.Double.doubleToLongBits(
858 other.getObjectiveValue()))
return false;
860 != java.lang.Double.doubleToLongBits(
861 other.getBestObjectiveBound()))
return false;
863 .equals(other.getSolutionLowerBoundsList()))
return false;
865 .equals(other.getSolutionUpperBoundsList()))
return false;
867 .equals(other.getTightenedVariablesList()))
return false;
869 != other.getAllSolutionsWereFound())
return false;
871 != other.getNumBooleans())
return false;
873 != other.getNumConflicts())
return false;
875 != other.getNumBranches())
return false;
877 != other.getNumBinaryPropagations())
return false;
879 != other.getNumIntegerPropagations())
return false;
880 if (java.lang.Double.doubleToLongBits(
getWallTime())
881 != java.lang.Double.doubleToLongBits(
882 other.getWallTime()))
return false;
883 if (java.lang.Double.doubleToLongBits(
getUserTime())
884 != java.lang.Double.doubleToLongBits(
885 other.getUserTime()))
return false;
887 != java.lang.Double.doubleToLongBits(
888 other.getDeterministicTime()))
return false;
890 .equals(other.getSolutionInfo()))
return false;
891 if (!unknownFields.equals(other.unknownFields))
return false;
897 if (memoizedHashCode != 0) {
898 return memoizedHashCode;
903 hash = (53 * hash) + status_;
909 hash = (53 * hash) +
com.
google.protobuf.Internal.hashLong(
912 hash = (53 * hash) +
com.
google.protobuf.Internal.hashLong(
927 hash = (53 * hash) +
com.
google.protobuf.Internal.hashBoolean(
930 hash = (53 * hash) +
com.
google.protobuf.Internal.hashLong(
933 hash = (53 * hash) +
com.
google.protobuf.Internal.hashLong(
936 hash = (53 * hash) +
com.
google.protobuf.Internal.hashLong(
939 hash = (53 * hash) +
com.
google.protobuf.Internal.hashLong(
942 hash = (53 * hash) +
com.
google.protobuf.Internal.hashLong(
945 hash = (53 * hash) +
com.
google.protobuf.Internal.hashLong(
948 hash = (53 * hash) +
com.
google.protobuf.Internal.hashLong(
951 hash = (53 * hash) +
com.
google.protobuf.Internal.hashLong(
955 hash = (29 * hash) + unknownFields.hashCode();
956 memoizedHashCode = hash;
961 java.nio.ByteBuffer data)
962 throws com.
google.protobuf.InvalidProtocolBufferException {
963 return PARSER.parseFrom(data);
966 java.nio.ByteBuffer data,
967 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
968 throws com.
google.protobuf.InvalidProtocolBufferException {
969 return PARSER.parseFrom(data, extensionRegistry);
973 throws com.
google.protobuf.InvalidProtocolBufferException {
974 return PARSER.parseFrom(data);
978 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
979 throws com.
google.protobuf.InvalidProtocolBufferException {
980 return PARSER.parseFrom(data, extensionRegistry);
983 throws com.
google.protobuf.InvalidProtocolBufferException {
984 return PARSER.parseFrom(data);
988 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
989 throws com.
google.protobuf.InvalidProtocolBufferException {
990 return PARSER.parseFrom(data, extensionRegistry);
993 throws java.io.IOException {
994 return com.
google.protobuf.GeneratedMessageV3
995 .parseWithIOException(PARSER, input);
998 java.io.InputStream input,
999 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
1000 throws java.io.IOException {
1001 return com.
google.protobuf.GeneratedMessageV3
1002 .parseWithIOException(PARSER, input, extensionRegistry);
1005 throws java.io.IOException {
1006 return com.
google.protobuf.GeneratedMessageV3
1007 .parseDelimitedWithIOException(PARSER, input);
1010 java.io.InputStream input,
1011 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
1012 throws java.io.IOException {
1013 return com.
google.protobuf.GeneratedMessageV3
1014 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
1017 com.
google.protobuf.CodedInputStream input)
1018 throws java.io.IOException {
1019 return com.
google.protobuf.GeneratedMessageV3
1020 .parseWithIOException(PARSER, input);
1023 com.
google.protobuf.CodedInputStream input,
1024 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
1025 throws java.io.IOException {
1026 return com.
google.protobuf.GeneratedMessageV3
1027 .parseWithIOException(PARSER, input, extensionRegistry);
1040 return this == DEFAULT_INSTANCE
1046 com.
google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1060 com.google.protobuf.GeneratedMessageV3.
Builder<Builder> implements
1063 public static final com.
google.protobuf.Descriptors.Descriptor
1069 protected com.
google.protobuf.GeneratedMessageV3.FieldAccessorTable
1072 .ensureFieldAccessorsInitialized(
1078 maybeForceBuilderInitialization();
1082 com.
google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1084 maybeForceBuilderInitialization();
1086 private void maybeForceBuilderInitialization() {
1087 if (
com.
google.protobuf.GeneratedMessageV3
1088 .alwaysUseFieldBuilders) {
1089 getTightenedVariablesFieldBuilder();
1097 solution_ = emptyLongList();
1098 bitField0_ = (bitField0_ & ~0x00000001);
1099 objectiveValue_ = 0D;
1101 bestObjectiveBound_ = 0D;
1103 solutionLowerBounds_ = emptyLongList();
1104 bitField0_ = (bitField0_ & ~0x00000002);
1105 solutionUpperBounds_ = emptyLongList();
1106 bitField0_ = (bitField0_ & ~0x00000004);
1107 if (tightenedVariablesBuilder_ ==
null) {
1108 tightenedVariables_ = java.util.Collections.emptyList();
1109 bitField0_ = (bitField0_ & ~0x00000008);
1111 tightenedVariablesBuilder_.clear();
1113 allSolutionsWereFound_ =
false;
1121 numBinaryPropagations_ = 0L;
1123 numIntegerPropagations_ = 0L;
1129 deterministicTime_ = 0D;
1137 public com.
google.protobuf.Descriptors.Descriptor
1150 if (!result.isInitialized()) {
1151 throw newUninitializedMessageException(result);
1159 int from_bitField0_ = bitField0_;
1160 result.status_ = status_;
1161 if (((bitField0_ & 0x00000001) != 0)) {
1162 solution_.makeImmutable();
1163 bitField0_ = (bitField0_ & ~0x00000001);
1165 result.solution_ = solution_;
1166 result.objectiveValue_ = objectiveValue_;
1167 result.bestObjectiveBound_ = bestObjectiveBound_;
1168 if (((bitField0_ & 0x00000002) != 0)) {
1169 solutionLowerBounds_.makeImmutable();
1170 bitField0_ = (bitField0_ & ~0x00000002);
1172 result.solutionLowerBounds_ = solutionLowerBounds_;
1173 if (((bitField0_ & 0x00000004) != 0)) {
1174 solutionUpperBounds_.makeImmutable();
1175 bitField0_ = (bitField0_ & ~0x00000004);
1177 result.solutionUpperBounds_ = solutionUpperBounds_;
1178 if (tightenedVariablesBuilder_ ==
null) {
1179 if (((bitField0_ & 0x00000008) != 0)) {
1180 tightenedVariables_ = java.util.Collections.unmodifiableList(tightenedVariables_);
1181 bitField0_ = (bitField0_ & ~0x00000008);
1183 result.tightenedVariables_ = tightenedVariables_;
1185 result.tightenedVariables_ = tightenedVariablesBuilder_.build();
1187 result.allSolutionsWereFound_ = allSolutionsWereFound_;
1188 result.numBooleans_ = numBooleans_;
1189 result.numConflicts_ = numConflicts_;
1190 result.numBranches_ = numBranches_;
1191 result.numBinaryPropagations_ = numBinaryPropagations_;
1192 result.numIntegerPropagations_ = numIntegerPropagations_;
1193 result.wallTime_ = wallTime_;
1194 result.userTime_ = userTime_;
1195 result.deterministicTime_ = deterministicTime_;
1196 result.solutionInfo_ = solutionInfo_;
1203 return super.
clone();
1207 com.
google.protobuf.Descriptors.FieldDescriptor field,
1208 java.lang.Object value) {
1209 return super.
setField(field, value);
1213 com.
google.protobuf.Descriptors.FieldDescriptor field) {
1218 com.
google.protobuf.Descriptors.OneofDescriptor oneof) {
1223 com.
google.protobuf.Descriptors.FieldDescriptor field,
1224 int index, java.lang.Object value) {
1229 com.
google.protobuf.Descriptors.FieldDescriptor field,
1230 java.lang.Object value) {
1238 super.mergeFrom(other);
1245 if (other.status_ != 0) {
1248 if (!other.solution_.isEmpty()) {
1249 if (solution_.isEmpty()) {
1250 solution_ = other.solution_;
1251 bitField0_ = (bitField0_ & ~0x00000001);
1253 ensureSolutionIsMutable();
1254 solution_.addAll(other.solution_);
1258 if (other.getObjectiveValue() != 0D) {
1261 if (other.getBestObjectiveBound() != 0D) {
1264 if (!other.solutionLowerBounds_.isEmpty()) {
1265 if (solutionLowerBounds_.isEmpty()) {
1266 solutionLowerBounds_ = other.solutionLowerBounds_;
1267 bitField0_ = (bitField0_ & ~0x00000002);
1269 ensureSolutionLowerBoundsIsMutable();
1270 solutionLowerBounds_.addAll(other.solutionLowerBounds_);
1274 if (!other.solutionUpperBounds_.isEmpty()) {
1275 if (solutionUpperBounds_.isEmpty()) {
1276 solutionUpperBounds_ = other.solutionUpperBounds_;
1277 bitField0_ = (bitField0_ & ~0x00000004);
1279 ensureSolutionUpperBoundsIsMutable();
1280 solutionUpperBounds_.addAll(other.solutionUpperBounds_);
1284 if (tightenedVariablesBuilder_ ==
null) {
1285 if (!other.tightenedVariables_.isEmpty()) {
1286 if (tightenedVariables_.isEmpty()) {
1287 tightenedVariables_ = other.tightenedVariables_;
1288 bitField0_ = (bitField0_ & ~0x00000008);
1290 ensureTightenedVariablesIsMutable();
1291 tightenedVariables_.addAll(other.tightenedVariables_);
1296 if (!other.tightenedVariables_.isEmpty()) {
1297 if (tightenedVariablesBuilder_.isEmpty()) {
1298 tightenedVariablesBuilder_.dispose();
1299 tightenedVariablesBuilder_ =
null;
1300 tightenedVariables_ = other.tightenedVariables_;
1301 bitField0_ = (bitField0_ & ~0x00000008);
1302 tightenedVariablesBuilder_ =
1303 com.
google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
1304 getTightenedVariablesFieldBuilder() :
null;
1306 tightenedVariablesBuilder_.addAllMessages(other.tightenedVariables_);
1310 if (other.getAllSolutionsWereFound() !=
false) {
1313 if (other.getNumBooleans() != 0L) {
1316 if (other.getNumConflicts() != 0L) {
1319 if (other.getNumBranches() != 0L) {
1322 if (other.getNumBinaryPropagations() != 0L) {
1325 if (other.getNumIntegerPropagations() != 0L) {
1328 if (other.getWallTime() != 0D) {
1331 if (other.getUserTime() != 0D) {
1334 if (other.getDeterministicTime() != 0D) {
1337 if (!other.getSolutionInfo().isEmpty()) {
1338 solutionInfo_ = other.solutionInfo_;
1353 com.
google.protobuf.CodedInputStream input,
1354 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
1355 throws java.io.IOException {
1358 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
1359 }
catch (
com.
google.protobuf.InvalidProtocolBufferException e) {
1361 throw e.unwrapIOException();
1363 if (parsedMessage !=
null) {
1369 private int bitField0_;
1371 private int status_ = 0;
1402 @SuppressWarnings(
"deprecation")
1414 if (value ==
null) {
1415 throw new NullPointerException();
1418 status_ = value.getNumber();
1436 private com.
google.protobuf.Internal.LongList solution_ = emptyLongList();
1437 private void ensureSolutionIsMutable() {
1438 if (!((bitField0_ & 0x00000001) != 0)) {
1439 solution_ = mutableCopy(solution_);
1440 bitField0_ |= 0x00000001;
1453 public java.util.List<java.lang.Long>
1455 return ((bitField0_ & 0x00000001) != 0) ?
1456 java.util.Collections.unmodifiableList(solution_) : solution_;
1469 return solution_.size();
1482 return solution_.getLong(index);
1495 int index,
long value) {
1496 ensureSolutionIsMutable();
1497 solution_.setLong(index, value);
1512 ensureSolutionIsMutable();
1513 solution_.addLong(value);
1528 java.lang.Iterable<? extends java.lang.Long> values) {
1529 ensureSolutionIsMutable();
1530 com.
google.protobuf.AbstractMessageLite.Builder.addAll(
1546 solution_ = emptyLongList();
1547 bitField0_ = (bitField0_ & ~0x00000001);
1552 private double objectiveValue_ ;
1564 return objectiveValue_;
1578 objectiveValue_ = value;
1594 objectiveValue_ = 0D;
1599 private double bestObjectiveBound_ ;
1610 return bestObjectiveBound_;
1623 bestObjectiveBound_ = value;
1638 bestObjectiveBound_ = 0D;
1643 private com.
google.protobuf.Internal.LongList solutionLowerBounds_ = emptyLongList();
1644 private void ensureSolutionLowerBoundsIsMutable() {
1645 if (!((bitField0_ & 0x00000002) != 0)) {
1646 solutionLowerBounds_ = mutableCopy(solutionLowerBounds_);
1647 bitField0_ |= 0x00000002;
1662 public java.util.List<java.lang.Long>
1664 return ((bitField0_ & 0x00000002) != 0) ?
1665 java.util.Collections.unmodifiableList(solutionLowerBounds_) : solutionLowerBounds_;
1680 return solutionLowerBounds_.size();
1695 return solutionLowerBounds_.getLong(index);
1710 int index,
long value) {
1711 ensureSolutionLowerBoundsIsMutable();
1712 solutionLowerBounds_.setLong(index, value);
1729 ensureSolutionLowerBoundsIsMutable();
1730 solutionLowerBounds_.addLong(value);
1747 java.lang.Iterable<? extends java.lang.Long> values) {
1748 ensureSolutionLowerBoundsIsMutable();
1749 com.
google.protobuf.AbstractMessageLite.Builder.addAll(
1750 values, solutionLowerBounds_);
1767 solutionLowerBounds_ = emptyLongList();
1768 bitField0_ = (bitField0_ & ~0x00000002);
1773 private com.
google.protobuf.Internal.LongList solutionUpperBounds_ = emptyLongList();
1774 private void ensureSolutionUpperBoundsIsMutable() {
1775 if (!((bitField0_ & 0x00000004) != 0)) {
1776 solutionUpperBounds_ = mutableCopy(solutionUpperBounds_);
1777 bitField0_ |= 0x00000004;
1783 public java.util.List<java.lang.Long>
1785 return ((bitField0_ & 0x00000004) != 0) ?
1786 java.util.Collections.unmodifiableList(solutionUpperBounds_) : solutionUpperBounds_;
1792 return solutionUpperBounds_.size();
1798 return solutionUpperBounds_.getLong(index);
1804 int index,
long value) {
1805 ensureSolutionUpperBoundsIsMutable();
1806 solutionUpperBounds_.setLong(index, value);
1814 ensureSolutionUpperBoundsIsMutable();
1815 solutionUpperBounds_.addLong(value);
1823 java.lang.Iterable<? extends java.lang.Long> values) {
1824 ensureSolutionUpperBoundsIsMutable();
1825 com.
google.protobuf.AbstractMessageLite.Builder.addAll(
1826 values, solutionUpperBounds_);
1834 solutionUpperBounds_ = emptyLongList();
1835 bitField0_ = (bitField0_ & ~0x00000004);
1841 java.util.Collections.emptyList();
1842 private void ensureTightenedVariablesIsMutable() {
1843 if (!((bitField0_ & 0x00000008) != 0)) {
1845 bitField0_ |= 0x00000008;
1849 private com.
google.protobuf.RepeatedFieldBuilderV3<
1869 if (tightenedVariablesBuilder_ ==
null) {
1870 return java.util.Collections.unmodifiableList(tightenedVariables_);
1872 return tightenedVariablesBuilder_.getMessageList();
1892 if (tightenedVariablesBuilder_ ==
null) {
1893 return tightenedVariables_.size();
1895 return tightenedVariablesBuilder_.getCount();
1915 if (tightenedVariablesBuilder_ ==
null) {
1916 return tightenedVariables_.get(index);
1918 return tightenedVariablesBuilder_.getMessage(index);
1939 if (tightenedVariablesBuilder_ ==
null) {
1940 if (value ==
null) {
1941 throw new NullPointerException();
1943 ensureTightenedVariablesIsMutable();
1944 tightenedVariables_.set(index, value);
1947 tightenedVariablesBuilder_.setMessage(index, value);
1969 if (tightenedVariablesBuilder_ ==
null) {
1970 ensureTightenedVariablesIsMutable();
1971 tightenedVariables_.set(index, builderForValue.build());
1974 tightenedVariablesBuilder_.setMessage(index, builderForValue.build());
1995 if (tightenedVariablesBuilder_ ==
null) {
1996 if (value ==
null) {
1997 throw new NullPointerException();
1999 ensureTightenedVariablesIsMutable();
2000 tightenedVariables_.add(value);
2003 tightenedVariablesBuilder_.addMessage(value);
2025 if (tightenedVariablesBuilder_ ==
null) {
2026 if (value ==
null) {
2027 throw new NullPointerException();
2029 ensureTightenedVariablesIsMutable();
2030 tightenedVariables_.add(index, value);
2033 tightenedVariablesBuilder_.addMessage(index, value);
2055 if (tightenedVariablesBuilder_ ==
null) {
2056 ensureTightenedVariablesIsMutable();
2057 tightenedVariables_.add(builderForValue.build());
2060 tightenedVariablesBuilder_.addMessage(builderForValue.build());
2082 if (tightenedVariablesBuilder_ ==
null) {
2083 ensureTightenedVariablesIsMutable();
2084 tightenedVariables_.add(index, builderForValue.build());
2087 tightenedVariablesBuilder_.addMessage(index, builderForValue.build());
2109 if (tightenedVariablesBuilder_ ==
null) {
2110 ensureTightenedVariablesIsMutable();
2111 com.
google.protobuf.AbstractMessageLite.Builder.addAll(
2112 values, tightenedVariables_);
2115 tightenedVariablesBuilder_.addAllMessages(values);
2136 if (tightenedVariablesBuilder_ ==
null) {
2137 tightenedVariables_ = java.util.Collections.emptyList();
2138 bitField0_ = (bitField0_ & ~0x00000008);
2141 tightenedVariablesBuilder_.clear();
2162 if (tightenedVariablesBuilder_ ==
null) {
2163 ensureTightenedVariablesIsMutable();
2164 tightenedVariables_.remove(index);
2167 tightenedVariablesBuilder_.remove(index);
2189 return getTightenedVariablesFieldBuilder().getBuilder(index);
2209 if (tightenedVariablesBuilder_ ==
null) {
2210 return tightenedVariables_.get(index); }
else {
2211 return tightenedVariablesBuilder_.getMessageOrBuilder(index);
2232 if (tightenedVariablesBuilder_ !=
null) {
2233 return tightenedVariablesBuilder_.getMessageOrBuilderList();
2235 return java.util.Collections.unmodifiableList(tightenedVariables_);
2255 return getTightenedVariablesFieldBuilder().addBuilder(
2276 return getTightenedVariablesFieldBuilder().addBuilder(
2297 return getTightenedVariablesFieldBuilder().getBuilderList();
2299 private com.
google.protobuf.RepeatedFieldBuilderV3<
2301 getTightenedVariablesFieldBuilder() {
2302 if (tightenedVariablesBuilder_ ==
null) {
2303 tightenedVariablesBuilder_ =
new com.
google.protobuf.RepeatedFieldBuilderV3<
2305 tightenedVariables_,
2306 ((bitField0_ & 0x00000008) != 0),
2307 getParentForChildren(),
2309 tightenedVariables_ =
null;
2311 return tightenedVariablesBuilder_;
2314 private boolean allSolutionsWereFound_ ;
2326 return allSolutionsWereFound_;
2340 allSolutionsWereFound_ = value;
2356 allSolutionsWereFound_ =
false;
2361 private long numBooleans_ ;
2370 return numBooleans_;
2381 numBooleans_ = value;
2399 private long numConflicts_ ;
2404 return numConflicts_;
2411 numConflicts_ = value;
2425 private long numBranches_ ;
2430 return numBranches_;
2437 numBranches_ = value;
2451 private long numBinaryPropagations_ ;
2456 return numBinaryPropagations_;
2463 numBinaryPropagations_ = value;
2472 numBinaryPropagations_ = 0L;
2477 private long numIntegerPropagations_ ;
2482 return numIntegerPropagations_;
2489 numIntegerPropagations_ = value;
2498 numIntegerPropagations_ = 0L;
2503 private double wallTime_ ;
2529 private double userTime_ ;
2555 private double deterministicTime_ ;
2560 return deterministicTime_;
2567 deterministicTime_ = value;
2576 deterministicTime_ = 0D;
2581 private java.lang.Object solutionInfo_ =
"";
2590 java.lang.Object ref = solutionInfo_;
2591 if (!(ref instanceof java.lang.String)) {
2594 java.lang.String s = bs.toStringUtf8();
2598 return (java.lang.String) ref;
2610 java.lang.Object ref = solutionInfo_;
2611 if (ref instanceof String) {
2613 com.
google.protobuf.ByteString.copyFromUtf8(
2614 (java.lang.String) ref);
2618 return (
com.
google.protobuf.ByteString) ref;
2629 java.lang.String value) {
2630 if (value ==
null) {
2631 throw new NullPointerException();
2634 solutionInfo_ = value;
2660 if (value ==
null) {
2661 throw new NullPointerException();
2663 checkByteStringIsUtf8(value);
2665 solutionInfo_ = value;
2671 final com.
google.protobuf.UnknownFieldSet unknownFields) {
2677 final com.
google.protobuf.UnknownFieldSet unknownFields) {
2692 return DEFAULT_INSTANCE;
2699 com.
google.protobuf.CodedInputStream input,
2700 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
2701 throws com.
google.protobuf.InvalidProtocolBufferException {
2717 return DEFAULT_INSTANCE;