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 additionalSolutions_ = java.util.Collections.emptyList();
29 tightenedVariables_ = java.util.Collections.emptyList();
30 sufficientAssumptionsForInfeasibility_ = emptyIntList();
31 solutionInfo_ = "";
32 solveLog_ = "";
33 }
34
35 @java.lang.Override
36 @SuppressWarnings({"unused"})
37 protected java.lang.Object newInstance(
38 UnusedPrivateParameter unused) {
39 return new CpSolverResponse();
40 }
41
42 @java.lang.Override
43 public final com.google.protobuf.UnknownFieldSet
45 return this.unknownFields;
46 }
47 private CpSolverResponse(
48 com.google.protobuf.CodedInputStream input,
49 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
50 throws com.google.protobuf.InvalidProtocolBufferException {
51 this();
52 if (extensionRegistry == null) {
53 throw new java.lang.NullPointerException();
54 }
55 int mutable_bitField0_ = 0;
56 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
57 com.google.protobuf.UnknownFieldSet.newBuilder();
58 try {
59 boolean done = false;
60 while (!done) {
61 int tag = input.readTag();
62 switch (tag) {
63 case 0:
64 done = true;
65 break;
66 case 8: {
67 int rawValue = input.readEnum();
68
69 status_ = rawValue;
70 break;
71 }
72 case 16: {
73 if (!((mutable_bitField0_ & 0x00000001) != 0)) {
74 solution_ = newLongList();
75 mutable_bitField0_ |= 0x00000001;
76 }
77 solution_.addLong(input.readInt64());
78 break;
79 }
80 case 18: {
81 int length = input.readRawVarint32();
82 int limit = input.pushLimit(length);
83 if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
84 solution_ = newLongList();
85 mutable_bitField0_ |= 0x00000001;
86 }
87 while (input.getBytesUntilLimit() > 0) {
88 solution_.addLong(input.readInt64());
89 }
90 input.popLimit(limit);
91 break;
92 }
93 case 25: {
94
95 objectiveValue_ = input.readDouble();
96 break;
97 }
98 case 33: {
99
100 bestObjectiveBound_ = input.readDouble();
101 break;
102 }
103 case 80: {
104
105 numBooleans_ = input.readInt64();
106 break;
107 }
108 case 88: {
109
110 numConflicts_ = input.readInt64();
111 break;
112 }
113 case 96: {
114
115 numBranches_ = input.readInt64();
116 break;
117 }
118 case 104: {
119
120 numBinaryPropagations_ = input.readInt64();
121 break;
122 }
123 case 112: {
124
125 numIntegerPropagations_ = input.readInt64();
126 break;
127 }
128 case 121: {
129
130 wallTime_ = input.readDouble();
131 break;
132 }
133 case 129: {
134
135 userTime_ = input.readDouble();
136 break;
137 }
138 case 137: {
139
140 deterministicTime_ = input.readDouble();
141 break;
142 }
143 case 162: {
144 java.lang.String s = input.readStringRequireUtf8();
145
146 solutionInfo_ = s;
147 break;
148 }
149 case 170: {
150 if (!((mutable_bitField0_ & 0x00000004) != 0)) {
151 tightenedVariables_ = new java.util.ArrayList<com.google.ortools.sat.IntegerVariableProto>();
152 mutable_bitField0_ |= 0x00000004;
153 }
154 tightenedVariables_.add(
155 input.readMessage(com.google.ortools.sat.IntegerVariableProto.parser(), extensionRegistry));
156 break;
157 }
158 case 177: {
159
160 gapIntegral_ = input.readDouble();
161 break;
162 }
163 case 184: {
164 if (!((mutable_bitField0_ & 0x00000008) != 0)) {
165 sufficientAssumptionsForInfeasibility_ = newIntList();
166 mutable_bitField0_ |= 0x00000008;
167 }
168 sufficientAssumptionsForInfeasibility_.addInt(input.readInt32());
169 break;
170 }
171 case 186: {
172 int length = input.readRawVarint32();
173 int limit = input.pushLimit(length);
174 if (!((mutable_bitField0_ & 0x00000008) != 0) && input.getBytesUntilLimit() > 0) {
175 sufficientAssumptionsForInfeasibility_ = newIntList();
176 mutable_bitField0_ |= 0x00000008;
177 }
178 while (input.getBytesUntilLimit() > 0) {
179 sufficientAssumptionsForInfeasibility_.addInt(input.readInt32());
180 }
181 input.popLimit(limit);
182 break;
183 }
184 case 192: {
185
186 numRestarts_ = input.readInt64();
187 break;
188 }
189 case 200: {
190
191 numLpIterations_ = input.readInt64();
192 break;
193 }
194 case 210: {
195 java.lang.String s = input.readStringRequireUtf8();
196
197 solveLog_ = s;
198 break;
199 }
200 case 218: {
201 if (!((mutable_bitField0_ & 0x00000002) != 0)) {
202 additionalSolutions_ = new java.util.ArrayList<com.google.ortools.sat.CpSolverSolution>();
203 mutable_bitField0_ |= 0x00000002;
204 }
205 additionalSolutions_.add(
206 input.readMessage(com.google.ortools.sat.CpSolverSolution.parser(), extensionRegistry));
207 break;
208 }
209 case 226: {
210 com.google.ortools.sat.CpObjectiveProto.Builder subBuilder = null;
211 if (integerObjective_ != null) {
212 subBuilder = integerObjective_.toBuilder();
213 }
214 integerObjective_ = input.readMessage(com.google.ortools.sat.CpObjectiveProto.parser(), extensionRegistry);
215 if (subBuilder != null) {
216 subBuilder.mergeFrom(integerObjective_);
217 integerObjective_ = subBuilder.buildPartial();
218 }
219
220 break;
221 }
222 case 232: {
223
224 innerObjectiveLowerBound_ = input.readInt64();
225 break;
226 }
227 default: {
228 if (!parseUnknownField(
229 input, unknownFields, extensionRegistry, tag)) {
230 done = true;
231 }
232 break;
233 }
234 }
235 }
236 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
237 throw e.setUnfinishedMessage(this);
238 } catch (java.io.IOException e) {
239 throw new com.google.protobuf.InvalidProtocolBufferException(
240 e).setUnfinishedMessage(this);
241 } finally {
242 if (((mutable_bitField0_ & 0x00000001) != 0)) {
243 solution_.makeImmutable(); // C
244 }
245 if (((mutable_bitField0_ & 0x00000004) != 0)) {
246 tightenedVariables_ = java.util.Collections.unmodifiableList(tightenedVariables_);
247 }
248 if (((mutable_bitField0_ & 0x00000008) != 0)) {
249 sufficientAssumptionsForInfeasibility_.makeImmutable(); // C
250 }
251 if (((mutable_bitField0_ & 0x00000002) != 0)) {
252 additionalSolutions_ = java.util.Collections.unmodifiableList(additionalSolutions_);
253 }
254 this.unknownFields = unknownFields.build();
255 makeExtensionsImmutable();
256 }
257 }
258 public static final com.google.protobuf.Descriptors.Descriptor
260 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_descriptor;
261 }
262
263 @java.lang.Override
264 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
266 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_fieldAccessorTable
267 .ensureFieldAccessorsInitialized(
268 com.google.ortools.sat.CpSolverResponse.class, com.google.ortools.sat.CpSolverResponse.Builder.class);
269 }
270
271 public static final int STATUS_FIELD_NUMBER = 1;
272 private int status_;
281 @java.lang.Override public int getStatusValue() {
282 return status_;
283 }
292 @java.lang.Override public com.google.ortools.sat.CpSolverStatus getStatus() {
293 @SuppressWarnings("deprecation")
294 com.google.ortools.sat.CpSolverStatus result = com.google.ortools.sat.CpSolverStatus.valueOf(status_);
295 return result == null ? com.google.ortools.sat.CpSolverStatus.UNRECOGNIZED : result;
296 }
297
298 public static final int SOLUTION_FIELD_NUMBER = 2;
299 private com.google.protobuf.Internal.LongList solution_;
311 @java.lang.Override
312 public java.util.List<java.lang.Long>
314 return solution_;
315 }
327 public int getSolutionCount() {
328 return solution_.size();
329 }
342 public long getSolution(int index) {
343 return solution_.getLong(index);
344 }
345 private int solutionMemoizedSerializedSize = -1;
346
347 public static final int OBJECTIVE_VALUE_FIELD_NUMBER = 3;
348 private double objectiveValue_;
360 @java.lang.Override
361 public double getObjectiveValue() {
362 return objectiveValue_;
363 }
364
365 public static final int BEST_OBJECTIVE_BOUND_FIELD_NUMBER = 4;
366 private double bestObjectiveBound_;
377 @java.lang.Override
378 public double getBestObjectiveBound() {
379 return bestObjectiveBound_;
380 }
381
382 public static final int ADDITIONAL_SOLUTIONS_FIELD_NUMBER = 27;
383 private java.util.List<com.google.ortools.sat.CpSolverSolution> additionalSolutions_;
395 @java.lang.Override
396 public java.util.List<com.google.ortools.sat.CpSolverSolution> getAdditionalSolutionsList() {
397 return additionalSolutions_;
398 }
410 @java.lang.Override
411 public java.util.List<? extends com.google.ortools.sat.CpSolverSolutionOrBuilder>
413 return additionalSolutions_;
414 }
426 @java.lang.Override
428 return additionalSolutions_.size();
429 }
441 @java.lang.Override
442 public com.google.ortools.sat.CpSolverSolution getAdditionalSolutions(int index) {
443 return additionalSolutions_.get(index);
444 }
456 @java.lang.Override
457 public com.google.ortools.sat.CpSolverSolutionOrBuilder getAdditionalSolutionsOrBuilder(
458 int index) {
459 return additionalSolutions_.get(index);
460 }
461
462 public static final int TIGHTENED_VARIABLES_FIELD_NUMBER = 21;
463 private java.util.List<com.google.ortools.sat.IntegerVariableProto> tightenedVariables_;
480 @java.lang.Override
481 public java.util.List<com.google.ortools.sat.IntegerVariableProto> getTightenedVariablesList() {
482 return tightenedVariables_;
483 }
500 @java.lang.Override
501 public java.util.List<? extends com.google.ortools.sat.IntegerVariableProtoOrBuilder>
503 return tightenedVariables_;
504 }
521 @java.lang.Override
523 return tightenedVariables_.size();
524 }
541 @java.lang.Override
542 public com.google.ortools.sat.IntegerVariableProto getTightenedVariables(int index) {
543 return tightenedVariables_.get(index);
544 }
561 @java.lang.Override
562 public com.google.ortools.sat.IntegerVariableProtoOrBuilder getTightenedVariablesOrBuilder(
563 int index) {
564 return tightenedVariables_.get(index);
565 }
566
568 private com.google.protobuf.Internal.IntList sufficientAssumptionsForInfeasibility_;
591 @java.lang.Override
592 public java.util.List<java.lang.Integer>
594 return sufficientAssumptionsForInfeasibility_;
595 }
619 return sufficientAssumptionsForInfeasibility_.size();
620 }
645 return sufficientAssumptionsForInfeasibility_.getInt(index);
646 }
647 private int sufficientAssumptionsForInfeasibilityMemoizedSerializedSize = -1;
648
649 public static final int INTEGER_OBJECTIVE_FIELD_NUMBER = 28;
650 private com.google.ortools.sat.CpObjectiveProto integerObjective_;
661 @java.lang.Override
662 public boolean hasIntegerObjective() {
663 return integerObjective_ != null;
664 }
675 @java.lang.Override
676 public com.google.ortools.sat.CpObjectiveProto getIntegerObjective() {
677 return integerObjective_ == null ? com.google.ortools.sat.CpObjectiveProto.getDefaultInstance() : integerObjective_;
678 }
688 @java.lang.Override
689 public com.google.ortools.sat.CpObjectiveProtoOrBuilder getIntegerObjectiveOrBuilder() {
690 return getIntegerObjective();
691 }
692
693 public static final int INNER_OBJECTIVE_LOWER_BOUND_FIELD_NUMBER = 29;
694 private long innerObjectiveLowerBound_;
707 @java.lang.Override
709 return innerObjectiveLowerBound_;
710 }
711
712 public static final int NUM_BOOLEANS_FIELD_NUMBER = 10;
713 private long numBooleans_;
723 @java.lang.Override
724 public long getNumBooleans() {
725 return numBooleans_;
726 }
727
728 public static final int NUM_CONFLICTS_FIELD_NUMBER = 11;
729 private long numConflicts_;
734 @java.lang.Override
735 public long getNumConflicts() {
736 return numConflicts_;
737 }
738
739 public static final int NUM_BRANCHES_FIELD_NUMBER = 12;
740 private long numBranches_;
745 @java.lang.Override
746 public long getNumBranches() {
747 return numBranches_;
748 }
749
750 public static final int NUM_BINARY_PROPAGATIONS_FIELD_NUMBER = 13;
751 private long numBinaryPropagations_;
756 @java.lang.Override
758 return numBinaryPropagations_;
759 }
760
761 public static final int NUM_INTEGER_PROPAGATIONS_FIELD_NUMBER = 14;
762 private long numIntegerPropagations_;
767 @java.lang.Override
769 return numIntegerPropagations_;
770 }
771
772 public static final int NUM_RESTARTS_FIELD_NUMBER = 24;
773 private long numRestarts_;
778 @java.lang.Override
779 public long getNumRestarts() {
780 return numRestarts_;
781 }
782
783 public static final int NUM_LP_ITERATIONS_FIELD_NUMBER = 25;
784 private long numLpIterations_;
789 @java.lang.Override
790 public long getNumLpIterations() {
791 return numLpIterations_;
792 }
793
794 public static final int WALL_TIME_FIELD_NUMBER = 15;
795 private double wallTime_;
804 @java.lang.Override
805 public double getWallTime() {
806 return wallTime_;
807 }
808
809 public static final int USER_TIME_FIELD_NUMBER = 16;
810 private double userTime_;
815 @java.lang.Override
816 public double getUserTime() {
817 return userTime_;
818 }
819
820 public static final int DETERMINISTIC_TIME_FIELD_NUMBER = 17;
821 private double deterministicTime_;
826 @java.lang.Override
827 public double getDeterministicTime() {
828 return deterministicTime_;
829 }
830
831 public static final int GAP_INTEGRAL_FIELD_NUMBER = 22;
832 private double gapIntegral_;
841 @java.lang.Override
842 public double getGapIntegral() {
843 return gapIntegral_;
844 }
845
846 public static final int SOLUTION_INFO_FIELD_NUMBER = 20;
847 private volatile java.lang.Object solutionInfo_;
857 @java.lang.Override
858 public java.lang.String getSolutionInfo() {
859 java.lang.Object ref = solutionInfo_;
860 if (ref instanceof java.lang.String) {
861 return (java.lang.String) ref;
862 } else {
863 com.google.protobuf.ByteString bs =
864 (com.google.protobuf.ByteString) ref;
865 java.lang.String s = bs.toStringUtf8();
866 solutionInfo_ = s;
867 return s;
868 }
869 }
879 @java.lang.Override
880 public com.google.protobuf.ByteString
882 java.lang.Object ref = solutionInfo_;
883 if (ref instanceof java.lang.String) {
884 com.google.protobuf.ByteString b =
885 com.google.protobuf.ByteString.copyFromUtf8(
886 (java.lang.String) ref);
887 solutionInfo_ = b;
888 return b;
889 } else {
890 return (com.google.protobuf.ByteString) ref;
891 }
892 }
893
894 public static final int SOLVE_LOG_FIELD_NUMBER = 26;
895 private volatile java.lang.Object solveLog_;
905 @java.lang.Override
906 public java.lang.String getSolveLog() {
907 java.lang.Object ref = solveLog_;
908 if (ref instanceof java.lang.String) {
909 return (java.lang.String) ref;
910 } else {
911 com.google.protobuf.ByteString bs =
912 (com.google.protobuf.ByteString) ref;
913 java.lang.String s = bs.toStringUtf8();
914 solveLog_ = s;
915 return s;
916 }
917 }
927 @java.lang.Override
928 public com.google.protobuf.ByteString
930 java.lang.Object ref = solveLog_;
931 if (ref instanceof java.lang.String) {
932 com.google.protobuf.ByteString b =
933 com.google.protobuf.ByteString.copyFromUtf8(
934 (java.lang.String) ref);
935 solveLog_ = b;
936 return b;
937 } else {
938 return (com.google.protobuf.ByteString) ref;
939 }
940 }
941
942 private byte memoizedIsInitialized = -1;
943 @java.lang.Override
944 public final boolean isInitialized() {
945 byte isInitialized = memoizedIsInitialized;
946 if (isInitialized == 1) return true;
947 if (isInitialized == 0) return false;
948
949 memoizedIsInitialized = 1;
950 return true;
951 }
952
953 @java.lang.Override
954 public void writeTo(com.google.protobuf.CodedOutputStream output)
955 throws java.io.IOException {
957 if (status_ != com.google.ortools.sat.CpSolverStatus.UNKNOWN.getNumber()) {
958 output.writeEnum(1, status_);
959 }
960 if (getSolutionList().size() > 0) {
961 output.writeUInt32NoTag(18);
962 output.writeUInt32NoTag(solutionMemoizedSerializedSize);
963 }
964 for (int i = 0; i < solution_.size(); i++) {
965 output.writeInt64NoTag(solution_.getLong(i));
966 }
967 if (java.lang.Double.doubleToRawLongBits(objectiveValue_) != 0) {
968 output.writeDouble(3, objectiveValue_);
969 }
970 if (java.lang.Double.doubleToRawLongBits(bestObjectiveBound_) != 0) {
971 output.writeDouble(4, bestObjectiveBound_);
972 }
973 if (numBooleans_ != 0L) {
974 output.writeInt64(10, numBooleans_);
975 }
976 if (numConflicts_ != 0L) {
977 output.writeInt64(11, numConflicts_);
978 }
979 if (numBranches_ != 0L) {
980 output.writeInt64(12, numBranches_);
981 }
982 if (numBinaryPropagations_ != 0L) {
983 output.writeInt64(13, numBinaryPropagations_);
984 }
985 if (numIntegerPropagations_ != 0L) {
986 output.writeInt64(14, numIntegerPropagations_);
987 }
988 if (java.lang.Double.doubleToRawLongBits(wallTime_) != 0) {
989 output.writeDouble(15, wallTime_);
990 }
991 if (java.lang.Double.doubleToRawLongBits(userTime_) != 0) {
992 output.writeDouble(16, userTime_);
993 }
994 if (java.lang.Double.doubleToRawLongBits(deterministicTime_) != 0) {
995 output.writeDouble(17, deterministicTime_);
996 }
997 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(solutionInfo_)) {
998 com.google.protobuf.GeneratedMessageV3.writeString(output, 20, solutionInfo_);
999 }
1000 for (int i = 0; i < tightenedVariables_.size(); i++) {
1001 output.writeMessage(21, tightenedVariables_.get(i));
1002 }
1003 if (java.lang.Double.doubleToRawLongBits(gapIntegral_) != 0) {
1004 output.writeDouble(22, gapIntegral_);
1005 }
1007 output.writeUInt32NoTag(186);
1008 output.writeUInt32NoTag(sufficientAssumptionsForInfeasibilityMemoizedSerializedSize);
1009 }
1010 for (int i = 0; i < sufficientAssumptionsForInfeasibility_.size(); i++) {
1011 output.writeInt32NoTag(sufficientAssumptionsForInfeasibility_.getInt(i));
1012 }
1013 if (numRestarts_ != 0L) {
1014 output.writeInt64(24, numRestarts_);
1015 }
1016 if (numLpIterations_ != 0L) {
1017 output.writeInt64(25, numLpIterations_);
1018 }
1019 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(solveLog_)) {
1020 com.google.protobuf.GeneratedMessageV3.writeString(output, 26, solveLog_);
1021 }
1022 for (int i = 0; i < additionalSolutions_.size(); i++) {
1023 output.writeMessage(27, additionalSolutions_.get(i));
1024 }
1025 if (integerObjective_ != null) {
1026 output.writeMessage(28, getIntegerObjective());
1027 }
1028 if (innerObjectiveLowerBound_ != 0L) {
1029 output.writeInt64(29, innerObjectiveLowerBound_);
1030 }
1031 unknownFields.writeTo(output);
1032 }
1033
1034 @java.lang.Override
1035 public int getSerializedSize() {
1036 int size = memoizedSize;
1037 if (size != -1) return size;
1038
1039 size = 0;
1040 if (status_ != com.google.ortools.sat.CpSolverStatus.UNKNOWN.getNumber()) {
1041 size += com.google.protobuf.CodedOutputStream
1042 .computeEnumSize(1, status_);
1043 }
1044 {
1045 int dataSize = 0;
1046 for (int i = 0; i < solution_.size(); i++) {
1047 dataSize += com.google.protobuf.CodedOutputStream
1048 .computeInt64SizeNoTag(solution_.getLong(i));
1049 }
1050 size += dataSize;
1051 if (!getSolutionList().isEmpty()) {
1052 size += 1;
1053 size += com.google.protobuf.CodedOutputStream
1054 .computeInt32SizeNoTag(dataSize);
1055 }
1056 solutionMemoizedSerializedSize = dataSize;
1057 }
1058 if (java.lang.Double.doubleToRawLongBits(objectiveValue_) != 0) {
1059 size += com.google.protobuf.CodedOutputStream
1060 .computeDoubleSize(3, objectiveValue_);
1061 }
1062 if (java.lang.Double.doubleToRawLongBits(bestObjectiveBound_) != 0) {
1063 size += com.google.protobuf.CodedOutputStream
1064 .computeDoubleSize(4, bestObjectiveBound_);
1065 }
1066 if (numBooleans_ != 0L) {
1067 size += com.google.protobuf.CodedOutputStream
1068 .computeInt64Size(10, numBooleans_);
1069 }
1070 if (numConflicts_ != 0L) {
1071 size += com.google.protobuf.CodedOutputStream
1072 .computeInt64Size(11, numConflicts_);
1073 }
1074 if (numBranches_ != 0L) {
1075 size += com.google.protobuf.CodedOutputStream
1076 .computeInt64Size(12, numBranches_);
1077 }
1078 if (numBinaryPropagations_ != 0L) {
1079 size += com.google.protobuf.CodedOutputStream
1080 .computeInt64Size(13, numBinaryPropagations_);
1081 }
1082 if (numIntegerPropagations_ != 0L) {
1083 size += com.google.protobuf.CodedOutputStream
1084 .computeInt64Size(14, numIntegerPropagations_);
1085 }
1086 if (java.lang.Double.doubleToRawLongBits(wallTime_) != 0) {
1087 size += com.google.protobuf.CodedOutputStream
1088 .computeDoubleSize(15, wallTime_);
1089 }
1090 if (java.lang.Double.doubleToRawLongBits(userTime_) != 0) {
1091 size += com.google.protobuf.CodedOutputStream
1092 .computeDoubleSize(16, userTime_);
1093 }
1094 if (java.lang.Double.doubleToRawLongBits(deterministicTime_) != 0) {
1095 size += com.google.protobuf.CodedOutputStream
1096 .computeDoubleSize(17, deterministicTime_);
1097 }
1098 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(solutionInfo_)) {
1099 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, solutionInfo_);
1100 }
1101 for (int i = 0; i < tightenedVariables_.size(); i++) {
1102 size += com.google.protobuf.CodedOutputStream
1103 .computeMessageSize(21, tightenedVariables_.get(i));
1104 }
1105 if (java.lang.Double.doubleToRawLongBits(gapIntegral_) != 0) {
1106 size += com.google.protobuf.CodedOutputStream
1107 .computeDoubleSize(22, gapIntegral_);
1108 }
1109 {
1110 int dataSize = 0;
1111 for (int i = 0; i < sufficientAssumptionsForInfeasibility_.size(); i++) {
1112 dataSize += com.google.protobuf.CodedOutputStream
1113 .computeInt32SizeNoTag(sufficientAssumptionsForInfeasibility_.getInt(i));
1114 }
1115 size += dataSize;
1117 size += 2;
1118 size += com.google.protobuf.CodedOutputStream
1119 .computeInt32SizeNoTag(dataSize);
1120 }
1121 sufficientAssumptionsForInfeasibilityMemoizedSerializedSize = dataSize;
1122 }
1123 if (numRestarts_ != 0L) {
1124 size += com.google.protobuf.CodedOutputStream
1125 .computeInt64Size(24, numRestarts_);
1126 }
1127 if (numLpIterations_ != 0L) {
1128 size += com.google.protobuf.CodedOutputStream
1129 .computeInt64Size(25, numLpIterations_);
1130 }
1131 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(solveLog_)) {
1132 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(26, solveLog_);
1133 }
1134 for (int i = 0; i < additionalSolutions_.size(); i++) {
1135 size += com.google.protobuf.CodedOutputStream
1136 .computeMessageSize(27, additionalSolutions_.get(i));
1137 }
1138 if (integerObjective_ != null) {
1139 size += com.google.protobuf.CodedOutputStream
1140 .computeMessageSize(28, getIntegerObjective());
1141 }
1142 if (innerObjectiveLowerBound_ != 0L) {
1143 size += com.google.protobuf.CodedOutputStream
1144 .computeInt64Size(29, innerObjectiveLowerBound_);
1145 }
1146 size += unknownFields.getSerializedSize();
1147 memoizedSize = size;
1148 return size;
1149 }
1150
1151 @java.lang.Override
1152 public boolean equals(final java.lang.Object obj) {
1153 if (obj == this) {
1154 return true;
1155 }
1156 if (!(obj instanceof com.google.ortools.sat.CpSolverResponse)) {
1157 return super.equals(obj);
1158 }
1159 com.google.ortools.sat.CpSolverResponse other = (com.google.ortools.sat.CpSolverResponse) obj;
1160
1161 if (status_ != other.status_) return false;
1162 if (!getSolutionList()
1163 .equals(other.getSolutionList())) return false;
1164 if (java.lang.Double.doubleToLongBits(getObjectiveValue())
1165 != java.lang.Double.doubleToLongBits(
1166 other.getObjectiveValue())) return false;
1167 if (java.lang.Double.doubleToLongBits(getBestObjectiveBound())
1168 != java.lang.Double.doubleToLongBits(
1169 other.getBestObjectiveBound())) return false;
1171 .equals(other.getAdditionalSolutionsList())) return false;
1173 .equals(other.getTightenedVariablesList())) return false;
1175 .equals(other.getSufficientAssumptionsForInfeasibilityList())) return false;
1176 if (hasIntegerObjective() != other.hasIntegerObjective()) return false;
1177 if (hasIntegerObjective()) {
1178 if (!getIntegerObjective()
1179 .equals(other.getIntegerObjective())) return false;
1180 }
1182 != other.getInnerObjectiveLowerBound()) return false;
1183 if (getNumBooleans()
1184 != other.getNumBooleans()) return false;
1185 if (getNumConflicts()
1186 != other.getNumConflicts()) return false;
1187 if (getNumBranches()
1188 != other.getNumBranches()) return false;
1190 != other.getNumBinaryPropagations()) return false;
1192 != other.getNumIntegerPropagations()) return false;
1193 if (getNumRestarts()
1194 != other.getNumRestarts()) return false;
1195 if (getNumLpIterations()
1196 != other.getNumLpIterations()) return false;
1197 if (java.lang.Double.doubleToLongBits(getWallTime())
1198 != java.lang.Double.doubleToLongBits(
1199 other.getWallTime())) return false;
1200 if (java.lang.Double.doubleToLongBits(getUserTime())
1201 != java.lang.Double.doubleToLongBits(
1202 other.getUserTime())) return false;
1203 if (java.lang.Double.doubleToLongBits(getDeterministicTime())
1204 != java.lang.Double.doubleToLongBits(
1205 other.getDeterministicTime())) return false;
1206 if (java.lang.Double.doubleToLongBits(getGapIntegral())
1207 != java.lang.Double.doubleToLongBits(
1208 other.getGapIntegral())) return false;
1209 if (!getSolutionInfo()
1210 .equals(other.getSolutionInfo())) return false;
1211 if (!getSolveLog()
1212 .equals(other.getSolveLog())) return false;
1213 if (!unknownFields.equals(other.unknownFields)) return false;
1214 return true;
1215 }
1216
1217 @java.lang.Override
1218 public int hashCode() {
1219 if (memoizedHashCode != 0) {
1220 return memoizedHashCode;
1221 }
1222 int hash = 41;
1223 hash = (19 * hash) + getDescriptor().hashCode();
1224 hash = (37 * hash) + STATUS_FIELD_NUMBER;
1225 hash = (53 * hash) + status_;
1226 if (getSolutionCount() > 0) {
1227 hash = (37 * hash) + SOLUTION_FIELD_NUMBER;
1228 hash = (53 * hash) + getSolutionList().hashCode();
1229 }
1230 hash = (37 * hash) + OBJECTIVE_VALUE_FIELD_NUMBER;
1231 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1232 java.lang.Double.doubleToLongBits(getObjectiveValue()));
1233 hash = (37 * hash) + BEST_OBJECTIVE_BOUND_FIELD_NUMBER;
1234 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1235 java.lang.Double.doubleToLongBits(getBestObjectiveBound()));
1236 if (getAdditionalSolutionsCount() > 0) {
1237 hash = (37 * hash) + ADDITIONAL_SOLUTIONS_FIELD_NUMBER;
1238 hash = (53 * hash) + getAdditionalSolutionsList().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 if (hasIntegerObjective()) {
1249 hash = (37 * hash) + INTEGER_OBJECTIVE_FIELD_NUMBER;
1250 hash = (53 * hash) + getIntegerObjective().hashCode();
1251 }
1252 hash = (37 * hash) + INNER_OBJECTIVE_LOWER_BOUND_FIELD_NUMBER;
1253 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1255 hash = (37 * hash) + NUM_BOOLEANS_FIELD_NUMBER;
1256 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1257 getNumBooleans());
1258 hash = (37 * hash) + NUM_CONFLICTS_FIELD_NUMBER;
1259 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1260 getNumConflicts());
1261 hash = (37 * hash) + NUM_BRANCHES_FIELD_NUMBER;
1262 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1263 getNumBranches());
1264 hash = (37 * hash) + NUM_BINARY_PROPAGATIONS_FIELD_NUMBER;
1265 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1267 hash = (37 * hash) + NUM_INTEGER_PROPAGATIONS_FIELD_NUMBER;
1268 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1270 hash = (37 * hash) + NUM_RESTARTS_FIELD_NUMBER;
1271 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1272 getNumRestarts());
1273 hash = (37 * hash) + NUM_LP_ITERATIONS_FIELD_NUMBER;
1274 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1276 hash = (37 * hash) + WALL_TIME_FIELD_NUMBER;
1277 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1278 java.lang.Double.doubleToLongBits(getWallTime()));
1279 hash = (37 * hash) + USER_TIME_FIELD_NUMBER;
1280 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1281 java.lang.Double.doubleToLongBits(getUserTime()));
1282 hash = (37 * hash) + DETERMINISTIC_TIME_FIELD_NUMBER;
1283 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1284 java.lang.Double.doubleToLongBits(getDeterministicTime()));
1285 hash = (37 * hash) + GAP_INTEGRAL_FIELD_NUMBER;
1286 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1287 java.lang.Double.doubleToLongBits(getGapIntegral()));
1288 hash = (37 * hash) + SOLUTION_INFO_FIELD_NUMBER;
1289 hash = (53 * hash) + getSolutionInfo().hashCode();
1290 hash = (37 * hash) + SOLVE_LOG_FIELD_NUMBER;
1291 hash = (53 * hash) + getSolveLog().hashCode();
1292 hash = (29 * hash) + unknownFields.hashCode();
1293 memoizedHashCode = hash;
1294 return hash;
1295 }
1296
1297 public static com.google.ortools.sat.CpSolverResponse parseFrom(
1298 java.nio.ByteBuffer data)
1299 throws com.google.protobuf.InvalidProtocolBufferException {
1300 return PARSER.parseFrom(data);
1301 }
1302 public static com.google.ortools.sat.CpSolverResponse parseFrom(
1303 java.nio.ByteBuffer data,
1304 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1305 throws com.google.protobuf.InvalidProtocolBufferException {
1306 return PARSER.parseFrom(data, extensionRegistry);
1307 }
1308 public static com.google.ortools.sat.CpSolverResponse parseFrom(
1309 com.google.protobuf.ByteString data)
1310 throws com.google.protobuf.InvalidProtocolBufferException {
1311 return PARSER.parseFrom(data);
1312 }
1313 public static com.google.ortools.sat.CpSolverResponse parseFrom(
1314 com.google.protobuf.ByteString data,
1315 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1316 throws com.google.protobuf.InvalidProtocolBufferException {
1317 return PARSER.parseFrom(data, extensionRegistry);
1318 }
1319 public static com.google.ortools.sat.CpSolverResponse parseFrom(byte[] data)
1320 throws com.google.protobuf.InvalidProtocolBufferException {
1321 return PARSER.parseFrom(data);
1322 }
1323 public static com.google.ortools.sat.CpSolverResponse parseFrom(
1324 byte[] data,
1325 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1326 throws com.google.protobuf.InvalidProtocolBufferException {
1327 return PARSER.parseFrom(data, extensionRegistry);
1328 }
1329 public static com.google.ortools.sat.CpSolverResponse parseFrom(java.io.InputStream input)
1330 throws java.io.IOException {
1331 return com.google.protobuf.GeneratedMessageV3
1332 .parseWithIOException(PARSER, input);
1333 }
1334 public static com.google.ortools.sat.CpSolverResponse parseFrom(
1335 java.io.InputStream input,
1336 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1337 throws java.io.IOException {
1338 return com.google.protobuf.GeneratedMessageV3
1339 .parseWithIOException(PARSER, input, extensionRegistry);
1340 }
1341 public static com.google.ortools.sat.CpSolverResponse parseDelimitedFrom(java.io.InputStream input)
1342 throws java.io.IOException {
1343 return com.google.protobuf.GeneratedMessageV3
1344 .parseDelimitedWithIOException(PARSER, input);
1345 }
1346 public static com.google.ortools.sat.CpSolverResponse parseDelimitedFrom(
1347 java.io.InputStream input,
1348 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1349 throws java.io.IOException {
1350 return com.google.protobuf.GeneratedMessageV3
1351 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
1352 }
1353 public static com.google.ortools.sat.CpSolverResponse parseFrom(
1354 com.google.protobuf.CodedInputStream input)
1355 throws java.io.IOException {
1356 return com.google.protobuf.GeneratedMessageV3
1357 .parseWithIOException(PARSER, input);
1358 }
1359 public static com.google.ortools.sat.CpSolverResponse parseFrom(
1360 com.google.protobuf.CodedInputStream input,
1361 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1362 throws java.io.IOException {
1363 return com.google.protobuf.GeneratedMessageV3
1364 .parseWithIOException(PARSER, input, extensionRegistry);
1365 }
1366
1367 @java.lang.Override
1368 public Builder newBuilderForType() { return newBuilder(); }
1369 public static Builder newBuilder() {
1370 return DEFAULT_INSTANCE.toBuilder();
1371 }
1372 public static Builder newBuilder(com.google.ortools.sat.CpSolverResponse prototype) {
1373 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1374 }
1375 @java.lang.Override
1377 return this == DEFAULT_INSTANCE
1378 ? new Builder() : new Builder().mergeFrom(this);
1379 }
1380
1381 @java.lang.Override
1383 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1384 Builder builder = new Builder(parent);
1385 return builder;
1386 }
1397 public static final class Builder extends
1398 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
1399 // @@protoc_insertion_point(builder_implements:operations_research.sat.CpSolverResponse)
1400 com.google.ortools.sat.CpSolverResponseOrBuilder {
1401 public static final com.google.protobuf.Descriptors.Descriptor
1403 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_descriptor;
1404 }
1405
1406 @java.lang.Override
1407 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
1409 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_fieldAccessorTable
1410 .ensureFieldAccessorsInitialized(
1411 com.google.ortools.sat.CpSolverResponse.class, com.google.ortools.sat.CpSolverResponse.Builder.class);
1412 }
1413
1414 // Construct using com.google.ortools.sat.CpSolverResponse.newBuilder()
1415 private Builder() {
1416 maybeForceBuilderInitialization();
1417 }
1418
1419 private Builder(
1420 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1421 super(parent);
1422 maybeForceBuilderInitialization();
1423 }
1424 private void maybeForceBuilderInitialization() {
1425 if (com.google.protobuf.GeneratedMessageV3
1426 .alwaysUseFieldBuilders) {
1427 getAdditionalSolutionsFieldBuilder();
1428 getTightenedVariablesFieldBuilder();
1429 }
1430 }
1431 @java.lang.Override
1432 public Builder clear() {
1433 super.clear();
1434 status_ = 0;
1435
1436 solution_ = emptyLongList();
1437 bitField0_ = (bitField0_ & ~0x00000001);
1438 objectiveValue_ = 0D;
1439
1440 bestObjectiveBound_ = 0D;
1441
1442 if (additionalSolutionsBuilder_ == null) {
1443 additionalSolutions_ = java.util.Collections.emptyList();
1444 bitField0_ = (bitField0_ & ~0x00000002);
1445 } else {
1446 additionalSolutionsBuilder_.clear();
1447 }
1448 if (tightenedVariablesBuilder_ == null) {
1449 tightenedVariables_ = java.util.Collections.emptyList();
1450 bitField0_ = (bitField0_ & ~0x00000004);
1451 } else {
1452 tightenedVariablesBuilder_.clear();
1453 }
1454 sufficientAssumptionsForInfeasibility_ = emptyIntList();
1455 bitField0_ = (bitField0_ & ~0x00000008);
1456 if (integerObjectiveBuilder_ == null) {
1457 integerObjective_ = null;
1458 } else {
1459 integerObjective_ = null;
1460 integerObjectiveBuilder_ = null;
1461 }
1462 innerObjectiveLowerBound_ = 0L;
1463
1464 numBooleans_ = 0L;
1465
1466 numConflicts_ = 0L;
1467
1468 numBranches_ = 0L;
1469
1470 numBinaryPropagations_ = 0L;
1471
1472 numIntegerPropagations_ = 0L;
1473
1474 numRestarts_ = 0L;
1475
1476 numLpIterations_ = 0L;
1477
1478 wallTime_ = 0D;
1479
1480 userTime_ = 0D;
1481
1482 deterministicTime_ = 0D;
1483
1484 gapIntegral_ = 0D;
1485
1486 solutionInfo_ = "";
1487
1488 solveLog_ = "";
1489
1490 return this;
1491 }
1492
1493 @java.lang.Override
1494 public com.google.protobuf.Descriptors.Descriptor
1496 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_descriptor;
1497 }
1498
1499 @java.lang.Override
1500 public com.google.ortools.sat.CpSolverResponse getDefaultInstanceForType() {
1501 return com.google.ortools.sat.CpSolverResponse.getDefaultInstance();
1502 }
1503
1504 @java.lang.Override
1505 public com.google.ortools.sat.CpSolverResponse build() {
1506 com.google.ortools.sat.CpSolverResponse result = buildPartial();
1507 if (!result.isInitialized()) {
1508 throw newUninitializedMessageException(result);
1509 }
1510 return result;
1511 }
1512
1513 @java.lang.Override
1514 public com.google.ortools.sat.CpSolverResponse buildPartial() {
1515 com.google.ortools.sat.CpSolverResponse result = new com.google.ortools.sat.CpSolverResponse(this);
1516 int from_bitField0_ = bitField0_;
1517 result.status_ = status_;
1518 if (((bitField0_ & 0x00000001) != 0)) {
1519 solution_.makeImmutable();
1520 bitField0_ = (bitField0_ & ~0x00000001);
1521 }
1522 result.solution_ = solution_;
1523 result.objectiveValue_ = objectiveValue_;
1524 result.bestObjectiveBound_ = bestObjectiveBound_;
1525 if (additionalSolutionsBuilder_ == null) {
1526 if (((bitField0_ & 0x00000002) != 0)) {
1527 additionalSolutions_ = java.util.Collections.unmodifiableList(additionalSolutions_);
1528 bitField0_ = (bitField0_ & ~0x00000002);
1529 }
1530 result.additionalSolutions_ = additionalSolutions_;
1531 } else {
1532 result.additionalSolutions_ = additionalSolutionsBuilder_.build();
1533 }
1534 if (tightenedVariablesBuilder_ == null) {
1535 if (((bitField0_ & 0x00000004) != 0)) {
1536 tightenedVariables_ = java.util.Collections.unmodifiableList(tightenedVariables_);
1537 bitField0_ = (bitField0_ & ~0x00000004);
1538 }
1539 result.tightenedVariables_ = tightenedVariables_;
1540 } else {
1541 result.tightenedVariables_ = tightenedVariablesBuilder_.build();
1542 }
1543 if (((bitField0_ & 0x00000008) != 0)) {
1544 sufficientAssumptionsForInfeasibility_.makeImmutable();
1545 bitField0_ = (bitField0_ & ~0x00000008);
1546 }
1547 result.sufficientAssumptionsForInfeasibility_ = sufficientAssumptionsForInfeasibility_;
1548 if (integerObjectiveBuilder_ == null) {
1549 result.integerObjective_ = integerObjective_;
1550 } else {
1551 result.integerObjective_ = integerObjectiveBuilder_.build();
1552 }
1553 result.innerObjectiveLowerBound_ = innerObjectiveLowerBound_;
1554 result.numBooleans_ = numBooleans_;
1555 result.numConflicts_ = numConflicts_;
1556 result.numBranches_ = numBranches_;
1557 result.numBinaryPropagations_ = numBinaryPropagations_;
1558 result.numIntegerPropagations_ = numIntegerPropagations_;
1559 result.numRestarts_ = numRestarts_;
1560 result.numLpIterations_ = numLpIterations_;
1561 result.wallTime_ = wallTime_;
1562 result.userTime_ = userTime_;
1563 result.deterministicTime_ = deterministicTime_;
1564 result.gapIntegral_ = gapIntegral_;
1565 result.solutionInfo_ = solutionInfo_;
1566 result.solveLog_ = solveLog_;
1567 onBuilt();
1568 return result;
1569 }
1570
1571 @java.lang.Override
1572 public Builder clone() {
1573 return super.clone();
1574 }
1575 @java.lang.Override
1577 com.google.protobuf.Descriptors.FieldDescriptor field,
1578 java.lang.Object value) {
1579 return super.setField(field, value);
1580 }
1581 @java.lang.Override
1583 com.google.protobuf.Descriptors.FieldDescriptor field) {
1584 return super.clearField(field);
1585 }
1586 @java.lang.Override
1588 com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1589 return super.clearOneof(oneof);
1590 }
1591 @java.lang.Override
1593 com.google.protobuf.Descriptors.FieldDescriptor field,
1594 int index, java.lang.Object value) {
1595 return super.setRepeatedField(field, index, value);
1596 }
1597 @java.lang.Override
1599 com.google.protobuf.Descriptors.FieldDescriptor field,
1600 java.lang.Object value) {
1601 return super.addRepeatedField(field, value);
1602 }
1603 @java.lang.Override
1604 public Builder mergeFrom(com.google.protobuf.Message other) {
1605 if (other instanceof com.google.ortools.sat.CpSolverResponse) {
1606 return mergeFrom((com.google.ortools.sat.CpSolverResponse)other);
1607 } else {
1608 super.mergeFrom(other);
1609 return this;
1610 }
1611 }
1612
1613 public Builder mergeFrom(com.google.ortools.sat.CpSolverResponse other) {
1614 if (other == com.google.ortools.sat.CpSolverResponse.getDefaultInstance()) return this;
1615 if (other.status_ != 0) {
1616 setStatusValue(other.getStatusValue());
1617 }
1618 if (!other.solution_.isEmpty()) {
1619 if (solution_.isEmpty()) {
1620 solution_ = other.solution_;
1621 bitField0_ = (bitField0_ & ~0x00000001);
1622 } else {
1623 ensureSolutionIsMutable();
1624 solution_.addAll(other.solution_);
1625 }
1626 onChanged();
1627 }
1628 if (other.getObjectiveValue() != 0D) {
1629 setObjectiveValue(other.getObjectiveValue());
1630 }
1631 if (other.getBestObjectiveBound() != 0D) {
1632 setBestObjectiveBound(other.getBestObjectiveBound());
1633 }
1634 if (additionalSolutionsBuilder_ == null) {
1635 if (!other.additionalSolutions_.isEmpty()) {
1636 if (additionalSolutions_.isEmpty()) {
1637 additionalSolutions_ = other.additionalSolutions_;
1638 bitField0_ = (bitField0_ & ~0x00000002);
1639 } else {
1640 ensureAdditionalSolutionsIsMutable();
1641 additionalSolutions_.addAll(other.additionalSolutions_);
1642 }
1643 onChanged();
1644 }
1645 } else {
1646 if (!other.additionalSolutions_.isEmpty()) {
1647 if (additionalSolutionsBuilder_.isEmpty()) {
1648 additionalSolutionsBuilder_.dispose();
1649 additionalSolutionsBuilder_ = null;
1650 additionalSolutions_ = other.additionalSolutions_;
1651 bitField0_ = (bitField0_ & ~0x00000002);
1652 additionalSolutionsBuilder_ =
1653 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
1654 getAdditionalSolutionsFieldBuilder() : null;
1655 } else {
1656 additionalSolutionsBuilder_.addAllMessages(other.additionalSolutions_);
1657 }
1658 }
1659 }
1660 if (tightenedVariablesBuilder_ == null) {
1661 if (!other.tightenedVariables_.isEmpty()) {
1662 if (tightenedVariables_.isEmpty()) {
1663 tightenedVariables_ = other.tightenedVariables_;
1664 bitField0_ = (bitField0_ & ~0x00000004);
1665 } else {
1666 ensureTightenedVariablesIsMutable();
1667 tightenedVariables_.addAll(other.tightenedVariables_);
1668 }
1669 onChanged();
1670 }
1671 } else {
1672 if (!other.tightenedVariables_.isEmpty()) {
1673 if (tightenedVariablesBuilder_.isEmpty()) {
1674 tightenedVariablesBuilder_.dispose();
1675 tightenedVariablesBuilder_ = null;
1676 tightenedVariables_ = other.tightenedVariables_;
1677 bitField0_ = (bitField0_ & ~0x00000004);
1678 tightenedVariablesBuilder_ =
1679 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
1680 getTightenedVariablesFieldBuilder() : null;
1681 } else {
1682 tightenedVariablesBuilder_.addAllMessages(other.tightenedVariables_);
1683 }
1684 }
1685 }
1686 if (!other.sufficientAssumptionsForInfeasibility_.isEmpty()) {
1687 if (sufficientAssumptionsForInfeasibility_.isEmpty()) {
1688 sufficientAssumptionsForInfeasibility_ = other.sufficientAssumptionsForInfeasibility_;
1689 bitField0_ = (bitField0_ & ~0x00000008);
1690 } else {
1691 ensureSufficientAssumptionsForInfeasibilityIsMutable();
1692 sufficientAssumptionsForInfeasibility_.addAll(other.sufficientAssumptionsForInfeasibility_);
1693 }
1694 onChanged();
1695 }
1696 if (other.hasIntegerObjective()) {
1697 mergeIntegerObjective(other.getIntegerObjective());
1698 }
1699 if (other.getInnerObjectiveLowerBound() != 0L) {
1700 setInnerObjectiveLowerBound(other.getInnerObjectiveLowerBound());
1701 }
1702 if (other.getNumBooleans() != 0L) {
1703 setNumBooleans(other.getNumBooleans());
1704 }
1705 if (other.getNumConflicts() != 0L) {
1706 setNumConflicts(other.getNumConflicts());
1707 }
1708 if (other.getNumBranches() != 0L) {
1709 setNumBranches(other.getNumBranches());
1710 }
1711 if (other.getNumBinaryPropagations() != 0L) {
1712 setNumBinaryPropagations(other.getNumBinaryPropagations());
1713 }
1714 if (other.getNumIntegerPropagations() != 0L) {
1715 setNumIntegerPropagations(other.getNumIntegerPropagations());
1716 }
1717 if (other.getNumRestarts() != 0L) {
1718 setNumRestarts(other.getNumRestarts());
1719 }
1720 if (other.getNumLpIterations() != 0L) {
1721 setNumLpIterations(other.getNumLpIterations());
1722 }
1723 if (other.getWallTime() != 0D) {
1724 setWallTime(other.getWallTime());
1725 }
1726 if (other.getUserTime() != 0D) {
1727 setUserTime(other.getUserTime());
1728 }
1729 if (other.getDeterministicTime() != 0D) {
1730 setDeterministicTime(other.getDeterministicTime());
1731 }
1732 if (other.getGapIntegral() != 0D) {
1733 setGapIntegral(other.getGapIntegral());
1734 }
1735 if (!other.getSolutionInfo().isEmpty()) {
1736 solutionInfo_ = other.solutionInfo_;
1737 onChanged();
1738 }
1739 if (!other.getSolveLog().isEmpty()) {
1740 solveLog_ = other.solveLog_;
1741 onChanged();
1742 }
1743 this.mergeUnknownFields(other.unknownFields);
1744 onChanged();
1745 return this;
1746 }
1747
1748 @java.lang.Override
1749 public final boolean isInitialized() {
1750 return true;
1751 }
1752
1753 @java.lang.Override
1755 com.google.protobuf.CodedInputStream input,
1756 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1757 throws java.io.IOException {
1758 com.google.ortools.sat.CpSolverResponse parsedMessage = null;
1759 try {
1760 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
1761 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1762 parsedMessage = (com.google.ortools.sat.CpSolverResponse) e.getUnfinishedMessage();
1763 throw e.unwrapIOException();
1764 } finally {
1765 if (parsedMessage != null) {
1766 mergeFrom(parsedMessage);
1767 }
1768 }
1769 return this;
1770 }
1771 private int bitField0_;
1772
1773 private int status_ = 0;
1782 @java.lang.Override public int getStatusValue() {
1783 return status_;
1784 }
1794 public Builder setStatusValue(int value) {
1795
1796 status_ = value;
1797 onChanged();
1798 return this;
1799 }
1808 @java.lang.Override
1809 public com.google.ortools.sat.CpSolverStatus getStatus() {
1810 @SuppressWarnings("deprecation")
1811 com.google.ortools.sat.CpSolverStatus result = com.google.ortools.sat.CpSolverStatus.valueOf(status_);
1812 return result == null ? com.google.ortools.sat.CpSolverStatus.UNRECOGNIZED : result;
1813 }
1823 public Builder setStatus(com.google.ortools.sat.CpSolverStatus value) {
1824 if (value == null) {
1825 throw new NullPointerException();
1826 }
1827
1828 status_ = value.getNumber();
1829 onChanged();
1830 return this;
1831 }
1841
1842 status_ = 0;
1843 onChanged();
1844 return this;
1845 }
1846
1847 private com.google.protobuf.Internal.LongList solution_ = emptyLongList();
1848 private void ensureSolutionIsMutable() {
1849 if (!((bitField0_ & 0x00000001) != 0)) {
1850 solution_ = mutableCopy(solution_);
1851 bitField0_ |= 0x00000001;
1852 }
1853 }
1865 public java.util.List<java.lang.Long>
1867 return ((bitField0_ & 0x00000001) != 0) ?
1868 java.util.Collections.unmodifiableList(solution_) : solution_;
1869 }
1881 public int getSolutionCount() {
1882 return solution_.size();
1883 }
1896 public long getSolution(int index) {
1897 return solution_.getLong(index);
1898 }
1913 int index, long value) {
1914 ensureSolutionIsMutable();
1915 solution_.setLong(index, value);
1916 onChanged();
1917 return this;
1918 }
1931 public Builder addSolution(long value) {
1932 ensureSolutionIsMutable();
1933 solution_.addLong(value);
1934 onChanged();
1935 return this;
1936 }
1950 java.lang.Iterable<? extends java.lang.Long> values) {
1951 ensureSolutionIsMutable();
1952 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1953 values, solution_);
1954 onChanged();
1955 return this;
1956 }
1969 solution_ = emptyLongList();
1970 bitField0_ = (bitField0_ & ~0x00000001);
1971 onChanged();
1972 return this;
1973 }
1974
1975 private double objectiveValue_ ;
1987 @java.lang.Override
1988 public double getObjectiveValue() {
1989 return objectiveValue_;
1990 }
2003 public Builder setObjectiveValue(double value) {
2004
2005 objectiveValue_ = value;
2006 onChanged();
2007 return this;
2008 }
2021
2022 objectiveValue_ = 0D;
2023 onChanged();
2024 return this;
2025 }
2026
2027 private double bestObjectiveBound_ ;
2038 @java.lang.Override
2039 public double getBestObjectiveBound() {
2040 return bestObjectiveBound_;
2041 }
2053 public Builder setBestObjectiveBound(double value) {
2054
2055 bestObjectiveBound_ = value;
2056 onChanged();
2057 return this;
2058 }
2070
2071 bestObjectiveBound_ = 0D;
2072 onChanged();
2073 return this;
2074 }
2075
2076 private java.util.List<com.google.ortools.sat.CpSolverSolution> additionalSolutions_ =
2077 java.util.Collections.emptyList();
2078 private void ensureAdditionalSolutionsIsMutable() {
2079 if (!((bitField0_ & 0x00000002) != 0)) {
2080 additionalSolutions_ = new java.util.ArrayList<com.google.ortools.sat.CpSolverSolution>(additionalSolutions_);
2081 bitField0_ |= 0x00000002;
2082 }
2083 }
2084
2085 private com.google.protobuf.RepeatedFieldBuilderV3<
2086 com.google.ortools.sat.CpSolverSolution, com.google.ortools.sat.CpSolverSolution.Builder, com.google.ortools.sat.CpSolverSolutionOrBuilder> additionalSolutionsBuilder_;
2087
2099 public java.util.List<com.google.ortools.sat.CpSolverSolution> getAdditionalSolutionsList() {
2100 if (additionalSolutionsBuilder_ == null) {
2101 return java.util.Collections.unmodifiableList(additionalSolutions_);
2102 } else {
2103 return additionalSolutionsBuilder_.getMessageList();
2104 }
2105 }
2118 if (additionalSolutionsBuilder_ == null) {
2119 return additionalSolutions_.size();
2120 } else {
2121 return additionalSolutionsBuilder_.getCount();
2122 }
2123 }
2135 public com.google.ortools.sat.CpSolverSolution getAdditionalSolutions(int index) {
2136 if (additionalSolutionsBuilder_ == null) {
2137 return additionalSolutions_.get(index);
2138 } else {
2139 return additionalSolutionsBuilder_.getMessage(index);
2140 }
2141 }
2154 int index, com.google.ortools.sat.CpSolverSolution value) {
2155 if (additionalSolutionsBuilder_ == null) {
2156 if (value == null) {
2157 throw new NullPointerException();
2158 }
2159 ensureAdditionalSolutionsIsMutable();
2160 additionalSolutions_.set(index, value);
2161 onChanged();
2162 } else {
2163 additionalSolutionsBuilder_.setMessage(index, value);
2164 }
2165 return this;
2166 }
2179 int index, com.google.ortools.sat.CpSolverSolution.Builder builderForValue) {
2180 if (additionalSolutionsBuilder_ == null) {
2181 ensureAdditionalSolutionsIsMutable();
2182 additionalSolutions_.set(index, builderForValue.build());
2183 onChanged();
2184 } else {
2185 additionalSolutionsBuilder_.setMessage(index, builderForValue.build());
2186 }
2187 return this;
2188 }
2200 public Builder addAdditionalSolutions(com.google.ortools.sat.CpSolverSolution value) {
2201 if (additionalSolutionsBuilder_ == null) {
2202 if (value == null) {
2203 throw new NullPointerException();
2204 }
2205 ensureAdditionalSolutionsIsMutable();
2206 additionalSolutions_.add(value);
2207 onChanged();
2208 } else {
2209 additionalSolutionsBuilder_.addMessage(value);
2210 }
2211 return this;
2212 }
2225 int index, com.google.ortools.sat.CpSolverSolution value) {
2226 if (additionalSolutionsBuilder_ == null) {
2227 if (value == null) {
2228 throw new NullPointerException();
2229 }
2230 ensureAdditionalSolutionsIsMutable();
2231 additionalSolutions_.add(index, value);
2232 onChanged();
2233 } else {
2234 additionalSolutionsBuilder_.addMessage(index, value);
2235 }
2236 return this;
2237 }
2250 com.google.ortools.sat.CpSolverSolution.Builder builderForValue) {
2251 if (additionalSolutionsBuilder_ == null) {
2252 ensureAdditionalSolutionsIsMutable();
2253 additionalSolutions_.add(builderForValue.build());
2254 onChanged();
2255 } else {
2256 additionalSolutionsBuilder_.addMessage(builderForValue.build());
2257 }
2258 return this;
2259 }
2272 int index, com.google.ortools.sat.CpSolverSolution.Builder builderForValue) {
2273 if (additionalSolutionsBuilder_ == null) {
2274 ensureAdditionalSolutionsIsMutable();
2275 additionalSolutions_.add(index, builderForValue.build());
2276 onChanged();
2277 } else {
2278 additionalSolutionsBuilder_.addMessage(index, builderForValue.build());
2279 }
2280 return this;
2281 }
2294 java.lang.Iterable<? extends com.google.ortools.sat.CpSolverSolution> values) {
2295 if (additionalSolutionsBuilder_ == null) {
2296 ensureAdditionalSolutionsIsMutable();
2297 com.google.protobuf.AbstractMessageLite.Builder.addAll(
2298 values, additionalSolutions_);
2299 onChanged();
2300 } else {
2301 additionalSolutionsBuilder_.addAllMessages(values);
2302 }
2303 return this;
2304 }
2317 if (additionalSolutionsBuilder_ == null) {
2318 additionalSolutions_ = java.util.Collections.emptyList();
2319 bitField0_ = (bitField0_ & ~0x00000002);
2320 onChanged();
2321 } else {
2322 additionalSolutionsBuilder_.clear();
2323 }
2324 return this;
2325 }
2338 if (additionalSolutionsBuilder_ == null) {
2339 ensureAdditionalSolutionsIsMutable();
2340 additionalSolutions_.remove(index);
2341 onChanged();
2342 } else {
2343 additionalSolutionsBuilder_.remove(index);
2344 }
2345 return this;
2346 }
2358 public com.google.ortools.sat.CpSolverSolution.Builder getAdditionalSolutionsBuilder(
2359 int index) {
2360 return getAdditionalSolutionsFieldBuilder().getBuilder(index);
2361 }
2373 public com.google.ortools.sat.CpSolverSolutionOrBuilder getAdditionalSolutionsOrBuilder(
2374 int index) {
2375 if (additionalSolutionsBuilder_ == null) {
2376 return additionalSolutions_.get(index); } else {
2377 return additionalSolutionsBuilder_.getMessageOrBuilder(index);
2378 }
2379 }
2391 public java.util.List<? extends com.google.ortools.sat.CpSolverSolutionOrBuilder>
2393 if (additionalSolutionsBuilder_ != null) {
2394 return additionalSolutionsBuilder_.getMessageOrBuilderList();
2395 } else {
2396 return java.util.Collections.unmodifiableList(additionalSolutions_);
2397 }
2398 }
2410 public com.google.ortools.sat.CpSolverSolution.Builder addAdditionalSolutionsBuilder() {
2411 return getAdditionalSolutionsFieldBuilder().addBuilder(
2412 com.google.ortools.sat.CpSolverSolution.getDefaultInstance());
2413 }
2425 public com.google.ortools.sat.CpSolverSolution.Builder addAdditionalSolutionsBuilder(
2426 int index) {
2427 return getAdditionalSolutionsFieldBuilder().addBuilder(
2428 index, com.google.ortools.sat.CpSolverSolution.getDefaultInstance());
2429 }
2441 public java.util.List<com.google.ortools.sat.CpSolverSolution.Builder>
2443 return getAdditionalSolutionsFieldBuilder().getBuilderList();
2444 }
2445 private com.google.protobuf.RepeatedFieldBuilderV3<
2446 com.google.ortools.sat.CpSolverSolution, com.google.ortools.sat.CpSolverSolution.Builder, com.google.ortools.sat.CpSolverSolutionOrBuilder>
2447 getAdditionalSolutionsFieldBuilder() {
2448 if (additionalSolutionsBuilder_ == null) {
2449 additionalSolutionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
2450 com.google.ortools.sat.CpSolverSolution, com.google.ortools.sat.CpSolverSolution.Builder, com.google.ortools.sat.CpSolverSolutionOrBuilder>(
2451 additionalSolutions_,
2452 ((bitField0_ & 0x00000002) != 0),
2453 getParentForChildren(),
2454 isClean());
2455 additionalSolutions_ = null;
2456 }
2457 return additionalSolutionsBuilder_;
2458 }
2459
2460 private java.util.List<com.google.ortools.sat.IntegerVariableProto> tightenedVariables_ =
2461 java.util.Collections.emptyList();
2462 private void ensureTightenedVariablesIsMutable() {
2463 if (!((bitField0_ & 0x00000004) != 0)) {
2464 tightenedVariables_ = new java.util.ArrayList<com.google.ortools.sat.IntegerVariableProto>(tightenedVariables_);
2465 bitField0_ |= 0x00000004;
2466 }
2467 }
2468
2469 private com.google.protobuf.RepeatedFieldBuilderV3<
2470 com.google.ortools.sat.IntegerVariableProto, com.google.ortools.sat.IntegerVariableProto.Builder, com.google.ortools.sat.IntegerVariableProtoOrBuilder> tightenedVariablesBuilder_;
2471
2488 public java.util.List<com.google.ortools.sat.IntegerVariableProto> getTightenedVariablesList() {
2489 if (tightenedVariablesBuilder_ == null) {
2490 return java.util.Collections.unmodifiableList(tightenedVariables_);
2491 } else {
2492 return tightenedVariablesBuilder_.getMessageList();
2493 }
2494 }
2512 if (tightenedVariablesBuilder_ == null) {
2513 return tightenedVariables_.size();
2514 } else {
2515 return tightenedVariablesBuilder_.getCount();
2516 }
2517 }
2534 public com.google.ortools.sat.IntegerVariableProto getTightenedVariables(int index) {
2535 if (tightenedVariablesBuilder_ == null) {
2536 return tightenedVariables_.get(index);
2537 } else {
2538 return tightenedVariablesBuilder_.getMessage(index);
2539 }
2540 }
2558 int index, com.google.ortools.sat.IntegerVariableProto value) {
2559 if (tightenedVariablesBuilder_ == null) {
2560 if (value == null) {
2561 throw new NullPointerException();
2562 }
2563 ensureTightenedVariablesIsMutable();
2564 tightenedVariables_.set(index, value);
2565 onChanged();
2566 } else {
2567 tightenedVariablesBuilder_.setMessage(index, value);
2568 }
2569 return this;
2570 }
2588 int index, com.google.ortools.sat.IntegerVariableProto.Builder builderForValue) {
2589 if (tightenedVariablesBuilder_ == null) {
2590 ensureTightenedVariablesIsMutable();
2591 tightenedVariables_.set(index, builderForValue.build());
2592 onChanged();
2593 } else {
2594 tightenedVariablesBuilder_.setMessage(index, builderForValue.build());
2595 }
2596 return this;
2597 }
2614 public Builder addTightenedVariables(com.google.ortools.sat.IntegerVariableProto value) {
2615 if (tightenedVariablesBuilder_ == null) {
2616 if (value == null) {
2617 throw new NullPointerException();
2618 }
2619 ensureTightenedVariablesIsMutable();
2620 tightenedVariables_.add(value);
2621 onChanged();
2622 } else {
2623 tightenedVariablesBuilder_.addMessage(value);
2624 }
2625 return this;
2626 }
2644 int index, com.google.ortools.sat.IntegerVariableProto value) {
2645 if (tightenedVariablesBuilder_ == null) {
2646 if (value == null) {
2647 throw new NullPointerException();
2648 }
2649 ensureTightenedVariablesIsMutable();
2650 tightenedVariables_.add(index, value);
2651 onChanged();
2652 } else {
2653 tightenedVariablesBuilder_.addMessage(index, value);
2654 }
2655 return this;
2656 }
2674 com.google.ortools.sat.IntegerVariableProto.Builder builderForValue) {
2675 if (tightenedVariablesBuilder_ == null) {
2676 ensureTightenedVariablesIsMutable();
2677 tightenedVariables_.add(builderForValue.build());
2678 onChanged();
2679 } else {
2680 tightenedVariablesBuilder_.addMessage(builderForValue.build());
2681 }
2682 return this;
2683 }
2701 int index, com.google.ortools.sat.IntegerVariableProto.Builder builderForValue) {
2702 if (tightenedVariablesBuilder_ == null) {
2703 ensureTightenedVariablesIsMutable();
2704 tightenedVariables_.add(index, builderForValue.build());
2705 onChanged();
2706 } else {
2707 tightenedVariablesBuilder_.addMessage(index, builderForValue.build());
2708 }
2709 return this;
2710 }
2728 java.lang.Iterable<? extends com.google.ortools.sat.IntegerVariableProto> values) {
2729 if (tightenedVariablesBuilder_ == null) {
2730 ensureTightenedVariablesIsMutable();
2731 com.google.protobuf.AbstractMessageLite.Builder.addAll(
2732 values, tightenedVariables_);
2733 onChanged();
2734 } else {
2735 tightenedVariablesBuilder_.addAllMessages(values);
2736 }
2737 return this;
2738 }
2756 if (tightenedVariablesBuilder_ == null) {
2757 tightenedVariables_ = java.util.Collections.emptyList();
2758 bitField0_ = (bitField0_ & ~0x00000004);
2759 onChanged();
2760 } else {
2761 tightenedVariablesBuilder_.clear();
2762 }
2763 return this;
2764 }
2782 if (tightenedVariablesBuilder_ == null) {
2783 ensureTightenedVariablesIsMutable();
2784 tightenedVariables_.remove(index);
2785 onChanged();
2786 } else {
2787 tightenedVariablesBuilder_.remove(index);
2788 }
2789 return this;
2790 }
2807 public com.google.ortools.sat.IntegerVariableProto.Builder getTightenedVariablesBuilder(
2808 int index) {
2809 return getTightenedVariablesFieldBuilder().getBuilder(index);
2810 }
2827 public com.google.ortools.sat.IntegerVariableProtoOrBuilder getTightenedVariablesOrBuilder(
2828 int index) {
2829 if (tightenedVariablesBuilder_ == null) {
2830 return tightenedVariables_.get(index); } else {
2831 return tightenedVariablesBuilder_.getMessageOrBuilder(index);
2832 }
2833 }
2850 public java.util.List<? extends com.google.ortools.sat.IntegerVariableProtoOrBuilder>
2852 if (tightenedVariablesBuilder_ != null) {
2853 return tightenedVariablesBuilder_.getMessageOrBuilderList();
2854 } else {
2855 return java.util.Collections.unmodifiableList(tightenedVariables_);
2856 }
2857 }
2874 public com.google.ortools.sat.IntegerVariableProto.Builder addTightenedVariablesBuilder() {
2875 return getTightenedVariablesFieldBuilder().addBuilder(
2876 com.google.ortools.sat.IntegerVariableProto.getDefaultInstance());
2877 }
2894 public com.google.ortools.sat.IntegerVariableProto.Builder addTightenedVariablesBuilder(
2895 int index) {
2896 return getTightenedVariablesFieldBuilder().addBuilder(
2897 index, com.google.ortools.sat.IntegerVariableProto.getDefaultInstance());
2898 }
2915 public java.util.List<com.google.ortools.sat.IntegerVariableProto.Builder>
2917 return getTightenedVariablesFieldBuilder().getBuilderList();
2918 }
2919 private com.google.protobuf.RepeatedFieldBuilderV3<
2920 com.google.ortools.sat.IntegerVariableProto, com.google.ortools.sat.IntegerVariableProto.Builder, com.google.ortools.sat.IntegerVariableProtoOrBuilder>
2921 getTightenedVariablesFieldBuilder() {
2922 if (tightenedVariablesBuilder_ == null) {
2923 tightenedVariablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
2924 com.google.ortools.sat.IntegerVariableProto, com.google.ortools.sat.IntegerVariableProto.Builder, com.google.ortools.sat.IntegerVariableProtoOrBuilder>(
2925 tightenedVariables_,
2926 ((bitField0_ & 0x00000004) != 0),
2927 getParentForChildren(),
2928 isClean());
2929 tightenedVariables_ = null;
2930 }
2931 return tightenedVariablesBuilder_;
2932 }
2933
2934 private com.google.protobuf.Internal.IntList sufficientAssumptionsForInfeasibility_ = emptyIntList();
2935 private void ensureSufficientAssumptionsForInfeasibilityIsMutable() {
2936 if (!((bitField0_ & 0x00000008) != 0)) {
2937 sufficientAssumptionsForInfeasibility_ = mutableCopy(sufficientAssumptionsForInfeasibility_);
2938 bitField0_ |= 0x00000008;
2939 }
2940 }
2963 public java.util.List<java.lang.Integer>
2965 return ((bitField0_ & 0x00000008) != 0) ?
2966 java.util.Collections.unmodifiableList(sufficientAssumptionsForInfeasibility_) : sufficientAssumptionsForInfeasibility_;
2967 }
2991 return sufficientAssumptionsForInfeasibility_.size();
2992 }
3017 return sufficientAssumptionsForInfeasibility_.getInt(index);
3018 }
3044 int index, int value) {
3045 ensureSufficientAssumptionsForInfeasibilityIsMutable();
3046 sufficientAssumptionsForInfeasibility_.setInt(index, value);
3047 onChanged();
3048 return this;
3049 }
3074 ensureSufficientAssumptionsForInfeasibilityIsMutable();
3075 sufficientAssumptionsForInfeasibility_.addInt(value);
3076 onChanged();
3077 return this;
3078 }
3103 java.lang.Iterable<? extends java.lang.Integer> values) {
3104 ensureSufficientAssumptionsForInfeasibilityIsMutable();
3105 com.google.protobuf.AbstractMessageLite.Builder.addAll(
3106 values, sufficientAssumptionsForInfeasibility_);
3107 onChanged();
3108 return this;
3109 }
3133 sufficientAssumptionsForInfeasibility_ = emptyIntList();
3134 bitField0_ = (bitField0_ & ~0x00000008);
3135 onChanged();
3136 return this;
3137 }
3138
3139 private com.google.ortools.sat.CpObjectiveProto integerObjective_;
3140 private com.google.protobuf.SingleFieldBuilderV3<
3141 com.google.ortools.sat.CpObjectiveProto, com.google.ortools.sat.CpObjectiveProto.Builder, com.google.ortools.sat.CpObjectiveProtoOrBuilder> integerObjectiveBuilder_;
3152 public boolean hasIntegerObjective() {
3153 return integerObjectiveBuilder_ != null || integerObjective_ != null;
3154 }
3165 public com.google.ortools.sat.CpObjectiveProto getIntegerObjective() {
3166 if (integerObjectiveBuilder_ == null) {
3167 return integerObjective_ == null ? com.google.ortools.sat.CpObjectiveProto.getDefaultInstance() : integerObjective_;
3168 } else {
3169 return integerObjectiveBuilder_.getMessage();
3170 }
3171 }
3181 public Builder setIntegerObjective(com.google.ortools.sat.CpObjectiveProto value) {
3182 if (integerObjectiveBuilder_ == null) {
3183 if (value == null) {
3184 throw new NullPointerException();
3185 }
3186 integerObjective_ = value;
3187 onChanged();
3188 } else {
3189 integerObjectiveBuilder_.setMessage(value);
3190 }
3191
3192 return this;
3193 }
3204 com.google.ortools.sat.CpObjectiveProto.Builder builderForValue) {
3205 if (integerObjectiveBuilder_ == null) {
3206 integerObjective_ = builderForValue.build();
3207 onChanged();
3208 } else {
3209 integerObjectiveBuilder_.setMessage(builderForValue.build());
3210 }
3211
3212 return this;
3213 }
3223 public Builder mergeIntegerObjective(com.google.ortools.sat.CpObjectiveProto value) {
3224 if (integerObjectiveBuilder_ == null) {
3225 if (integerObjective_ != null) {
3226 integerObjective_ =
3227 com.google.ortools.sat.CpObjectiveProto.newBuilder(integerObjective_).mergeFrom(value).buildPartial();
3228 } else {
3229 integerObjective_ = value;
3230 }
3231 onChanged();
3232 } else {
3233 integerObjectiveBuilder_.mergeFrom(value);
3234 }
3235
3236 return this;
3237 }
3248 if (integerObjectiveBuilder_ == null) {
3249 integerObjective_ = null;
3250 onChanged();
3251 } else {
3252 integerObjective_ = null;
3253 integerObjectiveBuilder_ = null;
3254 }
3255
3256 return this;
3257 }
3267 public com.google.ortools.sat.CpObjectiveProto.Builder getIntegerObjectiveBuilder() {
3268
3269 onChanged();
3270 return getIntegerObjectiveFieldBuilder().getBuilder();
3271 }
3281 public com.google.ortools.sat.CpObjectiveProtoOrBuilder getIntegerObjectiveOrBuilder() {
3282 if (integerObjectiveBuilder_ != null) {
3283 return integerObjectiveBuilder_.getMessageOrBuilder();
3284 } else {
3285 return integerObjective_ == null ?
3286 com.google.ortools.sat.CpObjectiveProto.getDefaultInstance() : integerObjective_;
3287 }
3288 }
3298 private com.google.protobuf.SingleFieldBuilderV3<
3299 com.google.ortools.sat.CpObjectiveProto, com.google.ortools.sat.CpObjectiveProto.Builder, com.google.ortools.sat.CpObjectiveProtoOrBuilder>
3300 getIntegerObjectiveFieldBuilder() {
3301 if (integerObjectiveBuilder_ == null) {
3302 integerObjectiveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
3303 com.google.ortools.sat.CpObjectiveProto, com.google.ortools.sat.CpObjectiveProto.Builder, com.google.ortools.sat.CpObjectiveProtoOrBuilder>(
3305 getParentForChildren(),
3306 isClean());
3307 integerObjective_ = null;
3308 }
3309 return integerObjectiveBuilder_;
3310 }
3311
3312 private long innerObjectiveLowerBound_ ;
3325 @java.lang.Override
3327 return innerObjectiveLowerBound_;
3328 }
3343
3344 innerObjectiveLowerBound_ = value;
3345 onChanged();
3346 return this;
3347 }
3361
3362 innerObjectiveLowerBound_ = 0L;
3363 onChanged();
3364 return this;
3365 }
3366
3367 private long numBooleans_ ;
3377 @java.lang.Override
3378 public long getNumBooleans() {
3379 return numBooleans_;
3380 }
3391 public Builder setNumBooleans(long value) {
3392
3393 numBooleans_ = value;
3394 onChanged();
3395 return this;
3396 }
3407
3408 numBooleans_ = 0L;
3409 onChanged();
3410 return this;
3411 }
3412
3413 private long numConflicts_ ;
3418 @java.lang.Override
3419 public long getNumConflicts() {
3420 return numConflicts_;
3421 }
3427 public Builder setNumConflicts(long value) {
3428
3429 numConflicts_ = value;
3430 onChanged();
3431 return this;
3432 }
3438
3439 numConflicts_ = 0L;
3440 onChanged();
3441 return this;
3442 }
3443
3444 private long numBranches_ ;
3449 @java.lang.Override
3450 public long getNumBranches() {
3451 return numBranches_;
3452 }
3458 public Builder setNumBranches(long value) {
3459
3460 numBranches_ = value;
3461 onChanged();
3462 return this;
3463 }
3469
3470 numBranches_ = 0L;
3471 onChanged();
3472 return this;
3473 }
3474
3475 private long numBinaryPropagations_ ;
3480 @java.lang.Override
3482 return numBinaryPropagations_;
3483 }
3490
3491 numBinaryPropagations_ = value;
3492 onChanged();
3493 return this;
3494 }
3500
3501 numBinaryPropagations_ = 0L;
3502 onChanged();
3503 return this;
3504 }
3505
3506 private long numIntegerPropagations_ ;
3511 @java.lang.Override
3513 return numIntegerPropagations_;
3514 }
3521
3522 numIntegerPropagations_ = value;
3523 onChanged();
3524 return this;
3525 }
3531
3532 numIntegerPropagations_ = 0L;
3533 onChanged();
3534 return this;
3535 }
3536
3537 private long numRestarts_ ;
3542 @java.lang.Override
3543 public long getNumRestarts() {
3544 return numRestarts_;
3545 }
3551 public Builder setNumRestarts(long value) {
3552
3553 numRestarts_ = value;
3554 onChanged();
3555 return this;
3556 }
3562
3563 numRestarts_ = 0L;
3564 onChanged();
3565 return this;
3566 }
3567
3568 private long numLpIterations_ ;
3573 @java.lang.Override
3574 public long getNumLpIterations() {
3575 return numLpIterations_;
3576 }
3582 public Builder setNumLpIterations(long value) {
3583
3584 numLpIterations_ = value;
3585 onChanged();
3586 return this;
3587 }
3593
3594 numLpIterations_ = 0L;
3595 onChanged();
3596 return this;
3597 }
3598
3599 private double wallTime_ ;
3608 @java.lang.Override
3609 public double getWallTime() {
3610 return wallTime_;
3611 }
3621 public Builder setWallTime(double value) {
3622
3623 wallTime_ = value;
3624 onChanged();
3625 return this;
3626 }
3636
3637 wallTime_ = 0D;
3638 onChanged();
3639 return this;
3640 }
3641
3642 private double userTime_ ;
3647 @java.lang.Override
3648 public double getUserTime() {
3649 return userTime_;
3650 }
3656 public Builder setUserTime(double value) {
3657
3658 userTime_ = value;
3659 onChanged();
3660 return this;
3661 }
3667
3668 userTime_ = 0D;
3669 onChanged();
3670 return this;
3671 }
3672
3673 private double deterministicTime_ ;
3678 @java.lang.Override
3679 public double getDeterministicTime() {
3680 return deterministicTime_;
3681 }
3687 public Builder setDeterministicTime(double value) {
3688
3689 deterministicTime_ = value;
3690 onChanged();
3691 return this;
3692 }
3698
3699 deterministicTime_ = 0D;
3700 onChanged();
3701 return this;
3702 }
3703
3704 private double gapIntegral_ ;
3713 @java.lang.Override
3714 public double getGapIntegral() {
3715 return gapIntegral_;
3716 }
3726 public Builder setGapIntegral(double value) {
3727
3728 gapIntegral_ = value;
3729 onChanged();
3730 return this;
3731 }
3741
3742 gapIntegral_ = 0D;
3743 onChanged();
3744 return this;
3745 }
3746
3747 private java.lang.Object solutionInfo_ = "";
3757 public java.lang.String getSolutionInfo() {
3758 java.lang.Object ref = solutionInfo_;
3759 if (!(ref instanceof java.lang.String)) {
3760 com.google.protobuf.ByteString bs =
3761 (com.google.protobuf.ByteString) ref;
3762 java.lang.String s = bs.toStringUtf8();
3763 solutionInfo_ = s;
3764 return s;
3765 } else {
3766 return (java.lang.String) ref;
3767 }
3768 }
3778 public com.google.protobuf.ByteString
3780 java.lang.Object ref = solutionInfo_;
3781 if (ref instanceof String) {
3782 com.google.protobuf.ByteString b =
3783 com.google.protobuf.ByteString.copyFromUtf8(
3784 (java.lang.String) ref);
3785 solutionInfo_ = b;
3786 return b;
3787 } else {
3788 return (com.google.protobuf.ByteString) ref;
3789 }
3790 }
3802 java.lang.String value) {
3803 if (value == null) {
3804 throw new NullPointerException();
3805 }
3806
3807 solutionInfo_ = value;
3808 onChanged();
3809 return this;
3810 }
3821
3822 solutionInfo_ = getDefaultInstance().getSolutionInfo();
3823 onChanged();
3824 return this;
3825 }
3837 com.google.protobuf.ByteString value) {
3838 if (value == null) {
3839 throw new NullPointerException();
3840 }
3841 checkByteStringIsUtf8(value);
3842
3843 solutionInfo_ = value;
3844 onChanged();
3845 return this;
3846 }
3847
3848 private java.lang.Object solveLog_ = "";
3858 public java.lang.String getSolveLog() {
3859 java.lang.Object ref = solveLog_;
3860 if (!(ref instanceof java.lang.String)) {
3861 com.google.protobuf.ByteString bs =
3862 (com.google.protobuf.ByteString) ref;
3863 java.lang.String s = bs.toStringUtf8();
3864 solveLog_ = s;
3865 return s;
3866 } else {
3867 return (java.lang.String) ref;
3868 }
3869 }
3879 public com.google.protobuf.ByteString
3881 java.lang.Object ref = solveLog_;
3882 if (ref instanceof String) {
3883 com.google.protobuf.ByteString b =
3884 com.google.protobuf.ByteString.copyFromUtf8(
3885 (java.lang.String) ref);
3886 solveLog_ = b;
3887 return b;
3888 } else {
3889 return (com.google.protobuf.ByteString) ref;
3890 }
3891 }
3903 java.lang.String value) {
3904 if (value == null) {
3905 throw new NullPointerException();
3906 }
3907
3908 solveLog_ = value;
3909 onChanged();
3910 return this;
3911 }
3922
3923 solveLog_ = getDefaultInstance().getSolveLog();
3924 onChanged();
3925 return this;
3926 }
3938 com.google.protobuf.ByteString value) {
3939 if (value == null) {
3940 throw new NullPointerException();
3941 }
3942 checkByteStringIsUtf8(value);
3943
3944 solveLog_ = value;
3945 onChanged();
3946 return this;
3947 }
3948 @java.lang.Override
3950 final com.google.protobuf.UnknownFieldSet unknownFields) {
3951 return super.setUnknownFields(unknownFields);
3952 }
3953
3954 @java.lang.Override
3956 final com.google.protobuf.UnknownFieldSet unknownFields) {
3957 return super.mergeUnknownFields(unknownFields);
3958 }
3959
3960
3961 // @@protoc_insertion_point(builder_scope:operations_research.sat.CpSolverResponse)
3962 }
3963
3964 // @@protoc_insertion_point(class_scope:operations_research.sat.CpSolverResponse)
3965 private static final com.google.ortools.sat.CpSolverResponse DEFAULT_INSTANCE;
3966 static {
3967 DEFAULT_INSTANCE = new com.google.ortools.sat.CpSolverResponse();
3968 }
3969
3970 public static com.google.ortools.sat.CpSolverResponse getDefaultInstance() {
3971 return DEFAULT_INSTANCE;
3972 }
3973
3974 private static final com.google.protobuf.Parser<CpSolverResponse>
3975 PARSER = new com.google.protobuf.AbstractParser<CpSolverResponse>() {
3976 @java.lang.Override
3977 public CpSolverResponse parsePartialFrom(
3978 com.google.protobuf.CodedInputStream input,
3979 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3980 throws com.google.protobuf.InvalidProtocolBufferException {
3981 return new CpSolverResponse(input, extensionRegistry);
3982 }
3983 };
3984
3985 public static com.google.protobuf.Parser<CpSolverResponse> parser() {
3986 return PARSER;
3987 }
3988
3989 @java.lang.Override
3990 public com.google.protobuf.Parser<CpSolverResponse> getParserForType() {
3991 return PARSER;
3992 }
3993
3994 @java.lang.Override
3995 public com.google.ortools.sat.CpSolverResponse getDefaultInstanceForType() {
3996 return DEFAULT_INSTANCE;
3997 }
3998
3999}
4000
.lang.Override boolean equals(final java.lang.Object obj)
java.util.List<? extends com.google.ortools.sat.IntegerVariableProtoOrBuilder > getTightenedVariablesOrBuilderList()
com.google.ortools.sat.CpSolverSolution getAdditionalSolutions(int index)
Builder addTightenedVariables(com.google.ortools.sat.IntegerVariableProto.Builder builderForValue)
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;
java.util.List< com.google.ortools.sat.CpSolverSolution > getAdditionalSolutionsList()
com.google.ortools.sat.CpSolverSolution.Builder addAdditionalSolutionsBuilder()
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)
Builder setAdditionalSolutions(int index, com.google.ortools.sat.CpSolverSolution.Builder builderForValue)
com.google.ortools.sat.CpObjectiveProto.Builder getIntegerObjectiveBuilder()
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;
com.google.ortools.sat.CpSolverSolution.Builder getAdditionalSolutionsBuilder(int index)
Builder setIntegerObjective(com.google.ortools.sat.CpObjectiveProto value)
.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 addAdditionalSolutions(com.google.ortools.sat.CpSolverSolution value)
com.google.ortools.sat.CpSolverSolution.Builder addAdditionalSolutionsBuilder(int index)
.lang.Override com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
Builder addAdditionalSolutions(com.google.ortools.sat.CpSolverSolution.Builder builderForValue)
.lang.Override double getUserTime()
double user_time = 16;
com.google.ortools.sat.CpObjectiveProtoOrBuilder getIntegerObjectiveOrBuilder()
java.util.List< com.google.ortools.sat.CpSolverSolution.Builder > getAdditionalSolutionsBuilderList()
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.CpObjectiveProto getIntegerObjective()
com.google.ortools.sat.IntegerVariableProtoOrBuilder getTightenedVariablesOrBuilder(int index)
Builder addAdditionalSolutions(int index, com.google.ortools.sat.CpSolverSolution value)
com.google.protobuf.ByteString getSolutionInfoBytes()
Builder mergeIntegerObjective(com.google.ortools.sat.CpObjectiveProto value)
Builder setSolveLogBytes(com.google.protobuf.ByteString value)
Builder clearNumBinaryPropagations()
int64 num_binary_propagations = 13;
java.util.List<? extends com.google.ortools.sat.CpSolverSolutionOrBuilder > getAdditionalSolutionsOrBuilderList()
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()
Builder addAllAdditionalSolutions(java.lang.Iterable<? extends com.google.ortools.sat.CpSolverSolution > values)
.lang.Override double getDeterministicTime()
double deterministic_time = 17;
Builder setDeterministicTime(double value)
double deterministic_time = 17;
Builder setIntegerObjective(com.google.ortools.sat.CpObjectiveProto.Builder builderForValue)
Builder setAdditionalSolutions(int index, com.google.ortools.sat.CpSolverSolution value)
.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;
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;
Builder addAdditionalSolutions(int index, com.google.ortools.sat.CpSolverSolution.Builder builderForValue)
java.util.List< com.google.ortools.sat.IntegerVariableProto > getTightenedVariablesList()
com.google.ortools.sat.IntegerVariableProto.Builder addTightenedVariablesBuilder()
com.google.ortools.sat.CpSolverSolutionOrBuilder getAdditionalSolutionsOrBuilder(int index)
.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;
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;
Builder addTightenedVariables(int index, com.google.ortools.sat.IntegerVariableProto value)
.lang.Override Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
.lang.Override long getNumBranches()
int64 num_branches = 12;
.lang.Override Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
.lang.Override com.google.protobuf.ByteString getSolveLogBytes()
.lang.Override java.util.List<? extends com.google.ortools.sat.CpSolverSolutionOrBuilder > getAdditionalSolutionsOrBuilderList()
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 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 boolean hasIntegerObjective()
.lang.Override double getUserTime()
double user_time = 16;
.lang.Override java.util.List< com.google.ortools.sat.CpSolverSolution > getAdditionalSolutionsList()
.lang.Override java.util.List< com.google.ortools.sat.IntegerVariableProto > getTightenedVariablesList()
.lang.Override com.google.ortools.sat.CpObjectiveProto getIntegerObjective()
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;
.lang.Override java.util.List< java.lang.Integer > getSufficientAssumptionsForInfeasibilityList()
.lang.Override com.google.ortools.sat.CpSolverSolutionOrBuilder getAdditionalSolutionsOrBuilder(int index)
.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;
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()
static com.google.ortools.sat.CpSolverResponse parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override com.google.ortools.sat.CpSolverSolution getAdditionalSolutions(int index)
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 com.google.ortools.sat.CpObjectiveProtoOrBuilder getIntegerObjectiveOrBuilder()
.lang.Override long getNumBranches()
int64 num_branches = 12;