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  }
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 40: {
104 
105  allSolutionsWereFound_ = input.readBool();
106  break;
107  }
108  case 80: {
109 
110  numBooleans_ = input.readInt64();
111  break;
112  }
113  case 88: {
114 
115  numConflicts_ = input.readInt64();
116  break;
117  }
118  case 96: {
119 
120  numBranches_ = input.readInt64();
121  break;
122  }
123  case 104: {
124 
125  numBinaryPropagations_ = input.readInt64();
126  break;
127  }
128  case 112: {
129 
130  numIntegerPropagations_ = input.readInt64();
131  break;
132  }
133  case 121: {
134 
135  wallTime_ = input.readDouble();
136  break;
137  }
138  case 129: {
139 
140  userTime_ = input.readDouble();
141  break;
142  }
143  case 137: {
144 
145  deterministicTime_ = input.readDouble();
146  break;
147  }
148  case 144: {
149  if (!((mutable_bitField0_ & 0x00000002) != 0)) {
150  solutionLowerBounds_ = newLongList();
151  mutable_bitField0_ |= 0x00000002;
152  }
153  solutionLowerBounds_.addLong(input.readInt64());
154  break;
155  }
156  case 146: {
157  int length = input.readRawVarint32();
158  int limit = input.pushLimit(length);
159  if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
160  solutionLowerBounds_ = newLongList();
161  mutable_bitField0_ |= 0x00000002;
162  }
163  while (input.getBytesUntilLimit() > 0) {
164  solutionLowerBounds_.addLong(input.readInt64());
165  }
166  input.popLimit(limit);
167  break;
168  }
169  case 152: {
170  if (!((mutable_bitField0_ & 0x00000004) != 0)) {
171  solutionUpperBounds_ = newLongList();
172  mutable_bitField0_ |= 0x00000004;
173  }
174  solutionUpperBounds_.addLong(input.readInt64());
175  break;
176  }
177  case 154: {
178  int length = input.readRawVarint32();
179  int limit = input.pushLimit(length);
180  if (!((mutable_bitField0_ & 0x00000004) != 0) && input.getBytesUntilLimit() > 0) {
181  solutionUpperBounds_ = newLongList();
182  mutable_bitField0_ |= 0x00000004;
183  }
184  while (input.getBytesUntilLimit() > 0) {
185  solutionUpperBounds_.addLong(input.readInt64());
186  }
187  input.popLimit(limit);
188  break;
189  }
190  case 162: {
191  java.lang.String s = input.readStringRequireUtf8();
192 
193  solutionInfo_ = s;
194  break;
195  }
196  case 170: {
197  if (!((mutable_bitField0_ & 0x00000008) != 0)) {
198  tightenedVariables_ = new java.util.ArrayList<com.google.ortools.sat.IntegerVariableProto>();
199  mutable_bitField0_ |= 0x00000008;
200  }
201  tightenedVariables_.add(
202  input.readMessage(com.google.ortools.sat.IntegerVariableProto.parser(), extensionRegistry));
203  break;
204  }
205  case 177: {
206 
207  primalIntegral_ = input.readDouble();
208  break;
209  }
210  case 184: {
211  if (!((mutable_bitField0_ & 0x00000010) != 0)) {
212  sufficientAssumptionsForInfeasibility_ = newIntList();
213  mutable_bitField0_ |= 0x00000010;
214  }
215  sufficientAssumptionsForInfeasibility_.addInt(input.readInt32());
216  break;
217  }
218  case 186: {
219  int length = input.readRawVarint32();
220  int limit = input.pushLimit(length);
221  if (!((mutable_bitField0_ & 0x00000010) != 0) && input.getBytesUntilLimit() > 0) {
222  sufficientAssumptionsForInfeasibility_ = newIntList();
223  mutable_bitField0_ |= 0x00000010;
224  }
225  while (input.getBytesUntilLimit() > 0) {
226  sufficientAssumptionsForInfeasibility_.addInt(input.readInt32());
227  }
228  input.popLimit(limit);
229  break;
230  }
231  case 192: {
232 
233  numRestarts_ = input.readInt64();
234  break;
235  }
236  case 200: {
237 
238  numLpIterations_ = input.readInt64();
239  break;
240  }
241  default: {
242  if (!parseUnknownField(
243  input, unknownFields, extensionRegistry, tag)) {
244  done = true;
245  }
246  break;
247  }
248  }
249  }
250  } catch (com.google.protobuf.InvalidProtocolBufferException e) {
251  throw e.setUnfinishedMessage(this);
252  } catch (java.io.IOException e) {
253  throw new com.google.protobuf.InvalidProtocolBufferException(
254  e).setUnfinishedMessage(this);
255  } finally {
256  if (((mutable_bitField0_ & 0x00000001) != 0)) {
257  solution_.makeImmutable(); // C
258  }
259  if (((mutable_bitField0_ & 0x00000002) != 0)) {
260  solutionLowerBounds_.makeImmutable(); // C
261  }
262  if (((mutable_bitField0_ & 0x00000004) != 0)) {
263  solutionUpperBounds_.makeImmutable(); // C
264  }
265  if (((mutable_bitField0_ & 0x00000008) != 0)) {
266  tightenedVariables_ = java.util.Collections.unmodifiableList(tightenedVariables_);
267  }
268  if (((mutable_bitField0_ & 0x00000010) != 0)) {
269  sufficientAssumptionsForInfeasibility_.makeImmutable(); // C
270  }
271  this.unknownFields = unknownFields.build();
272  makeExtensionsImmutable();
273  }
274  }
275  public static final com.google.protobuf.Descriptors.Descriptor
277  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_descriptor;
278  }
279 
280  @java.lang.Override
281  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
283  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_fieldAccessorTable
284  .ensureFieldAccessorsInitialized(
286  }
287 
288  public static final int STATUS_FIELD_NUMBER = 1;
289  private int status_;
298  @java.lang.Override public int getStatusValue() {
299  return status_;
300  }
309  @java.lang.Override public com.google.ortools.sat.CpSolverStatus getStatus() {
310  @SuppressWarnings("deprecation")
312  return result == null ? com.google.ortools.sat.CpSolverStatus.UNRECOGNIZED : result;
313  }
314 
315  public static final int SOLUTION_FIELD_NUMBER = 2;
316  private com.google.protobuf.Internal.LongList solution_;
328  @java.lang.Override
329  public java.util.List<java.lang.Long>
331  return solution_;
332  }
344  public int getSolutionCount() {
345  return solution_.size();
346  }
359  public long getSolution(int index) {
360  return solution_.getLong(index);
361  }
362  private int solutionMemoizedSerializedSize = -1;
363 
364  public static final int OBJECTIVE_VALUE_FIELD_NUMBER = 3;
365  private double objectiveValue_;
377  @java.lang.Override
378  public double getObjectiveValue() {
379  return objectiveValue_;
380  }
381 
382  public static final int BEST_OBJECTIVE_BOUND_FIELD_NUMBER = 4;
383  private double bestObjectiveBound_;
394  @java.lang.Override
395  public double getBestObjectiveBound() {
396  return bestObjectiveBound_;
397  }
398 
399  public static final int SOLUTION_LOWER_BOUNDS_FIELD_NUMBER = 18;
400  private com.google.protobuf.Internal.LongList solutionLowerBounds_;
414  @java.lang.Override
415  public java.util.List<java.lang.Long>
417  return solutionLowerBounds_;
418  }
433  return solutionLowerBounds_.size();
434  }
449  public long getSolutionLowerBounds(int index) {
450  return solutionLowerBounds_.getLong(index);
451  }
452  private int solutionLowerBoundsMemoizedSerializedSize = -1;
453 
454  public static final int SOLUTION_UPPER_BOUNDS_FIELD_NUMBER = 19;
455  private com.google.protobuf.Internal.LongList solutionUpperBounds_;
460  @java.lang.Override
461  public java.util.List<java.lang.Long>
463  return solutionUpperBounds_;
464  }
470  return solutionUpperBounds_.size();
471  }
477  public long getSolutionUpperBounds(int index) {
478  return solutionUpperBounds_.getLong(index);
479  }
480  private int solutionUpperBoundsMemoizedSerializedSize = -1;
481 
482  public static final int TIGHTENED_VARIABLES_FIELD_NUMBER = 21;
483  private java.util.List<com.google.ortools.sat.IntegerVariableProto> tightenedVariables_;
500  @java.lang.Override
502  return tightenedVariables_;
503  }
520  @java.lang.Override
521  public java.util.List<? extends com.google.ortools.sat.IntegerVariableProtoOrBuilder>
523  return tightenedVariables_;
524  }
541  @java.lang.Override
543  return tightenedVariables_.size();
544  }
561  @java.lang.Override
563  return tightenedVariables_.get(index);
564  }
581  @java.lang.Override
583  int index) {
584  return tightenedVariables_.get(index);
585  }
586 
588  private com.google.protobuf.Internal.IntList sufficientAssumptionsForInfeasibility_;
608  @java.lang.Override
609  public java.util.List<java.lang.Integer>
611  return sufficientAssumptionsForInfeasibility_;
612  }
633  return sufficientAssumptionsForInfeasibility_.size();
634  }
656  return sufficientAssumptionsForInfeasibility_.getInt(index);
657  }
658  private int sufficientAssumptionsForInfeasibilityMemoizedSerializedSize = -1;
659 
660  public static final int ALL_SOLUTIONS_WERE_FOUND_FIELD_NUMBER = 5;
661  private boolean allSolutionsWereFound_;
673  @java.lang.Override
674  public boolean getAllSolutionsWereFound() {
675  return allSolutionsWereFound_;
676  }
677 
678  public static final int NUM_BOOLEANS_FIELD_NUMBER = 10;
679  private long numBooleans_;
688  @java.lang.Override
689  public long getNumBooleans() {
690  return numBooleans_;
691  }
692 
693  public static final int NUM_CONFLICTS_FIELD_NUMBER = 11;
694  private long numConflicts_;
699  @java.lang.Override
700  public long getNumConflicts() {
701  return numConflicts_;
702  }
703 
704  public static final int NUM_BRANCHES_FIELD_NUMBER = 12;
705  private long numBranches_;
710  @java.lang.Override
711  public long getNumBranches() {
712  return numBranches_;
713  }
714 
715  public static final int NUM_BINARY_PROPAGATIONS_FIELD_NUMBER = 13;
716  private long numBinaryPropagations_;
721  @java.lang.Override
722  public long getNumBinaryPropagations() {
723  return numBinaryPropagations_;
724  }
725 
726  public static final int NUM_INTEGER_PROPAGATIONS_FIELD_NUMBER = 14;
727  private long numIntegerPropagations_;
732  @java.lang.Override
734  return numIntegerPropagations_;
735  }
736 
737  public static final int NUM_RESTARTS_FIELD_NUMBER = 24;
738  private long numRestarts_;
743  @java.lang.Override
744  public long getNumRestarts() {
745  return numRestarts_;
746  }
747 
748  public static final int NUM_LP_ITERATIONS_FIELD_NUMBER = 25;
749  private long numLpIterations_;
754  @java.lang.Override
755  public long getNumLpIterations() {
756  return numLpIterations_;
757  }
758 
759  public static final int WALL_TIME_FIELD_NUMBER = 15;
760  private double wallTime_;
765  @java.lang.Override
766  public double getWallTime() {
767  return wallTime_;
768  }
769 
770  public static final int USER_TIME_FIELD_NUMBER = 16;
771  private double userTime_;
776  @java.lang.Override
777  public double getUserTime() {
778  return userTime_;
779  }
780 
781  public static final int DETERMINISTIC_TIME_FIELD_NUMBER = 17;
782  private double deterministicTime_;
787  @java.lang.Override
788  public double getDeterministicTime() {
789  return deterministicTime_;
790  }
791 
792  public static final int PRIMAL_INTEGRAL_FIELD_NUMBER = 22;
793  private double primalIntegral_;
798  @java.lang.Override
799  public double getPrimalIntegral() {
800  return primalIntegral_;
801  }
802 
803  public static final int SOLUTION_INFO_FIELD_NUMBER = 20;
804  private volatile java.lang.Object solutionInfo_;
813  @java.lang.Override
814  public java.lang.String getSolutionInfo() {
815  java.lang.Object ref = solutionInfo_;
816  if (ref instanceof java.lang.String) {
817  return (java.lang.String) ref;
818  } else {
819  com.google.protobuf.ByteString bs =
820  (com.google.protobuf.ByteString) ref;
821  java.lang.String s = bs.toStringUtf8();
822  solutionInfo_ = s;
823  return s;
824  }
825  }
834  @java.lang.Override
835  public com.google.protobuf.ByteString
837  java.lang.Object ref = solutionInfo_;
838  if (ref instanceof java.lang.String) {
839  com.google.protobuf.ByteString b =
840  com.google.protobuf.ByteString.copyFromUtf8(
841  (java.lang.String) ref);
842  solutionInfo_ = b;
843  return b;
844  } else {
845  return (com.google.protobuf.ByteString) ref;
846  }
847  }
848 
849  private byte memoizedIsInitialized = -1;
850  @java.lang.Override
851  public final boolean isInitialized() {
852  byte isInitialized = memoizedIsInitialized;
853  if (isInitialized == 1) return true;
854  if (isInitialized == 0) return false;
855 
856  memoizedIsInitialized = 1;
857  return true;
858  }
859 
860  @java.lang.Override
861  public void writeTo(com.google.protobuf.CodedOutputStream output)
862  throws java.io.IOException {
864  if (status_ != com.google.ortools.sat.CpSolverStatus.UNKNOWN.getNumber()) {
865  output.writeEnum(1, status_);
866  }
867  if (getSolutionList().size() > 0) {
868  output.writeUInt32NoTag(18);
869  output.writeUInt32NoTag(solutionMemoizedSerializedSize);
870  }
871  for (int i = 0; i < solution_.size(); i++) {
872  output.writeInt64NoTag(solution_.getLong(i));
873  }
874  if (objectiveValue_ != 0D) {
875  output.writeDouble(3, objectiveValue_);
876  }
877  if (bestObjectiveBound_ != 0D) {
878  output.writeDouble(4, bestObjectiveBound_);
879  }
880  if (allSolutionsWereFound_ != false) {
881  output.writeBool(5, allSolutionsWereFound_);
882  }
883  if (numBooleans_ != 0L) {
884  output.writeInt64(10, numBooleans_);
885  }
886  if (numConflicts_ != 0L) {
887  output.writeInt64(11, numConflicts_);
888  }
889  if (numBranches_ != 0L) {
890  output.writeInt64(12, numBranches_);
891  }
892  if (numBinaryPropagations_ != 0L) {
893  output.writeInt64(13, numBinaryPropagations_);
894  }
895  if (numIntegerPropagations_ != 0L) {
896  output.writeInt64(14, numIntegerPropagations_);
897  }
898  if (wallTime_ != 0D) {
899  output.writeDouble(15, wallTime_);
900  }
901  if (userTime_ != 0D) {
902  output.writeDouble(16, userTime_);
903  }
904  if (deterministicTime_ != 0D) {
905  output.writeDouble(17, deterministicTime_);
906  }
907  if (getSolutionLowerBoundsList().size() > 0) {
908  output.writeUInt32NoTag(146);
909  output.writeUInt32NoTag(solutionLowerBoundsMemoizedSerializedSize);
910  }
911  for (int i = 0; i < solutionLowerBounds_.size(); i++) {
912  output.writeInt64NoTag(solutionLowerBounds_.getLong(i));
913  }
914  if (getSolutionUpperBoundsList().size() > 0) {
915  output.writeUInt32NoTag(154);
916  output.writeUInt32NoTag(solutionUpperBoundsMemoizedSerializedSize);
917  }
918  for (int i = 0; i < solutionUpperBounds_.size(); i++) {
919  output.writeInt64NoTag(solutionUpperBounds_.getLong(i));
920  }
921  if (!getSolutionInfoBytes().isEmpty()) {
922  com.google.protobuf.GeneratedMessageV3.writeString(output, 20, solutionInfo_);
923  }
924  for (int i = 0; i < tightenedVariables_.size(); i++) {
925  output.writeMessage(21, tightenedVariables_.get(i));
926  }
927  if (primalIntegral_ != 0D) {
928  output.writeDouble(22, primalIntegral_);
929  }
931  output.writeUInt32NoTag(186);
932  output.writeUInt32NoTag(sufficientAssumptionsForInfeasibilityMemoizedSerializedSize);
933  }
934  for (int i = 0; i < sufficientAssumptionsForInfeasibility_.size(); i++) {
935  output.writeInt32NoTag(sufficientAssumptionsForInfeasibility_.getInt(i));
936  }
937  if (numRestarts_ != 0L) {
938  output.writeInt64(24, numRestarts_);
939  }
940  if (numLpIterations_ != 0L) {
941  output.writeInt64(25, numLpIterations_);
942  }
943  unknownFields.writeTo(output);
944  }
945 
946  @java.lang.Override
947  public int getSerializedSize() {
948  int size = memoizedSize;
949  if (size != -1) return size;
950 
951  size = 0;
952  if (status_ != com.google.ortools.sat.CpSolverStatus.UNKNOWN.getNumber()) {
953  size += com.google.protobuf.CodedOutputStream
954  .computeEnumSize(1, status_);
955  }
956  {
957  int dataSize = 0;
958  for (int i = 0; i < solution_.size(); i++) {
959  dataSize += com.google.protobuf.CodedOutputStream
960  .computeInt64SizeNoTag(solution_.getLong(i));
961  }
962  size += dataSize;
963  if (!getSolutionList().isEmpty()) {
964  size += 1;
965  size += com.google.protobuf.CodedOutputStream
966  .computeInt32SizeNoTag(dataSize);
967  }
968  solutionMemoizedSerializedSize = dataSize;
969  }
970  if (objectiveValue_ != 0D) {
971  size += com.google.protobuf.CodedOutputStream
972  .computeDoubleSize(3, objectiveValue_);
973  }
974  if (bestObjectiveBound_ != 0D) {
975  size += com.google.protobuf.CodedOutputStream
976  .computeDoubleSize(4, bestObjectiveBound_);
977  }
978  if (allSolutionsWereFound_ != false) {
979  size += com.google.protobuf.CodedOutputStream
980  .computeBoolSize(5, allSolutionsWereFound_);
981  }
982  if (numBooleans_ != 0L) {
983  size += com.google.protobuf.CodedOutputStream
984  .computeInt64Size(10, numBooleans_);
985  }
986  if (numConflicts_ != 0L) {
987  size += com.google.protobuf.CodedOutputStream
988  .computeInt64Size(11, numConflicts_);
989  }
990  if (numBranches_ != 0L) {
991  size += com.google.protobuf.CodedOutputStream
992  .computeInt64Size(12, numBranches_);
993  }
994  if (numBinaryPropagations_ != 0L) {
995  size += com.google.protobuf.CodedOutputStream
996  .computeInt64Size(13, numBinaryPropagations_);
997  }
998  if (numIntegerPropagations_ != 0L) {
999  size += com.google.protobuf.CodedOutputStream
1000  .computeInt64Size(14, numIntegerPropagations_);
1001  }
1002  if (wallTime_ != 0D) {
1003  size += com.google.protobuf.CodedOutputStream
1004  .computeDoubleSize(15, wallTime_);
1005  }
1006  if (userTime_ != 0D) {
1007  size += com.google.protobuf.CodedOutputStream
1008  .computeDoubleSize(16, userTime_);
1009  }
1010  if (deterministicTime_ != 0D) {
1011  size += com.google.protobuf.CodedOutputStream
1012  .computeDoubleSize(17, deterministicTime_);
1013  }
1014  {
1015  int dataSize = 0;
1016  for (int i = 0; i < solutionLowerBounds_.size(); i++) {
1017  dataSize += com.google.protobuf.CodedOutputStream
1018  .computeInt64SizeNoTag(solutionLowerBounds_.getLong(i));
1019  }
1020  size += dataSize;
1021  if (!getSolutionLowerBoundsList().isEmpty()) {
1022  size += 2;
1023  size += com.google.protobuf.CodedOutputStream
1024  .computeInt32SizeNoTag(dataSize);
1025  }
1026  solutionLowerBoundsMemoizedSerializedSize = dataSize;
1027  }
1028  {
1029  int dataSize = 0;
1030  for (int i = 0; i < solutionUpperBounds_.size(); i++) {
1031  dataSize += com.google.protobuf.CodedOutputStream
1032  .computeInt64SizeNoTag(solutionUpperBounds_.getLong(i));
1033  }
1034  size += dataSize;
1035  if (!getSolutionUpperBoundsList().isEmpty()) {
1036  size += 2;
1037  size += com.google.protobuf.CodedOutputStream
1038  .computeInt32SizeNoTag(dataSize);
1039  }
1040  solutionUpperBoundsMemoizedSerializedSize = dataSize;
1041  }
1042  if (!getSolutionInfoBytes().isEmpty()) {
1043  size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, solutionInfo_);
1044  }
1045  for (int i = 0; i < tightenedVariables_.size(); i++) {
1046  size += com.google.protobuf.CodedOutputStream
1047  .computeMessageSize(21, tightenedVariables_.get(i));
1048  }
1049  if (primalIntegral_ != 0D) {
1050  size += com.google.protobuf.CodedOutputStream
1051  .computeDoubleSize(22, primalIntegral_);
1052  }
1053  {
1054  int dataSize = 0;
1055  for (int i = 0; i < sufficientAssumptionsForInfeasibility_.size(); i++) {
1056  dataSize += com.google.protobuf.CodedOutputStream
1057  .computeInt32SizeNoTag(sufficientAssumptionsForInfeasibility_.getInt(i));
1058  }
1059  size += dataSize;
1061  size += 2;
1062  size += com.google.protobuf.CodedOutputStream
1063  .computeInt32SizeNoTag(dataSize);
1064  }
1065  sufficientAssumptionsForInfeasibilityMemoizedSerializedSize = dataSize;
1066  }
1067  if (numRestarts_ != 0L) {
1068  size += com.google.protobuf.CodedOutputStream
1069  .computeInt64Size(24, numRestarts_);
1070  }
1071  if (numLpIterations_ != 0L) {
1072  size += com.google.protobuf.CodedOutputStream
1073  .computeInt64Size(25, numLpIterations_);
1074  }
1075  size += unknownFields.getSerializedSize();
1076  memoizedSize = size;
1077  return size;
1078  }
1079 
1080  @java.lang.Override
1081  public boolean equals(final java.lang.Object obj) {
1082  if (obj == this) {
1083  return true;
1084  }
1085  if (!(obj instanceof com.google.ortools.sat.CpSolverResponse)) {
1086  return super.equals(obj);
1087  }
1089 
1090  if (status_ != other.status_) return false;
1091  if (!getSolutionList()
1092  .equals(other.getSolutionList())) return false;
1093  if (java.lang.Double.doubleToLongBits(getObjectiveValue())
1094  != java.lang.Double.doubleToLongBits(
1095  other.getObjectiveValue())) return false;
1096  if (java.lang.Double.doubleToLongBits(getBestObjectiveBound())
1097  != java.lang.Double.doubleToLongBits(
1098  other.getBestObjectiveBound())) return false;
1100  .equals(other.getSolutionLowerBoundsList())) return false;
1102  .equals(other.getSolutionUpperBoundsList())) return false;
1104  .equals(other.getTightenedVariablesList())) return false;
1106  .equals(other.getSufficientAssumptionsForInfeasibilityList())) return false;
1108  != other.getAllSolutionsWereFound()) return false;
1109  if (getNumBooleans()
1110  != other.getNumBooleans()) return false;
1111  if (getNumConflicts()
1112  != other.getNumConflicts()) return false;
1113  if (getNumBranches()
1114  != other.getNumBranches()) return false;
1116  != other.getNumBinaryPropagations()) return false;
1118  != other.getNumIntegerPropagations()) return false;
1119  if (getNumRestarts()
1120  != other.getNumRestarts()) return false;
1121  if (getNumLpIterations()
1122  != other.getNumLpIterations()) return false;
1123  if (java.lang.Double.doubleToLongBits(getWallTime())
1124  != java.lang.Double.doubleToLongBits(
1125  other.getWallTime())) return false;
1126  if (java.lang.Double.doubleToLongBits(getUserTime())
1127  != java.lang.Double.doubleToLongBits(
1128  other.getUserTime())) return false;
1129  if (java.lang.Double.doubleToLongBits(getDeterministicTime())
1130  != java.lang.Double.doubleToLongBits(
1131  other.getDeterministicTime())) return false;
1132  if (java.lang.Double.doubleToLongBits(getPrimalIntegral())
1133  != java.lang.Double.doubleToLongBits(
1134  other.getPrimalIntegral())) return false;
1135  if (!getSolutionInfo()
1136  .equals(other.getSolutionInfo())) return false;
1137  if (!unknownFields.equals(other.unknownFields)) return false;
1138  return true;
1139  }
1140 
1141  @java.lang.Override
1142  public int hashCode() {
1143  if (memoizedHashCode != 0) {
1144  return memoizedHashCode;
1145  }
1146  int hash = 41;
1147  hash = (19 * hash) + getDescriptor().hashCode();
1148  hash = (37 * hash) + STATUS_FIELD_NUMBER;
1149  hash = (53 * hash) + status_;
1150  if (getSolutionCount() > 0) {
1151  hash = (37 * hash) + SOLUTION_FIELD_NUMBER;
1152  hash = (53 * hash) + getSolutionList().hashCode();
1153  }
1154  hash = (37 * hash) + OBJECTIVE_VALUE_FIELD_NUMBER;
1155  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1156  java.lang.Double.doubleToLongBits(getObjectiveValue()));
1157  hash = (37 * hash) + BEST_OBJECTIVE_BOUND_FIELD_NUMBER;
1158  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1159  java.lang.Double.doubleToLongBits(getBestObjectiveBound()));
1160  if (getSolutionLowerBoundsCount() > 0) {
1161  hash = (37 * hash) + SOLUTION_LOWER_BOUNDS_FIELD_NUMBER;
1162  hash = (53 * hash) + getSolutionLowerBoundsList().hashCode();
1163  }
1164  if (getSolutionUpperBoundsCount() > 0) {
1165  hash = (37 * hash) + SOLUTION_UPPER_BOUNDS_FIELD_NUMBER;
1166  hash = (53 * hash) + getSolutionUpperBoundsList().hashCode();
1167  }
1168  if (getTightenedVariablesCount() > 0) {
1169  hash = (37 * hash) + TIGHTENED_VARIABLES_FIELD_NUMBER;
1170  hash = (53 * hash) + getTightenedVariablesList().hashCode();
1171  }
1174  hash = (53 * hash) + getSufficientAssumptionsForInfeasibilityList().hashCode();
1175  }
1176  hash = (37 * hash) + ALL_SOLUTIONS_WERE_FOUND_FIELD_NUMBER;
1177  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1179  hash = (37 * hash) + NUM_BOOLEANS_FIELD_NUMBER;
1180  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1181  getNumBooleans());
1182  hash = (37 * hash) + NUM_CONFLICTS_FIELD_NUMBER;
1183  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1184  getNumConflicts());
1185  hash = (37 * hash) + NUM_BRANCHES_FIELD_NUMBER;
1186  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1187  getNumBranches());
1188  hash = (37 * hash) + NUM_BINARY_PROPAGATIONS_FIELD_NUMBER;
1189  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1191  hash = (37 * hash) + NUM_INTEGER_PROPAGATIONS_FIELD_NUMBER;
1192  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1194  hash = (37 * hash) + NUM_RESTARTS_FIELD_NUMBER;
1195  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1196  getNumRestarts());
1197  hash = (37 * hash) + NUM_LP_ITERATIONS_FIELD_NUMBER;
1198  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1199  getNumLpIterations());
1200  hash = (37 * hash) + WALL_TIME_FIELD_NUMBER;
1201  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1202  java.lang.Double.doubleToLongBits(getWallTime()));
1203  hash = (37 * hash) + USER_TIME_FIELD_NUMBER;
1204  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1205  java.lang.Double.doubleToLongBits(getUserTime()));
1206  hash = (37 * hash) + DETERMINISTIC_TIME_FIELD_NUMBER;
1207  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1208  java.lang.Double.doubleToLongBits(getDeterministicTime()));
1209  hash = (37 * hash) + PRIMAL_INTEGRAL_FIELD_NUMBER;
1210  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1211  java.lang.Double.doubleToLongBits(getPrimalIntegral()));
1212  hash = (37 * hash) + SOLUTION_INFO_FIELD_NUMBER;
1213  hash = (53 * hash) + getSolutionInfo().hashCode();
1214  hash = (29 * hash) + unknownFields.hashCode();
1215  memoizedHashCode = hash;
1216  return hash;
1217  }
1218 
1220  java.nio.ByteBuffer data)
1221  throws com.google.protobuf.InvalidProtocolBufferException {
1222  return PARSER.parseFrom(data);
1223  }
1225  java.nio.ByteBuffer data,
1226  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1227  throws com.google.protobuf.InvalidProtocolBufferException {
1228  return PARSER.parseFrom(data, extensionRegistry);
1229  }
1231  com.google.protobuf.ByteString data)
1232  throws com.google.protobuf.InvalidProtocolBufferException {
1233  return PARSER.parseFrom(data);
1234  }
1236  com.google.protobuf.ByteString data,
1237  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1238  throws com.google.protobuf.InvalidProtocolBufferException {
1239  return PARSER.parseFrom(data, extensionRegistry);
1240  }
1241  public static com.google.ortools.sat.CpSolverResponse parseFrom(byte[] data)
1242  throws com.google.protobuf.InvalidProtocolBufferException {
1243  return PARSER.parseFrom(data);
1244  }
1246  byte[] data,
1247  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1248  throws com.google.protobuf.InvalidProtocolBufferException {
1249  return PARSER.parseFrom(data, extensionRegistry);
1250  }
1251  public static com.google.ortools.sat.CpSolverResponse parseFrom(java.io.InputStream input)
1252  throws java.io.IOException {
1253  return com.google.protobuf.GeneratedMessageV3
1254  .parseWithIOException(PARSER, input);
1255  }
1257  java.io.InputStream input,
1258  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1259  throws java.io.IOException {
1260  return com.google.protobuf.GeneratedMessageV3
1261  .parseWithIOException(PARSER, input, extensionRegistry);
1262  }
1263  public static com.google.ortools.sat.CpSolverResponse parseDelimitedFrom(java.io.InputStream input)
1264  throws java.io.IOException {
1265  return com.google.protobuf.GeneratedMessageV3
1266  .parseDelimitedWithIOException(PARSER, input);
1267  }
1269  java.io.InputStream input,
1270  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1271  throws java.io.IOException {
1272  return com.google.protobuf.GeneratedMessageV3
1273  .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
1274  }
1276  com.google.protobuf.CodedInputStream input)
1277  throws java.io.IOException {
1278  return com.google.protobuf.GeneratedMessageV3
1279  .parseWithIOException(PARSER, input);
1280  }
1282  com.google.protobuf.CodedInputStream input,
1283  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1284  throws java.io.IOException {
1285  return com.google.protobuf.GeneratedMessageV3
1286  .parseWithIOException(PARSER, input, extensionRegistry);
1287  }
1288 
1289  @java.lang.Override
1290  public Builder newBuilderForType() { return newBuilder(); }
1291  public static Builder newBuilder() {
1292  return DEFAULT_INSTANCE.toBuilder();
1293  }
1295  return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1296  }
1297  @java.lang.Override
1298  public Builder toBuilder() {
1299  return this == DEFAULT_INSTANCE
1300  ? new Builder() : new Builder().mergeFrom(this);
1301  }
1302 
1303  @java.lang.Override
1305  com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1306  Builder builder = new Builder(parent);
1307  return builder;
1308  }
1319  public static final class Builder extends
1320  com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
1321  // @@protoc_insertion_point(builder_implements:operations_research.sat.CpSolverResponse)
1322  com.google.ortools.sat.CpSolverResponseOrBuilder {
1323  public static final com.google.protobuf.Descriptors.Descriptor
1325  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_descriptor;
1326  }
1327 
1328  @java.lang.Override
1329  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
1331  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_fieldAccessorTable
1332  .ensureFieldAccessorsInitialized(
1334  }
1335 
1336  // Construct using com.google.ortools.sat.CpSolverResponse.newBuilder()
1337  private Builder() {
1338  maybeForceBuilderInitialization();
1339  }
1340 
1341  private Builder(
1342  com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1343  super(parent);
1344  maybeForceBuilderInitialization();
1345  }
1346  private void maybeForceBuilderInitialization() {
1347  if (com.google.protobuf.GeneratedMessageV3
1348  .alwaysUseFieldBuilders) {
1349  getTightenedVariablesFieldBuilder();
1350  }
1351  }
1352  @java.lang.Override
1353  public Builder clear() {
1354  super.clear();
1355  status_ = 0;
1356 
1357  solution_ = emptyLongList();
1358  bitField0_ = (bitField0_ & ~0x00000001);
1359  objectiveValue_ = 0D;
1360 
1361  bestObjectiveBound_ = 0D;
1362 
1363  solutionLowerBounds_ = emptyLongList();
1364  bitField0_ = (bitField0_ & ~0x00000002);
1365  solutionUpperBounds_ = emptyLongList();
1366  bitField0_ = (bitField0_ & ~0x00000004);
1367  if (tightenedVariablesBuilder_ == null) {
1368  tightenedVariables_ = java.util.Collections.emptyList();
1369  bitField0_ = (bitField0_ & ~0x00000008);
1370  } else {
1371  tightenedVariablesBuilder_.clear();
1372  }
1373  sufficientAssumptionsForInfeasibility_ = emptyIntList();
1374  bitField0_ = (bitField0_ & ~0x00000010);
1375  allSolutionsWereFound_ = false;
1376 
1377  numBooleans_ = 0L;
1378 
1379  numConflicts_ = 0L;
1380 
1381  numBranches_ = 0L;
1382 
1383  numBinaryPropagations_ = 0L;
1384 
1385  numIntegerPropagations_ = 0L;
1386 
1387  numRestarts_ = 0L;
1388 
1389  numLpIterations_ = 0L;
1390 
1391  wallTime_ = 0D;
1392 
1393  userTime_ = 0D;
1394 
1395  deterministicTime_ = 0D;
1396 
1397  primalIntegral_ = 0D;
1398 
1399  solutionInfo_ = "";
1400 
1401  return this;
1402  }
1403 
1404  @java.lang.Override
1405  public com.google.protobuf.Descriptors.Descriptor
1407  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_descriptor;
1408  }
1409 
1410  @java.lang.Override
1413  }
1414 
1415  @java.lang.Override
1418  if (!result.isInitialized()) {
1419  throw newUninitializedMessageException(result);
1420  }
1421  return result;
1422  }
1423 
1424  @java.lang.Override
1427  int from_bitField0_ = bitField0_;
1428  result.status_ = status_;
1429  if (((bitField0_ & 0x00000001) != 0)) {
1430  solution_.makeImmutable();
1431  bitField0_ = (bitField0_ & ~0x00000001);
1432  }
1433  result.solution_ = solution_;
1434  result.objectiveValue_ = objectiveValue_;
1435  result.bestObjectiveBound_ = bestObjectiveBound_;
1436  if (((bitField0_ & 0x00000002) != 0)) {
1437  solutionLowerBounds_.makeImmutable();
1438  bitField0_ = (bitField0_ & ~0x00000002);
1439  }
1440  result.solutionLowerBounds_ = solutionLowerBounds_;
1441  if (((bitField0_ & 0x00000004) != 0)) {
1442  solutionUpperBounds_.makeImmutable();
1443  bitField0_ = (bitField0_ & ~0x00000004);
1444  }
1445  result.solutionUpperBounds_ = solutionUpperBounds_;
1446  if (tightenedVariablesBuilder_ == null) {
1447  if (((bitField0_ & 0x00000008) != 0)) {
1448  tightenedVariables_ = java.util.Collections.unmodifiableList(tightenedVariables_);
1449  bitField0_ = (bitField0_ & ~0x00000008);
1450  }
1451  result.tightenedVariables_ = tightenedVariables_;
1452  } else {
1453  result.tightenedVariables_ = tightenedVariablesBuilder_.build();
1454  }
1455  if (((bitField0_ & 0x00000010) != 0)) {
1456  sufficientAssumptionsForInfeasibility_.makeImmutable();
1457  bitField0_ = (bitField0_ & ~0x00000010);
1458  }
1459  result.sufficientAssumptionsForInfeasibility_ = sufficientAssumptionsForInfeasibility_;
1460  result.allSolutionsWereFound_ = allSolutionsWereFound_;
1461  result.numBooleans_ = numBooleans_;
1462  result.numConflicts_ = numConflicts_;
1463  result.numBranches_ = numBranches_;
1464  result.numBinaryPropagations_ = numBinaryPropagations_;
1465  result.numIntegerPropagations_ = numIntegerPropagations_;
1466  result.numRestarts_ = numRestarts_;
1467  result.numLpIterations_ = numLpIterations_;
1468  result.wallTime_ = wallTime_;
1469  result.userTime_ = userTime_;
1470  result.deterministicTime_ = deterministicTime_;
1471  result.primalIntegral_ = primalIntegral_;
1472  result.solutionInfo_ = solutionInfo_;
1473  onBuilt();
1474  return result;
1475  }
1476 
1477  @java.lang.Override
1478  public Builder clone() {
1479  return super.clone();
1480  }
1481  @java.lang.Override
1483  com.google.protobuf.Descriptors.FieldDescriptor field,
1484  java.lang.Object value) {
1485  return super.setField(field, value);
1486  }
1487  @java.lang.Override
1489  com.google.protobuf.Descriptors.FieldDescriptor field) {
1490  return super.clearField(field);
1491  }
1492  @java.lang.Override
1494  com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1495  return super.clearOneof(oneof);
1496  }
1497  @java.lang.Override
1499  com.google.protobuf.Descriptors.FieldDescriptor field,
1500  int index, java.lang.Object value) {
1501  return super.setRepeatedField(field, index, value);
1502  }
1503  @java.lang.Override
1505  com.google.protobuf.Descriptors.FieldDescriptor field,
1506  java.lang.Object value) {
1507  return super.addRepeatedField(field, value);
1508  }
1509  @java.lang.Override
1510  public Builder mergeFrom(com.google.protobuf.Message other) {
1511  if (other instanceof com.google.ortools.sat.CpSolverResponse) {
1513  } else {
1514  super.mergeFrom(other);
1515  return this;
1516  }
1517  }
1518 
1520  if (other == com.google.ortools.sat.CpSolverResponse.getDefaultInstance()) return this;
1521  if (other.status_ != 0) {
1522  setStatusValue(other.getStatusValue());
1523  }
1524  if (!other.solution_.isEmpty()) {
1525  if (solution_.isEmpty()) {
1526  solution_ = other.solution_;
1527  bitField0_ = (bitField0_ & ~0x00000001);
1528  } else {
1529  ensureSolutionIsMutable();
1530  solution_.addAll(other.solution_);
1531  }
1532  onChanged();
1533  }
1534  if (other.getObjectiveValue() != 0D) {
1535  setObjectiveValue(other.getObjectiveValue());
1536  }
1537  if (other.getBestObjectiveBound() != 0D) {
1538  setBestObjectiveBound(other.getBestObjectiveBound());
1539  }
1540  if (!other.solutionLowerBounds_.isEmpty()) {
1541  if (solutionLowerBounds_.isEmpty()) {
1542  solutionLowerBounds_ = other.solutionLowerBounds_;
1543  bitField0_ = (bitField0_ & ~0x00000002);
1544  } else {
1545  ensureSolutionLowerBoundsIsMutable();
1546  solutionLowerBounds_.addAll(other.solutionLowerBounds_);
1547  }
1548  onChanged();
1549  }
1550  if (!other.solutionUpperBounds_.isEmpty()) {
1551  if (solutionUpperBounds_.isEmpty()) {
1552  solutionUpperBounds_ = other.solutionUpperBounds_;
1553  bitField0_ = (bitField0_ & ~0x00000004);
1554  } else {
1555  ensureSolutionUpperBoundsIsMutable();
1556  solutionUpperBounds_.addAll(other.solutionUpperBounds_);
1557  }
1558  onChanged();
1559  }
1560  if (tightenedVariablesBuilder_ == null) {
1561  if (!other.tightenedVariables_.isEmpty()) {
1562  if (tightenedVariables_.isEmpty()) {
1563  tightenedVariables_ = other.tightenedVariables_;
1564  bitField0_ = (bitField0_ & ~0x00000008);
1565  } else {
1566  ensureTightenedVariablesIsMutable();
1567  tightenedVariables_.addAll(other.tightenedVariables_);
1568  }
1569  onChanged();
1570  }
1571  } else {
1572  if (!other.tightenedVariables_.isEmpty()) {
1573  if (tightenedVariablesBuilder_.isEmpty()) {
1574  tightenedVariablesBuilder_.dispose();
1575  tightenedVariablesBuilder_ = null;
1576  tightenedVariables_ = other.tightenedVariables_;
1577  bitField0_ = (bitField0_ & ~0x00000008);
1578  tightenedVariablesBuilder_ =
1579  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
1580  getTightenedVariablesFieldBuilder() : null;
1581  } else {
1582  tightenedVariablesBuilder_.addAllMessages(other.tightenedVariables_);
1583  }
1584  }
1585  }
1586  if (!other.sufficientAssumptionsForInfeasibility_.isEmpty()) {
1587  if (sufficientAssumptionsForInfeasibility_.isEmpty()) {
1588  sufficientAssumptionsForInfeasibility_ = other.sufficientAssumptionsForInfeasibility_;
1589  bitField0_ = (bitField0_ & ~0x00000010);
1590  } else {
1591  ensureSufficientAssumptionsForInfeasibilityIsMutable();
1592  sufficientAssumptionsForInfeasibility_.addAll(other.sufficientAssumptionsForInfeasibility_);
1593  }
1594  onChanged();
1595  }
1596  if (other.getAllSolutionsWereFound() != false) {
1597  setAllSolutionsWereFound(other.getAllSolutionsWereFound());
1598  }
1599  if (other.getNumBooleans() != 0L) {
1600  setNumBooleans(other.getNumBooleans());
1601  }
1602  if (other.getNumConflicts() != 0L) {
1603  setNumConflicts(other.getNumConflicts());
1604  }
1605  if (other.getNumBranches() != 0L) {
1606  setNumBranches(other.getNumBranches());
1607  }
1608  if (other.getNumBinaryPropagations() != 0L) {
1609  setNumBinaryPropagations(other.getNumBinaryPropagations());
1610  }
1611  if (other.getNumIntegerPropagations() != 0L) {
1612  setNumIntegerPropagations(other.getNumIntegerPropagations());
1613  }
1614  if (other.getNumRestarts() != 0L) {
1615  setNumRestarts(other.getNumRestarts());
1616  }
1617  if (other.getNumLpIterations() != 0L) {
1618  setNumLpIterations(other.getNumLpIterations());
1619  }
1620  if (other.getWallTime() != 0D) {
1621  setWallTime(other.getWallTime());
1622  }
1623  if (other.getUserTime() != 0D) {
1624  setUserTime(other.getUserTime());
1625  }
1626  if (other.getDeterministicTime() != 0D) {
1627  setDeterministicTime(other.getDeterministicTime());
1628  }
1629  if (other.getPrimalIntegral() != 0D) {
1630  setPrimalIntegral(other.getPrimalIntegral());
1631  }
1632  if (!other.getSolutionInfo().isEmpty()) {
1633  solutionInfo_ = other.solutionInfo_;
1634  onChanged();
1635  }
1636  this.mergeUnknownFields(other.unknownFields);
1637  onChanged();
1638  return this;
1639  }
1640 
1641  @java.lang.Override
1642  public final boolean isInitialized() {
1643  return true;
1644  }
1645 
1646  @java.lang.Override
1648  com.google.protobuf.CodedInputStream input,
1649  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1650  throws java.io.IOException {
1651  com.google.ortools.sat.CpSolverResponse parsedMessage = null;
1652  try {
1653  parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
1654  } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1655  parsedMessage = (com.google.ortools.sat.CpSolverResponse) e.getUnfinishedMessage();
1656  throw e.unwrapIOException();
1657  } finally {
1658  if (parsedMessage != null) {
1659  mergeFrom(parsedMessage);
1660  }
1661  }
1662  return this;
1663  }
1664  private int bitField0_;
1665 
1666  private int status_ = 0;
1675  @java.lang.Override public int getStatusValue() {
1676  return status_;
1677  }
1687  public Builder setStatusValue(int value) {
1688 
1689  status_ = value;
1690  onChanged();
1691  return this;
1692  }
1701  @java.lang.Override
1703  @SuppressWarnings("deprecation")
1705  return result == null ? com.google.ortools.sat.CpSolverStatus.UNRECOGNIZED : result;
1706  }
1717  if (value == null) {
1718  throw new NullPointerException();
1719  }
1720 
1721  status_ = value.getNumber();
1722  onChanged();
1723  return this;
1724  }
1734 
1735  status_ = 0;
1736  onChanged();
1737  return this;
1738  }
1739 
1740  private com.google.protobuf.Internal.LongList solution_ = emptyLongList();
1741  private void ensureSolutionIsMutable() {
1742  if (!((bitField0_ & 0x00000001) != 0)) {
1743  solution_ = mutableCopy(solution_);
1744  bitField0_ |= 0x00000001;
1745  }
1746  }
1758  public java.util.List<java.lang.Long>
1760  return ((bitField0_ & 0x00000001) != 0) ?
1761  java.util.Collections.unmodifiableList(solution_) : solution_;
1762  }
1774  public int getSolutionCount() {
1775  return solution_.size();
1776  }
1789  public long getSolution(int index) {
1790  return solution_.getLong(index);
1791  }
1806  int index, long value) {
1807  ensureSolutionIsMutable();
1808  solution_.setLong(index, value);
1809  onChanged();
1810  return this;
1811  }
1824  public Builder addSolution(long value) {
1825  ensureSolutionIsMutable();
1826  solution_.addLong(value);
1827  onChanged();
1828  return this;
1829  }
1843  java.lang.Iterable<? extends java.lang.Long> values) {
1844  ensureSolutionIsMutable();
1845  com.google.protobuf.AbstractMessageLite.Builder.addAll(
1846  values, solution_);
1847  onChanged();
1848  return this;
1849  }
1862  solution_ = emptyLongList();
1863  bitField0_ = (bitField0_ & ~0x00000001);
1864  onChanged();
1865  return this;
1866  }
1867 
1868  private double objectiveValue_ ;
1880  @java.lang.Override
1881  public double getObjectiveValue() {
1882  return objectiveValue_;
1883  }
1896  public Builder setObjectiveValue(double value) {
1897 
1898  objectiveValue_ = value;
1899  onChanged();
1900  return this;
1901  }
1914 
1915  objectiveValue_ = 0D;
1916  onChanged();
1917  return this;
1918  }
1919 
1920  private double bestObjectiveBound_ ;
1931  @java.lang.Override
1932  public double getBestObjectiveBound() {
1933  return bestObjectiveBound_;
1934  }
1946  public Builder setBestObjectiveBound(double value) {
1947 
1948  bestObjectiveBound_ = value;
1949  onChanged();
1950  return this;
1951  }
1963 
1964  bestObjectiveBound_ = 0D;
1965  onChanged();
1966  return this;
1967  }
1968 
1969  private com.google.protobuf.Internal.LongList solutionLowerBounds_ = emptyLongList();
1970  private void ensureSolutionLowerBoundsIsMutable() {
1971  if (!((bitField0_ & 0x00000002) != 0)) {
1972  solutionLowerBounds_ = mutableCopy(solutionLowerBounds_);
1973  bitField0_ |= 0x00000002;
1974  }
1975  }
1989  public java.util.List<java.lang.Long>
1991  return ((bitField0_ & 0x00000002) != 0) ?
1992  java.util.Collections.unmodifiableList(solutionLowerBounds_) : solutionLowerBounds_;
1993  }
2008  return solutionLowerBounds_.size();
2009  }
2024  public long getSolutionLowerBounds(int index) {
2025  return solutionLowerBounds_.getLong(index);
2026  }
2043  int index, long value) {
2044  ensureSolutionLowerBoundsIsMutable();
2045  solutionLowerBounds_.setLong(index, value);
2046  onChanged();
2047  return this;
2048  }
2063  public Builder addSolutionLowerBounds(long value) {
2064  ensureSolutionLowerBoundsIsMutable();
2065  solutionLowerBounds_.addLong(value);
2066  onChanged();
2067  return this;
2068  }
2084  java.lang.Iterable<? extends java.lang.Long> values) {
2085  ensureSolutionLowerBoundsIsMutable();
2086  com.google.protobuf.AbstractMessageLite.Builder.addAll(
2087  values, solutionLowerBounds_);
2088  onChanged();
2089  return this;
2090  }
2105  solutionLowerBounds_ = emptyLongList();
2106  bitField0_ = (bitField0_ & ~0x00000002);
2107  onChanged();
2108  return this;
2109  }
2110 
2111  private com.google.protobuf.Internal.LongList solutionUpperBounds_ = emptyLongList();
2112  private void ensureSolutionUpperBoundsIsMutable() {
2113  if (!((bitField0_ & 0x00000004) != 0)) {
2114  solutionUpperBounds_ = mutableCopy(solutionUpperBounds_);
2115  bitField0_ |= 0x00000004;
2116  }
2117  }
2122  public java.util.List<java.lang.Long>
2124  return ((bitField0_ & 0x00000004) != 0) ?
2125  java.util.Collections.unmodifiableList(solutionUpperBounds_) : solutionUpperBounds_;
2126  }
2132  return solutionUpperBounds_.size();
2133  }
2139  public long getSolutionUpperBounds(int index) {
2140  return solutionUpperBounds_.getLong(index);
2141  }
2149  int index, long value) {
2150  ensureSolutionUpperBoundsIsMutable();
2151  solutionUpperBounds_.setLong(index, value);
2152  onChanged();
2153  return this;
2154  }
2160  public Builder addSolutionUpperBounds(long value) {
2161  ensureSolutionUpperBoundsIsMutable();
2162  solutionUpperBounds_.addLong(value);
2163  onChanged();
2164  return this;
2165  }
2172  java.lang.Iterable<? extends java.lang.Long> values) {
2173  ensureSolutionUpperBoundsIsMutable();
2174  com.google.protobuf.AbstractMessageLite.Builder.addAll(
2175  values, solutionUpperBounds_);
2176  onChanged();
2177  return this;
2178  }
2184  solutionUpperBounds_ = emptyLongList();
2185  bitField0_ = (bitField0_ & ~0x00000004);
2186  onChanged();
2187  return this;
2188  }
2189 
2190  private java.util.List<com.google.ortools.sat.IntegerVariableProto> tightenedVariables_ =
2191  java.util.Collections.emptyList();
2192  private void ensureTightenedVariablesIsMutable() {
2193  if (!((bitField0_ & 0x00000008) != 0)) {
2194  tightenedVariables_ = new java.util.ArrayList<com.google.ortools.sat.IntegerVariableProto>(tightenedVariables_);
2195  bitField0_ |= 0x00000008;
2196  }
2197  }
2198 
2199  private com.google.protobuf.RepeatedFieldBuilderV3<
2201 
2219  if (tightenedVariablesBuilder_ == null) {
2220  return java.util.Collections.unmodifiableList(tightenedVariables_);
2221  } else {
2222  return tightenedVariablesBuilder_.getMessageList();
2223  }
2224  }
2242  if (tightenedVariablesBuilder_ == null) {
2243  return tightenedVariables_.size();
2244  } else {
2245  return tightenedVariablesBuilder_.getCount();
2246  }
2247  }
2265  if (tightenedVariablesBuilder_ == null) {
2266  return tightenedVariables_.get(index);
2267  } else {
2268  return tightenedVariablesBuilder_.getMessage(index);
2269  }
2270  }
2288  int index, com.google.ortools.sat.IntegerVariableProto value) {
2289  if (tightenedVariablesBuilder_ == null) {
2290  if (value == null) {
2291  throw new NullPointerException();
2292  }
2293  ensureTightenedVariablesIsMutable();
2294  tightenedVariables_.set(index, value);
2295  onChanged();
2296  } else {
2297  tightenedVariablesBuilder_.setMessage(index, value);
2298  }
2299  return this;
2300  }
2318  int index, com.google.ortools.sat.IntegerVariableProto.Builder builderForValue) {
2319  if (tightenedVariablesBuilder_ == null) {
2320  ensureTightenedVariablesIsMutable();
2321  tightenedVariables_.set(index, builderForValue.build());
2322  onChanged();
2323  } else {
2324  tightenedVariablesBuilder_.setMessage(index, builderForValue.build());
2325  }
2326  return this;
2327  }
2345  if (tightenedVariablesBuilder_ == null) {
2346  if (value == null) {
2347  throw new NullPointerException();
2348  }
2349  ensureTightenedVariablesIsMutable();
2350  tightenedVariables_.add(value);
2351  onChanged();
2352  } else {
2353  tightenedVariablesBuilder_.addMessage(value);
2354  }
2355  return this;
2356  }
2374  int index, com.google.ortools.sat.IntegerVariableProto value) {
2375  if (tightenedVariablesBuilder_ == null) {
2376  if (value == null) {
2377  throw new NullPointerException();
2378  }
2379  ensureTightenedVariablesIsMutable();
2380  tightenedVariables_.add(index, value);
2381  onChanged();
2382  } else {
2383  tightenedVariablesBuilder_.addMessage(index, value);
2384  }
2385  return this;
2386  }
2404  com.google.ortools.sat.IntegerVariableProto.Builder builderForValue) {
2405  if (tightenedVariablesBuilder_ == null) {
2406  ensureTightenedVariablesIsMutable();
2407  tightenedVariables_.add(builderForValue.build());
2408  onChanged();
2409  } else {
2410  tightenedVariablesBuilder_.addMessage(builderForValue.build());
2411  }
2412  return this;
2413  }
2431  int index, com.google.ortools.sat.IntegerVariableProto.Builder builderForValue) {
2432  if (tightenedVariablesBuilder_ == null) {
2433  ensureTightenedVariablesIsMutable();
2434  tightenedVariables_.add(index, builderForValue.build());
2435  onChanged();
2436  } else {
2437  tightenedVariablesBuilder_.addMessage(index, builderForValue.build());
2438  }
2439  return this;
2440  }
2458  java.lang.Iterable<? extends com.google.ortools.sat.IntegerVariableProto> values) {
2459  if (tightenedVariablesBuilder_ == null) {
2460  ensureTightenedVariablesIsMutable();
2461  com.google.protobuf.AbstractMessageLite.Builder.addAll(
2462  values, tightenedVariables_);
2463  onChanged();
2464  } else {
2465  tightenedVariablesBuilder_.addAllMessages(values);
2466  }
2467  return this;
2468  }
2486  if (tightenedVariablesBuilder_ == null) {
2487  tightenedVariables_ = java.util.Collections.emptyList();
2488  bitField0_ = (bitField0_ & ~0x00000008);
2489  onChanged();
2490  } else {
2491  tightenedVariablesBuilder_.clear();
2492  }
2493  return this;
2494  }
2511  public Builder removeTightenedVariables(int index) {
2512  if (tightenedVariablesBuilder_ == null) {
2513  ensureTightenedVariablesIsMutable();
2514  tightenedVariables_.remove(index);
2515  onChanged();
2516  } else {
2517  tightenedVariablesBuilder_.remove(index);
2518  }
2519  return this;
2520  }
2538  int index) {
2539  return getTightenedVariablesFieldBuilder().getBuilder(index);
2540  }
2558  int index) {
2559  if (tightenedVariablesBuilder_ == null) {
2560  return tightenedVariables_.get(index); } else {
2561  return tightenedVariablesBuilder_.getMessageOrBuilder(index);
2562  }
2563  }
2580  public java.util.List<? extends com.google.ortools.sat.IntegerVariableProtoOrBuilder>
2582  if (tightenedVariablesBuilder_ != null) {
2583  return tightenedVariablesBuilder_.getMessageOrBuilderList();
2584  } else {
2585  return java.util.Collections.unmodifiableList(tightenedVariables_);
2586  }
2587  }
2605  return getTightenedVariablesFieldBuilder().addBuilder(
2607  }
2625  int index) {
2626  return getTightenedVariablesFieldBuilder().addBuilder(
2628  }
2645  public java.util.List<com.google.ortools.sat.IntegerVariableProto.Builder>
2647  return getTightenedVariablesFieldBuilder().getBuilderList();
2648  }
2649  private com.google.protobuf.RepeatedFieldBuilderV3<
2651  getTightenedVariablesFieldBuilder() {
2652  if (tightenedVariablesBuilder_ == null) {
2653  tightenedVariablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
2655  tightenedVariables_,
2656  ((bitField0_ & 0x00000008) != 0),
2657  getParentForChildren(),
2658  isClean());
2659  tightenedVariables_ = null;
2660  }
2661  return tightenedVariablesBuilder_;
2662  }
2663 
2664  private com.google.protobuf.Internal.IntList sufficientAssumptionsForInfeasibility_ = emptyIntList();
2665  private void ensureSufficientAssumptionsForInfeasibilityIsMutable() {
2666  if (!((bitField0_ & 0x00000010) != 0)) {
2667  sufficientAssumptionsForInfeasibility_ = mutableCopy(sufficientAssumptionsForInfeasibility_);
2668  bitField0_ |= 0x00000010;
2669  }
2670  }
2690  public java.util.List<java.lang.Integer>
2692  return ((bitField0_ & 0x00000010) != 0) ?
2693  java.util.Collections.unmodifiableList(sufficientAssumptionsForInfeasibility_) : sufficientAssumptionsForInfeasibility_;
2694  }
2715  return sufficientAssumptionsForInfeasibility_.size();
2716  }
2738  return sufficientAssumptionsForInfeasibility_.getInt(index);
2739  }
2762  int index, int value) {
2763  ensureSufficientAssumptionsForInfeasibilityIsMutable();
2764  sufficientAssumptionsForInfeasibility_.setInt(index, value);
2765  onChanged();
2766  return this;
2767  }
2789  ensureSufficientAssumptionsForInfeasibilityIsMutable();
2790  sufficientAssumptionsForInfeasibility_.addInt(value);
2791  onChanged();
2792  return this;
2793  }
2815  java.lang.Iterable<? extends java.lang.Integer> values) {
2816  ensureSufficientAssumptionsForInfeasibilityIsMutable();
2817  com.google.protobuf.AbstractMessageLite.Builder.addAll(
2818  values, sufficientAssumptionsForInfeasibility_);
2819  onChanged();
2820  return this;
2821  }
2842  sufficientAssumptionsForInfeasibility_ = emptyIntList();
2843  bitField0_ = (bitField0_ & ~0x00000010);
2844  onChanged();
2845  return this;
2846  }
2847 
2848  private boolean allSolutionsWereFound_ ;
2860  @java.lang.Override
2861  public boolean getAllSolutionsWereFound() {
2862  return allSolutionsWereFound_;
2863  }
2876  public Builder setAllSolutionsWereFound(boolean value) {
2877 
2878  allSolutionsWereFound_ = value;
2879  onChanged();
2880  return this;
2881  }
2894 
2895  allSolutionsWereFound_ = false;
2896  onChanged();
2897  return this;
2898  }
2899 
2900  private long numBooleans_ ;
2909  @java.lang.Override
2910  public long getNumBooleans() {
2911  return numBooleans_;
2912  }
2922  public Builder setNumBooleans(long value) {
2923 
2924  numBooleans_ = value;
2925  onChanged();
2926  return this;
2927  }
2937 
2938  numBooleans_ = 0L;
2939  onChanged();
2940  return this;
2941  }
2942 
2943  private long numConflicts_ ;
2948  @java.lang.Override
2949  public long getNumConflicts() {
2950  return numConflicts_;
2951  }
2957  public Builder setNumConflicts(long value) {
2958 
2959  numConflicts_ = value;
2960  onChanged();
2961  return this;
2962  }
2968 
2969  numConflicts_ = 0L;
2970  onChanged();
2971  return this;
2972  }
2973 
2974  private long numBranches_ ;
2979  @java.lang.Override
2980  public long getNumBranches() {
2981  return numBranches_;
2982  }
2988  public Builder setNumBranches(long value) {
2989 
2990  numBranches_ = value;
2991  onChanged();
2992  return this;
2993  }
2999 
3000  numBranches_ = 0L;
3001  onChanged();
3002  return this;
3003  }
3004 
3005  private long numBinaryPropagations_ ;
3010  @java.lang.Override
3012  return numBinaryPropagations_;
3013  }
3019  public Builder setNumBinaryPropagations(long value) {
3020 
3021  numBinaryPropagations_ = value;
3022  onChanged();
3023  return this;
3024  }
3030 
3031  numBinaryPropagations_ = 0L;
3032  onChanged();
3033  return this;
3034  }
3035 
3036  private long numIntegerPropagations_ ;
3041  @java.lang.Override
3043  return numIntegerPropagations_;
3044  }
3050  public Builder setNumIntegerPropagations(long value) {
3051 
3052  numIntegerPropagations_ = value;
3053  onChanged();
3054  return this;
3055  }
3061 
3062  numIntegerPropagations_ = 0L;
3063  onChanged();
3064  return this;
3065  }
3066 
3067  private long numRestarts_ ;
3072  @java.lang.Override
3073  public long getNumRestarts() {
3074  return numRestarts_;
3075  }
3081  public Builder setNumRestarts(long value) {
3082 
3083  numRestarts_ = value;
3084  onChanged();
3085  return this;
3086  }
3092 
3093  numRestarts_ = 0L;
3094  onChanged();
3095  return this;
3096  }
3097 
3098  private long numLpIterations_ ;
3103  @java.lang.Override
3104  public long getNumLpIterations() {
3105  return numLpIterations_;
3106  }
3112  public Builder setNumLpIterations(long value) {
3113 
3114  numLpIterations_ = value;
3115  onChanged();
3116  return this;
3117  }
3123 
3124  numLpIterations_ = 0L;
3125  onChanged();
3126  return this;
3127  }
3128 
3129  private double wallTime_ ;
3134  @java.lang.Override
3135  public double getWallTime() {
3136  return wallTime_;
3137  }
3143  public Builder setWallTime(double value) {
3144 
3145  wallTime_ = value;
3146  onChanged();
3147  return this;
3148  }
3154 
3155  wallTime_ = 0D;
3156  onChanged();
3157  return this;
3158  }
3159 
3160  private double userTime_ ;
3165  @java.lang.Override
3166  public double getUserTime() {
3167  return userTime_;
3168  }
3174  public Builder setUserTime(double value) {
3175 
3176  userTime_ = value;
3177  onChanged();
3178  return this;
3179  }
3185 
3186  userTime_ = 0D;
3187  onChanged();
3188  return this;
3189  }
3190 
3191  private double deterministicTime_ ;
3196  @java.lang.Override
3197  public double getDeterministicTime() {
3198  return deterministicTime_;
3199  }
3205  public Builder setDeterministicTime(double value) {
3206 
3207  deterministicTime_ = value;
3208  onChanged();
3209  return this;
3210  }
3216 
3217  deterministicTime_ = 0D;
3218  onChanged();
3219  return this;
3220  }
3221 
3222  private double primalIntegral_ ;
3227  @java.lang.Override
3228  public double getPrimalIntegral() {
3229  return primalIntegral_;
3230  }
3236  public Builder setPrimalIntegral(double value) {
3237 
3238  primalIntegral_ = value;
3239  onChanged();
3240  return this;
3241  }
3247 
3248  primalIntegral_ = 0D;
3249  onChanged();
3250  return this;
3251  }
3252 
3253  private java.lang.Object solutionInfo_ = "";
3262  public java.lang.String getSolutionInfo() {
3263  java.lang.Object ref = solutionInfo_;
3264  if (!(ref instanceof java.lang.String)) {
3265  com.google.protobuf.ByteString bs =
3266  (com.google.protobuf.ByteString) ref;
3267  java.lang.String s = bs.toStringUtf8();
3268  solutionInfo_ = s;
3269  return s;
3270  } else {
3271  return (java.lang.String) ref;
3272  }
3273  }
3282  public com.google.protobuf.ByteString
3284  java.lang.Object ref = solutionInfo_;
3285  if (ref instanceof String) {
3286  com.google.protobuf.ByteString b =
3287  com.google.protobuf.ByteString.copyFromUtf8(
3288  (java.lang.String) ref);
3289  solutionInfo_ = b;
3290  return b;
3291  } else {
3292  return (com.google.protobuf.ByteString) ref;
3293  }
3294  }
3305  java.lang.String value) {
3306  if (value == null) {
3307  throw new NullPointerException();
3308  }
3309 
3310  solutionInfo_ = value;
3311  onChanged();
3312  return this;
3313  }
3323 
3324  solutionInfo_ = getDefaultInstance().getSolutionInfo();
3325  onChanged();
3326  return this;
3327  }
3338  com.google.protobuf.ByteString value) {
3339  if (value == null) {
3340  throw new NullPointerException();
3341  }
3342  checkByteStringIsUtf8(value);
3343 
3344  solutionInfo_ = value;
3345  onChanged();
3346  return this;
3347  }
3348  @java.lang.Override
3350  final com.google.protobuf.UnknownFieldSet unknownFields) {
3351  return super.setUnknownFields(unknownFields);
3352  }
3353 
3354  @java.lang.Override
3356  final com.google.protobuf.UnknownFieldSet unknownFields) {
3357  return super.mergeUnknownFields(unknownFields);
3358  }
3359 
3360 
3361  // @@protoc_insertion_point(builder_scope:operations_research.sat.CpSolverResponse)
3362  }
3363 
3364  // @@protoc_insertion_point(class_scope:operations_research.sat.CpSolverResponse)
3365  private static final com.google.ortools.sat.CpSolverResponse DEFAULT_INSTANCE;
3366  static {
3367  DEFAULT_INSTANCE = new com.google.ortools.sat.CpSolverResponse();
3368  }
3369 
3371  return DEFAULT_INSTANCE;
3372  }
3373 
3374  private static final com.google.protobuf.Parser<CpSolverResponse>
3375  PARSER = new com.google.protobuf.AbstractParser<CpSolverResponse>() {
3376  @java.lang.Override
3377  public CpSolverResponse parsePartialFrom(
3378  com.google.protobuf.CodedInputStream input,
3379  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3380  throws com.google.protobuf.InvalidProtocolBufferException {
3381  return new CpSolverResponse(input, extensionRegistry);
3382  }
3383  };
3384 
3385  public static com.google.protobuf.Parser<CpSolverResponse> parser() {
3386  return PARSER;
3387  }
3388 
3389  @java.lang.Override
3390  public com.google.protobuf.Parser<CpSolverResponse> getParserForType() {
3391  return PARSER;
3392  }
3393 
3394  @java.lang.Override
3396  return DEFAULT_INSTANCE;
3397  }
3398 
3399 }
3400 
com.google.ortools.sat.IntegerVariableProto.Builder getTightenedVariablesBuilder(int index)
static Builder newBuilder(com.google.ortools.sat.CpSolverResponse prototype)
.lang.Override double getDeterministicTime()
double deterministic_time = 17;
.lang.Override long getNumIntegerPropagations()
int64 num_integer_propagations = 14;
Builder setWallTime(double value)
double wall_time = 15;
.lang.Override java.util.List< java.lang.Long > getSolutionLowerBoundsList()
java.lang.String getSolutionInfo()
.lang.Override double getUserTime()
double user_time = 16;
.lang.Override double getDeterministicTime()
double deterministic_time = 17;
java.util.List< com.google.ortools.sat.IntegerVariableProto.Builder > getTightenedVariablesBuilderList()
Builder addTightenedVariables(int index, com.google.ortools.sat.IntegerVariableProto.Builder builderForValue)
Builder clearWallTime()
double wall_time = 15;
.lang.Override double getWallTime()
double wall_time = 15;
static com.google.ortools.sat.CpSolverResponse parseFrom(java.io.InputStream input)
int getSufficientAssumptionsForInfeasibilityCount()
java.util.List<? extends com.google.ortools.sat.IntegerVariableProtoOrBuilder > getTightenedVariablesOrBuilderList()
static com.google.ortools.sat.CpSolverResponse parseFrom(com.google.protobuf.CodedInputStream input)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
Builder setAllSolutionsWereFound(boolean value)
.lang.Override long getNumLpIterations()
int64 num_lp_iterations = 25;
.lang.Override long getNumRestarts()
int64 num_restarts = 24;
Builder setSolution(int index, long value)
Builder clearDeterministicTime()
double deterministic_time = 17;
.lang.Override Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
.lang.Override boolean getAllSolutionsWereFound()
Builder addAllSufficientAssumptionsForInfeasibility(java.lang.Iterable<? extends java.lang.Integer > values)
Builder addTightenedVariables(com.google.ortools.sat.IntegerVariableProto.Builder builderForValue)
Builder setNumIntegerPropagations(long value)
int64 num_integer_propagations = 14;
static com.google.protobuf.Parser< IntegerVariableProto > parser()
Builder clearBestObjectiveBound()
.lang.Override boolean getAllSolutionsWereFound()
int getSolutionLowerBoundsCount()
.lang.Override Builder toBuilder()
Builder clearObjectiveValue()
static com.google.ortools.sat.CpSolverResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
int getTightenedVariablesCount()
.lang.Override long getNumRestarts()
int64 num_restarts = 24;
.lang.Override com.google.ortools.sat.CpSolverResponse build()
Builder addSolutionUpperBounds(long value)
repeated int64 solution_upper_bounds = 19;
Builder setSolutionInfoBytes(com.google.protobuf.ByteString value)
.lang.Override com.google.protobuf.Parser< CpSolverResponse > getParserForType()
.lang.Override final boolean isInitialized()
.lang.Override long getNumBooleans()
static final int NUM_BRANCHES_FIELD_NUMBER
.lang.Override long getNumBinaryPropagations()
int64 num_binary_propagations = 13;
int getSolutionUpperBoundsCount()
repeated int64 solution_upper_bounds = 19;
.lang.Override Builder clone()
.lang.Override long getNumConflicts()
int64 num_conflicts = 11;
Builder addAllSolutionUpperBounds(java.lang.Iterable<? extends java.lang.Long > values)
repeated int64 solution_upper_bounds = 19;
static final int TIGHTENED_VARIABLES_FIELD_NUMBER
.lang.Override double getPrimalIntegral()
double primal_integral = 22;
long getSolutionUpperBounds(int index)
repeated int64 solution_upper_bounds = 19;
Builder clearSolution()
long getSolutionLowerBounds(int index)
Builder clearStatus()
static com.google.ortools.sat.CpSolverResponse parseFrom(com.google.protobuf.ByteString data)
static final int STATUS_FIELD_NUMBER
.lang.Override com.google.ortools.sat.IntegerVariableProtoOrBuilder getTightenedVariablesOrBuilder(int index)
static com.google.ortools.sat.CpSolverResponse getDefaultInstance()
Builder setNumConflicts(long value)
int64 num_conflicts = 11;
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
.lang.Override com.google.ortools.sat.CpSolverResponse getDefaultInstanceForType()
.lang.Override long getNumBranches()
int64 num_branches = 12;
static com.google.protobuf.Parser< CpSolverResponse > parser()
Builder setSolutionInfo(java.lang.String value)
Builder clearNumRestarts()
int64 num_restarts = 24;
static final int BEST_OBJECTIVE_BOUND_FIELD_NUMBER
Builder setNumBranches(long value)
int64 num_branches = 12;
UNRECOGNIZED
static com.google.ortools.sat.CpSolverResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
.lang.Override int getStatusValue()
.lang.Override java.util.List< java.lang.Long > getSolutionUpperBoundsList()
repeated int64 solution_upper_bounds = 19;
Builder setObjectiveValue(double value)
int getSolutionCount()
int getSufficientAssumptionsForInfeasibility(int index)
.lang.Override double getUserTime()
double user_time = 16;
static final int DETERMINISTIC_TIME_FIELD_NUMBER
.lang.Override Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
.lang.Override final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
.lang.Override long getNumBranches()
int64 num_branches = 12;
Builder setTightenedVariables(int index, com.google.ortools.sat.IntegerVariableProto value)
Builder addSolution(long value)
.lang.Override double getObjectiveValue()
Builder addAllSolution(java.lang.Iterable<? extends java.lang.Long > values)
Builder clearTightenedVariables()
.lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Builder addTightenedVariables(com.google.ortools.sat.IntegerVariableProto value)
static final int NUM_RESTARTS_FIELD_NUMBER
.lang.Override boolean equals(final java.lang.Object obj)
.lang.Override Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
.lang.Override java.lang.String getSolutionInfo()
Builder clearPrimalIntegral()
double primal_integral = 22;
Builder clearSufficientAssumptionsForInfeasibility()
com.google.ortools.sat.IntegerVariableProto.Builder addTightenedVariablesBuilder()
com.google.protobuf.ByteString getSolutionInfoBytes()
Builder setSolutionUpperBounds(int index, long value)
repeated int64 solution_upper_bounds = 19;
.lang.Override double getObjectiveValue()
static com.google.ortools.sat.CpSolverResponse parseFrom(java.nio.ByteBuffer data)
Builder addAllSolutionLowerBounds(java.lang.Iterable<? extends java.lang.Long > values)
.lang.Override Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
.lang.Override long getNumBooleans()
Builder clearSolutionUpperBounds()
repeated int64 solution_upper_bounds = 19;
Builder setDeterministicTime(double value)
double deterministic_time = 17;
Builder clearSolutionLowerBounds()
.lang.Override com.google.protobuf.ByteString getSolutionInfoBytes()
static com.google.ortools.sat.CpSolverResponse parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Builder setNumRestarts(long value)
int64 num_restarts = 24;
static final int SOLUTION_LOWER_BOUNDS_FIELD_NUMBER
.lang.Override java.util.List< java.lang.Long > getSolutionList()
long getSolutionUpperBounds(int index)
repeated int64 solution_upper_bounds = 19;
Builder setStatusValue(int value)
Builder clearNumConflicts()
int64 num_conflicts = 11;
Builder clearNumLpIterations()
int64 num_lp_iterations = 25;
.lang.Override final boolean isInitialized()
static final int OBJECTIVE_VALUE_FIELD_NUMBER
.lang.Override double getWallTime()
double wall_time = 15;
.lang.Override long getNumBinaryPropagations()
int64 num_binary_propagations = 13;
.lang.Override com.google.ortools.sat.CpSolverStatus getStatus()
static final int SUFFICIENT_ASSUMPTIONS_FOR_INFEASIBILITY_FIELD_NUMBER
.lang.Override void writeTo(com.google.protobuf.CodedOutputStream output)
.lang.Override java.util.List< java.lang.Integer > getSufficientAssumptionsForInfeasibilityList()
.lang.Override java.util.List< com.google.ortools.sat.IntegerVariableProto > getTightenedVariablesList()
java.util.List< java.lang.Integer > getSufficientAssumptionsForInfeasibilityList()
.lang.Override com.google.ortools.sat.CpSolverResponse buildPartial()
Builder setBestObjectiveBound(double value)
java.util.List< java.lang.Long > getSolutionList()
static com.google.ortools.sat.CpSolverResponse parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override double getBestObjectiveBound()
java.util.List< com.google.ortools.sat.IntegerVariableProto > getTightenedVariablesList()
static Builder newBuilder()
static final int NUM_BINARY_PROPAGATIONS_FIELD_NUMBER
.lang.Override java.util.List<? extends com.google.ortools.sat.IntegerVariableProtoOrBuilder > getTightenedVariablesOrBuilderList()
.lang.Override java.lang.Object newInstance(UnusedPrivateParameter unused)
Builder addSufficientAssumptionsForInfeasibility(int value)
Builder setNumBooleans(long value)
Builder mergeFrom(com.google.ortools.sat.CpSolverResponse other)
Builder addTightenedVariables(int index, com.google.ortools.sat.IntegerVariableProto value)
long getSolution(int index)
Builder setPrimalIntegral(double value)
double primal_integral = 22;
Builder addAllTightenedVariables(java.lang.Iterable<? extends com.google.ortools.sat.IntegerVariableProto > values)
.lang.Override long getNumLpIterations()
int64 num_lp_iterations = 25;
com.google.ortools.sat.IntegerVariableProtoOrBuilder getTightenedVariablesOrBuilder(int index)
Builder clearNumBinaryPropagations()
int64 num_binary_propagations = 13;
static final int SOLUTION_INFO_FIELD_NUMBER
Builder setUserTime(double value)
double user_time = 16;
.lang.Override Builder newBuilderForType()
static com.google.ortools.sat.CpSolverResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static final int PRIMAL_INTEGRAL_FIELD_NUMBER
.lang.Override int getTightenedVariablesCount()
.lang.Override Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
static final int NUM_BOOLEANS_FIELD_NUMBER
static com.google.ortools.sat.CpSolverResponse parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override long getNumIntegerPropagations()
int64 num_integer_propagations = 14;
.lang.Override com.google.ortools.sat.CpSolverResponse getDefaultInstanceForType()
int getSolutionLowerBoundsCount()
Builder setTightenedVariables(int index, com.google.ortools.sat.IntegerVariableProto.Builder builderForValue)
static final int ALL_SOLUTIONS_WERE_FOUND_FIELD_NUMBER
long getSolutionLowerBounds(int index)
Builder setSolutionLowerBounds(int index, long value)
int getSufficientAssumptionsForInfeasibilityCount()
static final int WALL_TIME_FIELD_NUMBER
.lang.Override com.google.ortools.sat.CpSolverStatus getStatus()
Builder setSufficientAssumptionsForInfeasibility(int index, int value)
.lang.Override final com.google.protobuf.UnknownFieldSet getUnknownFields()
.lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
static final int NUM_INTEGER_PROPAGATIONS_FIELD_NUMBER
Builder clearUserTime()
double user_time = 16;
.lang.Override final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
Builder clearNumIntegerPropagations()
int64 num_integer_propagations = 14;
static final int NUM_CONFLICTS_FIELD_NUMBER
UNKNOWN
.lang.Override double getPrimalIntegral()
double primal_integral = 22;
.lang.Override long getNumConflicts()
int64 num_conflicts = 11;
static com.google.ortools.sat.IntegerVariableProto getDefaultInstance()
Builder clearAllSolutionsWereFound()
int getSufficientAssumptionsForInfeasibility(int index)
Builder setStatus(com.google.ortools.sat.CpSolverStatus value)
Builder addSolutionLowerBounds(long value)
Builder setNumLpIterations(long value)
int64 num_lp_iterations = 25;
Builder clearNumBooleans()
java.util.List< java.lang.Long > getSolutionUpperBoundsList()
repeated int64 solution_upper_bounds = 19;
static com.google.ortools.sat.CpSolverResponse parseFrom(byte[] data)
Builder setNumBinaryPropagations(long value)
int64 num_binary_propagations = 13;
.lang.Override com.google.ortools.sat.IntegerVariableProto getTightenedVariables(int index)
.lang.Override Builder clear()
static com.google.ortools.sat.CpSolverResponse parseDelimitedFrom(java.io.InputStream input)
static final int USER_TIME_FIELD_NUMBER
.lang.Override int getStatusValue()
.lang.Override int getSerializedSize()
.lang.Override int hashCode()
long getSolution(int index)
Builder clearNumBranches()
int64 num_branches = 12;
Builder clearSolutionInfo()
int getSolutionUpperBoundsCount()
repeated int64 solution_upper_bounds = 19;
com.google.ortools.sat.IntegerVariableProto.Builder addTightenedVariablesBuilder(int index)
static final int SOLUTION_UPPER_BOUNDS_FIELD_NUMBER
.lang.Override Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
.lang.Override com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
java.util.List< java.lang.Long > getSolutionLowerBoundsList()
.lang.Override double getBestObjectiveBound()
com.google.ortools.sat.IntegerVariableProto getTightenedVariables(int index)
Builder removeTightenedVariables(int index)
int getSolutionCount()
static final int SOLUTION_FIELD_NUMBER
static final int NUM_LP_ITERATIONS_FIELD_NUMBER
.lang.Deprecated static CpSolverStatus valueOf(int value)