Java Reference

Java Reference

ConstraintSolverParameters.java
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ortools/constraint_solver/solver_parameters.proto
3 
4 package com.google.ortools.constraintsolver;
5 
13 public final class ConstraintSolverParameters extends
14  com.google.protobuf.GeneratedMessageV3 implements
15  // @@protoc_insertion_point(message_implements:operations_research.ConstraintSolverParameters)
17 private static final long serialVersionUID = 0L;
18  // Use ConstraintSolverParameters.newBuilder() to construct.
19  private ConstraintSolverParameters(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
20  super(builder);
21  }
22  private ConstraintSolverParameters() {
23  compressTrail_ = 0;
24  profileFile_ = "";
25  }
26 
27  @java.lang.Override
28  @SuppressWarnings({"unused"})
29  protected java.lang.Object newInstance(
30  UnusedPrivateParameter unused) {
31  return new ConstraintSolverParameters();
32  }
33 
34  @java.lang.Override
35  public final com.google.protobuf.UnknownFieldSet
37  return this.unknownFields;
38  }
40  com.google.protobuf.CodedInputStream input,
41  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
42  throws com.google.protobuf.InvalidProtocolBufferException {
43  this();
44  if (extensionRegistry == null) {
45  throw new java.lang.NullPointerException();
46  }
47  com.google.protobuf.UnknownFieldSet.Builder unknownFields =
48  com.google.protobuf.UnknownFieldSet.newBuilder();
49  try {
50  boolean done = false;
51  while (!done) {
52  int tag = input.readTag();
53  switch (tag) {
54  case 0:
55  done = true;
56  break;
57  case 8: {
58  int rawValue = input.readEnum();
59 
60  compressTrail_ = rawValue;
61  break;
62  }
63  case 16: {
64 
65  trailBlockSize_ = input.readInt32();
66  break;
67  }
68  case 24: {
69 
70  arraySplitSize_ = input.readInt32();
71  break;
72  }
73  case 32: {
74 
75  storeNames_ = input.readBool();
76  break;
77  }
78  case 40: {
79 
80  nameCastVariables_ = input.readBool();
81  break;
82  }
83  case 48: {
84 
85  nameAllVariables_ = input.readBool();
86  break;
87  }
88  case 56: {
89 
90  profilePropagation_ = input.readBool();
91  break;
92  }
93  case 66: {
94  java.lang.String s = input.readStringRequireUtf8();
95 
96  profileFile_ = s;
97  break;
98  }
99  case 72: {
100 
101  tracePropagation_ = input.readBool();
102  break;
103  }
104  case 80: {
105 
106  traceSearch_ = input.readBool();
107  break;
108  }
109  case 88: {
110 
111  printModel_ = input.readBool();
112  break;
113  }
114  case 96: {
115 
116  printModelStats_ = input.readBool();
117  break;
118  }
119  case 104: {
120 
121  printAddedConstraints_ = input.readBool();
122  break;
123  }
124  case 120: {
125 
126  disableSolve_ = input.readBool();
127  break;
128  }
129  case 128: {
130 
131  profileLocalSearch_ = input.readBool();
132  break;
133  }
134  case 136: {
135 
136  printLocalSearchProfile_ = input.readBool();
137  break;
138  }
139  case 808: {
140 
141  useSmallTable_ = input.readBool();
142  break;
143  }
144  case 840: {
145 
146  useCumulativeEdgeFinder_ = input.readBool();
147  break;
148  }
149  case 848: {
150 
151  useCumulativeTimeTable_ = input.readBool();
152  break;
153  }
154  case 856: {
155 
156  useSequenceHighDemandTasks_ = input.readBool();
157  break;
158  }
159  case 864: {
160 
161  useAllPossibleDisjunctions_ = input.readBool();
162  break;
163  }
164  case 872: {
165 
166  maxEdgeFinderSize_ = input.readInt32();
167  break;
168  }
169  case 880: {
170 
171  diffnUseCumulative_ = input.readBool();
172  break;
173  }
174  case 888: {
175 
176  useElementRmq_ = input.readBool();
177  break;
178  }
179  case 896: {
180 
181  useCumulativeTimeTableSync_ = input.readBool();
182  break;
183  }
184  case 904: {
185 
186  skipLocallyOptimalPaths_ = input.readBool();
187  break;
188  }
189  case 912: {
190 
191  checkSolutionPeriod_ = input.readInt32();
192  break;
193  }
194  default: {
195  if (!parseUnknownField(
196  input, unknownFields, extensionRegistry, tag)) {
197  done = true;
198  }
199  break;
200  }
201  }
202  }
203  } catch (com.google.protobuf.InvalidProtocolBufferException e) {
204  throw e.setUnfinishedMessage(this);
205  } catch (java.io.IOException e) {
206  throw new com.google.protobuf.InvalidProtocolBufferException(
207  e).setUnfinishedMessage(this);
208  } finally {
209  this.unknownFields = unknownFields.build();
210  makeExtensionsImmutable();
211  }
212  }
213  public static final com.google.protobuf.Descriptors.Descriptor
215  return com.google.ortools.constraintsolver.SolverParameters.internal_static_operations_research_ConstraintSolverParameters_descriptor;
216  }
217 
218  @java.lang.Override
219  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
221  return com.google.ortools.constraintsolver.SolverParameters.internal_static_operations_research_ConstraintSolverParameters_fieldAccessorTable
222  .ensureFieldAccessorsInitialized(
224  }
225 
233  public enum TrailCompression
234  implements com.google.protobuf.ProtocolMessageEnum {
244  ;
245 
249  public static final int NO_COMPRESSION_VALUE = 0;
253  public static final int COMPRESS_WITH_ZLIB_VALUE = 1;
254 
255 
256  public final int getNumber() {
257  if (this == UNRECOGNIZED) {
258  throw new java.lang.IllegalArgumentException(
259  "Can't get the number of an unknown enum value.");
260  }
261  return value;
262  }
263 
267  @java.lang.Deprecated
268  public static TrailCompression valueOf(int value) {
269  return forNumber(value);
270  }
271 
272  public static TrailCompression forNumber(int value) {
273  switch (value) {
274  case 0: return NO_COMPRESSION;
275  case 1: return COMPRESS_WITH_ZLIB;
276  default: return null;
277  }
278  }
279 
280  public static com.google.protobuf.Internal.EnumLiteMap<TrailCompression>
282  return internalValueMap;
283  }
284  private static final com.google.protobuf.Internal.EnumLiteMap<
285  TrailCompression> internalValueMap =
286  new com.google.protobuf.Internal.EnumLiteMap<TrailCompression>() {
287  public TrailCompression findValueByNumber(int number) {
288  return TrailCompression.forNumber(number);
289  }
290  };
291 
292  public final com.google.protobuf.Descriptors.EnumValueDescriptor
294  return getDescriptor().getValues().get(ordinal());
295  }
296  public final com.google.protobuf.Descriptors.EnumDescriptor
298  return getDescriptor();
299  }
300  public static final com.google.protobuf.Descriptors.EnumDescriptor
303  }
304 
305  private static final TrailCompression[] VALUES = values();
306 
307  public static TrailCompression valueOf(
308  com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
309  if (desc.getType() != getDescriptor()) {
310  throw new java.lang.IllegalArgumentException(
311  "EnumValueDescriptor is not for this type.");
312  }
313  if (desc.getIndex() == -1) {
314  return UNRECOGNIZED;
315  }
316  return VALUES[desc.getIndex()];
317  }
318 
319  private final int value;
320 
321  private TrailCompression(int value) {
322  this.value = value;
323  }
324 
325  // @@protoc_insertion_point(enum_scope:operations_research.ConstraintSolverParameters.TrailCompression)
326  }
327 
328  public static final int COMPRESS_TRAIL_FIELD_NUMBER = 1;
329  private int compressTrail_;
339  public int getCompressTrailValue() {
340  return compressTrail_;
341  }
352  @SuppressWarnings("deprecation")
355  }
356 
357  public static final int TRAIL_BLOCK_SIZE_FIELD_NUMBER = 2;
358  private int trailBlockSize_;
367  public int getTrailBlockSize() {
368  return trailBlockSize_;
369  }
370 
371  public static final int ARRAY_SPLIT_SIZE_FIELD_NUMBER = 3;
372  private int arraySplitSize_;
381  public int getArraySplitSize() {
382  return arraySplitSize_;
383  }
384 
385  public static final int STORE_NAMES_FIELD_NUMBER = 4;
386  private boolean storeNames_;
395  public boolean getStoreNames() {
396  return storeNames_;
397  }
398 
399  public static final int NAME_CAST_VARIABLES_FIELD_NUMBER = 5;
400  private boolean nameCastVariables_;
408  public boolean getNameCastVariables() {
409  return nameCastVariables_;
410  }
411 
412  public static final int NAME_ALL_VARIABLES_FIELD_NUMBER = 6;
413  private boolean nameAllVariables_;
421  public boolean getNameAllVariables() {
422  return nameAllVariables_;
423  }
424 
425  public static final int PROFILE_PROPAGATION_FIELD_NUMBER = 7;
426  private boolean profilePropagation_;
434  public boolean getProfilePropagation() {
435  return profilePropagation_;
436  }
437 
438  public static final int PROFILE_FILE_FIELD_NUMBER = 8;
439  private volatile java.lang.Object profileFile_;
447  public java.lang.String getProfileFile() {
448  java.lang.Object ref = profileFile_;
449  if (ref instanceof java.lang.String) {
450  return (java.lang.String) ref;
451  } else {
452  com.google.protobuf.ByteString bs =
453  (com.google.protobuf.ByteString) ref;
454  java.lang.String s = bs.toStringUtf8();
455  profileFile_ = s;
456  return s;
457  }
458  }
466  public com.google.protobuf.ByteString
468  java.lang.Object ref = profileFile_;
469  if (ref instanceof java.lang.String) {
470  com.google.protobuf.ByteString b =
471  com.google.protobuf.ByteString.copyFromUtf8(
472  (java.lang.String) ref);
473  profileFile_ = b;
474  return b;
475  } else {
476  return (com.google.protobuf.ByteString) ref;
477  }
478  }
479 
480  public static final int PROFILE_LOCAL_SEARCH_FIELD_NUMBER = 16;
481  private boolean profileLocalSearch_;
489  public boolean getProfileLocalSearch() {
490  return profileLocalSearch_;
491  }
492 
493  public static final int PRINT_LOCAL_SEARCH_PROFILE_FIELD_NUMBER = 17;
494  private boolean printLocalSearchProfile_;
502  public boolean getPrintLocalSearchProfile() {
503  return printLocalSearchProfile_;
504  }
505 
506  public static final int TRACE_PROPAGATION_FIELD_NUMBER = 9;
507  private boolean tracePropagation_;
515  public boolean getTracePropagation() {
516  return tracePropagation_;
517  }
518 
519  public static final int TRACE_SEARCH_FIELD_NUMBER = 10;
520  private boolean traceSearch_;
528  public boolean getTraceSearch() {
529  return traceSearch_;
530  }
531 
532  public static final int PRINT_MODEL_FIELD_NUMBER = 11;
533  private boolean printModel_;
541  public boolean getPrintModel() {
542  return printModel_;
543  }
544 
545  public static final int PRINT_MODEL_STATS_FIELD_NUMBER = 12;
546  private boolean printModelStats_;
554  public boolean getPrintModelStats() {
555  return printModelStats_;
556  }
557 
558  public static final int PRINT_ADDED_CONSTRAINTS_FIELD_NUMBER = 13;
559  private boolean printAddedConstraints_;
567  public boolean getPrintAddedConstraints() {
568  return printAddedConstraints_;
569  }
570 
571  public static final int DISABLE_SOLVE_FIELD_NUMBER = 15;
572  private boolean disableSolve_;
576  public boolean getDisableSolve() {
577  return disableSolve_;
578  }
579 
580  public static final int USE_SMALL_TABLE_FIELD_NUMBER = 101;
581  private boolean useSmallTable_;
589  public boolean getUseSmallTable() {
590  return useSmallTable_;
591  }
592 
593  public static final int USE_CUMULATIVE_EDGE_FINDER_FIELD_NUMBER = 105;
594  private boolean useCumulativeEdgeFinder_;
602  public boolean getUseCumulativeEdgeFinder() {
603  return useCumulativeEdgeFinder_;
604  }
605 
606  public static final int USE_CUMULATIVE_TIME_TABLE_FIELD_NUMBER = 106;
607  private boolean useCumulativeTimeTable_;
611  public boolean getUseCumulativeTimeTable() {
612  return useCumulativeTimeTable_;
613  }
614 
615  public static final int USE_CUMULATIVE_TIME_TABLE_SYNC_FIELD_NUMBER = 112;
616  private boolean useCumulativeTimeTableSync_;
620  public boolean getUseCumulativeTimeTableSync() {
621  return useCumulativeTimeTableSync_;
622  }
623 
624  public static final int USE_SEQUENCE_HIGH_DEMAND_TASKS_FIELD_NUMBER = 107;
625  private boolean useSequenceHighDemandTasks_;
629  public boolean getUseSequenceHighDemandTasks() {
630  return useSequenceHighDemandTasks_;
631  }
632 
633  public static final int USE_ALL_POSSIBLE_DISJUNCTIONS_FIELD_NUMBER = 108;
634  private boolean useAllPossibleDisjunctions_;
638  public boolean getUseAllPossibleDisjunctions() {
639  return useAllPossibleDisjunctions_;
640  }
641 
642  public static final int MAX_EDGE_FINDER_SIZE_FIELD_NUMBER = 109;
643  private int maxEdgeFinderSize_;
647  public int getMaxEdgeFinderSize() {
648  return maxEdgeFinderSize_;
649  }
650 
651  public static final int DIFFN_USE_CUMULATIVE_FIELD_NUMBER = 110;
652  private boolean diffnUseCumulative_;
660  public boolean getDiffnUseCumulative() {
661  return diffnUseCumulative_;
662  }
663 
664  public static final int USE_ELEMENT_RMQ_FIELD_NUMBER = 111;
665  private boolean useElementRmq_;
673  public boolean getUseElementRmq() {
674  return useElementRmq_;
675  }
676 
677  public static final int SKIP_LOCALLY_OPTIMAL_PATHS_FIELD_NUMBER = 113;
678  private boolean skipLocallyOptimalPaths_;
689  public boolean getSkipLocallyOptimalPaths() {
690  return skipLocallyOptimalPaths_;
691  }
692 
693  public static final int CHECK_SOLUTION_PERIOD_FIELD_NUMBER = 114;
694  private int checkSolutionPeriod_;
702  public int getCheckSolutionPeriod() {
703  return checkSolutionPeriod_;
704  }
705 
706  private byte memoizedIsInitialized = -1;
707  @java.lang.Override
708  public final boolean isInitialized() {
709  byte isInitialized = memoizedIsInitialized;
710  if (isInitialized == 1) return true;
711  if (isInitialized == 0) return false;
712 
713  memoizedIsInitialized = 1;
714  return true;
715  }
716 
717  @java.lang.Override
718  public void writeTo(com.google.protobuf.CodedOutputStream output)
719  throws java.io.IOException {
721  output.writeEnum(1, compressTrail_);
722  }
723  if (trailBlockSize_ != 0) {
724  output.writeInt32(2, trailBlockSize_);
725  }
726  if (arraySplitSize_ != 0) {
727  output.writeInt32(3, arraySplitSize_);
728  }
729  if (storeNames_ != false) {
730  output.writeBool(4, storeNames_);
731  }
732  if (nameCastVariables_ != false) {
733  output.writeBool(5, nameCastVariables_);
734  }
735  if (nameAllVariables_ != false) {
736  output.writeBool(6, nameAllVariables_);
737  }
738  if (profilePropagation_ != false) {
739  output.writeBool(7, profilePropagation_);
740  }
741  if (!getProfileFileBytes().isEmpty()) {
742  com.google.protobuf.GeneratedMessageV3.writeString(output, 8, profileFile_);
743  }
744  if (tracePropagation_ != false) {
745  output.writeBool(9, tracePropagation_);
746  }
747  if (traceSearch_ != false) {
748  output.writeBool(10, traceSearch_);
749  }
750  if (printModel_ != false) {
751  output.writeBool(11, printModel_);
752  }
753  if (printModelStats_ != false) {
754  output.writeBool(12, printModelStats_);
755  }
756  if (printAddedConstraints_ != false) {
757  output.writeBool(13, printAddedConstraints_);
758  }
759  if (disableSolve_ != false) {
760  output.writeBool(15, disableSolve_);
761  }
762  if (profileLocalSearch_ != false) {
763  output.writeBool(16, profileLocalSearch_);
764  }
765  if (printLocalSearchProfile_ != false) {
766  output.writeBool(17, printLocalSearchProfile_);
767  }
768  if (useSmallTable_ != false) {
769  output.writeBool(101, useSmallTable_);
770  }
771  if (useCumulativeEdgeFinder_ != false) {
772  output.writeBool(105, useCumulativeEdgeFinder_);
773  }
774  if (useCumulativeTimeTable_ != false) {
775  output.writeBool(106, useCumulativeTimeTable_);
776  }
777  if (useSequenceHighDemandTasks_ != false) {
778  output.writeBool(107, useSequenceHighDemandTasks_);
779  }
780  if (useAllPossibleDisjunctions_ != false) {
781  output.writeBool(108, useAllPossibleDisjunctions_);
782  }
783  if (maxEdgeFinderSize_ != 0) {
784  output.writeInt32(109, maxEdgeFinderSize_);
785  }
786  if (diffnUseCumulative_ != false) {
787  output.writeBool(110, diffnUseCumulative_);
788  }
789  if (useElementRmq_ != false) {
790  output.writeBool(111, useElementRmq_);
791  }
792  if (useCumulativeTimeTableSync_ != false) {
793  output.writeBool(112, useCumulativeTimeTableSync_);
794  }
795  if (skipLocallyOptimalPaths_ != false) {
796  output.writeBool(113, skipLocallyOptimalPaths_);
797  }
798  if (checkSolutionPeriod_ != 0) {
799  output.writeInt32(114, checkSolutionPeriod_);
800  }
801  unknownFields.writeTo(output);
802  }
803 
804  @java.lang.Override
805  public int getSerializedSize() {
806  int size = memoizedSize;
807  if (size != -1) return size;
808 
809  size = 0;
811  size += com.google.protobuf.CodedOutputStream
812  .computeEnumSize(1, compressTrail_);
813  }
814  if (trailBlockSize_ != 0) {
815  size += com.google.protobuf.CodedOutputStream
816  .computeInt32Size(2, trailBlockSize_);
817  }
818  if (arraySplitSize_ != 0) {
819  size += com.google.protobuf.CodedOutputStream
820  .computeInt32Size(3, arraySplitSize_);
821  }
822  if (storeNames_ != false) {
823  size += com.google.protobuf.CodedOutputStream
824  .computeBoolSize(4, storeNames_);
825  }
826  if (nameCastVariables_ != false) {
827  size += com.google.protobuf.CodedOutputStream
828  .computeBoolSize(5, nameCastVariables_);
829  }
830  if (nameAllVariables_ != false) {
831  size += com.google.protobuf.CodedOutputStream
832  .computeBoolSize(6, nameAllVariables_);
833  }
834  if (profilePropagation_ != false) {
835  size += com.google.protobuf.CodedOutputStream
836  .computeBoolSize(7, profilePropagation_);
837  }
838  if (!getProfileFileBytes().isEmpty()) {
839  size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, profileFile_);
840  }
841  if (tracePropagation_ != false) {
842  size += com.google.protobuf.CodedOutputStream
843  .computeBoolSize(9, tracePropagation_);
844  }
845  if (traceSearch_ != false) {
846  size += com.google.protobuf.CodedOutputStream
847  .computeBoolSize(10, traceSearch_);
848  }
849  if (printModel_ != false) {
850  size += com.google.protobuf.CodedOutputStream
851  .computeBoolSize(11, printModel_);
852  }
853  if (printModelStats_ != false) {
854  size += com.google.protobuf.CodedOutputStream
855  .computeBoolSize(12, printModelStats_);
856  }
857  if (printAddedConstraints_ != false) {
858  size += com.google.protobuf.CodedOutputStream
859  .computeBoolSize(13, printAddedConstraints_);
860  }
861  if (disableSolve_ != false) {
862  size += com.google.protobuf.CodedOutputStream
863  .computeBoolSize(15, disableSolve_);
864  }
865  if (profileLocalSearch_ != false) {
866  size += com.google.protobuf.CodedOutputStream
867  .computeBoolSize(16, profileLocalSearch_);
868  }
869  if (printLocalSearchProfile_ != false) {
870  size += com.google.protobuf.CodedOutputStream
871  .computeBoolSize(17, printLocalSearchProfile_);
872  }
873  if (useSmallTable_ != false) {
874  size += com.google.protobuf.CodedOutputStream
875  .computeBoolSize(101, useSmallTable_);
876  }
877  if (useCumulativeEdgeFinder_ != false) {
878  size += com.google.protobuf.CodedOutputStream
879  .computeBoolSize(105, useCumulativeEdgeFinder_);
880  }
881  if (useCumulativeTimeTable_ != false) {
882  size += com.google.protobuf.CodedOutputStream
883  .computeBoolSize(106, useCumulativeTimeTable_);
884  }
885  if (useSequenceHighDemandTasks_ != false) {
886  size += com.google.protobuf.CodedOutputStream
887  .computeBoolSize(107, useSequenceHighDemandTasks_);
888  }
889  if (useAllPossibleDisjunctions_ != false) {
890  size += com.google.protobuf.CodedOutputStream
891  .computeBoolSize(108, useAllPossibleDisjunctions_);
892  }
893  if (maxEdgeFinderSize_ != 0) {
894  size += com.google.protobuf.CodedOutputStream
895  .computeInt32Size(109, maxEdgeFinderSize_);
896  }
897  if (diffnUseCumulative_ != false) {
898  size += com.google.protobuf.CodedOutputStream
899  .computeBoolSize(110, diffnUseCumulative_);
900  }
901  if (useElementRmq_ != false) {
902  size += com.google.protobuf.CodedOutputStream
903  .computeBoolSize(111, useElementRmq_);
904  }
905  if (useCumulativeTimeTableSync_ != false) {
906  size += com.google.protobuf.CodedOutputStream
907  .computeBoolSize(112, useCumulativeTimeTableSync_);
908  }
909  if (skipLocallyOptimalPaths_ != false) {
910  size += com.google.protobuf.CodedOutputStream
911  .computeBoolSize(113, skipLocallyOptimalPaths_);
912  }
913  if (checkSolutionPeriod_ != 0) {
914  size += com.google.protobuf.CodedOutputStream
915  .computeInt32Size(114, checkSolutionPeriod_);
916  }
917  size += unknownFields.getSerializedSize();
918  memoizedSize = size;
919  return size;
920  }
921 
922  @java.lang.Override
923  public boolean equals(final java.lang.Object obj) {
924  if (obj == this) {
925  return true;
926  }
928  return super.equals(obj);
929  }
931 
932  if (compressTrail_ != other.compressTrail_) return false;
933  if (getTrailBlockSize()
934  != other.getTrailBlockSize()) return false;
935  if (getArraySplitSize()
936  != other.getArraySplitSize()) return false;
937  if (getStoreNames()
938  != other.getStoreNames()) return false;
940  != other.getNameCastVariables()) return false;
941  if (getNameAllVariables()
942  != other.getNameAllVariables()) return false;
944  != other.getProfilePropagation()) return false;
945  if (!getProfileFile()
946  .equals(other.getProfileFile())) return false;
948  != other.getProfileLocalSearch()) return false;
950  != other.getPrintLocalSearchProfile()) return false;
951  if (getTracePropagation()
952  != other.getTracePropagation()) return false;
953  if (getTraceSearch()
954  != other.getTraceSearch()) return false;
955  if (getPrintModel()
956  != other.getPrintModel()) return false;
957  if (getPrintModelStats()
958  != other.getPrintModelStats()) return false;
960  != other.getPrintAddedConstraints()) return false;
961  if (getDisableSolve()
962  != other.getDisableSolve()) return false;
963  if (getUseSmallTable()
964  != other.getUseSmallTable()) return false;
966  != other.getUseCumulativeEdgeFinder()) return false;
968  != other.getUseCumulativeTimeTable()) return false;
970  != other.getUseCumulativeTimeTableSync()) return false;
972  != other.getUseSequenceHighDemandTasks()) return false;
974  != other.getUseAllPossibleDisjunctions()) return false;
976  != other.getMaxEdgeFinderSize()) return false;
978  != other.getDiffnUseCumulative()) return false;
979  if (getUseElementRmq()
980  != other.getUseElementRmq()) return false;
982  != other.getSkipLocallyOptimalPaths()) return false;
984  != other.getCheckSolutionPeriod()) return false;
985  if (!unknownFields.equals(other.unknownFields)) return false;
986  return true;
987  }
988 
989  @java.lang.Override
990  public int hashCode() {
991  if (memoizedHashCode != 0) {
992  return memoizedHashCode;
993  }
994  int hash = 41;
995  hash = (19 * hash) + getDescriptor().hashCode();
996  hash = (37 * hash) + COMPRESS_TRAIL_FIELD_NUMBER;
997  hash = (53 * hash) + compressTrail_;
998  hash = (37 * hash) + TRAIL_BLOCK_SIZE_FIELD_NUMBER;
999  hash = (53 * hash) + getTrailBlockSize();
1000  hash = (37 * hash) + ARRAY_SPLIT_SIZE_FIELD_NUMBER;
1001  hash = (53 * hash) + getArraySplitSize();
1002  hash = (37 * hash) + STORE_NAMES_FIELD_NUMBER;
1003  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1004  getStoreNames());
1005  hash = (37 * hash) + NAME_CAST_VARIABLES_FIELD_NUMBER;
1006  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1008  hash = (37 * hash) + NAME_ALL_VARIABLES_FIELD_NUMBER;
1009  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1011  hash = (37 * hash) + PROFILE_PROPAGATION_FIELD_NUMBER;
1012  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1014  hash = (37 * hash) + PROFILE_FILE_FIELD_NUMBER;
1015  hash = (53 * hash) + getProfileFile().hashCode();
1016  hash = (37 * hash) + PROFILE_LOCAL_SEARCH_FIELD_NUMBER;
1017  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1019  hash = (37 * hash) + PRINT_LOCAL_SEARCH_PROFILE_FIELD_NUMBER;
1020  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1022  hash = (37 * hash) + TRACE_PROPAGATION_FIELD_NUMBER;
1023  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1025  hash = (37 * hash) + TRACE_SEARCH_FIELD_NUMBER;
1026  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1027  getTraceSearch());
1028  hash = (37 * hash) + PRINT_MODEL_FIELD_NUMBER;
1029  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1030  getPrintModel());
1031  hash = (37 * hash) + PRINT_MODEL_STATS_FIELD_NUMBER;
1032  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1033  getPrintModelStats());
1034  hash = (37 * hash) + PRINT_ADDED_CONSTRAINTS_FIELD_NUMBER;
1035  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1037  hash = (37 * hash) + DISABLE_SOLVE_FIELD_NUMBER;
1038  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1039  getDisableSolve());
1040  hash = (37 * hash) + USE_SMALL_TABLE_FIELD_NUMBER;
1041  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1042  getUseSmallTable());
1043  hash = (37 * hash) + USE_CUMULATIVE_EDGE_FINDER_FIELD_NUMBER;
1044  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1046  hash = (37 * hash) + USE_CUMULATIVE_TIME_TABLE_FIELD_NUMBER;
1047  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1049  hash = (37 * hash) + USE_CUMULATIVE_TIME_TABLE_SYNC_FIELD_NUMBER;
1050  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1052  hash = (37 * hash) + USE_SEQUENCE_HIGH_DEMAND_TASKS_FIELD_NUMBER;
1053  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1055  hash = (37 * hash) + USE_ALL_POSSIBLE_DISJUNCTIONS_FIELD_NUMBER;
1056  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1058  hash = (37 * hash) + MAX_EDGE_FINDER_SIZE_FIELD_NUMBER;
1059  hash = (53 * hash) + getMaxEdgeFinderSize();
1060  hash = (37 * hash) + DIFFN_USE_CUMULATIVE_FIELD_NUMBER;
1061  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1063  hash = (37 * hash) + USE_ELEMENT_RMQ_FIELD_NUMBER;
1064  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1065  getUseElementRmq());
1066  hash = (37 * hash) + SKIP_LOCALLY_OPTIMAL_PATHS_FIELD_NUMBER;
1067  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1069  hash = (37 * hash) + CHECK_SOLUTION_PERIOD_FIELD_NUMBER;
1070  hash = (53 * hash) + getCheckSolutionPeriod();
1071  hash = (29 * hash) + unknownFields.hashCode();
1072  memoizedHashCode = hash;
1073  return hash;
1074  }
1075 
1077  java.nio.ByteBuffer data)
1078  throws com.google.protobuf.InvalidProtocolBufferException {
1079  return PARSER.parseFrom(data);
1080  }
1082  java.nio.ByteBuffer data,
1083  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1084  throws com.google.protobuf.InvalidProtocolBufferException {
1085  return PARSER.parseFrom(data, extensionRegistry);
1086  }
1088  com.google.protobuf.ByteString data)
1089  throws com.google.protobuf.InvalidProtocolBufferException {
1090  return PARSER.parseFrom(data);
1091  }
1093  com.google.protobuf.ByteString data,
1094  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1095  throws com.google.protobuf.InvalidProtocolBufferException {
1096  return PARSER.parseFrom(data, extensionRegistry);
1097  }
1099  throws com.google.protobuf.InvalidProtocolBufferException {
1100  return PARSER.parseFrom(data);
1101  }
1103  byte[] data,
1104  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1105  throws com.google.protobuf.InvalidProtocolBufferException {
1106  return PARSER.parseFrom(data, extensionRegistry);
1107  }
1108  public static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(java.io.InputStream input)
1109  throws java.io.IOException {
1110  return com.google.protobuf.GeneratedMessageV3
1111  .parseWithIOException(PARSER, input);
1112  }
1114  java.io.InputStream input,
1115  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1116  throws java.io.IOException {
1117  return com.google.protobuf.GeneratedMessageV3
1118  .parseWithIOException(PARSER, input, extensionRegistry);
1119  }
1121  throws java.io.IOException {
1122  return com.google.protobuf.GeneratedMessageV3
1123  .parseDelimitedWithIOException(PARSER, input);
1124  }
1126  java.io.InputStream input,
1127  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1128  throws java.io.IOException {
1129  return com.google.protobuf.GeneratedMessageV3
1130  .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
1131  }
1133  com.google.protobuf.CodedInputStream input)
1134  throws java.io.IOException {
1135  return com.google.protobuf.GeneratedMessageV3
1136  .parseWithIOException(PARSER, input);
1137  }
1139  com.google.protobuf.CodedInputStream input,
1140  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1141  throws java.io.IOException {
1142  return com.google.protobuf.GeneratedMessageV3
1143  .parseWithIOException(PARSER, input, extensionRegistry);
1144  }
1145 
1146  @java.lang.Override
1147  public Builder newBuilderForType() { return newBuilder(); }
1148  public static Builder newBuilder() {
1149  return DEFAULT_INSTANCE.toBuilder();
1150  }
1152  return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1153  }
1154  @java.lang.Override
1155  public Builder toBuilder() {
1156  return this == DEFAULT_INSTANCE
1157  ? new Builder() : new Builder().mergeFrom(this);
1158  }
1159 
1160  @java.lang.Override
1162  com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1163  Builder builder = new Builder(parent);
1164  return builder;
1165  }
1173  public static final class Builder extends
1174  com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
1175  // @@protoc_insertion_point(builder_implements:operations_research.ConstraintSolverParameters)
1176  com.google.ortools.constraintsolver.ConstraintSolverParametersOrBuilder {
1177  public static final com.google.protobuf.Descriptors.Descriptor
1179  return com.google.ortools.constraintsolver.SolverParameters.internal_static_operations_research_ConstraintSolverParameters_descriptor;
1180  }
1181 
1182  @java.lang.Override
1183  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
1185  return com.google.ortools.constraintsolver.SolverParameters.internal_static_operations_research_ConstraintSolverParameters_fieldAccessorTable
1186  .ensureFieldAccessorsInitialized(
1188  }
1189 
1190  // Construct using com.google.ortools.constraintsolver.ConstraintSolverParameters.newBuilder()
1191  private Builder() {
1192  maybeForceBuilderInitialization();
1193  }
1194 
1195  private Builder(
1196  com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1197  super(parent);
1198  maybeForceBuilderInitialization();
1199  }
1200  private void maybeForceBuilderInitialization() {
1201  if (com.google.protobuf.GeneratedMessageV3
1202  .alwaysUseFieldBuilders) {
1203  }
1204  }
1205  @java.lang.Override
1206  public Builder clear() {
1207  super.clear();
1208  compressTrail_ = 0;
1209 
1210  trailBlockSize_ = 0;
1211 
1212  arraySplitSize_ = 0;
1213 
1214  storeNames_ = false;
1215 
1216  nameCastVariables_ = false;
1217 
1218  nameAllVariables_ = false;
1219 
1220  profilePropagation_ = false;
1221 
1222  profileFile_ = "";
1223 
1224  profileLocalSearch_ = false;
1225 
1226  printLocalSearchProfile_ = false;
1227 
1228  tracePropagation_ = false;
1229 
1230  traceSearch_ = false;
1231 
1232  printModel_ = false;
1233 
1234  printModelStats_ = false;
1235 
1236  printAddedConstraints_ = false;
1237 
1238  disableSolve_ = false;
1239 
1240  useSmallTable_ = false;
1241 
1242  useCumulativeEdgeFinder_ = false;
1243 
1244  useCumulativeTimeTable_ = false;
1245 
1246  useCumulativeTimeTableSync_ = false;
1247 
1248  useSequenceHighDemandTasks_ = false;
1249 
1250  useAllPossibleDisjunctions_ = false;
1251 
1252  maxEdgeFinderSize_ = 0;
1253 
1254  diffnUseCumulative_ = false;
1255 
1256  useElementRmq_ = false;
1257 
1258  skipLocallyOptimalPaths_ = false;
1259 
1260  checkSolutionPeriod_ = 0;
1261 
1262  return this;
1263  }
1264 
1265  @java.lang.Override
1266  public com.google.protobuf.Descriptors.Descriptor
1268  return com.google.ortools.constraintsolver.SolverParameters.internal_static_operations_research_ConstraintSolverParameters_descriptor;
1269  }
1270 
1271  @java.lang.Override
1274  }
1275 
1276  @java.lang.Override
1279  if (!result.isInitialized()) {
1280  throw newUninitializedMessageException(result);
1281  }
1282  return result;
1283  }
1284 
1285  @java.lang.Override
1288  result.compressTrail_ = compressTrail_;
1289  result.trailBlockSize_ = trailBlockSize_;
1290  result.arraySplitSize_ = arraySplitSize_;
1291  result.storeNames_ = storeNames_;
1292  result.nameCastVariables_ = nameCastVariables_;
1293  result.nameAllVariables_ = nameAllVariables_;
1294  result.profilePropagation_ = profilePropagation_;
1295  result.profileFile_ = profileFile_;
1296  result.profileLocalSearch_ = profileLocalSearch_;
1297  result.printLocalSearchProfile_ = printLocalSearchProfile_;
1298  result.tracePropagation_ = tracePropagation_;
1299  result.traceSearch_ = traceSearch_;
1300  result.printModel_ = printModel_;
1301  result.printModelStats_ = printModelStats_;
1302  result.printAddedConstraints_ = printAddedConstraints_;
1303  result.disableSolve_ = disableSolve_;
1304  result.useSmallTable_ = useSmallTable_;
1305  result.useCumulativeEdgeFinder_ = useCumulativeEdgeFinder_;
1306  result.useCumulativeTimeTable_ = useCumulativeTimeTable_;
1307  result.useCumulativeTimeTableSync_ = useCumulativeTimeTableSync_;
1308  result.useSequenceHighDemandTasks_ = useSequenceHighDemandTasks_;
1309  result.useAllPossibleDisjunctions_ = useAllPossibleDisjunctions_;
1310  result.maxEdgeFinderSize_ = maxEdgeFinderSize_;
1311  result.diffnUseCumulative_ = diffnUseCumulative_;
1312  result.useElementRmq_ = useElementRmq_;
1313  result.skipLocallyOptimalPaths_ = skipLocallyOptimalPaths_;
1314  result.checkSolutionPeriod_ = checkSolutionPeriod_;
1315  onBuilt();
1316  return result;
1317  }
1318 
1319  @java.lang.Override
1320  public Builder clone() {
1321  return super.clone();
1322  }
1323  @java.lang.Override
1325  com.google.protobuf.Descriptors.FieldDescriptor field,
1326  java.lang.Object value) {
1327  return super.setField(field, value);
1328  }
1329  @java.lang.Override
1331  com.google.protobuf.Descriptors.FieldDescriptor field) {
1332  return super.clearField(field);
1333  }
1334  @java.lang.Override
1336  com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1337  return super.clearOneof(oneof);
1338  }
1339  @java.lang.Override
1341  com.google.protobuf.Descriptors.FieldDescriptor field,
1342  int index, java.lang.Object value) {
1343  return super.setRepeatedField(field, index, value);
1344  }
1345  @java.lang.Override
1347  com.google.protobuf.Descriptors.FieldDescriptor field,
1348  java.lang.Object value) {
1349  return super.addRepeatedField(field, value);
1350  }
1351  @java.lang.Override
1352  public Builder mergeFrom(com.google.protobuf.Message other) {
1355  } else {
1356  super.mergeFrom(other);
1357  return this;
1358  }
1359  }
1360 
1363  if (other.compressTrail_ != 0) {
1364  setCompressTrailValue(other.getCompressTrailValue());
1365  }
1366  if (other.getTrailBlockSize() != 0) {
1367  setTrailBlockSize(other.getTrailBlockSize());
1368  }
1369  if (other.getArraySplitSize() != 0) {
1370  setArraySplitSize(other.getArraySplitSize());
1371  }
1372  if (other.getStoreNames() != false) {
1373  setStoreNames(other.getStoreNames());
1374  }
1375  if (other.getNameCastVariables() != false) {
1376  setNameCastVariables(other.getNameCastVariables());
1377  }
1378  if (other.getNameAllVariables() != false) {
1379  setNameAllVariables(other.getNameAllVariables());
1380  }
1381  if (other.getProfilePropagation() != false) {
1382  setProfilePropagation(other.getProfilePropagation());
1383  }
1384  if (!other.getProfileFile().isEmpty()) {
1385  profileFile_ = other.profileFile_;
1386  onChanged();
1387  }
1388  if (other.getProfileLocalSearch() != false) {
1389  setProfileLocalSearch(other.getProfileLocalSearch());
1390  }
1391  if (other.getPrintLocalSearchProfile() != false) {
1392  setPrintLocalSearchProfile(other.getPrintLocalSearchProfile());
1393  }
1394  if (other.getTracePropagation() != false) {
1395  setTracePropagation(other.getTracePropagation());
1396  }
1397  if (other.getTraceSearch() != false) {
1398  setTraceSearch(other.getTraceSearch());
1399  }
1400  if (other.getPrintModel() != false) {
1401  setPrintModel(other.getPrintModel());
1402  }
1403  if (other.getPrintModelStats() != false) {
1404  setPrintModelStats(other.getPrintModelStats());
1405  }
1406  if (other.getPrintAddedConstraints() != false) {
1407  setPrintAddedConstraints(other.getPrintAddedConstraints());
1408  }
1409  if (other.getDisableSolve() != false) {
1410  setDisableSolve(other.getDisableSolve());
1411  }
1412  if (other.getUseSmallTable() != false) {
1413  setUseSmallTable(other.getUseSmallTable());
1414  }
1415  if (other.getUseCumulativeEdgeFinder() != false) {
1416  setUseCumulativeEdgeFinder(other.getUseCumulativeEdgeFinder());
1417  }
1418  if (other.getUseCumulativeTimeTable() != false) {
1419  setUseCumulativeTimeTable(other.getUseCumulativeTimeTable());
1420  }
1421  if (other.getUseCumulativeTimeTableSync() != false) {
1422  setUseCumulativeTimeTableSync(other.getUseCumulativeTimeTableSync());
1423  }
1424  if (other.getUseSequenceHighDemandTasks() != false) {
1425  setUseSequenceHighDemandTasks(other.getUseSequenceHighDemandTasks());
1426  }
1427  if (other.getUseAllPossibleDisjunctions() != false) {
1428  setUseAllPossibleDisjunctions(other.getUseAllPossibleDisjunctions());
1429  }
1430  if (other.getMaxEdgeFinderSize() != 0) {
1431  setMaxEdgeFinderSize(other.getMaxEdgeFinderSize());
1432  }
1433  if (other.getDiffnUseCumulative() != false) {
1434  setDiffnUseCumulative(other.getDiffnUseCumulative());
1435  }
1436  if (other.getUseElementRmq() != false) {
1437  setUseElementRmq(other.getUseElementRmq());
1438  }
1439  if (other.getSkipLocallyOptimalPaths() != false) {
1440  setSkipLocallyOptimalPaths(other.getSkipLocallyOptimalPaths());
1441  }
1442  if (other.getCheckSolutionPeriod() != 0) {
1443  setCheckSolutionPeriod(other.getCheckSolutionPeriod());
1444  }
1445  this.mergeUnknownFields(other.unknownFields);
1446  onChanged();
1447  return this;
1448  }
1449 
1450  @java.lang.Override
1451  public final boolean isInitialized() {
1452  return true;
1453  }
1454 
1455  @java.lang.Override
1457  com.google.protobuf.CodedInputStream input,
1458  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1459  throws java.io.IOException {
1461  try {
1462  parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
1463  } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1464  parsedMessage = (com.google.ortools.constraintsolver.ConstraintSolverParameters) e.getUnfinishedMessage();
1465  throw e.unwrapIOException();
1466  } finally {
1467  if (parsedMessage != null) {
1468  mergeFrom(parsedMessage);
1469  }
1470  }
1471  return this;
1472  }
1473 
1474  private int compressTrail_ = 0;
1484  public int getCompressTrailValue() {
1485  return compressTrail_;
1486  }
1496  public Builder setCompressTrailValue(int value) {
1497  compressTrail_ = value;
1498  onChanged();
1499  return this;
1500  }
1511  @SuppressWarnings("deprecation")
1514  }
1525  if (value == null) {
1526  throw new NullPointerException();
1527  }
1528 
1529  compressTrail_ = value.getNumber();
1530  onChanged();
1531  return this;
1532  }
1543 
1544  compressTrail_ = 0;
1545  onChanged();
1546  return this;
1547  }
1548 
1549  private int trailBlockSize_ ;
1558  public int getTrailBlockSize() {
1559  return trailBlockSize_;
1560  }
1569  public Builder setTrailBlockSize(int value) {
1570 
1571  trailBlockSize_ = value;
1572  onChanged();
1573  return this;
1574  }
1584 
1585  trailBlockSize_ = 0;
1586  onChanged();
1587  return this;
1588  }
1589 
1590  private int arraySplitSize_ ;
1599  public int getArraySplitSize() {
1600  return arraySplitSize_;
1601  }
1610  public Builder setArraySplitSize(int value) {
1611 
1612  arraySplitSize_ = value;
1613  onChanged();
1614  return this;
1615  }
1625 
1626  arraySplitSize_ = 0;
1627  onChanged();
1628  return this;
1629  }
1630 
1631  private boolean storeNames_ ;
1640  public boolean getStoreNames() {
1641  return storeNames_;
1642  }
1651  public Builder setStoreNames(boolean value) {
1652 
1653  storeNames_ = value;
1654  onChanged();
1655  return this;
1656  }
1666 
1667  storeNames_ = false;
1668  onChanged();
1669  return this;
1670  }
1671 
1672  private boolean nameCastVariables_ ;
1680  public boolean getNameCastVariables() {
1681  return nameCastVariables_;
1682  }
1690  public Builder setNameCastVariables(boolean value) {
1691 
1692  nameCastVariables_ = value;
1693  onChanged();
1694  return this;
1695  }
1704 
1705  nameCastVariables_ = false;
1706  onChanged();
1707  return this;
1708  }
1709 
1710  private boolean nameAllVariables_ ;
1718  public boolean getNameAllVariables() {
1719  return nameAllVariables_;
1720  }
1728  public Builder setNameAllVariables(boolean value) {
1729 
1730  nameAllVariables_ = value;
1731  onChanged();
1732  return this;
1733  }
1742 
1743  nameAllVariables_ = false;
1744  onChanged();
1745  return this;
1746  }
1747 
1748  private boolean profilePropagation_ ;
1756  public boolean getProfilePropagation() {
1757  return profilePropagation_;
1758  }
1766  public Builder setProfilePropagation(boolean value) {
1767 
1768  profilePropagation_ = value;
1769  onChanged();
1770  return this;
1771  }
1780 
1781  profilePropagation_ = false;
1782  onChanged();
1783  return this;
1784  }
1785 
1786  private java.lang.Object profileFile_ = "";
1794  public java.lang.String getProfileFile() {
1795  java.lang.Object ref = profileFile_;
1796  if (!(ref instanceof java.lang.String)) {
1797  com.google.protobuf.ByteString bs =
1798  (com.google.protobuf.ByteString) ref;
1799  java.lang.String s = bs.toStringUtf8();
1800  profileFile_ = s;
1801  return s;
1802  } else {
1803  return (java.lang.String) ref;
1804  }
1805  }
1813  public com.google.protobuf.ByteString
1815  java.lang.Object ref = profileFile_;
1816  if (ref instanceof String) {
1817  com.google.protobuf.ByteString b =
1818  com.google.protobuf.ByteString.copyFromUtf8(
1819  (java.lang.String) ref);
1820  profileFile_ = b;
1821  return b;
1822  } else {
1823  return (com.google.protobuf.ByteString) ref;
1824  }
1825  }
1834  java.lang.String value) {
1835  if (value == null) {
1836  throw new NullPointerException();
1837  }
1838 
1839  profileFile_ = value;
1840  onChanged();
1841  return this;
1842  }
1851 
1852  profileFile_ = getDefaultInstance().getProfileFile();
1853  onChanged();
1854  return this;
1855  }
1864  com.google.protobuf.ByteString value) {
1865  if (value == null) {
1866  throw new NullPointerException();
1867  }
1868  checkByteStringIsUtf8(value);
1869 
1870  profileFile_ = value;
1871  onChanged();
1872  return this;
1873  }
1874 
1875  private boolean profileLocalSearch_ ;
1883  public boolean getProfileLocalSearch() {
1884  return profileLocalSearch_;
1885  }
1893  public Builder setProfileLocalSearch(boolean value) {
1894 
1895  profileLocalSearch_ = value;
1896  onChanged();
1897  return this;
1898  }
1907 
1908  profileLocalSearch_ = false;
1909  onChanged();
1910  return this;
1911  }
1912 
1913  private boolean printLocalSearchProfile_ ;
1921  public boolean getPrintLocalSearchProfile() {
1922  return printLocalSearchProfile_;
1923  }
1931  public Builder setPrintLocalSearchProfile(boolean value) {
1932 
1933  printLocalSearchProfile_ = value;
1934  onChanged();
1935  return this;
1936  }
1945 
1946  printLocalSearchProfile_ = false;
1947  onChanged();
1948  return this;
1949  }
1950 
1951  private boolean tracePropagation_ ;
1959  public boolean getTracePropagation() {
1960  return tracePropagation_;
1961  }
1969  public Builder setTracePropagation(boolean value) {
1970 
1971  tracePropagation_ = value;
1972  onChanged();
1973  return this;
1974  }
1983 
1984  tracePropagation_ = false;
1985  onChanged();
1986  return this;
1987  }
1988 
1989  private boolean traceSearch_ ;
1997  public boolean getTraceSearch() {
1998  return traceSearch_;
1999  }
2007  public Builder setTraceSearch(boolean value) {
2008 
2009  traceSearch_ = value;
2010  onChanged();
2011  return this;
2012  }
2021 
2022  traceSearch_ = false;
2023  onChanged();
2024  return this;
2025  }
2026 
2027  private boolean printModel_ ;
2035  public boolean getPrintModel() {
2036  return printModel_;
2037  }
2045  public Builder setPrintModel(boolean value) {
2046 
2047  printModel_ = value;
2048  onChanged();
2049  return this;
2050  }
2059 
2060  printModel_ = false;
2061  onChanged();
2062  return this;
2063  }
2064 
2065  private boolean printModelStats_ ;
2073  public boolean getPrintModelStats() {
2074  return printModelStats_;
2075  }
2083  public Builder setPrintModelStats(boolean value) {
2084 
2085  printModelStats_ = value;
2086  onChanged();
2087  return this;
2088  }
2097 
2098  printModelStats_ = false;
2099  onChanged();
2100  return this;
2101  }
2102 
2103  private boolean printAddedConstraints_ ;
2111  public boolean getPrintAddedConstraints() {
2112  return printAddedConstraints_;
2113  }
2121  public Builder setPrintAddedConstraints(boolean value) {
2122 
2123  printAddedConstraints_ = value;
2124  onChanged();
2125  return this;
2126  }
2135 
2136  printAddedConstraints_ = false;
2137  onChanged();
2138  return this;
2139  }
2140 
2141  private boolean disableSolve_ ;
2145  public boolean getDisableSolve() {
2146  return disableSolve_;
2147  }
2151  public Builder setDisableSolve(boolean value) {
2152 
2153  disableSolve_ = value;
2154  onChanged();
2155  return this;
2156  }
2161 
2162  disableSolve_ = false;
2163  onChanged();
2164  return this;
2165  }
2166 
2167  private boolean useSmallTable_ ;
2175  public boolean getUseSmallTable() {
2176  return useSmallTable_;
2177  }
2185  public Builder setUseSmallTable(boolean value) {
2186 
2187  useSmallTable_ = value;
2188  onChanged();
2189  return this;
2190  }
2199 
2200  useSmallTable_ = false;
2201  onChanged();
2202  return this;
2203  }
2204 
2205  private boolean useCumulativeEdgeFinder_ ;
2213  public boolean getUseCumulativeEdgeFinder() {
2214  return useCumulativeEdgeFinder_;
2215  }
2223  public Builder setUseCumulativeEdgeFinder(boolean value) {
2224 
2225  useCumulativeEdgeFinder_ = value;
2226  onChanged();
2227  return this;
2228  }
2237 
2238  useCumulativeEdgeFinder_ = false;
2239  onChanged();
2240  return this;
2241  }
2242 
2243  private boolean useCumulativeTimeTable_ ;
2247  public boolean getUseCumulativeTimeTable() {
2248  return useCumulativeTimeTable_;
2249  }
2253  public Builder setUseCumulativeTimeTable(boolean value) {
2254 
2255  useCumulativeTimeTable_ = value;
2256  onChanged();
2257  return this;
2258  }
2263 
2264  useCumulativeTimeTable_ = false;
2265  onChanged();
2266  return this;
2267  }
2268 
2269  private boolean useCumulativeTimeTableSync_ ;
2274  return useCumulativeTimeTableSync_;
2275  }
2279  public Builder setUseCumulativeTimeTableSync(boolean value) {
2280 
2281  useCumulativeTimeTableSync_ = value;
2282  onChanged();
2283  return this;
2284  }
2289 
2290  useCumulativeTimeTableSync_ = false;
2291  onChanged();
2292  return this;
2293  }
2294 
2295  private boolean useSequenceHighDemandTasks_ ;
2300  return useSequenceHighDemandTasks_;
2301  }
2305  public Builder setUseSequenceHighDemandTasks(boolean value) {
2306 
2307  useSequenceHighDemandTasks_ = value;
2308  onChanged();
2309  return this;
2310  }
2315 
2316  useSequenceHighDemandTasks_ = false;
2317  onChanged();
2318  return this;
2319  }
2320 
2321  private boolean useAllPossibleDisjunctions_ ;
2326  return useAllPossibleDisjunctions_;
2327  }
2331  public Builder setUseAllPossibleDisjunctions(boolean value) {
2332 
2333  useAllPossibleDisjunctions_ = value;
2334  onChanged();
2335  return this;
2336  }
2341 
2342  useAllPossibleDisjunctions_ = false;
2343  onChanged();
2344  return this;
2345  }
2346 
2347  private int maxEdgeFinderSize_ ;
2351  public int getMaxEdgeFinderSize() {
2352  return maxEdgeFinderSize_;
2353  }
2357  public Builder setMaxEdgeFinderSize(int value) {
2358 
2359  maxEdgeFinderSize_ = value;
2360  onChanged();
2361  return this;
2362  }
2367 
2368  maxEdgeFinderSize_ = 0;
2369  onChanged();
2370  return this;
2371  }
2372 
2373  private boolean diffnUseCumulative_ ;
2381  public boolean getDiffnUseCumulative() {
2382  return diffnUseCumulative_;
2383  }
2391  public Builder setDiffnUseCumulative(boolean value) {
2392 
2393  diffnUseCumulative_ = value;
2394  onChanged();
2395  return this;
2396  }
2405 
2406  diffnUseCumulative_ = false;
2407  onChanged();
2408  return this;
2409  }
2410 
2411  private boolean useElementRmq_ ;
2419  public boolean getUseElementRmq() {
2420  return useElementRmq_;
2421  }
2429  public Builder setUseElementRmq(boolean value) {
2430 
2431  useElementRmq_ = value;
2432  onChanged();
2433  return this;
2434  }
2443 
2444  useElementRmq_ = false;
2445  onChanged();
2446  return this;
2447  }
2448 
2449  private boolean skipLocallyOptimalPaths_ ;
2460  public boolean getSkipLocallyOptimalPaths() {
2461  return skipLocallyOptimalPaths_;
2462  }
2473  public Builder setSkipLocallyOptimalPaths(boolean value) {
2474 
2475  skipLocallyOptimalPaths_ = value;
2476  onChanged();
2477  return this;
2478  }
2490 
2491  skipLocallyOptimalPaths_ = false;
2492  onChanged();
2493  return this;
2494  }
2495 
2496  private int checkSolutionPeriod_ ;
2504  public int getCheckSolutionPeriod() {
2505  return checkSolutionPeriod_;
2506  }
2514  public Builder setCheckSolutionPeriod(int value) {
2515 
2516  checkSolutionPeriod_ = value;
2517  onChanged();
2518  return this;
2519  }
2528 
2529  checkSolutionPeriod_ = 0;
2530  onChanged();
2531  return this;
2532  }
2533  @java.lang.Override
2535  final com.google.protobuf.UnknownFieldSet unknownFields) {
2536  return super.setUnknownFields(unknownFields);
2537  }
2538 
2539  @java.lang.Override
2541  final com.google.protobuf.UnknownFieldSet unknownFields) {
2542  return super.mergeUnknownFields(unknownFields);
2543  }
2544 
2545 
2546  // @@protoc_insertion_point(builder_scope:operations_research.ConstraintSolverParameters)
2547  }
2548 
2549  // @@protoc_insertion_point(class_scope:operations_research.ConstraintSolverParameters)
2550  private static final com.google.ortools.constraintsolver.ConstraintSolverParameters DEFAULT_INSTANCE;
2551  static {
2553  }
2554 
2556  return DEFAULT_INSTANCE;
2557  }
2558 
2559  private static final com.google.protobuf.Parser<ConstraintSolverParameters>
2560  PARSER = new com.google.protobuf.AbstractParser<ConstraintSolverParameters>() {
2561  @java.lang.Override
2562  public ConstraintSolverParameters parsePartialFrom(
2563  com.google.protobuf.CodedInputStream input,
2564  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2565  throws com.google.protobuf.InvalidProtocolBufferException {
2566  return new ConstraintSolverParameters(input, extensionRegistry);
2567  }
2568  };
2569 
2570  public static com.google.protobuf.Parser<ConstraintSolverParameters> parser() {
2571  return PARSER;
2572  }
2573 
2574  @java.lang.Override
2576  return PARSER;
2577  }
2578 
2579  @java.lang.Override
2581  return DEFAULT_INSTANCE;
2582  }
2583 
2584 }
2585 
static com.google.protobuf.Parser< ConstraintSolverParameters > parser()
.lang.Override Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override com.google.ortools.constraintsolver.ConstraintSolverParameters getDefaultInstanceForType()
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(byte[] data)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
Builder mergeFrom(com.google.ortools.constraintsolver.ConstraintSolverParameters other)
.lang.Override Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
.lang.Override java.lang.Object newInstance(UnusedPrivateParameter unused)
static TrailCompression valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression getCompressTrail()
Builder setCompressTrail(com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression value)
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseDelimitedFrom(java.io.InputStream input)
Builder setUseCumulativeTimeTable(boolean value)
bool use_cumulative_time_table = 106;
.lang.Override com.google.protobuf.Parser< ConstraintSolverParameters > getParserForType()
static com.google.protobuf.Internal.EnumLiteMap< TrailCompression > internalGetValueMap()
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
Builder setUseSequenceHighDemandTasks(boolean value)
bool use_sequence_high_demand_tasks = 107;
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Builder setUseCumulativeTimeTableSync(boolean value)
bool use_cumulative_time_table_sync = 112;
boolean getUseAllPossibleDisjunctions()
bool use_all_possible_disjunctions = 108;
boolean getUseSequenceHighDemandTasks()
bool use_sequence_high_demand_tasks = 107;
com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression getCompressTrail()
.lang.Override Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
boolean getUseCumulativeTimeTableSync()
bool use_cumulative_time_table_sync = 112;
.lang.Override Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
Builder clearUseCumulativeTimeTableSync()
bool use_cumulative_time_table_sync = 112;
.lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
.lang.Override com.google.ortools.constraintsolver.ConstraintSolverParameters build()
boolean getUseCumulativeTimeTableSync()
bool use_cumulative_time_table_sync = 112;
.lang.Override Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
.lang.Override final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
boolean getUseCumulativeTimeTable()
bool use_cumulative_time_table = 106;
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(java.nio.ByteBuffer data)
Builder setUseAllPossibleDisjunctions(boolean value)
bool use_all_possible_disjunctions = 108;
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
.lang.Override final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
.lang.Override void writeTo(com.google.protobuf.CodedOutputStream output)
static Builder newBuilder(com.google.ortools.constraintsolver.ConstraintSolverParameters prototype)
static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Builder clearUseSequenceHighDemandTasks()
bool use_sequence_high_demand_tasks = 107;
boolean getUseAllPossibleDisjunctions()
bool use_all_possible_disjunctions = 108;
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(com.google.protobuf.ByteString data)
.lang.Override com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
.lang.Override Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
.lang.Override com.google.ortools.constraintsolver.ConstraintSolverParameters getDefaultInstanceForType()
.lang.Override com.google.ortools.constraintsolver.ConstraintSolverParameters buildPartial()
Builder clearUseAllPossibleDisjunctions()
bool use_all_possible_disjunctions = 108;
.lang.Override final com.google.protobuf.UnknownFieldSet getUnknownFields()
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(com.google.protobuf.CodedInputStream input)
.lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
.lang.Override Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
boolean getUseSequenceHighDemandTasks()
bool use_sequence_high_demand_tasks = 107;
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(java.io.InputStream input)
static com.google.ortools.constraintsolver.ConstraintSolverParameters getDefaultInstance()