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  @java.lang.Override public int getStatusValue() {
289  return status_;
290  }
299  @java.lang.Override public com.google.ortools.sat.CpSolverStatus getStatus() {
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  @java.lang.Override
319  public java.util.List<java.lang.Long>
321  return solution_;
322  }
334  public int getSolutionCount() {
335  return solution_.size();
336  }
349  public long getSolution(int index) {
350  return solution_.getLong(index);
351  }
352  private int solutionMemoizedSerializedSize = -1;
353 
354  public static final int OBJECTIVE_VALUE_FIELD_NUMBER = 3;
355  private double objectiveValue_;
367  @java.lang.Override
368  public double getObjectiveValue() {
369  return objectiveValue_;
370  }
371 
372  public static final int BEST_OBJECTIVE_BOUND_FIELD_NUMBER = 4;
373  private double bestObjectiveBound_;
384  @java.lang.Override
385  public double getBestObjectiveBound() {
386  return bestObjectiveBound_;
387  }
388 
389  public static final int SOLUTION_LOWER_BOUNDS_FIELD_NUMBER = 18;
390  private com.google.protobuf.Internal.LongList solutionLowerBounds_;
404  @java.lang.Override
405  public java.util.List<java.lang.Long>
407  return solutionLowerBounds_;
408  }
423  return solutionLowerBounds_.size();
424  }
439  public long getSolutionLowerBounds(int index) {
440  return solutionLowerBounds_.getLong(index);
441  }
442  private int solutionLowerBoundsMemoizedSerializedSize = -1;
443 
444  public static final int SOLUTION_UPPER_BOUNDS_FIELD_NUMBER = 19;
445  private com.google.protobuf.Internal.LongList solutionUpperBounds_;
450  @java.lang.Override
451  public java.util.List<java.lang.Long>
453  return solutionUpperBounds_;
454  }
460  return solutionUpperBounds_.size();
461  }
467  public long getSolutionUpperBounds(int index) {
468  return solutionUpperBounds_.getLong(index);
469  }
470  private int solutionUpperBoundsMemoizedSerializedSize = -1;
471 
472  public static final int TIGHTENED_VARIABLES_FIELD_NUMBER = 21;
473  private java.util.List<com.google.ortools.sat.IntegerVariableProto> tightenedVariables_;
490  @java.lang.Override
492  return tightenedVariables_;
493  }
510  @java.lang.Override
511  public java.util.List<? extends com.google.ortools.sat.IntegerVariableProtoOrBuilder>
513  return tightenedVariables_;
514  }
531  @java.lang.Override
533  return tightenedVariables_.size();
534  }
551  @java.lang.Override
553  return tightenedVariables_.get(index);
554  }
571  @java.lang.Override
573  int index) {
574  return tightenedVariables_.get(index);
575  }
576 
578  private com.google.protobuf.Internal.IntList sufficientAssumptionsForInfeasibility_;
598  @java.lang.Override
599  public java.util.List<java.lang.Integer>
601  return sufficientAssumptionsForInfeasibility_;
602  }
623  return sufficientAssumptionsForInfeasibility_.size();
624  }
646  return sufficientAssumptionsForInfeasibility_.getInt(index);
647  }
648  private int sufficientAssumptionsForInfeasibilityMemoizedSerializedSize = -1;
649 
650  public static final int ALL_SOLUTIONS_WERE_FOUND_FIELD_NUMBER = 5;
651  private boolean allSolutionsWereFound_;
663  @java.lang.Override
664  public boolean getAllSolutionsWereFound() {
665  return allSolutionsWereFound_;
666  }
667 
668  public static final int NUM_BOOLEANS_FIELD_NUMBER = 10;
669  private long numBooleans_;
678  @java.lang.Override
679  public long getNumBooleans() {
680  return numBooleans_;
681  }
682 
683  public static final int NUM_CONFLICTS_FIELD_NUMBER = 11;
684  private long numConflicts_;
689  @java.lang.Override
690  public long getNumConflicts() {
691  return numConflicts_;
692  }
693 
694  public static final int NUM_BRANCHES_FIELD_NUMBER = 12;
695  private long numBranches_;
700  @java.lang.Override
701  public long getNumBranches() {
702  return numBranches_;
703  }
704 
705  public static final int NUM_BINARY_PROPAGATIONS_FIELD_NUMBER = 13;
706  private long numBinaryPropagations_;
711  @java.lang.Override
712  public long getNumBinaryPropagations() {
713  return numBinaryPropagations_;
714  }
715 
716  public static final int NUM_INTEGER_PROPAGATIONS_FIELD_NUMBER = 14;
717  private long numIntegerPropagations_;
722  @java.lang.Override
724  return numIntegerPropagations_;
725  }
726 
727  public static final int WALL_TIME_FIELD_NUMBER = 15;
728  private double wallTime_;
733  @java.lang.Override
734  public double getWallTime() {
735  return wallTime_;
736  }
737 
738  public static final int USER_TIME_FIELD_NUMBER = 16;
739  private double userTime_;
744  @java.lang.Override
745  public double getUserTime() {
746  return userTime_;
747  }
748 
749  public static final int DETERMINISTIC_TIME_FIELD_NUMBER = 17;
750  private double deterministicTime_;
755  @java.lang.Override
756  public double getDeterministicTime() {
757  return deterministicTime_;
758  }
759 
760  public static final int PRIMAL_INTEGRAL_FIELD_NUMBER = 22;
761  private double primalIntegral_;
766  @java.lang.Override
767  public double getPrimalIntegral() {
768  return primalIntegral_;
769  }
770 
771  public static final int SOLUTION_INFO_FIELD_NUMBER = 20;
772  private volatile java.lang.Object solutionInfo_;
781  @java.lang.Override
782  public java.lang.String getSolutionInfo() {
783  java.lang.Object ref = solutionInfo_;
784  if (ref instanceof java.lang.String) {
785  return (java.lang.String) ref;
786  } else {
787  com.google.protobuf.ByteString bs =
788  (com.google.protobuf.ByteString) ref;
789  java.lang.String s = bs.toStringUtf8();
790  solutionInfo_ = s;
791  return s;
792  }
793  }
802  @java.lang.Override
803  public com.google.protobuf.ByteString
805  java.lang.Object ref = solutionInfo_;
806  if (ref instanceof java.lang.String) {
807  com.google.protobuf.ByteString b =
808  com.google.protobuf.ByteString.copyFromUtf8(
809  (java.lang.String) ref);
810  solutionInfo_ = b;
811  return b;
812  } else {
813  return (com.google.protobuf.ByteString) ref;
814  }
815  }
816 
817  private byte memoizedIsInitialized = -1;
818  @java.lang.Override
819  public final boolean isInitialized() {
820  byte isInitialized = memoizedIsInitialized;
821  if (isInitialized == 1) return true;
822  if (isInitialized == 0) return false;
823 
824  memoizedIsInitialized = 1;
825  return true;
826  }
827 
828  @java.lang.Override
829  public void writeTo(com.google.protobuf.CodedOutputStream output)
830  throws java.io.IOException {
832  if (status_ != com.google.ortools.sat.CpSolverStatus.UNKNOWN.getNumber()) {
833  output.writeEnum(1, status_);
834  }
835  if (getSolutionList().size() > 0) {
836  output.writeUInt32NoTag(18);
837  output.writeUInt32NoTag(solutionMemoizedSerializedSize);
838  }
839  for (int i = 0; i < solution_.size(); i++) {
840  output.writeInt64NoTag(solution_.getLong(i));
841  }
842  if (objectiveValue_ != 0D) {
843  output.writeDouble(3, objectiveValue_);
844  }
845  if (bestObjectiveBound_ != 0D) {
846  output.writeDouble(4, bestObjectiveBound_);
847  }
848  if (allSolutionsWereFound_ != false) {
849  output.writeBool(5, allSolutionsWereFound_);
850  }
851  if (numBooleans_ != 0L) {
852  output.writeInt64(10, numBooleans_);
853  }
854  if (numConflicts_ != 0L) {
855  output.writeInt64(11, numConflicts_);
856  }
857  if (numBranches_ != 0L) {
858  output.writeInt64(12, numBranches_);
859  }
860  if (numBinaryPropagations_ != 0L) {
861  output.writeInt64(13, numBinaryPropagations_);
862  }
863  if (numIntegerPropagations_ != 0L) {
864  output.writeInt64(14, numIntegerPropagations_);
865  }
866  if (wallTime_ != 0D) {
867  output.writeDouble(15, wallTime_);
868  }
869  if (userTime_ != 0D) {
870  output.writeDouble(16, userTime_);
871  }
872  if (deterministicTime_ != 0D) {
873  output.writeDouble(17, deterministicTime_);
874  }
875  if (getSolutionLowerBoundsList().size() > 0) {
876  output.writeUInt32NoTag(146);
877  output.writeUInt32NoTag(solutionLowerBoundsMemoizedSerializedSize);
878  }
879  for (int i = 0; i < solutionLowerBounds_.size(); i++) {
880  output.writeInt64NoTag(solutionLowerBounds_.getLong(i));
881  }
882  if (getSolutionUpperBoundsList().size() > 0) {
883  output.writeUInt32NoTag(154);
884  output.writeUInt32NoTag(solutionUpperBoundsMemoizedSerializedSize);
885  }
886  for (int i = 0; i < solutionUpperBounds_.size(); i++) {
887  output.writeInt64NoTag(solutionUpperBounds_.getLong(i));
888  }
889  if (!getSolutionInfoBytes().isEmpty()) {
890  com.google.protobuf.GeneratedMessageV3.writeString(output, 20, solutionInfo_);
891  }
892  for (int i = 0; i < tightenedVariables_.size(); i++) {
893  output.writeMessage(21, tightenedVariables_.get(i));
894  }
895  if (primalIntegral_ != 0D) {
896  output.writeDouble(22, primalIntegral_);
897  }
899  output.writeUInt32NoTag(186);
900  output.writeUInt32NoTag(sufficientAssumptionsForInfeasibilityMemoizedSerializedSize);
901  }
902  for (int i = 0; i < sufficientAssumptionsForInfeasibility_.size(); i++) {
903  output.writeInt32NoTag(sufficientAssumptionsForInfeasibility_.getInt(i));
904  }
905  unknownFields.writeTo(output);
906  }
907 
908  @java.lang.Override
909  public int getSerializedSize() {
910  int size = memoizedSize;
911  if (size != -1) return size;
912 
913  size = 0;
914  if (status_ != com.google.ortools.sat.CpSolverStatus.UNKNOWN.getNumber()) {
915  size += com.google.protobuf.CodedOutputStream
916  .computeEnumSize(1, status_);
917  }
918  {
919  int dataSize = 0;
920  for (int i = 0; i < solution_.size(); i++) {
921  dataSize += com.google.protobuf.CodedOutputStream
922  .computeInt64SizeNoTag(solution_.getLong(i));
923  }
924  size += dataSize;
925  if (!getSolutionList().isEmpty()) {
926  size += 1;
927  size += com.google.protobuf.CodedOutputStream
928  .computeInt32SizeNoTag(dataSize);
929  }
930  solutionMemoizedSerializedSize = dataSize;
931  }
932  if (objectiveValue_ != 0D) {
933  size += com.google.protobuf.CodedOutputStream
934  .computeDoubleSize(3, objectiveValue_);
935  }
936  if (bestObjectiveBound_ != 0D) {
937  size += com.google.protobuf.CodedOutputStream
938  .computeDoubleSize(4, bestObjectiveBound_);
939  }
940  if (allSolutionsWereFound_ != false) {
941  size += com.google.protobuf.CodedOutputStream
942  .computeBoolSize(5, allSolutionsWereFound_);
943  }
944  if (numBooleans_ != 0L) {
945  size += com.google.protobuf.CodedOutputStream
946  .computeInt64Size(10, numBooleans_);
947  }
948  if (numConflicts_ != 0L) {
949  size += com.google.protobuf.CodedOutputStream
950  .computeInt64Size(11, numConflicts_);
951  }
952  if (numBranches_ != 0L) {
953  size += com.google.protobuf.CodedOutputStream
954  .computeInt64Size(12, numBranches_);
955  }
956  if (numBinaryPropagations_ != 0L) {
957  size += com.google.protobuf.CodedOutputStream
958  .computeInt64Size(13, numBinaryPropagations_);
959  }
960  if (numIntegerPropagations_ != 0L) {
961  size += com.google.protobuf.CodedOutputStream
962  .computeInt64Size(14, numIntegerPropagations_);
963  }
964  if (wallTime_ != 0D) {
965  size += com.google.protobuf.CodedOutputStream
966  .computeDoubleSize(15, wallTime_);
967  }
968  if (userTime_ != 0D) {
969  size += com.google.protobuf.CodedOutputStream
970  .computeDoubleSize(16, userTime_);
971  }
972  if (deterministicTime_ != 0D) {
973  size += com.google.protobuf.CodedOutputStream
974  .computeDoubleSize(17, deterministicTime_);
975  }
976  {
977  int dataSize = 0;
978  for (int i = 0; i < solutionLowerBounds_.size(); i++) {
979  dataSize += com.google.protobuf.CodedOutputStream
980  .computeInt64SizeNoTag(solutionLowerBounds_.getLong(i));
981  }
982  size += dataSize;
983  if (!getSolutionLowerBoundsList().isEmpty()) {
984  size += 2;
985  size += com.google.protobuf.CodedOutputStream
986  .computeInt32SizeNoTag(dataSize);
987  }
988  solutionLowerBoundsMemoizedSerializedSize = dataSize;
989  }
990  {
991  int dataSize = 0;
992  for (int i = 0; i < solutionUpperBounds_.size(); i++) {
993  dataSize += com.google.protobuf.CodedOutputStream
994  .computeInt64SizeNoTag(solutionUpperBounds_.getLong(i));
995  }
996  size += dataSize;
997  if (!getSolutionUpperBoundsList().isEmpty()) {
998  size += 2;
999  size += com.google.protobuf.CodedOutputStream
1000  .computeInt32SizeNoTag(dataSize);
1001  }
1002  solutionUpperBoundsMemoizedSerializedSize = dataSize;
1003  }
1004  if (!getSolutionInfoBytes().isEmpty()) {
1005  size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, solutionInfo_);
1006  }
1007  for (int i = 0; i < tightenedVariables_.size(); i++) {
1008  size += com.google.protobuf.CodedOutputStream
1009  .computeMessageSize(21, tightenedVariables_.get(i));
1010  }
1011  if (primalIntegral_ != 0D) {
1012  size += com.google.protobuf.CodedOutputStream
1013  .computeDoubleSize(22, primalIntegral_);
1014  }
1015  {
1016  int dataSize = 0;
1017  for (int i = 0; i < sufficientAssumptionsForInfeasibility_.size(); i++) {
1018  dataSize += com.google.protobuf.CodedOutputStream
1019  .computeInt32SizeNoTag(sufficientAssumptionsForInfeasibility_.getInt(i));
1020  }
1021  size += dataSize;
1023  size += 2;
1024  size += com.google.protobuf.CodedOutputStream
1025  .computeInt32SizeNoTag(dataSize);
1026  }
1027  sufficientAssumptionsForInfeasibilityMemoizedSerializedSize = dataSize;
1028  }
1029  size += unknownFields.getSerializedSize();
1030  memoizedSize = size;
1031  return size;
1032  }
1033 
1034  @java.lang.Override
1035  public boolean equals(final java.lang.Object obj) {
1036  if (obj == this) {
1037  return true;
1038  }
1039  if (!(obj instanceof com.google.ortools.sat.CpSolverResponse)) {
1040  return super.equals(obj);
1041  }
1043 
1044  if (status_ != other.status_) return false;
1045  if (!getSolutionList()
1046  .equals(other.getSolutionList())) return false;
1047  if (java.lang.Double.doubleToLongBits(getObjectiveValue())
1048  != java.lang.Double.doubleToLongBits(
1049  other.getObjectiveValue())) return false;
1050  if (java.lang.Double.doubleToLongBits(getBestObjectiveBound())
1051  != java.lang.Double.doubleToLongBits(
1052  other.getBestObjectiveBound())) return false;
1054  .equals(other.getSolutionLowerBoundsList())) return false;
1056  .equals(other.getSolutionUpperBoundsList())) return false;
1058  .equals(other.getTightenedVariablesList())) return false;
1060  .equals(other.getSufficientAssumptionsForInfeasibilityList())) return false;
1062  != other.getAllSolutionsWereFound()) return false;
1063  if (getNumBooleans()
1064  != other.getNumBooleans()) return false;
1065  if (getNumConflicts()
1066  != other.getNumConflicts()) return false;
1067  if (getNumBranches()
1068  != other.getNumBranches()) return false;
1070  != other.getNumBinaryPropagations()) return false;
1072  != other.getNumIntegerPropagations()) return false;
1073  if (java.lang.Double.doubleToLongBits(getWallTime())
1074  != java.lang.Double.doubleToLongBits(
1075  other.getWallTime())) return false;
1076  if (java.lang.Double.doubleToLongBits(getUserTime())
1077  != java.lang.Double.doubleToLongBits(
1078  other.getUserTime())) return false;
1079  if (java.lang.Double.doubleToLongBits(getDeterministicTime())
1080  != java.lang.Double.doubleToLongBits(
1081  other.getDeterministicTime())) return false;
1082  if (java.lang.Double.doubleToLongBits(getPrimalIntegral())
1083  != java.lang.Double.doubleToLongBits(
1084  other.getPrimalIntegral())) return false;
1085  if (!getSolutionInfo()
1086  .equals(other.getSolutionInfo())) return false;
1087  if (!unknownFields.equals(other.unknownFields)) return false;
1088  return true;
1089  }
1090 
1091  @java.lang.Override
1092  public int hashCode() {
1093  if (memoizedHashCode != 0) {
1094  return memoizedHashCode;
1095  }
1096  int hash = 41;
1097  hash = (19 * hash) + getDescriptor().hashCode();
1098  hash = (37 * hash) + STATUS_FIELD_NUMBER;
1099  hash = (53 * hash) + status_;
1100  if (getSolutionCount() > 0) {
1101  hash = (37 * hash) + SOLUTION_FIELD_NUMBER;
1102  hash = (53 * hash) + getSolutionList().hashCode();
1103  }
1104  hash = (37 * hash) + OBJECTIVE_VALUE_FIELD_NUMBER;
1105  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1106  java.lang.Double.doubleToLongBits(getObjectiveValue()));
1107  hash = (37 * hash) + BEST_OBJECTIVE_BOUND_FIELD_NUMBER;
1108  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1109  java.lang.Double.doubleToLongBits(getBestObjectiveBound()));
1110  if (getSolutionLowerBoundsCount() > 0) {
1111  hash = (37 * hash) + SOLUTION_LOWER_BOUNDS_FIELD_NUMBER;
1112  hash = (53 * hash) + getSolutionLowerBoundsList().hashCode();
1113  }
1114  if (getSolutionUpperBoundsCount() > 0) {
1115  hash = (37 * hash) + SOLUTION_UPPER_BOUNDS_FIELD_NUMBER;
1116  hash = (53 * hash) + getSolutionUpperBoundsList().hashCode();
1117  }
1118  if (getTightenedVariablesCount() > 0) {
1119  hash = (37 * hash) + TIGHTENED_VARIABLES_FIELD_NUMBER;
1120  hash = (53 * hash) + getTightenedVariablesList().hashCode();
1121  }
1124  hash = (53 * hash) + getSufficientAssumptionsForInfeasibilityList().hashCode();
1125  }
1126  hash = (37 * hash) + ALL_SOLUTIONS_WERE_FOUND_FIELD_NUMBER;
1127  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1129  hash = (37 * hash) + NUM_BOOLEANS_FIELD_NUMBER;
1130  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1131  getNumBooleans());
1132  hash = (37 * hash) + NUM_CONFLICTS_FIELD_NUMBER;
1133  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1134  getNumConflicts());
1135  hash = (37 * hash) + NUM_BRANCHES_FIELD_NUMBER;
1136  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1137  getNumBranches());
1138  hash = (37 * hash) + NUM_BINARY_PROPAGATIONS_FIELD_NUMBER;
1139  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1141  hash = (37 * hash) + NUM_INTEGER_PROPAGATIONS_FIELD_NUMBER;
1142  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1144  hash = (37 * hash) + WALL_TIME_FIELD_NUMBER;
1145  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1146  java.lang.Double.doubleToLongBits(getWallTime()));
1147  hash = (37 * hash) + USER_TIME_FIELD_NUMBER;
1148  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1149  java.lang.Double.doubleToLongBits(getUserTime()));
1150  hash = (37 * hash) + DETERMINISTIC_TIME_FIELD_NUMBER;
1151  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1152  java.lang.Double.doubleToLongBits(getDeterministicTime()));
1153  hash = (37 * hash) + PRIMAL_INTEGRAL_FIELD_NUMBER;
1154  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1155  java.lang.Double.doubleToLongBits(getPrimalIntegral()));
1156  hash = (37 * hash) + SOLUTION_INFO_FIELD_NUMBER;
1157  hash = (53 * hash) + getSolutionInfo().hashCode();
1158  hash = (29 * hash) + unknownFields.hashCode();
1159  memoizedHashCode = hash;
1160  return hash;
1161  }
1162 
1164  java.nio.ByteBuffer data)
1165  throws com.google.protobuf.InvalidProtocolBufferException {
1166  return PARSER.parseFrom(data);
1167  }
1169  java.nio.ByteBuffer data,
1170  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1171  throws com.google.protobuf.InvalidProtocolBufferException {
1172  return PARSER.parseFrom(data, extensionRegistry);
1173  }
1175  com.google.protobuf.ByteString data)
1176  throws com.google.protobuf.InvalidProtocolBufferException {
1177  return PARSER.parseFrom(data);
1178  }
1180  com.google.protobuf.ByteString data,
1181  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1182  throws com.google.protobuf.InvalidProtocolBufferException {
1183  return PARSER.parseFrom(data, extensionRegistry);
1184  }
1185  public static com.google.ortools.sat.CpSolverResponse parseFrom(byte[] data)
1186  throws com.google.protobuf.InvalidProtocolBufferException {
1187  return PARSER.parseFrom(data);
1188  }
1190  byte[] data,
1191  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1192  throws com.google.protobuf.InvalidProtocolBufferException {
1193  return PARSER.parseFrom(data, extensionRegistry);
1194  }
1195  public static com.google.ortools.sat.CpSolverResponse parseFrom(java.io.InputStream input)
1196  throws java.io.IOException {
1197  return com.google.protobuf.GeneratedMessageV3
1198  .parseWithIOException(PARSER, input);
1199  }
1201  java.io.InputStream input,
1202  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1203  throws java.io.IOException {
1204  return com.google.protobuf.GeneratedMessageV3
1205  .parseWithIOException(PARSER, input, extensionRegistry);
1206  }
1207  public static com.google.ortools.sat.CpSolverResponse parseDelimitedFrom(java.io.InputStream input)
1208  throws java.io.IOException {
1209  return com.google.protobuf.GeneratedMessageV3
1210  .parseDelimitedWithIOException(PARSER, input);
1211  }
1213  java.io.InputStream input,
1214  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1215  throws java.io.IOException {
1216  return com.google.protobuf.GeneratedMessageV3
1217  .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
1218  }
1220  com.google.protobuf.CodedInputStream input)
1221  throws java.io.IOException {
1222  return com.google.protobuf.GeneratedMessageV3
1223  .parseWithIOException(PARSER, input);
1224  }
1226  com.google.protobuf.CodedInputStream input,
1227  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1228  throws java.io.IOException {
1229  return com.google.protobuf.GeneratedMessageV3
1230  .parseWithIOException(PARSER, input, extensionRegistry);
1231  }
1232 
1233  @java.lang.Override
1234  public Builder newBuilderForType() { return newBuilder(); }
1235  public static Builder newBuilder() {
1236  return DEFAULT_INSTANCE.toBuilder();
1237  }
1239  return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1240  }
1241  @java.lang.Override
1242  public Builder toBuilder() {
1243  return this == DEFAULT_INSTANCE
1244  ? new Builder() : new Builder().mergeFrom(this);
1245  }
1246 
1247  @java.lang.Override
1249  com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1250  Builder builder = new Builder(parent);
1251  return builder;
1252  }
1263  public static final class Builder extends
1264  com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
1265  // @@protoc_insertion_point(builder_implements:operations_research.sat.CpSolverResponse)
1266  com.google.ortools.sat.CpSolverResponseOrBuilder {
1267  public static final com.google.protobuf.Descriptors.Descriptor
1269  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_descriptor;
1270  }
1271 
1272  @java.lang.Override
1273  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
1275  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_fieldAccessorTable
1276  .ensureFieldAccessorsInitialized(
1278  }
1279 
1280  // Construct using com.google.ortools.sat.CpSolverResponse.newBuilder()
1281  private Builder() {
1282  maybeForceBuilderInitialization();
1283  }
1284 
1285  private Builder(
1286  com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1287  super(parent);
1288  maybeForceBuilderInitialization();
1289  }
1290  private void maybeForceBuilderInitialization() {
1291  if (com.google.protobuf.GeneratedMessageV3
1292  .alwaysUseFieldBuilders) {
1293  getTightenedVariablesFieldBuilder();
1294  }
1295  }
1296  @java.lang.Override
1297  public Builder clear() {
1298  super.clear();
1299  status_ = 0;
1300 
1301  solution_ = emptyLongList();
1302  bitField0_ = (bitField0_ & ~0x00000001);
1303  objectiveValue_ = 0D;
1304 
1305  bestObjectiveBound_ = 0D;
1306 
1307  solutionLowerBounds_ = emptyLongList();
1308  bitField0_ = (bitField0_ & ~0x00000002);
1309  solutionUpperBounds_ = emptyLongList();
1310  bitField0_ = (bitField0_ & ~0x00000004);
1311  if (tightenedVariablesBuilder_ == null) {
1312  tightenedVariables_ = java.util.Collections.emptyList();
1313  bitField0_ = (bitField0_ & ~0x00000008);
1314  } else {
1315  tightenedVariablesBuilder_.clear();
1316  }
1317  sufficientAssumptionsForInfeasibility_ = emptyIntList();
1318  bitField0_ = (bitField0_ & ~0x00000010);
1319  allSolutionsWereFound_ = false;
1320 
1321  numBooleans_ = 0L;
1322 
1323  numConflicts_ = 0L;
1324 
1325  numBranches_ = 0L;
1326 
1327  numBinaryPropagations_ = 0L;
1328 
1329  numIntegerPropagations_ = 0L;
1330 
1331  wallTime_ = 0D;
1332 
1333  userTime_ = 0D;
1334 
1335  deterministicTime_ = 0D;
1336 
1337  primalIntegral_ = 0D;
1338 
1339  solutionInfo_ = "";
1340 
1341  return this;
1342  }
1343 
1344  @java.lang.Override
1345  public com.google.protobuf.Descriptors.Descriptor
1347  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_descriptor;
1348  }
1349 
1350  @java.lang.Override
1353  }
1354 
1355  @java.lang.Override
1358  if (!result.isInitialized()) {
1359  throw newUninitializedMessageException(result);
1360  }
1361  return result;
1362  }
1363 
1364  @java.lang.Override
1367  int from_bitField0_ = bitField0_;
1368  result.status_ = status_;
1369  if (((bitField0_ & 0x00000001) != 0)) {
1370  solution_.makeImmutable();
1371  bitField0_ = (bitField0_ & ~0x00000001);
1372  }
1373  result.solution_ = solution_;
1374  result.objectiveValue_ = objectiveValue_;
1375  result.bestObjectiveBound_ = bestObjectiveBound_;
1376  if (((bitField0_ & 0x00000002) != 0)) {
1377  solutionLowerBounds_.makeImmutable();
1378  bitField0_ = (bitField0_ & ~0x00000002);
1379  }
1380  result.solutionLowerBounds_ = solutionLowerBounds_;
1381  if (((bitField0_ & 0x00000004) != 0)) {
1382  solutionUpperBounds_.makeImmutable();
1383  bitField0_ = (bitField0_ & ~0x00000004);
1384  }
1385  result.solutionUpperBounds_ = solutionUpperBounds_;
1386  if (tightenedVariablesBuilder_ == null) {
1387  if (((bitField0_ & 0x00000008) != 0)) {
1388  tightenedVariables_ = java.util.Collections.unmodifiableList(tightenedVariables_);
1389  bitField0_ = (bitField0_ & ~0x00000008);
1390  }
1391  result.tightenedVariables_ = tightenedVariables_;
1392  } else {
1393  result.tightenedVariables_ = tightenedVariablesBuilder_.build();
1394  }
1395  if (((bitField0_ & 0x00000010) != 0)) {
1396  sufficientAssumptionsForInfeasibility_.makeImmutable();
1397  bitField0_ = (bitField0_ & ~0x00000010);
1398  }
1399  result.sufficientAssumptionsForInfeasibility_ = sufficientAssumptionsForInfeasibility_;
1400  result.allSolutionsWereFound_ = allSolutionsWereFound_;
1401  result.numBooleans_ = numBooleans_;
1402  result.numConflicts_ = numConflicts_;
1403  result.numBranches_ = numBranches_;
1404  result.numBinaryPropagations_ = numBinaryPropagations_;
1405  result.numIntegerPropagations_ = numIntegerPropagations_;
1406  result.wallTime_ = wallTime_;
1407  result.userTime_ = userTime_;
1408  result.deterministicTime_ = deterministicTime_;
1409  result.primalIntegral_ = primalIntegral_;
1410  result.solutionInfo_ = solutionInfo_;
1411  onBuilt();
1412  return result;
1413  }
1414 
1415  @java.lang.Override
1416  public Builder clone() {
1417  return super.clone();
1418  }
1419  @java.lang.Override
1421  com.google.protobuf.Descriptors.FieldDescriptor field,
1422  java.lang.Object value) {
1423  return super.setField(field, value);
1424  }
1425  @java.lang.Override
1427  com.google.protobuf.Descriptors.FieldDescriptor field) {
1428  return super.clearField(field);
1429  }
1430  @java.lang.Override
1432  com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1433  return super.clearOneof(oneof);
1434  }
1435  @java.lang.Override
1437  com.google.protobuf.Descriptors.FieldDescriptor field,
1438  int index, java.lang.Object value) {
1439  return super.setRepeatedField(field, index, value);
1440  }
1441  @java.lang.Override
1443  com.google.protobuf.Descriptors.FieldDescriptor field,
1444  java.lang.Object value) {
1445  return super.addRepeatedField(field, value);
1446  }
1447  @java.lang.Override
1448  public Builder mergeFrom(com.google.protobuf.Message other) {
1449  if (other instanceof com.google.ortools.sat.CpSolverResponse) {
1451  } else {
1452  super.mergeFrom(other);
1453  return this;
1454  }
1455  }
1456 
1458  if (other == com.google.ortools.sat.CpSolverResponse.getDefaultInstance()) return this;
1459  if (other.status_ != 0) {
1460  setStatusValue(other.getStatusValue());
1461  }
1462  if (!other.solution_.isEmpty()) {
1463  if (solution_.isEmpty()) {
1464  solution_ = other.solution_;
1465  bitField0_ = (bitField0_ & ~0x00000001);
1466  } else {
1467  ensureSolutionIsMutable();
1468  solution_.addAll(other.solution_);
1469  }
1470  onChanged();
1471  }
1472  if (other.getObjectiveValue() != 0D) {
1473  setObjectiveValue(other.getObjectiveValue());
1474  }
1475  if (other.getBestObjectiveBound() != 0D) {
1476  setBestObjectiveBound(other.getBestObjectiveBound());
1477  }
1478  if (!other.solutionLowerBounds_.isEmpty()) {
1479  if (solutionLowerBounds_.isEmpty()) {
1480  solutionLowerBounds_ = other.solutionLowerBounds_;
1481  bitField0_ = (bitField0_ & ~0x00000002);
1482  } else {
1483  ensureSolutionLowerBoundsIsMutable();
1484  solutionLowerBounds_.addAll(other.solutionLowerBounds_);
1485  }
1486  onChanged();
1487  }
1488  if (!other.solutionUpperBounds_.isEmpty()) {
1489  if (solutionUpperBounds_.isEmpty()) {
1490  solutionUpperBounds_ = other.solutionUpperBounds_;
1491  bitField0_ = (bitField0_ & ~0x00000004);
1492  } else {
1493  ensureSolutionUpperBoundsIsMutable();
1494  solutionUpperBounds_.addAll(other.solutionUpperBounds_);
1495  }
1496  onChanged();
1497  }
1498  if (tightenedVariablesBuilder_ == null) {
1499  if (!other.tightenedVariables_.isEmpty()) {
1500  if (tightenedVariables_.isEmpty()) {
1501  tightenedVariables_ = other.tightenedVariables_;
1502  bitField0_ = (bitField0_ & ~0x00000008);
1503  } else {
1504  ensureTightenedVariablesIsMutable();
1505  tightenedVariables_.addAll(other.tightenedVariables_);
1506  }
1507  onChanged();
1508  }
1509  } else {
1510  if (!other.tightenedVariables_.isEmpty()) {
1511  if (tightenedVariablesBuilder_.isEmpty()) {
1512  tightenedVariablesBuilder_.dispose();
1513  tightenedVariablesBuilder_ = null;
1514  tightenedVariables_ = other.tightenedVariables_;
1515  bitField0_ = (bitField0_ & ~0x00000008);
1516  tightenedVariablesBuilder_ =
1517  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
1518  getTightenedVariablesFieldBuilder() : null;
1519  } else {
1520  tightenedVariablesBuilder_.addAllMessages(other.tightenedVariables_);
1521  }
1522  }
1523  }
1524  if (!other.sufficientAssumptionsForInfeasibility_.isEmpty()) {
1525  if (sufficientAssumptionsForInfeasibility_.isEmpty()) {
1526  sufficientAssumptionsForInfeasibility_ = other.sufficientAssumptionsForInfeasibility_;
1527  bitField0_ = (bitField0_ & ~0x00000010);
1528  } else {
1529  ensureSufficientAssumptionsForInfeasibilityIsMutable();
1530  sufficientAssumptionsForInfeasibility_.addAll(other.sufficientAssumptionsForInfeasibility_);
1531  }
1532  onChanged();
1533  }
1534  if (other.getAllSolutionsWereFound() != false) {
1535  setAllSolutionsWereFound(other.getAllSolutionsWereFound());
1536  }
1537  if (other.getNumBooleans() != 0L) {
1538  setNumBooleans(other.getNumBooleans());
1539  }
1540  if (other.getNumConflicts() != 0L) {
1541  setNumConflicts(other.getNumConflicts());
1542  }
1543  if (other.getNumBranches() != 0L) {
1544  setNumBranches(other.getNumBranches());
1545  }
1546  if (other.getNumBinaryPropagations() != 0L) {
1547  setNumBinaryPropagations(other.getNumBinaryPropagations());
1548  }
1549  if (other.getNumIntegerPropagations() != 0L) {
1550  setNumIntegerPropagations(other.getNumIntegerPropagations());
1551  }
1552  if (other.getWallTime() != 0D) {
1553  setWallTime(other.getWallTime());
1554  }
1555  if (other.getUserTime() != 0D) {
1556  setUserTime(other.getUserTime());
1557  }
1558  if (other.getDeterministicTime() != 0D) {
1559  setDeterministicTime(other.getDeterministicTime());
1560  }
1561  if (other.getPrimalIntegral() != 0D) {
1562  setPrimalIntegral(other.getPrimalIntegral());
1563  }
1564  if (!other.getSolutionInfo().isEmpty()) {
1565  solutionInfo_ = other.solutionInfo_;
1566  onChanged();
1567  }
1568  this.mergeUnknownFields(other.unknownFields);
1569  onChanged();
1570  return this;
1571  }
1572 
1573  @java.lang.Override
1574  public final boolean isInitialized() {
1575  return true;
1576  }
1577 
1578  @java.lang.Override
1580  com.google.protobuf.CodedInputStream input,
1581  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1582  throws java.io.IOException {
1583  com.google.ortools.sat.CpSolverResponse parsedMessage = null;
1584  try {
1585  parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
1586  } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1587  parsedMessage = (com.google.ortools.sat.CpSolverResponse) e.getUnfinishedMessage();
1588  throw e.unwrapIOException();
1589  } finally {
1590  if (parsedMessage != null) {
1591  mergeFrom(parsedMessage);
1592  }
1593  }
1594  return this;
1595  }
1596  private int bitField0_;
1597 
1598  private int status_ = 0;
1607  @java.lang.Override public int getStatusValue() {
1608  return status_;
1609  }
1619  public Builder setStatusValue(int value) {
1620 
1621  status_ = value;
1622  onChanged();
1623  return this;
1624  }
1633  @java.lang.Override
1635  @SuppressWarnings("deprecation")
1637  return result == null ? com.google.ortools.sat.CpSolverStatus.UNRECOGNIZED : result;
1638  }
1649  if (value == null) {
1650  throw new NullPointerException();
1651  }
1652 
1653  status_ = value.getNumber();
1654  onChanged();
1655  return this;
1656  }
1666 
1667  status_ = 0;
1668  onChanged();
1669  return this;
1670  }
1671 
1672  private com.google.protobuf.Internal.LongList solution_ = emptyLongList();
1673  private void ensureSolutionIsMutable() {
1674  if (!((bitField0_ & 0x00000001) != 0)) {
1675  solution_ = mutableCopy(solution_);
1676  bitField0_ |= 0x00000001;
1677  }
1678  }
1690  public java.util.List<java.lang.Long>
1692  return ((bitField0_ & 0x00000001) != 0) ?
1693  java.util.Collections.unmodifiableList(solution_) : solution_;
1694  }
1706  public int getSolutionCount() {
1707  return solution_.size();
1708  }
1721  public long getSolution(int index) {
1722  return solution_.getLong(index);
1723  }
1738  int index, long value) {
1739  ensureSolutionIsMutable();
1740  solution_.setLong(index, value);
1741  onChanged();
1742  return this;
1743  }
1756  public Builder addSolution(long value) {
1757  ensureSolutionIsMutable();
1758  solution_.addLong(value);
1759  onChanged();
1760  return this;
1761  }
1775  java.lang.Iterable<? extends java.lang.Long> values) {
1776  ensureSolutionIsMutable();
1777  com.google.protobuf.AbstractMessageLite.Builder.addAll(
1778  values, solution_);
1779  onChanged();
1780  return this;
1781  }
1794  solution_ = emptyLongList();
1795  bitField0_ = (bitField0_ & ~0x00000001);
1796  onChanged();
1797  return this;
1798  }
1799 
1800  private double objectiveValue_ ;
1812  @java.lang.Override
1813  public double getObjectiveValue() {
1814  return objectiveValue_;
1815  }
1828  public Builder setObjectiveValue(double value) {
1829 
1830  objectiveValue_ = value;
1831  onChanged();
1832  return this;
1833  }
1846 
1847  objectiveValue_ = 0D;
1848  onChanged();
1849  return this;
1850  }
1851 
1852  private double bestObjectiveBound_ ;
1863  @java.lang.Override
1864  public double getBestObjectiveBound() {
1865  return bestObjectiveBound_;
1866  }
1878  public Builder setBestObjectiveBound(double value) {
1879 
1880  bestObjectiveBound_ = value;
1881  onChanged();
1882  return this;
1883  }
1895 
1896  bestObjectiveBound_ = 0D;
1897  onChanged();
1898  return this;
1899  }
1900 
1901  private com.google.protobuf.Internal.LongList solutionLowerBounds_ = emptyLongList();
1902  private void ensureSolutionLowerBoundsIsMutable() {
1903  if (!((bitField0_ & 0x00000002) != 0)) {
1904  solutionLowerBounds_ = mutableCopy(solutionLowerBounds_);
1905  bitField0_ |= 0x00000002;
1906  }
1907  }
1921  public java.util.List<java.lang.Long>
1923  return ((bitField0_ & 0x00000002) != 0) ?
1924  java.util.Collections.unmodifiableList(solutionLowerBounds_) : solutionLowerBounds_;
1925  }
1940  return solutionLowerBounds_.size();
1941  }
1956  public long getSolutionLowerBounds(int index) {
1957  return solutionLowerBounds_.getLong(index);
1958  }
1975  int index, long value) {
1976  ensureSolutionLowerBoundsIsMutable();
1977  solutionLowerBounds_.setLong(index, value);
1978  onChanged();
1979  return this;
1980  }
1995  public Builder addSolutionLowerBounds(long value) {
1996  ensureSolutionLowerBoundsIsMutable();
1997  solutionLowerBounds_.addLong(value);
1998  onChanged();
1999  return this;
2000  }
2016  java.lang.Iterable<? extends java.lang.Long> values) {
2017  ensureSolutionLowerBoundsIsMutable();
2018  com.google.protobuf.AbstractMessageLite.Builder.addAll(
2019  values, solutionLowerBounds_);
2020  onChanged();
2021  return this;
2022  }
2037  solutionLowerBounds_ = emptyLongList();
2038  bitField0_ = (bitField0_ & ~0x00000002);
2039  onChanged();
2040  return this;
2041  }
2042 
2043  private com.google.protobuf.Internal.LongList solutionUpperBounds_ = emptyLongList();
2044  private void ensureSolutionUpperBoundsIsMutable() {
2045  if (!((bitField0_ & 0x00000004) != 0)) {
2046  solutionUpperBounds_ = mutableCopy(solutionUpperBounds_);
2047  bitField0_ |= 0x00000004;
2048  }
2049  }
2054  public java.util.List<java.lang.Long>
2056  return ((bitField0_ & 0x00000004) != 0) ?
2057  java.util.Collections.unmodifiableList(solutionUpperBounds_) : solutionUpperBounds_;
2058  }
2064  return solutionUpperBounds_.size();
2065  }
2071  public long getSolutionUpperBounds(int index) {
2072  return solutionUpperBounds_.getLong(index);
2073  }
2081  int index, long value) {
2082  ensureSolutionUpperBoundsIsMutable();
2083  solutionUpperBounds_.setLong(index, value);
2084  onChanged();
2085  return this;
2086  }
2092  public Builder addSolutionUpperBounds(long value) {
2093  ensureSolutionUpperBoundsIsMutable();
2094  solutionUpperBounds_.addLong(value);
2095  onChanged();
2096  return this;
2097  }
2104  java.lang.Iterable<? extends java.lang.Long> values) {
2105  ensureSolutionUpperBoundsIsMutable();
2106  com.google.protobuf.AbstractMessageLite.Builder.addAll(
2107  values, solutionUpperBounds_);
2108  onChanged();
2109  return this;
2110  }
2116  solutionUpperBounds_ = emptyLongList();
2117  bitField0_ = (bitField0_ & ~0x00000004);
2118  onChanged();
2119  return this;
2120  }
2121 
2122  private java.util.List<com.google.ortools.sat.IntegerVariableProto> tightenedVariables_ =
2123  java.util.Collections.emptyList();
2124  private void ensureTightenedVariablesIsMutable() {
2125  if (!((bitField0_ & 0x00000008) != 0)) {
2126  tightenedVariables_ = new java.util.ArrayList<com.google.ortools.sat.IntegerVariableProto>(tightenedVariables_);
2127  bitField0_ |= 0x00000008;
2128  }
2129  }
2130 
2131  private com.google.protobuf.RepeatedFieldBuilderV3<
2133 
2151  if (tightenedVariablesBuilder_ == null) {
2152  return java.util.Collections.unmodifiableList(tightenedVariables_);
2153  } else {
2154  return tightenedVariablesBuilder_.getMessageList();
2155  }
2156  }
2174  if (tightenedVariablesBuilder_ == null) {
2175  return tightenedVariables_.size();
2176  } else {
2177  return tightenedVariablesBuilder_.getCount();
2178  }
2179  }
2197  if (tightenedVariablesBuilder_ == null) {
2198  return tightenedVariables_.get(index);
2199  } else {
2200  return tightenedVariablesBuilder_.getMessage(index);
2201  }
2202  }
2220  int index, com.google.ortools.sat.IntegerVariableProto value) {
2221  if (tightenedVariablesBuilder_ == null) {
2222  if (value == null) {
2223  throw new NullPointerException();
2224  }
2225  ensureTightenedVariablesIsMutable();
2226  tightenedVariables_.set(index, value);
2227  onChanged();
2228  } else {
2229  tightenedVariablesBuilder_.setMessage(index, value);
2230  }
2231  return this;
2232  }
2250  int index, com.google.ortools.sat.IntegerVariableProto.Builder builderForValue) {
2251  if (tightenedVariablesBuilder_ == null) {
2252  ensureTightenedVariablesIsMutable();
2253  tightenedVariables_.set(index, builderForValue.build());
2254  onChanged();
2255  } else {
2256  tightenedVariablesBuilder_.setMessage(index, builderForValue.build());
2257  }
2258  return this;
2259  }
2277  if (tightenedVariablesBuilder_ == null) {
2278  if (value == null) {
2279  throw new NullPointerException();
2280  }
2281  ensureTightenedVariablesIsMutable();
2282  tightenedVariables_.add(value);
2283  onChanged();
2284  } else {
2285  tightenedVariablesBuilder_.addMessage(value);
2286  }
2287  return this;
2288  }
2306  int index, com.google.ortools.sat.IntegerVariableProto value) {
2307  if (tightenedVariablesBuilder_ == null) {
2308  if (value == null) {
2309  throw new NullPointerException();
2310  }
2311  ensureTightenedVariablesIsMutable();
2312  tightenedVariables_.add(index, value);
2313  onChanged();
2314  } else {
2315  tightenedVariablesBuilder_.addMessage(index, value);
2316  }
2317  return this;
2318  }
2336  com.google.ortools.sat.IntegerVariableProto.Builder builderForValue) {
2337  if (tightenedVariablesBuilder_ == null) {
2338  ensureTightenedVariablesIsMutable();
2339  tightenedVariables_.add(builderForValue.build());
2340  onChanged();
2341  } else {
2342  tightenedVariablesBuilder_.addMessage(builderForValue.build());
2343  }
2344  return this;
2345  }
2363  int index, com.google.ortools.sat.IntegerVariableProto.Builder builderForValue) {
2364  if (tightenedVariablesBuilder_ == null) {
2365  ensureTightenedVariablesIsMutable();
2366  tightenedVariables_.add(index, builderForValue.build());
2367  onChanged();
2368  } else {
2369  tightenedVariablesBuilder_.addMessage(index, builderForValue.build());
2370  }
2371  return this;
2372  }
2390  java.lang.Iterable<? extends com.google.ortools.sat.IntegerVariableProto> values) {
2391  if (tightenedVariablesBuilder_ == null) {
2392  ensureTightenedVariablesIsMutable();
2393  com.google.protobuf.AbstractMessageLite.Builder.addAll(
2394  values, tightenedVariables_);
2395  onChanged();
2396  } else {
2397  tightenedVariablesBuilder_.addAllMessages(values);
2398  }
2399  return this;
2400  }
2418  if (tightenedVariablesBuilder_ == null) {
2419  tightenedVariables_ = java.util.Collections.emptyList();
2420  bitField0_ = (bitField0_ & ~0x00000008);
2421  onChanged();
2422  } else {
2423  tightenedVariablesBuilder_.clear();
2424  }
2425  return this;
2426  }
2443  public Builder removeTightenedVariables(int index) {
2444  if (tightenedVariablesBuilder_ == null) {
2445  ensureTightenedVariablesIsMutable();
2446  tightenedVariables_.remove(index);
2447  onChanged();
2448  } else {
2449  tightenedVariablesBuilder_.remove(index);
2450  }
2451  return this;
2452  }
2470  int index) {
2471  return getTightenedVariablesFieldBuilder().getBuilder(index);
2472  }
2490  int index) {
2491  if (tightenedVariablesBuilder_ == null) {
2492  return tightenedVariables_.get(index); } else {
2493  return tightenedVariablesBuilder_.getMessageOrBuilder(index);
2494  }
2495  }
2512  public java.util.List<? extends com.google.ortools.sat.IntegerVariableProtoOrBuilder>
2514  if (tightenedVariablesBuilder_ != null) {
2515  return tightenedVariablesBuilder_.getMessageOrBuilderList();
2516  } else {
2517  return java.util.Collections.unmodifiableList(tightenedVariables_);
2518  }
2519  }
2537  return getTightenedVariablesFieldBuilder().addBuilder(
2539  }
2557  int index) {
2558  return getTightenedVariablesFieldBuilder().addBuilder(
2560  }
2577  public java.util.List<com.google.ortools.sat.IntegerVariableProto.Builder>
2579  return getTightenedVariablesFieldBuilder().getBuilderList();
2580  }
2581  private com.google.protobuf.RepeatedFieldBuilderV3<
2583  getTightenedVariablesFieldBuilder() {
2584  if (tightenedVariablesBuilder_ == null) {
2585  tightenedVariablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
2587  tightenedVariables_,
2588  ((bitField0_ & 0x00000008) != 0),
2589  getParentForChildren(),
2590  isClean());
2591  tightenedVariables_ = null;
2592  }
2593  return tightenedVariablesBuilder_;
2594  }
2595 
2596  private com.google.protobuf.Internal.IntList sufficientAssumptionsForInfeasibility_ = emptyIntList();
2597  private void ensureSufficientAssumptionsForInfeasibilityIsMutable() {
2598  if (!((bitField0_ & 0x00000010) != 0)) {
2599  sufficientAssumptionsForInfeasibility_ = mutableCopy(sufficientAssumptionsForInfeasibility_);
2600  bitField0_ |= 0x00000010;
2601  }
2602  }
2622  public java.util.List<java.lang.Integer>
2624  return ((bitField0_ & 0x00000010) != 0) ?
2625  java.util.Collections.unmodifiableList(sufficientAssumptionsForInfeasibility_) : sufficientAssumptionsForInfeasibility_;
2626  }
2647  return sufficientAssumptionsForInfeasibility_.size();
2648  }
2670  return sufficientAssumptionsForInfeasibility_.getInt(index);
2671  }
2694  int index, int value) {
2695  ensureSufficientAssumptionsForInfeasibilityIsMutable();
2696  sufficientAssumptionsForInfeasibility_.setInt(index, value);
2697  onChanged();
2698  return this;
2699  }
2721  ensureSufficientAssumptionsForInfeasibilityIsMutable();
2722  sufficientAssumptionsForInfeasibility_.addInt(value);
2723  onChanged();
2724  return this;
2725  }
2747  java.lang.Iterable<? extends java.lang.Integer> values) {
2748  ensureSufficientAssumptionsForInfeasibilityIsMutable();
2749  com.google.protobuf.AbstractMessageLite.Builder.addAll(
2750  values, sufficientAssumptionsForInfeasibility_);
2751  onChanged();
2752  return this;
2753  }
2774  sufficientAssumptionsForInfeasibility_ = emptyIntList();
2775  bitField0_ = (bitField0_ & ~0x00000010);
2776  onChanged();
2777  return this;
2778  }
2779 
2780  private boolean allSolutionsWereFound_ ;
2792  @java.lang.Override
2793  public boolean getAllSolutionsWereFound() {
2794  return allSolutionsWereFound_;
2795  }
2808  public Builder setAllSolutionsWereFound(boolean value) {
2809 
2810  allSolutionsWereFound_ = value;
2811  onChanged();
2812  return this;
2813  }
2826 
2827  allSolutionsWereFound_ = false;
2828  onChanged();
2829  return this;
2830  }
2831 
2832  private long numBooleans_ ;
2841  @java.lang.Override
2842  public long getNumBooleans() {
2843  return numBooleans_;
2844  }
2854  public Builder setNumBooleans(long value) {
2855 
2856  numBooleans_ = value;
2857  onChanged();
2858  return this;
2859  }
2869 
2870  numBooleans_ = 0L;
2871  onChanged();
2872  return this;
2873  }
2874 
2875  private long numConflicts_ ;
2880  @java.lang.Override
2881  public long getNumConflicts() {
2882  return numConflicts_;
2883  }
2889  public Builder setNumConflicts(long value) {
2890 
2891  numConflicts_ = value;
2892  onChanged();
2893  return this;
2894  }
2900 
2901  numConflicts_ = 0L;
2902  onChanged();
2903  return this;
2904  }
2905 
2906  private long numBranches_ ;
2911  @java.lang.Override
2912  public long getNumBranches() {
2913  return numBranches_;
2914  }
2920  public Builder setNumBranches(long value) {
2921 
2922  numBranches_ = value;
2923  onChanged();
2924  return this;
2925  }
2931 
2932  numBranches_ = 0L;
2933  onChanged();
2934  return this;
2935  }
2936 
2937  private long numBinaryPropagations_ ;
2942  @java.lang.Override
2944  return numBinaryPropagations_;
2945  }
2951  public Builder setNumBinaryPropagations(long value) {
2952 
2953  numBinaryPropagations_ = value;
2954  onChanged();
2955  return this;
2956  }
2962 
2963  numBinaryPropagations_ = 0L;
2964  onChanged();
2965  return this;
2966  }
2967 
2968  private long numIntegerPropagations_ ;
2973  @java.lang.Override
2975  return numIntegerPropagations_;
2976  }
2982  public Builder setNumIntegerPropagations(long value) {
2983 
2984  numIntegerPropagations_ = value;
2985  onChanged();
2986  return this;
2987  }
2993 
2994  numIntegerPropagations_ = 0L;
2995  onChanged();
2996  return this;
2997  }
2998 
2999  private double wallTime_ ;
3004  @java.lang.Override
3005  public double getWallTime() {
3006  return wallTime_;
3007  }
3013  public Builder setWallTime(double value) {
3014 
3015  wallTime_ = value;
3016  onChanged();
3017  return this;
3018  }
3024 
3025  wallTime_ = 0D;
3026  onChanged();
3027  return this;
3028  }
3029 
3030  private double userTime_ ;
3035  @java.lang.Override
3036  public double getUserTime() {
3037  return userTime_;
3038  }
3044  public Builder setUserTime(double value) {
3045 
3046  userTime_ = value;
3047  onChanged();
3048  return this;
3049  }
3055 
3056  userTime_ = 0D;
3057  onChanged();
3058  return this;
3059  }
3060 
3061  private double deterministicTime_ ;
3066  @java.lang.Override
3067  public double getDeterministicTime() {
3068  return deterministicTime_;
3069  }
3075  public Builder setDeterministicTime(double value) {
3076 
3077  deterministicTime_ = value;
3078  onChanged();
3079  return this;
3080  }
3086 
3087  deterministicTime_ = 0D;
3088  onChanged();
3089  return this;
3090  }
3091 
3092  private double primalIntegral_ ;
3097  @java.lang.Override
3098  public double getPrimalIntegral() {
3099  return primalIntegral_;
3100  }
3106  public Builder setPrimalIntegral(double value) {
3107 
3108  primalIntegral_ = value;
3109  onChanged();
3110  return this;
3111  }
3117 
3118  primalIntegral_ = 0D;
3119  onChanged();
3120  return this;
3121  }
3122 
3123  private java.lang.Object solutionInfo_ = "";
3132  public java.lang.String getSolutionInfo() {
3133  java.lang.Object ref = solutionInfo_;
3134  if (!(ref instanceof java.lang.String)) {
3135  com.google.protobuf.ByteString bs =
3136  (com.google.protobuf.ByteString) ref;
3137  java.lang.String s = bs.toStringUtf8();
3138  solutionInfo_ = s;
3139  return s;
3140  } else {
3141  return (java.lang.String) ref;
3142  }
3143  }
3152  public com.google.protobuf.ByteString
3154  java.lang.Object ref = solutionInfo_;
3155  if (ref instanceof String) {
3156  com.google.protobuf.ByteString b =
3157  com.google.protobuf.ByteString.copyFromUtf8(
3158  (java.lang.String) ref);
3159  solutionInfo_ = b;
3160  return b;
3161  } else {
3162  return (com.google.protobuf.ByteString) ref;
3163  }
3164  }
3175  java.lang.String value) {
3176  if (value == null) {
3177  throw new NullPointerException();
3178  }
3179 
3180  solutionInfo_ = value;
3181  onChanged();
3182  return this;
3183  }
3193 
3194  solutionInfo_ = getDefaultInstance().getSolutionInfo();
3195  onChanged();
3196  return this;
3197  }
3208  com.google.protobuf.ByteString value) {
3209  if (value == null) {
3210  throw new NullPointerException();
3211  }
3212  checkByteStringIsUtf8(value);
3213 
3214  solutionInfo_ = value;
3215  onChanged();
3216  return this;
3217  }
3218  @java.lang.Override
3220  final com.google.protobuf.UnknownFieldSet unknownFields) {
3221  return super.setUnknownFields(unknownFields);
3222  }
3223 
3224  @java.lang.Override
3226  final com.google.protobuf.UnknownFieldSet unknownFields) {
3227  return super.mergeUnknownFields(unknownFields);
3228  }
3229 
3230 
3231  // @@protoc_insertion_point(builder_scope:operations_research.sat.CpSolverResponse)
3232  }
3233 
3234  // @@protoc_insertion_point(class_scope:operations_research.sat.CpSolverResponse)
3235  private static final com.google.ortools.sat.CpSolverResponse DEFAULT_INSTANCE;
3236  static {
3237  DEFAULT_INSTANCE = new com.google.ortools.sat.CpSolverResponse();
3238  }
3239 
3241  return DEFAULT_INSTANCE;
3242  }
3243 
3244  private static final com.google.protobuf.Parser<CpSolverResponse>
3245  PARSER = new com.google.protobuf.AbstractParser<CpSolverResponse>() {
3246  @java.lang.Override
3247  public CpSolverResponse parsePartialFrom(
3248  com.google.protobuf.CodedInputStream input,
3249  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3250  throws com.google.protobuf.InvalidProtocolBufferException {
3251  return new CpSolverResponse(input, extensionRegistry);
3252  }
3253  };
3254 
3255  public static com.google.protobuf.Parser<CpSolverResponse> parser() {
3256  return PARSER;
3257  }
3258 
3259  @java.lang.Override
3260  public com.google.protobuf.Parser<CpSolverResponse> getParserForType() {
3261  return PARSER;
3262  }
3263 
3264  @java.lang.Override
3266  return DEFAULT_INSTANCE;
3267  }
3268 
3269 }
3270 
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)
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 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)
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)
.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)
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;
.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)
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 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
.lang.Deprecated static CpSolverStatus valueOf(int value)