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  default: {
232  if (!parseUnknownField(
233  input, unknownFields, extensionRegistry, tag)) {
234  done = true;
235  }
236  break;
237  }
238  }
239  }
240  } catch (com.google.protobuf.InvalidProtocolBufferException e) {
241  throw e.setUnfinishedMessage(this);
242  } catch (java.io.IOException e) {
243  throw new com.google.protobuf.InvalidProtocolBufferException(
244  e).setUnfinishedMessage(this);
245  } finally {
246  if (((mutable_bitField0_ & 0x00000001) != 0)) {
247  solution_.makeImmutable(); // C
248  }
249  if (((mutable_bitField0_ & 0x00000002) != 0)) {
250  solutionLowerBounds_.makeImmutable(); // C
251  }
252  if (((mutable_bitField0_ & 0x00000004) != 0)) {
253  solutionUpperBounds_.makeImmutable(); // C
254  }
255  if (((mutable_bitField0_ & 0x00000008) != 0)) {
256  tightenedVariables_ = java.util.Collections.unmodifiableList(tightenedVariables_);
257  }
258  if (((mutable_bitField0_ & 0x00000010) != 0)) {
259  sufficientAssumptionsForInfeasibility_.makeImmutable(); // C
260  }
261  this.unknownFields = unknownFields.build();
262  makeExtensionsImmutable();
263  }
264  }
265  public static final com.google.protobuf.Descriptors.Descriptor
267  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_descriptor;
268  }
269 
270  @java.lang.Override
271  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
273  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_fieldAccessorTable
274  .ensureFieldAccessorsInitialized(
276  }
277 
278  public static final int STATUS_FIELD_NUMBER = 1;
279  private int status_;
288  public int getStatusValue() {
289  return status_;
290  }
300  @SuppressWarnings("deprecation")
302  return result == null ? com.google.ortools.sat.CpSolverStatus.UNRECOGNIZED : result;
303  }
304 
305  public static final int SOLUTION_FIELD_NUMBER = 2;
306  private com.google.protobuf.Internal.LongList solution_;
318  public java.util.List<java.lang.Long>
320  return solution_;
321  }
333  public int getSolutionCount() {
334  return solution_.size();
335  }
348  public long getSolution(int index) {
349  return solution_.getLong(index);
350  }
351  private int solutionMemoizedSerializedSize = -1;
352 
353  public static final int OBJECTIVE_VALUE_FIELD_NUMBER = 3;
354  private double objectiveValue_;
366  public double getObjectiveValue() {
367  return objectiveValue_;
368  }
369 
370  public static final int BEST_OBJECTIVE_BOUND_FIELD_NUMBER = 4;
371  private double bestObjectiveBound_;
382  public double getBestObjectiveBound() {
383  return bestObjectiveBound_;
384  }
385 
386  public static final int SOLUTION_LOWER_BOUNDS_FIELD_NUMBER = 18;
387  private com.google.protobuf.Internal.LongList solutionLowerBounds_;
401  public java.util.List<java.lang.Long>
403  return solutionLowerBounds_;
404  }
419  return solutionLowerBounds_.size();
420  }
435  public long getSolutionLowerBounds(int index) {
436  return solutionLowerBounds_.getLong(index);
437  }
438  private int solutionLowerBoundsMemoizedSerializedSize = -1;
439 
440  public static final int SOLUTION_UPPER_BOUNDS_FIELD_NUMBER = 19;
441  private com.google.protobuf.Internal.LongList solutionUpperBounds_;
446  public java.util.List<java.lang.Long>
448  return solutionUpperBounds_;
449  }
455  return solutionUpperBounds_.size();
456  }
462  public long getSolutionUpperBounds(int index) {
463  return solutionUpperBounds_.getLong(index);
464  }
465  private int solutionUpperBoundsMemoizedSerializedSize = -1;
466 
467  public static final int TIGHTENED_VARIABLES_FIELD_NUMBER = 21;
468  private java.util.List<com.google.ortools.sat.IntegerVariableProto> tightenedVariables_;
486  return tightenedVariables_;
487  }
504  public java.util.List<? extends com.google.ortools.sat.IntegerVariableProtoOrBuilder>
506  return tightenedVariables_;
507  }
525  return tightenedVariables_.size();
526  }
544  return tightenedVariables_.get(index);
545  }
563  int index) {
564  return tightenedVariables_.get(index);
565  }
566 
568  private com.google.protobuf.Internal.IntList sufficientAssumptionsForInfeasibility_;
587  public java.util.List<java.lang.Integer>
589  return sufficientAssumptionsForInfeasibility_;
590  }
610  return sufficientAssumptionsForInfeasibility_.size();
611  }
632  return sufficientAssumptionsForInfeasibility_.getInt(index);
633  }
634  private int sufficientAssumptionsForInfeasibilityMemoizedSerializedSize = -1;
635 
636  public static final int ALL_SOLUTIONS_WERE_FOUND_FIELD_NUMBER = 5;
637  private boolean allSolutionsWereFound_;
649  public boolean getAllSolutionsWereFound() {
650  return allSolutionsWereFound_;
651  }
652 
653  public static final int NUM_BOOLEANS_FIELD_NUMBER = 10;
654  private long numBooleans_;
663  public long getNumBooleans() {
664  return numBooleans_;
665  }
666 
667  public static final int NUM_CONFLICTS_FIELD_NUMBER = 11;
668  private long numConflicts_;
673  public long getNumConflicts() {
674  return numConflicts_;
675  }
676 
677  public static final int NUM_BRANCHES_FIELD_NUMBER = 12;
678  private long numBranches_;
683  public long getNumBranches() {
684  return numBranches_;
685  }
686 
687  public static final int NUM_BINARY_PROPAGATIONS_FIELD_NUMBER = 13;
688  private long numBinaryPropagations_;
693  public long getNumBinaryPropagations() {
694  return numBinaryPropagations_;
695  }
696 
697  public static final int NUM_INTEGER_PROPAGATIONS_FIELD_NUMBER = 14;
698  private long numIntegerPropagations_;
704  return numIntegerPropagations_;
705  }
706 
707  public static final int WALL_TIME_FIELD_NUMBER = 15;
708  private double wallTime_;
713  public double getWallTime() {
714  return wallTime_;
715  }
716 
717  public static final int USER_TIME_FIELD_NUMBER = 16;
718  private double userTime_;
723  public double getUserTime() {
724  return userTime_;
725  }
726 
727  public static final int DETERMINISTIC_TIME_FIELD_NUMBER = 17;
728  private double deterministicTime_;
733  public double getDeterministicTime() {
734  return deterministicTime_;
735  }
736 
737  public static final int PRIMAL_INTEGRAL_FIELD_NUMBER = 22;
738  private double primalIntegral_;
743  public double getPrimalIntegral() {
744  return primalIntegral_;
745  }
746 
747  public static final int SOLUTION_INFO_FIELD_NUMBER = 20;
748  private volatile java.lang.Object solutionInfo_;
757  public java.lang.String getSolutionInfo() {
758  java.lang.Object ref = solutionInfo_;
759  if (ref instanceof java.lang.String) {
760  return (java.lang.String) ref;
761  } else {
762  com.google.protobuf.ByteString bs =
763  (com.google.protobuf.ByteString) ref;
764  java.lang.String s = bs.toStringUtf8();
765  solutionInfo_ = s;
766  return s;
767  }
768  }
777  public com.google.protobuf.ByteString
779  java.lang.Object ref = solutionInfo_;
780  if (ref instanceof java.lang.String) {
781  com.google.protobuf.ByteString b =
782  com.google.protobuf.ByteString.copyFromUtf8(
783  (java.lang.String) ref);
784  solutionInfo_ = b;
785  return b;
786  } else {
787  return (com.google.protobuf.ByteString) ref;
788  }
789  }
790 
791  private byte memoizedIsInitialized = -1;
792  @java.lang.Override
793  public final boolean isInitialized() {
794  byte isInitialized = memoizedIsInitialized;
795  if (isInitialized == 1) return true;
796  if (isInitialized == 0) return false;
797 
798  memoizedIsInitialized = 1;
799  return true;
800  }
801 
802  @java.lang.Override
803  public void writeTo(com.google.protobuf.CodedOutputStream output)
804  throws java.io.IOException {
806  if (status_ != com.google.ortools.sat.CpSolverStatus.UNKNOWN.getNumber()) {
807  output.writeEnum(1, status_);
808  }
809  if (getSolutionList().size() > 0) {
810  output.writeUInt32NoTag(18);
811  output.writeUInt32NoTag(solutionMemoizedSerializedSize);
812  }
813  for (int i = 0; i < solution_.size(); i++) {
814  output.writeInt64NoTag(solution_.getLong(i));
815  }
816  if (objectiveValue_ != 0D) {
817  output.writeDouble(3, objectiveValue_);
818  }
819  if (bestObjectiveBound_ != 0D) {
820  output.writeDouble(4, bestObjectiveBound_);
821  }
822  if (allSolutionsWereFound_ != false) {
823  output.writeBool(5, allSolutionsWereFound_);
824  }
825  if (numBooleans_ != 0L) {
826  output.writeInt64(10, numBooleans_);
827  }
828  if (numConflicts_ != 0L) {
829  output.writeInt64(11, numConflicts_);
830  }
831  if (numBranches_ != 0L) {
832  output.writeInt64(12, numBranches_);
833  }
834  if (numBinaryPropagations_ != 0L) {
835  output.writeInt64(13, numBinaryPropagations_);
836  }
837  if (numIntegerPropagations_ != 0L) {
838  output.writeInt64(14, numIntegerPropagations_);
839  }
840  if (wallTime_ != 0D) {
841  output.writeDouble(15, wallTime_);
842  }
843  if (userTime_ != 0D) {
844  output.writeDouble(16, userTime_);
845  }
846  if (deterministicTime_ != 0D) {
847  output.writeDouble(17, deterministicTime_);
848  }
849  if (getSolutionLowerBoundsList().size() > 0) {
850  output.writeUInt32NoTag(146);
851  output.writeUInt32NoTag(solutionLowerBoundsMemoizedSerializedSize);
852  }
853  for (int i = 0; i < solutionLowerBounds_.size(); i++) {
854  output.writeInt64NoTag(solutionLowerBounds_.getLong(i));
855  }
856  if (getSolutionUpperBoundsList().size() > 0) {
857  output.writeUInt32NoTag(154);
858  output.writeUInt32NoTag(solutionUpperBoundsMemoizedSerializedSize);
859  }
860  for (int i = 0; i < solutionUpperBounds_.size(); i++) {
861  output.writeInt64NoTag(solutionUpperBounds_.getLong(i));
862  }
863  if (!getSolutionInfoBytes().isEmpty()) {
864  com.google.protobuf.GeneratedMessageV3.writeString(output, 20, solutionInfo_);
865  }
866  for (int i = 0; i < tightenedVariables_.size(); i++) {
867  output.writeMessage(21, tightenedVariables_.get(i));
868  }
869  if (primalIntegral_ != 0D) {
870  output.writeDouble(22, primalIntegral_);
871  }
873  output.writeUInt32NoTag(186);
874  output.writeUInt32NoTag(sufficientAssumptionsForInfeasibilityMemoizedSerializedSize);
875  }
876  for (int i = 0; i < sufficientAssumptionsForInfeasibility_.size(); i++) {
877  output.writeInt32NoTag(sufficientAssumptionsForInfeasibility_.getInt(i));
878  }
879  unknownFields.writeTo(output);
880  }
881 
882  @java.lang.Override
883  public int getSerializedSize() {
884  int size = memoizedSize;
885  if (size != -1) return size;
886 
887  size = 0;
888  if (status_ != com.google.ortools.sat.CpSolverStatus.UNKNOWN.getNumber()) {
889  size += com.google.protobuf.CodedOutputStream
890  .computeEnumSize(1, status_);
891  }
892  {
893  int dataSize = 0;
894  for (int i = 0; i < solution_.size(); i++) {
895  dataSize += com.google.protobuf.CodedOutputStream
896  .computeInt64SizeNoTag(solution_.getLong(i));
897  }
898  size += dataSize;
899  if (!getSolutionList().isEmpty()) {
900  size += 1;
901  size += com.google.protobuf.CodedOutputStream
902  .computeInt32SizeNoTag(dataSize);
903  }
904  solutionMemoizedSerializedSize = dataSize;
905  }
906  if (objectiveValue_ != 0D) {
907  size += com.google.protobuf.CodedOutputStream
908  .computeDoubleSize(3, objectiveValue_);
909  }
910  if (bestObjectiveBound_ != 0D) {
911  size += com.google.protobuf.CodedOutputStream
912  .computeDoubleSize(4, bestObjectiveBound_);
913  }
914  if (allSolutionsWereFound_ != false) {
915  size += com.google.protobuf.CodedOutputStream
916  .computeBoolSize(5, allSolutionsWereFound_);
917  }
918  if (numBooleans_ != 0L) {
919  size += com.google.protobuf.CodedOutputStream
920  .computeInt64Size(10, numBooleans_);
921  }
922  if (numConflicts_ != 0L) {
923  size += com.google.protobuf.CodedOutputStream
924  .computeInt64Size(11, numConflicts_);
925  }
926  if (numBranches_ != 0L) {
927  size += com.google.protobuf.CodedOutputStream
928  .computeInt64Size(12, numBranches_);
929  }
930  if (numBinaryPropagations_ != 0L) {
931  size += com.google.protobuf.CodedOutputStream
932  .computeInt64Size(13, numBinaryPropagations_);
933  }
934  if (numIntegerPropagations_ != 0L) {
935  size += com.google.protobuf.CodedOutputStream
936  .computeInt64Size(14, numIntegerPropagations_);
937  }
938  if (wallTime_ != 0D) {
939  size += com.google.protobuf.CodedOutputStream
940  .computeDoubleSize(15, wallTime_);
941  }
942  if (userTime_ != 0D) {
943  size += com.google.protobuf.CodedOutputStream
944  .computeDoubleSize(16, userTime_);
945  }
946  if (deterministicTime_ != 0D) {
947  size += com.google.protobuf.CodedOutputStream
948  .computeDoubleSize(17, deterministicTime_);
949  }
950  {
951  int dataSize = 0;
952  for (int i = 0; i < solutionLowerBounds_.size(); i++) {
953  dataSize += com.google.protobuf.CodedOutputStream
954  .computeInt64SizeNoTag(solutionLowerBounds_.getLong(i));
955  }
956  size += dataSize;
957  if (!getSolutionLowerBoundsList().isEmpty()) {
958  size += 2;
959  size += com.google.protobuf.CodedOutputStream
960  .computeInt32SizeNoTag(dataSize);
961  }
962  solutionLowerBoundsMemoizedSerializedSize = dataSize;
963  }
964  {
965  int dataSize = 0;
966  for (int i = 0; i < solutionUpperBounds_.size(); i++) {
967  dataSize += com.google.protobuf.CodedOutputStream
968  .computeInt64SizeNoTag(solutionUpperBounds_.getLong(i));
969  }
970  size += dataSize;
971  if (!getSolutionUpperBoundsList().isEmpty()) {
972  size += 2;
973  size += com.google.protobuf.CodedOutputStream
974  .computeInt32SizeNoTag(dataSize);
975  }
976  solutionUpperBoundsMemoizedSerializedSize = dataSize;
977  }
978  if (!getSolutionInfoBytes().isEmpty()) {
979  size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, solutionInfo_);
980  }
981  for (int i = 0; i < tightenedVariables_.size(); i++) {
982  size += com.google.protobuf.CodedOutputStream
983  .computeMessageSize(21, tightenedVariables_.get(i));
984  }
985  if (primalIntegral_ != 0D) {
986  size += com.google.protobuf.CodedOutputStream
987  .computeDoubleSize(22, primalIntegral_);
988  }
989  {
990  int dataSize = 0;
991  for (int i = 0; i < sufficientAssumptionsForInfeasibility_.size(); i++) {
992  dataSize += com.google.protobuf.CodedOutputStream
993  .computeInt32SizeNoTag(sufficientAssumptionsForInfeasibility_.getInt(i));
994  }
995  size += dataSize;
997  size += 2;
998  size += com.google.protobuf.CodedOutputStream
999  .computeInt32SizeNoTag(dataSize);
1000  }
1001  sufficientAssumptionsForInfeasibilityMemoizedSerializedSize = dataSize;
1002  }
1003  size += unknownFields.getSerializedSize();
1004  memoizedSize = size;
1005  return size;
1006  }
1007 
1008  @java.lang.Override
1009  public boolean equals(final java.lang.Object obj) {
1010  if (obj == this) {
1011  return true;
1012  }
1013  if (!(obj instanceof com.google.ortools.sat.CpSolverResponse)) {
1014  return super.equals(obj);
1015  }
1017 
1018  if (status_ != other.status_) return false;
1019  if (!getSolutionList()
1020  .equals(other.getSolutionList())) return false;
1021  if (java.lang.Double.doubleToLongBits(getObjectiveValue())
1022  != java.lang.Double.doubleToLongBits(
1023  other.getObjectiveValue())) return false;
1024  if (java.lang.Double.doubleToLongBits(getBestObjectiveBound())
1025  != java.lang.Double.doubleToLongBits(
1026  other.getBestObjectiveBound())) return false;
1028  .equals(other.getSolutionLowerBoundsList())) return false;
1030  .equals(other.getSolutionUpperBoundsList())) return false;
1032  .equals(other.getTightenedVariablesList())) return false;
1034  .equals(other.getSufficientAssumptionsForInfeasibilityList())) return false;
1036  != other.getAllSolutionsWereFound()) return false;
1037  if (getNumBooleans()
1038  != other.getNumBooleans()) return false;
1039  if (getNumConflicts()
1040  != other.getNumConflicts()) return false;
1041  if (getNumBranches()
1042  != other.getNumBranches()) return false;
1044  != other.getNumBinaryPropagations()) return false;
1046  != other.getNumIntegerPropagations()) return false;
1047  if (java.lang.Double.doubleToLongBits(getWallTime())
1048  != java.lang.Double.doubleToLongBits(
1049  other.getWallTime())) return false;
1050  if (java.lang.Double.doubleToLongBits(getUserTime())
1051  != java.lang.Double.doubleToLongBits(
1052  other.getUserTime())) return false;
1053  if (java.lang.Double.doubleToLongBits(getDeterministicTime())
1054  != java.lang.Double.doubleToLongBits(
1055  other.getDeterministicTime())) return false;
1056  if (java.lang.Double.doubleToLongBits(getPrimalIntegral())
1057  != java.lang.Double.doubleToLongBits(
1058  other.getPrimalIntegral())) return false;
1059  if (!getSolutionInfo()
1060  .equals(other.getSolutionInfo())) return false;
1061  if (!unknownFields.equals(other.unknownFields)) return false;
1062  return true;
1063  }
1064 
1065  @java.lang.Override
1066  public int hashCode() {
1067  if (memoizedHashCode != 0) {
1068  return memoizedHashCode;
1069  }
1070  int hash = 41;
1071  hash = (19 * hash) + getDescriptor().hashCode();
1072  hash = (37 * hash) + STATUS_FIELD_NUMBER;
1073  hash = (53 * hash) + status_;
1074  if (getSolutionCount() > 0) {
1075  hash = (37 * hash) + SOLUTION_FIELD_NUMBER;
1076  hash = (53 * hash) + getSolutionList().hashCode();
1077  }
1078  hash = (37 * hash) + OBJECTIVE_VALUE_FIELD_NUMBER;
1079  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1080  java.lang.Double.doubleToLongBits(getObjectiveValue()));
1081  hash = (37 * hash) + BEST_OBJECTIVE_BOUND_FIELD_NUMBER;
1082  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1083  java.lang.Double.doubleToLongBits(getBestObjectiveBound()));
1084  if (getSolutionLowerBoundsCount() > 0) {
1085  hash = (37 * hash) + SOLUTION_LOWER_BOUNDS_FIELD_NUMBER;
1086  hash = (53 * hash) + getSolutionLowerBoundsList().hashCode();
1087  }
1088  if (getSolutionUpperBoundsCount() > 0) {
1089  hash = (37 * hash) + SOLUTION_UPPER_BOUNDS_FIELD_NUMBER;
1090  hash = (53 * hash) + getSolutionUpperBoundsList().hashCode();
1091  }
1092  if (getTightenedVariablesCount() > 0) {
1093  hash = (37 * hash) + TIGHTENED_VARIABLES_FIELD_NUMBER;
1094  hash = (53 * hash) + getTightenedVariablesList().hashCode();
1095  }
1098  hash = (53 * hash) + getSufficientAssumptionsForInfeasibilityList().hashCode();
1099  }
1100  hash = (37 * hash) + ALL_SOLUTIONS_WERE_FOUND_FIELD_NUMBER;
1101  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1103  hash = (37 * hash) + NUM_BOOLEANS_FIELD_NUMBER;
1104  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1105  getNumBooleans());
1106  hash = (37 * hash) + NUM_CONFLICTS_FIELD_NUMBER;
1107  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1108  getNumConflicts());
1109  hash = (37 * hash) + NUM_BRANCHES_FIELD_NUMBER;
1110  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1111  getNumBranches());
1112  hash = (37 * hash) + NUM_BINARY_PROPAGATIONS_FIELD_NUMBER;
1113  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1115  hash = (37 * hash) + NUM_INTEGER_PROPAGATIONS_FIELD_NUMBER;
1116  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1118  hash = (37 * hash) + WALL_TIME_FIELD_NUMBER;
1119  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1120  java.lang.Double.doubleToLongBits(getWallTime()));
1121  hash = (37 * hash) + USER_TIME_FIELD_NUMBER;
1122  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1123  java.lang.Double.doubleToLongBits(getUserTime()));
1124  hash = (37 * hash) + DETERMINISTIC_TIME_FIELD_NUMBER;
1125  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1126  java.lang.Double.doubleToLongBits(getDeterministicTime()));
1127  hash = (37 * hash) + PRIMAL_INTEGRAL_FIELD_NUMBER;
1128  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1129  java.lang.Double.doubleToLongBits(getPrimalIntegral()));
1130  hash = (37 * hash) + SOLUTION_INFO_FIELD_NUMBER;
1131  hash = (53 * hash) + getSolutionInfo().hashCode();
1132  hash = (29 * hash) + unknownFields.hashCode();
1133  memoizedHashCode = hash;
1134  return hash;
1135  }
1136 
1138  java.nio.ByteBuffer data)
1139  throws com.google.protobuf.InvalidProtocolBufferException {
1140  return PARSER.parseFrom(data);
1141  }
1143  java.nio.ByteBuffer data,
1144  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1145  throws com.google.protobuf.InvalidProtocolBufferException {
1146  return PARSER.parseFrom(data, extensionRegistry);
1147  }
1149  com.google.protobuf.ByteString data)
1150  throws com.google.protobuf.InvalidProtocolBufferException {
1151  return PARSER.parseFrom(data);
1152  }
1154  com.google.protobuf.ByteString data,
1155  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1156  throws com.google.protobuf.InvalidProtocolBufferException {
1157  return PARSER.parseFrom(data, extensionRegistry);
1158  }
1159  public static com.google.ortools.sat.CpSolverResponse parseFrom(byte[] data)
1160  throws com.google.protobuf.InvalidProtocolBufferException {
1161  return PARSER.parseFrom(data);
1162  }
1164  byte[] data,
1165  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1166  throws com.google.protobuf.InvalidProtocolBufferException {
1167  return PARSER.parseFrom(data, extensionRegistry);
1168  }
1169  public static com.google.ortools.sat.CpSolverResponse parseFrom(java.io.InputStream input)
1170  throws java.io.IOException {
1171  return com.google.protobuf.GeneratedMessageV3
1172  .parseWithIOException(PARSER, input);
1173  }
1175  java.io.InputStream input,
1176  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1177  throws java.io.IOException {
1178  return com.google.protobuf.GeneratedMessageV3
1179  .parseWithIOException(PARSER, input, extensionRegistry);
1180  }
1181  public static com.google.ortools.sat.CpSolverResponse parseDelimitedFrom(java.io.InputStream input)
1182  throws java.io.IOException {
1183  return com.google.protobuf.GeneratedMessageV3
1184  .parseDelimitedWithIOException(PARSER, input);
1185  }
1187  java.io.InputStream input,
1188  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1189  throws java.io.IOException {
1190  return com.google.protobuf.GeneratedMessageV3
1191  .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
1192  }
1194  com.google.protobuf.CodedInputStream input)
1195  throws java.io.IOException {
1196  return com.google.protobuf.GeneratedMessageV3
1197  .parseWithIOException(PARSER, input);
1198  }
1200  com.google.protobuf.CodedInputStream input,
1201  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1202  throws java.io.IOException {
1203  return com.google.protobuf.GeneratedMessageV3
1204  .parseWithIOException(PARSER, input, extensionRegistry);
1205  }
1206 
1207  @java.lang.Override
1208  public Builder newBuilderForType() { return newBuilder(); }
1209  public static Builder newBuilder() {
1210  return DEFAULT_INSTANCE.toBuilder();
1211  }
1213  return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1214  }
1215  @java.lang.Override
1216  public Builder toBuilder() {
1217  return this == DEFAULT_INSTANCE
1218  ? new Builder() : new Builder().mergeFrom(this);
1219  }
1220 
1221  @java.lang.Override
1223  com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1224  Builder builder = new Builder(parent);
1225  return builder;
1226  }
1237  public static final class Builder extends
1238  com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
1239  // @@protoc_insertion_point(builder_implements:operations_research.sat.CpSolverResponse)
1240  com.google.ortools.sat.CpSolverResponseOrBuilder {
1241  public static final com.google.protobuf.Descriptors.Descriptor
1243  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_descriptor;
1244  }
1245 
1246  @java.lang.Override
1247  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
1249  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_fieldAccessorTable
1250  .ensureFieldAccessorsInitialized(
1252  }
1253 
1254  // Construct using com.google.ortools.sat.CpSolverResponse.newBuilder()
1255  private Builder() {
1256  maybeForceBuilderInitialization();
1257  }
1258 
1259  private Builder(
1260  com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1261  super(parent);
1262  maybeForceBuilderInitialization();
1263  }
1264  private void maybeForceBuilderInitialization() {
1265  if (com.google.protobuf.GeneratedMessageV3
1266  .alwaysUseFieldBuilders) {
1267  getTightenedVariablesFieldBuilder();
1268  }
1269  }
1270  @java.lang.Override
1271  public Builder clear() {
1272  super.clear();
1273  status_ = 0;
1274 
1275  solution_ = emptyLongList();
1276  bitField0_ = (bitField0_ & ~0x00000001);
1277  objectiveValue_ = 0D;
1278 
1279  bestObjectiveBound_ = 0D;
1280 
1281  solutionLowerBounds_ = emptyLongList();
1282  bitField0_ = (bitField0_ & ~0x00000002);
1283  solutionUpperBounds_ = emptyLongList();
1284  bitField0_ = (bitField0_ & ~0x00000004);
1285  if (tightenedVariablesBuilder_ == null) {
1286  tightenedVariables_ = java.util.Collections.emptyList();
1287  bitField0_ = (bitField0_ & ~0x00000008);
1288  } else {
1289  tightenedVariablesBuilder_.clear();
1290  }
1291  sufficientAssumptionsForInfeasibility_ = emptyIntList();
1292  bitField0_ = (bitField0_ & ~0x00000010);
1293  allSolutionsWereFound_ = false;
1294 
1295  numBooleans_ = 0L;
1296 
1297  numConflicts_ = 0L;
1298 
1299  numBranches_ = 0L;
1300 
1301  numBinaryPropagations_ = 0L;
1302 
1303  numIntegerPropagations_ = 0L;
1304 
1305  wallTime_ = 0D;
1306 
1307  userTime_ = 0D;
1308 
1309  deterministicTime_ = 0D;
1310 
1311  primalIntegral_ = 0D;
1312 
1313  solutionInfo_ = "";
1314 
1315  return this;
1316  }
1317 
1318  @java.lang.Override
1319  public com.google.protobuf.Descriptors.Descriptor
1321  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_descriptor;
1322  }
1323 
1324  @java.lang.Override
1327  }
1328 
1329  @java.lang.Override
1332  if (!result.isInitialized()) {
1333  throw newUninitializedMessageException(result);
1334  }
1335  return result;
1336  }
1337 
1338  @java.lang.Override
1341  int from_bitField0_ = bitField0_;
1342  result.status_ = status_;
1343  if (((bitField0_ & 0x00000001) != 0)) {
1344  solution_.makeImmutable();
1345  bitField0_ = (bitField0_ & ~0x00000001);
1346  }
1347  result.solution_ = solution_;
1348  result.objectiveValue_ = objectiveValue_;
1349  result.bestObjectiveBound_ = bestObjectiveBound_;
1350  if (((bitField0_ & 0x00000002) != 0)) {
1351  solutionLowerBounds_.makeImmutable();
1352  bitField0_ = (bitField0_ & ~0x00000002);
1353  }
1354  result.solutionLowerBounds_ = solutionLowerBounds_;
1355  if (((bitField0_ & 0x00000004) != 0)) {
1356  solutionUpperBounds_.makeImmutable();
1357  bitField0_ = (bitField0_ & ~0x00000004);
1358  }
1359  result.solutionUpperBounds_ = solutionUpperBounds_;
1360  if (tightenedVariablesBuilder_ == null) {
1361  if (((bitField0_ & 0x00000008) != 0)) {
1362  tightenedVariables_ = java.util.Collections.unmodifiableList(tightenedVariables_);
1363  bitField0_ = (bitField0_ & ~0x00000008);
1364  }
1365  result.tightenedVariables_ = tightenedVariables_;
1366  } else {
1367  result.tightenedVariables_ = tightenedVariablesBuilder_.build();
1368  }
1369  if (((bitField0_ & 0x00000010) != 0)) {
1370  sufficientAssumptionsForInfeasibility_.makeImmutable();
1371  bitField0_ = (bitField0_ & ~0x00000010);
1372  }
1373  result.sufficientAssumptionsForInfeasibility_ = sufficientAssumptionsForInfeasibility_;
1374  result.allSolutionsWereFound_ = allSolutionsWereFound_;
1375  result.numBooleans_ = numBooleans_;
1376  result.numConflicts_ = numConflicts_;
1377  result.numBranches_ = numBranches_;
1378  result.numBinaryPropagations_ = numBinaryPropagations_;
1379  result.numIntegerPropagations_ = numIntegerPropagations_;
1380  result.wallTime_ = wallTime_;
1381  result.userTime_ = userTime_;
1382  result.deterministicTime_ = deterministicTime_;
1383  result.primalIntegral_ = primalIntegral_;
1384  result.solutionInfo_ = solutionInfo_;
1385  onBuilt();
1386  return result;
1387  }
1388 
1389  @java.lang.Override
1390  public Builder clone() {
1391  return super.clone();
1392  }
1393  @java.lang.Override
1395  com.google.protobuf.Descriptors.FieldDescriptor field,
1396  java.lang.Object value) {
1397  return super.setField(field, value);
1398  }
1399  @java.lang.Override
1401  com.google.protobuf.Descriptors.FieldDescriptor field) {
1402  return super.clearField(field);
1403  }
1404  @java.lang.Override
1406  com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1407  return super.clearOneof(oneof);
1408  }
1409  @java.lang.Override
1411  com.google.protobuf.Descriptors.FieldDescriptor field,
1412  int index, java.lang.Object value) {
1413  return super.setRepeatedField(field, index, value);
1414  }
1415  @java.lang.Override
1417  com.google.protobuf.Descriptors.FieldDescriptor field,
1418  java.lang.Object value) {
1419  return super.addRepeatedField(field, value);
1420  }
1421  @java.lang.Override
1422  public Builder mergeFrom(com.google.protobuf.Message other) {
1423  if (other instanceof com.google.ortools.sat.CpSolverResponse) {
1425  } else {
1426  super.mergeFrom(other);
1427  return this;
1428  }
1429  }
1430 
1432  if (other == com.google.ortools.sat.CpSolverResponse.getDefaultInstance()) return this;
1433  if (other.status_ != 0) {
1434  setStatusValue(other.getStatusValue());
1435  }
1436  if (!other.solution_.isEmpty()) {
1437  if (solution_.isEmpty()) {
1438  solution_ = other.solution_;
1439  bitField0_ = (bitField0_ & ~0x00000001);
1440  } else {
1441  ensureSolutionIsMutable();
1442  solution_.addAll(other.solution_);
1443  }
1444  onChanged();
1445  }
1446  if (other.getObjectiveValue() != 0D) {
1447  setObjectiveValue(other.getObjectiveValue());
1448  }
1449  if (other.getBestObjectiveBound() != 0D) {
1450  setBestObjectiveBound(other.getBestObjectiveBound());
1451  }
1452  if (!other.solutionLowerBounds_.isEmpty()) {
1453  if (solutionLowerBounds_.isEmpty()) {
1454  solutionLowerBounds_ = other.solutionLowerBounds_;
1455  bitField0_ = (bitField0_ & ~0x00000002);
1456  } else {
1457  ensureSolutionLowerBoundsIsMutable();
1458  solutionLowerBounds_.addAll(other.solutionLowerBounds_);
1459  }
1460  onChanged();
1461  }
1462  if (!other.solutionUpperBounds_.isEmpty()) {
1463  if (solutionUpperBounds_.isEmpty()) {
1464  solutionUpperBounds_ = other.solutionUpperBounds_;
1465  bitField0_ = (bitField0_ & ~0x00000004);
1466  } else {
1467  ensureSolutionUpperBoundsIsMutable();
1468  solutionUpperBounds_.addAll(other.solutionUpperBounds_);
1469  }
1470  onChanged();
1471  }
1472  if (tightenedVariablesBuilder_ == null) {
1473  if (!other.tightenedVariables_.isEmpty()) {
1474  if (tightenedVariables_.isEmpty()) {
1475  tightenedVariables_ = other.tightenedVariables_;
1476  bitField0_ = (bitField0_ & ~0x00000008);
1477  } else {
1478  ensureTightenedVariablesIsMutable();
1479  tightenedVariables_.addAll(other.tightenedVariables_);
1480  }
1481  onChanged();
1482  }
1483  } else {
1484  if (!other.tightenedVariables_.isEmpty()) {
1485  if (tightenedVariablesBuilder_.isEmpty()) {
1486  tightenedVariablesBuilder_.dispose();
1487  tightenedVariablesBuilder_ = null;
1488  tightenedVariables_ = other.tightenedVariables_;
1489  bitField0_ = (bitField0_ & ~0x00000008);
1490  tightenedVariablesBuilder_ =
1491  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
1492  getTightenedVariablesFieldBuilder() : null;
1493  } else {
1494  tightenedVariablesBuilder_.addAllMessages(other.tightenedVariables_);
1495  }
1496  }
1497  }
1498  if (!other.sufficientAssumptionsForInfeasibility_.isEmpty()) {
1499  if (sufficientAssumptionsForInfeasibility_.isEmpty()) {
1500  sufficientAssumptionsForInfeasibility_ = other.sufficientAssumptionsForInfeasibility_;
1501  bitField0_ = (bitField0_ & ~0x00000010);
1502  } else {
1503  ensureSufficientAssumptionsForInfeasibilityIsMutable();
1504  sufficientAssumptionsForInfeasibility_.addAll(other.sufficientAssumptionsForInfeasibility_);
1505  }
1506  onChanged();
1507  }
1508  if (other.getAllSolutionsWereFound() != false) {
1509  setAllSolutionsWereFound(other.getAllSolutionsWereFound());
1510  }
1511  if (other.getNumBooleans() != 0L) {
1512  setNumBooleans(other.getNumBooleans());
1513  }
1514  if (other.getNumConflicts() != 0L) {
1515  setNumConflicts(other.getNumConflicts());
1516  }
1517  if (other.getNumBranches() != 0L) {
1518  setNumBranches(other.getNumBranches());
1519  }
1520  if (other.getNumBinaryPropagations() != 0L) {
1521  setNumBinaryPropagations(other.getNumBinaryPropagations());
1522  }
1523  if (other.getNumIntegerPropagations() != 0L) {
1524  setNumIntegerPropagations(other.getNumIntegerPropagations());
1525  }
1526  if (other.getWallTime() != 0D) {
1527  setWallTime(other.getWallTime());
1528  }
1529  if (other.getUserTime() != 0D) {
1530  setUserTime(other.getUserTime());
1531  }
1532  if (other.getDeterministicTime() != 0D) {
1533  setDeterministicTime(other.getDeterministicTime());
1534  }
1535  if (other.getPrimalIntegral() != 0D) {
1536  setPrimalIntegral(other.getPrimalIntegral());
1537  }
1538  if (!other.getSolutionInfo().isEmpty()) {
1539  solutionInfo_ = other.solutionInfo_;
1540  onChanged();
1541  }
1542  this.mergeUnknownFields(other.unknownFields);
1543  onChanged();
1544  return this;
1545  }
1546 
1547  @java.lang.Override
1548  public final boolean isInitialized() {
1549  return true;
1550  }
1551 
1552  @java.lang.Override
1554  com.google.protobuf.CodedInputStream input,
1555  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1556  throws java.io.IOException {
1557  com.google.ortools.sat.CpSolverResponse parsedMessage = null;
1558  try {
1559  parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
1560  } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1561  parsedMessage = (com.google.ortools.sat.CpSolverResponse) e.getUnfinishedMessage();
1562  throw e.unwrapIOException();
1563  } finally {
1564  if (parsedMessage != null) {
1565  mergeFrom(parsedMessage);
1566  }
1567  }
1568  return this;
1569  }
1570  private int bitField0_;
1571 
1572  private int status_ = 0;
1581  public int getStatusValue() {
1582  return status_;
1583  }
1593  public Builder setStatusValue(int value) {
1594  status_ = value;
1595  onChanged();
1596  return this;
1597  }
1607  @SuppressWarnings("deprecation")
1609  return result == null ? com.google.ortools.sat.CpSolverStatus.UNRECOGNIZED : result;
1610  }
1621  if (value == null) {
1622  throw new NullPointerException();
1623  }
1624 
1625  status_ = value.getNumber();
1626  onChanged();
1627  return this;
1628  }
1638 
1639  status_ = 0;
1640  onChanged();
1641  return this;
1642  }
1643 
1644  private com.google.protobuf.Internal.LongList solution_ = emptyLongList();
1645  private void ensureSolutionIsMutable() {
1646  if (!((bitField0_ & 0x00000001) != 0)) {
1647  solution_ = mutableCopy(solution_);
1648  bitField0_ |= 0x00000001;
1649  }
1650  }
1662  public java.util.List<java.lang.Long>
1664  return ((bitField0_ & 0x00000001) != 0) ?
1665  java.util.Collections.unmodifiableList(solution_) : solution_;
1666  }
1678  public int getSolutionCount() {
1679  return solution_.size();
1680  }
1693  public long getSolution(int index) {
1694  return solution_.getLong(index);
1695  }
1710  int index, long value) {
1711  ensureSolutionIsMutable();
1712  solution_.setLong(index, value);
1713  onChanged();
1714  return this;
1715  }
1728  public Builder addSolution(long value) {
1729  ensureSolutionIsMutable();
1730  solution_.addLong(value);
1731  onChanged();
1732  return this;
1733  }
1747  java.lang.Iterable<? extends java.lang.Long> values) {
1748  ensureSolutionIsMutable();
1749  com.google.protobuf.AbstractMessageLite.Builder.addAll(
1750  values, solution_);
1751  onChanged();
1752  return this;
1753  }
1766  solution_ = emptyLongList();
1767  bitField0_ = (bitField0_ & ~0x00000001);
1768  onChanged();
1769  return this;
1770  }
1771 
1772  private double objectiveValue_ ;
1784  public double getObjectiveValue() {
1785  return objectiveValue_;
1786  }
1799  public Builder setObjectiveValue(double value) {
1800 
1801  objectiveValue_ = value;
1802  onChanged();
1803  return this;
1804  }
1817 
1818  objectiveValue_ = 0D;
1819  onChanged();
1820  return this;
1821  }
1822 
1823  private double bestObjectiveBound_ ;
1834  public double getBestObjectiveBound() {
1835  return bestObjectiveBound_;
1836  }
1848  public Builder setBestObjectiveBound(double value) {
1849 
1850  bestObjectiveBound_ = value;
1851  onChanged();
1852  return this;
1853  }
1865 
1866  bestObjectiveBound_ = 0D;
1867  onChanged();
1868  return this;
1869  }
1870 
1871  private com.google.protobuf.Internal.LongList solutionLowerBounds_ = emptyLongList();
1872  private void ensureSolutionLowerBoundsIsMutable() {
1873  if (!((bitField0_ & 0x00000002) != 0)) {
1874  solutionLowerBounds_ = mutableCopy(solutionLowerBounds_);
1875  bitField0_ |= 0x00000002;
1876  }
1877  }
1891  public java.util.List<java.lang.Long>
1893  return ((bitField0_ & 0x00000002) != 0) ?
1894  java.util.Collections.unmodifiableList(solutionLowerBounds_) : solutionLowerBounds_;
1895  }
1910  return solutionLowerBounds_.size();
1911  }
1926  public long getSolutionLowerBounds(int index) {
1927  return solutionLowerBounds_.getLong(index);
1928  }
1945  int index, long value) {
1946  ensureSolutionLowerBoundsIsMutable();
1947  solutionLowerBounds_.setLong(index, value);
1948  onChanged();
1949  return this;
1950  }
1965  public Builder addSolutionLowerBounds(long value) {
1966  ensureSolutionLowerBoundsIsMutable();
1967  solutionLowerBounds_.addLong(value);
1968  onChanged();
1969  return this;
1970  }
1986  java.lang.Iterable<? extends java.lang.Long> values) {
1987  ensureSolutionLowerBoundsIsMutable();
1988  com.google.protobuf.AbstractMessageLite.Builder.addAll(
1989  values, solutionLowerBounds_);
1990  onChanged();
1991  return this;
1992  }
2007  solutionLowerBounds_ = emptyLongList();
2008  bitField0_ = (bitField0_ & ~0x00000002);
2009  onChanged();
2010  return this;
2011  }
2012 
2013  private com.google.protobuf.Internal.LongList solutionUpperBounds_ = emptyLongList();
2014  private void ensureSolutionUpperBoundsIsMutable() {
2015  if (!((bitField0_ & 0x00000004) != 0)) {
2016  solutionUpperBounds_ = mutableCopy(solutionUpperBounds_);
2017  bitField0_ |= 0x00000004;
2018  }
2019  }
2024  public java.util.List<java.lang.Long>
2026  return ((bitField0_ & 0x00000004) != 0) ?
2027  java.util.Collections.unmodifiableList(solutionUpperBounds_) : solutionUpperBounds_;
2028  }
2034  return solutionUpperBounds_.size();
2035  }
2041  public long getSolutionUpperBounds(int index) {
2042  return solutionUpperBounds_.getLong(index);
2043  }
2051  int index, long value) {
2052  ensureSolutionUpperBoundsIsMutable();
2053  solutionUpperBounds_.setLong(index, value);
2054  onChanged();
2055  return this;
2056  }
2062  public Builder addSolutionUpperBounds(long value) {
2063  ensureSolutionUpperBoundsIsMutable();
2064  solutionUpperBounds_.addLong(value);
2065  onChanged();
2066  return this;
2067  }
2074  java.lang.Iterable<? extends java.lang.Long> values) {
2075  ensureSolutionUpperBoundsIsMutable();
2076  com.google.protobuf.AbstractMessageLite.Builder.addAll(
2077  values, solutionUpperBounds_);
2078  onChanged();
2079  return this;
2080  }
2086  solutionUpperBounds_ = emptyLongList();
2087  bitField0_ = (bitField0_ & ~0x00000004);
2088  onChanged();
2089  return this;
2090  }
2091 
2092  private java.util.List<com.google.ortools.sat.IntegerVariableProto> tightenedVariables_ =
2093  java.util.Collections.emptyList();
2094  private void ensureTightenedVariablesIsMutable() {
2095  if (!((bitField0_ & 0x00000008) != 0)) {
2096  tightenedVariables_ = new java.util.ArrayList<com.google.ortools.sat.IntegerVariableProto>(tightenedVariables_);
2097  bitField0_ |= 0x00000008;
2098  }
2099  }
2100 
2101  private com.google.protobuf.RepeatedFieldBuilderV3<
2103 
2121  if (tightenedVariablesBuilder_ == null) {
2122  return java.util.Collections.unmodifiableList(tightenedVariables_);
2123  } else {
2124  return tightenedVariablesBuilder_.getMessageList();
2125  }
2126  }
2144  if (tightenedVariablesBuilder_ == null) {
2145  return tightenedVariables_.size();
2146  } else {
2147  return tightenedVariablesBuilder_.getCount();
2148  }
2149  }
2167  if (tightenedVariablesBuilder_ == null) {
2168  return tightenedVariables_.get(index);
2169  } else {
2170  return tightenedVariablesBuilder_.getMessage(index);
2171  }
2172  }
2190  int index, com.google.ortools.sat.IntegerVariableProto value) {
2191  if (tightenedVariablesBuilder_ == null) {
2192  if (value == null) {
2193  throw new NullPointerException();
2194  }
2195  ensureTightenedVariablesIsMutable();
2196  tightenedVariables_.set(index, value);
2197  onChanged();
2198  } else {
2199  tightenedVariablesBuilder_.setMessage(index, value);
2200  }
2201  return this;
2202  }
2220  int index, com.google.ortools.sat.IntegerVariableProto.Builder builderForValue) {
2221  if (tightenedVariablesBuilder_ == null) {
2222  ensureTightenedVariablesIsMutable();
2223  tightenedVariables_.set(index, builderForValue.build());
2224  onChanged();
2225  } else {
2226  tightenedVariablesBuilder_.setMessage(index, builderForValue.build());
2227  }
2228  return this;
2229  }
2247  if (tightenedVariablesBuilder_ == null) {
2248  if (value == null) {
2249  throw new NullPointerException();
2250  }
2251  ensureTightenedVariablesIsMutable();
2252  tightenedVariables_.add(value);
2253  onChanged();
2254  } else {
2255  tightenedVariablesBuilder_.addMessage(value);
2256  }
2257  return this;
2258  }
2276  int index, com.google.ortools.sat.IntegerVariableProto value) {
2277  if (tightenedVariablesBuilder_ == null) {
2278  if (value == null) {
2279  throw new NullPointerException();
2280  }
2281  ensureTightenedVariablesIsMutable();
2282  tightenedVariables_.add(index, value);
2283  onChanged();
2284  } else {
2285  tightenedVariablesBuilder_.addMessage(index, value);
2286  }
2287  return this;
2288  }
2306  com.google.ortools.sat.IntegerVariableProto.Builder builderForValue) {
2307  if (tightenedVariablesBuilder_ == null) {
2308  ensureTightenedVariablesIsMutable();
2309  tightenedVariables_.add(builderForValue.build());
2310  onChanged();
2311  } else {
2312  tightenedVariablesBuilder_.addMessage(builderForValue.build());
2313  }
2314  return this;
2315  }
2333  int index, com.google.ortools.sat.IntegerVariableProto.Builder builderForValue) {
2334  if (tightenedVariablesBuilder_ == null) {
2335  ensureTightenedVariablesIsMutable();
2336  tightenedVariables_.add(index, builderForValue.build());
2337  onChanged();
2338  } else {
2339  tightenedVariablesBuilder_.addMessage(index, builderForValue.build());
2340  }
2341  return this;
2342  }
2360  java.lang.Iterable<? extends com.google.ortools.sat.IntegerVariableProto> values) {
2361  if (tightenedVariablesBuilder_ == null) {
2362  ensureTightenedVariablesIsMutable();
2363  com.google.protobuf.AbstractMessageLite.Builder.addAll(
2364  values, tightenedVariables_);
2365  onChanged();
2366  } else {
2367  tightenedVariablesBuilder_.addAllMessages(values);
2368  }
2369  return this;
2370  }
2388  if (tightenedVariablesBuilder_ == null) {
2389  tightenedVariables_ = java.util.Collections.emptyList();
2390  bitField0_ = (bitField0_ & ~0x00000008);
2391  onChanged();
2392  } else {
2393  tightenedVariablesBuilder_.clear();
2394  }
2395  return this;
2396  }
2413  public Builder removeTightenedVariables(int index) {
2414  if (tightenedVariablesBuilder_ == null) {
2415  ensureTightenedVariablesIsMutable();
2416  tightenedVariables_.remove(index);
2417  onChanged();
2418  } else {
2419  tightenedVariablesBuilder_.remove(index);
2420  }
2421  return this;
2422  }
2440  int index) {
2441  return getTightenedVariablesFieldBuilder().getBuilder(index);
2442  }
2460  int index) {
2461  if (tightenedVariablesBuilder_ == null) {
2462  return tightenedVariables_.get(index); } else {
2463  return tightenedVariablesBuilder_.getMessageOrBuilder(index);
2464  }
2465  }
2482  public java.util.List<? extends com.google.ortools.sat.IntegerVariableProtoOrBuilder>
2484  if (tightenedVariablesBuilder_ != null) {
2485  return tightenedVariablesBuilder_.getMessageOrBuilderList();
2486  } else {
2487  return java.util.Collections.unmodifiableList(tightenedVariables_);
2488  }
2489  }
2507  return getTightenedVariablesFieldBuilder().addBuilder(
2509  }
2527  int index) {
2528  return getTightenedVariablesFieldBuilder().addBuilder(
2530  }
2547  public java.util.List<com.google.ortools.sat.IntegerVariableProto.Builder>
2549  return getTightenedVariablesFieldBuilder().getBuilderList();
2550  }
2551  private com.google.protobuf.RepeatedFieldBuilderV3<
2553  getTightenedVariablesFieldBuilder() {
2554  if (tightenedVariablesBuilder_ == null) {
2555  tightenedVariablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
2557  tightenedVariables_,
2558  ((bitField0_ & 0x00000008) != 0),
2559  getParentForChildren(),
2560  isClean());
2561  tightenedVariables_ = null;
2562  }
2563  return tightenedVariablesBuilder_;
2564  }
2565 
2566  private com.google.protobuf.Internal.IntList sufficientAssumptionsForInfeasibility_ = emptyIntList();
2567  private void ensureSufficientAssumptionsForInfeasibilityIsMutable() {
2568  if (!((bitField0_ & 0x00000010) != 0)) {
2569  sufficientAssumptionsForInfeasibility_ = mutableCopy(sufficientAssumptionsForInfeasibility_);
2570  bitField0_ |= 0x00000010;
2571  }
2572  }
2591  public java.util.List<java.lang.Integer>
2593  return ((bitField0_ & 0x00000010) != 0) ?
2594  java.util.Collections.unmodifiableList(sufficientAssumptionsForInfeasibility_) : sufficientAssumptionsForInfeasibility_;
2595  }
2615  return sufficientAssumptionsForInfeasibility_.size();
2616  }
2637  return sufficientAssumptionsForInfeasibility_.getInt(index);
2638  }
2660  int index, int value) {
2661  ensureSufficientAssumptionsForInfeasibilityIsMutable();
2662  sufficientAssumptionsForInfeasibility_.setInt(index, value);
2663  onChanged();
2664  return this;
2665  }
2686  ensureSufficientAssumptionsForInfeasibilityIsMutable();
2687  sufficientAssumptionsForInfeasibility_.addInt(value);
2688  onChanged();
2689  return this;
2690  }
2711  java.lang.Iterable<? extends java.lang.Integer> values) {
2712  ensureSufficientAssumptionsForInfeasibilityIsMutable();
2713  com.google.protobuf.AbstractMessageLite.Builder.addAll(
2714  values, sufficientAssumptionsForInfeasibility_);
2715  onChanged();
2716  return this;
2717  }
2737  sufficientAssumptionsForInfeasibility_ = emptyIntList();
2738  bitField0_ = (bitField0_ & ~0x00000010);
2739  onChanged();
2740  return this;
2741  }
2742 
2743  private boolean allSolutionsWereFound_ ;
2755  public boolean getAllSolutionsWereFound() {
2756  return allSolutionsWereFound_;
2757  }
2770  public Builder setAllSolutionsWereFound(boolean value) {
2771 
2772  allSolutionsWereFound_ = value;
2773  onChanged();
2774  return this;
2775  }
2788 
2789  allSolutionsWereFound_ = false;
2790  onChanged();
2791  return this;
2792  }
2793 
2794  private long numBooleans_ ;
2803  public long getNumBooleans() {
2804  return numBooleans_;
2805  }
2815  public Builder setNumBooleans(long value) {
2816 
2817  numBooleans_ = value;
2818  onChanged();
2819  return this;
2820  }
2830 
2831  numBooleans_ = 0L;
2832  onChanged();
2833  return this;
2834  }
2835 
2836  private long numConflicts_ ;
2841  public long getNumConflicts() {
2842  return numConflicts_;
2843  }
2849  public Builder setNumConflicts(long value) {
2850 
2851  numConflicts_ = value;
2852  onChanged();
2853  return this;
2854  }
2860 
2861  numConflicts_ = 0L;
2862  onChanged();
2863  return this;
2864  }
2865 
2866  private long numBranches_ ;
2871  public long getNumBranches() {
2872  return numBranches_;
2873  }
2879  public Builder setNumBranches(long value) {
2880 
2881  numBranches_ = value;
2882  onChanged();
2883  return this;
2884  }
2890 
2891  numBranches_ = 0L;
2892  onChanged();
2893  return this;
2894  }
2895 
2896  private long numBinaryPropagations_ ;
2902  return numBinaryPropagations_;
2903  }
2909  public Builder setNumBinaryPropagations(long value) {
2910 
2911  numBinaryPropagations_ = value;
2912  onChanged();
2913  return this;
2914  }
2920 
2921  numBinaryPropagations_ = 0L;
2922  onChanged();
2923  return this;
2924  }
2925 
2926  private long numIntegerPropagations_ ;
2932  return numIntegerPropagations_;
2933  }
2939  public Builder setNumIntegerPropagations(long value) {
2940 
2941  numIntegerPropagations_ = value;
2942  onChanged();
2943  return this;
2944  }
2950 
2951  numIntegerPropagations_ = 0L;
2952  onChanged();
2953  return this;
2954  }
2955 
2956  private double wallTime_ ;
2961  public double getWallTime() {
2962  return wallTime_;
2963  }
2969  public Builder setWallTime(double value) {
2970 
2971  wallTime_ = value;
2972  onChanged();
2973  return this;
2974  }
2980 
2981  wallTime_ = 0D;
2982  onChanged();
2983  return this;
2984  }
2985 
2986  private double userTime_ ;
2991  public double getUserTime() {
2992  return userTime_;
2993  }
2999  public Builder setUserTime(double value) {
3000 
3001  userTime_ = value;
3002  onChanged();
3003  return this;
3004  }
3010 
3011  userTime_ = 0D;
3012  onChanged();
3013  return this;
3014  }
3015 
3016  private double deterministicTime_ ;
3021  public double getDeterministicTime() {
3022  return deterministicTime_;
3023  }
3029  public Builder setDeterministicTime(double value) {
3030 
3031  deterministicTime_ = value;
3032  onChanged();
3033  return this;
3034  }
3040 
3041  deterministicTime_ = 0D;
3042  onChanged();
3043  return this;
3044  }
3045 
3046  private double primalIntegral_ ;
3051  public double getPrimalIntegral() {
3052  return primalIntegral_;
3053  }
3059  public Builder setPrimalIntegral(double value) {
3060 
3061  primalIntegral_ = value;
3062  onChanged();
3063  return this;
3064  }
3070 
3071  primalIntegral_ = 0D;
3072  onChanged();
3073  return this;
3074  }
3075 
3076  private java.lang.Object solutionInfo_ = "";
3085  public java.lang.String getSolutionInfo() {
3086  java.lang.Object ref = solutionInfo_;
3087  if (!(ref instanceof java.lang.String)) {
3088  com.google.protobuf.ByteString bs =
3089  (com.google.protobuf.ByteString) ref;
3090  java.lang.String s = bs.toStringUtf8();
3091  solutionInfo_ = s;
3092  return s;
3093  } else {
3094  return (java.lang.String) ref;
3095  }
3096  }
3105  public com.google.protobuf.ByteString
3107  java.lang.Object ref = solutionInfo_;
3108  if (ref instanceof String) {
3109  com.google.protobuf.ByteString b =
3110  com.google.protobuf.ByteString.copyFromUtf8(
3111  (java.lang.String) ref);
3112  solutionInfo_ = b;
3113  return b;
3114  } else {
3115  return (com.google.protobuf.ByteString) ref;
3116  }
3117  }
3128  java.lang.String value) {
3129  if (value == null) {
3130  throw new NullPointerException();
3131  }
3132 
3133  solutionInfo_ = value;
3134  onChanged();
3135  return this;
3136  }
3146 
3147  solutionInfo_ = getDefaultInstance().getSolutionInfo();
3148  onChanged();
3149  return this;
3150  }
3161  com.google.protobuf.ByteString value) {
3162  if (value == null) {
3163  throw new NullPointerException();
3164  }
3165  checkByteStringIsUtf8(value);
3166 
3167  solutionInfo_ = value;
3168  onChanged();
3169  return this;
3170  }
3171  @java.lang.Override
3173  final com.google.protobuf.UnknownFieldSet unknownFields) {
3174  return super.setUnknownFields(unknownFields);
3175  }
3176 
3177  @java.lang.Override
3179  final com.google.protobuf.UnknownFieldSet unknownFields) {
3180  return super.mergeUnknownFields(unknownFields);
3181  }
3182 
3183 
3184  // @@protoc_insertion_point(builder_scope:operations_research.sat.CpSolverResponse)
3185  }
3186 
3187  // @@protoc_insertion_point(class_scope:operations_research.sat.CpSolverResponse)
3188  private static final com.google.ortools.sat.CpSolverResponse DEFAULT_INSTANCE;
3189  static {
3190  DEFAULT_INSTANCE = new com.google.ortools.sat.CpSolverResponse();
3191  }
3192 
3194  return DEFAULT_INSTANCE;
3195  }
3196 
3197  private static final com.google.protobuf.Parser<CpSolverResponse>
3198  PARSER = new com.google.protobuf.AbstractParser<CpSolverResponse>() {
3199  @java.lang.Override
3200  public CpSolverResponse parsePartialFrom(
3201  com.google.protobuf.CodedInputStream input,
3202  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3203  throws com.google.protobuf.InvalidProtocolBufferException {
3204  return new CpSolverResponse(input, extensionRegistry);
3205  }
3206  };
3207 
3208  public static com.google.protobuf.Parser<CpSolverResponse> parser() {
3209  return PARSER;
3210  }
3211 
3212  @java.lang.Override
3213  public com.google.protobuf.Parser<CpSolverResponse> getParserForType() {
3214  return PARSER;
3215  }
3216 
3217  @java.lang.Override
3219  return DEFAULT_INSTANCE;
3220  }
3221 
3222 }
3223 
com.google.ortools.sat.IntegerVariableProto.Builder getTightenedVariablesBuilder(int index)
int getTightenedVariablesCount()
static Builder newBuilder(com.google.ortools.sat.CpSolverResponse prototype)
Builder setWallTime(double value)
double wall_time = 15;
java.lang.String getSolutionInfo()
long getNumBooleans()
java.util.List< com.google.ortools.sat.IntegerVariableProto.Builder > getTightenedVariablesBuilderList()
Builder addTightenedVariables(int index, com.google.ortools.sat.IntegerVariableProto.Builder builderForValue)
long getNumIntegerPropagations()
int64 num_integer_propagations = 14;
Builder clearWallTime()
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)
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)
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()
int getSolutionLowerBoundsCount()
int getStatusValue()
double getPrimalIntegral()
double primal_integral = 22;
.lang.Override Builder toBuilder()
double getObjectiveValue()
Builder clearObjectiveValue()
static com.google.ortools.sat.CpSolverResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
long getNumConflicts()
int64 num_conflicts = 11;
int getTightenedVariablesCount()
.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()
static final int NUM_BRANCHES_FIELD_NUMBER
int getSolutionUpperBoundsCount()
repeated int64 solution_upper_bounds = 19;
.lang.Override Builder clone()
Builder addAllSolutionUpperBounds(java.lang.Iterable<? extends java.lang.Long > values)
repeated int64 solution_upper_bounds = 19;
static final int TIGHTENED_VARIABLES_FIELD_NUMBER
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
static com.google.ortools.sat.CpSolverResponse getDefaultInstance()
Builder setNumConflicts(long value)
int64 num_conflicts = 11;
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
com.google.ortools.sat.IntegerVariableProtoOrBuilder getTightenedVariablesOrBuilder(int index)
java.util.List< java.lang.Long > getSolutionList()
.lang.Override com.google.ortools.sat.CpSolverResponse getDefaultInstanceForType()
static com.google.protobuf.Parser< CpSolverResponse > parser()
Builder setSolutionInfo(java.lang.String value)
static final int BEST_OBJECTIVE_BOUND_FIELD_NUMBER
Builder setNumBranches(long value)
int64 num_branches = 12;
UNRECOGNIZED
double getWallTime()
double wall_time = 15;
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)
Builder setObjectiveValue(double value)
int getSolutionCount()
long getNumBooleans()
int getSufficientAssumptionsForInfeasibility(int index)
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)
Builder setTightenedVariables(int index, com.google.ortools.sat.IntegerVariableProto value)
com.google.ortools.sat.CpSolverStatus getStatus()
Builder addSolution(long value)
int getStatusValue()
Builder addAllSolution(java.lang.Iterable<? extends java.lang.Long > values)
java.lang.String getSolutionInfo()
com.google.ortools.sat.IntegerVariableProto getTightenedVariables(int index)
Builder clearTightenedVariables()
.lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Builder addTightenedVariables(com.google.ortools.sat.IntegerVariableProto value)
boolean getAllSolutionsWereFound()
.lang.Override boolean equals(final java.lang.Object obj)
.lang.Override Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
double getUserTime()
double user_time = 16;
Builder clearPrimalIntegral()
double primal_integral = 22;
Builder clearSufficientAssumptionsForInfeasibility()
com.google.ortools.sat.IntegerVariableProto.Builder addTightenedVariablesBuilder()
java.util.List< com.google.ortools.sat.IntegerVariableProto > getTightenedVariablesList()
com.google.protobuf.ByteString getSolutionInfoBytes()
Builder setSolutionUpperBounds(int index, long value)
repeated int64 solution_upper_bounds = 19;
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)
Builder clearSolutionUpperBounds()
repeated int64 solution_upper_bounds = 19;
Builder setDeterministicTime(double value)
double deterministic_time = 17;
Builder clearSolutionLowerBounds()
java.util.List<? extends com.google.ortools.sat.IntegerVariableProtoOrBuilder > getTightenedVariablesOrBuilderList()
double getWallTime()
double wall_time = 15;
static com.google.ortools.sat.CpSolverResponse parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static final int SOLUTION_LOWER_BOUNDS_FIELD_NUMBER
long getSolutionUpperBounds(int index)
repeated int64 solution_upper_bounds = 19;
Builder setStatusValue(int value)
Builder clearNumConflicts()
int64 num_conflicts = 11;
.lang.Override final boolean isInitialized()
static final int OBJECTIVE_VALUE_FIELD_NUMBER
static final int SUFFICIENT_ASSUMPTIONS_FOR_INFEASIBILITY_FIELD_NUMBER
.lang.Override void writeTo(com.google.protobuf.CodedOutputStream output)
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)
com.google.ortools.sat.CpSolverStatus getStatus()
java.util.List< com.google.ortools.sat.IntegerVariableProto > getTightenedVariablesList()
static Builder newBuilder()
static final int NUM_BINARY_PROPAGATIONS_FIELD_NUMBER
.lang.Override java.lang.Object newInstance(UnusedPrivateParameter unused)
Builder addSufficientAssumptionsForInfeasibility(int value)
Builder setNumBooleans(long value)
Builder mergeFrom(com.google.ortools.sat.CpSolverResponse other)
java.util.List< java.lang.Long > getSolutionUpperBoundsList()
repeated int64 solution_upper_bounds = 19;
Builder addTightenedVariables(int index, com.google.ortools.sat.IntegerVariableProto value)
long getSolution(int index)
long getNumBinaryPropagations()
int64 num_binary_propagations = 13;
Builder setPrimalIntegral(double value)
double primal_integral = 22;
Builder addAllTightenedVariables(java.lang.Iterable<? extends com.google.ortools.sat.IntegerVariableProto > values)
double getBestObjectiveBound()
double getObjectiveValue()
com.google.ortools.sat.IntegerVariableProtoOrBuilder getTightenedVariablesOrBuilder(int index)
Builder clearNumBinaryPropagations()
int64 num_binary_propagations = 13;
static final int SOLUTION_INFO_FIELD_NUMBER
boolean getAllSolutionsWereFound()
Builder setUserTime(double value)
double user_time = 16;
double getDeterministicTime()
double deterministic_time = 17;
.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
double getUserTime()
double user_time = 16;
.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 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
Builder setSufficientAssumptionsForInfeasibility(int index, int value)
java.util.List< java.lang.Long > getSolutionLowerBoundsList()
.lang.Override final com.google.protobuf.UnknownFieldSet getUnknownFields()
.lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
java.util.List< java.lang.Integer > getSufficientAssumptionsForInfeasibilityList()
static final int NUM_INTEGER_PROPAGATIONS_FIELD_NUMBER
Builder clearUserTime()
double user_time = 16;
long getNumIntegerPropagations()
int64 num_integer_propagations = 14;
.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
static com.google.ortools.sat.IntegerVariableProto getDefaultInstance()
Builder clearAllSolutionsWereFound()
long getNumConflicts()
int64 num_conflicts = 11;
double getDeterministicTime()
double deterministic_time = 17;
int getSufficientAssumptionsForInfeasibility(int index)
Builder setStatus(com.google.ortools.sat.CpSolverStatus value)
Builder addSolutionLowerBounds(long value)
double getPrimalIntegral()
double primal_integral = 22;
Builder clearNumBooleans()
java.util.List< java.lang.Long > getSolutionUpperBoundsList()
repeated int64 solution_upper_bounds = 19;
static com.google.ortools.sat.CpSolverResponse parseFrom(byte[] data)
com.google.protobuf.ByteString getSolutionInfoBytes()
long getNumBranches()
int64 num_branches = 12;
Builder setNumBinaryPropagations(long value)
int64 num_binary_propagations = 13;
.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 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)
long getNumBinaryPropagations()
int64 num_binary_propagations = 13;
.lang.Override com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
java.util.List< java.lang.Long > getSolutionLowerBoundsList()
com.google.ortools.sat.IntegerVariableProto getTightenedVariables(int index)
Builder removeTightenedVariables(int index)
double getBestObjectiveBound()
long getNumBranches()
int64 num_branches = 12;
int getSolutionCount()
static final int SOLUTION_FIELD_NUMBER
.lang.Deprecated static CpSolverStatus valueOf(int value)