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 
4 package com.google.ortools.sat;
5 
16 public final class CpSolverResponse extends
17  com.google.protobuf.GeneratedMessageV3 implements
18  // @@protoc_insertion_point(message_implements:operations_research.sat.CpSolverResponse)
20 private 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_;
615  @java.lang.Override
616  public java.util.List<java.lang.Integer>
618  return sufficientAssumptionsForInfeasibility_;
619  }
640  return sufficientAssumptionsForInfeasibility_.size();
641  }
663  return sufficientAssumptionsForInfeasibility_.getInt(index);
664  }
665  private int sufficientAssumptionsForInfeasibilityMemoizedSerializedSize = -1;
666 
667  public static final int ALL_SOLUTIONS_WERE_FOUND_FIELD_NUMBER = 5;
668  private boolean allSolutionsWereFound_;
680  @java.lang.Override
681  public boolean getAllSolutionsWereFound() {
682  return allSolutionsWereFound_;
683  }
684 
685  public static final int NUM_BOOLEANS_FIELD_NUMBER = 10;
686  private long numBooleans_;
695  @java.lang.Override
696  public long getNumBooleans() {
697  return numBooleans_;
698  }
699 
700  public static final int NUM_CONFLICTS_FIELD_NUMBER = 11;
701  private long numConflicts_;
706  @java.lang.Override
707  public long getNumConflicts() {
708  return numConflicts_;
709  }
710 
711  public static final int NUM_BRANCHES_FIELD_NUMBER = 12;
712  private long numBranches_;
717  @java.lang.Override
718  public long getNumBranches() {
719  return numBranches_;
720  }
721 
722  public static final int NUM_BINARY_PROPAGATIONS_FIELD_NUMBER = 13;
723  private long numBinaryPropagations_;
728  @java.lang.Override
729  public long getNumBinaryPropagations() {
730  return numBinaryPropagations_;
731  }
732 
733  public static final int NUM_INTEGER_PROPAGATIONS_FIELD_NUMBER = 14;
734  private long numIntegerPropagations_;
739  @java.lang.Override
741  return numIntegerPropagations_;
742  }
743 
744  public static final int NUM_RESTARTS_FIELD_NUMBER = 24;
745  private long numRestarts_;
750  @java.lang.Override
751  public long getNumRestarts() {
752  return numRestarts_;
753  }
754 
755  public static final int NUM_LP_ITERATIONS_FIELD_NUMBER = 25;
756  private long numLpIterations_;
761  @java.lang.Override
762  public long getNumLpIterations() {
763  return numLpIterations_;
764  }
765 
766  public static final int WALL_TIME_FIELD_NUMBER = 15;
767  private double wallTime_;
772  @java.lang.Override
773  public double getWallTime() {
774  return wallTime_;
775  }
776 
777  public static final int USER_TIME_FIELD_NUMBER = 16;
778  private double userTime_;
783  @java.lang.Override
784  public double getUserTime() {
785  return userTime_;
786  }
787 
788  public static final int DETERMINISTIC_TIME_FIELD_NUMBER = 17;
789  private double deterministicTime_;
794  @java.lang.Override
795  public double getDeterministicTime() {
796  return deterministicTime_;
797  }
798 
799  public static final int PRIMAL_INTEGRAL_FIELD_NUMBER = 22;
800  private double primalIntegral_;
805  @java.lang.Override
806  public double getPrimalIntegral() {
807  return primalIntegral_;
808  }
809 
810  public static final int SOLUTION_INFO_FIELD_NUMBER = 20;
811  private volatile java.lang.Object solutionInfo_;
820  @java.lang.Override
821  public java.lang.String getSolutionInfo() {
822  java.lang.Object ref = solutionInfo_;
823  if (ref instanceof java.lang.String) {
824  return (java.lang.String) ref;
825  } else {
826  com.google.protobuf.ByteString bs =
827  (com.google.protobuf.ByteString) ref;
828  java.lang.String s = bs.toStringUtf8();
829  solutionInfo_ = s;
830  return s;
831  }
832  }
841  @java.lang.Override
842  public com.google.protobuf.ByteString
844  java.lang.Object ref = solutionInfo_;
845  if (ref instanceof java.lang.String) {
846  com.google.protobuf.ByteString b =
847  com.google.protobuf.ByteString.copyFromUtf8(
848  (java.lang.String) ref);
849  solutionInfo_ = b;
850  return b;
851  } else {
852  return (com.google.protobuf.ByteString) ref;
853  }
854  }
855 
856  public static final int SOLVE_LOG_FIELD_NUMBER = 26;
857  private volatile java.lang.Object solveLog_;
867  @java.lang.Override
868  public java.lang.String getSolveLog() {
869  java.lang.Object ref = solveLog_;
870  if (ref instanceof java.lang.String) {
871  return (java.lang.String) ref;
872  } else {
873  com.google.protobuf.ByteString bs =
874  (com.google.protobuf.ByteString) ref;
875  java.lang.String s = bs.toStringUtf8();
876  solveLog_ = s;
877  return s;
878  }
879  }
889  @java.lang.Override
890  public com.google.protobuf.ByteString
892  java.lang.Object ref = solveLog_;
893  if (ref instanceof java.lang.String) {
894  com.google.protobuf.ByteString b =
895  com.google.protobuf.ByteString.copyFromUtf8(
896  (java.lang.String) ref);
897  solveLog_ = b;
898  return b;
899  } else {
900  return (com.google.protobuf.ByteString) ref;
901  }
902  }
903 
904  private byte memoizedIsInitialized = -1;
905  @java.lang.Override
906  public final boolean isInitialized() {
907  byte isInitialized = memoizedIsInitialized;
908  if (isInitialized == 1) return true;
909  if (isInitialized == 0) return false;
910 
911  memoizedIsInitialized = 1;
912  return true;
913  }
914 
915  @java.lang.Override
916  public void writeTo(com.google.protobuf.CodedOutputStream output)
917  throws java.io.IOException {
919  if (status_ != com.google.ortools.sat.CpSolverStatus.UNKNOWN.getNumber()) {
920  output.writeEnum(1, status_);
921  }
922  if (getSolutionList().size() > 0) {
923  output.writeUInt32NoTag(18);
924  output.writeUInt32NoTag(solutionMemoizedSerializedSize);
925  }
926  for (int i = 0; i < solution_.size(); i++) {
927  output.writeInt64NoTag(solution_.getLong(i));
928  }
929  if (objectiveValue_ != 0D) {
930  output.writeDouble(3, objectiveValue_);
931  }
932  if (bestObjectiveBound_ != 0D) {
933  output.writeDouble(4, bestObjectiveBound_);
934  }
935  if (allSolutionsWereFound_ != false) {
936  output.writeBool(5, allSolutionsWereFound_);
937  }
938  if (numBooleans_ != 0L) {
939  output.writeInt64(10, numBooleans_);
940  }
941  if (numConflicts_ != 0L) {
942  output.writeInt64(11, numConflicts_);
943  }
944  if (numBranches_ != 0L) {
945  output.writeInt64(12, numBranches_);
946  }
947  if (numBinaryPropagations_ != 0L) {
948  output.writeInt64(13, numBinaryPropagations_);
949  }
950  if (numIntegerPropagations_ != 0L) {
951  output.writeInt64(14, numIntegerPropagations_);
952  }
953  if (wallTime_ != 0D) {
954  output.writeDouble(15, wallTime_);
955  }
956  if (userTime_ != 0D) {
957  output.writeDouble(16, userTime_);
958  }
959  if (deterministicTime_ != 0D) {
960  output.writeDouble(17, deterministicTime_);
961  }
962  if (getSolutionLowerBoundsList().size() > 0) {
963  output.writeUInt32NoTag(146);
964  output.writeUInt32NoTag(solutionLowerBoundsMemoizedSerializedSize);
965  }
966  for (int i = 0; i < solutionLowerBounds_.size(); i++) {
967  output.writeInt64NoTag(solutionLowerBounds_.getLong(i));
968  }
969  if (getSolutionUpperBoundsList().size() > 0) {
970  output.writeUInt32NoTag(154);
971  output.writeUInt32NoTag(solutionUpperBoundsMemoizedSerializedSize);
972  }
973  for (int i = 0; i < solutionUpperBounds_.size(); i++) {
974  output.writeInt64NoTag(solutionUpperBounds_.getLong(i));
975  }
976  if (!getSolutionInfoBytes().isEmpty()) {
977  com.google.protobuf.GeneratedMessageV3.writeString(output, 20, solutionInfo_);
978  }
979  for (int i = 0; i < tightenedVariables_.size(); i++) {
980  output.writeMessage(21, tightenedVariables_.get(i));
981  }
982  if (primalIntegral_ != 0D) {
983  output.writeDouble(22, primalIntegral_);
984  }
986  output.writeUInt32NoTag(186);
987  output.writeUInt32NoTag(sufficientAssumptionsForInfeasibilityMemoizedSerializedSize);
988  }
989  for (int i = 0; i < sufficientAssumptionsForInfeasibility_.size(); i++) {
990  output.writeInt32NoTag(sufficientAssumptionsForInfeasibility_.getInt(i));
991  }
992  if (numRestarts_ != 0L) {
993  output.writeInt64(24, numRestarts_);
994  }
995  if (numLpIterations_ != 0L) {
996  output.writeInt64(25, numLpIterations_);
997  }
998  if (!getSolveLogBytes().isEmpty()) {
999  com.google.protobuf.GeneratedMessageV3.writeString(output, 26, solveLog_);
1000  }
1001  unknownFields.writeTo(output);
1002  }
1003 
1004  @java.lang.Override
1005  public int getSerializedSize() {
1006  int size = memoizedSize;
1007  if (size != -1) return size;
1008 
1009  size = 0;
1010  if (status_ != com.google.ortools.sat.CpSolverStatus.UNKNOWN.getNumber()) {
1011  size += com.google.protobuf.CodedOutputStream
1012  .computeEnumSize(1, status_);
1013  }
1014  {
1015  int dataSize = 0;
1016  for (int i = 0; i < solution_.size(); i++) {
1017  dataSize += com.google.protobuf.CodedOutputStream
1018  .computeInt64SizeNoTag(solution_.getLong(i));
1019  }
1020  size += dataSize;
1021  if (!getSolutionList().isEmpty()) {
1022  size += 1;
1023  size += com.google.protobuf.CodedOutputStream
1024  .computeInt32SizeNoTag(dataSize);
1025  }
1026  solutionMemoizedSerializedSize = dataSize;
1027  }
1028  if (objectiveValue_ != 0D) {
1029  size += com.google.protobuf.CodedOutputStream
1030  .computeDoubleSize(3, objectiveValue_);
1031  }
1032  if (bestObjectiveBound_ != 0D) {
1033  size += com.google.protobuf.CodedOutputStream
1034  .computeDoubleSize(4, bestObjectiveBound_);
1035  }
1036  if (allSolutionsWereFound_ != false) {
1037  size += com.google.protobuf.CodedOutputStream
1038  .computeBoolSize(5, allSolutionsWereFound_);
1039  }
1040  if (numBooleans_ != 0L) {
1041  size += com.google.protobuf.CodedOutputStream
1042  .computeInt64Size(10, numBooleans_);
1043  }
1044  if (numConflicts_ != 0L) {
1045  size += com.google.protobuf.CodedOutputStream
1046  .computeInt64Size(11, numConflicts_);
1047  }
1048  if (numBranches_ != 0L) {
1049  size += com.google.protobuf.CodedOutputStream
1050  .computeInt64Size(12, numBranches_);
1051  }
1052  if (numBinaryPropagations_ != 0L) {
1053  size += com.google.protobuf.CodedOutputStream
1054  .computeInt64Size(13, numBinaryPropagations_);
1055  }
1056  if (numIntegerPropagations_ != 0L) {
1057  size += com.google.protobuf.CodedOutputStream
1058  .computeInt64Size(14, numIntegerPropagations_);
1059  }
1060  if (wallTime_ != 0D) {
1061  size += com.google.protobuf.CodedOutputStream
1062  .computeDoubleSize(15, wallTime_);
1063  }
1064  if (userTime_ != 0D) {
1065  size += com.google.protobuf.CodedOutputStream
1066  .computeDoubleSize(16, userTime_);
1067  }
1068  if (deterministicTime_ != 0D) {
1069  size += com.google.protobuf.CodedOutputStream
1070  .computeDoubleSize(17, deterministicTime_);
1071  }
1072  {
1073  int dataSize = 0;
1074  for (int i = 0; i < solutionLowerBounds_.size(); i++) {
1075  dataSize += com.google.protobuf.CodedOutputStream
1076  .computeInt64SizeNoTag(solutionLowerBounds_.getLong(i));
1077  }
1078  size += dataSize;
1079  if (!getSolutionLowerBoundsList().isEmpty()) {
1080  size += 2;
1081  size += com.google.protobuf.CodedOutputStream
1082  .computeInt32SizeNoTag(dataSize);
1083  }
1084  solutionLowerBoundsMemoizedSerializedSize = dataSize;
1085  }
1086  {
1087  int dataSize = 0;
1088  for (int i = 0; i < solutionUpperBounds_.size(); i++) {
1089  dataSize += com.google.protobuf.CodedOutputStream
1090  .computeInt64SizeNoTag(solutionUpperBounds_.getLong(i));
1091  }
1092  size += dataSize;
1093  if (!getSolutionUpperBoundsList().isEmpty()) {
1094  size += 2;
1095  size += com.google.protobuf.CodedOutputStream
1096  .computeInt32SizeNoTag(dataSize);
1097  }
1098  solutionUpperBoundsMemoizedSerializedSize = dataSize;
1099  }
1100  if (!getSolutionInfoBytes().isEmpty()) {
1101  size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, solutionInfo_);
1102  }
1103  for (int i = 0; i < tightenedVariables_.size(); i++) {
1104  size += com.google.protobuf.CodedOutputStream
1105  .computeMessageSize(21, tightenedVariables_.get(i));
1106  }
1107  if (primalIntegral_ != 0D) {
1108  size += com.google.protobuf.CodedOutputStream
1109  .computeDoubleSize(22, primalIntegral_);
1110  }
1111  {
1112  int dataSize = 0;
1113  for (int i = 0; i < sufficientAssumptionsForInfeasibility_.size(); i++) {
1114  dataSize += com.google.protobuf.CodedOutputStream
1115  .computeInt32SizeNoTag(sufficientAssumptionsForInfeasibility_.getInt(i));
1116  }
1117  size += dataSize;
1119  size += 2;
1120  size += com.google.protobuf.CodedOutputStream
1121  .computeInt32SizeNoTag(dataSize);
1122  }
1123  sufficientAssumptionsForInfeasibilityMemoizedSerializedSize = dataSize;
1124  }
1125  if (numRestarts_ != 0L) {
1126  size += com.google.protobuf.CodedOutputStream
1127  .computeInt64Size(24, numRestarts_);
1128  }
1129  if (numLpIterations_ != 0L) {
1130  size += com.google.protobuf.CodedOutputStream
1131  .computeInt64Size(25, numLpIterations_);
1132  }
1133  if (!getSolveLogBytes().isEmpty()) {
1134  size += com.google.protobuf.GeneratedMessageV3.computeStringSize(26, solveLog_);
1135  }
1136  size += unknownFields.getSerializedSize();
1137  memoizedSize = size;
1138  return size;
1139  }
1140 
1141  @java.lang.Override
1142  public boolean equals(final java.lang.Object obj) {
1143  if (obj == this) {
1144  return true;
1145  }
1146  if (!(obj instanceof com.google.ortools.sat.CpSolverResponse)) {
1147  return super.equals(obj);
1148  }
1149  com.google.ortools.sat.CpSolverResponse other = (com.google.ortools.sat.CpSolverResponse) obj;
1150 
1151  if (status_ != other.status_) return false;
1152  if (!getSolutionList()
1153  .equals(other.getSolutionList())) return false;
1154  if (java.lang.Double.doubleToLongBits(getObjectiveValue())
1155  != java.lang.Double.doubleToLongBits(
1156  other.getObjectiveValue())) return false;
1157  if (java.lang.Double.doubleToLongBits(getBestObjectiveBound())
1158  != java.lang.Double.doubleToLongBits(
1159  other.getBestObjectiveBound())) return false;
1161  .equals(other.getSolutionLowerBoundsList())) return false;
1163  .equals(other.getSolutionUpperBoundsList())) return false;
1165  .equals(other.getTightenedVariablesList())) return false;
1167  .equals(other.getSufficientAssumptionsForInfeasibilityList())) return false;
1169  != other.getAllSolutionsWereFound()) return false;
1170  if (getNumBooleans()
1171  != other.getNumBooleans()) return false;
1172  if (getNumConflicts()
1173  != other.getNumConflicts()) return false;
1174  if (getNumBranches()
1175  != other.getNumBranches()) return false;
1177  != other.getNumBinaryPropagations()) return false;
1179  != other.getNumIntegerPropagations()) return false;
1180  if (getNumRestarts()
1181  != other.getNumRestarts()) return false;
1182  if (getNumLpIterations()
1183  != other.getNumLpIterations()) return false;
1184  if (java.lang.Double.doubleToLongBits(getWallTime())
1185  != java.lang.Double.doubleToLongBits(
1186  other.getWallTime())) return false;
1187  if (java.lang.Double.doubleToLongBits(getUserTime())
1188  != java.lang.Double.doubleToLongBits(
1189  other.getUserTime())) return false;
1190  if (java.lang.Double.doubleToLongBits(getDeterministicTime())
1191  != java.lang.Double.doubleToLongBits(
1192  other.getDeterministicTime())) return false;
1193  if (java.lang.Double.doubleToLongBits(getPrimalIntegral())
1194  != java.lang.Double.doubleToLongBits(
1195  other.getPrimalIntegral())) return false;
1196  if (!getSolutionInfo()
1197  .equals(other.getSolutionInfo())) return false;
1198  if (!getSolveLog()
1199  .equals(other.getSolveLog())) return false;
1200  if (!unknownFields.equals(other.unknownFields)) return false;
1201  return true;
1202  }
1203 
1204  @java.lang.Override
1205  public int hashCode() {
1206  if (memoizedHashCode != 0) {
1207  return memoizedHashCode;
1208  }
1209  int hash = 41;
1210  hash = (19 * hash) + getDescriptor().hashCode();
1211  hash = (37 * hash) + STATUS_FIELD_NUMBER;
1212  hash = (53 * hash) + status_;
1213  if (getSolutionCount() > 0) {
1214  hash = (37 * hash) + SOLUTION_FIELD_NUMBER;
1215  hash = (53 * hash) + getSolutionList().hashCode();
1216  }
1217  hash = (37 * hash) + OBJECTIVE_VALUE_FIELD_NUMBER;
1218  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1219  java.lang.Double.doubleToLongBits(getObjectiveValue()));
1220  hash = (37 * hash) + BEST_OBJECTIVE_BOUND_FIELD_NUMBER;
1221  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1222  java.lang.Double.doubleToLongBits(getBestObjectiveBound()));
1223  if (getSolutionLowerBoundsCount() > 0) {
1224  hash = (37 * hash) + SOLUTION_LOWER_BOUNDS_FIELD_NUMBER;
1225  hash = (53 * hash) + getSolutionLowerBoundsList().hashCode();
1226  }
1227  if (getSolutionUpperBoundsCount() > 0) {
1228  hash = (37 * hash) + SOLUTION_UPPER_BOUNDS_FIELD_NUMBER;
1229  hash = (53 * hash) + getSolutionUpperBoundsList().hashCode();
1230  }
1231  if (getTightenedVariablesCount() > 0) {
1232  hash = (37 * hash) + TIGHTENED_VARIABLES_FIELD_NUMBER;
1233  hash = (53 * hash) + getTightenedVariablesList().hashCode();
1234  }
1237  hash = (53 * hash) + getSufficientAssumptionsForInfeasibilityList().hashCode();
1238  }
1239  hash = (37 * hash) + ALL_SOLUTIONS_WERE_FOUND_FIELD_NUMBER;
1240  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1242  hash = (37 * hash) + NUM_BOOLEANS_FIELD_NUMBER;
1243  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1244  getNumBooleans());
1245  hash = (37 * hash) + NUM_CONFLICTS_FIELD_NUMBER;
1246  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1247  getNumConflicts());
1248  hash = (37 * hash) + NUM_BRANCHES_FIELD_NUMBER;
1249  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1250  getNumBranches());
1251  hash = (37 * hash) + NUM_BINARY_PROPAGATIONS_FIELD_NUMBER;
1252  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1254  hash = (37 * hash) + NUM_INTEGER_PROPAGATIONS_FIELD_NUMBER;
1255  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1257  hash = (37 * hash) + NUM_RESTARTS_FIELD_NUMBER;
1258  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1259  getNumRestarts());
1260  hash = (37 * hash) + NUM_LP_ITERATIONS_FIELD_NUMBER;
1261  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1262  getNumLpIterations());
1263  hash = (37 * hash) + WALL_TIME_FIELD_NUMBER;
1264  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1265  java.lang.Double.doubleToLongBits(getWallTime()));
1266  hash = (37 * hash) + USER_TIME_FIELD_NUMBER;
1267  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1268  java.lang.Double.doubleToLongBits(getUserTime()));
1269  hash = (37 * hash) + DETERMINISTIC_TIME_FIELD_NUMBER;
1270  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1271  java.lang.Double.doubleToLongBits(getDeterministicTime()));
1272  hash = (37 * hash) + PRIMAL_INTEGRAL_FIELD_NUMBER;
1273  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1274  java.lang.Double.doubleToLongBits(getPrimalIntegral()));
1275  hash = (37 * hash) + SOLUTION_INFO_FIELD_NUMBER;
1276  hash = (53 * hash) + getSolutionInfo().hashCode();
1277  hash = (37 * hash) + SOLVE_LOG_FIELD_NUMBER;
1278  hash = (53 * hash) + getSolveLog().hashCode();
1279  hash = (29 * hash) + unknownFields.hashCode();
1280  memoizedHashCode = hash;
1281  return hash;
1282  }
1283 
1284  public static com.google.ortools.sat.CpSolverResponse parseFrom(
1285  java.nio.ByteBuffer data)
1286  throws com.google.protobuf.InvalidProtocolBufferException {
1287  return PARSER.parseFrom(data);
1288  }
1289  public static com.google.ortools.sat.CpSolverResponse parseFrom(
1290  java.nio.ByteBuffer data,
1291  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1292  throws com.google.protobuf.InvalidProtocolBufferException {
1293  return PARSER.parseFrom(data, extensionRegistry);
1294  }
1295  public static com.google.ortools.sat.CpSolverResponse parseFrom(
1296  com.google.protobuf.ByteString data)
1297  throws com.google.protobuf.InvalidProtocolBufferException {
1298  return PARSER.parseFrom(data);
1299  }
1300  public static com.google.ortools.sat.CpSolverResponse parseFrom(
1301  com.google.protobuf.ByteString data,
1302  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1303  throws com.google.protobuf.InvalidProtocolBufferException {
1304  return PARSER.parseFrom(data, extensionRegistry);
1305  }
1306  public static com.google.ortools.sat.CpSolverResponse parseFrom(byte[] data)
1307  throws com.google.protobuf.InvalidProtocolBufferException {
1308  return PARSER.parseFrom(data);
1309  }
1310  public static com.google.ortools.sat.CpSolverResponse parseFrom(
1311  byte[] data,
1312  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1313  throws com.google.protobuf.InvalidProtocolBufferException {
1314  return PARSER.parseFrom(data, extensionRegistry);
1315  }
1316  public static com.google.ortools.sat.CpSolverResponse parseFrom(java.io.InputStream input)
1317  throws java.io.IOException {
1318  return com.google.protobuf.GeneratedMessageV3
1319  .parseWithIOException(PARSER, input);
1320  }
1321  public static com.google.ortools.sat.CpSolverResponse parseFrom(
1322  java.io.InputStream input,
1323  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1324  throws java.io.IOException {
1325  return com.google.protobuf.GeneratedMessageV3
1326  .parseWithIOException(PARSER, input, extensionRegistry);
1327  }
1328  public static com.google.ortools.sat.CpSolverResponse parseDelimitedFrom(java.io.InputStream input)
1329  throws java.io.IOException {
1330  return com.google.protobuf.GeneratedMessageV3
1331  .parseDelimitedWithIOException(PARSER, input);
1332  }
1333  public static com.google.ortools.sat.CpSolverResponse parseDelimitedFrom(
1334  java.io.InputStream input,
1335  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1336  throws java.io.IOException {
1337  return com.google.protobuf.GeneratedMessageV3
1338  .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
1339  }
1340  public static com.google.ortools.sat.CpSolverResponse parseFrom(
1341  com.google.protobuf.CodedInputStream input)
1342  throws java.io.IOException {
1343  return com.google.protobuf.GeneratedMessageV3
1344  .parseWithIOException(PARSER, input);
1345  }
1346  public static com.google.ortools.sat.CpSolverResponse parseFrom(
1347  com.google.protobuf.CodedInputStream input,
1348  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1349  throws java.io.IOException {
1350  return com.google.protobuf.GeneratedMessageV3
1351  .parseWithIOException(PARSER, input, extensionRegistry);
1352  }
1353 
1354  @java.lang.Override
1355  public Builder newBuilderForType() { return newBuilder(); }
1356  public static Builder newBuilder() {
1357  return DEFAULT_INSTANCE.toBuilder();
1358  }
1359  public static Builder newBuilder(com.google.ortools.sat.CpSolverResponse prototype) {
1360  return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1361  }
1362  @java.lang.Override
1363  public Builder toBuilder() {
1364  return this == DEFAULT_INSTANCE
1365  ? new Builder() : new Builder().mergeFrom(this);
1366  }
1367 
1368  @java.lang.Override
1370  com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1371  Builder builder = new Builder(parent);
1372  return builder;
1373  }
1384  public static final class Builder extends
1385  com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
1386  // @@protoc_insertion_point(builder_implements:operations_research.sat.CpSolverResponse)
1387  com.google.ortools.sat.CpSolverResponseOrBuilder {
1388  public static final com.google.protobuf.Descriptors.Descriptor
1390  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_descriptor;
1391  }
1392 
1393  @java.lang.Override
1394  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
1396  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_fieldAccessorTable
1397  .ensureFieldAccessorsInitialized(
1398  com.google.ortools.sat.CpSolverResponse.class, com.google.ortools.sat.CpSolverResponse.Builder.class);
1399  }
1400 
1401  // Construct using com.google.ortools.sat.CpSolverResponse.newBuilder()
1402  private Builder() {
1403  maybeForceBuilderInitialization();
1404  }
1405 
1406  private Builder(
1407  com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1408  super(parent);
1409  maybeForceBuilderInitialization();
1410  }
1411  private void maybeForceBuilderInitialization() {
1412  if (com.google.protobuf.GeneratedMessageV3
1413  .alwaysUseFieldBuilders) {
1414  getTightenedVariablesFieldBuilder();
1415  }
1416  }
1417  @java.lang.Override
1418  public Builder clear() {
1419  super.clear();
1420  status_ = 0;
1421 
1422  solution_ = emptyLongList();
1423  bitField0_ = (bitField0_ & ~0x00000001);
1424  objectiveValue_ = 0D;
1425 
1426  bestObjectiveBound_ = 0D;
1427 
1428  solutionLowerBounds_ = emptyLongList();
1429  bitField0_ = (bitField0_ & ~0x00000002);
1430  solutionUpperBounds_ = emptyLongList();
1431  bitField0_ = (bitField0_ & ~0x00000004);
1432  if (tightenedVariablesBuilder_ == null) {
1433  tightenedVariables_ = java.util.Collections.emptyList();
1434  bitField0_ = (bitField0_ & ~0x00000008);
1435  } else {
1436  tightenedVariablesBuilder_.clear();
1437  }
1438  sufficientAssumptionsForInfeasibility_ = emptyIntList();
1439  bitField0_ = (bitField0_ & ~0x00000010);
1440  allSolutionsWereFound_ = false;
1441 
1442  numBooleans_ = 0L;
1443 
1444  numConflicts_ = 0L;
1445 
1446  numBranches_ = 0L;
1447 
1448  numBinaryPropagations_ = 0L;
1449 
1450  numIntegerPropagations_ = 0L;
1451 
1452  numRestarts_ = 0L;
1453 
1454  numLpIterations_ = 0L;
1455 
1456  wallTime_ = 0D;
1457 
1458  userTime_ = 0D;
1459 
1460  deterministicTime_ = 0D;
1461 
1462  primalIntegral_ = 0D;
1463 
1464  solutionInfo_ = "";
1465 
1466  solveLog_ = "";
1467 
1468  return this;
1469  }
1470 
1471  @java.lang.Override
1472  public com.google.protobuf.Descriptors.Descriptor
1474  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_descriptor;
1475  }
1476 
1477  @java.lang.Override
1478  public com.google.ortools.sat.CpSolverResponse getDefaultInstanceForType() {
1479  return com.google.ortools.sat.CpSolverResponse.getDefaultInstance();
1480  }
1481 
1482  @java.lang.Override
1483  public com.google.ortools.sat.CpSolverResponse build() {
1484  com.google.ortools.sat.CpSolverResponse result = buildPartial();
1485  if (!result.isInitialized()) {
1486  throw newUninitializedMessageException(result);
1487  }
1488  return result;
1489  }
1490 
1491  @java.lang.Override
1492  public com.google.ortools.sat.CpSolverResponse buildPartial() {
1493  com.google.ortools.sat.CpSolverResponse result = new com.google.ortools.sat.CpSolverResponse(this);
1494  int from_bitField0_ = bitField0_;
1495  result.status_ = status_;
1496  if (((bitField0_ & 0x00000001) != 0)) {
1497  solution_.makeImmutable();
1498  bitField0_ = (bitField0_ & ~0x00000001);
1499  }
1500  result.solution_ = solution_;
1501  result.objectiveValue_ = objectiveValue_;
1502  result.bestObjectiveBound_ = bestObjectiveBound_;
1503  if (((bitField0_ & 0x00000002) != 0)) {
1504  solutionLowerBounds_.makeImmutable();
1505  bitField0_ = (bitField0_ & ~0x00000002);
1506  }
1507  result.solutionLowerBounds_ = solutionLowerBounds_;
1508  if (((bitField0_ & 0x00000004) != 0)) {
1509  solutionUpperBounds_.makeImmutable();
1510  bitField0_ = (bitField0_ & ~0x00000004);
1511  }
1512  result.solutionUpperBounds_ = solutionUpperBounds_;
1513  if (tightenedVariablesBuilder_ == null) {
1514  if (((bitField0_ & 0x00000008) != 0)) {
1515  tightenedVariables_ = java.util.Collections.unmodifiableList(tightenedVariables_);
1516  bitField0_ = (bitField0_ & ~0x00000008);
1517  }
1518  result.tightenedVariables_ = tightenedVariables_;
1519  } else {
1520  result.tightenedVariables_ = tightenedVariablesBuilder_.build();
1521  }
1522  if (((bitField0_ & 0x00000010) != 0)) {
1523  sufficientAssumptionsForInfeasibility_.makeImmutable();
1524  bitField0_ = (bitField0_ & ~0x00000010);
1525  }
1526  result.sufficientAssumptionsForInfeasibility_ = sufficientAssumptionsForInfeasibility_;
1527  result.allSolutionsWereFound_ = allSolutionsWereFound_;
1528  result.numBooleans_ = numBooleans_;
1529  result.numConflicts_ = numConflicts_;
1530  result.numBranches_ = numBranches_;
1531  result.numBinaryPropagations_ = numBinaryPropagations_;
1532  result.numIntegerPropagations_ = numIntegerPropagations_;
1533  result.numRestarts_ = numRestarts_;
1534  result.numLpIterations_ = numLpIterations_;
1535  result.wallTime_ = wallTime_;
1536  result.userTime_ = userTime_;
1537  result.deterministicTime_ = deterministicTime_;
1538  result.primalIntegral_ = primalIntegral_;
1539  result.solutionInfo_ = solutionInfo_;
1540  result.solveLog_ = solveLog_;
1541  onBuilt();
1542  return result;
1543  }
1544 
1545  @java.lang.Override
1546  public Builder clone() {
1547  return super.clone();
1548  }
1549  @java.lang.Override
1551  com.google.protobuf.Descriptors.FieldDescriptor field,
1552  java.lang.Object value) {
1553  return super.setField(field, value);
1554  }
1555  @java.lang.Override
1557  com.google.protobuf.Descriptors.FieldDescriptor field) {
1558  return super.clearField(field);
1559  }
1560  @java.lang.Override
1562  com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1563  return super.clearOneof(oneof);
1564  }
1565  @java.lang.Override
1567  com.google.protobuf.Descriptors.FieldDescriptor field,
1568  int index, java.lang.Object value) {
1569  return super.setRepeatedField(field, index, value);
1570  }
1571  @java.lang.Override
1573  com.google.protobuf.Descriptors.FieldDescriptor field,
1574  java.lang.Object value) {
1575  return super.addRepeatedField(field, value);
1576  }
1577  @java.lang.Override
1578  public Builder mergeFrom(com.google.protobuf.Message other) {
1579  if (other instanceof com.google.ortools.sat.CpSolverResponse) {
1580  return mergeFrom((com.google.ortools.sat.CpSolverResponse)other);
1581  } else {
1582  super.mergeFrom(other);
1583  return this;
1584  }
1585  }
1586 
1587  public Builder mergeFrom(com.google.ortools.sat.CpSolverResponse other) {
1588  if (other == com.google.ortools.sat.CpSolverResponse.getDefaultInstance()) return this;
1589  if (other.status_ != 0) {
1590  setStatusValue(other.getStatusValue());
1591  }
1592  if (!other.solution_.isEmpty()) {
1593  if (solution_.isEmpty()) {
1594  solution_ = other.solution_;
1595  bitField0_ = (bitField0_ & ~0x00000001);
1596  } else {
1597  ensureSolutionIsMutable();
1598  solution_.addAll(other.solution_);
1599  }
1600  onChanged();
1601  }
1602  if (other.getObjectiveValue() != 0D) {
1603  setObjectiveValue(other.getObjectiveValue());
1604  }
1605  if (other.getBestObjectiveBound() != 0D) {
1606  setBestObjectiveBound(other.getBestObjectiveBound());
1607  }
1608  if (!other.solutionLowerBounds_.isEmpty()) {
1609  if (solutionLowerBounds_.isEmpty()) {
1610  solutionLowerBounds_ = other.solutionLowerBounds_;
1611  bitField0_ = (bitField0_ & ~0x00000002);
1612  } else {
1613  ensureSolutionLowerBoundsIsMutable();
1614  solutionLowerBounds_.addAll(other.solutionLowerBounds_);
1615  }
1616  onChanged();
1617  }
1618  if (!other.solutionUpperBounds_.isEmpty()) {
1619  if (solutionUpperBounds_.isEmpty()) {
1620  solutionUpperBounds_ = other.solutionUpperBounds_;
1621  bitField0_ = (bitField0_ & ~0x00000004);
1622  } else {
1623  ensureSolutionUpperBoundsIsMutable();
1624  solutionUpperBounds_.addAll(other.solutionUpperBounds_);
1625  }
1626  onChanged();
1627  }
1628  if (tightenedVariablesBuilder_ == null) {
1629  if (!other.tightenedVariables_.isEmpty()) {
1630  if (tightenedVariables_.isEmpty()) {
1631  tightenedVariables_ = other.tightenedVariables_;
1632  bitField0_ = (bitField0_ & ~0x00000008);
1633  } else {
1634  ensureTightenedVariablesIsMutable();
1635  tightenedVariables_.addAll(other.tightenedVariables_);
1636  }
1637  onChanged();
1638  }
1639  } else {
1640  if (!other.tightenedVariables_.isEmpty()) {
1641  if (tightenedVariablesBuilder_.isEmpty()) {
1642  tightenedVariablesBuilder_.dispose();
1643  tightenedVariablesBuilder_ = null;
1644  tightenedVariables_ = other.tightenedVariables_;
1645  bitField0_ = (bitField0_ & ~0x00000008);
1646  tightenedVariablesBuilder_ =
1647  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
1648  getTightenedVariablesFieldBuilder() : null;
1649  } else {
1650  tightenedVariablesBuilder_.addAllMessages(other.tightenedVariables_);
1651  }
1652  }
1653  }
1654  if (!other.sufficientAssumptionsForInfeasibility_.isEmpty()) {
1655  if (sufficientAssumptionsForInfeasibility_.isEmpty()) {
1656  sufficientAssumptionsForInfeasibility_ = other.sufficientAssumptionsForInfeasibility_;
1657  bitField0_ = (bitField0_ & ~0x00000010);
1658  } else {
1659  ensureSufficientAssumptionsForInfeasibilityIsMutable();
1660  sufficientAssumptionsForInfeasibility_.addAll(other.sufficientAssumptionsForInfeasibility_);
1661  }
1662  onChanged();
1663  }
1664  if (other.getAllSolutionsWereFound() != false) {
1665  setAllSolutionsWereFound(other.getAllSolutionsWereFound());
1666  }
1667  if (other.getNumBooleans() != 0L) {
1668  setNumBooleans(other.getNumBooleans());
1669  }
1670  if (other.getNumConflicts() != 0L) {
1671  setNumConflicts(other.getNumConflicts());
1672  }
1673  if (other.getNumBranches() != 0L) {
1674  setNumBranches(other.getNumBranches());
1675  }
1676  if (other.getNumBinaryPropagations() != 0L) {
1677  setNumBinaryPropagations(other.getNumBinaryPropagations());
1678  }
1679  if (other.getNumIntegerPropagations() != 0L) {
1680  setNumIntegerPropagations(other.getNumIntegerPropagations());
1681  }
1682  if (other.getNumRestarts() != 0L) {
1683  setNumRestarts(other.getNumRestarts());
1684  }
1685  if (other.getNumLpIterations() != 0L) {
1686  setNumLpIterations(other.getNumLpIterations());
1687  }
1688  if (other.getWallTime() != 0D) {
1689  setWallTime(other.getWallTime());
1690  }
1691  if (other.getUserTime() != 0D) {
1692  setUserTime(other.getUserTime());
1693  }
1694  if (other.getDeterministicTime() != 0D) {
1695  setDeterministicTime(other.getDeterministicTime());
1696  }
1697  if (other.getPrimalIntegral() != 0D) {
1698  setPrimalIntegral(other.getPrimalIntegral());
1699  }
1700  if (!other.getSolutionInfo().isEmpty()) {
1701  solutionInfo_ = other.solutionInfo_;
1702  onChanged();
1703  }
1704  if (!other.getSolveLog().isEmpty()) {
1705  solveLog_ = other.solveLog_;
1706  onChanged();
1707  }
1708  this.mergeUnknownFields(other.unknownFields);
1709  onChanged();
1710  return this;
1711  }
1712 
1713  @java.lang.Override
1714  public final boolean isInitialized() {
1715  return true;
1716  }
1717 
1718  @java.lang.Override
1720  com.google.protobuf.CodedInputStream input,
1721  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1722  throws java.io.IOException {
1723  com.google.ortools.sat.CpSolverResponse parsedMessage = null;
1724  try {
1725  parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
1726  } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1727  parsedMessage = (com.google.ortools.sat.CpSolverResponse) e.getUnfinishedMessage();
1728  throw e.unwrapIOException();
1729  } finally {
1730  if (parsedMessage != null) {
1731  mergeFrom(parsedMessage);
1732  }
1733  }
1734  return this;
1735  }
1736  private int bitField0_;
1737 
1738  private int status_ = 0;
1747  @java.lang.Override public int getStatusValue() {
1748  return status_;
1749  }
1759  public Builder setStatusValue(int value) {
1760 
1761  status_ = value;
1762  onChanged();
1763  return this;
1764  }
1773  @java.lang.Override
1774  public com.google.ortools.sat.CpSolverStatus getStatus() {
1775  @SuppressWarnings("deprecation")
1776  com.google.ortools.sat.CpSolverStatus result = com.google.ortools.sat.CpSolverStatus.valueOf(status_);
1777  return result == null ? com.google.ortools.sat.CpSolverStatus.UNRECOGNIZED : result;
1778  }
1788  public Builder setStatus(com.google.ortools.sat.CpSolverStatus value) {
1789  if (value == null) {
1790  throw new NullPointerException();
1791  }
1792 
1793  status_ = value.getNumber();
1794  onChanged();
1795  return this;
1796  }
1806 
1807  status_ = 0;
1808  onChanged();
1809  return this;
1810  }
1811 
1812  private com.google.protobuf.Internal.LongList solution_ = emptyLongList();
1813  private void ensureSolutionIsMutable() {
1814  if (!((bitField0_ & 0x00000001) != 0)) {
1815  solution_ = mutableCopy(solution_);
1816  bitField0_ |= 0x00000001;
1817  }
1818  }
1830  public java.util.List<java.lang.Long>
1832  return ((bitField0_ & 0x00000001) != 0) ?
1833  java.util.Collections.unmodifiableList(solution_) : solution_;
1834  }
1846  public int getSolutionCount() {
1847  return solution_.size();
1848  }
1861  public long getSolution(int index) {
1862  return solution_.getLong(index);
1863  }
1878  int index, long value) {
1879  ensureSolutionIsMutable();
1880  solution_.setLong(index, value);
1881  onChanged();
1882  return this;
1883  }
1896  public Builder addSolution(long value) {
1897  ensureSolutionIsMutable();
1898  solution_.addLong(value);
1899  onChanged();
1900  return this;
1901  }
1915  java.lang.Iterable<? extends java.lang.Long> values) {
1916  ensureSolutionIsMutable();
1917  com.google.protobuf.AbstractMessageLite.Builder.addAll(
1918  values, solution_);
1919  onChanged();
1920  return this;
1921  }
1934  solution_ = emptyLongList();
1935  bitField0_ = (bitField0_ & ~0x00000001);
1936  onChanged();
1937  return this;
1938  }
1939 
1940  private double objectiveValue_ ;
1952  @java.lang.Override
1953  public double getObjectiveValue() {
1954  return objectiveValue_;
1955  }
1968  public Builder setObjectiveValue(double value) {
1969 
1970  objectiveValue_ = value;
1971  onChanged();
1972  return this;
1973  }
1986 
1987  objectiveValue_ = 0D;
1988  onChanged();
1989  return this;
1990  }
1991 
1992  private double bestObjectiveBound_ ;
2003  @java.lang.Override
2004  public double getBestObjectiveBound() {
2005  return bestObjectiveBound_;
2006  }
2018  public Builder setBestObjectiveBound(double value) {
2019 
2020  bestObjectiveBound_ = value;
2021  onChanged();
2022  return this;
2023  }
2035 
2036  bestObjectiveBound_ = 0D;
2037  onChanged();
2038  return this;
2039  }
2040 
2041  private com.google.protobuf.Internal.LongList solutionLowerBounds_ = emptyLongList();
2042  private void ensureSolutionLowerBoundsIsMutable() {
2043  if (!((bitField0_ & 0x00000002) != 0)) {
2044  solutionLowerBounds_ = mutableCopy(solutionLowerBounds_);
2045  bitField0_ |= 0x00000002;
2046  }
2047  }
2061  public java.util.List<java.lang.Long>
2063  return ((bitField0_ & 0x00000002) != 0) ?
2064  java.util.Collections.unmodifiableList(solutionLowerBounds_) : solutionLowerBounds_;
2065  }
2080  return solutionLowerBounds_.size();
2081  }
2096  public long getSolutionLowerBounds(int index) {
2097  return solutionLowerBounds_.getLong(index);
2098  }
2115  int index, long value) {
2116  ensureSolutionLowerBoundsIsMutable();
2117  solutionLowerBounds_.setLong(index, value);
2118  onChanged();
2119  return this;
2120  }
2135  public Builder addSolutionLowerBounds(long value) {
2136  ensureSolutionLowerBoundsIsMutable();
2137  solutionLowerBounds_.addLong(value);
2138  onChanged();
2139  return this;
2140  }
2156  java.lang.Iterable<? extends java.lang.Long> values) {
2157  ensureSolutionLowerBoundsIsMutable();
2158  com.google.protobuf.AbstractMessageLite.Builder.addAll(
2159  values, solutionLowerBounds_);
2160  onChanged();
2161  return this;
2162  }
2177  solutionLowerBounds_ = emptyLongList();
2178  bitField0_ = (bitField0_ & ~0x00000002);
2179  onChanged();
2180  return this;
2181  }
2182 
2183  private com.google.protobuf.Internal.LongList solutionUpperBounds_ = emptyLongList();
2184  private void ensureSolutionUpperBoundsIsMutable() {
2185  if (!((bitField0_ & 0x00000004) != 0)) {
2186  solutionUpperBounds_ = mutableCopy(solutionUpperBounds_);
2187  bitField0_ |= 0x00000004;
2188  }
2189  }
2194  public java.util.List<java.lang.Long>
2196  return ((bitField0_ & 0x00000004) != 0) ?
2197  java.util.Collections.unmodifiableList(solutionUpperBounds_) : solutionUpperBounds_;
2198  }
2204  return solutionUpperBounds_.size();
2205  }
2211  public long getSolutionUpperBounds(int index) {
2212  return solutionUpperBounds_.getLong(index);
2213  }
2221  int index, long value) {
2222  ensureSolutionUpperBoundsIsMutable();
2223  solutionUpperBounds_.setLong(index, value);
2224  onChanged();
2225  return this;
2226  }
2232  public Builder addSolutionUpperBounds(long value) {
2233  ensureSolutionUpperBoundsIsMutable();
2234  solutionUpperBounds_.addLong(value);
2235  onChanged();
2236  return this;
2237  }
2244  java.lang.Iterable<? extends java.lang.Long> values) {
2245  ensureSolutionUpperBoundsIsMutable();
2246  com.google.protobuf.AbstractMessageLite.Builder.addAll(
2247  values, solutionUpperBounds_);
2248  onChanged();
2249  return this;
2250  }
2256  solutionUpperBounds_ = emptyLongList();
2257  bitField0_ = (bitField0_ & ~0x00000004);
2258  onChanged();
2259  return this;
2260  }
2261 
2262  private java.util.List<com.google.ortools.sat.IntegerVariableProto> tightenedVariables_ =
2263  java.util.Collections.emptyList();
2264  private void ensureTightenedVariablesIsMutable() {
2265  if (!((bitField0_ & 0x00000008) != 0)) {
2266  tightenedVariables_ = new java.util.ArrayList<com.google.ortools.sat.IntegerVariableProto>(tightenedVariables_);
2267  bitField0_ |= 0x00000008;
2268  }
2269  }
2270 
2271  private com.google.protobuf.RepeatedFieldBuilderV3<
2272  com.google.ortools.sat.IntegerVariableProto, com.google.ortools.sat.IntegerVariableProto.Builder, com.google.ortools.sat.IntegerVariableProtoOrBuilder> tightenedVariablesBuilder_;
2273 
2290  public java.util.List<com.google.ortools.sat.IntegerVariableProto> getTightenedVariablesList() {
2291  if (tightenedVariablesBuilder_ == null) {
2292  return java.util.Collections.unmodifiableList(tightenedVariables_);
2293  } else {
2294  return tightenedVariablesBuilder_.getMessageList();
2295  }
2296  }
2314  if (tightenedVariablesBuilder_ == null) {
2315  return tightenedVariables_.size();
2316  } else {
2317  return tightenedVariablesBuilder_.getCount();
2318  }
2319  }
2336  public com.google.ortools.sat.IntegerVariableProto getTightenedVariables(int index) {
2337  if (tightenedVariablesBuilder_ == null) {
2338  return tightenedVariables_.get(index);
2339  } else {
2340  return tightenedVariablesBuilder_.getMessage(index);
2341  }
2342  }
2360  int index, com.google.ortools.sat.IntegerVariableProto value) {
2361  if (tightenedVariablesBuilder_ == null) {
2362  if (value == null) {
2363  throw new NullPointerException();
2364  }
2365  ensureTightenedVariablesIsMutable();
2366  tightenedVariables_.set(index, value);
2367  onChanged();
2368  } else {
2369  tightenedVariablesBuilder_.setMessage(index, value);
2370  }
2371  return this;
2372  }
2390  int index, com.google.ortools.sat.IntegerVariableProto.Builder builderForValue) {
2391  if (tightenedVariablesBuilder_ == null) {
2392  ensureTightenedVariablesIsMutable();
2393  tightenedVariables_.set(index, builderForValue.build());
2394  onChanged();
2395  } else {
2396  tightenedVariablesBuilder_.setMessage(index, builderForValue.build());
2397  }
2398  return this;
2399  }
2416  public Builder addTightenedVariables(com.google.ortools.sat.IntegerVariableProto value) {
2417  if (tightenedVariablesBuilder_ == null) {
2418  if (value == null) {
2419  throw new NullPointerException();
2420  }
2421  ensureTightenedVariablesIsMutable();
2422  tightenedVariables_.add(value);
2423  onChanged();
2424  } else {
2425  tightenedVariablesBuilder_.addMessage(value);
2426  }
2427  return this;
2428  }
2446  int index, com.google.ortools.sat.IntegerVariableProto value) {
2447  if (tightenedVariablesBuilder_ == null) {
2448  if (value == null) {
2449  throw new NullPointerException();
2450  }
2451  ensureTightenedVariablesIsMutable();
2452  tightenedVariables_.add(index, value);
2453  onChanged();
2454  } else {
2455  tightenedVariablesBuilder_.addMessage(index, value);
2456  }
2457  return this;
2458  }
2476  com.google.ortools.sat.IntegerVariableProto.Builder builderForValue) {
2477  if (tightenedVariablesBuilder_ == null) {
2478  ensureTightenedVariablesIsMutable();
2479  tightenedVariables_.add(builderForValue.build());
2480  onChanged();
2481  } else {
2482  tightenedVariablesBuilder_.addMessage(builderForValue.build());
2483  }
2484  return this;
2485  }
2503  int index, com.google.ortools.sat.IntegerVariableProto.Builder builderForValue) {
2504  if (tightenedVariablesBuilder_ == null) {
2505  ensureTightenedVariablesIsMutable();
2506  tightenedVariables_.add(index, builderForValue.build());
2507  onChanged();
2508  } else {
2509  tightenedVariablesBuilder_.addMessage(index, builderForValue.build());
2510  }
2511  return this;
2512  }
2530  java.lang.Iterable<? extends com.google.ortools.sat.IntegerVariableProto> values) {
2531  if (tightenedVariablesBuilder_ == null) {
2532  ensureTightenedVariablesIsMutable();
2533  com.google.protobuf.AbstractMessageLite.Builder.addAll(
2534  values, tightenedVariables_);
2535  onChanged();
2536  } else {
2537  tightenedVariablesBuilder_.addAllMessages(values);
2538  }
2539  return this;
2540  }
2558  if (tightenedVariablesBuilder_ == null) {
2559  tightenedVariables_ = java.util.Collections.emptyList();
2560  bitField0_ = (bitField0_ & ~0x00000008);
2561  onChanged();
2562  } else {
2563  tightenedVariablesBuilder_.clear();
2564  }
2565  return this;
2566  }
2583  public Builder removeTightenedVariables(int index) {
2584  if (tightenedVariablesBuilder_ == null) {
2585  ensureTightenedVariablesIsMutable();
2586  tightenedVariables_.remove(index);
2587  onChanged();
2588  } else {
2589  tightenedVariablesBuilder_.remove(index);
2590  }
2591  return this;
2592  }
2609  public com.google.ortools.sat.IntegerVariableProto.Builder getTightenedVariablesBuilder(
2610  int index) {
2611  return getTightenedVariablesFieldBuilder().getBuilder(index);
2612  }
2629  public com.google.ortools.sat.IntegerVariableProtoOrBuilder getTightenedVariablesOrBuilder(
2630  int index) {
2631  if (tightenedVariablesBuilder_ == null) {
2632  return tightenedVariables_.get(index); } else {
2633  return tightenedVariablesBuilder_.getMessageOrBuilder(index);
2634  }
2635  }
2652  public java.util.List<? extends com.google.ortools.sat.IntegerVariableProtoOrBuilder>
2654  if (tightenedVariablesBuilder_ != null) {
2655  return tightenedVariablesBuilder_.getMessageOrBuilderList();
2656  } else {
2657  return java.util.Collections.unmodifiableList(tightenedVariables_);
2658  }
2659  }
2676  public com.google.ortools.sat.IntegerVariableProto.Builder addTightenedVariablesBuilder() {
2677  return getTightenedVariablesFieldBuilder().addBuilder(
2678  com.google.ortools.sat.IntegerVariableProto.getDefaultInstance());
2679  }
2696  public com.google.ortools.sat.IntegerVariableProto.Builder addTightenedVariablesBuilder(
2697  int index) {
2698  return getTightenedVariablesFieldBuilder().addBuilder(
2699  index, com.google.ortools.sat.IntegerVariableProto.getDefaultInstance());
2700  }
2717  public java.util.List<com.google.ortools.sat.IntegerVariableProto.Builder>
2719  return getTightenedVariablesFieldBuilder().getBuilderList();
2720  }
2721  private com.google.protobuf.RepeatedFieldBuilderV3<
2722  com.google.ortools.sat.IntegerVariableProto, com.google.ortools.sat.IntegerVariableProto.Builder, com.google.ortools.sat.IntegerVariableProtoOrBuilder>
2723  getTightenedVariablesFieldBuilder() {
2724  if (tightenedVariablesBuilder_ == null) {
2725  tightenedVariablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
2726  com.google.ortools.sat.IntegerVariableProto, com.google.ortools.sat.IntegerVariableProto.Builder, com.google.ortools.sat.IntegerVariableProtoOrBuilder>(
2727  tightenedVariables_,
2728  ((bitField0_ & 0x00000008) != 0),
2729  getParentForChildren(),
2730  isClean());
2731  tightenedVariables_ = null;
2732  }
2733  return tightenedVariablesBuilder_;
2734  }
2735 
2736  private com.google.protobuf.Internal.IntList sufficientAssumptionsForInfeasibility_ = emptyIntList();
2737  private void ensureSufficientAssumptionsForInfeasibilityIsMutable() {
2738  if (!((bitField0_ & 0x00000010) != 0)) {
2739  sufficientAssumptionsForInfeasibility_ = mutableCopy(sufficientAssumptionsForInfeasibility_);
2740  bitField0_ |= 0x00000010;
2741  }
2742  }
2762  public java.util.List<java.lang.Integer>
2764  return ((bitField0_ & 0x00000010) != 0) ?
2765  java.util.Collections.unmodifiableList(sufficientAssumptionsForInfeasibility_) : sufficientAssumptionsForInfeasibility_;
2766  }
2787  return sufficientAssumptionsForInfeasibility_.size();
2788  }
2810  return sufficientAssumptionsForInfeasibility_.getInt(index);
2811  }
2834  int index, int value) {
2835  ensureSufficientAssumptionsForInfeasibilityIsMutable();
2836  sufficientAssumptionsForInfeasibility_.setInt(index, value);
2837  onChanged();
2838  return this;
2839  }
2861  ensureSufficientAssumptionsForInfeasibilityIsMutable();
2862  sufficientAssumptionsForInfeasibility_.addInt(value);
2863  onChanged();
2864  return this;
2865  }
2887  java.lang.Iterable<? extends java.lang.Integer> values) {
2888  ensureSufficientAssumptionsForInfeasibilityIsMutable();
2889  com.google.protobuf.AbstractMessageLite.Builder.addAll(
2890  values, sufficientAssumptionsForInfeasibility_);
2891  onChanged();
2892  return this;
2893  }
2914  sufficientAssumptionsForInfeasibility_ = emptyIntList();
2915  bitField0_ = (bitField0_ & ~0x00000010);
2916  onChanged();
2917  return this;
2918  }
2919 
2920  private boolean allSolutionsWereFound_ ;
2932  @java.lang.Override
2933  public boolean getAllSolutionsWereFound() {
2934  return allSolutionsWereFound_;
2935  }
2948  public Builder setAllSolutionsWereFound(boolean value) {
2949 
2950  allSolutionsWereFound_ = value;
2951  onChanged();
2952  return this;
2953  }
2966 
2967  allSolutionsWereFound_ = false;
2968  onChanged();
2969  return this;
2970  }
2971 
2972  private long numBooleans_ ;
2981  @java.lang.Override
2982  public long getNumBooleans() {
2983  return numBooleans_;
2984  }
2994  public Builder setNumBooleans(long value) {
2995 
2996  numBooleans_ = value;
2997  onChanged();
2998  return this;
2999  }
3009 
3010  numBooleans_ = 0L;
3011  onChanged();
3012  return this;
3013  }
3014 
3015  private long numConflicts_ ;
3020  @java.lang.Override
3021  public long getNumConflicts() {
3022  return numConflicts_;
3023  }
3029  public Builder setNumConflicts(long value) {
3030 
3031  numConflicts_ = value;
3032  onChanged();
3033  return this;
3034  }
3040 
3041  numConflicts_ = 0L;
3042  onChanged();
3043  return this;
3044  }
3045 
3046  private long numBranches_ ;
3051  @java.lang.Override
3052  public long getNumBranches() {
3053  return numBranches_;
3054  }
3060  public Builder setNumBranches(long value) {
3061 
3062  numBranches_ = value;
3063  onChanged();
3064  return this;
3065  }
3071 
3072  numBranches_ = 0L;
3073  onChanged();
3074  return this;
3075  }
3076 
3077  private long numBinaryPropagations_ ;
3082  @java.lang.Override
3084  return numBinaryPropagations_;
3085  }
3091  public Builder setNumBinaryPropagations(long value) {
3092 
3093  numBinaryPropagations_ = value;
3094  onChanged();
3095  return this;
3096  }
3102 
3103  numBinaryPropagations_ = 0L;
3104  onChanged();
3105  return this;
3106  }
3107 
3108  private long numIntegerPropagations_ ;
3113  @java.lang.Override
3115  return numIntegerPropagations_;
3116  }
3122  public Builder setNumIntegerPropagations(long value) {
3123 
3124  numIntegerPropagations_ = value;
3125  onChanged();
3126  return this;
3127  }
3133 
3134  numIntegerPropagations_ = 0L;
3135  onChanged();
3136  return this;
3137  }
3138 
3139  private long numRestarts_ ;
3144  @java.lang.Override
3145  public long getNumRestarts() {
3146  return numRestarts_;
3147  }
3153  public Builder setNumRestarts(long value) {
3154 
3155  numRestarts_ = value;
3156  onChanged();
3157  return this;
3158  }
3164 
3165  numRestarts_ = 0L;
3166  onChanged();
3167  return this;
3168  }
3169 
3170  private long numLpIterations_ ;
3175  @java.lang.Override
3176  public long getNumLpIterations() {
3177  return numLpIterations_;
3178  }
3184  public Builder setNumLpIterations(long value) {
3185 
3186  numLpIterations_ = value;
3187  onChanged();
3188  return this;
3189  }
3195 
3196  numLpIterations_ = 0L;
3197  onChanged();
3198  return this;
3199  }
3200 
3201  private double wallTime_ ;
3206  @java.lang.Override
3207  public double getWallTime() {
3208  return wallTime_;
3209  }
3215  public Builder setWallTime(double value) {
3216 
3217  wallTime_ = value;
3218  onChanged();
3219  return this;
3220  }
3226 
3227  wallTime_ = 0D;
3228  onChanged();
3229  return this;
3230  }
3231 
3232  private double userTime_ ;
3237  @java.lang.Override
3238  public double getUserTime() {
3239  return userTime_;
3240  }
3246  public Builder setUserTime(double value) {
3247 
3248  userTime_ = value;
3249  onChanged();
3250  return this;
3251  }
3257 
3258  userTime_ = 0D;
3259  onChanged();
3260  return this;
3261  }
3262 
3263  private double deterministicTime_ ;
3268  @java.lang.Override
3269  public double getDeterministicTime() {
3270  return deterministicTime_;
3271  }
3277  public Builder setDeterministicTime(double value) {
3278 
3279  deterministicTime_ = value;
3280  onChanged();
3281  return this;
3282  }
3288 
3289  deterministicTime_ = 0D;
3290  onChanged();
3291  return this;
3292  }
3293 
3294  private double primalIntegral_ ;
3299  @java.lang.Override
3300  public double getPrimalIntegral() {
3301  return primalIntegral_;
3302  }
3308  public Builder setPrimalIntegral(double value) {
3309 
3310  primalIntegral_ = value;
3311  onChanged();
3312  return this;
3313  }
3319 
3320  primalIntegral_ = 0D;
3321  onChanged();
3322  return this;
3323  }
3324 
3325  private java.lang.Object solutionInfo_ = "";
3334  public java.lang.String getSolutionInfo() {
3335  java.lang.Object ref = solutionInfo_;
3336  if (!(ref instanceof java.lang.String)) {
3337  com.google.protobuf.ByteString bs =
3338  (com.google.protobuf.ByteString) ref;
3339  java.lang.String s = bs.toStringUtf8();
3340  solutionInfo_ = s;
3341  return s;
3342  } else {
3343  return (java.lang.String) ref;
3344  }
3345  }
3354  public com.google.protobuf.ByteString
3356  java.lang.Object ref = solutionInfo_;
3357  if (ref instanceof String) {
3358  com.google.protobuf.ByteString b =
3359  com.google.protobuf.ByteString.copyFromUtf8(
3360  (java.lang.String) ref);
3361  solutionInfo_ = b;
3362  return b;
3363  } else {
3364  return (com.google.protobuf.ByteString) ref;
3365  }
3366  }
3377  java.lang.String value) {
3378  if (value == null) {
3379  throw new NullPointerException();
3380  }
3381 
3382  solutionInfo_ = value;
3383  onChanged();
3384  return this;
3385  }
3395 
3396  solutionInfo_ = getDefaultInstance().getSolutionInfo();
3397  onChanged();
3398  return this;
3399  }
3410  com.google.protobuf.ByteString value) {
3411  if (value == null) {
3412  throw new NullPointerException();
3413  }
3414  checkByteStringIsUtf8(value);
3415 
3416  solutionInfo_ = value;
3417  onChanged();
3418  return this;
3419  }
3420 
3421  private java.lang.Object solveLog_ = "";
3431  public java.lang.String getSolveLog() {
3432  java.lang.Object ref = solveLog_;
3433  if (!(ref instanceof java.lang.String)) {
3434  com.google.protobuf.ByteString bs =
3435  (com.google.protobuf.ByteString) ref;
3436  java.lang.String s = bs.toStringUtf8();
3437  solveLog_ = s;
3438  return s;
3439  } else {
3440  return (java.lang.String) ref;
3441  }
3442  }
3452  public com.google.protobuf.ByteString
3454  java.lang.Object ref = solveLog_;
3455  if (ref instanceof String) {
3456  com.google.protobuf.ByteString b =
3457  com.google.protobuf.ByteString.copyFromUtf8(
3458  (java.lang.String) ref);
3459  solveLog_ = b;
3460  return b;
3461  } else {
3462  return (com.google.protobuf.ByteString) ref;
3463  }
3464  }
3476  java.lang.String value) {
3477  if (value == null) {
3478  throw new NullPointerException();
3479  }
3480 
3481  solveLog_ = value;
3482  onChanged();
3483  return this;
3484  }
3495 
3496  solveLog_ = getDefaultInstance().getSolveLog();
3497  onChanged();
3498  return this;
3499  }
3511  com.google.protobuf.ByteString value) {
3512  if (value == null) {
3513  throw new NullPointerException();
3514  }
3515  checkByteStringIsUtf8(value);
3516 
3517  solveLog_ = value;
3518  onChanged();
3519  return this;
3520  }
3521  @java.lang.Override
3523  final com.google.protobuf.UnknownFieldSet unknownFields) {
3524  return super.setUnknownFields(unknownFields);
3525  }
3526 
3527  @java.lang.Override
3529  final com.google.protobuf.UnknownFieldSet unknownFields) {
3530  return super.mergeUnknownFields(unknownFields);
3531  }
3532 
3533 
3534  // @@protoc_insertion_point(builder_scope:operations_research.sat.CpSolverResponse)
3535  }
3536 
3537  // @@protoc_insertion_point(class_scope:operations_research.sat.CpSolverResponse)
3538  private static final com.google.ortools.sat.CpSolverResponse DEFAULT_INSTANCE;
3539  static {
3540  DEFAULT_INSTANCE = new com.google.ortools.sat.CpSolverResponse();
3541  }
3542 
3543  public static com.google.ortools.sat.CpSolverResponse getDefaultInstance() {
3544  return DEFAULT_INSTANCE;
3545  }
3546 
3547  private static final com.google.protobuf.Parser<CpSolverResponse>
3548  PARSER = new com.google.protobuf.AbstractParser<CpSolverResponse>() {
3549  @java.lang.Override
3550  public CpSolverResponse parsePartialFrom(
3551  com.google.protobuf.CodedInputStream input,
3552  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3553  throws com.google.protobuf.InvalidProtocolBufferException {
3554  return new CpSolverResponse(input, extensionRegistry);
3555  }
3556  };
3557 
3558  public static com.google.protobuf.Parser<CpSolverResponse> parser() {
3559  return PARSER;
3560  }
3561 
3562  @java.lang.Override
3563  public com.google.protobuf.Parser<CpSolverResponse> getParserForType() {
3564  return PARSER;
3565  }
3566 
3567  @java.lang.Override
3568  public com.google.ortools.sat.CpSolverResponse getDefaultInstanceForType() {
3569  return DEFAULT_INSTANCE;
3570  }
3571 
3572 }
3573 
.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)
java.util.List< java.lang.Long > getSolutionList()
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)
.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)
Builder addTightenedVariables(int index, com.google.ortools.sat.IntegerVariableProto.Builder builderForValue)
Builder setNumBranches(long value)
int64 num_branches = 12;
java.util.List< com.google.ortools.sat.IntegerVariableProto.Builder > getTightenedVariablesBuilderList()
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;
.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)
java.util.List< java.lang.Integer > getSufficientAssumptionsForInfeasibilityList()
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;
java.util.List< java.lang.Long > getSolutionUpperBoundsList()
repeated int64 solution_upper_bounds = 19;
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;
java.util.List<? extends com.google.ortools.sat.IntegerVariableProtoOrBuilder > getTightenedVariablesOrBuilderList()
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)
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)
Builder clearSolutionUpperBounds()
repeated int64 solution_upper_bounds = 19;
.lang.Override long getNumBranches()
int64 num_branches = 12;
java.util.List< java.lang.Long > getSolutionLowerBoundsList()
.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.Integer > getSufficientAssumptionsForInfeasibilityList()
.lang.Override com.google.protobuf.ByteString getSolutionInfoBytes()
.lang.Override java.util.List< com.google.ortools.sat.IntegerVariableProto > getTightenedVariablesList()
.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)
static com.google.protobuf.Parser< CpSolverResponse > parser()
.lang.Override double getUserTime()
double user_time = 16;
.lang.Override java.util.List< java.lang.Long > getSolutionLowerBoundsList()
.lang.Override boolean getAllSolutionsWereFound()
.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 java.util.List<? extends com.google.ortools.sat.IntegerVariableProtoOrBuilder > getTightenedVariablesOrBuilderList()
.lang.Override double getDeterministicTime()
double deterministic_time = 17;
.lang.Override java.util.List< java.lang.Long > getSolutionUpperBoundsList()
repeated int64 solution_upper_bounds = 19;
long getSolutionUpperBounds(int index)
repeated int64 solution_upper_bounds = 19;
.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;
.lang.Override com.google.protobuf.Parser< CpSolverResponse > getParserForType()
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.ortools.sat.CpSolverResponse getDefaultInstanceForType()
.lang.Override java.lang.Object newInstance(UnusedPrivateParameter unused)
.lang.Override java.util.List< java.lang.Long > getSolutionList()
.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)
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;