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 public final com.
google.protobuf.UnknownFieldSet
36 return this.unknownFields;
39 com.
google.protobuf.CodedInputStream input,
40 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
41 throws com.
google.protobuf.InvalidProtocolBufferException {
43 if (extensionRegistry ==
null) {
44 throw new java.lang.NullPointerException();
46 int mutable_bitField0_ = 0;
47 com.
google.protobuf.UnknownFieldSet.Builder unknownFields =
48 com.
google.protobuf.UnknownFieldSet.newBuilder();
52 int tag = input.readTag();
58 int rawValue = input.readEnum();
64 if (!((mutable_bitField0_ & 0x00000002) != 0)) {
65 solution_ = newLongList();
66 mutable_bitField0_ |= 0x00000002;
68 solution_.addLong(input.readInt64());
72 int length = input.readRawVarint32();
73 int limit = input.pushLimit(length);
74 if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
75 solution_ = newLongList();
76 mutable_bitField0_ |= 0x00000002;
78 while (input.getBytesUntilLimit() > 0) {
79 solution_.addLong(input.readInt64());
81 input.popLimit(limit);
86 objectiveValue_ = input.readDouble();
91 bestObjectiveBound_ = input.readDouble();
96 allSolutionsWereFound_ = input.readBool();
101 numBooleans_ = input.readInt64();
106 numConflicts_ = input.readInt64();
111 numBranches_ = input.readInt64();
116 numBinaryPropagations_ = input.readInt64();
121 numIntegerPropagations_ = input.readInt64();
126 wallTime_ = input.readDouble();
131 userTime_ = input.readDouble();
136 deterministicTime_ = input.readDouble();
140 if (!((mutable_bitField0_ & 0x00000010) != 0)) {
141 solutionLowerBounds_ = newLongList();
142 mutable_bitField0_ |= 0x00000010;
144 solutionLowerBounds_.addLong(input.readInt64());
148 int length = input.readRawVarint32();
149 int limit = input.pushLimit(length);
150 if (!((mutable_bitField0_ & 0x00000010) != 0) && input.getBytesUntilLimit() > 0) {
151 solutionLowerBounds_ = newLongList();
152 mutable_bitField0_ |= 0x00000010;
154 while (input.getBytesUntilLimit() > 0) {
155 solutionLowerBounds_.addLong(input.readInt64());
157 input.popLimit(limit);
161 if (!((mutable_bitField0_ & 0x00000020) != 0)) {
162 solutionUpperBounds_ = newLongList();
163 mutable_bitField0_ |= 0x00000020;
165 solutionUpperBounds_.addLong(input.readInt64());
169 int length = input.readRawVarint32();
170 int limit = input.pushLimit(length);
171 if (!((mutable_bitField0_ & 0x00000020) != 0) && input.getBytesUntilLimit() > 0) {
172 solutionUpperBounds_ = newLongList();
173 mutable_bitField0_ |= 0x00000020;
175 while (input.getBytesUntilLimit() > 0) {
176 solutionUpperBounds_.addLong(input.readInt64());
178 input.popLimit(limit);
182 java.lang.String s = input.readStringRequireUtf8();
188 if (!((mutable_bitField0_ & 0x00000040) != 0)) {
190 mutable_bitField0_ |= 0x00000040;
192 tightenedVariables_.add(
197 if (!parseUnknownField(
198 input, unknownFields, extensionRegistry, tag)) {
205 }
catch (
com.
google.protobuf.InvalidProtocolBufferException e) {
206 throw e.setUnfinishedMessage(
this);
207 }
catch (java.io.IOException e) {
208 throw new com.
google.protobuf.InvalidProtocolBufferException(
209 e).setUnfinishedMessage(
this);
211 if (((mutable_bitField0_ & 0x00000002) != 0)) {
212 solution_.makeImmutable();
214 if (((mutable_bitField0_ & 0x00000010) != 0)) {
215 solutionLowerBounds_.makeImmutable();
217 if (((mutable_bitField0_ & 0x00000020) != 0)) {
218 solutionUpperBounds_.makeImmutable();
220 if (((mutable_bitField0_ & 0x00000040) != 0)) {
221 tightenedVariables_ = java.util.Collections.unmodifiableList(tightenedVariables_);
223 this.unknownFields = unknownFields.build();
224 makeExtensionsImmutable();
227 public static final com.
google.protobuf.Descriptors.Descriptor
233 protected com.
google.protobuf.GeneratedMessageV3.FieldAccessorTable
236 .ensureFieldAccessorsInitialized(
240 private int bitField0_;
261 @SuppressWarnings(
"deprecation")
267 private com.
google.protobuf.Internal.LongList solution_;
278 public java.util.List<java.lang.Long>
293 return solution_.size();
306 return solution_.getLong(index);
308 private int solutionMemoizedSerializedSize = -1;
311 private double objectiveValue_;
323 return objectiveValue_;
327 private double bestObjectiveBound_;
338 return bestObjectiveBound_;
342 private com.
google.protobuf.Internal.LongList solutionLowerBounds_;
355 public java.util.List<java.lang.Long>
357 return solutionLowerBounds_;
372 return solutionLowerBounds_.size();
387 return solutionLowerBounds_.getLong(index);
389 private int solutionLowerBoundsMemoizedSerializedSize = -1;
392 private com.
google.protobuf.Internal.LongList solutionUpperBounds_;
396 public java.util.List<java.lang.Long>
398 return solutionUpperBounds_;
404 return solutionUpperBounds_.size();
410 return solutionUpperBounds_.getLong(index);
412 private int solutionUpperBoundsMemoizedSerializedSize = -1;
433 return tightenedVariables_;
453 return tightenedVariables_;
472 return tightenedVariables_.size();
491 return tightenedVariables_.get(index);
511 return tightenedVariables_.get(index);
515 private boolean allSolutionsWereFound_;
527 return allSolutionsWereFound_;
531 private long numBooleans_;
544 private long numConflicts_;
549 return numConflicts_;
553 private long numBranches_;
562 private long numBinaryPropagations_;
567 return numBinaryPropagations_;
571 private long numIntegerPropagations_;
576 return numIntegerPropagations_;
580 private double wallTime_;
589 private double userTime_;
598 private double deterministicTime_;
603 return deterministicTime_;
607 private volatile java.lang.Object solutionInfo_;
616 java.lang.Object ref = solutionInfo_;
617 if (ref instanceof java.lang.String) {
618 return (java.lang.String) ref;
622 java.lang.String s = bs.toStringUtf8();
636 java.lang.Object ref = solutionInfo_;
637 if (ref instanceof java.lang.String) {
639 com.
google.protobuf.ByteString.copyFromUtf8(
640 (java.lang.String) ref);
644 return (
com.
google.protobuf.ByteString) ref;
648 private byte memoizedIsInitialized = -1;
655 memoizedIsInitialized = 1;
661 throws java.io.IOException {
664 output.writeEnum(1, status_);
667 output.writeUInt32NoTag(18);
668 output.writeUInt32NoTag(solutionMemoizedSerializedSize);
670 for (
int i = 0; i < solution_.size(); i++) {
671 output.writeInt64NoTag(solution_.getLong(i));
673 if (objectiveValue_ != 0D) {
674 output.writeDouble(3, objectiveValue_);
676 if (bestObjectiveBound_ != 0D) {
677 output.writeDouble(4, bestObjectiveBound_);
679 if (allSolutionsWereFound_ !=
false) {
680 output.writeBool(5, allSolutionsWereFound_);
682 if (numBooleans_ != 0L) {
683 output.writeInt64(10, numBooleans_);
685 if (numConflicts_ != 0L) {
686 output.writeInt64(11, numConflicts_);
688 if (numBranches_ != 0L) {
689 output.writeInt64(12, numBranches_);
691 if (numBinaryPropagations_ != 0L) {
692 output.writeInt64(13, numBinaryPropagations_);
694 if (numIntegerPropagations_ != 0L) {
695 output.writeInt64(14, numIntegerPropagations_);
697 if (wallTime_ != 0D) {
698 output.writeDouble(15, wallTime_);
700 if (userTime_ != 0D) {
701 output.writeDouble(16, userTime_);
703 if (deterministicTime_ != 0D) {
704 output.writeDouble(17, deterministicTime_);
707 output.writeUInt32NoTag(146);
708 output.writeUInt32NoTag(solutionLowerBoundsMemoizedSerializedSize);
710 for (
int i = 0; i < solutionLowerBounds_.size(); i++) {
711 output.writeInt64NoTag(solutionLowerBounds_.getLong(i));
714 output.writeUInt32NoTag(154);
715 output.writeUInt32NoTag(solutionUpperBoundsMemoizedSerializedSize);
717 for (
int i = 0; i < solutionUpperBounds_.size(); i++) {
718 output.writeInt64NoTag(solutionUpperBounds_.getLong(i));
721 com.
google.protobuf.GeneratedMessageV3.writeString(output, 20, solutionInfo_);
723 for (
int i = 0; i < tightenedVariables_.size(); i++) {
724 output.writeMessage(21, tightenedVariables_.get(i));
726 unknownFields.writeTo(output);
731 int size = memoizedSize;
732 if (size != -1)
return size;
736 size +=
com.
google.protobuf.CodedOutputStream
737 .computeEnumSize(1, status_);
741 for (
int i = 0; i < solution_.size(); i++) {
742 dataSize +=
com.
google.protobuf.CodedOutputStream
743 .computeInt64SizeNoTag(solution_.getLong(i));
748 size +=
com.
google.protobuf.CodedOutputStream
749 .computeInt32SizeNoTag(dataSize);
751 solutionMemoizedSerializedSize = dataSize;
753 if (objectiveValue_ != 0D) {
754 size +=
com.
google.protobuf.CodedOutputStream
755 .computeDoubleSize(3, objectiveValue_);
757 if (bestObjectiveBound_ != 0D) {
758 size +=
com.
google.protobuf.CodedOutputStream
759 .computeDoubleSize(4, bestObjectiveBound_);
761 if (allSolutionsWereFound_ !=
false) {
762 size +=
com.
google.protobuf.CodedOutputStream
763 .computeBoolSize(5, allSolutionsWereFound_);
765 if (numBooleans_ != 0L) {
766 size +=
com.
google.protobuf.CodedOutputStream
767 .computeInt64Size(10, numBooleans_);
769 if (numConflicts_ != 0L) {
770 size +=
com.
google.protobuf.CodedOutputStream
771 .computeInt64Size(11, numConflicts_);
773 if (numBranches_ != 0L) {
774 size +=
com.
google.protobuf.CodedOutputStream
775 .computeInt64Size(12, numBranches_);
777 if (numBinaryPropagations_ != 0L) {
778 size +=
com.
google.protobuf.CodedOutputStream
779 .computeInt64Size(13, numBinaryPropagations_);
781 if (numIntegerPropagations_ != 0L) {
782 size +=
com.
google.protobuf.CodedOutputStream
783 .computeInt64Size(14, numIntegerPropagations_);
785 if (wallTime_ != 0D) {
786 size +=
com.
google.protobuf.CodedOutputStream
787 .computeDoubleSize(15, wallTime_);
789 if (userTime_ != 0D) {
790 size +=
com.
google.protobuf.CodedOutputStream
791 .computeDoubleSize(16, userTime_);
793 if (deterministicTime_ != 0D) {
794 size +=
com.
google.protobuf.CodedOutputStream
795 .computeDoubleSize(17, deterministicTime_);
799 for (
int i = 0; i < solutionLowerBounds_.size(); i++) {
800 dataSize +=
com.
google.protobuf.CodedOutputStream
801 .computeInt64SizeNoTag(solutionLowerBounds_.getLong(i));
806 size +=
com.
google.protobuf.CodedOutputStream
807 .computeInt32SizeNoTag(dataSize);
809 solutionLowerBoundsMemoizedSerializedSize = dataSize;
813 for (
int i = 0; i < solutionUpperBounds_.size(); i++) {
814 dataSize +=
com.
google.protobuf.CodedOutputStream
815 .computeInt64SizeNoTag(solutionUpperBounds_.getLong(i));
820 size +=
com.
google.protobuf.CodedOutputStream
821 .computeInt32SizeNoTag(dataSize);
823 solutionUpperBoundsMemoizedSerializedSize = dataSize;
826 size +=
com.
google.protobuf.GeneratedMessageV3.computeStringSize(20, solutionInfo_);
828 for (
int i = 0; i < tightenedVariables_.size(); i++) {
829 size +=
com.
google.protobuf.CodedOutputStream
830 .computeMessageSize(21, tightenedVariables_.get(i));
832 size += unknownFields.getSerializedSize();
838 public boolean equals(
final java.lang.Object obj) {
843 return super.equals(obj);
847 if (status_ != other.status_)
return false;
849 .equals(other.getSolutionList()))
return false;
851 != java.lang.Double.doubleToLongBits(
852 other.getObjectiveValue()))
return false;
854 != java.lang.Double.doubleToLongBits(
855 other.getBestObjectiveBound()))
return false;
857 .equals(other.getSolutionLowerBoundsList()))
return false;
859 .equals(other.getSolutionUpperBoundsList()))
return false;
861 .equals(other.getTightenedVariablesList()))
return false;
863 != other.getAllSolutionsWereFound())
return false;
865 != other.getNumBooleans())
return false;
867 != other.getNumConflicts())
return false;
869 != other.getNumBranches())
return false;
871 != other.getNumBinaryPropagations())
return false;
873 != other.getNumIntegerPropagations())
return false;
874 if (java.lang.Double.doubleToLongBits(
getWallTime())
875 != java.lang.Double.doubleToLongBits(
876 other.getWallTime()))
return false;
877 if (java.lang.Double.doubleToLongBits(
getUserTime())
878 != java.lang.Double.doubleToLongBits(
879 other.getUserTime()))
return false;
881 != java.lang.Double.doubleToLongBits(
882 other.getDeterministicTime()))
return false;
884 .equals(other.getSolutionInfo()))
return false;
885 if (!unknownFields.equals(other.unknownFields))
return false;
891 if (memoizedHashCode != 0) {
892 return memoizedHashCode;
897 hash = (53 * hash) + status_;
903 hash = (53 * hash) +
com.
google.protobuf.Internal.hashLong(
906 hash = (53 * hash) +
com.
google.protobuf.Internal.hashLong(
921 hash = (53 * hash) +
com.
google.protobuf.Internal.hashBoolean(
924 hash = (53 * hash) +
com.
google.protobuf.Internal.hashLong(
927 hash = (53 * hash) +
com.
google.protobuf.Internal.hashLong(
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(
949 hash = (29 * hash) + unknownFields.hashCode();
950 memoizedHashCode = hash;
955 java.nio.ByteBuffer data)
956 throws com.
google.protobuf.InvalidProtocolBufferException {
957 return PARSER.parseFrom(data);
960 java.nio.ByteBuffer data,
961 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
962 throws com.
google.protobuf.InvalidProtocolBufferException {
963 return PARSER.parseFrom(data, extensionRegistry);
967 throws com.
google.protobuf.InvalidProtocolBufferException {
968 return PARSER.parseFrom(data);
972 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
973 throws com.
google.protobuf.InvalidProtocolBufferException {
974 return PARSER.parseFrom(data, extensionRegistry);
977 throws com.
google.protobuf.InvalidProtocolBufferException {
978 return PARSER.parseFrom(data);
982 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
983 throws com.
google.protobuf.InvalidProtocolBufferException {
984 return PARSER.parseFrom(data, extensionRegistry);
987 throws java.io.IOException {
988 return com.
google.protobuf.GeneratedMessageV3
989 .parseWithIOException(PARSER, input);
992 java.io.InputStream input,
993 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
994 throws java.io.IOException {
995 return com.
google.protobuf.GeneratedMessageV3
996 .parseWithIOException(PARSER, input, extensionRegistry);
999 throws java.io.IOException {
1000 return com.
google.protobuf.GeneratedMessageV3
1001 .parseDelimitedWithIOException(PARSER, input);
1004 java.io.InputStream input,
1005 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
1006 throws java.io.IOException {
1007 return com.
google.protobuf.GeneratedMessageV3
1008 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
1011 com.
google.protobuf.CodedInputStream input)
1012 throws java.io.IOException {
1013 return com.
google.protobuf.GeneratedMessageV3
1014 .parseWithIOException(PARSER, input);
1017 com.
google.protobuf.CodedInputStream input,
1018 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
1019 throws java.io.IOException {
1020 return com.
google.protobuf.GeneratedMessageV3
1021 .parseWithIOException(PARSER, input, extensionRegistry);
1034 return this == DEFAULT_INSTANCE
1040 com.
google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1054 com.google.protobuf.GeneratedMessageV3.
Builder<Builder> implements
1057 public static final com.
google.protobuf.Descriptors.Descriptor
1063 protected com.
google.protobuf.GeneratedMessageV3.FieldAccessorTable
1066 .ensureFieldAccessorsInitialized(
1072 maybeForceBuilderInitialization();
1076 com.
google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1078 maybeForceBuilderInitialization();
1080 private void maybeForceBuilderInitialization() {
1081 if (
com.
google.protobuf.GeneratedMessageV3
1082 .alwaysUseFieldBuilders) {
1083 getTightenedVariablesFieldBuilder();
1091 solution_ = emptyLongList();
1092 bitField0_ = (bitField0_ & ~0x00000002);
1093 objectiveValue_ = 0D;
1095 bestObjectiveBound_ = 0D;
1097 solutionLowerBounds_ = emptyLongList();
1098 bitField0_ = (bitField0_ & ~0x00000010);
1099 solutionUpperBounds_ = emptyLongList();
1100 bitField0_ = (bitField0_ & ~0x00000020);
1101 if (tightenedVariablesBuilder_ ==
null) {
1102 tightenedVariables_ = java.util.Collections.emptyList();
1103 bitField0_ = (bitField0_ & ~0x00000040);
1105 tightenedVariablesBuilder_.clear();
1107 allSolutionsWereFound_ =
false;
1115 numBinaryPropagations_ = 0L;
1117 numIntegerPropagations_ = 0L;
1123 deterministicTime_ = 0D;
1131 public com.
google.protobuf.Descriptors.Descriptor
1144 if (!result.isInitialized()) {
1145 throw newUninitializedMessageException(result);
1153 int from_bitField0_ = bitField0_;
1154 int to_bitField0_ = 0;
1155 result.status_ = status_;
1156 if (((bitField0_ & 0x00000002) != 0)) {
1157 solution_.makeImmutable();
1158 bitField0_ = (bitField0_ & ~0x00000002);
1160 result.solution_ = solution_;
1161 result.objectiveValue_ = objectiveValue_;
1162 result.bestObjectiveBound_ = bestObjectiveBound_;
1163 if (((bitField0_ & 0x00000010) != 0)) {
1164 solutionLowerBounds_.makeImmutable();
1165 bitField0_ = (bitField0_ & ~0x00000010);
1167 result.solutionLowerBounds_ = solutionLowerBounds_;
1168 if (((bitField0_ & 0x00000020) != 0)) {
1169 solutionUpperBounds_.makeImmutable();
1170 bitField0_ = (bitField0_ & ~0x00000020);
1172 result.solutionUpperBounds_ = solutionUpperBounds_;
1173 if (tightenedVariablesBuilder_ ==
null) {
1174 if (((bitField0_ & 0x00000040) != 0)) {
1175 tightenedVariables_ = java.util.Collections.unmodifiableList(tightenedVariables_);
1176 bitField0_ = (bitField0_ & ~0x00000040);
1178 result.tightenedVariables_ = tightenedVariables_;
1180 result.tightenedVariables_ = tightenedVariablesBuilder_.build();
1182 result.allSolutionsWereFound_ = allSolutionsWereFound_;
1183 result.numBooleans_ = numBooleans_;
1184 result.numConflicts_ = numConflicts_;
1185 result.numBranches_ = numBranches_;
1186 result.numBinaryPropagations_ = numBinaryPropagations_;
1187 result.numIntegerPropagations_ = numIntegerPropagations_;
1188 result.wallTime_ = wallTime_;
1189 result.userTime_ = userTime_;
1190 result.deterministicTime_ = deterministicTime_;
1191 result.solutionInfo_ = solutionInfo_;
1192 result.bitField0_ = to_bitField0_;
1199 return super.
clone();
1203 com.
google.protobuf.Descriptors.FieldDescriptor field,
1204 java.lang.Object value) {
1205 return super.
setField(field, value);
1209 com.
google.protobuf.Descriptors.FieldDescriptor field) {
1214 com.
google.protobuf.Descriptors.OneofDescriptor oneof) {
1219 com.
google.protobuf.Descriptors.FieldDescriptor field,
1220 int index, java.lang.Object value) {
1225 com.
google.protobuf.Descriptors.FieldDescriptor field,
1226 java.lang.Object value) {
1234 super.mergeFrom(other);
1241 if (other.status_ != 0) {
1244 if (!other.solution_.isEmpty()) {
1245 if (solution_.isEmpty()) {
1246 solution_ = other.solution_;
1247 bitField0_ = (bitField0_ & ~0x00000002);
1249 ensureSolutionIsMutable();
1250 solution_.addAll(other.solution_);
1254 if (other.getObjectiveValue() != 0D) {
1257 if (other.getBestObjectiveBound() != 0D) {
1260 if (!other.solutionLowerBounds_.isEmpty()) {
1261 if (solutionLowerBounds_.isEmpty()) {
1262 solutionLowerBounds_ = other.solutionLowerBounds_;
1263 bitField0_ = (bitField0_ & ~0x00000010);
1265 ensureSolutionLowerBoundsIsMutable();
1266 solutionLowerBounds_.addAll(other.solutionLowerBounds_);
1270 if (!other.solutionUpperBounds_.isEmpty()) {
1271 if (solutionUpperBounds_.isEmpty()) {
1272 solutionUpperBounds_ = other.solutionUpperBounds_;
1273 bitField0_ = (bitField0_ & ~0x00000020);
1275 ensureSolutionUpperBoundsIsMutable();
1276 solutionUpperBounds_.addAll(other.solutionUpperBounds_);
1280 if (tightenedVariablesBuilder_ ==
null) {
1281 if (!other.tightenedVariables_.isEmpty()) {
1282 if (tightenedVariables_.isEmpty()) {
1283 tightenedVariables_ = other.tightenedVariables_;
1284 bitField0_ = (bitField0_ & ~0x00000040);
1286 ensureTightenedVariablesIsMutable();
1287 tightenedVariables_.addAll(other.tightenedVariables_);
1292 if (!other.tightenedVariables_.isEmpty()) {
1293 if (tightenedVariablesBuilder_.isEmpty()) {
1294 tightenedVariablesBuilder_.dispose();
1295 tightenedVariablesBuilder_ =
null;
1296 tightenedVariables_ = other.tightenedVariables_;
1297 bitField0_ = (bitField0_ & ~0x00000040);
1298 tightenedVariablesBuilder_ =
1299 com.
google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
1300 getTightenedVariablesFieldBuilder() :
null;
1302 tightenedVariablesBuilder_.addAllMessages(other.tightenedVariables_);
1306 if (other.getAllSolutionsWereFound() !=
false) {
1309 if (other.getNumBooleans() != 0L) {
1312 if (other.getNumConflicts() != 0L) {
1315 if (other.getNumBranches() != 0L) {
1318 if (other.getNumBinaryPropagations() != 0L) {
1321 if (other.getNumIntegerPropagations() != 0L) {
1324 if (other.getWallTime() != 0D) {
1327 if (other.getUserTime() != 0D) {
1330 if (other.getDeterministicTime() != 0D) {
1333 if (!other.getSolutionInfo().isEmpty()) {
1334 solutionInfo_ = other.solutionInfo_;
1349 com.
google.protobuf.CodedInputStream input,
1350 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
1351 throws java.io.IOException {
1354 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
1355 }
catch (
com.
google.protobuf.InvalidProtocolBufferException e) {
1357 throw e.unwrapIOException();
1359 if (parsedMessage !=
null) {
1365 private int bitField0_;
1367 private int status_ = 0;
1398 @SuppressWarnings(
"deprecation")
1410 if (value ==
null) {
1411 throw new NullPointerException();
1414 status_ = value.getNumber();
1432 private com.
google.protobuf.Internal.LongList solution_ = emptyLongList();
1433 private void ensureSolutionIsMutable() {
1434 if (!((bitField0_ & 0x00000002) != 0)) {
1435 solution_ = mutableCopy(solution_);
1436 bitField0_ |= 0x00000002;
1449 public java.util.List<java.lang.Long>
1451 return ((bitField0_ & 0x00000002) != 0) ?
1452 java.util.Collections.unmodifiableList(solution_) : solution_;
1465 return solution_.size();
1478 return solution_.getLong(index);
1491 int index,
long value) {
1492 ensureSolutionIsMutable();
1493 solution_.setLong(index, value);
1508 ensureSolutionIsMutable();
1509 solution_.addLong(value);
1524 java.lang.Iterable<? extends java.lang.Long> values) {
1525 ensureSolutionIsMutable();
1526 com.
google.protobuf.AbstractMessageLite.Builder.addAll(
1542 solution_ = emptyLongList();
1543 bitField0_ = (bitField0_ & ~0x00000002);
1548 private double objectiveValue_ ;
1560 return objectiveValue_;
1574 objectiveValue_ = value;
1590 objectiveValue_ = 0D;
1595 private double bestObjectiveBound_ ;
1606 return bestObjectiveBound_;
1619 bestObjectiveBound_ = value;
1634 bestObjectiveBound_ = 0D;
1639 private com.
google.protobuf.Internal.LongList solutionLowerBounds_ = emptyLongList();
1640 private void ensureSolutionLowerBoundsIsMutable() {
1641 if (!((bitField0_ & 0x00000010) != 0)) {
1642 solutionLowerBounds_ = mutableCopy(solutionLowerBounds_);
1643 bitField0_ |= 0x00000010;
1658 public java.util.List<java.lang.Long>
1660 return ((bitField0_ & 0x00000010) != 0) ?
1661 java.util.Collections.unmodifiableList(solutionLowerBounds_) : solutionLowerBounds_;
1676 return solutionLowerBounds_.size();
1691 return solutionLowerBounds_.getLong(index);
1706 int index,
long value) {
1707 ensureSolutionLowerBoundsIsMutable();
1708 solutionLowerBounds_.setLong(index, value);
1725 ensureSolutionLowerBoundsIsMutable();
1726 solutionLowerBounds_.addLong(value);
1743 java.lang.Iterable<? extends java.lang.Long> values) {
1744 ensureSolutionLowerBoundsIsMutable();
1745 com.
google.protobuf.AbstractMessageLite.Builder.addAll(
1746 values, solutionLowerBounds_);
1763 solutionLowerBounds_ = emptyLongList();
1764 bitField0_ = (bitField0_ & ~0x00000010);
1769 private com.
google.protobuf.Internal.LongList solutionUpperBounds_ = emptyLongList();
1770 private void ensureSolutionUpperBoundsIsMutable() {
1771 if (!((bitField0_ & 0x00000020) != 0)) {
1772 solutionUpperBounds_ = mutableCopy(solutionUpperBounds_);
1773 bitField0_ |= 0x00000020;
1779 public java.util.List<java.lang.Long>
1781 return ((bitField0_ & 0x00000020) != 0) ?
1782 java.util.Collections.unmodifiableList(solutionUpperBounds_) : solutionUpperBounds_;
1788 return solutionUpperBounds_.size();
1794 return solutionUpperBounds_.getLong(index);
1800 int index,
long value) {
1801 ensureSolutionUpperBoundsIsMutable();
1802 solutionUpperBounds_.setLong(index, value);
1810 ensureSolutionUpperBoundsIsMutable();
1811 solutionUpperBounds_.addLong(value);
1819 java.lang.Iterable<? extends java.lang.Long> values) {
1820 ensureSolutionUpperBoundsIsMutable();
1821 com.
google.protobuf.AbstractMessageLite.Builder.addAll(
1822 values, solutionUpperBounds_);
1830 solutionUpperBounds_ = emptyLongList();
1831 bitField0_ = (bitField0_ & ~0x00000020);
1837 java.util.Collections.emptyList();
1838 private void ensureTightenedVariablesIsMutable() {
1839 if (!((bitField0_ & 0x00000040) != 0)) {
1841 bitField0_ |= 0x00000040;
1845 private com.
google.protobuf.RepeatedFieldBuilderV3<
1865 if (tightenedVariablesBuilder_ ==
null) {
1866 return java.util.Collections.unmodifiableList(tightenedVariables_);
1868 return tightenedVariablesBuilder_.getMessageList();
1888 if (tightenedVariablesBuilder_ ==
null) {
1889 return tightenedVariables_.size();
1891 return tightenedVariablesBuilder_.getCount();
1911 if (tightenedVariablesBuilder_ ==
null) {
1912 return tightenedVariables_.get(index);
1914 return tightenedVariablesBuilder_.getMessage(index);
1935 if (tightenedVariablesBuilder_ ==
null) {
1936 if (value ==
null) {
1937 throw new NullPointerException();
1939 ensureTightenedVariablesIsMutable();
1940 tightenedVariables_.set(index, value);
1943 tightenedVariablesBuilder_.setMessage(index, value);
1965 if (tightenedVariablesBuilder_ ==
null) {
1966 ensureTightenedVariablesIsMutable();
1967 tightenedVariables_.set(index, builderForValue.build());
1970 tightenedVariablesBuilder_.setMessage(index, builderForValue.build());
1991 if (tightenedVariablesBuilder_ ==
null) {
1992 if (value ==
null) {
1993 throw new NullPointerException();
1995 ensureTightenedVariablesIsMutable();
1996 tightenedVariables_.add(value);
1999 tightenedVariablesBuilder_.addMessage(value);
2021 if (tightenedVariablesBuilder_ ==
null) {
2022 if (value ==
null) {
2023 throw new NullPointerException();
2025 ensureTightenedVariablesIsMutable();
2026 tightenedVariables_.add(index, value);
2029 tightenedVariablesBuilder_.addMessage(index, value);
2051 if (tightenedVariablesBuilder_ ==
null) {
2052 ensureTightenedVariablesIsMutable();
2053 tightenedVariables_.add(builderForValue.build());
2056 tightenedVariablesBuilder_.addMessage(builderForValue.build());
2078 if (tightenedVariablesBuilder_ ==
null) {
2079 ensureTightenedVariablesIsMutable();
2080 tightenedVariables_.add(index, builderForValue.build());
2083 tightenedVariablesBuilder_.addMessage(index, builderForValue.build());
2105 if (tightenedVariablesBuilder_ ==
null) {
2106 ensureTightenedVariablesIsMutable();
2107 com.
google.protobuf.AbstractMessageLite.Builder.addAll(
2108 values, tightenedVariables_);
2111 tightenedVariablesBuilder_.addAllMessages(values);
2132 if (tightenedVariablesBuilder_ ==
null) {
2133 tightenedVariables_ = java.util.Collections.emptyList();
2134 bitField0_ = (bitField0_ & ~0x00000040);
2137 tightenedVariablesBuilder_.clear();
2158 if (tightenedVariablesBuilder_ ==
null) {
2159 ensureTightenedVariablesIsMutable();
2160 tightenedVariables_.remove(index);
2163 tightenedVariablesBuilder_.remove(index);
2185 return getTightenedVariablesFieldBuilder().getBuilder(index);
2205 if (tightenedVariablesBuilder_ ==
null) {
2206 return tightenedVariables_.get(index); }
else {
2207 return tightenedVariablesBuilder_.getMessageOrBuilder(index);
2228 if (tightenedVariablesBuilder_ !=
null) {
2229 return tightenedVariablesBuilder_.getMessageOrBuilderList();
2231 return java.util.Collections.unmodifiableList(tightenedVariables_);
2251 return getTightenedVariablesFieldBuilder().addBuilder(
2272 return getTightenedVariablesFieldBuilder().addBuilder(
2293 return getTightenedVariablesFieldBuilder().getBuilderList();
2295 private com.
google.protobuf.RepeatedFieldBuilderV3<
2297 getTightenedVariablesFieldBuilder() {
2298 if (tightenedVariablesBuilder_ ==
null) {
2299 tightenedVariablesBuilder_ =
new com.
google.protobuf.RepeatedFieldBuilderV3<
2301 tightenedVariables_,
2302 ((bitField0_ & 0x00000040) != 0),
2303 getParentForChildren(),
2305 tightenedVariables_ =
null;
2307 return tightenedVariablesBuilder_;
2310 private boolean allSolutionsWereFound_ ;
2322 return allSolutionsWereFound_;
2336 allSolutionsWereFound_ = value;
2352 allSolutionsWereFound_ =
false;
2357 private long numBooleans_ ;
2366 return numBooleans_;
2377 numBooleans_ = value;
2395 private long numConflicts_ ;
2400 return numConflicts_;
2407 numConflicts_ = value;
2421 private long numBranches_ ;
2426 return numBranches_;
2433 numBranches_ = value;
2447 private long numBinaryPropagations_ ;
2452 return numBinaryPropagations_;
2459 numBinaryPropagations_ = value;
2468 numBinaryPropagations_ = 0L;
2473 private long numIntegerPropagations_ ;
2478 return numIntegerPropagations_;
2485 numIntegerPropagations_ = value;
2494 numIntegerPropagations_ = 0L;
2499 private double wallTime_ ;
2525 private double userTime_ ;
2551 private double deterministicTime_ ;
2556 return deterministicTime_;
2563 deterministicTime_ = value;
2572 deterministicTime_ = 0D;
2577 private java.lang.Object solutionInfo_ =
"";
2586 java.lang.Object ref = solutionInfo_;
2587 if (!(ref instanceof java.lang.String)) {
2590 java.lang.String s = bs.toStringUtf8();
2594 return (java.lang.String) ref;
2606 java.lang.Object ref = solutionInfo_;
2607 if (ref instanceof String) {
2609 com.
google.protobuf.ByteString.copyFromUtf8(
2610 (java.lang.String) ref);
2614 return (
com.
google.protobuf.ByteString) ref;
2625 java.lang.String value) {
2626 if (value ==
null) {
2627 throw new NullPointerException();
2630 solutionInfo_ = value;
2656 if (value ==
null) {
2657 throw new NullPointerException();
2659 checkByteStringIsUtf8(value);
2661 solutionInfo_ = value;
2667 final com.
google.protobuf.UnknownFieldSet unknownFields) {
2673 final com.
google.protobuf.UnknownFieldSet unknownFields) {
2688 return DEFAULT_INSTANCE;
2695 com.
google.protobuf.CodedInputStream input,
2696 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
2697 throws com.
google.protobuf.InvalidProtocolBufferException {
2713 return DEFAULT_INSTANCE;