Java Reference

Java Reference

CpSolverResponse.java
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: ortools/sat/cp_model.proto
3
4package com.google.ortools.sat;
5
16public final class CpSolverResponse extends
17 com.google.protobuf.GeneratedMessageV3 implements
18 // @@protoc_insertion_point(message_implements:operations_research.sat.CpSolverResponse)
20private static final long serialVersionUID = 0L;
21 // Use CpSolverResponse.newBuilder() to construct.
22 private CpSolverResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
23 super(builder);
24 }
25 private CpSolverResponse() {
26 status_ = 0;
27 solution_ = emptyLongList();
28 solutionLowerBounds_ = emptyLongList();
29 solutionUpperBounds_ = emptyLongList();
30 tightenedVariables_ = java.util.Collections.emptyList();
31 sufficientAssumptionsForInfeasibility_ = emptyIntList();
32 solutionInfo_ = "";
33 solveLog_ = "";
34 }
35
36 @java.lang.Override
37 @SuppressWarnings({"unused"})
38 protected java.lang.Object newInstance(
39 UnusedPrivateParameter unused) {
40 return new CpSolverResponse();
41 }
42
43 @java.lang.Override
44 public final com.google.protobuf.UnknownFieldSet
46 return this.unknownFields;
47 }
48 private CpSolverResponse(
49 com.google.protobuf.CodedInputStream input,
50 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
51 throws com.google.protobuf.InvalidProtocolBufferException {
52 this();
53 if (extensionRegistry == null) {
54 throw new java.lang.NullPointerException();
55 }
56 int mutable_bitField0_ = 0;
57 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
58 com.google.protobuf.UnknownFieldSet.newBuilder();
59 try {
60 boolean done = false;
61 while (!done) {
62 int tag = input.readTag();
63 switch (tag) {
64 case 0:
65 done = true;
66 break;
67 case 8: {
68 int rawValue = input.readEnum();
69
70 status_ = rawValue;
71 break;
72 }
73 case 16: {
74 if (!((mutable_bitField0_ & 0x00000001) != 0)) {
75 solution_ = newLongList();
76 mutable_bitField0_ |= 0x00000001;
77 }
78 solution_.addLong(input.readInt64());
79 break;
80 }
81 case 18: {
82 int length = input.readRawVarint32();
83 int limit = input.pushLimit(length);
84 if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
85 solution_ = newLongList();
86 mutable_bitField0_ |= 0x00000001;
87 }
88 while (input.getBytesUntilLimit() > 0) {
89 solution_.addLong(input.readInt64());
90 }
91 input.popLimit(limit);
92 break;
93 }
94 case 25: {
95
96 objectiveValue_ = input.readDouble();
97 break;
98 }
99 case 33: {
100
101 bestObjectiveBound_ = input.readDouble();
102 break;
103 }
104 case 40: {
105
106 allSolutionsWereFound_ = input.readBool();
107 break;
108 }
109 case 80: {
110
111 numBooleans_ = input.readInt64();
112 break;
113 }
114 case 88: {
115
116 numConflicts_ = input.readInt64();
117 break;
118 }
119 case 96: {
120
121 numBranches_ = input.readInt64();
122 break;
123 }
124 case 104: {
125
126 numBinaryPropagations_ = input.readInt64();
127 break;
128 }
129 case 112: {
130
131 numIntegerPropagations_ = input.readInt64();
132 break;
133 }
134 case 121: {
135
136 wallTime_ = input.readDouble();
137 break;
138 }
139 case 129: {
140
141 userTime_ = input.readDouble();
142 break;
143 }
144 case 137: {
145
146 deterministicTime_ = input.readDouble();
147 break;
148 }
149 case 144: {
150 if (!((mutable_bitField0_ & 0x00000002) != 0)) {
151 solutionLowerBounds_ = newLongList();
152 mutable_bitField0_ |= 0x00000002;
153 }
154 solutionLowerBounds_.addLong(input.readInt64());
155 break;
156 }
157 case 146: {
158 int length = input.readRawVarint32();
159 int limit = input.pushLimit(length);
160 if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
161 solutionLowerBounds_ = newLongList();
162 mutable_bitField0_ |= 0x00000002;
163 }
164 while (input.getBytesUntilLimit() > 0) {
165 solutionLowerBounds_.addLong(input.readInt64());
166 }
167 input.popLimit(limit);
168 break;
169 }
170 case 152: {
171 if (!((mutable_bitField0_ & 0x00000004) != 0)) {
172 solutionUpperBounds_ = newLongList();
173 mutable_bitField0_ |= 0x00000004;
174 }
175 solutionUpperBounds_.addLong(input.readInt64());
176 break;
177 }
178 case 154: {
179 int length = input.readRawVarint32();
180 int limit = input.pushLimit(length);
181 if (!((mutable_bitField0_ & 0x00000004) != 0) && input.getBytesUntilLimit() > 0) {
182 solutionUpperBounds_ = newLongList();
183 mutable_bitField0_ |= 0x00000004;
184 }
185 while (input.getBytesUntilLimit() > 0) {
186 solutionUpperBounds_.addLong(input.readInt64());
187 }
188 input.popLimit(limit);
189 break;
190 }
191 case 162: {
192 java.lang.String s = input.readStringRequireUtf8();
193
194 solutionInfo_ = s;
195 break;
196 }
197 case 170: {
198 if (!((mutable_bitField0_ & 0x00000008) != 0)) {
199 tightenedVariables_ = new java.util.ArrayList<com.google.ortools.sat.IntegerVariableProto>();
200 mutable_bitField0_ |= 0x00000008;
201 }
202 tightenedVariables_.add(
203 input.readMessage(com.google.ortools.sat.IntegerVariableProto.parser(), extensionRegistry));
204 break;
205 }
206 case 177: {
207
208 primalIntegral_ = input.readDouble();
209 break;
210 }
211 case 184: {
212 if (!((mutable_bitField0_ & 0x00000010) != 0)) {
213 sufficientAssumptionsForInfeasibility_ = newIntList();
214 mutable_bitField0_ |= 0x00000010;
215 }
216 sufficientAssumptionsForInfeasibility_.addInt(input.readInt32());
217 break;
218 }
219 case 186: {
220 int length = input.readRawVarint32();
221 int limit = input.pushLimit(length);
222 if (!((mutable_bitField0_ & 0x00000010) != 0) && input.getBytesUntilLimit() > 0) {
223 sufficientAssumptionsForInfeasibility_ = newIntList();
224 mutable_bitField0_ |= 0x00000010;
225 }
226 while (input.getBytesUntilLimit() > 0) {
227 sufficientAssumptionsForInfeasibility_.addInt(input.readInt32());
228 }
229 input.popLimit(limit);
230 break;
231 }
232 case 192: {
233
234 numRestarts_ = input.readInt64();
235 break;
236 }
237 case 200: {
238
239 numLpIterations_ = input.readInt64();
240 break;
241 }
242 case 210: {
243 java.lang.String s = input.readStringRequireUtf8();
244
245 solveLog_ = s;
246 break;
247 }
248 default: {
249 if (!parseUnknownField(
250 input, unknownFields, extensionRegistry, tag)) {
251 done = true;
252 }
253 break;
254 }
255 }
256 }
257 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
258 throw e.setUnfinishedMessage(this);
259 } catch (java.io.IOException e) {
260 throw new com.google.protobuf.InvalidProtocolBufferException(
261 e).setUnfinishedMessage(this);
262 } finally {
263 if (((mutable_bitField0_ & 0x00000001) != 0)) {
264 solution_.makeImmutable(); // C
265 }
266 if (((mutable_bitField0_ & 0x00000002) != 0)) {
267 solutionLowerBounds_.makeImmutable(); // C
268 }
269 if (((mutable_bitField0_ & 0x00000004) != 0)) {
270 solutionUpperBounds_.makeImmutable(); // C
271 }
272 if (((mutable_bitField0_ & 0x00000008) != 0)) {
273 tightenedVariables_ = java.util.Collections.unmodifiableList(tightenedVariables_);
274 }
275 if (((mutable_bitField0_ & 0x00000010) != 0)) {
276 sufficientAssumptionsForInfeasibility_.makeImmutable(); // C
277 }
278 this.unknownFields = unknownFields.build();
279 makeExtensionsImmutable();
280 }
281 }
282 public static final com.google.protobuf.Descriptors.Descriptor
284 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_descriptor;
285 }
286
287 @java.lang.Override
288 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
290 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_fieldAccessorTable
291 .ensureFieldAccessorsInitialized(
292 com.google.ortools.sat.CpSolverResponse.class, com.google.ortools.sat.CpSolverResponse.Builder.class);
293 }
294
295 public static final int STATUS_FIELD_NUMBER = 1;
296 private int status_;
305 @java.lang.Override public int getStatusValue() {
306 return status_;
307 }
316 @java.lang.Override public com.google.ortools.sat.CpSolverStatus getStatus() {
317 @SuppressWarnings("deprecation")
318 com.google.ortools.sat.CpSolverStatus result = com.google.ortools.sat.CpSolverStatus.valueOf(status_);
319 return result == null ? com.google.ortools.sat.CpSolverStatus.UNRECOGNIZED : result;
320 }
321
322 public static final int SOLUTION_FIELD_NUMBER = 2;
323 private com.google.protobuf.Internal.LongList solution_;
335 @java.lang.Override
336 public java.util.List<java.lang.Long>
338 return solution_;
339 }
351 public int getSolutionCount() {
352 return solution_.size();
353 }
366 public long getSolution(int index) {
367 return solution_.getLong(index);
368 }
369 private int solutionMemoizedSerializedSize = -1;
370
371 public static final int OBJECTIVE_VALUE_FIELD_NUMBER = 3;
372 private double objectiveValue_;
384 @java.lang.Override
385 public double getObjectiveValue() {
386 return objectiveValue_;
387 }
388
389 public static final int BEST_OBJECTIVE_BOUND_FIELD_NUMBER = 4;
390 private double bestObjectiveBound_;
401 @java.lang.Override
402 public double getBestObjectiveBound() {
403 return bestObjectiveBound_;
404 }
405
406 public static final int SOLUTION_LOWER_BOUNDS_FIELD_NUMBER = 18;
407 private com.google.protobuf.Internal.LongList solutionLowerBounds_;
421 @java.lang.Override
422 public java.util.List<java.lang.Long>
424 return solutionLowerBounds_;
425 }
440 return solutionLowerBounds_.size();
441 }
456 public long getSolutionLowerBounds(int index) {
457 return solutionLowerBounds_.getLong(index);
458 }
459 private int solutionLowerBoundsMemoizedSerializedSize = -1;
460
461 public static final int SOLUTION_UPPER_BOUNDS_FIELD_NUMBER = 19;
462 private com.google.protobuf.Internal.LongList solutionUpperBounds_;
467 @java.lang.Override
468 public java.util.List<java.lang.Long>
470 return solutionUpperBounds_;
471 }
477 return solutionUpperBounds_.size();
478 }
484 public long getSolutionUpperBounds(int index) {
485 return solutionUpperBounds_.getLong(index);
486 }
487 private int solutionUpperBoundsMemoizedSerializedSize = -1;
488
489 public static final int TIGHTENED_VARIABLES_FIELD_NUMBER = 21;
490 private java.util.List<com.google.ortools.sat.IntegerVariableProto> tightenedVariables_;
507 @java.lang.Override
508 public java.util.List<com.google.ortools.sat.IntegerVariableProto> getTightenedVariablesList() {
509 return tightenedVariables_;
510 }
527 @java.lang.Override
528 public java.util.List<? extends com.google.ortools.sat.IntegerVariableProtoOrBuilder>
530 return tightenedVariables_;
531 }
548 @java.lang.Override
550 return tightenedVariables_.size();
551 }
568 @java.lang.Override
569 public com.google.ortools.sat.IntegerVariableProto getTightenedVariables(int index) {
570 return tightenedVariables_.get(index);
571 }
588 @java.lang.Override
589 public com.google.ortools.sat.IntegerVariableProtoOrBuilder getTightenedVariablesOrBuilder(
590 int index) {
591 return tightenedVariables_.get(index);
592 }
593
595 private com.google.protobuf.Internal.IntList sufficientAssumptionsForInfeasibility_;
618 @java.lang.Override
619 public java.util.List<java.lang.Integer>
621 return sufficientAssumptionsForInfeasibility_;
622 }
646 return sufficientAssumptionsForInfeasibility_.size();
647 }
672 return sufficientAssumptionsForInfeasibility_.getInt(index);
673 }
674 private int sufficientAssumptionsForInfeasibilityMemoizedSerializedSize = -1;
675
676 public static final int ALL_SOLUTIONS_WERE_FOUND_FIELD_NUMBER = 5;
677 private boolean allSolutionsWereFound_;
689 @java.lang.Override
690 public boolean getAllSolutionsWereFound() {
691 return allSolutionsWereFound_;
692 }
693
694 public static final int NUM_BOOLEANS_FIELD_NUMBER = 10;
695 private long numBooleans_;
704 @java.lang.Override
705 public long getNumBooleans() {
706 return numBooleans_;
707 }
708
709 public static final int NUM_CONFLICTS_FIELD_NUMBER = 11;
710 private long numConflicts_;
715 @java.lang.Override
716 public long getNumConflicts() {
717 return numConflicts_;
718 }
719
720 public static final int NUM_BRANCHES_FIELD_NUMBER = 12;
721 private long numBranches_;
726 @java.lang.Override
727 public long getNumBranches() {
728 return numBranches_;
729 }
730
731 public static final int NUM_BINARY_PROPAGATIONS_FIELD_NUMBER = 13;
732 private long numBinaryPropagations_;
737 @java.lang.Override
739 return numBinaryPropagations_;
740 }
741
742 public static final int NUM_INTEGER_PROPAGATIONS_FIELD_NUMBER = 14;
743 private long numIntegerPropagations_;
748 @java.lang.Override
750 return numIntegerPropagations_;
751 }
752
753 public static final int NUM_RESTARTS_FIELD_NUMBER = 24;
754 private long numRestarts_;
759 @java.lang.Override
760 public long getNumRestarts() {
761 return numRestarts_;
762 }
763
764 public static final int NUM_LP_ITERATIONS_FIELD_NUMBER = 25;
765 private long numLpIterations_;
770 @java.lang.Override
771 public long getNumLpIterations() {
772 return numLpIterations_;
773 }
774
775 public static final int WALL_TIME_FIELD_NUMBER = 15;
776 private double wallTime_;
781 @java.lang.Override
782 public double getWallTime() {
783 return wallTime_;
784 }
785
786 public static final int USER_TIME_FIELD_NUMBER = 16;
787 private double userTime_;
792 @java.lang.Override
793 public double getUserTime() {
794 return userTime_;
795 }
796
797 public static final int DETERMINISTIC_TIME_FIELD_NUMBER = 17;
798 private double deterministicTime_;
803 @java.lang.Override
804 public double getDeterministicTime() {
805 return deterministicTime_;
806 }
807
808 public static final int PRIMAL_INTEGRAL_FIELD_NUMBER = 22;
809 private double primalIntegral_;
814 @java.lang.Override
815 public double getPrimalIntegral() {
816 return primalIntegral_;
817 }
818
819 public static final int SOLUTION_INFO_FIELD_NUMBER = 20;
820 private volatile java.lang.Object solutionInfo_;
829 @java.lang.Override
830 public java.lang.String getSolutionInfo() {
831 java.lang.Object ref = solutionInfo_;
832 if (ref instanceof java.lang.String) {
833 return (java.lang.String) ref;
834 } else {
835 com.google.protobuf.ByteString bs =
836 (com.google.protobuf.ByteString) ref;
837 java.lang.String s = bs.toStringUtf8();
838 solutionInfo_ = s;
839 return s;
840 }
841 }
850 @java.lang.Override
851 public com.google.protobuf.ByteString
853 java.lang.Object ref = solutionInfo_;
854 if (ref instanceof java.lang.String) {
855 com.google.protobuf.ByteString b =
856 com.google.protobuf.ByteString.copyFromUtf8(
857 (java.lang.String) ref);
858 solutionInfo_ = b;
859 return b;
860 } else {
861 return (com.google.protobuf.ByteString) ref;
862 }
863 }
864
865 public static final int SOLVE_LOG_FIELD_NUMBER = 26;
866 private volatile java.lang.Object solveLog_;
876 @java.lang.Override
877 public java.lang.String getSolveLog() {
878 java.lang.Object ref = solveLog_;
879 if (ref instanceof java.lang.String) {
880 return (java.lang.String) ref;
881 } else {
882 com.google.protobuf.ByteString bs =
883 (com.google.protobuf.ByteString) ref;
884 java.lang.String s = bs.toStringUtf8();
885 solveLog_ = s;
886 return s;
887 }
888 }
898 @java.lang.Override
899 public com.google.protobuf.ByteString
901 java.lang.Object ref = solveLog_;
902 if (ref instanceof java.lang.String) {
903 com.google.protobuf.ByteString b =
904 com.google.protobuf.ByteString.copyFromUtf8(
905 (java.lang.String) ref);
906 solveLog_ = b;
907 return b;
908 } else {
909 return (com.google.protobuf.ByteString) ref;
910 }
911 }
912
913 private byte memoizedIsInitialized = -1;
914 @java.lang.Override
915 public final boolean isInitialized() {
916 byte isInitialized = memoizedIsInitialized;
917 if (isInitialized == 1) return true;
918 if (isInitialized == 0) return false;
919
920 memoizedIsInitialized = 1;
921 return true;
922 }
923
924 @java.lang.Override
925 public void writeTo(com.google.protobuf.CodedOutputStream output)
926 throws java.io.IOException {
928 if (status_ != com.google.ortools.sat.CpSolverStatus.UNKNOWN.getNumber()) {
929 output.writeEnum(1, status_);
930 }
931 if (getSolutionList().size() > 0) {
932 output.writeUInt32NoTag(18);
933 output.writeUInt32NoTag(solutionMemoizedSerializedSize);
934 }
935 for (int i = 0; i < solution_.size(); i++) {
936 output.writeInt64NoTag(solution_.getLong(i));
937 }
938 if (objectiveValue_ != 0D) {
939 output.writeDouble(3, objectiveValue_);
940 }
941 if (bestObjectiveBound_ != 0D) {
942 output.writeDouble(4, bestObjectiveBound_);
943 }
944 if (allSolutionsWereFound_ != false) {
945 output.writeBool(5, allSolutionsWereFound_);
946 }
947 if (numBooleans_ != 0L) {
948 output.writeInt64(10, numBooleans_);
949 }
950 if (numConflicts_ != 0L) {
951 output.writeInt64(11, numConflicts_);
952 }
953 if (numBranches_ != 0L) {
954 output.writeInt64(12, numBranches_);
955 }
956 if (numBinaryPropagations_ != 0L) {
957 output.writeInt64(13, numBinaryPropagations_);
958 }
959 if (numIntegerPropagations_ != 0L) {
960 output.writeInt64(14, numIntegerPropagations_);
961 }
962 if (wallTime_ != 0D) {
963 output.writeDouble(15, wallTime_);
964 }
965 if (userTime_ != 0D) {
966 output.writeDouble(16, userTime_);
967 }
968 if (deterministicTime_ != 0D) {
969 output.writeDouble(17, deterministicTime_);
970 }
971 if (getSolutionLowerBoundsList().size() > 0) {
972 output.writeUInt32NoTag(146);
973 output.writeUInt32NoTag(solutionLowerBoundsMemoizedSerializedSize);
974 }
975 for (int i = 0; i < solutionLowerBounds_.size(); i++) {
976 output.writeInt64NoTag(solutionLowerBounds_.getLong(i));
977 }
978 if (getSolutionUpperBoundsList().size() > 0) {
979 output.writeUInt32NoTag(154);
980 output.writeUInt32NoTag(solutionUpperBoundsMemoizedSerializedSize);
981 }
982 for (int i = 0; i < solutionUpperBounds_.size(); i++) {
983 output.writeInt64NoTag(solutionUpperBounds_.getLong(i));
984 }
985 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(solutionInfo_)) {
986 com.google.protobuf.GeneratedMessageV3.writeString(output, 20, solutionInfo_);
987 }
988 for (int i = 0; i < tightenedVariables_.size(); i++) {
989 output.writeMessage(21, tightenedVariables_.get(i));
990 }
991 if (primalIntegral_ != 0D) {
992 output.writeDouble(22, primalIntegral_);
993 }
995 output.writeUInt32NoTag(186);
996 output.writeUInt32NoTag(sufficientAssumptionsForInfeasibilityMemoizedSerializedSize);
997 }
998 for (int i = 0; i < sufficientAssumptionsForInfeasibility_.size(); i++) {
999 output.writeInt32NoTag(sufficientAssumptionsForInfeasibility_.getInt(i));
1000 }
1001 if (numRestarts_ != 0L) {
1002 output.writeInt64(24, numRestarts_);
1003 }
1004 if (numLpIterations_ != 0L) {
1005 output.writeInt64(25, numLpIterations_);
1006 }
1007 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(solveLog_)) {
1008 com.google.protobuf.GeneratedMessageV3.writeString(output, 26, solveLog_);
1009 }
1010 unknownFields.writeTo(output);
1011 }
1012
1013 @java.lang.Override
1014 public int getSerializedSize() {
1015 int size = memoizedSize;
1016 if (size != -1) return size;
1017
1018 size = 0;
1019 if (status_ != com.google.ortools.sat.CpSolverStatus.UNKNOWN.getNumber()) {
1020 size += com.google.protobuf.CodedOutputStream
1021 .computeEnumSize(1, status_);
1022 }
1023 {
1024 int dataSize = 0;
1025 for (int i = 0; i < solution_.size(); i++) {
1026 dataSize += com.google.protobuf.CodedOutputStream
1027 .computeInt64SizeNoTag(solution_.getLong(i));
1028 }
1029 size += dataSize;
1030 if (!getSolutionList().isEmpty()) {
1031 size += 1;
1032 size += com.google.protobuf.CodedOutputStream
1033 .computeInt32SizeNoTag(dataSize);
1034 }
1035 solutionMemoizedSerializedSize = dataSize;
1036 }
1037 if (objectiveValue_ != 0D) {
1038 size += com.google.protobuf.CodedOutputStream
1039 .computeDoubleSize(3, objectiveValue_);
1040 }
1041 if (bestObjectiveBound_ != 0D) {
1042 size += com.google.protobuf.CodedOutputStream
1043 .computeDoubleSize(4, bestObjectiveBound_);
1044 }
1045 if (allSolutionsWereFound_ != false) {
1046 size += com.google.protobuf.CodedOutputStream
1047 .computeBoolSize(5, allSolutionsWereFound_);
1048 }
1049 if (numBooleans_ != 0L) {
1050 size += com.google.protobuf.CodedOutputStream
1051 .computeInt64Size(10, numBooleans_);
1052 }
1053 if (numConflicts_ != 0L) {
1054 size += com.google.protobuf.CodedOutputStream
1055 .computeInt64Size(11, numConflicts_);
1056 }
1057 if (numBranches_ != 0L) {
1058 size += com.google.protobuf.CodedOutputStream
1059 .computeInt64Size(12, numBranches_);
1060 }
1061 if (numBinaryPropagations_ != 0L) {
1062 size += com.google.protobuf.CodedOutputStream
1063 .computeInt64Size(13, numBinaryPropagations_);
1064 }
1065 if (numIntegerPropagations_ != 0L) {
1066 size += com.google.protobuf.CodedOutputStream
1067 .computeInt64Size(14, numIntegerPropagations_);
1068 }
1069 if (wallTime_ != 0D) {
1070 size += com.google.protobuf.CodedOutputStream
1071 .computeDoubleSize(15, wallTime_);
1072 }
1073 if (userTime_ != 0D) {
1074 size += com.google.protobuf.CodedOutputStream
1075 .computeDoubleSize(16, userTime_);
1076 }
1077 if (deterministicTime_ != 0D) {
1078 size += com.google.protobuf.CodedOutputStream
1079 .computeDoubleSize(17, deterministicTime_);
1080 }
1081 {
1082 int dataSize = 0;
1083 for (int i = 0; i < solutionLowerBounds_.size(); i++) {
1084 dataSize += com.google.protobuf.CodedOutputStream
1085 .computeInt64SizeNoTag(solutionLowerBounds_.getLong(i));
1086 }
1087 size += dataSize;
1088 if (!getSolutionLowerBoundsList().isEmpty()) {
1089 size += 2;
1090 size += com.google.protobuf.CodedOutputStream
1091 .computeInt32SizeNoTag(dataSize);
1092 }
1093 solutionLowerBoundsMemoizedSerializedSize = dataSize;
1094 }
1095 {
1096 int dataSize = 0;
1097 for (int i = 0; i < solutionUpperBounds_.size(); i++) {
1098 dataSize += com.google.protobuf.CodedOutputStream
1099 .computeInt64SizeNoTag(solutionUpperBounds_.getLong(i));
1100 }
1101 size += dataSize;
1102 if (!getSolutionUpperBoundsList().isEmpty()) {
1103 size += 2;
1104 size += com.google.protobuf.CodedOutputStream
1105 .computeInt32SizeNoTag(dataSize);
1106 }
1107 solutionUpperBoundsMemoizedSerializedSize = dataSize;
1108 }
1109 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(solutionInfo_)) {
1110 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, solutionInfo_);
1111 }
1112 for (int i = 0; i < tightenedVariables_.size(); i++) {
1113 size += com.google.protobuf.CodedOutputStream
1114 .computeMessageSize(21, tightenedVariables_.get(i));
1115 }
1116 if (primalIntegral_ != 0D) {
1117 size += com.google.protobuf.CodedOutputStream
1118 .computeDoubleSize(22, primalIntegral_);
1119 }
1120 {
1121 int dataSize = 0;
1122 for (int i = 0; i < sufficientAssumptionsForInfeasibility_.size(); i++) {
1123 dataSize += com.google.protobuf.CodedOutputStream
1124 .computeInt32SizeNoTag(sufficientAssumptionsForInfeasibility_.getInt(i));
1125 }
1126 size += dataSize;
1128 size += 2;
1129 size += com.google.protobuf.CodedOutputStream
1130 .computeInt32SizeNoTag(dataSize);
1131 }
1132 sufficientAssumptionsForInfeasibilityMemoizedSerializedSize = dataSize;
1133 }
1134 if (numRestarts_ != 0L) {
1135 size += com.google.protobuf.CodedOutputStream
1136 .computeInt64Size(24, numRestarts_);
1137 }
1138 if (numLpIterations_ != 0L) {
1139 size += com.google.protobuf.CodedOutputStream
1140 .computeInt64Size(25, numLpIterations_);
1141 }
1142 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(solveLog_)) {
1143 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(26, solveLog_);
1144 }
1145 size += unknownFields.getSerializedSize();
1146 memoizedSize = size;
1147 return size;
1148 }
1149
1150 @java.lang.Override
1151 public boolean equals(final java.lang.Object obj) {
1152 if (obj == this) {
1153 return true;
1154 }
1155 if (!(obj instanceof com.google.ortools.sat.CpSolverResponse)) {
1156 return super.equals(obj);
1157 }
1158 com.google.ortools.sat.CpSolverResponse other = (com.google.ortools.sat.CpSolverResponse) obj;
1159
1160 if (status_ != other.status_) return false;
1161 if (!getSolutionList()
1162 .equals(other.getSolutionList())) return false;
1163 if (java.lang.Double.doubleToLongBits(getObjectiveValue())
1164 != java.lang.Double.doubleToLongBits(
1165 other.getObjectiveValue())) return false;
1166 if (java.lang.Double.doubleToLongBits(getBestObjectiveBound())
1167 != java.lang.Double.doubleToLongBits(
1168 other.getBestObjectiveBound())) return false;
1170 .equals(other.getSolutionLowerBoundsList())) return false;
1172 .equals(other.getSolutionUpperBoundsList())) return false;
1174 .equals(other.getTightenedVariablesList())) return false;
1176 .equals(other.getSufficientAssumptionsForInfeasibilityList())) return false;
1178 != other.getAllSolutionsWereFound()) return false;
1179 if (getNumBooleans()
1180 != other.getNumBooleans()) return false;
1181 if (getNumConflicts()
1182 != other.getNumConflicts()) return false;
1183 if (getNumBranches()
1184 != other.getNumBranches()) return false;
1186 != other.getNumBinaryPropagations()) return false;
1188 != other.getNumIntegerPropagations()) return false;
1189 if (getNumRestarts()
1190 != other.getNumRestarts()) return false;
1191 if (getNumLpIterations()
1192 != other.getNumLpIterations()) return false;
1193 if (java.lang.Double.doubleToLongBits(getWallTime())
1194 != java.lang.Double.doubleToLongBits(
1195 other.getWallTime())) return false;
1196 if (java.lang.Double.doubleToLongBits(getUserTime())
1197 != java.lang.Double.doubleToLongBits(
1198 other.getUserTime())) return false;
1199 if (java.lang.Double.doubleToLongBits(getDeterministicTime())
1200 != java.lang.Double.doubleToLongBits(
1201 other.getDeterministicTime())) return false;
1202 if (java.lang.Double.doubleToLongBits(getPrimalIntegral())
1203 != java.lang.Double.doubleToLongBits(
1204 other.getPrimalIntegral())) return false;
1205 if (!getSolutionInfo()
1206 .equals(other.getSolutionInfo())) return false;
1207 if (!getSolveLog()
1208 .equals(other.getSolveLog())) return false;
1209 if (!unknownFields.equals(other.unknownFields)) return false;
1210 return true;
1211 }
1212
1213 @java.lang.Override
1214 public int hashCode() {
1215 if (memoizedHashCode != 0) {
1216 return memoizedHashCode;
1217 }
1218 int hash = 41;
1219 hash = (19 * hash) + getDescriptor().hashCode();
1220 hash = (37 * hash) + STATUS_FIELD_NUMBER;
1221 hash = (53 * hash) + status_;
1222 if (getSolutionCount() > 0) {
1223 hash = (37 * hash) + SOLUTION_FIELD_NUMBER;
1224 hash = (53 * hash) + getSolutionList().hashCode();
1225 }
1226 hash = (37 * hash) + OBJECTIVE_VALUE_FIELD_NUMBER;
1227 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1228 java.lang.Double.doubleToLongBits(getObjectiveValue()));
1229 hash = (37 * hash) + BEST_OBJECTIVE_BOUND_FIELD_NUMBER;
1230 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1231 java.lang.Double.doubleToLongBits(getBestObjectiveBound()));
1232 if (getSolutionLowerBoundsCount() > 0) {
1233 hash = (37 * hash) + SOLUTION_LOWER_BOUNDS_FIELD_NUMBER;
1234 hash = (53 * hash) + getSolutionLowerBoundsList().hashCode();
1235 }
1236 if (getSolutionUpperBoundsCount() > 0) {
1237 hash = (37 * hash) + SOLUTION_UPPER_BOUNDS_FIELD_NUMBER;
1238 hash = (53 * hash) + getSolutionUpperBoundsList().hashCode();
1239 }
1240 if (getTightenedVariablesCount() > 0) {
1241 hash = (37 * hash) + TIGHTENED_VARIABLES_FIELD_NUMBER;
1242 hash = (53 * hash) + getTightenedVariablesList().hashCode();
1243 }
1246 hash = (53 * hash) + getSufficientAssumptionsForInfeasibilityList().hashCode();
1247 }
1248 hash = (37 * hash) + ALL_SOLUTIONS_WERE_FOUND_FIELD_NUMBER;
1249 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1251 hash = (37 * hash) + NUM_BOOLEANS_FIELD_NUMBER;
1252 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1253 getNumBooleans());
1254 hash = (37 * hash) + NUM_CONFLICTS_FIELD_NUMBER;
1255 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1256 getNumConflicts());
1257 hash = (37 * hash) + NUM_BRANCHES_FIELD_NUMBER;
1258 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1259 getNumBranches());
1260 hash = (37 * hash) + NUM_BINARY_PROPAGATIONS_FIELD_NUMBER;
1261 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1263 hash = (37 * hash) + NUM_INTEGER_PROPAGATIONS_FIELD_NUMBER;
1264 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1266 hash = (37 * hash) + NUM_RESTARTS_FIELD_NUMBER;
1267 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1268 getNumRestarts());
1269 hash = (37 * hash) + NUM_LP_ITERATIONS_FIELD_NUMBER;
1270 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1272 hash = (37 * hash) + WALL_TIME_FIELD_NUMBER;
1273 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1274 java.lang.Double.doubleToLongBits(getWallTime()));
1275 hash = (37 * hash) + USER_TIME_FIELD_NUMBER;
1276 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1277 java.lang.Double.doubleToLongBits(getUserTime()));
1278 hash = (37 * hash) + DETERMINISTIC_TIME_FIELD_NUMBER;
1279 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1280 java.lang.Double.doubleToLongBits(getDeterministicTime()));
1281 hash = (37 * hash) + PRIMAL_INTEGRAL_FIELD_NUMBER;
1282 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1283 java.lang.Double.doubleToLongBits(getPrimalIntegral()));
1284 hash = (37 * hash) + SOLUTION_INFO_FIELD_NUMBER;
1285 hash = (53 * hash) + getSolutionInfo().hashCode();
1286 hash = (37 * hash) + SOLVE_LOG_FIELD_NUMBER;
1287 hash = (53 * hash) + getSolveLog().hashCode();
1288 hash = (29 * hash) + unknownFields.hashCode();
1289 memoizedHashCode = hash;
1290 return hash;
1291 }
1292
1293 public static com.google.ortools.sat.CpSolverResponse parseFrom(
1294 java.nio.ByteBuffer data)
1295 throws com.google.protobuf.InvalidProtocolBufferException {
1296 return PARSER.parseFrom(data);
1297 }
1298 public static com.google.ortools.sat.CpSolverResponse parseFrom(
1299 java.nio.ByteBuffer data,
1300 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1301 throws com.google.protobuf.InvalidProtocolBufferException {
1302 return PARSER.parseFrom(data, extensionRegistry);
1303 }
1304 public static com.google.ortools.sat.CpSolverResponse parseFrom(
1305 com.google.protobuf.ByteString data)
1306 throws com.google.protobuf.InvalidProtocolBufferException {
1307 return PARSER.parseFrom(data);
1308 }
1309 public static com.google.ortools.sat.CpSolverResponse parseFrom(
1310 com.google.protobuf.ByteString data,
1311 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1312 throws com.google.protobuf.InvalidProtocolBufferException {
1313 return PARSER.parseFrom(data, extensionRegistry);
1314 }
1315 public static com.google.ortools.sat.CpSolverResponse parseFrom(byte[] data)
1316 throws com.google.protobuf.InvalidProtocolBufferException {
1317 return PARSER.parseFrom(data);
1318 }
1319 public static com.google.ortools.sat.CpSolverResponse parseFrom(
1320 byte[] data,
1321 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1322 throws com.google.protobuf.InvalidProtocolBufferException {
1323 return PARSER.parseFrom(data, extensionRegistry);
1324 }
1325 public static com.google.ortools.sat.CpSolverResponse parseFrom(java.io.InputStream input)
1326 throws java.io.IOException {
1327 return com.google.protobuf.GeneratedMessageV3
1328 .parseWithIOException(PARSER, input);
1329 }
1330 public static com.google.ortools.sat.CpSolverResponse parseFrom(
1331 java.io.InputStream input,
1332 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1333 throws java.io.IOException {
1334 return com.google.protobuf.GeneratedMessageV3
1335 .parseWithIOException(PARSER, input, extensionRegistry);
1336 }
1337 public static com.google.ortools.sat.CpSolverResponse parseDelimitedFrom(java.io.InputStream input)
1338 throws java.io.IOException {
1339 return com.google.protobuf.GeneratedMessageV3
1340 .parseDelimitedWithIOException(PARSER, input);
1341 }
1342 public static com.google.ortools.sat.CpSolverResponse parseDelimitedFrom(
1343 java.io.InputStream input,
1344 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1345 throws java.io.IOException {
1346 return com.google.protobuf.GeneratedMessageV3
1347 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
1348 }
1349 public static com.google.ortools.sat.CpSolverResponse parseFrom(
1350 com.google.protobuf.CodedInputStream input)
1351 throws java.io.IOException {
1352 return com.google.protobuf.GeneratedMessageV3
1353 .parseWithIOException(PARSER, input);
1354 }
1355 public static com.google.ortools.sat.CpSolverResponse parseFrom(
1356 com.google.protobuf.CodedInputStream input,
1357 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1358 throws java.io.IOException {
1359 return com.google.protobuf.GeneratedMessageV3
1360 .parseWithIOException(PARSER, input, extensionRegistry);
1361 }
1362
1363 @java.lang.Override
1364 public Builder newBuilderForType() { return newBuilder(); }
1365 public static Builder newBuilder() {
1366 return DEFAULT_INSTANCE.toBuilder();
1367 }
1368 public static Builder newBuilder(com.google.ortools.sat.CpSolverResponse prototype) {
1369 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1370 }
1371 @java.lang.Override
1373 return this == DEFAULT_INSTANCE
1374 ? new Builder() : new Builder().mergeFrom(this);
1375 }
1376
1377 @java.lang.Override
1379 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1380 Builder builder = new Builder(parent);
1381 return builder;
1382 }
1393 public static final class Builder extends
1394 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
1395 // @@protoc_insertion_point(builder_implements:operations_research.sat.CpSolverResponse)
1396 com.google.ortools.sat.CpSolverResponseOrBuilder {
1397 public static final com.google.protobuf.Descriptors.Descriptor
1399 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_descriptor;
1400 }
1401
1402 @java.lang.Override
1403 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
1405 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_fieldAccessorTable
1406 .ensureFieldAccessorsInitialized(
1407 com.google.ortools.sat.CpSolverResponse.class, com.google.ortools.sat.CpSolverResponse.Builder.class);
1408 }
1409
1410 // Construct using com.google.ortools.sat.CpSolverResponse.newBuilder()
1411 private Builder() {
1412 maybeForceBuilderInitialization();
1413 }
1414
1415 private Builder(
1416 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1417 super(parent);
1418 maybeForceBuilderInitialization();
1419 }
1420 private void maybeForceBuilderInitialization() {
1421 if (com.google.protobuf.GeneratedMessageV3
1422 .alwaysUseFieldBuilders) {
1423 getTightenedVariablesFieldBuilder();
1424 }
1425 }
1426 @java.lang.Override
1427 public Builder clear() {
1428 super.clear();
1429 status_ = 0;
1430
1431 solution_ = emptyLongList();
1432 bitField0_ = (bitField0_ & ~0x00000001);
1433 objectiveValue_ = 0D;
1434
1435 bestObjectiveBound_ = 0D;
1436
1437 solutionLowerBounds_ = emptyLongList();
1438 bitField0_ = (bitField0_ & ~0x00000002);
1439 solutionUpperBounds_ = emptyLongList();
1440 bitField0_ = (bitField0_ & ~0x00000004);
1441 if (tightenedVariablesBuilder_ == null) {
1442 tightenedVariables_ = java.util.Collections.emptyList();
1443 bitField0_ = (bitField0_ & ~0x00000008);
1444 } else {
1445 tightenedVariablesBuilder_.clear();
1446 }
1447 sufficientAssumptionsForInfeasibility_ = emptyIntList();
1448 bitField0_ = (bitField0_ & ~0x00000010);
1449 allSolutionsWereFound_ = false;
1450
1451 numBooleans_ = 0L;
1452
1453 numConflicts_ = 0L;
1454
1455 numBranches_ = 0L;
1456
1457 numBinaryPropagations_ = 0L;
1458
1459 numIntegerPropagations_ = 0L;
1460
1461 numRestarts_ = 0L;
1462
1463 numLpIterations_ = 0L;
1464
1465 wallTime_ = 0D;
1466
1467 userTime_ = 0D;
1468
1469 deterministicTime_ = 0D;
1470
1471 primalIntegral_ = 0D;
1472
1473 solutionInfo_ = "";
1474
1475 solveLog_ = "";
1476
1477 return this;
1478 }
1479
1480 @java.lang.Override
1481 public com.google.protobuf.Descriptors.Descriptor
1483 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_descriptor;
1484 }
1485
1486 @java.lang.Override
1487 public com.google.ortools.sat.CpSolverResponse getDefaultInstanceForType() {
1488 return com.google.ortools.sat.CpSolverResponse.getDefaultInstance();
1489 }
1490
1491 @java.lang.Override
1492 public com.google.ortools.sat.CpSolverResponse build() {
1493 com.google.ortools.sat.CpSolverResponse result = buildPartial();
1494 if (!result.isInitialized()) {
1495 throw newUninitializedMessageException(result);
1496 }
1497 return result;
1498 }
1499
1500 @java.lang.Override
1501 public com.google.ortools.sat.CpSolverResponse buildPartial() {
1502 com.google.ortools.sat.CpSolverResponse result = new com.google.ortools.sat.CpSolverResponse(this);
1503 int from_bitField0_ = bitField0_;
1504 result.status_ = status_;
1505 if (((bitField0_ & 0x00000001) != 0)) {
1506 solution_.makeImmutable();
1507 bitField0_ = (bitField0_ & ~0x00000001);
1508 }
1509 result.solution_ = solution_;
1510 result.objectiveValue_ = objectiveValue_;
1511 result.bestObjectiveBound_ = bestObjectiveBound_;
1512 if (((bitField0_ & 0x00000002) != 0)) {
1513 solutionLowerBounds_.makeImmutable();
1514 bitField0_ = (bitField0_ & ~0x00000002);
1515 }
1516 result.solutionLowerBounds_ = solutionLowerBounds_;
1517 if (((bitField0_ & 0x00000004) != 0)) {
1518 solutionUpperBounds_.makeImmutable();
1519 bitField0_ = (bitField0_ & ~0x00000004);
1520 }
1521 result.solutionUpperBounds_ = solutionUpperBounds_;
1522 if (tightenedVariablesBuilder_ == null) {
1523 if (((bitField0_ & 0x00000008) != 0)) {
1524 tightenedVariables_ = java.util.Collections.unmodifiableList(tightenedVariables_);
1525 bitField0_ = (bitField0_ & ~0x00000008);
1526 }
1527 result.tightenedVariables_ = tightenedVariables_;
1528 } else {
1529 result.tightenedVariables_ = tightenedVariablesBuilder_.build();
1530 }
1531 if (((bitField0_ & 0x00000010) != 0)) {
1532 sufficientAssumptionsForInfeasibility_.makeImmutable();
1533 bitField0_ = (bitField0_ & ~0x00000010);
1534 }
1535 result.sufficientAssumptionsForInfeasibility_ = sufficientAssumptionsForInfeasibility_;
1536 result.allSolutionsWereFound_ = allSolutionsWereFound_;
1537 result.numBooleans_ = numBooleans_;
1538 result.numConflicts_ = numConflicts_;
1539 result.numBranches_ = numBranches_;
1540 result.numBinaryPropagations_ = numBinaryPropagations_;
1541 result.numIntegerPropagations_ = numIntegerPropagations_;
1542 result.numRestarts_ = numRestarts_;
1543 result.numLpIterations_ = numLpIterations_;
1544 result.wallTime_ = wallTime_;
1545 result.userTime_ = userTime_;
1546 result.deterministicTime_ = deterministicTime_;
1547 result.primalIntegral_ = primalIntegral_;
1548 result.solutionInfo_ = solutionInfo_;
1549 result.solveLog_ = solveLog_;
1550 onBuilt();
1551 return result;
1552 }
1553
1554 @java.lang.Override
1555 public Builder clone() {
1556 return super.clone();
1557 }
1558 @java.lang.Override
1560 com.google.protobuf.Descriptors.FieldDescriptor field,
1561 java.lang.Object value) {
1562 return super.setField(field, value);
1563 }
1564 @java.lang.Override
1566 com.google.protobuf.Descriptors.FieldDescriptor field) {
1567 return super.clearField(field);
1568 }
1569 @java.lang.Override
1571 com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1572 return super.clearOneof(oneof);
1573 }
1574 @java.lang.Override
1576 com.google.protobuf.Descriptors.FieldDescriptor field,
1577 int index, java.lang.Object value) {
1578 return super.setRepeatedField(field, index, value);
1579 }
1580 @java.lang.Override
1582 com.google.protobuf.Descriptors.FieldDescriptor field,
1583 java.lang.Object value) {
1584 return super.addRepeatedField(field, value);
1585 }
1586 @java.lang.Override
1587 public Builder mergeFrom(com.google.protobuf.Message other) {
1588 if (other instanceof com.google.ortools.sat.CpSolverResponse) {
1589 return mergeFrom((com.google.ortools.sat.CpSolverResponse)other);
1590 } else {
1591 super.mergeFrom(other);
1592 return this;
1593 }
1594 }
1595
1596 public Builder mergeFrom(com.google.ortools.sat.CpSolverResponse other) {
1597 if (other == com.google.ortools.sat.CpSolverResponse.getDefaultInstance()) return this;
1598 if (other.status_ != 0) {
1599 setStatusValue(other.getStatusValue());
1600 }
1601 if (!other.solution_.isEmpty()) {
1602 if (solution_.isEmpty()) {
1603 solution_ = other.solution_;
1604 bitField0_ = (bitField0_ & ~0x00000001);
1605 } else {
1606 ensureSolutionIsMutable();
1607 solution_.addAll(other.solution_);
1608 }
1609 onChanged();
1610 }
1611 if (other.getObjectiveValue() != 0D) {
1612 setObjectiveValue(other.getObjectiveValue());
1613 }
1614 if (other.getBestObjectiveBound() != 0D) {
1615 setBestObjectiveBound(other.getBestObjectiveBound());
1616 }
1617 if (!other.solutionLowerBounds_.isEmpty()) {
1618 if (solutionLowerBounds_.isEmpty()) {
1619 solutionLowerBounds_ = other.solutionLowerBounds_;
1620 bitField0_ = (bitField0_ & ~0x00000002);
1621 } else {
1622 ensureSolutionLowerBoundsIsMutable();
1623 solutionLowerBounds_.addAll(other.solutionLowerBounds_);
1624 }
1625 onChanged();
1626 }
1627 if (!other.solutionUpperBounds_.isEmpty()) {
1628 if (solutionUpperBounds_.isEmpty()) {
1629 solutionUpperBounds_ = other.solutionUpperBounds_;
1630 bitField0_ = (bitField0_ & ~0x00000004);
1631 } else {
1632 ensureSolutionUpperBoundsIsMutable();
1633 solutionUpperBounds_.addAll(other.solutionUpperBounds_);
1634 }
1635 onChanged();
1636 }
1637 if (tightenedVariablesBuilder_ == null) {
1638 if (!other.tightenedVariables_.isEmpty()) {
1639 if (tightenedVariables_.isEmpty()) {
1640 tightenedVariables_ = other.tightenedVariables_;
1641 bitField0_ = (bitField0_ & ~0x00000008);
1642 } else {
1643 ensureTightenedVariablesIsMutable();
1644 tightenedVariables_.addAll(other.tightenedVariables_);
1645 }
1646 onChanged();
1647 }
1648 } else {
1649 if (!other.tightenedVariables_.isEmpty()) {
1650 if (tightenedVariablesBuilder_.isEmpty()) {
1651 tightenedVariablesBuilder_.dispose();
1652 tightenedVariablesBuilder_ = null;
1653 tightenedVariables_ = other.tightenedVariables_;
1654 bitField0_ = (bitField0_ & ~0x00000008);
1655 tightenedVariablesBuilder_ =
1656 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
1657 getTightenedVariablesFieldBuilder() : null;
1658 } else {
1659 tightenedVariablesBuilder_.addAllMessages(other.tightenedVariables_);
1660 }
1661 }
1662 }
1663 if (!other.sufficientAssumptionsForInfeasibility_.isEmpty()) {
1664 if (sufficientAssumptionsForInfeasibility_.isEmpty()) {
1665 sufficientAssumptionsForInfeasibility_ = other.sufficientAssumptionsForInfeasibility_;
1666 bitField0_ = (bitField0_ & ~0x00000010);
1667 } else {
1668 ensureSufficientAssumptionsForInfeasibilityIsMutable();
1669 sufficientAssumptionsForInfeasibility_.addAll(other.sufficientAssumptionsForInfeasibility_);
1670 }
1671 onChanged();
1672 }
1673 if (other.getAllSolutionsWereFound() != false) {
1674 setAllSolutionsWereFound(other.getAllSolutionsWereFound());
1675 }
1676 if (other.getNumBooleans() != 0L) {
1677 setNumBooleans(other.getNumBooleans());
1678 }
1679 if (other.getNumConflicts() != 0L) {
1680 setNumConflicts(other.getNumConflicts());
1681 }
1682 if (other.getNumBranches() != 0L) {
1683 setNumBranches(other.getNumBranches());
1684 }
1685 if (other.getNumBinaryPropagations() != 0L) {
1686 setNumBinaryPropagations(other.getNumBinaryPropagations());
1687 }
1688 if (other.getNumIntegerPropagations() != 0L) {
1689 setNumIntegerPropagations(other.getNumIntegerPropagations());
1690 }
1691 if (other.getNumRestarts() != 0L) {
1692 setNumRestarts(other.getNumRestarts());
1693 }
1694 if (other.getNumLpIterations() != 0L) {
1695 setNumLpIterations(other.getNumLpIterations());
1696 }
1697 if (other.getWallTime() != 0D) {
1698 setWallTime(other.getWallTime());
1699 }
1700 if (other.getUserTime() != 0D) {
1701 setUserTime(other.getUserTime());
1702 }
1703 if (other.getDeterministicTime() != 0D) {
1704 setDeterministicTime(other.getDeterministicTime());
1705 }
1706 if (other.getPrimalIntegral() != 0D) {
1707 setPrimalIntegral(other.getPrimalIntegral());
1708 }
1709 if (!other.getSolutionInfo().isEmpty()) {
1710 solutionInfo_ = other.solutionInfo_;
1711 onChanged();
1712 }
1713 if (!other.getSolveLog().isEmpty()) {
1714 solveLog_ = other.solveLog_;
1715 onChanged();
1716 }
1717 this.mergeUnknownFields(other.unknownFields);
1718 onChanged();
1719 return this;
1720 }
1721
1722 @java.lang.Override
1723 public final boolean isInitialized() {
1724 return true;
1725 }
1726
1727 @java.lang.Override
1729 com.google.protobuf.CodedInputStream input,
1730 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1731 throws java.io.IOException {
1732 com.google.ortools.sat.CpSolverResponse parsedMessage = null;
1733 try {
1734 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
1735 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1736 parsedMessage = (com.google.ortools.sat.CpSolverResponse) e.getUnfinishedMessage();
1737 throw e.unwrapIOException();
1738 } finally {
1739 if (parsedMessage != null) {
1740 mergeFrom(parsedMessage);
1741 }
1742 }
1743 return this;
1744 }
1745 private int bitField0_;
1746
1747 private int status_ = 0;
1756 @java.lang.Override public int getStatusValue() {
1757 return status_;
1758 }
1768 public Builder setStatusValue(int value) {
1769
1770 status_ = value;
1771 onChanged();
1772 return this;
1773 }
1782 @java.lang.Override
1783 public com.google.ortools.sat.CpSolverStatus getStatus() {
1784 @SuppressWarnings("deprecation")
1785 com.google.ortools.sat.CpSolverStatus result = com.google.ortools.sat.CpSolverStatus.valueOf(status_);
1786 return result == null ? com.google.ortools.sat.CpSolverStatus.UNRECOGNIZED : result;
1787 }
1797 public Builder setStatus(com.google.ortools.sat.CpSolverStatus value) {
1798 if (value == null) {
1799 throw new NullPointerException();
1800 }
1801
1802 status_ = value.getNumber();
1803 onChanged();
1804 return this;
1805 }
1815
1816 status_ = 0;
1817 onChanged();
1818 return this;
1819 }
1820
1821 private com.google.protobuf.Internal.LongList solution_ = emptyLongList();
1822 private void ensureSolutionIsMutable() {
1823 if (!((bitField0_ & 0x00000001) != 0)) {
1824 solution_ = mutableCopy(solution_);
1825 bitField0_ |= 0x00000001;
1826 }
1827 }
1839 public java.util.List<java.lang.Long>
1841 return ((bitField0_ & 0x00000001) != 0) ?
1842 java.util.Collections.unmodifiableList(solution_) : solution_;
1843 }
1855 public int getSolutionCount() {
1856 return solution_.size();
1857 }
1870 public long getSolution(int index) {
1871 return solution_.getLong(index);
1872 }
1887 int index, long value) {
1888 ensureSolutionIsMutable();
1889 solution_.setLong(index, value);
1890 onChanged();
1891 return this;
1892 }
1905 public Builder addSolution(long value) {
1906 ensureSolutionIsMutable();
1907 solution_.addLong(value);
1908 onChanged();
1909 return this;
1910 }
1924 java.lang.Iterable<? extends java.lang.Long> values) {
1925 ensureSolutionIsMutable();
1926 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1927 values, solution_);
1928 onChanged();
1929 return this;
1930 }
1943 solution_ = emptyLongList();
1944 bitField0_ = (bitField0_ & ~0x00000001);
1945 onChanged();
1946 return this;
1947 }
1948
1949 private double objectiveValue_ ;
1961 @java.lang.Override
1962 public double getObjectiveValue() {
1963 return objectiveValue_;
1964 }
1977 public Builder setObjectiveValue(double value) {
1978
1979 objectiveValue_ = value;
1980 onChanged();
1981 return this;
1982 }
1995
1996 objectiveValue_ = 0D;
1997 onChanged();
1998 return this;
1999 }
2000
2001 private double bestObjectiveBound_ ;
2012 @java.lang.Override
2013 public double getBestObjectiveBound() {
2014 return bestObjectiveBound_;
2015 }
2027 public Builder setBestObjectiveBound(double value) {
2028
2029 bestObjectiveBound_ = value;
2030 onChanged();
2031 return this;
2032 }
2044
2045 bestObjectiveBound_ = 0D;
2046 onChanged();
2047 return this;
2048 }
2049
2050 private com.google.protobuf.Internal.LongList solutionLowerBounds_ = emptyLongList();
2051 private void ensureSolutionLowerBoundsIsMutable() {
2052 if (!((bitField0_ & 0x00000002) != 0)) {
2053 solutionLowerBounds_ = mutableCopy(solutionLowerBounds_);
2054 bitField0_ |= 0x00000002;
2055 }
2056 }
2070 public java.util.List<java.lang.Long>
2072 return ((bitField0_ & 0x00000002) != 0) ?
2073 java.util.Collections.unmodifiableList(solutionLowerBounds_) : solutionLowerBounds_;
2074 }
2089 return solutionLowerBounds_.size();
2090 }
2105 public long getSolutionLowerBounds(int index) {
2106 return solutionLowerBounds_.getLong(index);
2107 }
2124 int index, long value) {
2125 ensureSolutionLowerBoundsIsMutable();
2126 solutionLowerBounds_.setLong(index, value);
2127 onChanged();
2128 return this;
2129 }
2144 public Builder addSolutionLowerBounds(long value) {
2145 ensureSolutionLowerBoundsIsMutable();
2146 solutionLowerBounds_.addLong(value);
2147 onChanged();
2148 return this;
2149 }
2165 java.lang.Iterable<? extends java.lang.Long> values) {
2166 ensureSolutionLowerBoundsIsMutable();
2167 com.google.protobuf.AbstractMessageLite.Builder.addAll(
2168 values, solutionLowerBounds_);
2169 onChanged();
2170 return this;
2171 }
2186 solutionLowerBounds_ = emptyLongList();
2187 bitField0_ = (bitField0_ & ~0x00000002);
2188 onChanged();
2189 return this;
2190 }
2191
2192 private com.google.protobuf.Internal.LongList solutionUpperBounds_ = emptyLongList();
2193 private void ensureSolutionUpperBoundsIsMutable() {
2194 if (!((bitField0_ & 0x00000004) != 0)) {
2195 solutionUpperBounds_ = mutableCopy(solutionUpperBounds_);
2196 bitField0_ |= 0x00000004;
2197 }
2198 }
2203 public java.util.List<java.lang.Long>
2205 return ((bitField0_ & 0x00000004) != 0) ?
2206 java.util.Collections.unmodifiableList(solutionUpperBounds_) : solutionUpperBounds_;
2207 }
2213 return solutionUpperBounds_.size();
2214 }
2220 public long getSolutionUpperBounds(int index) {
2221 return solutionUpperBounds_.getLong(index);
2222 }
2230 int index, long value) {
2231 ensureSolutionUpperBoundsIsMutable();
2232 solutionUpperBounds_.setLong(index, value);
2233 onChanged();
2234 return this;
2235 }
2241 public Builder addSolutionUpperBounds(long value) {
2242 ensureSolutionUpperBoundsIsMutable();
2243 solutionUpperBounds_.addLong(value);
2244 onChanged();
2245 return this;
2246 }
2253 java.lang.Iterable<? extends java.lang.Long> values) {
2254 ensureSolutionUpperBoundsIsMutable();
2255 com.google.protobuf.AbstractMessageLite.Builder.addAll(
2256 values, solutionUpperBounds_);
2257 onChanged();
2258 return this;
2259 }
2265 solutionUpperBounds_ = emptyLongList();
2266 bitField0_ = (bitField0_ & ~0x00000004);
2267 onChanged();
2268 return this;
2269 }
2270
2271 private java.util.List<com.google.ortools.sat.IntegerVariableProto> tightenedVariables_ =
2272 java.util.Collections.emptyList();
2273 private void ensureTightenedVariablesIsMutable() {
2274 if (!((bitField0_ & 0x00000008) != 0)) {
2275 tightenedVariables_ = new java.util.ArrayList<com.google.ortools.sat.IntegerVariableProto>(tightenedVariables_);
2276 bitField0_ |= 0x00000008;
2277 }
2278 }
2279
2280 private com.google.protobuf.RepeatedFieldBuilderV3<
2281 com.google.ortools.sat.IntegerVariableProto, com.google.ortools.sat.IntegerVariableProto.Builder, com.google.ortools.sat.IntegerVariableProtoOrBuilder> tightenedVariablesBuilder_;
2282
2299 public java.util.List<com.google.ortools.sat.IntegerVariableProto> getTightenedVariablesList() {
2300 if (tightenedVariablesBuilder_ == null) {
2301 return java.util.Collections.unmodifiableList(tightenedVariables_);
2302 } else {
2303 return tightenedVariablesBuilder_.getMessageList();
2304 }
2305 }
2323 if (tightenedVariablesBuilder_ == null) {
2324 return tightenedVariables_.size();
2325 } else {
2326 return tightenedVariablesBuilder_.getCount();
2327 }
2328 }
2345 public com.google.ortools.sat.IntegerVariableProto getTightenedVariables(int index) {
2346 if (tightenedVariablesBuilder_ == null) {
2347 return tightenedVariables_.get(index);
2348 } else {
2349 return tightenedVariablesBuilder_.getMessage(index);
2350 }
2351 }
2369 int index, com.google.ortools.sat.IntegerVariableProto value) {
2370 if (tightenedVariablesBuilder_ == null) {
2371 if (value == null) {
2372 throw new NullPointerException();
2373 }
2374 ensureTightenedVariablesIsMutable();
2375 tightenedVariables_.set(index, value);
2376 onChanged();
2377 } else {
2378 tightenedVariablesBuilder_.setMessage(index, value);
2379 }
2380 return this;
2381 }
2399 int index, com.google.ortools.sat.IntegerVariableProto.Builder builderForValue) {
2400 if (tightenedVariablesBuilder_ == null) {
2401 ensureTightenedVariablesIsMutable();
2402 tightenedVariables_.set(index, builderForValue.build());
2403 onChanged();
2404 } else {
2405 tightenedVariablesBuilder_.setMessage(index, builderForValue.build());
2406 }
2407 return this;
2408 }
2425 public Builder addTightenedVariables(com.google.ortools.sat.IntegerVariableProto value) {
2426 if (tightenedVariablesBuilder_ == null) {
2427 if (value == null) {
2428 throw new NullPointerException();
2429 }
2430 ensureTightenedVariablesIsMutable();
2431 tightenedVariables_.add(value);
2432 onChanged();
2433 } else {
2434 tightenedVariablesBuilder_.addMessage(value);
2435 }
2436 return this;
2437 }
2455 int index, com.google.ortools.sat.IntegerVariableProto value) {
2456 if (tightenedVariablesBuilder_ == null) {
2457 if (value == null) {
2458 throw new NullPointerException();
2459 }
2460 ensureTightenedVariablesIsMutable();
2461 tightenedVariables_.add(index, value);
2462 onChanged();
2463 } else {
2464 tightenedVariablesBuilder_.addMessage(index, value);
2465 }
2466 return this;
2467 }
2485 com.google.ortools.sat.IntegerVariableProto.Builder builderForValue) {
2486 if (tightenedVariablesBuilder_ == null) {
2487 ensureTightenedVariablesIsMutable();
2488 tightenedVariables_.add(builderForValue.build());
2489 onChanged();
2490 } else {
2491 tightenedVariablesBuilder_.addMessage(builderForValue.build());
2492 }
2493 return this;
2494 }
2512 int index, com.google.ortools.sat.IntegerVariableProto.Builder builderForValue) {
2513 if (tightenedVariablesBuilder_ == null) {
2514 ensureTightenedVariablesIsMutable();
2515 tightenedVariables_.add(index, builderForValue.build());
2516 onChanged();
2517 } else {
2518 tightenedVariablesBuilder_.addMessage(index, builderForValue.build());
2519 }
2520 return this;
2521 }
2539 java.lang.Iterable<? extends com.google.ortools.sat.IntegerVariableProto> values) {
2540 if (tightenedVariablesBuilder_ == null) {
2541 ensureTightenedVariablesIsMutable();
2542 com.google.protobuf.AbstractMessageLite.Builder.addAll(
2543 values, tightenedVariables_);
2544 onChanged();
2545 } else {
2546 tightenedVariablesBuilder_.addAllMessages(values);
2547 }
2548 return this;
2549 }
2567 if (tightenedVariablesBuilder_ == null) {
2568 tightenedVariables_ = java.util.Collections.emptyList();
2569 bitField0_ = (bitField0_ & ~0x00000008);
2570 onChanged();
2571 } else {
2572 tightenedVariablesBuilder_.clear();
2573 }
2574 return this;
2575 }
2593 if (tightenedVariablesBuilder_ == null) {
2594 ensureTightenedVariablesIsMutable();
2595 tightenedVariables_.remove(index);
2596 onChanged();
2597 } else {
2598 tightenedVariablesBuilder_.remove(index);
2599 }
2600 return this;
2601 }
2618 public com.google.ortools.sat.IntegerVariableProto.Builder getTightenedVariablesBuilder(
2619 int index) {
2620 return getTightenedVariablesFieldBuilder().getBuilder(index);
2621 }
2638 public com.google.ortools.sat.IntegerVariableProtoOrBuilder getTightenedVariablesOrBuilder(
2639 int index) {
2640 if (tightenedVariablesBuilder_ == null) {
2641 return tightenedVariables_.get(index); } else {
2642 return tightenedVariablesBuilder_.getMessageOrBuilder(index);
2643 }
2644 }
2661 public java.util.List<? extends com.google.ortools.sat.IntegerVariableProtoOrBuilder>
2663 if (tightenedVariablesBuilder_ != null) {
2664 return tightenedVariablesBuilder_.getMessageOrBuilderList();
2665 } else {
2666 return java.util.Collections.unmodifiableList(tightenedVariables_);
2667 }
2668 }
2685 public com.google.ortools.sat.IntegerVariableProto.Builder addTightenedVariablesBuilder() {
2686 return getTightenedVariablesFieldBuilder().addBuilder(
2687 com.google.ortools.sat.IntegerVariableProto.getDefaultInstance());
2688 }
2705 public com.google.ortools.sat.IntegerVariableProto.Builder addTightenedVariablesBuilder(
2706 int index) {
2707 return getTightenedVariablesFieldBuilder().addBuilder(
2708 index, com.google.ortools.sat.IntegerVariableProto.getDefaultInstance());
2709 }
2726 public java.util.List<com.google.ortools.sat.IntegerVariableProto.Builder>
2728 return getTightenedVariablesFieldBuilder().getBuilderList();
2729 }
2730 private com.google.protobuf.RepeatedFieldBuilderV3<
2731 com.google.ortools.sat.IntegerVariableProto, com.google.ortools.sat.IntegerVariableProto.Builder, com.google.ortools.sat.IntegerVariableProtoOrBuilder>
2732 getTightenedVariablesFieldBuilder() {
2733 if (tightenedVariablesBuilder_ == null) {
2734 tightenedVariablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
2735 com.google.ortools.sat.IntegerVariableProto, com.google.ortools.sat.IntegerVariableProto.Builder, com.google.ortools.sat.IntegerVariableProtoOrBuilder>(
2736 tightenedVariables_,
2737 ((bitField0_ & 0x00000008) != 0),
2738 getParentForChildren(),
2739 isClean());
2740 tightenedVariables_ = null;
2741 }
2742 return tightenedVariablesBuilder_;
2743 }
2744
2745 private com.google.protobuf.Internal.IntList sufficientAssumptionsForInfeasibility_ = emptyIntList();
2746 private void ensureSufficientAssumptionsForInfeasibilityIsMutable() {
2747 if (!((bitField0_ & 0x00000010) != 0)) {
2748 sufficientAssumptionsForInfeasibility_ = mutableCopy(sufficientAssumptionsForInfeasibility_);
2749 bitField0_ |= 0x00000010;
2750 }
2751 }
2774 public java.util.List<java.lang.Integer>
2776 return ((bitField0_ & 0x00000010) != 0) ?
2777 java.util.Collections.unmodifiableList(sufficientAssumptionsForInfeasibility_) : sufficientAssumptionsForInfeasibility_;
2778 }
2802 return sufficientAssumptionsForInfeasibility_.size();
2803 }
2828 return sufficientAssumptionsForInfeasibility_.getInt(index);
2829 }
2855 int index, int value) {
2856 ensureSufficientAssumptionsForInfeasibilityIsMutable();
2857 sufficientAssumptionsForInfeasibility_.setInt(index, value);
2858 onChanged();
2859 return this;
2860 }
2885 ensureSufficientAssumptionsForInfeasibilityIsMutable();
2886 sufficientAssumptionsForInfeasibility_.addInt(value);
2887 onChanged();
2888 return this;
2889 }
2914 java.lang.Iterable<? extends java.lang.Integer> values) {
2915 ensureSufficientAssumptionsForInfeasibilityIsMutable();
2916 com.google.protobuf.AbstractMessageLite.Builder.addAll(
2917 values, sufficientAssumptionsForInfeasibility_);
2918 onChanged();
2919 return this;
2920 }
2944 sufficientAssumptionsForInfeasibility_ = emptyIntList();
2945 bitField0_ = (bitField0_ & ~0x00000010);
2946 onChanged();
2947 return this;
2948 }
2949
2950 private boolean allSolutionsWereFound_ ;
2962 @java.lang.Override
2963 public boolean getAllSolutionsWereFound() {
2964 return allSolutionsWereFound_;
2965 }
2978 public Builder setAllSolutionsWereFound(boolean value) {
2979
2980 allSolutionsWereFound_ = value;
2981 onChanged();
2982 return this;
2983 }
2996
2997 allSolutionsWereFound_ = false;
2998 onChanged();
2999 return this;
3000 }
3001
3002 private long numBooleans_ ;
3011 @java.lang.Override
3012 public long getNumBooleans() {
3013 return numBooleans_;
3014 }
3024 public Builder setNumBooleans(long value) {
3025
3026 numBooleans_ = value;
3027 onChanged();
3028 return this;
3029 }
3039
3040 numBooleans_ = 0L;
3041 onChanged();
3042 return this;
3043 }
3044
3045 private long numConflicts_ ;
3050 @java.lang.Override
3051 public long getNumConflicts() {
3052 return numConflicts_;
3053 }
3059 public Builder setNumConflicts(long value) {
3060
3061 numConflicts_ = value;
3062 onChanged();
3063 return this;
3064 }
3070
3071 numConflicts_ = 0L;
3072 onChanged();
3073 return this;
3074 }
3075
3076 private long numBranches_ ;
3081 @java.lang.Override
3082 public long getNumBranches() {
3083 return numBranches_;
3084 }
3090 public Builder setNumBranches(long value) {
3091
3092 numBranches_ = value;
3093 onChanged();
3094 return this;
3095 }
3101
3102 numBranches_ = 0L;
3103 onChanged();
3104 return this;
3105 }
3106
3107 private long numBinaryPropagations_ ;
3112 @java.lang.Override
3114 return numBinaryPropagations_;
3115 }
3122
3123 numBinaryPropagations_ = value;
3124 onChanged();
3125 return this;
3126 }
3132
3133 numBinaryPropagations_ = 0L;
3134 onChanged();
3135 return this;
3136 }
3137
3138 private long numIntegerPropagations_ ;
3143 @java.lang.Override
3145 return numIntegerPropagations_;
3146 }
3153
3154 numIntegerPropagations_ = value;
3155 onChanged();
3156 return this;
3157 }
3163
3164 numIntegerPropagations_ = 0L;
3165 onChanged();
3166 return this;
3167 }
3168
3169 private long numRestarts_ ;
3174 @java.lang.Override
3175 public long getNumRestarts() {
3176 return numRestarts_;
3177 }
3183 public Builder setNumRestarts(long value) {
3184
3185 numRestarts_ = value;
3186 onChanged();
3187 return this;
3188 }
3194
3195 numRestarts_ = 0L;
3196 onChanged();
3197 return this;
3198 }
3199
3200 private long numLpIterations_ ;
3205 @java.lang.Override
3206 public long getNumLpIterations() {
3207 return numLpIterations_;
3208 }
3214 public Builder setNumLpIterations(long value) {
3215
3216 numLpIterations_ = value;
3217 onChanged();
3218 return this;
3219 }
3225
3226 numLpIterations_ = 0L;
3227 onChanged();
3228 return this;
3229 }
3230
3231 private double wallTime_ ;
3236 @java.lang.Override
3237 public double getWallTime() {
3238 return wallTime_;
3239 }
3245 public Builder setWallTime(double value) {
3246
3247 wallTime_ = value;
3248 onChanged();
3249 return this;
3250 }
3256
3257 wallTime_ = 0D;
3258 onChanged();
3259 return this;
3260 }
3261
3262 private double userTime_ ;
3267 @java.lang.Override
3268 public double getUserTime() {
3269 return userTime_;
3270 }
3276 public Builder setUserTime(double value) {
3277
3278 userTime_ = value;
3279 onChanged();
3280 return this;
3281 }
3287
3288 userTime_ = 0D;
3289 onChanged();
3290 return this;
3291 }
3292
3293 private double deterministicTime_ ;
3298 @java.lang.Override
3299 public double getDeterministicTime() {
3300 return deterministicTime_;
3301 }
3307 public Builder setDeterministicTime(double value) {
3308
3309 deterministicTime_ = value;
3310 onChanged();
3311 return this;
3312 }
3318
3319 deterministicTime_ = 0D;
3320 onChanged();
3321 return this;
3322 }
3323
3324 private double primalIntegral_ ;
3329 @java.lang.Override
3330 public double getPrimalIntegral() {
3331 return primalIntegral_;
3332 }
3338 public Builder setPrimalIntegral(double value) {
3339
3340 primalIntegral_ = value;
3341 onChanged();
3342 return this;
3343 }
3349
3350 primalIntegral_ = 0D;
3351 onChanged();
3352 return this;
3353 }
3354
3355 private java.lang.Object solutionInfo_ = "";
3364 public java.lang.String getSolutionInfo() {
3365 java.lang.Object ref = solutionInfo_;
3366 if (!(ref instanceof java.lang.String)) {
3367 com.google.protobuf.ByteString bs =
3368 (com.google.protobuf.ByteString) ref;
3369 java.lang.String s = bs.toStringUtf8();
3370 solutionInfo_ = s;
3371 return s;
3372 } else {
3373 return (java.lang.String) ref;
3374 }
3375 }
3384 public com.google.protobuf.ByteString
3386 java.lang.Object ref = solutionInfo_;
3387 if (ref instanceof String) {
3388 com.google.protobuf.ByteString b =
3389 com.google.protobuf.ByteString.copyFromUtf8(
3390 (java.lang.String) ref);
3391 solutionInfo_ = b;
3392 return b;
3393 } else {
3394 return (com.google.protobuf.ByteString) ref;
3395 }
3396 }
3407 java.lang.String value) {
3408 if (value == null) {
3409 throw new NullPointerException();
3410 }
3411
3412 solutionInfo_ = value;
3413 onChanged();
3414 return this;
3415 }
3425
3426 solutionInfo_ = getDefaultInstance().getSolutionInfo();
3427 onChanged();
3428 return this;
3429 }
3440 com.google.protobuf.ByteString value) {
3441 if (value == null) {
3442 throw new NullPointerException();
3443 }
3444 checkByteStringIsUtf8(value);
3445
3446 solutionInfo_ = value;
3447 onChanged();
3448 return this;
3449 }
3450
3451 private java.lang.Object solveLog_ = "";
3461 public java.lang.String getSolveLog() {
3462 java.lang.Object ref = solveLog_;
3463 if (!(ref instanceof java.lang.String)) {
3464 com.google.protobuf.ByteString bs =
3465 (com.google.protobuf.ByteString) ref;
3466 java.lang.String s = bs.toStringUtf8();
3467 solveLog_ = s;
3468 return s;
3469 } else {
3470 return (java.lang.String) ref;
3471 }
3472 }
3482 public com.google.protobuf.ByteString
3484 java.lang.Object ref = solveLog_;
3485 if (ref instanceof String) {
3486 com.google.protobuf.ByteString b =
3487 com.google.protobuf.ByteString.copyFromUtf8(
3488 (java.lang.String) ref);
3489 solveLog_ = b;
3490 return b;
3491 } else {
3492 return (com.google.protobuf.ByteString) ref;
3493 }
3494 }
3506 java.lang.String value) {
3507 if (value == null) {
3508 throw new NullPointerException();
3509 }
3510
3511 solveLog_ = value;
3512 onChanged();
3513 return this;
3514 }
3525
3526 solveLog_ = getDefaultInstance().getSolveLog();
3527 onChanged();
3528 return this;
3529 }
3541 com.google.protobuf.ByteString value) {
3542 if (value == null) {
3543 throw new NullPointerException();
3544 }
3545 checkByteStringIsUtf8(value);
3546
3547 solveLog_ = value;
3548 onChanged();
3549 return this;
3550 }
3551 @java.lang.Override
3553 final com.google.protobuf.UnknownFieldSet unknownFields) {
3554 return super.setUnknownFields(unknownFields);
3555 }
3556
3557 @java.lang.Override
3559 final com.google.protobuf.UnknownFieldSet unknownFields) {
3560 return super.mergeUnknownFields(unknownFields);
3561 }
3562
3563
3564 // @@protoc_insertion_point(builder_scope:operations_research.sat.CpSolverResponse)
3565 }
3566
3567 // @@protoc_insertion_point(class_scope:operations_research.sat.CpSolverResponse)
3568 private static final com.google.ortools.sat.CpSolverResponse DEFAULT_INSTANCE;
3569 static {
3570 DEFAULT_INSTANCE = new com.google.ortools.sat.CpSolverResponse();
3571 }
3572
3573 public static com.google.ortools.sat.CpSolverResponse getDefaultInstance() {
3574 return DEFAULT_INSTANCE;
3575 }
3576
3577 private static final com.google.protobuf.Parser<CpSolverResponse>
3578 PARSER = new com.google.protobuf.AbstractParser<CpSolverResponse>() {
3579 @java.lang.Override
3580 public CpSolverResponse parsePartialFrom(
3581 com.google.protobuf.CodedInputStream input,
3582 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3583 throws com.google.protobuf.InvalidProtocolBufferException {
3584 return new CpSolverResponse(input, extensionRegistry);
3585 }
3586 };
3587
3588 public static com.google.protobuf.Parser<CpSolverResponse> parser() {
3589 return PARSER;
3590 }
3591
3592 @java.lang.Override
3593 public com.google.protobuf.Parser<CpSolverResponse> getParserForType() {
3594 return PARSER;
3595 }
3596
3597 @java.lang.Override
3598 public com.google.ortools.sat.CpSolverResponse getDefaultInstanceForType() {
3599 return DEFAULT_INSTANCE;
3600 }
3601
3602}
3603
java.util.List<? extends com.google.ortools.sat.IntegerVariableProtoOrBuilder > getTightenedVariablesOrBuilderList()
.lang.Override double getPrimalIntegral()
double primal_integral = 22;
Builder addTightenedVariables(com.google.ortools.sat.IntegerVariableProto.Builder builderForValue)
Builder addSolutionUpperBounds(long value)
repeated int64 solution_upper_bounds = 19;
int getSolutionUpperBoundsCount()
repeated int64 solution_upper_bounds = 19;
Builder addAllTightenedVariables(java.lang.Iterable<? extends com.google.ortools.sat.IntegerVariableProto > values)
Builder addAllSufficientAssumptionsForInfeasibility(java.lang.Iterable<? extends java.lang.Integer > values)
com.google.ortools.sat.IntegerVariableProto.Builder getTightenedVariablesBuilder(int index)
Builder clearNumConflicts()
int64 num_conflicts = 11;
Builder clearNumLpIterations()
int64 num_lp_iterations = 25;
.lang.Override long getNumBinaryPropagations()
int64 num_binary_propagations = 13;
Builder clearNumBranches()
int64 num_branches = 12;
.lang.Override Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
java.util.List< java.lang.Long > getSolutionList()
.lang.Override Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
.lang.Override long getNumLpIterations()
int64 num_lp_iterations = 25;
.lang.Override long getNumIntegerPropagations()
int64 num_integer_propagations = 14;
.lang.Override final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
java.util.List< java.lang.Integer > getSufficientAssumptionsForInfeasibilityList()
Builder addTightenedVariables(int index, com.google.ortools.sat.IntegerVariableProto.Builder builderForValue)
Builder setNumBranches(long value)
int64 num_branches = 12;
Builder setStatus(com.google.ortools.sat.CpSolverStatus value)
com.google.ortools.sat.IntegerVariableProto getTightenedVariables(int index)
.lang.Override Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Builder clearPrimalIntegral()
double primal_integral = 22;
java.util.List< java.lang.Long > getSolutionUpperBoundsList()
repeated int64 solution_upper_bounds = 19;
.lang.Override com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
Builder setSolutionUpperBounds(int index, long value)
repeated int64 solution_upper_bounds = 19;
Builder addAllSolutionUpperBounds(java.lang.Iterable<? extends java.lang.Long > values)
repeated int64 solution_upper_bounds = 19;
.lang.Override double getUserTime()
double user_time = 16;
Builder addAllSolutionLowerBounds(java.lang.Iterable<? extends java.lang.Long > values)
Builder clearDeterministicTime()
double deterministic_time = 17;
Builder setNumIntegerPropagations(long value)
int64 num_integer_propagations = 14;
Builder setTightenedVariables(int index, com.google.ortools.sat.IntegerVariableProto.Builder builderForValue)
com.google.ortools.sat.IntegerVariableProtoOrBuilder getTightenedVariablesOrBuilder(int index)
com.google.protobuf.ByteString getSolutionInfoBytes()
Builder setSolutionLowerBounds(int index, long value)
Builder setSolveLogBytes(com.google.protobuf.ByteString value)
Builder clearNumBinaryPropagations()
int64 num_binary_propagations = 13;
Builder setUserTime(double value)
double user_time = 16;
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
.lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
.lang.Override com.google.ortools.sat.CpSolverResponse buildPartial()
.lang.Override double getDeterministicTime()
double deterministic_time = 17;
Builder setDeterministicTime(double value)
double deterministic_time = 17;
long getSolutionUpperBounds(int index)
repeated int64 solution_upper_bounds = 19;
Builder setWallTime(double value)
double wall_time = 15;
.lang.Override com.google.ortools.sat.CpSolverStatus getStatus()
.lang.Override long getNumConflicts()
int64 num_conflicts = 11;
Builder setNumBinaryPropagations(long value)
int64 num_binary_propagations = 13;
.lang.Override long getNumRestarts()
int64 num_restarts = 24;
.lang.Override double getWallTime()
double wall_time = 15;
Builder addTightenedVariables(com.google.ortools.sat.IntegerVariableProto value)
com.google.protobuf.ByteString getSolveLogBytes()
Builder setTightenedVariables(int index, com.google.ortools.sat.IntegerVariableProto value)
Builder setSufficientAssumptionsForInfeasibility(int index, int value)
Builder setNumLpIterations(long value)
int64 num_lp_iterations = 25;
.lang.Override final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
.lang.Override com.google.ortools.sat.CpSolverResponse getDefaultInstanceForType()
Builder mergeFrom(com.google.ortools.sat.CpSolverResponse other)
Builder setNumConflicts(long value)
int64 num_conflicts = 11;
java.util.List< com.google.ortools.sat.IntegerVariableProto > getTightenedVariablesList()
com.google.ortools.sat.IntegerVariableProto.Builder addTightenedVariablesBuilder()
.lang.Override com.google.ortools.sat.CpSolverResponse build()
Builder addAllSolution(java.lang.Iterable<? extends java.lang.Long > values)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
Builder setNumRestarts(long value)
int64 num_restarts = 24;
Builder setSolutionInfoBytes(com.google.protobuf.ByteString value)
Builder clearNumIntegerPropagations()
int64 num_integer_propagations = 14;
Builder setPrimalIntegral(double value)
double primal_integral = 22;
com.google.ortools.sat.IntegerVariableProto.Builder addTightenedVariablesBuilder(int index)
java.util.List< com.google.ortools.sat.IntegerVariableProto.Builder > getTightenedVariablesBuilderList()
Builder clearNumRestarts()
int64 num_restarts = 24;
java.util.List< java.lang.Long > getSolutionLowerBoundsList()
Builder addTightenedVariables(int index, com.google.ortools.sat.IntegerVariableProto value)
.lang.Override Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Builder clearSolutionUpperBounds()
repeated int64 solution_upper_bounds = 19;
.lang.Override long getNumBranches()
int64 num_branches = 12;
.lang.Override Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
.lang.Override double getPrimalIntegral()
double primal_integral = 22;
.lang.Override com.google.protobuf.ByteString getSolveLogBytes()
int getSolutionUpperBoundsCount()
repeated int64 solution_upper_bounds = 19;
static com.google.ortools.sat.CpSolverResponse parseFrom(java.io.InputStream input)
.lang.Override java.lang.String getSolveLog()
static com.google.ortools.sat.CpSolverResponse parseFrom(com.google.protobuf.ByteString data)
static com.google.ortools.sat.CpSolverResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.sat.CpSolverResponse parseFrom(java.nio.ByteBuffer data)
static com.google.ortools.sat.CpSolverResponse parseDelimitedFrom(java.io.InputStream input)
.lang.Override long getNumBinaryPropagations()
int64 num_binary_propagations = 13;
.lang.Override java.lang.String getSolutionInfo()
.lang.Override java.util.List< java.lang.Long > getSolutionUpperBoundsList()
repeated int64 solution_upper_bounds = 19;
.lang.Override com.google.protobuf.ByteString getSolutionInfoBytes()
.lang.Override java.util.List< java.lang.Long > getSolutionList()
.lang.Override long getNumLpIterations()
int64 num_lp_iterations = 25;
.lang.Override long getNumIntegerPropagations()
int64 num_integer_propagations = 14;
.lang.Override Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
static com.google.ortools.sat.CpSolverResponse getDefaultInstance()
.lang.Override com.google.ortools.sat.IntegerVariableProtoOrBuilder getTightenedVariablesOrBuilder(int index)
.lang.Override java.util.List<? extends com.google.ortools.sat.IntegerVariableProtoOrBuilder > getTightenedVariablesOrBuilderList()
.lang.Override double getUserTime()
double user_time = 16;
.lang.Override java.util.List< com.google.ortools.sat.IntegerVariableProto > getTightenedVariablesList()
.lang.Override boolean getAllSolutionsWereFound()
static com.google.protobuf.Parser< CpSolverResponse > parser()
.lang.Override void writeTo(com.google.protobuf.CodedOutputStream output)
static com.google.ortools.sat.CpSolverResponse parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override com.google.ortools.sat.IntegerVariableProto getTightenedVariables(int index)
.lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
.lang.Override final com.google.protobuf.UnknownFieldSet getUnknownFields()
.lang.Override final boolean isInitialized()
.lang.Override double getDeterministicTime()
double deterministic_time = 17;
long getSolutionUpperBounds(int index)
repeated int64 solution_upper_bounds = 19;
.lang.Override java.util.List< java.lang.Integer > getSufficientAssumptionsForInfeasibilityList()
.lang.Override com.google.ortools.sat.CpSolverStatus getStatus()
.lang.Override long getNumConflicts()
int64 num_conflicts = 11;
static com.google.ortools.sat.CpSolverResponse parseFrom(com.google.protobuf.CodedInputStream input)
.lang.Override long getNumRestarts()
int64 num_restarts = 24;
.lang.Override double getWallTime()
double wall_time = 15;
static Builder newBuilder(com.google.ortools.sat.CpSolverResponse prototype)
static com.google.ortools.sat.CpSolverResponse parseFrom(byte[] data)
static com.google.ortools.sat.CpSolverResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static final int SUFFICIENT_ASSUMPTIONS_FOR_INFEASIBILITY_FIELD_NUMBER
.lang.Override com.google.protobuf.Parser< CpSolverResponse > getParserForType()
.lang.Override com.google.ortools.sat.CpSolverResponse getDefaultInstanceForType()
.lang.Override java.lang.Object newInstance(UnusedPrivateParameter unused)
.lang.Override boolean equals(final java.lang.Object obj)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
.lang.Override java.util.List< java.lang.Long > getSolutionLowerBoundsList()
static com.google.ortools.sat.CpSolverResponse parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.sat.CpSolverResponse parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.sat.CpSolverResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override long getNumBranches()
int64 num_branches = 12;