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  solutionInfo_ = "";
32  }
33 
34  @java.lang.Override
35  @SuppressWarnings({"unused"})
36  protected java.lang.Object newInstance(
37  UnusedPrivateParameter unused) {
38  return new CpSolverResponse();
39  }
40 
41  @java.lang.Override
42  public final com.google.protobuf.UnknownFieldSet
44  return this.unknownFields;
45  }
46  private CpSolverResponse(
47  com.google.protobuf.CodedInputStream input,
48  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
49  throws com.google.protobuf.InvalidProtocolBufferException {
50  this();
51  if (extensionRegistry == null) {
52  throw new java.lang.NullPointerException();
53  }
54  int mutable_bitField0_ = 0;
55  com.google.protobuf.UnknownFieldSet.Builder unknownFields =
56  com.google.protobuf.UnknownFieldSet.newBuilder();
57  try {
58  boolean done = false;
59  while (!done) {
60  int tag = input.readTag();
61  switch (tag) {
62  case 0:
63  done = true;
64  break;
65  case 8: {
66  int rawValue = input.readEnum();
67 
68  status_ = rawValue;
69  break;
70  }
71  case 16: {
72  if (!((mutable_bitField0_ & 0x00000001) != 0)) {
73  solution_ = newLongList();
74  mutable_bitField0_ |= 0x00000001;
75  }
76  solution_.addLong(input.readInt64());
77  break;
78  }
79  case 18: {
80  int length = input.readRawVarint32();
81  int limit = input.pushLimit(length);
82  if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
83  solution_ = newLongList();
84  mutable_bitField0_ |= 0x00000001;
85  }
86  while (input.getBytesUntilLimit() > 0) {
87  solution_.addLong(input.readInt64());
88  }
89  input.popLimit(limit);
90  break;
91  }
92  case 25: {
93 
94  objectiveValue_ = input.readDouble();
95  break;
96  }
97  case 33: {
98 
99  bestObjectiveBound_ = input.readDouble();
100  break;
101  }
102  case 40: {
103 
104  allSolutionsWereFound_ = input.readBool();
105  break;
106  }
107  case 80: {
108 
109  numBooleans_ = input.readInt64();
110  break;
111  }
112  case 88: {
113 
114  numConflicts_ = input.readInt64();
115  break;
116  }
117  case 96: {
118 
119  numBranches_ = input.readInt64();
120  break;
121  }
122  case 104: {
123 
124  numBinaryPropagations_ = input.readInt64();
125  break;
126  }
127  case 112: {
128 
129  numIntegerPropagations_ = input.readInt64();
130  break;
131  }
132  case 121: {
133 
134  wallTime_ = input.readDouble();
135  break;
136  }
137  case 129: {
138 
139  userTime_ = input.readDouble();
140  break;
141  }
142  case 137: {
143 
144  deterministicTime_ = input.readDouble();
145  break;
146  }
147  case 144: {
148  if (!((mutable_bitField0_ & 0x00000002) != 0)) {
149  solutionLowerBounds_ = newLongList();
150  mutable_bitField0_ |= 0x00000002;
151  }
152  solutionLowerBounds_.addLong(input.readInt64());
153  break;
154  }
155  case 146: {
156  int length = input.readRawVarint32();
157  int limit = input.pushLimit(length);
158  if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
159  solutionLowerBounds_ = newLongList();
160  mutable_bitField0_ |= 0x00000002;
161  }
162  while (input.getBytesUntilLimit() > 0) {
163  solutionLowerBounds_.addLong(input.readInt64());
164  }
165  input.popLimit(limit);
166  break;
167  }
168  case 152: {
169  if (!((mutable_bitField0_ & 0x00000004) != 0)) {
170  solutionUpperBounds_ = newLongList();
171  mutable_bitField0_ |= 0x00000004;
172  }
173  solutionUpperBounds_.addLong(input.readInt64());
174  break;
175  }
176  case 154: {
177  int length = input.readRawVarint32();
178  int limit = input.pushLimit(length);
179  if (!((mutable_bitField0_ & 0x00000004) != 0) && input.getBytesUntilLimit() > 0) {
180  solutionUpperBounds_ = newLongList();
181  mutable_bitField0_ |= 0x00000004;
182  }
183  while (input.getBytesUntilLimit() > 0) {
184  solutionUpperBounds_.addLong(input.readInt64());
185  }
186  input.popLimit(limit);
187  break;
188  }
189  case 162: {
190  java.lang.String s = input.readStringRequireUtf8();
191 
192  solutionInfo_ = s;
193  break;
194  }
195  case 170: {
196  if (!((mutable_bitField0_ & 0x00000008) != 0)) {
197  tightenedVariables_ = new java.util.ArrayList<com.google.ortools.sat.IntegerVariableProto>();
198  mutable_bitField0_ |= 0x00000008;
199  }
200  tightenedVariables_.add(
201  input.readMessage(com.google.ortools.sat.IntegerVariableProto.parser(), extensionRegistry));
202  break;
203  }
204  case 177: {
205 
206  primalIntegral_ = input.readDouble();
207  break;
208  }
209  default: {
210  if (!parseUnknownField(
211  input, unknownFields, extensionRegistry, tag)) {
212  done = true;
213  }
214  break;
215  }
216  }
217  }
218  } catch (com.google.protobuf.InvalidProtocolBufferException e) {
219  throw e.setUnfinishedMessage(this);
220  } catch (java.io.IOException e) {
221  throw new com.google.protobuf.InvalidProtocolBufferException(
222  e).setUnfinishedMessage(this);
223  } finally {
224  if (((mutable_bitField0_ & 0x00000001) != 0)) {
225  solution_.makeImmutable(); // C
226  }
227  if (((mutable_bitField0_ & 0x00000002) != 0)) {
228  solutionLowerBounds_.makeImmutable(); // C
229  }
230  if (((mutable_bitField0_ & 0x00000004) != 0)) {
231  solutionUpperBounds_.makeImmutable(); // C
232  }
233  if (((mutable_bitField0_ & 0x00000008) != 0)) {
234  tightenedVariables_ = java.util.Collections.unmodifiableList(tightenedVariables_);
235  }
236  this.unknownFields = unknownFields.build();
237  makeExtensionsImmutable();
238  }
239  }
240  public static final com.google.protobuf.Descriptors.Descriptor
242  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_descriptor;
243  }
244 
245  @java.lang.Override
246  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
248  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_fieldAccessorTable
249  .ensureFieldAccessorsInitialized(
251  }
252 
253  public static final int STATUS_FIELD_NUMBER = 1;
254  private int status_;
263  public int getStatusValue() {
264  return status_;
265  }
275  @SuppressWarnings("deprecation")
277  return result == null ? com.google.ortools.sat.CpSolverStatus.UNRECOGNIZED : result;
278  }
279 
280  public static final int SOLUTION_FIELD_NUMBER = 2;
281  private com.google.protobuf.Internal.LongList solution_;
293  public java.util.List<java.lang.Long>
295  return solution_;
296  }
308  public int getSolutionCount() {
309  return solution_.size();
310  }
323  public long getSolution(int index) {
324  return solution_.getLong(index);
325  }
326  private int solutionMemoizedSerializedSize = -1;
327 
328  public static final int OBJECTIVE_VALUE_FIELD_NUMBER = 3;
329  private double objectiveValue_;
341  public double getObjectiveValue() {
342  return objectiveValue_;
343  }
344 
345  public static final int BEST_OBJECTIVE_BOUND_FIELD_NUMBER = 4;
346  private double bestObjectiveBound_;
357  public double getBestObjectiveBound() {
358  return bestObjectiveBound_;
359  }
360 
361  public static final int SOLUTION_LOWER_BOUNDS_FIELD_NUMBER = 18;
362  private com.google.protobuf.Internal.LongList solutionLowerBounds_;
376  public java.util.List<java.lang.Long>
378  return solutionLowerBounds_;
379  }
394  return solutionLowerBounds_.size();
395  }
410  public long getSolutionLowerBounds(int index) {
411  return solutionLowerBounds_.getLong(index);
412  }
413  private int solutionLowerBoundsMemoizedSerializedSize = -1;
414 
415  public static final int SOLUTION_UPPER_BOUNDS_FIELD_NUMBER = 19;
416  private com.google.protobuf.Internal.LongList solutionUpperBounds_;
421  public java.util.List<java.lang.Long>
423  return solutionUpperBounds_;
424  }
430  return solutionUpperBounds_.size();
431  }
437  public long getSolutionUpperBounds(int index) {
438  return solutionUpperBounds_.getLong(index);
439  }
440  private int solutionUpperBoundsMemoizedSerializedSize = -1;
441 
442  public static final int TIGHTENED_VARIABLES_FIELD_NUMBER = 21;
443  private java.util.List<com.google.ortools.sat.IntegerVariableProto> tightenedVariables_;
461  return tightenedVariables_;
462  }
479  public java.util.List<? extends com.google.ortools.sat.IntegerVariableProtoOrBuilder>
481  return tightenedVariables_;
482  }
500  return tightenedVariables_.size();
501  }
519  return tightenedVariables_.get(index);
520  }
538  int index) {
539  return tightenedVariables_.get(index);
540  }
541 
542  public static final int ALL_SOLUTIONS_WERE_FOUND_FIELD_NUMBER = 5;
543  private boolean allSolutionsWereFound_;
555  public boolean getAllSolutionsWereFound() {
556  return allSolutionsWereFound_;
557  }
558 
559  public static final int NUM_BOOLEANS_FIELD_NUMBER = 10;
560  private long numBooleans_;
569  public long getNumBooleans() {
570  return numBooleans_;
571  }
572 
573  public static final int NUM_CONFLICTS_FIELD_NUMBER = 11;
574  private long numConflicts_;
579  public long getNumConflicts() {
580  return numConflicts_;
581  }
582 
583  public static final int NUM_BRANCHES_FIELD_NUMBER = 12;
584  private long numBranches_;
589  public long getNumBranches() {
590  return numBranches_;
591  }
592 
593  public static final int NUM_BINARY_PROPAGATIONS_FIELD_NUMBER = 13;
594  private long numBinaryPropagations_;
599  public long getNumBinaryPropagations() {
600  return numBinaryPropagations_;
601  }
602 
603  public static final int NUM_INTEGER_PROPAGATIONS_FIELD_NUMBER = 14;
604  private long numIntegerPropagations_;
610  return numIntegerPropagations_;
611  }
612 
613  public static final int WALL_TIME_FIELD_NUMBER = 15;
614  private double wallTime_;
619  public double getWallTime() {
620  return wallTime_;
621  }
622 
623  public static final int USER_TIME_FIELD_NUMBER = 16;
624  private double userTime_;
629  public double getUserTime() {
630  return userTime_;
631  }
632 
633  public static final int DETERMINISTIC_TIME_FIELD_NUMBER = 17;
634  private double deterministicTime_;
639  public double getDeterministicTime() {
640  return deterministicTime_;
641  }
642 
643  public static final int PRIMAL_INTEGRAL_FIELD_NUMBER = 22;
644  private double primalIntegral_;
649  public double getPrimalIntegral() {
650  return primalIntegral_;
651  }
652 
653  public static final int SOLUTION_INFO_FIELD_NUMBER = 20;
654  private volatile java.lang.Object solutionInfo_;
663  public java.lang.String getSolutionInfo() {
664  java.lang.Object ref = solutionInfo_;
665  if (ref instanceof java.lang.String) {
666  return (java.lang.String) ref;
667  } else {
668  com.google.protobuf.ByteString bs =
669  (com.google.protobuf.ByteString) ref;
670  java.lang.String s = bs.toStringUtf8();
671  solutionInfo_ = s;
672  return s;
673  }
674  }
683  public com.google.protobuf.ByteString
685  java.lang.Object ref = solutionInfo_;
686  if (ref instanceof java.lang.String) {
687  com.google.protobuf.ByteString b =
688  com.google.protobuf.ByteString.copyFromUtf8(
689  (java.lang.String) ref);
690  solutionInfo_ = b;
691  return b;
692  } else {
693  return (com.google.protobuf.ByteString) ref;
694  }
695  }
696 
697  private byte memoizedIsInitialized = -1;
698  @java.lang.Override
699  public final boolean isInitialized() {
700  byte isInitialized = memoizedIsInitialized;
701  if (isInitialized == 1) return true;
702  if (isInitialized == 0) return false;
703 
704  memoizedIsInitialized = 1;
705  return true;
706  }
707 
708  @java.lang.Override
709  public void writeTo(com.google.protobuf.CodedOutputStream output)
710  throws java.io.IOException {
712  if (status_ != com.google.ortools.sat.CpSolverStatus.UNKNOWN.getNumber()) {
713  output.writeEnum(1, status_);
714  }
715  if (getSolutionList().size() > 0) {
716  output.writeUInt32NoTag(18);
717  output.writeUInt32NoTag(solutionMemoizedSerializedSize);
718  }
719  for (int i = 0; i < solution_.size(); i++) {
720  output.writeInt64NoTag(solution_.getLong(i));
721  }
722  if (objectiveValue_ != 0D) {
723  output.writeDouble(3, objectiveValue_);
724  }
725  if (bestObjectiveBound_ != 0D) {
726  output.writeDouble(4, bestObjectiveBound_);
727  }
728  if (allSolutionsWereFound_ != false) {
729  output.writeBool(5, allSolutionsWereFound_);
730  }
731  if (numBooleans_ != 0L) {
732  output.writeInt64(10, numBooleans_);
733  }
734  if (numConflicts_ != 0L) {
735  output.writeInt64(11, numConflicts_);
736  }
737  if (numBranches_ != 0L) {
738  output.writeInt64(12, numBranches_);
739  }
740  if (numBinaryPropagations_ != 0L) {
741  output.writeInt64(13, numBinaryPropagations_);
742  }
743  if (numIntegerPropagations_ != 0L) {
744  output.writeInt64(14, numIntegerPropagations_);
745  }
746  if (wallTime_ != 0D) {
747  output.writeDouble(15, wallTime_);
748  }
749  if (userTime_ != 0D) {
750  output.writeDouble(16, userTime_);
751  }
752  if (deterministicTime_ != 0D) {
753  output.writeDouble(17, deterministicTime_);
754  }
755  if (getSolutionLowerBoundsList().size() > 0) {
756  output.writeUInt32NoTag(146);
757  output.writeUInt32NoTag(solutionLowerBoundsMemoizedSerializedSize);
758  }
759  for (int i = 0; i < solutionLowerBounds_.size(); i++) {
760  output.writeInt64NoTag(solutionLowerBounds_.getLong(i));
761  }
762  if (getSolutionUpperBoundsList().size() > 0) {
763  output.writeUInt32NoTag(154);
764  output.writeUInt32NoTag(solutionUpperBoundsMemoizedSerializedSize);
765  }
766  for (int i = 0; i < solutionUpperBounds_.size(); i++) {
767  output.writeInt64NoTag(solutionUpperBounds_.getLong(i));
768  }
769  if (!getSolutionInfoBytes().isEmpty()) {
770  com.google.protobuf.GeneratedMessageV3.writeString(output, 20, solutionInfo_);
771  }
772  for (int i = 0; i < tightenedVariables_.size(); i++) {
773  output.writeMessage(21, tightenedVariables_.get(i));
774  }
775  if (primalIntegral_ != 0D) {
776  output.writeDouble(22, primalIntegral_);
777  }
778  unknownFields.writeTo(output);
779  }
780 
781  @java.lang.Override
782  public int getSerializedSize() {
783  int size = memoizedSize;
784  if (size != -1) return size;
785 
786  size = 0;
787  if (status_ != com.google.ortools.sat.CpSolverStatus.UNKNOWN.getNumber()) {
788  size += com.google.protobuf.CodedOutputStream
789  .computeEnumSize(1, status_);
790  }
791  {
792  int dataSize = 0;
793  for (int i = 0; i < solution_.size(); i++) {
794  dataSize += com.google.protobuf.CodedOutputStream
795  .computeInt64SizeNoTag(solution_.getLong(i));
796  }
797  size += dataSize;
798  if (!getSolutionList().isEmpty()) {
799  size += 1;
800  size += com.google.protobuf.CodedOutputStream
801  .computeInt32SizeNoTag(dataSize);
802  }
803  solutionMemoizedSerializedSize = dataSize;
804  }
805  if (objectiveValue_ != 0D) {
806  size += com.google.protobuf.CodedOutputStream
807  .computeDoubleSize(3, objectiveValue_);
808  }
809  if (bestObjectiveBound_ != 0D) {
810  size += com.google.protobuf.CodedOutputStream
811  .computeDoubleSize(4, bestObjectiveBound_);
812  }
813  if (allSolutionsWereFound_ != false) {
814  size += com.google.protobuf.CodedOutputStream
815  .computeBoolSize(5, allSolutionsWereFound_);
816  }
817  if (numBooleans_ != 0L) {
818  size += com.google.protobuf.CodedOutputStream
819  .computeInt64Size(10, numBooleans_);
820  }
821  if (numConflicts_ != 0L) {
822  size += com.google.protobuf.CodedOutputStream
823  .computeInt64Size(11, numConflicts_);
824  }
825  if (numBranches_ != 0L) {
826  size += com.google.protobuf.CodedOutputStream
827  .computeInt64Size(12, numBranches_);
828  }
829  if (numBinaryPropagations_ != 0L) {
830  size += com.google.protobuf.CodedOutputStream
831  .computeInt64Size(13, numBinaryPropagations_);
832  }
833  if (numIntegerPropagations_ != 0L) {
834  size += com.google.protobuf.CodedOutputStream
835  .computeInt64Size(14, numIntegerPropagations_);
836  }
837  if (wallTime_ != 0D) {
838  size += com.google.protobuf.CodedOutputStream
839  .computeDoubleSize(15, wallTime_);
840  }
841  if (userTime_ != 0D) {
842  size += com.google.protobuf.CodedOutputStream
843  .computeDoubleSize(16, userTime_);
844  }
845  if (deterministicTime_ != 0D) {
846  size += com.google.protobuf.CodedOutputStream
847  .computeDoubleSize(17, deterministicTime_);
848  }
849  {
850  int dataSize = 0;
851  for (int i = 0; i < solutionLowerBounds_.size(); i++) {
852  dataSize += com.google.protobuf.CodedOutputStream
853  .computeInt64SizeNoTag(solutionLowerBounds_.getLong(i));
854  }
855  size += dataSize;
856  if (!getSolutionLowerBoundsList().isEmpty()) {
857  size += 2;
858  size += com.google.protobuf.CodedOutputStream
859  .computeInt32SizeNoTag(dataSize);
860  }
861  solutionLowerBoundsMemoizedSerializedSize = dataSize;
862  }
863  {
864  int dataSize = 0;
865  for (int i = 0; i < solutionUpperBounds_.size(); i++) {
866  dataSize += com.google.protobuf.CodedOutputStream
867  .computeInt64SizeNoTag(solutionUpperBounds_.getLong(i));
868  }
869  size += dataSize;
870  if (!getSolutionUpperBoundsList().isEmpty()) {
871  size += 2;
872  size += com.google.protobuf.CodedOutputStream
873  .computeInt32SizeNoTag(dataSize);
874  }
875  solutionUpperBoundsMemoizedSerializedSize = dataSize;
876  }
877  if (!getSolutionInfoBytes().isEmpty()) {
878  size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, solutionInfo_);
879  }
880  for (int i = 0; i < tightenedVariables_.size(); i++) {
881  size += com.google.protobuf.CodedOutputStream
882  .computeMessageSize(21, tightenedVariables_.get(i));
883  }
884  if (primalIntegral_ != 0D) {
885  size += com.google.protobuf.CodedOutputStream
886  .computeDoubleSize(22, primalIntegral_);
887  }
888  size += unknownFields.getSerializedSize();
889  memoizedSize = size;
890  return size;
891  }
892 
893  @java.lang.Override
894  public boolean equals(final java.lang.Object obj) {
895  if (obj == this) {
896  return true;
897  }
898  if (!(obj instanceof com.google.ortools.sat.CpSolverResponse)) {
899  return super.equals(obj);
900  }
902 
903  if (status_ != other.status_) return false;
904  if (!getSolutionList()
905  .equals(other.getSolutionList())) return false;
906  if (java.lang.Double.doubleToLongBits(getObjectiveValue())
907  != java.lang.Double.doubleToLongBits(
908  other.getObjectiveValue())) return false;
909  if (java.lang.Double.doubleToLongBits(getBestObjectiveBound())
910  != java.lang.Double.doubleToLongBits(
911  other.getBestObjectiveBound())) return false;
913  .equals(other.getSolutionLowerBoundsList())) return false;
915  .equals(other.getSolutionUpperBoundsList())) return false;
917  .equals(other.getTightenedVariablesList())) return false;
919  != other.getAllSolutionsWereFound()) return false;
920  if (getNumBooleans()
921  != other.getNumBooleans()) return false;
922  if (getNumConflicts()
923  != other.getNumConflicts()) return false;
924  if (getNumBranches()
925  != other.getNumBranches()) return false;
927  != other.getNumBinaryPropagations()) return false;
929  != other.getNumIntegerPropagations()) return false;
930  if (java.lang.Double.doubleToLongBits(getWallTime())
931  != java.lang.Double.doubleToLongBits(
932  other.getWallTime())) return false;
933  if (java.lang.Double.doubleToLongBits(getUserTime())
934  != java.lang.Double.doubleToLongBits(
935  other.getUserTime())) return false;
936  if (java.lang.Double.doubleToLongBits(getDeterministicTime())
937  != java.lang.Double.doubleToLongBits(
938  other.getDeterministicTime())) return false;
939  if (java.lang.Double.doubleToLongBits(getPrimalIntegral())
940  != java.lang.Double.doubleToLongBits(
941  other.getPrimalIntegral())) return false;
942  if (!getSolutionInfo()
943  .equals(other.getSolutionInfo())) return false;
944  if (!unknownFields.equals(other.unknownFields)) return false;
945  return true;
946  }
947 
948  @java.lang.Override
949  public int hashCode() {
950  if (memoizedHashCode != 0) {
951  return memoizedHashCode;
952  }
953  int hash = 41;
954  hash = (19 * hash) + getDescriptor().hashCode();
955  hash = (37 * hash) + STATUS_FIELD_NUMBER;
956  hash = (53 * hash) + status_;
957  if (getSolutionCount() > 0) {
958  hash = (37 * hash) + SOLUTION_FIELD_NUMBER;
959  hash = (53 * hash) + getSolutionList().hashCode();
960  }
961  hash = (37 * hash) + OBJECTIVE_VALUE_FIELD_NUMBER;
962  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
963  java.lang.Double.doubleToLongBits(getObjectiveValue()));
964  hash = (37 * hash) + BEST_OBJECTIVE_BOUND_FIELD_NUMBER;
965  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
966  java.lang.Double.doubleToLongBits(getBestObjectiveBound()));
967  if (getSolutionLowerBoundsCount() > 0) {
968  hash = (37 * hash) + SOLUTION_LOWER_BOUNDS_FIELD_NUMBER;
969  hash = (53 * hash) + getSolutionLowerBoundsList().hashCode();
970  }
971  if (getSolutionUpperBoundsCount() > 0) {
972  hash = (37 * hash) + SOLUTION_UPPER_BOUNDS_FIELD_NUMBER;
973  hash = (53 * hash) + getSolutionUpperBoundsList().hashCode();
974  }
975  if (getTightenedVariablesCount() > 0) {
976  hash = (37 * hash) + TIGHTENED_VARIABLES_FIELD_NUMBER;
977  hash = (53 * hash) + getTightenedVariablesList().hashCode();
978  }
979  hash = (37 * hash) + ALL_SOLUTIONS_WERE_FOUND_FIELD_NUMBER;
980  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
982  hash = (37 * hash) + NUM_BOOLEANS_FIELD_NUMBER;
983  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
984  getNumBooleans());
985  hash = (37 * hash) + NUM_CONFLICTS_FIELD_NUMBER;
986  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
987  getNumConflicts());
988  hash = (37 * hash) + NUM_BRANCHES_FIELD_NUMBER;
989  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
990  getNumBranches());
991  hash = (37 * hash) + NUM_BINARY_PROPAGATIONS_FIELD_NUMBER;
992  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
994  hash = (37 * hash) + NUM_INTEGER_PROPAGATIONS_FIELD_NUMBER;
995  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
997  hash = (37 * hash) + WALL_TIME_FIELD_NUMBER;
998  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
999  java.lang.Double.doubleToLongBits(getWallTime()));
1000  hash = (37 * hash) + USER_TIME_FIELD_NUMBER;
1001  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1002  java.lang.Double.doubleToLongBits(getUserTime()));
1003  hash = (37 * hash) + DETERMINISTIC_TIME_FIELD_NUMBER;
1004  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1005  java.lang.Double.doubleToLongBits(getDeterministicTime()));
1006  hash = (37 * hash) + PRIMAL_INTEGRAL_FIELD_NUMBER;
1007  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1008  java.lang.Double.doubleToLongBits(getPrimalIntegral()));
1009  hash = (37 * hash) + SOLUTION_INFO_FIELD_NUMBER;
1010  hash = (53 * hash) + getSolutionInfo().hashCode();
1011  hash = (29 * hash) + unknownFields.hashCode();
1012  memoizedHashCode = hash;
1013  return hash;
1014  }
1015 
1017  java.nio.ByteBuffer data)
1018  throws com.google.protobuf.InvalidProtocolBufferException {
1019  return PARSER.parseFrom(data);
1020  }
1022  java.nio.ByteBuffer data,
1023  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1024  throws com.google.protobuf.InvalidProtocolBufferException {
1025  return PARSER.parseFrom(data, extensionRegistry);
1026  }
1028  com.google.protobuf.ByteString data)
1029  throws com.google.protobuf.InvalidProtocolBufferException {
1030  return PARSER.parseFrom(data);
1031  }
1033  com.google.protobuf.ByteString data,
1034  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1035  throws com.google.protobuf.InvalidProtocolBufferException {
1036  return PARSER.parseFrom(data, extensionRegistry);
1037  }
1038  public static com.google.ortools.sat.CpSolverResponse parseFrom(byte[] data)
1039  throws com.google.protobuf.InvalidProtocolBufferException {
1040  return PARSER.parseFrom(data);
1041  }
1043  byte[] data,
1044  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1045  throws com.google.protobuf.InvalidProtocolBufferException {
1046  return PARSER.parseFrom(data, extensionRegistry);
1047  }
1048  public static com.google.ortools.sat.CpSolverResponse parseFrom(java.io.InputStream input)
1049  throws java.io.IOException {
1050  return com.google.protobuf.GeneratedMessageV3
1051  .parseWithIOException(PARSER, input);
1052  }
1054  java.io.InputStream input,
1055  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1056  throws java.io.IOException {
1057  return com.google.protobuf.GeneratedMessageV3
1058  .parseWithIOException(PARSER, input, extensionRegistry);
1059  }
1060  public static com.google.ortools.sat.CpSolverResponse parseDelimitedFrom(java.io.InputStream input)
1061  throws java.io.IOException {
1062  return com.google.protobuf.GeneratedMessageV3
1063  .parseDelimitedWithIOException(PARSER, input);
1064  }
1066  java.io.InputStream input,
1067  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1068  throws java.io.IOException {
1069  return com.google.protobuf.GeneratedMessageV3
1070  .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
1071  }
1073  com.google.protobuf.CodedInputStream input)
1074  throws java.io.IOException {
1075  return com.google.protobuf.GeneratedMessageV3
1076  .parseWithIOException(PARSER, input);
1077  }
1079  com.google.protobuf.CodedInputStream input,
1080  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1081  throws java.io.IOException {
1082  return com.google.protobuf.GeneratedMessageV3
1083  .parseWithIOException(PARSER, input, extensionRegistry);
1084  }
1085 
1086  @java.lang.Override
1087  public Builder newBuilderForType() { return newBuilder(); }
1088  public static Builder newBuilder() {
1089  return DEFAULT_INSTANCE.toBuilder();
1090  }
1092  return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1093  }
1094  @java.lang.Override
1095  public Builder toBuilder() {
1096  return this == DEFAULT_INSTANCE
1097  ? new Builder() : new Builder().mergeFrom(this);
1098  }
1099 
1100  @java.lang.Override
1102  com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1103  Builder builder = new Builder(parent);
1104  return builder;
1105  }
1116  public static final class Builder extends
1117  com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
1118  // @@protoc_insertion_point(builder_implements:operations_research.sat.CpSolverResponse)
1119  com.google.ortools.sat.CpSolverResponseOrBuilder {
1120  public static final com.google.protobuf.Descriptors.Descriptor
1122  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_descriptor;
1123  }
1124 
1125  @java.lang.Override
1126  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
1128  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_fieldAccessorTable
1129  .ensureFieldAccessorsInitialized(
1131  }
1132 
1133  // Construct using com.google.ortools.sat.CpSolverResponse.newBuilder()
1134  private Builder() {
1135  maybeForceBuilderInitialization();
1136  }
1137 
1138  private Builder(
1139  com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1140  super(parent);
1141  maybeForceBuilderInitialization();
1142  }
1143  private void maybeForceBuilderInitialization() {
1144  if (com.google.protobuf.GeneratedMessageV3
1145  .alwaysUseFieldBuilders) {
1146  getTightenedVariablesFieldBuilder();
1147  }
1148  }
1149  @java.lang.Override
1150  public Builder clear() {
1151  super.clear();
1152  status_ = 0;
1153 
1154  solution_ = emptyLongList();
1155  bitField0_ = (bitField0_ & ~0x00000001);
1156  objectiveValue_ = 0D;
1157 
1158  bestObjectiveBound_ = 0D;
1159 
1160  solutionLowerBounds_ = emptyLongList();
1161  bitField0_ = (bitField0_ & ~0x00000002);
1162  solutionUpperBounds_ = emptyLongList();
1163  bitField0_ = (bitField0_ & ~0x00000004);
1164  if (tightenedVariablesBuilder_ == null) {
1165  tightenedVariables_ = java.util.Collections.emptyList();
1166  bitField0_ = (bitField0_ & ~0x00000008);
1167  } else {
1168  tightenedVariablesBuilder_.clear();
1169  }
1170  allSolutionsWereFound_ = false;
1171 
1172  numBooleans_ = 0L;
1173 
1174  numConflicts_ = 0L;
1175 
1176  numBranches_ = 0L;
1177 
1178  numBinaryPropagations_ = 0L;
1179 
1180  numIntegerPropagations_ = 0L;
1181 
1182  wallTime_ = 0D;
1183 
1184  userTime_ = 0D;
1185 
1186  deterministicTime_ = 0D;
1187 
1188  primalIntegral_ = 0D;
1189 
1190  solutionInfo_ = "";
1191 
1192  return this;
1193  }
1194 
1195  @java.lang.Override
1196  public com.google.protobuf.Descriptors.Descriptor
1198  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_descriptor;
1199  }
1200 
1201  @java.lang.Override
1204  }
1205 
1206  @java.lang.Override
1209  if (!result.isInitialized()) {
1210  throw newUninitializedMessageException(result);
1211  }
1212  return result;
1213  }
1214 
1215  @java.lang.Override
1218  int from_bitField0_ = bitField0_;
1219  result.status_ = status_;
1220  if (((bitField0_ & 0x00000001) != 0)) {
1221  solution_.makeImmutable();
1222  bitField0_ = (bitField0_ & ~0x00000001);
1223  }
1224  result.solution_ = solution_;
1225  result.objectiveValue_ = objectiveValue_;
1226  result.bestObjectiveBound_ = bestObjectiveBound_;
1227  if (((bitField0_ & 0x00000002) != 0)) {
1228  solutionLowerBounds_.makeImmutable();
1229  bitField0_ = (bitField0_ & ~0x00000002);
1230  }
1231  result.solutionLowerBounds_ = solutionLowerBounds_;
1232  if (((bitField0_ & 0x00000004) != 0)) {
1233  solutionUpperBounds_.makeImmutable();
1234  bitField0_ = (bitField0_ & ~0x00000004);
1235  }
1236  result.solutionUpperBounds_ = solutionUpperBounds_;
1237  if (tightenedVariablesBuilder_ == null) {
1238  if (((bitField0_ & 0x00000008) != 0)) {
1239  tightenedVariables_ = java.util.Collections.unmodifiableList(tightenedVariables_);
1240  bitField0_ = (bitField0_ & ~0x00000008);
1241  }
1242  result.tightenedVariables_ = tightenedVariables_;
1243  } else {
1244  result.tightenedVariables_ = tightenedVariablesBuilder_.build();
1245  }
1246  result.allSolutionsWereFound_ = allSolutionsWereFound_;
1247  result.numBooleans_ = numBooleans_;
1248  result.numConflicts_ = numConflicts_;
1249  result.numBranches_ = numBranches_;
1250  result.numBinaryPropagations_ = numBinaryPropagations_;
1251  result.numIntegerPropagations_ = numIntegerPropagations_;
1252  result.wallTime_ = wallTime_;
1253  result.userTime_ = userTime_;
1254  result.deterministicTime_ = deterministicTime_;
1255  result.primalIntegral_ = primalIntegral_;
1256  result.solutionInfo_ = solutionInfo_;
1257  onBuilt();
1258  return result;
1259  }
1260 
1261  @java.lang.Override
1262  public Builder clone() {
1263  return super.clone();
1264  }
1265  @java.lang.Override
1267  com.google.protobuf.Descriptors.FieldDescriptor field,
1268  java.lang.Object value) {
1269  return super.setField(field, value);
1270  }
1271  @java.lang.Override
1273  com.google.protobuf.Descriptors.FieldDescriptor field) {
1274  return super.clearField(field);
1275  }
1276  @java.lang.Override
1278  com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1279  return super.clearOneof(oneof);
1280  }
1281  @java.lang.Override
1283  com.google.protobuf.Descriptors.FieldDescriptor field,
1284  int index, java.lang.Object value) {
1285  return super.setRepeatedField(field, index, value);
1286  }
1287  @java.lang.Override
1289  com.google.protobuf.Descriptors.FieldDescriptor field,
1290  java.lang.Object value) {
1291  return super.addRepeatedField(field, value);
1292  }
1293  @java.lang.Override
1294  public Builder mergeFrom(com.google.protobuf.Message other) {
1295  if (other instanceof com.google.ortools.sat.CpSolverResponse) {
1297  } else {
1298  super.mergeFrom(other);
1299  return this;
1300  }
1301  }
1302 
1304  if (other == com.google.ortools.sat.CpSolverResponse.getDefaultInstance()) return this;
1305  if (other.status_ != 0) {
1306  setStatusValue(other.getStatusValue());
1307  }
1308  if (!other.solution_.isEmpty()) {
1309  if (solution_.isEmpty()) {
1310  solution_ = other.solution_;
1311  bitField0_ = (bitField0_ & ~0x00000001);
1312  } else {
1313  ensureSolutionIsMutable();
1314  solution_.addAll(other.solution_);
1315  }
1316  onChanged();
1317  }
1318  if (other.getObjectiveValue() != 0D) {
1319  setObjectiveValue(other.getObjectiveValue());
1320  }
1321  if (other.getBestObjectiveBound() != 0D) {
1322  setBestObjectiveBound(other.getBestObjectiveBound());
1323  }
1324  if (!other.solutionLowerBounds_.isEmpty()) {
1325  if (solutionLowerBounds_.isEmpty()) {
1326  solutionLowerBounds_ = other.solutionLowerBounds_;
1327  bitField0_ = (bitField0_ & ~0x00000002);
1328  } else {
1329  ensureSolutionLowerBoundsIsMutable();
1330  solutionLowerBounds_.addAll(other.solutionLowerBounds_);
1331  }
1332  onChanged();
1333  }
1334  if (!other.solutionUpperBounds_.isEmpty()) {
1335  if (solutionUpperBounds_.isEmpty()) {
1336  solutionUpperBounds_ = other.solutionUpperBounds_;
1337  bitField0_ = (bitField0_ & ~0x00000004);
1338  } else {
1339  ensureSolutionUpperBoundsIsMutable();
1340  solutionUpperBounds_.addAll(other.solutionUpperBounds_);
1341  }
1342  onChanged();
1343  }
1344  if (tightenedVariablesBuilder_ == null) {
1345  if (!other.tightenedVariables_.isEmpty()) {
1346  if (tightenedVariables_.isEmpty()) {
1347  tightenedVariables_ = other.tightenedVariables_;
1348  bitField0_ = (bitField0_ & ~0x00000008);
1349  } else {
1350  ensureTightenedVariablesIsMutable();
1351  tightenedVariables_.addAll(other.tightenedVariables_);
1352  }
1353  onChanged();
1354  }
1355  } else {
1356  if (!other.tightenedVariables_.isEmpty()) {
1357  if (tightenedVariablesBuilder_.isEmpty()) {
1358  tightenedVariablesBuilder_.dispose();
1359  tightenedVariablesBuilder_ = null;
1360  tightenedVariables_ = other.tightenedVariables_;
1361  bitField0_ = (bitField0_ & ~0x00000008);
1362  tightenedVariablesBuilder_ =
1363  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
1364  getTightenedVariablesFieldBuilder() : null;
1365  } else {
1366  tightenedVariablesBuilder_.addAllMessages(other.tightenedVariables_);
1367  }
1368  }
1369  }
1370  if (other.getAllSolutionsWereFound() != false) {
1371  setAllSolutionsWereFound(other.getAllSolutionsWereFound());
1372  }
1373  if (other.getNumBooleans() != 0L) {
1374  setNumBooleans(other.getNumBooleans());
1375  }
1376  if (other.getNumConflicts() != 0L) {
1377  setNumConflicts(other.getNumConflicts());
1378  }
1379  if (other.getNumBranches() != 0L) {
1380  setNumBranches(other.getNumBranches());
1381  }
1382  if (other.getNumBinaryPropagations() != 0L) {
1383  setNumBinaryPropagations(other.getNumBinaryPropagations());
1384  }
1385  if (other.getNumIntegerPropagations() != 0L) {
1386  setNumIntegerPropagations(other.getNumIntegerPropagations());
1387  }
1388  if (other.getWallTime() != 0D) {
1389  setWallTime(other.getWallTime());
1390  }
1391  if (other.getUserTime() != 0D) {
1392  setUserTime(other.getUserTime());
1393  }
1394  if (other.getDeterministicTime() != 0D) {
1395  setDeterministicTime(other.getDeterministicTime());
1396  }
1397  if (other.getPrimalIntegral() != 0D) {
1398  setPrimalIntegral(other.getPrimalIntegral());
1399  }
1400  if (!other.getSolutionInfo().isEmpty()) {
1401  solutionInfo_ = other.solutionInfo_;
1402  onChanged();
1403  }
1404  this.mergeUnknownFields(other.unknownFields);
1405  onChanged();
1406  return this;
1407  }
1408 
1409  @java.lang.Override
1410  public final boolean isInitialized() {
1411  return true;
1412  }
1413 
1414  @java.lang.Override
1416  com.google.protobuf.CodedInputStream input,
1417  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1418  throws java.io.IOException {
1419  com.google.ortools.sat.CpSolverResponse parsedMessage = null;
1420  try {
1421  parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
1422  } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1423  parsedMessage = (com.google.ortools.sat.CpSolverResponse) e.getUnfinishedMessage();
1424  throw e.unwrapIOException();
1425  } finally {
1426  if (parsedMessage != null) {
1427  mergeFrom(parsedMessage);
1428  }
1429  }
1430  return this;
1431  }
1432  private int bitField0_;
1433 
1434  private int status_ = 0;
1443  public int getStatusValue() {
1444  return status_;
1445  }
1455  public Builder setStatusValue(int value) {
1456  status_ = value;
1457  onChanged();
1458  return this;
1459  }
1469  @SuppressWarnings("deprecation")
1471  return result == null ? com.google.ortools.sat.CpSolverStatus.UNRECOGNIZED : result;
1472  }
1483  if (value == null) {
1484  throw new NullPointerException();
1485  }
1486 
1487  status_ = value.getNumber();
1488  onChanged();
1489  return this;
1490  }
1500 
1501  status_ = 0;
1502  onChanged();
1503  return this;
1504  }
1505 
1506  private com.google.protobuf.Internal.LongList solution_ = emptyLongList();
1507  private void ensureSolutionIsMutable() {
1508  if (!((bitField0_ & 0x00000001) != 0)) {
1509  solution_ = mutableCopy(solution_);
1510  bitField0_ |= 0x00000001;
1511  }
1512  }
1524  public java.util.List<java.lang.Long>
1526  return ((bitField0_ & 0x00000001) != 0) ?
1527  java.util.Collections.unmodifiableList(solution_) : solution_;
1528  }
1540  public int getSolutionCount() {
1541  return solution_.size();
1542  }
1555  public long getSolution(int index) {
1556  return solution_.getLong(index);
1557  }
1572  int index, long value) {
1573  ensureSolutionIsMutable();
1574  solution_.setLong(index, value);
1575  onChanged();
1576  return this;
1577  }
1590  public Builder addSolution(long value) {
1591  ensureSolutionIsMutable();
1592  solution_.addLong(value);
1593  onChanged();
1594  return this;
1595  }
1609  java.lang.Iterable<? extends java.lang.Long> values) {
1610  ensureSolutionIsMutable();
1611  com.google.protobuf.AbstractMessageLite.Builder.addAll(
1612  values, solution_);
1613  onChanged();
1614  return this;
1615  }
1628  solution_ = emptyLongList();
1629  bitField0_ = (bitField0_ & ~0x00000001);
1630  onChanged();
1631  return this;
1632  }
1633 
1634  private double objectiveValue_ ;
1646  public double getObjectiveValue() {
1647  return objectiveValue_;
1648  }
1661  public Builder setObjectiveValue(double value) {
1662 
1663  objectiveValue_ = value;
1664  onChanged();
1665  return this;
1666  }
1679 
1680  objectiveValue_ = 0D;
1681  onChanged();
1682  return this;
1683  }
1684 
1685  private double bestObjectiveBound_ ;
1696  public double getBestObjectiveBound() {
1697  return bestObjectiveBound_;
1698  }
1710  public Builder setBestObjectiveBound(double value) {
1711 
1712  bestObjectiveBound_ = value;
1713  onChanged();
1714  return this;
1715  }
1727 
1728  bestObjectiveBound_ = 0D;
1729  onChanged();
1730  return this;
1731  }
1732 
1733  private com.google.protobuf.Internal.LongList solutionLowerBounds_ = emptyLongList();
1734  private void ensureSolutionLowerBoundsIsMutable() {
1735  if (!((bitField0_ & 0x00000002) != 0)) {
1736  solutionLowerBounds_ = mutableCopy(solutionLowerBounds_);
1737  bitField0_ |= 0x00000002;
1738  }
1739  }
1753  public java.util.List<java.lang.Long>
1755  return ((bitField0_ & 0x00000002) != 0) ?
1756  java.util.Collections.unmodifiableList(solutionLowerBounds_) : solutionLowerBounds_;
1757  }
1772  return solutionLowerBounds_.size();
1773  }
1788  public long getSolutionLowerBounds(int index) {
1789  return solutionLowerBounds_.getLong(index);
1790  }
1807  int index, long value) {
1808  ensureSolutionLowerBoundsIsMutable();
1809  solutionLowerBounds_.setLong(index, value);
1810  onChanged();
1811  return this;
1812  }
1827  public Builder addSolutionLowerBounds(long value) {
1828  ensureSolutionLowerBoundsIsMutable();
1829  solutionLowerBounds_.addLong(value);
1830  onChanged();
1831  return this;
1832  }
1848  java.lang.Iterable<? extends java.lang.Long> values) {
1849  ensureSolutionLowerBoundsIsMutable();
1850  com.google.protobuf.AbstractMessageLite.Builder.addAll(
1851  values, solutionLowerBounds_);
1852  onChanged();
1853  return this;
1854  }
1869  solutionLowerBounds_ = emptyLongList();
1870  bitField0_ = (bitField0_ & ~0x00000002);
1871  onChanged();
1872  return this;
1873  }
1874 
1875  private com.google.protobuf.Internal.LongList solutionUpperBounds_ = emptyLongList();
1876  private void ensureSolutionUpperBoundsIsMutable() {
1877  if (!((bitField0_ & 0x00000004) != 0)) {
1878  solutionUpperBounds_ = mutableCopy(solutionUpperBounds_);
1879  bitField0_ |= 0x00000004;
1880  }
1881  }
1886  public java.util.List<java.lang.Long>
1888  return ((bitField0_ & 0x00000004) != 0) ?
1889  java.util.Collections.unmodifiableList(solutionUpperBounds_) : solutionUpperBounds_;
1890  }
1896  return solutionUpperBounds_.size();
1897  }
1903  public long getSolutionUpperBounds(int index) {
1904  return solutionUpperBounds_.getLong(index);
1905  }
1913  int index, long value) {
1914  ensureSolutionUpperBoundsIsMutable();
1915  solutionUpperBounds_.setLong(index, value);
1916  onChanged();
1917  return this;
1918  }
1924  public Builder addSolutionUpperBounds(long value) {
1925  ensureSolutionUpperBoundsIsMutable();
1926  solutionUpperBounds_.addLong(value);
1927  onChanged();
1928  return this;
1929  }
1936  java.lang.Iterable<? extends java.lang.Long> values) {
1937  ensureSolutionUpperBoundsIsMutable();
1938  com.google.protobuf.AbstractMessageLite.Builder.addAll(
1939  values, solutionUpperBounds_);
1940  onChanged();
1941  return this;
1942  }
1948  solutionUpperBounds_ = emptyLongList();
1949  bitField0_ = (bitField0_ & ~0x00000004);
1950  onChanged();
1951  return this;
1952  }
1953 
1954  private java.util.List<com.google.ortools.sat.IntegerVariableProto> tightenedVariables_ =
1955  java.util.Collections.emptyList();
1956  private void ensureTightenedVariablesIsMutable() {
1957  if (!((bitField0_ & 0x00000008) != 0)) {
1958  tightenedVariables_ = new java.util.ArrayList<com.google.ortools.sat.IntegerVariableProto>(tightenedVariables_);
1959  bitField0_ |= 0x00000008;
1960  }
1961  }
1962 
1963  private com.google.protobuf.RepeatedFieldBuilderV3<
1965 
1983  if (tightenedVariablesBuilder_ == null) {
1984  return java.util.Collections.unmodifiableList(tightenedVariables_);
1985  } else {
1986  return tightenedVariablesBuilder_.getMessageList();
1987  }
1988  }
2006  if (tightenedVariablesBuilder_ == null) {
2007  return tightenedVariables_.size();
2008  } else {
2009  return tightenedVariablesBuilder_.getCount();
2010  }
2011  }
2029  if (tightenedVariablesBuilder_ == null) {
2030  return tightenedVariables_.get(index);
2031  } else {
2032  return tightenedVariablesBuilder_.getMessage(index);
2033  }
2034  }
2052  int index, com.google.ortools.sat.IntegerVariableProto value) {
2053  if (tightenedVariablesBuilder_ == null) {
2054  if (value == null) {
2055  throw new NullPointerException();
2056  }
2057  ensureTightenedVariablesIsMutable();
2058  tightenedVariables_.set(index, value);
2059  onChanged();
2060  } else {
2061  tightenedVariablesBuilder_.setMessage(index, value);
2062  }
2063  return this;
2064  }
2082  int index, com.google.ortools.sat.IntegerVariableProto.Builder builderForValue) {
2083  if (tightenedVariablesBuilder_ == null) {
2084  ensureTightenedVariablesIsMutable();
2085  tightenedVariables_.set(index, builderForValue.build());
2086  onChanged();
2087  } else {
2088  tightenedVariablesBuilder_.setMessage(index, builderForValue.build());
2089  }
2090  return this;
2091  }
2109  if (tightenedVariablesBuilder_ == null) {
2110  if (value == null) {
2111  throw new NullPointerException();
2112  }
2113  ensureTightenedVariablesIsMutable();
2114  tightenedVariables_.add(value);
2115  onChanged();
2116  } else {
2117  tightenedVariablesBuilder_.addMessage(value);
2118  }
2119  return this;
2120  }
2138  int index, com.google.ortools.sat.IntegerVariableProto value) {
2139  if (tightenedVariablesBuilder_ == null) {
2140  if (value == null) {
2141  throw new NullPointerException();
2142  }
2143  ensureTightenedVariablesIsMutable();
2144  tightenedVariables_.add(index, value);
2145  onChanged();
2146  } else {
2147  tightenedVariablesBuilder_.addMessage(index, value);
2148  }
2149  return this;
2150  }
2168  com.google.ortools.sat.IntegerVariableProto.Builder builderForValue) {
2169  if (tightenedVariablesBuilder_ == null) {
2170  ensureTightenedVariablesIsMutable();
2171  tightenedVariables_.add(builderForValue.build());
2172  onChanged();
2173  } else {
2174  tightenedVariablesBuilder_.addMessage(builderForValue.build());
2175  }
2176  return this;
2177  }
2195  int index, com.google.ortools.sat.IntegerVariableProto.Builder builderForValue) {
2196  if (tightenedVariablesBuilder_ == null) {
2197  ensureTightenedVariablesIsMutable();
2198  tightenedVariables_.add(index, builderForValue.build());
2199  onChanged();
2200  } else {
2201  tightenedVariablesBuilder_.addMessage(index, builderForValue.build());
2202  }
2203  return this;
2204  }
2222  java.lang.Iterable<? extends com.google.ortools.sat.IntegerVariableProto> values) {
2223  if (tightenedVariablesBuilder_ == null) {
2224  ensureTightenedVariablesIsMutable();
2225  com.google.protobuf.AbstractMessageLite.Builder.addAll(
2226  values, tightenedVariables_);
2227  onChanged();
2228  } else {
2229  tightenedVariablesBuilder_.addAllMessages(values);
2230  }
2231  return this;
2232  }
2250  if (tightenedVariablesBuilder_ == null) {
2251  tightenedVariables_ = java.util.Collections.emptyList();
2252  bitField0_ = (bitField0_ & ~0x00000008);
2253  onChanged();
2254  } else {
2255  tightenedVariablesBuilder_.clear();
2256  }
2257  return this;
2258  }
2275  public Builder removeTightenedVariables(int index) {
2276  if (tightenedVariablesBuilder_ == null) {
2277  ensureTightenedVariablesIsMutable();
2278  tightenedVariables_.remove(index);
2279  onChanged();
2280  } else {
2281  tightenedVariablesBuilder_.remove(index);
2282  }
2283  return this;
2284  }
2302  int index) {
2303  return getTightenedVariablesFieldBuilder().getBuilder(index);
2304  }
2322  int index) {
2323  if (tightenedVariablesBuilder_ == null) {
2324  return tightenedVariables_.get(index); } else {
2325  return tightenedVariablesBuilder_.getMessageOrBuilder(index);
2326  }
2327  }
2344  public java.util.List<? extends com.google.ortools.sat.IntegerVariableProtoOrBuilder>
2346  if (tightenedVariablesBuilder_ != null) {
2347  return tightenedVariablesBuilder_.getMessageOrBuilderList();
2348  } else {
2349  return java.util.Collections.unmodifiableList(tightenedVariables_);
2350  }
2351  }
2369  return getTightenedVariablesFieldBuilder().addBuilder(
2371  }
2389  int index) {
2390  return getTightenedVariablesFieldBuilder().addBuilder(
2392  }
2409  public java.util.List<com.google.ortools.sat.IntegerVariableProto.Builder>
2411  return getTightenedVariablesFieldBuilder().getBuilderList();
2412  }
2413  private com.google.protobuf.RepeatedFieldBuilderV3<
2415  getTightenedVariablesFieldBuilder() {
2416  if (tightenedVariablesBuilder_ == null) {
2417  tightenedVariablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
2419  tightenedVariables_,
2420  ((bitField0_ & 0x00000008) != 0),
2421  getParentForChildren(),
2422  isClean());
2423  tightenedVariables_ = null;
2424  }
2425  return tightenedVariablesBuilder_;
2426  }
2427 
2428  private boolean allSolutionsWereFound_ ;
2440  public boolean getAllSolutionsWereFound() {
2441  return allSolutionsWereFound_;
2442  }
2455  public Builder setAllSolutionsWereFound(boolean value) {
2456 
2457  allSolutionsWereFound_ = value;
2458  onChanged();
2459  return this;
2460  }
2473 
2474  allSolutionsWereFound_ = false;
2475  onChanged();
2476  return this;
2477  }
2478 
2479  private long numBooleans_ ;
2488  public long getNumBooleans() {
2489  return numBooleans_;
2490  }
2500  public Builder setNumBooleans(long value) {
2501 
2502  numBooleans_ = value;
2503  onChanged();
2504  return this;
2505  }
2515 
2516  numBooleans_ = 0L;
2517  onChanged();
2518  return this;
2519  }
2520 
2521  private long numConflicts_ ;
2526  public long getNumConflicts() {
2527  return numConflicts_;
2528  }
2534  public Builder setNumConflicts(long value) {
2535 
2536  numConflicts_ = value;
2537  onChanged();
2538  return this;
2539  }
2545 
2546  numConflicts_ = 0L;
2547  onChanged();
2548  return this;
2549  }
2550 
2551  private long numBranches_ ;
2556  public long getNumBranches() {
2557  return numBranches_;
2558  }
2564  public Builder setNumBranches(long value) {
2565 
2566  numBranches_ = value;
2567  onChanged();
2568  return this;
2569  }
2575 
2576  numBranches_ = 0L;
2577  onChanged();
2578  return this;
2579  }
2580 
2581  private long numBinaryPropagations_ ;
2587  return numBinaryPropagations_;
2588  }
2594  public Builder setNumBinaryPropagations(long value) {
2595 
2596  numBinaryPropagations_ = value;
2597  onChanged();
2598  return this;
2599  }
2605 
2606  numBinaryPropagations_ = 0L;
2607  onChanged();
2608  return this;
2609  }
2610 
2611  private long numIntegerPropagations_ ;
2617  return numIntegerPropagations_;
2618  }
2624  public Builder setNumIntegerPropagations(long value) {
2625 
2626  numIntegerPropagations_ = value;
2627  onChanged();
2628  return this;
2629  }
2635 
2636  numIntegerPropagations_ = 0L;
2637  onChanged();
2638  return this;
2639  }
2640 
2641  private double wallTime_ ;
2646  public double getWallTime() {
2647  return wallTime_;
2648  }
2654  public Builder setWallTime(double value) {
2655 
2656  wallTime_ = value;
2657  onChanged();
2658  return this;
2659  }
2665 
2666  wallTime_ = 0D;
2667  onChanged();
2668  return this;
2669  }
2670 
2671  private double userTime_ ;
2676  public double getUserTime() {
2677  return userTime_;
2678  }
2684  public Builder setUserTime(double value) {
2685 
2686  userTime_ = value;
2687  onChanged();
2688  return this;
2689  }
2695 
2696  userTime_ = 0D;
2697  onChanged();
2698  return this;
2699  }
2700 
2701  private double deterministicTime_ ;
2706  public double getDeterministicTime() {
2707  return deterministicTime_;
2708  }
2714  public Builder setDeterministicTime(double value) {
2715 
2716  deterministicTime_ = value;
2717  onChanged();
2718  return this;
2719  }
2725 
2726  deterministicTime_ = 0D;
2727  onChanged();
2728  return this;
2729  }
2730 
2731  private double primalIntegral_ ;
2736  public double getPrimalIntegral() {
2737  return primalIntegral_;
2738  }
2744  public Builder setPrimalIntegral(double value) {
2745 
2746  primalIntegral_ = value;
2747  onChanged();
2748  return this;
2749  }
2755 
2756  primalIntegral_ = 0D;
2757  onChanged();
2758  return this;
2759  }
2760 
2761  private java.lang.Object solutionInfo_ = "";
2770  public java.lang.String getSolutionInfo() {
2771  java.lang.Object ref = solutionInfo_;
2772  if (!(ref instanceof java.lang.String)) {
2773  com.google.protobuf.ByteString bs =
2774  (com.google.protobuf.ByteString) ref;
2775  java.lang.String s = bs.toStringUtf8();
2776  solutionInfo_ = s;
2777  return s;
2778  } else {
2779  return (java.lang.String) ref;
2780  }
2781  }
2790  public com.google.protobuf.ByteString
2792  java.lang.Object ref = solutionInfo_;
2793  if (ref instanceof String) {
2794  com.google.protobuf.ByteString b =
2795  com.google.protobuf.ByteString.copyFromUtf8(
2796  (java.lang.String) ref);
2797  solutionInfo_ = b;
2798  return b;
2799  } else {
2800  return (com.google.protobuf.ByteString) ref;
2801  }
2802  }
2813  java.lang.String value) {
2814  if (value == null) {
2815  throw new NullPointerException();
2816  }
2817 
2818  solutionInfo_ = value;
2819  onChanged();
2820  return this;
2821  }
2831 
2832  solutionInfo_ = getDefaultInstance().getSolutionInfo();
2833  onChanged();
2834  return this;
2835  }
2846  com.google.protobuf.ByteString value) {
2847  if (value == null) {
2848  throw new NullPointerException();
2849  }
2850  checkByteStringIsUtf8(value);
2851 
2852  solutionInfo_ = value;
2853  onChanged();
2854  return this;
2855  }
2856  @java.lang.Override
2858  final com.google.protobuf.UnknownFieldSet unknownFields) {
2859  return super.setUnknownFields(unknownFields);
2860  }
2861 
2862  @java.lang.Override
2864  final com.google.protobuf.UnknownFieldSet unknownFields) {
2865  return super.mergeUnknownFields(unknownFields);
2866  }
2867 
2868 
2869  // @@protoc_insertion_point(builder_scope:operations_research.sat.CpSolverResponse)
2870  }
2871 
2872  // @@protoc_insertion_point(class_scope:operations_research.sat.CpSolverResponse)
2873  private static final com.google.ortools.sat.CpSolverResponse DEFAULT_INSTANCE;
2874  static {
2875  DEFAULT_INSTANCE = new com.google.ortools.sat.CpSolverResponse();
2876  }
2877 
2879  return DEFAULT_INSTANCE;
2880  }
2881 
2882  private static final com.google.protobuf.Parser<CpSolverResponse>
2883  PARSER = new com.google.protobuf.AbstractParser<CpSolverResponse>() {
2884  @java.lang.Override
2885  public CpSolverResponse parsePartialFrom(
2886  com.google.protobuf.CodedInputStream input,
2887  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2888  throws com.google.protobuf.InvalidProtocolBufferException {
2889  return new CpSolverResponse(input, extensionRegistry);
2890  }
2891  };
2892 
2893  public static com.google.protobuf.Parser<CpSolverResponse> parser() {
2894  return PARSER;
2895  }
2896 
2897  @java.lang.Override
2898  public com.google.protobuf.Parser<CpSolverResponse> getParserForType() {
2899  return PARSER;
2900  }
2901 
2902  @java.lang.Override
2904  return DEFAULT_INSTANCE;
2905  }
2906 
2907 }
2908 
com.google.ortools.sat.IntegerVariableProto.Builder getTightenedVariablesBuilder(int index)
int getTightenedVariablesCount()
static Builder newBuilder(com.google.ortools.sat.CpSolverResponse prototype)
Builder setWallTime(double value)
double wall_time = 15;
java.lang.String getSolutionInfo()
long getNumBooleans()
java.util.List< com.google.ortools.sat.IntegerVariableProto.Builder > getTightenedVariablesBuilderList()
Builder addTightenedVariables(int index, com.google.ortools.sat.IntegerVariableProto.Builder builderForValue)
long getNumIntegerPropagations()
int64 num_integer_propagations = 14;
Builder clearWallTime()
double wall_time = 15;
static com.google.ortools.sat.CpSolverResponse parseFrom(java.io.InputStream input)
java.util.List<? extends com.google.ortools.sat.IntegerVariableProtoOrBuilder > getTightenedVariablesOrBuilderList()
static com.google.ortools.sat.CpSolverResponse parseFrom(com.google.protobuf.CodedInputStream input)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
Builder setAllSolutionsWereFound(boolean value)
Builder setSolution(int index, long value)
Builder clearDeterministicTime()
double deterministic_time = 17;
.lang.Override Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Builder addTightenedVariables(com.google.ortools.sat.IntegerVariableProto.Builder builderForValue)
Builder setNumIntegerPropagations(long value)
int64 num_integer_propagations = 14;
static com.google.protobuf.Parser< IntegerVariableProto > parser()
Builder clearBestObjectiveBound()
int getSolutionLowerBoundsCount()
int getStatusValue()
double getPrimalIntegral()
double primal_integral = 22;
.lang.Override Builder toBuilder()
double getObjectiveValue()
Builder clearObjectiveValue()
static com.google.ortools.sat.CpSolverResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
long getNumConflicts()
int64 num_conflicts = 11;
int getTightenedVariablesCount()
.lang.Override com.google.ortools.sat.CpSolverResponse build()
Builder addSolutionUpperBounds(long value)
repeated int64 solution_upper_bounds = 19;
Builder setSolutionInfoBytes(com.google.protobuf.ByteString value)
.lang.Override com.google.protobuf.Parser< CpSolverResponse > getParserForType()
.lang.Override final boolean isInitialized()
static final int NUM_BRANCHES_FIELD_NUMBER
int getSolutionUpperBoundsCount()
repeated int64 solution_upper_bounds = 19;
.lang.Override Builder clone()
Builder addAllSolutionUpperBounds(java.lang.Iterable<? extends java.lang.Long > values)
repeated int64 solution_upper_bounds = 19;
static final int TIGHTENED_VARIABLES_FIELD_NUMBER
long getSolutionUpperBounds(int index)
repeated int64 solution_upper_bounds = 19;
Builder clearSolution()
long getSolutionLowerBounds(int index)
Builder clearStatus()
static com.google.ortools.sat.CpSolverResponse parseFrom(com.google.protobuf.ByteString data)
static final int STATUS_FIELD_NUMBER
static com.google.ortools.sat.CpSolverResponse getDefaultInstance()
Builder setNumConflicts(long value)
int64 num_conflicts = 11;
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
com.google.ortools.sat.IntegerVariableProtoOrBuilder getTightenedVariablesOrBuilder(int index)
java.util.List< java.lang.Long > getSolutionList()
.lang.Override com.google.ortools.sat.CpSolverResponse getDefaultInstanceForType()
static com.google.protobuf.Parser< CpSolverResponse > parser()
Builder setSolutionInfo(java.lang.String value)
static final int BEST_OBJECTIVE_BOUND_FIELD_NUMBER
Builder setNumBranches(long value)
int64 num_branches = 12;
UNRECOGNIZED
double getWallTime()
double wall_time = 15;
static com.google.ortools.sat.CpSolverResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Builder setObjectiveValue(double value)
int getSolutionCount()
long getNumBooleans()
static final int DETERMINISTIC_TIME_FIELD_NUMBER
.lang.Override Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
.lang.Override final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
Builder setTightenedVariables(int index, com.google.ortools.sat.IntegerVariableProto value)
com.google.ortools.sat.CpSolverStatus getStatus()
Builder addSolution(long value)
int getStatusValue()
Builder addAllSolution(java.lang.Iterable<? extends java.lang.Long > values)
java.lang.String getSolutionInfo()
com.google.ortools.sat.IntegerVariableProto getTightenedVariables(int index)
Builder clearTightenedVariables()
.lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Builder addTightenedVariables(com.google.ortools.sat.IntegerVariableProto value)
boolean getAllSolutionsWereFound()
.lang.Override boolean equals(final java.lang.Object obj)
.lang.Override Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
double getUserTime()
double user_time = 16;
Builder clearPrimalIntegral()
double primal_integral = 22;
com.google.ortools.sat.IntegerVariableProto.Builder addTightenedVariablesBuilder()
java.util.List< com.google.ortools.sat.IntegerVariableProto > getTightenedVariablesList()
com.google.protobuf.ByteString getSolutionInfoBytes()
Builder setSolutionUpperBounds(int index, long value)
repeated int64 solution_upper_bounds = 19;
static com.google.ortools.sat.CpSolverResponse parseFrom(java.nio.ByteBuffer data)
Builder addAllSolutionLowerBounds(java.lang.Iterable<? extends java.lang.Long > values)
.lang.Override Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
Builder clearSolutionUpperBounds()
repeated int64 solution_upper_bounds = 19;
Builder setDeterministicTime(double value)
double deterministic_time = 17;
Builder clearSolutionLowerBounds()
java.util.List<? extends com.google.ortools.sat.IntegerVariableProtoOrBuilder > getTightenedVariablesOrBuilderList()
double getWallTime()
double wall_time = 15;
static com.google.ortools.sat.CpSolverResponse parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static final int SOLUTION_LOWER_BOUNDS_FIELD_NUMBER
long getSolutionUpperBounds(int index)
repeated int64 solution_upper_bounds = 19;
Builder setStatusValue(int value)
Builder clearNumConflicts()
int64 num_conflicts = 11;
.lang.Override final boolean isInitialized()
static final int OBJECTIVE_VALUE_FIELD_NUMBER
.lang.Override void writeTo(com.google.protobuf.CodedOutputStream output)
.lang.Override com.google.ortools.sat.CpSolverResponse buildPartial()
Builder setBestObjectiveBound(double value)
java.util.List< java.lang.Long > getSolutionList()
static com.google.ortools.sat.CpSolverResponse parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.sat.CpSolverStatus getStatus()
java.util.List< com.google.ortools.sat.IntegerVariableProto > getTightenedVariablesList()
static Builder newBuilder()
static final int NUM_BINARY_PROPAGATIONS_FIELD_NUMBER
.lang.Override java.lang.Object newInstance(UnusedPrivateParameter unused)
Builder setNumBooleans(long value)
Builder mergeFrom(com.google.ortools.sat.CpSolverResponse other)
java.util.List< java.lang.Long > getSolutionUpperBoundsList()
repeated int64 solution_upper_bounds = 19;
Builder addTightenedVariables(int index, com.google.ortools.sat.IntegerVariableProto value)
long getSolution(int index)
long getNumBinaryPropagations()
int64 num_binary_propagations = 13;
Builder setPrimalIntegral(double value)
double primal_integral = 22;
Builder addAllTightenedVariables(java.lang.Iterable<? extends com.google.ortools.sat.IntegerVariableProto > values)
double getBestObjectiveBound()
double getObjectiveValue()
com.google.ortools.sat.IntegerVariableProtoOrBuilder getTightenedVariablesOrBuilder(int index)
Builder clearNumBinaryPropagations()
int64 num_binary_propagations = 13;
static final int SOLUTION_INFO_FIELD_NUMBER
boolean getAllSolutionsWereFound()
Builder setUserTime(double value)
double user_time = 16;
double getDeterministicTime()
double deterministic_time = 17;
.lang.Override Builder newBuilderForType()
static com.google.ortools.sat.CpSolverResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static final int PRIMAL_INTEGRAL_FIELD_NUMBER
double getUserTime()
double user_time = 16;
.lang.Override Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
static final int NUM_BOOLEANS_FIELD_NUMBER
static com.google.ortools.sat.CpSolverResponse parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override com.google.ortools.sat.CpSolverResponse getDefaultInstanceForType()
int getSolutionLowerBoundsCount()
Builder setTightenedVariables(int index, com.google.ortools.sat.IntegerVariableProto.Builder builderForValue)
static final int ALL_SOLUTIONS_WERE_FOUND_FIELD_NUMBER
long getSolutionLowerBounds(int index)
Builder setSolutionLowerBounds(int index, long value)
static final int WALL_TIME_FIELD_NUMBER
java.util.List< java.lang.Long > getSolutionLowerBoundsList()
.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;
long getNumIntegerPropagations()
int64 num_integer_propagations = 14;
.lang.Override final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
Builder clearNumIntegerPropagations()
int64 num_integer_propagations = 14;
static final int NUM_CONFLICTS_FIELD_NUMBER
UNKNOWN
static com.google.ortools.sat.IntegerVariableProto getDefaultInstance()
Builder clearAllSolutionsWereFound()
long getNumConflicts()
int64 num_conflicts = 11;
double getDeterministicTime()
double deterministic_time = 17;
Builder setStatus(com.google.ortools.sat.CpSolverStatus value)
Builder addSolutionLowerBounds(long value)
double getPrimalIntegral()
double primal_integral = 22;
Builder clearNumBooleans()
java.util.List< java.lang.Long > getSolutionUpperBoundsList()
repeated int64 solution_upper_bounds = 19;
static com.google.ortools.sat.CpSolverResponse parseFrom(byte[] data)
com.google.protobuf.ByteString getSolutionInfoBytes()
long getNumBranches()
int64 num_branches = 12;
Builder setNumBinaryPropagations(long value)
int64 num_binary_propagations = 13;
.lang.Override Builder clear()
static com.google.ortools.sat.CpSolverResponse parseDelimitedFrom(java.io.InputStream input)
static final int USER_TIME_FIELD_NUMBER
.lang.Override int getSerializedSize()
.lang.Override int hashCode()
long getSolution(int index)
Builder clearNumBranches()
int64 num_branches = 12;
Builder clearSolutionInfo()
int getSolutionUpperBoundsCount()
repeated int64 solution_upper_bounds = 19;
com.google.ortools.sat.IntegerVariableProto.Builder addTightenedVariablesBuilder(int index)
static final int SOLUTION_UPPER_BOUNDS_FIELD_NUMBER
.lang.Override Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
long getNumBinaryPropagations()
int64 num_binary_propagations = 13;
.lang.Override com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
java.util.List< java.lang.Long > getSolutionLowerBoundsList()
com.google.ortools.sat.IntegerVariableProto getTightenedVariables(int index)
Builder removeTightenedVariables(int index)
double getBestObjectiveBound()
long getNumBranches()
int64 num_branches = 12;
int getSolutionCount()
static final int SOLUTION_FIELD_NUMBER
.lang.Deprecated static CpSolverStatus valueOf(int value)