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_;
597  @java.lang.Override
598  public java.util.List<java.lang.Integer>
600  return sufficientAssumptionsForInfeasibility_;
601  }
621  return sufficientAssumptionsForInfeasibility_.size();
622  }
643  return sufficientAssumptionsForInfeasibility_.getInt(index);
644  }
645  private int sufficientAssumptionsForInfeasibilityMemoizedSerializedSize = -1;
646 
647  public static final int ALL_SOLUTIONS_WERE_FOUND_FIELD_NUMBER = 5;
648  private boolean allSolutionsWereFound_;
660  @java.lang.Override
661  public boolean getAllSolutionsWereFound() {
662  return allSolutionsWereFound_;
663  }
664 
665  public static final int NUM_BOOLEANS_FIELD_NUMBER = 10;
666  private long numBooleans_;
675  @java.lang.Override
676  public long getNumBooleans() {
677  return numBooleans_;
678  }
679 
680  public static final int NUM_CONFLICTS_FIELD_NUMBER = 11;
681  private long numConflicts_;
686  @java.lang.Override
687  public long getNumConflicts() {
688  return numConflicts_;
689  }
690 
691  public static final int NUM_BRANCHES_FIELD_NUMBER = 12;
692  private long numBranches_;
697  @java.lang.Override
698  public long getNumBranches() {
699  return numBranches_;
700  }
701 
702  public static final int NUM_BINARY_PROPAGATIONS_FIELD_NUMBER = 13;
703  private long numBinaryPropagations_;
708  @java.lang.Override
709  public long getNumBinaryPropagations() {
710  return numBinaryPropagations_;
711  }
712 
713  public static final int NUM_INTEGER_PROPAGATIONS_FIELD_NUMBER = 14;
714  private long numIntegerPropagations_;
719  @java.lang.Override
721  return numIntegerPropagations_;
722  }
723 
724  public static final int WALL_TIME_FIELD_NUMBER = 15;
725  private double wallTime_;
730  @java.lang.Override
731  public double getWallTime() {
732  return wallTime_;
733  }
734 
735  public static final int USER_TIME_FIELD_NUMBER = 16;
736  private double userTime_;
741  @java.lang.Override
742  public double getUserTime() {
743  return userTime_;
744  }
745 
746  public static final int DETERMINISTIC_TIME_FIELD_NUMBER = 17;
747  private double deterministicTime_;
752  @java.lang.Override
753  public double getDeterministicTime() {
754  return deterministicTime_;
755  }
756 
757  public static final int PRIMAL_INTEGRAL_FIELD_NUMBER = 22;
758  private double primalIntegral_;
763  @java.lang.Override
764  public double getPrimalIntegral() {
765  return primalIntegral_;
766  }
767 
768  public static final int SOLUTION_INFO_FIELD_NUMBER = 20;
769  private volatile java.lang.Object solutionInfo_;
778  @java.lang.Override
779  public java.lang.String getSolutionInfo() {
780  java.lang.Object ref = solutionInfo_;
781  if (ref instanceof java.lang.String) {
782  return (java.lang.String) ref;
783  } else {
784  com.google.protobuf.ByteString bs =
785  (com.google.protobuf.ByteString) ref;
786  java.lang.String s = bs.toStringUtf8();
787  solutionInfo_ = s;
788  return s;
789  }
790  }
799  @java.lang.Override
800  public com.google.protobuf.ByteString
802  java.lang.Object ref = solutionInfo_;
803  if (ref instanceof java.lang.String) {
804  com.google.protobuf.ByteString b =
805  com.google.protobuf.ByteString.copyFromUtf8(
806  (java.lang.String) ref);
807  solutionInfo_ = b;
808  return b;
809  } else {
810  return (com.google.protobuf.ByteString) ref;
811  }
812  }
813 
814  private byte memoizedIsInitialized = -1;
815  @java.lang.Override
816  public final boolean isInitialized() {
817  byte isInitialized = memoizedIsInitialized;
818  if (isInitialized == 1) return true;
819  if (isInitialized == 0) return false;
820 
821  memoizedIsInitialized = 1;
822  return true;
823  }
824 
825  @java.lang.Override
826  public void writeTo(com.google.protobuf.CodedOutputStream output)
827  throws java.io.IOException {
829  if (status_ != com.google.ortools.sat.CpSolverStatus.UNKNOWN.getNumber()) {
830  output.writeEnum(1, status_);
831  }
832  if (getSolutionList().size() > 0) {
833  output.writeUInt32NoTag(18);
834  output.writeUInt32NoTag(solutionMemoizedSerializedSize);
835  }
836  for (int i = 0; i < solution_.size(); i++) {
837  output.writeInt64NoTag(solution_.getLong(i));
838  }
839  if (objectiveValue_ != 0D) {
840  output.writeDouble(3, objectiveValue_);
841  }
842  if (bestObjectiveBound_ != 0D) {
843  output.writeDouble(4, bestObjectiveBound_);
844  }
845  if (allSolutionsWereFound_ != false) {
846  output.writeBool(5, allSolutionsWereFound_);
847  }
848  if (numBooleans_ != 0L) {
849  output.writeInt64(10, numBooleans_);
850  }
851  if (numConflicts_ != 0L) {
852  output.writeInt64(11, numConflicts_);
853  }
854  if (numBranches_ != 0L) {
855  output.writeInt64(12, numBranches_);
856  }
857  if (numBinaryPropagations_ != 0L) {
858  output.writeInt64(13, numBinaryPropagations_);
859  }
860  if (numIntegerPropagations_ != 0L) {
861  output.writeInt64(14, numIntegerPropagations_);
862  }
863  if (wallTime_ != 0D) {
864  output.writeDouble(15, wallTime_);
865  }
866  if (userTime_ != 0D) {
867  output.writeDouble(16, userTime_);
868  }
869  if (deterministicTime_ != 0D) {
870  output.writeDouble(17, deterministicTime_);
871  }
872  if (getSolutionLowerBoundsList().size() > 0) {
873  output.writeUInt32NoTag(146);
874  output.writeUInt32NoTag(solutionLowerBoundsMemoizedSerializedSize);
875  }
876  for (int i = 0; i < solutionLowerBounds_.size(); i++) {
877  output.writeInt64NoTag(solutionLowerBounds_.getLong(i));
878  }
879  if (getSolutionUpperBoundsList().size() > 0) {
880  output.writeUInt32NoTag(154);
881  output.writeUInt32NoTag(solutionUpperBoundsMemoizedSerializedSize);
882  }
883  for (int i = 0; i < solutionUpperBounds_.size(); i++) {
884  output.writeInt64NoTag(solutionUpperBounds_.getLong(i));
885  }
886  if (!getSolutionInfoBytes().isEmpty()) {
887  com.google.protobuf.GeneratedMessageV3.writeString(output, 20, solutionInfo_);
888  }
889  for (int i = 0; i < tightenedVariables_.size(); i++) {
890  output.writeMessage(21, tightenedVariables_.get(i));
891  }
892  if (primalIntegral_ != 0D) {
893  output.writeDouble(22, primalIntegral_);
894  }
896  output.writeUInt32NoTag(186);
897  output.writeUInt32NoTag(sufficientAssumptionsForInfeasibilityMemoizedSerializedSize);
898  }
899  for (int i = 0; i < sufficientAssumptionsForInfeasibility_.size(); i++) {
900  output.writeInt32NoTag(sufficientAssumptionsForInfeasibility_.getInt(i));
901  }
902  unknownFields.writeTo(output);
903  }
904 
905  @java.lang.Override
906  public int getSerializedSize() {
907  int size = memoizedSize;
908  if (size != -1) return size;
909 
910  size = 0;
911  if (status_ != com.google.ortools.sat.CpSolverStatus.UNKNOWN.getNumber()) {
912  size += com.google.protobuf.CodedOutputStream
913  .computeEnumSize(1, status_);
914  }
915  {
916  int dataSize = 0;
917  for (int i = 0; i < solution_.size(); i++) {
918  dataSize += com.google.protobuf.CodedOutputStream
919  .computeInt64SizeNoTag(solution_.getLong(i));
920  }
921  size += dataSize;
922  if (!getSolutionList().isEmpty()) {
923  size += 1;
924  size += com.google.protobuf.CodedOutputStream
925  .computeInt32SizeNoTag(dataSize);
926  }
927  solutionMemoizedSerializedSize = dataSize;
928  }
929  if (objectiveValue_ != 0D) {
930  size += com.google.protobuf.CodedOutputStream
931  .computeDoubleSize(3, objectiveValue_);
932  }
933  if (bestObjectiveBound_ != 0D) {
934  size += com.google.protobuf.CodedOutputStream
935  .computeDoubleSize(4, bestObjectiveBound_);
936  }
937  if (allSolutionsWereFound_ != false) {
938  size += com.google.protobuf.CodedOutputStream
939  .computeBoolSize(5, allSolutionsWereFound_);
940  }
941  if (numBooleans_ != 0L) {
942  size += com.google.protobuf.CodedOutputStream
943  .computeInt64Size(10, numBooleans_);
944  }
945  if (numConflicts_ != 0L) {
946  size += com.google.protobuf.CodedOutputStream
947  .computeInt64Size(11, numConflicts_);
948  }
949  if (numBranches_ != 0L) {
950  size += com.google.protobuf.CodedOutputStream
951  .computeInt64Size(12, numBranches_);
952  }
953  if (numBinaryPropagations_ != 0L) {
954  size += com.google.protobuf.CodedOutputStream
955  .computeInt64Size(13, numBinaryPropagations_);
956  }
957  if (numIntegerPropagations_ != 0L) {
958  size += com.google.protobuf.CodedOutputStream
959  .computeInt64Size(14, numIntegerPropagations_);
960  }
961  if (wallTime_ != 0D) {
962  size += com.google.protobuf.CodedOutputStream
963  .computeDoubleSize(15, wallTime_);
964  }
965  if (userTime_ != 0D) {
966  size += com.google.protobuf.CodedOutputStream
967  .computeDoubleSize(16, userTime_);
968  }
969  if (deterministicTime_ != 0D) {
970  size += com.google.protobuf.CodedOutputStream
971  .computeDoubleSize(17, deterministicTime_);
972  }
973  {
974  int dataSize = 0;
975  for (int i = 0; i < solutionLowerBounds_.size(); i++) {
976  dataSize += com.google.protobuf.CodedOutputStream
977  .computeInt64SizeNoTag(solutionLowerBounds_.getLong(i));
978  }
979  size += dataSize;
980  if (!getSolutionLowerBoundsList().isEmpty()) {
981  size += 2;
982  size += com.google.protobuf.CodedOutputStream
983  .computeInt32SizeNoTag(dataSize);
984  }
985  solutionLowerBoundsMemoizedSerializedSize = dataSize;
986  }
987  {
988  int dataSize = 0;
989  for (int i = 0; i < solutionUpperBounds_.size(); i++) {
990  dataSize += com.google.protobuf.CodedOutputStream
991  .computeInt64SizeNoTag(solutionUpperBounds_.getLong(i));
992  }
993  size += dataSize;
994  if (!getSolutionUpperBoundsList().isEmpty()) {
995  size += 2;
996  size += com.google.protobuf.CodedOutputStream
997  .computeInt32SizeNoTag(dataSize);
998  }
999  solutionUpperBoundsMemoizedSerializedSize = dataSize;
1000  }
1001  if (!getSolutionInfoBytes().isEmpty()) {
1002  size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, solutionInfo_);
1003  }
1004  for (int i = 0; i < tightenedVariables_.size(); i++) {
1005  size += com.google.protobuf.CodedOutputStream
1006  .computeMessageSize(21, tightenedVariables_.get(i));
1007  }
1008  if (primalIntegral_ != 0D) {
1009  size += com.google.protobuf.CodedOutputStream
1010  .computeDoubleSize(22, primalIntegral_);
1011  }
1012  {
1013  int dataSize = 0;
1014  for (int i = 0; i < sufficientAssumptionsForInfeasibility_.size(); i++) {
1015  dataSize += com.google.protobuf.CodedOutputStream
1016  .computeInt32SizeNoTag(sufficientAssumptionsForInfeasibility_.getInt(i));
1017  }
1018  size += dataSize;
1020  size += 2;
1021  size += com.google.protobuf.CodedOutputStream
1022  .computeInt32SizeNoTag(dataSize);
1023  }
1024  sufficientAssumptionsForInfeasibilityMemoizedSerializedSize = dataSize;
1025  }
1026  size += unknownFields.getSerializedSize();
1027  memoizedSize = size;
1028  return size;
1029  }
1030 
1031  @java.lang.Override
1032  public boolean equals(final java.lang.Object obj) {
1033  if (obj == this) {
1034  return true;
1035  }
1036  if (!(obj instanceof com.google.ortools.sat.CpSolverResponse)) {
1037  return super.equals(obj);
1038  }
1040 
1041  if (status_ != other.status_) return false;
1042  if (!getSolutionList()
1043  .equals(other.getSolutionList())) return false;
1044  if (java.lang.Double.doubleToLongBits(getObjectiveValue())
1045  != java.lang.Double.doubleToLongBits(
1046  other.getObjectiveValue())) return false;
1047  if (java.lang.Double.doubleToLongBits(getBestObjectiveBound())
1048  != java.lang.Double.doubleToLongBits(
1049  other.getBestObjectiveBound())) return false;
1051  .equals(other.getSolutionLowerBoundsList())) return false;
1053  .equals(other.getSolutionUpperBoundsList())) return false;
1055  .equals(other.getTightenedVariablesList())) return false;
1057  .equals(other.getSufficientAssumptionsForInfeasibilityList())) return false;
1059  != other.getAllSolutionsWereFound()) return false;
1060  if (getNumBooleans()
1061  != other.getNumBooleans()) return false;
1062  if (getNumConflicts()
1063  != other.getNumConflicts()) return false;
1064  if (getNumBranches()
1065  != other.getNumBranches()) return false;
1067  != other.getNumBinaryPropagations()) return false;
1069  != other.getNumIntegerPropagations()) return false;
1070  if (java.lang.Double.doubleToLongBits(getWallTime())
1071  != java.lang.Double.doubleToLongBits(
1072  other.getWallTime())) return false;
1073  if (java.lang.Double.doubleToLongBits(getUserTime())
1074  != java.lang.Double.doubleToLongBits(
1075  other.getUserTime())) return false;
1076  if (java.lang.Double.doubleToLongBits(getDeterministicTime())
1077  != java.lang.Double.doubleToLongBits(
1078  other.getDeterministicTime())) return false;
1079  if (java.lang.Double.doubleToLongBits(getPrimalIntegral())
1080  != java.lang.Double.doubleToLongBits(
1081  other.getPrimalIntegral())) return false;
1082  if (!getSolutionInfo()
1083  .equals(other.getSolutionInfo())) return false;
1084  if (!unknownFields.equals(other.unknownFields)) return false;
1085  return true;
1086  }
1087 
1088  @java.lang.Override
1089  public int hashCode() {
1090  if (memoizedHashCode != 0) {
1091  return memoizedHashCode;
1092  }
1093  int hash = 41;
1094  hash = (19 * hash) + getDescriptor().hashCode();
1095  hash = (37 * hash) + STATUS_FIELD_NUMBER;
1096  hash = (53 * hash) + status_;
1097  if (getSolutionCount() > 0) {
1098  hash = (37 * hash) + SOLUTION_FIELD_NUMBER;
1099  hash = (53 * hash) + getSolutionList().hashCode();
1100  }
1101  hash = (37 * hash) + OBJECTIVE_VALUE_FIELD_NUMBER;
1102  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1103  java.lang.Double.doubleToLongBits(getObjectiveValue()));
1104  hash = (37 * hash) + BEST_OBJECTIVE_BOUND_FIELD_NUMBER;
1105  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1106  java.lang.Double.doubleToLongBits(getBestObjectiveBound()));
1107  if (getSolutionLowerBoundsCount() > 0) {
1108  hash = (37 * hash) + SOLUTION_LOWER_BOUNDS_FIELD_NUMBER;
1109  hash = (53 * hash) + getSolutionLowerBoundsList().hashCode();
1110  }
1111  if (getSolutionUpperBoundsCount() > 0) {
1112  hash = (37 * hash) + SOLUTION_UPPER_BOUNDS_FIELD_NUMBER;
1113  hash = (53 * hash) + getSolutionUpperBoundsList().hashCode();
1114  }
1115  if (getTightenedVariablesCount() > 0) {
1116  hash = (37 * hash) + TIGHTENED_VARIABLES_FIELD_NUMBER;
1117  hash = (53 * hash) + getTightenedVariablesList().hashCode();
1118  }
1121  hash = (53 * hash) + getSufficientAssumptionsForInfeasibilityList().hashCode();
1122  }
1123  hash = (37 * hash) + ALL_SOLUTIONS_WERE_FOUND_FIELD_NUMBER;
1124  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1126  hash = (37 * hash) + NUM_BOOLEANS_FIELD_NUMBER;
1127  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1128  getNumBooleans());
1129  hash = (37 * hash) + NUM_CONFLICTS_FIELD_NUMBER;
1130  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1131  getNumConflicts());
1132  hash = (37 * hash) + NUM_BRANCHES_FIELD_NUMBER;
1133  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1134  getNumBranches());
1135  hash = (37 * hash) + NUM_BINARY_PROPAGATIONS_FIELD_NUMBER;
1136  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1138  hash = (37 * hash) + NUM_INTEGER_PROPAGATIONS_FIELD_NUMBER;
1139  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1141  hash = (37 * hash) + WALL_TIME_FIELD_NUMBER;
1142  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1143  java.lang.Double.doubleToLongBits(getWallTime()));
1144  hash = (37 * hash) + USER_TIME_FIELD_NUMBER;
1145  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1146  java.lang.Double.doubleToLongBits(getUserTime()));
1147  hash = (37 * hash) + DETERMINISTIC_TIME_FIELD_NUMBER;
1148  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1149  java.lang.Double.doubleToLongBits(getDeterministicTime()));
1150  hash = (37 * hash) + PRIMAL_INTEGRAL_FIELD_NUMBER;
1151  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1152  java.lang.Double.doubleToLongBits(getPrimalIntegral()));
1153  hash = (37 * hash) + SOLUTION_INFO_FIELD_NUMBER;
1154  hash = (53 * hash) + getSolutionInfo().hashCode();
1155  hash = (29 * hash) + unknownFields.hashCode();
1156  memoizedHashCode = hash;
1157  return hash;
1158  }
1159 
1161  java.nio.ByteBuffer data)
1162  throws com.google.protobuf.InvalidProtocolBufferException {
1163  return PARSER.parseFrom(data);
1164  }
1166  java.nio.ByteBuffer data,
1167  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1168  throws com.google.protobuf.InvalidProtocolBufferException {
1169  return PARSER.parseFrom(data, extensionRegistry);
1170  }
1172  com.google.protobuf.ByteString data)
1173  throws com.google.protobuf.InvalidProtocolBufferException {
1174  return PARSER.parseFrom(data);
1175  }
1177  com.google.protobuf.ByteString data,
1178  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1179  throws com.google.protobuf.InvalidProtocolBufferException {
1180  return PARSER.parseFrom(data, extensionRegistry);
1181  }
1182  public static com.google.ortools.sat.CpSolverResponse parseFrom(byte[] data)
1183  throws com.google.protobuf.InvalidProtocolBufferException {
1184  return PARSER.parseFrom(data);
1185  }
1187  byte[] data,
1188  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1189  throws com.google.protobuf.InvalidProtocolBufferException {
1190  return PARSER.parseFrom(data, extensionRegistry);
1191  }
1192  public static com.google.ortools.sat.CpSolverResponse parseFrom(java.io.InputStream input)
1193  throws java.io.IOException {
1194  return com.google.protobuf.GeneratedMessageV3
1195  .parseWithIOException(PARSER, input);
1196  }
1198  java.io.InputStream input,
1199  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1200  throws java.io.IOException {
1201  return com.google.protobuf.GeneratedMessageV3
1202  .parseWithIOException(PARSER, input, extensionRegistry);
1203  }
1204  public static com.google.ortools.sat.CpSolverResponse parseDelimitedFrom(java.io.InputStream input)
1205  throws java.io.IOException {
1206  return com.google.protobuf.GeneratedMessageV3
1207  .parseDelimitedWithIOException(PARSER, input);
1208  }
1210  java.io.InputStream input,
1211  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1212  throws java.io.IOException {
1213  return com.google.protobuf.GeneratedMessageV3
1214  .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
1215  }
1217  com.google.protobuf.CodedInputStream input)
1218  throws java.io.IOException {
1219  return com.google.protobuf.GeneratedMessageV3
1220  .parseWithIOException(PARSER, input);
1221  }
1223  com.google.protobuf.CodedInputStream input,
1224  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1225  throws java.io.IOException {
1226  return com.google.protobuf.GeneratedMessageV3
1227  .parseWithIOException(PARSER, input, extensionRegistry);
1228  }
1229 
1230  @java.lang.Override
1231  public Builder newBuilderForType() { return newBuilder(); }
1232  public static Builder newBuilder() {
1233  return DEFAULT_INSTANCE.toBuilder();
1234  }
1236  return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1237  }
1238  @java.lang.Override
1239  public Builder toBuilder() {
1240  return this == DEFAULT_INSTANCE
1241  ? new Builder() : new Builder().mergeFrom(this);
1242  }
1243 
1244  @java.lang.Override
1246  com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1247  Builder builder = new Builder(parent);
1248  return builder;
1249  }
1260  public static final class Builder extends
1261  com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
1262  // @@protoc_insertion_point(builder_implements:operations_research.sat.CpSolverResponse)
1263  com.google.ortools.sat.CpSolverResponseOrBuilder {
1264  public static final com.google.protobuf.Descriptors.Descriptor
1266  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_descriptor;
1267  }
1268 
1269  @java.lang.Override
1270  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
1272  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_fieldAccessorTable
1273  .ensureFieldAccessorsInitialized(
1275  }
1276 
1277  // Construct using com.google.ortools.sat.CpSolverResponse.newBuilder()
1278  private Builder() {
1279  maybeForceBuilderInitialization();
1280  }
1281 
1282  private Builder(
1283  com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1284  super(parent);
1285  maybeForceBuilderInitialization();
1286  }
1287  private void maybeForceBuilderInitialization() {
1288  if (com.google.protobuf.GeneratedMessageV3
1289  .alwaysUseFieldBuilders) {
1290  getTightenedVariablesFieldBuilder();
1291  }
1292  }
1293  @java.lang.Override
1294  public Builder clear() {
1295  super.clear();
1296  status_ = 0;
1297 
1298  solution_ = emptyLongList();
1299  bitField0_ = (bitField0_ & ~0x00000001);
1300  objectiveValue_ = 0D;
1301 
1302  bestObjectiveBound_ = 0D;
1303 
1304  solutionLowerBounds_ = emptyLongList();
1305  bitField0_ = (bitField0_ & ~0x00000002);
1306  solutionUpperBounds_ = emptyLongList();
1307  bitField0_ = (bitField0_ & ~0x00000004);
1308  if (tightenedVariablesBuilder_ == null) {
1309  tightenedVariables_ = java.util.Collections.emptyList();
1310  bitField0_ = (bitField0_ & ~0x00000008);
1311  } else {
1312  tightenedVariablesBuilder_.clear();
1313  }
1314  sufficientAssumptionsForInfeasibility_ = emptyIntList();
1315  bitField0_ = (bitField0_ & ~0x00000010);
1316  allSolutionsWereFound_ = false;
1317 
1318  numBooleans_ = 0L;
1319 
1320  numConflicts_ = 0L;
1321 
1322  numBranches_ = 0L;
1323 
1324  numBinaryPropagations_ = 0L;
1325 
1326  numIntegerPropagations_ = 0L;
1327 
1328  wallTime_ = 0D;
1329 
1330  userTime_ = 0D;
1331 
1332  deterministicTime_ = 0D;
1333 
1334  primalIntegral_ = 0D;
1335 
1336  solutionInfo_ = "";
1337 
1338  return this;
1339  }
1340 
1341  @java.lang.Override
1342  public com.google.protobuf.Descriptors.Descriptor
1344  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_descriptor;
1345  }
1346 
1347  @java.lang.Override
1350  }
1351 
1352  @java.lang.Override
1355  if (!result.isInitialized()) {
1356  throw newUninitializedMessageException(result);
1357  }
1358  return result;
1359  }
1360 
1361  @java.lang.Override
1364  int from_bitField0_ = bitField0_;
1365  result.status_ = status_;
1366  if (((bitField0_ & 0x00000001) != 0)) {
1367  solution_.makeImmutable();
1368  bitField0_ = (bitField0_ & ~0x00000001);
1369  }
1370  result.solution_ = solution_;
1371  result.objectiveValue_ = objectiveValue_;
1372  result.bestObjectiveBound_ = bestObjectiveBound_;
1373  if (((bitField0_ & 0x00000002) != 0)) {
1374  solutionLowerBounds_.makeImmutable();
1375  bitField0_ = (bitField0_ & ~0x00000002);
1376  }
1377  result.solutionLowerBounds_ = solutionLowerBounds_;
1378  if (((bitField0_ & 0x00000004) != 0)) {
1379  solutionUpperBounds_.makeImmutable();
1380  bitField0_ = (bitField0_ & ~0x00000004);
1381  }
1382  result.solutionUpperBounds_ = solutionUpperBounds_;
1383  if (tightenedVariablesBuilder_ == null) {
1384  if (((bitField0_ & 0x00000008) != 0)) {
1385  tightenedVariables_ = java.util.Collections.unmodifiableList(tightenedVariables_);
1386  bitField0_ = (bitField0_ & ~0x00000008);
1387  }
1388  result.tightenedVariables_ = tightenedVariables_;
1389  } else {
1390  result.tightenedVariables_ = tightenedVariablesBuilder_.build();
1391  }
1392  if (((bitField0_ & 0x00000010) != 0)) {
1393  sufficientAssumptionsForInfeasibility_.makeImmutable();
1394  bitField0_ = (bitField0_ & ~0x00000010);
1395  }
1396  result.sufficientAssumptionsForInfeasibility_ = sufficientAssumptionsForInfeasibility_;
1397  result.allSolutionsWereFound_ = allSolutionsWereFound_;
1398  result.numBooleans_ = numBooleans_;
1399  result.numConflicts_ = numConflicts_;
1400  result.numBranches_ = numBranches_;
1401  result.numBinaryPropagations_ = numBinaryPropagations_;
1402  result.numIntegerPropagations_ = numIntegerPropagations_;
1403  result.wallTime_ = wallTime_;
1404  result.userTime_ = userTime_;
1405  result.deterministicTime_ = deterministicTime_;
1406  result.primalIntegral_ = primalIntegral_;
1407  result.solutionInfo_ = solutionInfo_;
1408  onBuilt();
1409  return result;
1410  }
1411 
1412  @java.lang.Override
1413  public Builder clone() {
1414  return super.clone();
1415  }
1416  @java.lang.Override
1418  com.google.protobuf.Descriptors.FieldDescriptor field,
1419  java.lang.Object value) {
1420  return super.setField(field, value);
1421  }
1422  @java.lang.Override
1424  com.google.protobuf.Descriptors.FieldDescriptor field) {
1425  return super.clearField(field);
1426  }
1427  @java.lang.Override
1429  com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1430  return super.clearOneof(oneof);
1431  }
1432  @java.lang.Override
1434  com.google.protobuf.Descriptors.FieldDescriptor field,
1435  int index, java.lang.Object value) {
1436  return super.setRepeatedField(field, index, value);
1437  }
1438  @java.lang.Override
1440  com.google.protobuf.Descriptors.FieldDescriptor field,
1441  java.lang.Object value) {
1442  return super.addRepeatedField(field, value);
1443  }
1444  @java.lang.Override
1445  public Builder mergeFrom(com.google.protobuf.Message other) {
1446  if (other instanceof com.google.ortools.sat.CpSolverResponse) {
1448  } else {
1449  super.mergeFrom(other);
1450  return this;
1451  }
1452  }
1453 
1455  if (other == com.google.ortools.sat.CpSolverResponse.getDefaultInstance()) return this;
1456  if (other.status_ != 0) {
1457  setStatusValue(other.getStatusValue());
1458  }
1459  if (!other.solution_.isEmpty()) {
1460  if (solution_.isEmpty()) {
1461  solution_ = other.solution_;
1462  bitField0_ = (bitField0_ & ~0x00000001);
1463  } else {
1464  ensureSolutionIsMutable();
1465  solution_.addAll(other.solution_);
1466  }
1467  onChanged();
1468  }
1469  if (other.getObjectiveValue() != 0D) {
1470  setObjectiveValue(other.getObjectiveValue());
1471  }
1472  if (other.getBestObjectiveBound() != 0D) {
1473  setBestObjectiveBound(other.getBestObjectiveBound());
1474  }
1475  if (!other.solutionLowerBounds_.isEmpty()) {
1476  if (solutionLowerBounds_.isEmpty()) {
1477  solutionLowerBounds_ = other.solutionLowerBounds_;
1478  bitField0_ = (bitField0_ & ~0x00000002);
1479  } else {
1480  ensureSolutionLowerBoundsIsMutable();
1481  solutionLowerBounds_.addAll(other.solutionLowerBounds_);
1482  }
1483  onChanged();
1484  }
1485  if (!other.solutionUpperBounds_.isEmpty()) {
1486  if (solutionUpperBounds_.isEmpty()) {
1487  solutionUpperBounds_ = other.solutionUpperBounds_;
1488  bitField0_ = (bitField0_ & ~0x00000004);
1489  } else {
1490  ensureSolutionUpperBoundsIsMutable();
1491  solutionUpperBounds_.addAll(other.solutionUpperBounds_);
1492  }
1493  onChanged();
1494  }
1495  if (tightenedVariablesBuilder_ == null) {
1496  if (!other.tightenedVariables_.isEmpty()) {
1497  if (tightenedVariables_.isEmpty()) {
1498  tightenedVariables_ = other.tightenedVariables_;
1499  bitField0_ = (bitField0_ & ~0x00000008);
1500  } else {
1501  ensureTightenedVariablesIsMutable();
1502  tightenedVariables_.addAll(other.tightenedVariables_);
1503  }
1504  onChanged();
1505  }
1506  } else {
1507  if (!other.tightenedVariables_.isEmpty()) {
1508  if (tightenedVariablesBuilder_.isEmpty()) {
1509  tightenedVariablesBuilder_.dispose();
1510  tightenedVariablesBuilder_ = null;
1511  tightenedVariables_ = other.tightenedVariables_;
1512  bitField0_ = (bitField0_ & ~0x00000008);
1513  tightenedVariablesBuilder_ =
1514  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
1515  getTightenedVariablesFieldBuilder() : null;
1516  } else {
1517  tightenedVariablesBuilder_.addAllMessages(other.tightenedVariables_);
1518  }
1519  }
1520  }
1521  if (!other.sufficientAssumptionsForInfeasibility_.isEmpty()) {
1522  if (sufficientAssumptionsForInfeasibility_.isEmpty()) {
1523  sufficientAssumptionsForInfeasibility_ = other.sufficientAssumptionsForInfeasibility_;
1524  bitField0_ = (bitField0_ & ~0x00000010);
1525  } else {
1526  ensureSufficientAssumptionsForInfeasibilityIsMutable();
1527  sufficientAssumptionsForInfeasibility_.addAll(other.sufficientAssumptionsForInfeasibility_);
1528  }
1529  onChanged();
1530  }
1531  if (other.getAllSolutionsWereFound() != false) {
1532  setAllSolutionsWereFound(other.getAllSolutionsWereFound());
1533  }
1534  if (other.getNumBooleans() != 0L) {
1535  setNumBooleans(other.getNumBooleans());
1536  }
1537  if (other.getNumConflicts() != 0L) {
1538  setNumConflicts(other.getNumConflicts());
1539  }
1540  if (other.getNumBranches() != 0L) {
1541  setNumBranches(other.getNumBranches());
1542  }
1543  if (other.getNumBinaryPropagations() != 0L) {
1544  setNumBinaryPropagations(other.getNumBinaryPropagations());
1545  }
1546  if (other.getNumIntegerPropagations() != 0L) {
1547  setNumIntegerPropagations(other.getNumIntegerPropagations());
1548  }
1549  if (other.getWallTime() != 0D) {
1550  setWallTime(other.getWallTime());
1551  }
1552  if (other.getUserTime() != 0D) {
1553  setUserTime(other.getUserTime());
1554  }
1555  if (other.getDeterministicTime() != 0D) {
1556  setDeterministicTime(other.getDeterministicTime());
1557  }
1558  if (other.getPrimalIntegral() != 0D) {
1559  setPrimalIntegral(other.getPrimalIntegral());
1560  }
1561  if (!other.getSolutionInfo().isEmpty()) {
1562  solutionInfo_ = other.solutionInfo_;
1563  onChanged();
1564  }
1565  this.mergeUnknownFields(other.unknownFields);
1566  onChanged();
1567  return this;
1568  }
1569 
1570  @java.lang.Override
1571  public final boolean isInitialized() {
1572  return true;
1573  }
1574 
1575  @java.lang.Override
1577  com.google.protobuf.CodedInputStream input,
1578  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1579  throws java.io.IOException {
1580  com.google.ortools.sat.CpSolverResponse parsedMessage = null;
1581  try {
1582  parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
1583  } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1584  parsedMessage = (com.google.ortools.sat.CpSolverResponse) e.getUnfinishedMessage();
1585  throw e.unwrapIOException();
1586  } finally {
1587  if (parsedMessage != null) {
1588  mergeFrom(parsedMessage);
1589  }
1590  }
1591  return this;
1592  }
1593  private int bitField0_;
1594 
1595  private int status_ = 0;
1604  @java.lang.Override public int getStatusValue() {
1605  return status_;
1606  }
1616  public Builder setStatusValue(int value) {
1617 
1618  status_ = value;
1619  onChanged();
1620  return this;
1621  }
1630  @java.lang.Override
1632  @SuppressWarnings("deprecation")
1634  return result == null ? com.google.ortools.sat.CpSolverStatus.UNRECOGNIZED : result;
1635  }
1646  if (value == null) {
1647  throw new NullPointerException();
1648  }
1649 
1650  status_ = value.getNumber();
1651  onChanged();
1652  return this;
1653  }
1663 
1664  status_ = 0;
1665  onChanged();
1666  return this;
1667  }
1668 
1669  private com.google.protobuf.Internal.LongList solution_ = emptyLongList();
1670  private void ensureSolutionIsMutable() {
1671  if (!((bitField0_ & 0x00000001) != 0)) {
1672  solution_ = mutableCopy(solution_);
1673  bitField0_ |= 0x00000001;
1674  }
1675  }
1687  public java.util.List<java.lang.Long>
1689  return ((bitField0_ & 0x00000001) != 0) ?
1690  java.util.Collections.unmodifiableList(solution_) : solution_;
1691  }
1703  public int getSolutionCount() {
1704  return solution_.size();
1705  }
1718  public long getSolution(int index) {
1719  return solution_.getLong(index);
1720  }
1735  int index, long value) {
1736  ensureSolutionIsMutable();
1737  solution_.setLong(index, value);
1738  onChanged();
1739  return this;
1740  }
1753  public Builder addSolution(long value) {
1754  ensureSolutionIsMutable();
1755  solution_.addLong(value);
1756  onChanged();
1757  return this;
1758  }
1772  java.lang.Iterable<? extends java.lang.Long> values) {
1773  ensureSolutionIsMutable();
1774  com.google.protobuf.AbstractMessageLite.Builder.addAll(
1775  values, solution_);
1776  onChanged();
1777  return this;
1778  }
1791  solution_ = emptyLongList();
1792  bitField0_ = (bitField0_ & ~0x00000001);
1793  onChanged();
1794  return this;
1795  }
1796 
1797  private double objectiveValue_ ;
1809  @java.lang.Override
1810  public double getObjectiveValue() {
1811  return objectiveValue_;
1812  }
1825  public Builder setObjectiveValue(double value) {
1826 
1827  objectiveValue_ = value;
1828  onChanged();
1829  return this;
1830  }
1843 
1844  objectiveValue_ = 0D;
1845  onChanged();
1846  return this;
1847  }
1848 
1849  private double bestObjectiveBound_ ;
1860  @java.lang.Override
1861  public double getBestObjectiveBound() {
1862  return bestObjectiveBound_;
1863  }
1875  public Builder setBestObjectiveBound(double value) {
1876 
1877  bestObjectiveBound_ = value;
1878  onChanged();
1879  return this;
1880  }
1892 
1893  bestObjectiveBound_ = 0D;
1894  onChanged();
1895  return this;
1896  }
1897 
1898  private com.google.protobuf.Internal.LongList solutionLowerBounds_ = emptyLongList();
1899  private void ensureSolutionLowerBoundsIsMutable() {
1900  if (!((bitField0_ & 0x00000002) != 0)) {
1901  solutionLowerBounds_ = mutableCopy(solutionLowerBounds_);
1902  bitField0_ |= 0x00000002;
1903  }
1904  }
1918  public java.util.List<java.lang.Long>
1920  return ((bitField0_ & 0x00000002) != 0) ?
1921  java.util.Collections.unmodifiableList(solutionLowerBounds_) : solutionLowerBounds_;
1922  }
1937  return solutionLowerBounds_.size();
1938  }
1953  public long getSolutionLowerBounds(int index) {
1954  return solutionLowerBounds_.getLong(index);
1955  }
1972  int index, long value) {
1973  ensureSolutionLowerBoundsIsMutable();
1974  solutionLowerBounds_.setLong(index, value);
1975  onChanged();
1976  return this;
1977  }
1992  public Builder addSolutionLowerBounds(long value) {
1993  ensureSolutionLowerBoundsIsMutable();
1994  solutionLowerBounds_.addLong(value);
1995  onChanged();
1996  return this;
1997  }
2013  java.lang.Iterable<? extends java.lang.Long> values) {
2014  ensureSolutionLowerBoundsIsMutable();
2015  com.google.protobuf.AbstractMessageLite.Builder.addAll(
2016  values, solutionLowerBounds_);
2017  onChanged();
2018  return this;
2019  }
2034  solutionLowerBounds_ = emptyLongList();
2035  bitField0_ = (bitField0_ & ~0x00000002);
2036  onChanged();
2037  return this;
2038  }
2039 
2040  private com.google.protobuf.Internal.LongList solutionUpperBounds_ = emptyLongList();
2041  private void ensureSolutionUpperBoundsIsMutable() {
2042  if (!((bitField0_ & 0x00000004) != 0)) {
2043  solutionUpperBounds_ = mutableCopy(solutionUpperBounds_);
2044  bitField0_ |= 0x00000004;
2045  }
2046  }
2051  public java.util.List<java.lang.Long>
2053  return ((bitField0_ & 0x00000004) != 0) ?
2054  java.util.Collections.unmodifiableList(solutionUpperBounds_) : solutionUpperBounds_;
2055  }
2061  return solutionUpperBounds_.size();
2062  }
2068  public long getSolutionUpperBounds(int index) {
2069  return solutionUpperBounds_.getLong(index);
2070  }
2078  int index, long value) {
2079  ensureSolutionUpperBoundsIsMutable();
2080  solutionUpperBounds_.setLong(index, value);
2081  onChanged();
2082  return this;
2083  }
2089  public Builder addSolutionUpperBounds(long value) {
2090  ensureSolutionUpperBoundsIsMutable();
2091  solutionUpperBounds_.addLong(value);
2092  onChanged();
2093  return this;
2094  }
2101  java.lang.Iterable<? extends java.lang.Long> values) {
2102  ensureSolutionUpperBoundsIsMutable();
2103  com.google.protobuf.AbstractMessageLite.Builder.addAll(
2104  values, solutionUpperBounds_);
2105  onChanged();
2106  return this;
2107  }
2113  solutionUpperBounds_ = emptyLongList();
2114  bitField0_ = (bitField0_ & ~0x00000004);
2115  onChanged();
2116  return this;
2117  }
2118 
2119  private java.util.List<com.google.ortools.sat.IntegerVariableProto> tightenedVariables_ =
2120  java.util.Collections.emptyList();
2121  private void ensureTightenedVariablesIsMutable() {
2122  if (!((bitField0_ & 0x00000008) != 0)) {
2123  tightenedVariables_ = new java.util.ArrayList<com.google.ortools.sat.IntegerVariableProto>(tightenedVariables_);
2124  bitField0_ |= 0x00000008;
2125  }
2126  }
2127 
2128  private com.google.protobuf.RepeatedFieldBuilderV3<
2130 
2148  if (tightenedVariablesBuilder_ == null) {
2149  return java.util.Collections.unmodifiableList(tightenedVariables_);
2150  } else {
2151  return tightenedVariablesBuilder_.getMessageList();
2152  }
2153  }
2171  if (tightenedVariablesBuilder_ == null) {
2172  return tightenedVariables_.size();
2173  } else {
2174  return tightenedVariablesBuilder_.getCount();
2175  }
2176  }
2194  if (tightenedVariablesBuilder_ == null) {
2195  return tightenedVariables_.get(index);
2196  } else {
2197  return tightenedVariablesBuilder_.getMessage(index);
2198  }
2199  }
2217  int index, com.google.ortools.sat.IntegerVariableProto value) {
2218  if (tightenedVariablesBuilder_ == null) {
2219  if (value == null) {
2220  throw new NullPointerException();
2221  }
2222  ensureTightenedVariablesIsMutable();
2223  tightenedVariables_.set(index, value);
2224  onChanged();
2225  } else {
2226  tightenedVariablesBuilder_.setMessage(index, value);
2227  }
2228  return this;
2229  }
2247  int index, com.google.ortools.sat.IntegerVariableProto.Builder builderForValue) {
2248  if (tightenedVariablesBuilder_ == null) {
2249  ensureTightenedVariablesIsMutable();
2250  tightenedVariables_.set(index, builderForValue.build());
2251  onChanged();
2252  } else {
2253  tightenedVariablesBuilder_.setMessage(index, builderForValue.build());
2254  }
2255  return this;
2256  }
2274  if (tightenedVariablesBuilder_ == null) {
2275  if (value == null) {
2276  throw new NullPointerException();
2277  }
2278  ensureTightenedVariablesIsMutable();
2279  tightenedVariables_.add(value);
2280  onChanged();
2281  } else {
2282  tightenedVariablesBuilder_.addMessage(value);
2283  }
2284  return this;
2285  }
2303  int index, com.google.ortools.sat.IntegerVariableProto value) {
2304  if (tightenedVariablesBuilder_ == null) {
2305  if (value == null) {
2306  throw new NullPointerException();
2307  }
2308  ensureTightenedVariablesIsMutable();
2309  tightenedVariables_.add(index, value);
2310  onChanged();
2311  } else {
2312  tightenedVariablesBuilder_.addMessage(index, value);
2313  }
2314  return this;
2315  }
2333  com.google.ortools.sat.IntegerVariableProto.Builder builderForValue) {
2334  if (tightenedVariablesBuilder_ == null) {
2335  ensureTightenedVariablesIsMutable();
2336  tightenedVariables_.add(builderForValue.build());
2337  onChanged();
2338  } else {
2339  tightenedVariablesBuilder_.addMessage(builderForValue.build());
2340  }
2341  return this;
2342  }
2360  int index, com.google.ortools.sat.IntegerVariableProto.Builder builderForValue) {
2361  if (tightenedVariablesBuilder_ == null) {
2362  ensureTightenedVariablesIsMutable();
2363  tightenedVariables_.add(index, builderForValue.build());
2364  onChanged();
2365  } else {
2366  tightenedVariablesBuilder_.addMessage(index, builderForValue.build());
2367  }
2368  return this;
2369  }
2387  java.lang.Iterable<? extends com.google.ortools.sat.IntegerVariableProto> values) {
2388  if (tightenedVariablesBuilder_ == null) {
2389  ensureTightenedVariablesIsMutable();
2390  com.google.protobuf.AbstractMessageLite.Builder.addAll(
2391  values, tightenedVariables_);
2392  onChanged();
2393  } else {
2394  tightenedVariablesBuilder_.addAllMessages(values);
2395  }
2396  return this;
2397  }
2415  if (tightenedVariablesBuilder_ == null) {
2416  tightenedVariables_ = java.util.Collections.emptyList();
2417  bitField0_ = (bitField0_ & ~0x00000008);
2418  onChanged();
2419  } else {
2420  tightenedVariablesBuilder_.clear();
2421  }
2422  return this;
2423  }
2440  public Builder removeTightenedVariables(int index) {
2441  if (tightenedVariablesBuilder_ == null) {
2442  ensureTightenedVariablesIsMutable();
2443  tightenedVariables_.remove(index);
2444  onChanged();
2445  } else {
2446  tightenedVariablesBuilder_.remove(index);
2447  }
2448  return this;
2449  }
2467  int index) {
2468  return getTightenedVariablesFieldBuilder().getBuilder(index);
2469  }
2487  int index) {
2488  if (tightenedVariablesBuilder_ == null) {
2489  return tightenedVariables_.get(index); } else {
2490  return tightenedVariablesBuilder_.getMessageOrBuilder(index);
2491  }
2492  }
2509  public java.util.List<? extends com.google.ortools.sat.IntegerVariableProtoOrBuilder>
2511  if (tightenedVariablesBuilder_ != null) {
2512  return tightenedVariablesBuilder_.getMessageOrBuilderList();
2513  } else {
2514  return java.util.Collections.unmodifiableList(tightenedVariables_);
2515  }
2516  }
2534  return getTightenedVariablesFieldBuilder().addBuilder(
2536  }
2554  int index) {
2555  return getTightenedVariablesFieldBuilder().addBuilder(
2557  }
2574  public java.util.List<com.google.ortools.sat.IntegerVariableProto.Builder>
2576  return getTightenedVariablesFieldBuilder().getBuilderList();
2577  }
2578  private com.google.protobuf.RepeatedFieldBuilderV3<
2580  getTightenedVariablesFieldBuilder() {
2581  if (tightenedVariablesBuilder_ == null) {
2582  tightenedVariablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
2584  tightenedVariables_,
2585  ((bitField0_ & 0x00000008) != 0),
2586  getParentForChildren(),
2587  isClean());
2588  tightenedVariables_ = null;
2589  }
2590  return tightenedVariablesBuilder_;
2591  }
2592 
2593  private com.google.protobuf.Internal.IntList sufficientAssumptionsForInfeasibility_ = emptyIntList();
2594  private void ensureSufficientAssumptionsForInfeasibilityIsMutable() {
2595  if (!((bitField0_ & 0x00000010) != 0)) {
2596  sufficientAssumptionsForInfeasibility_ = mutableCopy(sufficientAssumptionsForInfeasibility_);
2597  bitField0_ |= 0x00000010;
2598  }
2599  }
2618  public java.util.List<java.lang.Integer>
2620  return ((bitField0_ & 0x00000010) != 0) ?
2621  java.util.Collections.unmodifiableList(sufficientAssumptionsForInfeasibility_) : sufficientAssumptionsForInfeasibility_;
2622  }
2642  return sufficientAssumptionsForInfeasibility_.size();
2643  }
2664  return sufficientAssumptionsForInfeasibility_.getInt(index);
2665  }
2687  int index, int value) {
2688  ensureSufficientAssumptionsForInfeasibilityIsMutable();
2689  sufficientAssumptionsForInfeasibility_.setInt(index, value);
2690  onChanged();
2691  return this;
2692  }
2713  ensureSufficientAssumptionsForInfeasibilityIsMutable();
2714  sufficientAssumptionsForInfeasibility_.addInt(value);
2715  onChanged();
2716  return this;
2717  }
2738  java.lang.Iterable<? extends java.lang.Integer> values) {
2739  ensureSufficientAssumptionsForInfeasibilityIsMutable();
2740  com.google.protobuf.AbstractMessageLite.Builder.addAll(
2741  values, sufficientAssumptionsForInfeasibility_);
2742  onChanged();
2743  return this;
2744  }
2764  sufficientAssumptionsForInfeasibility_ = emptyIntList();
2765  bitField0_ = (bitField0_ & ~0x00000010);
2766  onChanged();
2767  return this;
2768  }
2769 
2770  private boolean allSolutionsWereFound_ ;
2782  @java.lang.Override
2783  public boolean getAllSolutionsWereFound() {
2784  return allSolutionsWereFound_;
2785  }
2798  public Builder setAllSolutionsWereFound(boolean value) {
2799 
2800  allSolutionsWereFound_ = value;
2801  onChanged();
2802  return this;
2803  }
2816 
2817  allSolutionsWereFound_ = false;
2818  onChanged();
2819  return this;
2820  }
2821 
2822  private long numBooleans_ ;
2831  @java.lang.Override
2832  public long getNumBooleans() {
2833  return numBooleans_;
2834  }
2844  public Builder setNumBooleans(long value) {
2845 
2846  numBooleans_ = value;
2847  onChanged();
2848  return this;
2849  }
2859 
2860  numBooleans_ = 0L;
2861  onChanged();
2862  return this;
2863  }
2864 
2865  private long numConflicts_ ;
2870  @java.lang.Override
2871  public long getNumConflicts() {
2872  return numConflicts_;
2873  }
2879  public Builder setNumConflicts(long value) {
2880 
2881  numConflicts_ = value;
2882  onChanged();
2883  return this;
2884  }
2890 
2891  numConflicts_ = 0L;
2892  onChanged();
2893  return this;
2894  }
2895 
2896  private long numBranches_ ;
2901  @java.lang.Override
2902  public long getNumBranches() {
2903  return numBranches_;
2904  }
2910  public Builder setNumBranches(long value) {
2911 
2912  numBranches_ = value;
2913  onChanged();
2914  return this;
2915  }
2921 
2922  numBranches_ = 0L;
2923  onChanged();
2924  return this;
2925  }
2926 
2927  private long numBinaryPropagations_ ;
2932  @java.lang.Override
2934  return numBinaryPropagations_;
2935  }
2941  public Builder setNumBinaryPropagations(long value) {
2942 
2943  numBinaryPropagations_ = value;
2944  onChanged();
2945  return this;
2946  }
2952 
2953  numBinaryPropagations_ = 0L;
2954  onChanged();
2955  return this;
2956  }
2957 
2958  private long numIntegerPropagations_ ;
2963  @java.lang.Override
2965  return numIntegerPropagations_;
2966  }
2972  public Builder setNumIntegerPropagations(long value) {
2973 
2974  numIntegerPropagations_ = value;
2975  onChanged();
2976  return this;
2977  }
2983 
2984  numIntegerPropagations_ = 0L;
2985  onChanged();
2986  return this;
2987  }
2988 
2989  private double wallTime_ ;
2994  @java.lang.Override
2995  public double getWallTime() {
2996  return wallTime_;
2997  }
3003  public Builder setWallTime(double value) {
3004 
3005  wallTime_ = value;
3006  onChanged();
3007  return this;
3008  }
3014 
3015  wallTime_ = 0D;
3016  onChanged();
3017  return this;
3018  }
3019 
3020  private double userTime_ ;
3025  @java.lang.Override
3026  public double getUserTime() {
3027  return userTime_;
3028  }
3034  public Builder setUserTime(double value) {
3035 
3036  userTime_ = value;
3037  onChanged();
3038  return this;
3039  }
3045 
3046  userTime_ = 0D;
3047  onChanged();
3048  return this;
3049  }
3050 
3051  private double deterministicTime_ ;
3056  @java.lang.Override
3057  public double getDeterministicTime() {
3058  return deterministicTime_;
3059  }
3065  public Builder setDeterministicTime(double value) {
3066 
3067  deterministicTime_ = value;
3068  onChanged();
3069  return this;
3070  }
3076 
3077  deterministicTime_ = 0D;
3078  onChanged();
3079  return this;
3080  }
3081 
3082  private double primalIntegral_ ;
3087  @java.lang.Override
3088  public double getPrimalIntegral() {
3089  return primalIntegral_;
3090  }
3096  public Builder setPrimalIntegral(double value) {
3097 
3098  primalIntegral_ = value;
3099  onChanged();
3100  return this;
3101  }
3107 
3108  primalIntegral_ = 0D;
3109  onChanged();
3110  return this;
3111  }
3112 
3113  private java.lang.Object solutionInfo_ = "";
3122  public java.lang.String getSolutionInfo() {
3123  java.lang.Object ref = solutionInfo_;
3124  if (!(ref instanceof java.lang.String)) {
3125  com.google.protobuf.ByteString bs =
3126  (com.google.protobuf.ByteString) ref;
3127  java.lang.String s = bs.toStringUtf8();
3128  solutionInfo_ = s;
3129  return s;
3130  } else {
3131  return (java.lang.String) ref;
3132  }
3133  }
3142  public com.google.protobuf.ByteString
3144  java.lang.Object ref = solutionInfo_;
3145  if (ref instanceof String) {
3146  com.google.protobuf.ByteString b =
3147  com.google.protobuf.ByteString.copyFromUtf8(
3148  (java.lang.String) ref);
3149  solutionInfo_ = b;
3150  return b;
3151  } else {
3152  return (com.google.protobuf.ByteString) ref;
3153  }
3154  }
3165  java.lang.String value) {
3166  if (value == null) {
3167  throw new NullPointerException();
3168  }
3169 
3170  solutionInfo_ = value;
3171  onChanged();
3172  return this;
3173  }
3183 
3184  solutionInfo_ = getDefaultInstance().getSolutionInfo();
3185  onChanged();
3186  return this;
3187  }
3198  com.google.protobuf.ByteString value) {
3199  if (value == null) {
3200  throw new NullPointerException();
3201  }
3202  checkByteStringIsUtf8(value);
3203 
3204  solutionInfo_ = value;
3205  onChanged();
3206  return this;
3207  }
3208  @java.lang.Override
3210  final com.google.protobuf.UnknownFieldSet unknownFields) {
3211  return super.setUnknownFields(unknownFields);
3212  }
3213 
3214  @java.lang.Override
3216  final com.google.protobuf.UnknownFieldSet unknownFields) {
3217  return super.mergeUnknownFields(unknownFields);
3218  }
3219 
3220 
3221  // @@protoc_insertion_point(builder_scope:operations_research.sat.CpSolverResponse)
3222  }
3223 
3224  // @@protoc_insertion_point(class_scope:operations_research.sat.CpSolverResponse)
3225  private static final com.google.ortools.sat.CpSolverResponse DEFAULT_INSTANCE;
3226  static {
3227  DEFAULT_INSTANCE = new com.google.ortools.sat.CpSolverResponse();
3228  }
3229 
3231  return DEFAULT_INSTANCE;
3232  }
3233 
3234  private static final com.google.protobuf.Parser<CpSolverResponse>
3235  PARSER = new com.google.protobuf.AbstractParser<CpSolverResponse>() {
3236  @java.lang.Override
3237  public CpSolverResponse parsePartialFrom(
3238  com.google.protobuf.CodedInputStream input,
3239  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3240  throws com.google.protobuf.InvalidProtocolBufferException {
3241  return new CpSolverResponse(input, extensionRegistry);
3242  }
3243  };
3244 
3245  public static com.google.protobuf.Parser<CpSolverResponse> parser() {
3246  return PARSER;
3247  }
3248 
3249  @java.lang.Override
3250  public com.google.protobuf.Parser<CpSolverResponse> getParserForType() {
3251  return PARSER;
3252  }
3253 
3254  @java.lang.Override
3256  return DEFAULT_INSTANCE;
3257  }
3258 
3259 }
3260 
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)