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  public final com.google.protobuf.UnknownFieldSet
30  return this.unknownFields;
31  }
33  com.google.protobuf.CodedInputStream input,
34  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
35  throws com.google.protobuf.InvalidProtocolBufferException {
36  this();
37  if (extensionRegistry == null) {
38  throw new java.lang.NullPointerException();
39  }
40  int mutable_bitField0_ = 0;
41  com.google.protobuf.UnknownFieldSet.Builder unknownFields =
42  com.google.protobuf.UnknownFieldSet.newBuilder();
43  try {
44  boolean done = false;
45  while (!done) {
46  int tag = input.readTag();
47  switch (tag) {
48  case 0:
49  done = true;
50  break;
51  case 8: {
52  int rawValue = input.readEnum();
53 
54  compressTrail_ = rawValue;
55  break;
56  }
57  case 16: {
58 
59  trailBlockSize_ = input.readInt32();
60  break;
61  }
62  case 24: {
63 
64  arraySplitSize_ = input.readInt32();
65  break;
66  }
67  case 32: {
68 
69  storeNames_ = input.readBool();
70  break;
71  }
72  case 40: {
73 
74  nameCastVariables_ = input.readBool();
75  break;
76  }
77  case 48: {
78 
79  nameAllVariables_ = input.readBool();
80  break;
81  }
82  case 56: {
83 
84  profilePropagation_ = input.readBool();
85  break;
86  }
87  case 66: {
88  java.lang.String s = input.readStringRequireUtf8();
89 
90  profileFile_ = s;
91  break;
92  }
93  case 72: {
94 
95  tracePropagation_ = input.readBool();
96  break;
97  }
98  case 80: {
99 
100  traceSearch_ = input.readBool();
101  break;
102  }
103  case 88: {
104 
105  printModel_ = input.readBool();
106  break;
107  }
108  case 96: {
109 
110  printModelStats_ = input.readBool();
111  break;
112  }
113  case 104: {
114 
115  printAddedConstraints_ = input.readBool();
116  break;
117  }
118  case 120: {
119 
120  disableSolve_ = input.readBool();
121  break;
122  }
123  case 128: {
124 
125  profileLocalSearch_ = input.readBool();
126  break;
127  }
128  case 136: {
129 
130  printLocalSearchProfile_ = input.readBool();
131  break;
132  }
133  case 808: {
134 
135  useSmallTable_ = input.readBool();
136  break;
137  }
138  case 840: {
139 
140  useCumulativeEdgeFinder_ = input.readBool();
141  break;
142  }
143  case 848: {
144 
145  useCumulativeTimeTable_ = input.readBool();
146  break;
147  }
148  case 856: {
149 
150  useSequenceHighDemandTasks_ = input.readBool();
151  break;
152  }
153  case 864: {
154 
155  useAllPossibleDisjunctions_ = input.readBool();
156  break;
157  }
158  case 872: {
159 
160  maxEdgeFinderSize_ = input.readInt32();
161  break;
162  }
163  case 880: {
164 
165  diffnUseCumulative_ = input.readBool();
166  break;
167  }
168  case 888: {
169 
170  useElementRmq_ = input.readBool();
171  break;
172  }
173  case 896: {
174 
175  useCumulativeTimeTableSync_ = input.readBool();
176  break;
177  }
178  case 904: {
179 
180  skipLocallyOptimalPaths_ = input.readBool();
181  break;
182  }
183  case 912: {
184 
185  checkSolutionPeriod_ = input.readInt32();
186  break;
187  }
188  default: {
189  if (!parseUnknownField(
190  input, unknownFields, extensionRegistry, tag)) {
191  done = true;
192  }
193  break;
194  }
195  }
196  }
197  } catch (com.google.protobuf.InvalidProtocolBufferException e) {
198  throw e.setUnfinishedMessage(this);
199  } catch (java.io.IOException e) {
200  throw new com.google.protobuf.InvalidProtocolBufferException(
201  e).setUnfinishedMessage(this);
202  } finally {
203  this.unknownFields = unknownFields.build();
204  makeExtensionsImmutable();
205  }
206  }
207  public static final com.google.protobuf.Descriptors.Descriptor
209  return com.google.ortools.constraintsolver.SolverParameters.internal_static_operations_research_ConstraintSolverParameters_descriptor;
210  }
211 
212  @java.lang.Override
213  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
215  return com.google.ortools.constraintsolver.SolverParameters.internal_static_operations_research_ConstraintSolverParameters_fieldAccessorTable
216  .ensureFieldAccessorsInitialized(
218  }
219 
227  public enum TrailCompression
228  implements com.google.protobuf.ProtocolMessageEnum {
238  ;
239 
243  public static final int NO_COMPRESSION_VALUE = 0;
247  public static final int COMPRESS_WITH_ZLIB_VALUE = 1;
248 
249 
250  public final int getNumber() {
251  if (this == UNRECOGNIZED) {
252  throw new java.lang.IllegalArgumentException(
253  "Can't get the number of an unknown enum value.");
254  }
255  return value;
256  }
257 
261  @java.lang.Deprecated
262  public static TrailCompression valueOf(int value) {
263  return forNumber(value);
264  }
265 
266  public static TrailCompression forNumber(int value) {
267  switch (value) {
268  case 0: return NO_COMPRESSION;
269  case 1: return COMPRESS_WITH_ZLIB;
270  default: return null;
271  }
272  }
273 
274  public static com.google.protobuf.Internal.EnumLiteMap<TrailCompression>
276  return internalValueMap;
277  }
278  private static final com.google.protobuf.Internal.EnumLiteMap<
279  TrailCompression> internalValueMap =
280  new com.google.protobuf.Internal.EnumLiteMap<TrailCompression>() {
281  public TrailCompression findValueByNumber(int number) {
282  return TrailCompression.forNumber(number);
283  }
284  };
285 
286  public final com.google.protobuf.Descriptors.EnumValueDescriptor
288  return getDescriptor().getValues().get(ordinal());
289  }
290  public final com.google.protobuf.Descriptors.EnumDescriptor
292  return getDescriptor();
293  }
294  public static final com.google.protobuf.Descriptors.EnumDescriptor
297  }
298 
299  private static final TrailCompression[] VALUES = values();
300 
301  public static TrailCompression valueOf(
302  com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
303  if (desc.getType() != getDescriptor()) {
304  throw new java.lang.IllegalArgumentException(
305  "EnumValueDescriptor is not for this type.");
306  }
307  if (desc.getIndex() == -1) {
308  return UNRECOGNIZED;
309  }
310  return VALUES[desc.getIndex()];
311  }
312 
313  private final int value;
314 
315  private TrailCompression(int value) {
316  this.value = value;
317  }
318 
319  // @@protoc_insertion_point(enum_scope:operations_research.ConstraintSolverParameters.TrailCompression)
320  }
321 
322  public static final int COMPRESS_TRAIL_FIELD_NUMBER = 1;
323  private int compressTrail_;
333  public int getCompressTrailValue() {
334  return compressTrail_;
335  }
346  @SuppressWarnings("deprecation")
349  }
350 
351  public static final int TRAIL_BLOCK_SIZE_FIELD_NUMBER = 2;
352  private int trailBlockSize_;
361  public int getTrailBlockSize() {
362  return trailBlockSize_;
363  }
364 
365  public static final int ARRAY_SPLIT_SIZE_FIELD_NUMBER = 3;
366  private int arraySplitSize_;
375  public int getArraySplitSize() {
376  return arraySplitSize_;
377  }
378 
379  public static final int STORE_NAMES_FIELD_NUMBER = 4;
380  private boolean storeNames_;
389  public boolean getStoreNames() {
390  return storeNames_;
391  }
392 
393  public static final int NAME_CAST_VARIABLES_FIELD_NUMBER = 5;
394  private boolean nameCastVariables_;
402  public boolean getNameCastVariables() {
403  return nameCastVariables_;
404  }
405 
406  public static final int NAME_ALL_VARIABLES_FIELD_NUMBER = 6;
407  private boolean nameAllVariables_;
415  public boolean getNameAllVariables() {
416  return nameAllVariables_;
417  }
418 
419  public static final int PROFILE_PROPAGATION_FIELD_NUMBER = 7;
420  private boolean profilePropagation_;
428  public boolean getProfilePropagation() {
429  return profilePropagation_;
430  }
431 
432  public static final int PROFILE_FILE_FIELD_NUMBER = 8;
433  private volatile java.lang.Object profileFile_;
441  public java.lang.String getProfileFile() {
442  java.lang.Object ref = profileFile_;
443  if (ref instanceof java.lang.String) {
444  return (java.lang.String) ref;
445  } else {
446  com.google.protobuf.ByteString bs =
447  (com.google.protobuf.ByteString) ref;
448  java.lang.String s = bs.toStringUtf8();
449  profileFile_ = s;
450  return s;
451  }
452  }
460  public com.google.protobuf.ByteString
462  java.lang.Object ref = profileFile_;
463  if (ref instanceof java.lang.String) {
464  com.google.protobuf.ByteString b =
465  com.google.protobuf.ByteString.copyFromUtf8(
466  (java.lang.String) ref);
467  profileFile_ = b;
468  return b;
469  } else {
470  return (com.google.protobuf.ByteString) ref;
471  }
472  }
473 
474  public static final int PROFILE_LOCAL_SEARCH_FIELD_NUMBER = 16;
475  private boolean profileLocalSearch_;
483  public boolean getProfileLocalSearch() {
484  return profileLocalSearch_;
485  }
486 
487  public static final int PRINT_LOCAL_SEARCH_PROFILE_FIELD_NUMBER = 17;
488  private boolean printLocalSearchProfile_;
496  public boolean getPrintLocalSearchProfile() {
497  return printLocalSearchProfile_;
498  }
499 
500  public static final int TRACE_PROPAGATION_FIELD_NUMBER = 9;
501  private boolean tracePropagation_;
509  public boolean getTracePropagation() {
510  return tracePropagation_;
511  }
512 
513  public static final int TRACE_SEARCH_FIELD_NUMBER = 10;
514  private boolean traceSearch_;
522  public boolean getTraceSearch() {
523  return traceSearch_;
524  }
525 
526  public static final int PRINT_MODEL_FIELD_NUMBER = 11;
527  private boolean printModel_;
535  public boolean getPrintModel() {
536  return printModel_;
537  }
538 
539  public static final int PRINT_MODEL_STATS_FIELD_NUMBER = 12;
540  private boolean printModelStats_;
548  public boolean getPrintModelStats() {
549  return printModelStats_;
550  }
551 
552  public static final int PRINT_ADDED_CONSTRAINTS_FIELD_NUMBER = 13;
553  private boolean printAddedConstraints_;
561  public boolean getPrintAddedConstraints() {
562  return printAddedConstraints_;
563  }
564 
565  public static final int DISABLE_SOLVE_FIELD_NUMBER = 15;
566  private boolean disableSolve_;
570  public boolean getDisableSolve() {
571  return disableSolve_;
572  }
573 
574  public static final int USE_SMALL_TABLE_FIELD_NUMBER = 101;
575  private boolean useSmallTable_;
583  public boolean getUseSmallTable() {
584  return useSmallTable_;
585  }
586 
587  public static final int USE_CUMULATIVE_EDGE_FINDER_FIELD_NUMBER = 105;
588  private boolean useCumulativeEdgeFinder_;
596  public boolean getUseCumulativeEdgeFinder() {
597  return useCumulativeEdgeFinder_;
598  }
599 
600  public static final int USE_CUMULATIVE_TIME_TABLE_FIELD_NUMBER = 106;
601  private boolean useCumulativeTimeTable_;
605  public boolean getUseCumulativeTimeTable() {
606  return useCumulativeTimeTable_;
607  }
608 
609  public static final int USE_CUMULATIVE_TIME_TABLE_SYNC_FIELD_NUMBER = 112;
610  private boolean useCumulativeTimeTableSync_;
614  public boolean getUseCumulativeTimeTableSync() {
615  return useCumulativeTimeTableSync_;
616  }
617 
618  public static final int USE_SEQUENCE_HIGH_DEMAND_TASKS_FIELD_NUMBER = 107;
619  private boolean useSequenceHighDemandTasks_;
623  public boolean getUseSequenceHighDemandTasks() {
624  return useSequenceHighDemandTasks_;
625  }
626 
627  public static final int USE_ALL_POSSIBLE_DISJUNCTIONS_FIELD_NUMBER = 108;
628  private boolean useAllPossibleDisjunctions_;
632  public boolean getUseAllPossibleDisjunctions() {
633  return useAllPossibleDisjunctions_;
634  }
635 
636  public static final int MAX_EDGE_FINDER_SIZE_FIELD_NUMBER = 109;
637  private int maxEdgeFinderSize_;
641  public int getMaxEdgeFinderSize() {
642  return maxEdgeFinderSize_;
643  }
644 
645  public static final int DIFFN_USE_CUMULATIVE_FIELD_NUMBER = 110;
646  private boolean diffnUseCumulative_;
654  public boolean getDiffnUseCumulative() {
655  return diffnUseCumulative_;
656  }
657 
658  public static final int USE_ELEMENT_RMQ_FIELD_NUMBER = 111;
659  private boolean useElementRmq_;
667  public boolean getUseElementRmq() {
668  return useElementRmq_;
669  }
670 
671  public static final int SKIP_LOCALLY_OPTIMAL_PATHS_FIELD_NUMBER = 113;
672  private boolean skipLocallyOptimalPaths_;
683  public boolean getSkipLocallyOptimalPaths() {
684  return skipLocallyOptimalPaths_;
685  }
686 
687  public static final int CHECK_SOLUTION_PERIOD_FIELD_NUMBER = 114;
688  private int checkSolutionPeriod_;
696  public int getCheckSolutionPeriod() {
697  return checkSolutionPeriod_;
698  }
699 
700  private byte memoizedIsInitialized = -1;
701  @java.lang.Override
702  public final boolean isInitialized() {
703  byte isInitialized = memoizedIsInitialized;
704  if (isInitialized == 1) return true;
705  if (isInitialized == 0) return false;
706 
707  memoizedIsInitialized = 1;
708  return true;
709  }
710 
711  @java.lang.Override
712  public void writeTo(com.google.protobuf.CodedOutputStream output)
713  throws java.io.IOException {
715  output.writeEnum(1, compressTrail_);
716  }
717  if (trailBlockSize_ != 0) {
718  output.writeInt32(2, trailBlockSize_);
719  }
720  if (arraySplitSize_ != 0) {
721  output.writeInt32(3, arraySplitSize_);
722  }
723  if (storeNames_ != false) {
724  output.writeBool(4, storeNames_);
725  }
726  if (nameCastVariables_ != false) {
727  output.writeBool(5, nameCastVariables_);
728  }
729  if (nameAllVariables_ != false) {
730  output.writeBool(6, nameAllVariables_);
731  }
732  if (profilePropagation_ != false) {
733  output.writeBool(7, profilePropagation_);
734  }
735  if (!getProfileFileBytes().isEmpty()) {
736  com.google.protobuf.GeneratedMessageV3.writeString(output, 8, profileFile_);
737  }
738  if (tracePropagation_ != false) {
739  output.writeBool(9, tracePropagation_);
740  }
741  if (traceSearch_ != false) {
742  output.writeBool(10, traceSearch_);
743  }
744  if (printModel_ != false) {
745  output.writeBool(11, printModel_);
746  }
747  if (printModelStats_ != false) {
748  output.writeBool(12, printModelStats_);
749  }
750  if (printAddedConstraints_ != false) {
751  output.writeBool(13, printAddedConstraints_);
752  }
753  if (disableSolve_ != false) {
754  output.writeBool(15, disableSolve_);
755  }
756  if (profileLocalSearch_ != false) {
757  output.writeBool(16, profileLocalSearch_);
758  }
759  if (printLocalSearchProfile_ != false) {
760  output.writeBool(17, printLocalSearchProfile_);
761  }
762  if (useSmallTable_ != false) {
763  output.writeBool(101, useSmallTable_);
764  }
765  if (useCumulativeEdgeFinder_ != false) {
766  output.writeBool(105, useCumulativeEdgeFinder_);
767  }
768  if (useCumulativeTimeTable_ != false) {
769  output.writeBool(106, useCumulativeTimeTable_);
770  }
771  if (useSequenceHighDemandTasks_ != false) {
772  output.writeBool(107, useSequenceHighDemandTasks_);
773  }
774  if (useAllPossibleDisjunctions_ != false) {
775  output.writeBool(108, useAllPossibleDisjunctions_);
776  }
777  if (maxEdgeFinderSize_ != 0) {
778  output.writeInt32(109, maxEdgeFinderSize_);
779  }
780  if (diffnUseCumulative_ != false) {
781  output.writeBool(110, diffnUseCumulative_);
782  }
783  if (useElementRmq_ != false) {
784  output.writeBool(111, useElementRmq_);
785  }
786  if (useCumulativeTimeTableSync_ != false) {
787  output.writeBool(112, useCumulativeTimeTableSync_);
788  }
789  if (skipLocallyOptimalPaths_ != false) {
790  output.writeBool(113, skipLocallyOptimalPaths_);
791  }
792  if (checkSolutionPeriod_ != 0) {
793  output.writeInt32(114, checkSolutionPeriod_);
794  }
795  unknownFields.writeTo(output);
796  }
797 
798  @java.lang.Override
799  public int getSerializedSize() {
800  int size = memoizedSize;
801  if (size != -1) return size;
802 
803  size = 0;
805  size += com.google.protobuf.CodedOutputStream
806  .computeEnumSize(1, compressTrail_);
807  }
808  if (trailBlockSize_ != 0) {
809  size += com.google.protobuf.CodedOutputStream
810  .computeInt32Size(2, trailBlockSize_);
811  }
812  if (arraySplitSize_ != 0) {
813  size += com.google.protobuf.CodedOutputStream
814  .computeInt32Size(3, arraySplitSize_);
815  }
816  if (storeNames_ != false) {
817  size += com.google.protobuf.CodedOutputStream
818  .computeBoolSize(4, storeNames_);
819  }
820  if (nameCastVariables_ != false) {
821  size += com.google.protobuf.CodedOutputStream
822  .computeBoolSize(5, nameCastVariables_);
823  }
824  if (nameAllVariables_ != false) {
825  size += com.google.protobuf.CodedOutputStream
826  .computeBoolSize(6, nameAllVariables_);
827  }
828  if (profilePropagation_ != false) {
829  size += com.google.protobuf.CodedOutputStream
830  .computeBoolSize(7, profilePropagation_);
831  }
832  if (!getProfileFileBytes().isEmpty()) {
833  size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, profileFile_);
834  }
835  if (tracePropagation_ != false) {
836  size += com.google.protobuf.CodedOutputStream
837  .computeBoolSize(9, tracePropagation_);
838  }
839  if (traceSearch_ != false) {
840  size += com.google.protobuf.CodedOutputStream
841  .computeBoolSize(10, traceSearch_);
842  }
843  if (printModel_ != false) {
844  size += com.google.protobuf.CodedOutputStream
845  .computeBoolSize(11, printModel_);
846  }
847  if (printModelStats_ != false) {
848  size += com.google.protobuf.CodedOutputStream
849  .computeBoolSize(12, printModelStats_);
850  }
851  if (printAddedConstraints_ != false) {
852  size += com.google.protobuf.CodedOutputStream
853  .computeBoolSize(13, printAddedConstraints_);
854  }
855  if (disableSolve_ != false) {
856  size += com.google.protobuf.CodedOutputStream
857  .computeBoolSize(15, disableSolve_);
858  }
859  if (profileLocalSearch_ != false) {
860  size += com.google.protobuf.CodedOutputStream
861  .computeBoolSize(16, profileLocalSearch_);
862  }
863  if (printLocalSearchProfile_ != false) {
864  size += com.google.protobuf.CodedOutputStream
865  .computeBoolSize(17, printLocalSearchProfile_);
866  }
867  if (useSmallTable_ != false) {
868  size += com.google.protobuf.CodedOutputStream
869  .computeBoolSize(101, useSmallTable_);
870  }
871  if (useCumulativeEdgeFinder_ != false) {
872  size += com.google.protobuf.CodedOutputStream
873  .computeBoolSize(105, useCumulativeEdgeFinder_);
874  }
875  if (useCumulativeTimeTable_ != false) {
876  size += com.google.protobuf.CodedOutputStream
877  .computeBoolSize(106, useCumulativeTimeTable_);
878  }
879  if (useSequenceHighDemandTasks_ != false) {
880  size += com.google.protobuf.CodedOutputStream
881  .computeBoolSize(107, useSequenceHighDemandTasks_);
882  }
883  if (useAllPossibleDisjunctions_ != false) {
884  size += com.google.protobuf.CodedOutputStream
885  .computeBoolSize(108, useAllPossibleDisjunctions_);
886  }
887  if (maxEdgeFinderSize_ != 0) {
888  size += com.google.protobuf.CodedOutputStream
889  .computeInt32Size(109, maxEdgeFinderSize_);
890  }
891  if (diffnUseCumulative_ != false) {
892  size += com.google.protobuf.CodedOutputStream
893  .computeBoolSize(110, diffnUseCumulative_);
894  }
895  if (useElementRmq_ != false) {
896  size += com.google.protobuf.CodedOutputStream
897  .computeBoolSize(111, useElementRmq_);
898  }
899  if (useCumulativeTimeTableSync_ != false) {
900  size += com.google.protobuf.CodedOutputStream
901  .computeBoolSize(112, useCumulativeTimeTableSync_);
902  }
903  if (skipLocallyOptimalPaths_ != false) {
904  size += com.google.protobuf.CodedOutputStream
905  .computeBoolSize(113, skipLocallyOptimalPaths_);
906  }
907  if (checkSolutionPeriod_ != 0) {
908  size += com.google.protobuf.CodedOutputStream
909  .computeInt32Size(114, checkSolutionPeriod_);
910  }
911  size += unknownFields.getSerializedSize();
912  memoizedSize = size;
913  return size;
914  }
915 
916  @java.lang.Override
917  public boolean equals(final java.lang.Object obj) {
918  if (obj == this) {
919  return true;
920  }
922  return super.equals(obj);
923  }
925 
926  if (compressTrail_ != other.compressTrail_) return false;
927  if (getTrailBlockSize()
928  != other.getTrailBlockSize()) return false;
929  if (getArraySplitSize()
930  != other.getArraySplitSize()) return false;
931  if (getStoreNames()
932  != other.getStoreNames()) return false;
934  != other.getNameCastVariables()) return false;
935  if (getNameAllVariables()
936  != other.getNameAllVariables()) return false;
938  != other.getProfilePropagation()) return false;
939  if (!getProfileFile()
940  .equals(other.getProfileFile())) return false;
942  != other.getProfileLocalSearch()) return false;
944  != other.getPrintLocalSearchProfile()) return false;
945  if (getTracePropagation()
946  != other.getTracePropagation()) return false;
947  if (getTraceSearch()
948  != other.getTraceSearch()) return false;
949  if (getPrintModel()
950  != other.getPrintModel()) return false;
951  if (getPrintModelStats()
952  != other.getPrintModelStats()) return false;
954  != other.getPrintAddedConstraints()) return false;
955  if (getDisableSolve()
956  != other.getDisableSolve()) return false;
957  if (getUseSmallTable()
958  != other.getUseSmallTable()) return false;
960  != other.getUseCumulativeEdgeFinder()) return false;
962  != other.getUseCumulativeTimeTable()) return false;
964  != other.getUseCumulativeTimeTableSync()) return false;
966  != other.getUseSequenceHighDemandTasks()) return false;
968  != other.getUseAllPossibleDisjunctions()) return false;
970  != other.getMaxEdgeFinderSize()) return false;
972  != other.getDiffnUseCumulative()) return false;
973  if (getUseElementRmq()
974  != other.getUseElementRmq()) return false;
976  != other.getSkipLocallyOptimalPaths()) return false;
978  != other.getCheckSolutionPeriod()) return false;
979  if (!unknownFields.equals(other.unknownFields)) return false;
980  return true;
981  }
982 
983  @java.lang.Override
984  public int hashCode() {
985  if (memoizedHashCode != 0) {
986  return memoizedHashCode;
987  }
988  int hash = 41;
989  hash = (19 * hash) + getDescriptor().hashCode();
990  hash = (37 * hash) + COMPRESS_TRAIL_FIELD_NUMBER;
991  hash = (53 * hash) + compressTrail_;
992  hash = (37 * hash) + TRAIL_BLOCK_SIZE_FIELD_NUMBER;
993  hash = (53 * hash) + getTrailBlockSize();
994  hash = (37 * hash) + ARRAY_SPLIT_SIZE_FIELD_NUMBER;
995  hash = (53 * hash) + getArraySplitSize();
996  hash = (37 * hash) + STORE_NAMES_FIELD_NUMBER;
997  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
998  getStoreNames());
999  hash = (37 * hash) + NAME_CAST_VARIABLES_FIELD_NUMBER;
1000  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1002  hash = (37 * hash) + NAME_ALL_VARIABLES_FIELD_NUMBER;
1003  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1005  hash = (37 * hash) + PROFILE_PROPAGATION_FIELD_NUMBER;
1006  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1008  hash = (37 * hash) + PROFILE_FILE_FIELD_NUMBER;
1009  hash = (53 * hash) + getProfileFile().hashCode();
1010  hash = (37 * hash) + PROFILE_LOCAL_SEARCH_FIELD_NUMBER;
1011  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1013  hash = (37 * hash) + PRINT_LOCAL_SEARCH_PROFILE_FIELD_NUMBER;
1014  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1016  hash = (37 * hash) + TRACE_PROPAGATION_FIELD_NUMBER;
1017  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1019  hash = (37 * hash) + TRACE_SEARCH_FIELD_NUMBER;
1020  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1021  getTraceSearch());
1022  hash = (37 * hash) + PRINT_MODEL_FIELD_NUMBER;
1023  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1024  getPrintModel());
1025  hash = (37 * hash) + PRINT_MODEL_STATS_FIELD_NUMBER;
1026  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1027  getPrintModelStats());
1028  hash = (37 * hash) + PRINT_ADDED_CONSTRAINTS_FIELD_NUMBER;
1029  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1031  hash = (37 * hash) + DISABLE_SOLVE_FIELD_NUMBER;
1032  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1033  getDisableSolve());
1034  hash = (37 * hash) + USE_SMALL_TABLE_FIELD_NUMBER;
1035  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1036  getUseSmallTable());
1037  hash = (37 * hash) + USE_CUMULATIVE_EDGE_FINDER_FIELD_NUMBER;
1038  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1040  hash = (37 * hash) + USE_CUMULATIVE_TIME_TABLE_FIELD_NUMBER;
1041  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1043  hash = (37 * hash) + USE_CUMULATIVE_TIME_TABLE_SYNC_FIELD_NUMBER;
1044  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1046  hash = (37 * hash) + USE_SEQUENCE_HIGH_DEMAND_TASKS_FIELD_NUMBER;
1047  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1049  hash = (37 * hash) + USE_ALL_POSSIBLE_DISJUNCTIONS_FIELD_NUMBER;
1050  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1052  hash = (37 * hash) + MAX_EDGE_FINDER_SIZE_FIELD_NUMBER;
1053  hash = (53 * hash) + getMaxEdgeFinderSize();
1054  hash = (37 * hash) + DIFFN_USE_CUMULATIVE_FIELD_NUMBER;
1055  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1057  hash = (37 * hash) + USE_ELEMENT_RMQ_FIELD_NUMBER;
1058  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1059  getUseElementRmq());
1060  hash = (37 * hash) + SKIP_LOCALLY_OPTIMAL_PATHS_FIELD_NUMBER;
1061  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1063  hash = (37 * hash) + CHECK_SOLUTION_PERIOD_FIELD_NUMBER;
1064  hash = (53 * hash) + getCheckSolutionPeriod();
1065  hash = (29 * hash) + unknownFields.hashCode();
1066  memoizedHashCode = hash;
1067  return hash;
1068  }
1069 
1071  java.nio.ByteBuffer data)
1072  throws com.google.protobuf.InvalidProtocolBufferException {
1073  return PARSER.parseFrom(data);
1074  }
1076  java.nio.ByteBuffer data,
1077  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1078  throws com.google.protobuf.InvalidProtocolBufferException {
1079  return PARSER.parseFrom(data, extensionRegistry);
1080  }
1082  com.google.protobuf.ByteString data)
1083  throws com.google.protobuf.InvalidProtocolBufferException {
1084  return PARSER.parseFrom(data);
1085  }
1087  com.google.protobuf.ByteString data,
1088  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1089  throws com.google.protobuf.InvalidProtocolBufferException {
1090  return PARSER.parseFrom(data, extensionRegistry);
1091  }
1093  throws com.google.protobuf.InvalidProtocolBufferException {
1094  return PARSER.parseFrom(data);
1095  }
1097  byte[] data,
1098  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1099  throws com.google.protobuf.InvalidProtocolBufferException {
1100  return PARSER.parseFrom(data, extensionRegistry);
1101  }
1102  public static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(java.io.InputStream input)
1103  throws java.io.IOException {
1104  return com.google.protobuf.GeneratedMessageV3
1105  .parseWithIOException(PARSER, input);
1106  }
1108  java.io.InputStream input,
1109  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1110  throws java.io.IOException {
1111  return com.google.protobuf.GeneratedMessageV3
1112  .parseWithIOException(PARSER, input, extensionRegistry);
1113  }
1115  throws java.io.IOException {
1116  return com.google.protobuf.GeneratedMessageV3
1117  .parseDelimitedWithIOException(PARSER, input);
1118  }
1120  java.io.InputStream input,
1121  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1122  throws java.io.IOException {
1123  return com.google.protobuf.GeneratedMessageV3
1124  .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
1125  }
1127  com.google.protobuf.CodedInputStream input)
1128  throws java.io.IOException {
1129  return com.google.protobuf.GeneratedMessageV3
1130  .parseWithIOException(PARSER, input);
1131  }
1133  com.google.protobuf.CodedInputStream input,
1134  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1135  throws java.io.IOException {
1136  return com.google.protobuf.GeneratedMessageV3
1137  .parseWithIOException(PARSER, input, extensionRegistry);
1138  }
1139 
1140  @java.lang.Override
1141  public Builder newBuilderForType() { return newBuilder(); }
1142  public static Builder newBuilder() {
1143  return DEFAULT_INSTANCE.toBuilder();
1144  }
1146  return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1147  }
1148  @java.lang.Override
1149  public Builder toBuilder() {
1150  return this == DEFAULT_INSTANCE
1151  ? new Builder() : new Builder().mergeFrom(this);
1152  }
1153 
1154  @java.lang.Override
1156  com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1157  Builder builder = new Builder(parent);
1158  return builder;
1159  }
1167  public static final class Builder extends
1168  com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
1169  // @@protoc_insertion_point(builder_implements:operations_research.ConstraintSolverParameters)
1170  com.google.ortools.constraintsolver.ConstraintSolverParametersOrBuilder {
1171  public static final com.google.protobuf.Descriptors.Descriptor
1173  return com.google.ortools.constraintsolver.SolverParameters.internal_static_operations_research_ConstraintSolverParameters_descriptor;
1174  }
1175 
1176  @java.lang.Override
1177  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
1179  return com.google.ortools.constraintsolver.SolverParameters.internal_static_operations_research_ConstraintSolverParameters_fieldAccessorTable
1180  .ensureFieldAccessorsInitialized(
1182  }
1183 
1184  // Construct using com.google.ortools.constraintsolver.ConstraintSolverParameters.newBuilder()
1185  private Builder() {
1186  maybeForceBuilderInitialization();
1187  }
1188 
1189  private Builder(
1190  com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1191  super(parent);
1192  maybeForceBuilderInitialization();
1193  }
1194  private void maybeForceBuilderInitialization() {
1195  if (com.google.protobuf.GeneratedMessageV3
1196  .alwaysUseFieldBuilders) {
1197  }
1198  }
1199  @java.lang.Override
1200  public Builder clear() {
1201  super.clear();
1202  compressTrail_ = 0;
1203 
1204  trailBlockSize_ = 0;
1205 
1206  arraySplitSize_ = 0;
1207 
1208  storeNames_ = false;
1209 
1210  nameCastVariables_ = false;
1211 
1212  nameAllVariables_ = false;
1213 
1214  profilePropagation_ = false;
1215 
1216  profileFile_ = "";
1217 
1218  profileLocalSearch_ = false;
1219 
1220  printLocalSearchProfile_ = false;
1221 
1222  tracePropagation_ = false;
1223 
1224  traceSearch_ = false;
1225 
1226  printModel_ = false;
1227 
1228  printModelStats_ = false;
1229 
1230  printAddedConstraints_ = false;
1231 
1232  disableSolve_ = false;
1233 
1234  useSmallTable_ = false;
1235 
1236  useCumulativeEdgeFinder_ = false;
1237 
1238  useCumulativeTimeTable_ = false;
1239 
1240  useCumulativeTimeTableSync_ = false;
1241 
1242  useSequenceHighDemandTasks_ = false;
1243 
1244  useAllPossibleDisjunctions_ = false;
1245 
1246  maxEdgeFinderSize_ = 0;
1247 
1248  diffnUseCumulative_ = false;
1249 
1250  useElementRmq_ = false;
1251 
1252  skipLocallyOptimalPaths_ = false;
1253 
1254  checkSolutionPeriod_ = 0;
1255 
1256  return this;
1257  }
1258 
1259  @java.lang.Override
1260  public com.google.protobuf.Descriptors.Descriptor
1262  return com.google.ortools.constraintsolver.SolverParameters.internal_static_operations_research_ConstraintSolverParameters_descriptor;
1263  }
1264 
1265  @java.lang.Override
1268  }
1269 
1270  @java.lang.Override
1273  if (!result.isInitialized()) {
1274  throw newUninitializedMessageException(result);
1275  }
1276  return result;
1277  }
1278 
1279  @java.lang.Override
1282  result.compressTrail_ = compressTrail_;
1283  result.trailBlockSize_ = trailBlockSize_;
1284  result.arraySplitSize_ = arraySplitSize_;
1285  result.storeNames_ = storeNames_;
1286  result.nameCastVariables_ = nameCastVariables_;
1287  result.nameAllVariables_ = nameAllVariables_;
1288  result.profilePropagation_ = profilePropagation_;
1289  result.profileFile_ = profileFile_;
1290  result.profileLocalSearch_ = profileLocalSearch_;
1291  result.printLocalSearchProfile_ = printLocalSearchProfile_;
1292  result.tracePropagation_ = tracePropagation_;
1293  result.traceSearch_ = traceSearch_;
1294  result.printModel_ = printModel_;
1295  result.printModelStats_ = printModelStats_;
1296  result.printAddedConstraints_ = printAddedConstraints_;
1297  result.disableSolve_ = disableSolve_;
1298  result.useSmallTable_ = useSmallTable_;
1299  result.useCumulativeEdgeFinder_ = useCumulativeEdgeFinder_;
1300  result.useCumulativeTimeTable_ = useCumulativeTimeTable_;
1301  result.useCumulativeTimeTableSync_ = useCumulativeTimeTableSync_;
1302  result.useSequenceHighDemandTasks_ = useSequenceHighDemandTasks_;
1303  result.useAllPossibleDisjunctions_ = useAllPossibleDisjunctions_;
1304  result.maxEdgeFinderSize_ = maxEdgeFinderSize_;
1305  result.diffnUseCumulative_ = diffnUseCumulative_;
1306  result.useElementRmq_ = useElementRmq_;
1307  result.skipLocallyOptimalPaths_ = skipLocallyOptimalPaths_;
1308  result.checkSolutionPeriod_ = checkSolutionPeriod_;
1309  onBuilt();
1310  return result;
1311  }
1312 
1313  @java.lang.Override
1314  public Builder clone() {
1315  return super.clone();
1316  }
1317  @java.lang.Override
1319  com.google.protobuf.Descriptors.FieldDescriptor field,
1320  java.lang.Object value) {
1321  return super.setField(field, value);
1322  }
1323  @java.lang.Override
1325  com.google.protobuf.Descriptors.FieldDescriptor field) {
1326  return super.clearField(field);
1327  }
1328  @java.lang.Override
1330  com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1331  return super.clearOneof(oneof);
1332  }
1333  @java.lang.Override
1335  com.google.protobuf.Descriptors.FieldDescriptor field,
1336  int index, java.lang.Object value) {
1337  return super.setRepeatedField(field, index, value);
1338  }
1339  @java.lang.Override
1341  com.google.protobuf.Descriptors.FieldDescriptor field,
1342  java.lang.Object value) {
1343  return super.addRepeatedField(field, value);
1344  }
1345  @java.lang.Override
1346  public Builder mergeFrom(com.google.protobuf.Message other) {
1349  } else {
1350  super.mergeFrom(other);
1351  return this;
1352  }
1353  }
1354 
1357  if (other.compressTrail_ != 0) {
1358  setCompressTrailValue(other.getCompressTrailValue());
1359  }
1360  if (other.getTrailBlockSize() != 0) {
1361  setTrailBlockSize(other.getTrailBlockSize());
1362  }
1363  if (other.getArraySplitSize() != 0) {
1364  setArraySplitSize(other.getArraySplitSize());
1365  }
1366  if (other.getStoreNames() != false) {
1367  setStoreNames(other.getStoreNames());
1368  }
1369  if (other.getNameCastVariables() != false) {
1370  setNameCastVariables(other.getNameCastVariables());
1371  }
1372  if (other.getNameAllVariables() != false) {
1373  setNameAllVariables(other.getNameAllVariables());
1374  }
1375  if (other.getProfilePropagation() != false) {
1376  setProfilePropagation(other.getProfilePropagation());
1377  }
1378  if (!other.getProfileFile().isEmpty()) {
1379  profileFile_ = other.profileFile_;
1380  onChanged();
1381  }
1382  if (other.getProfileLocalSearch() != false) {
1383  setProfileLocalSearch(other.getProfileLocalSearch());
1384  }
1385  if (other.getPrintLocalSearchProfile() != false) {
1386  setPrintLocalSearchProfile(other.getPrintLocalSearchProfile());
1387  }
1388  if (other.getTracePropagation() != false) {
1389  setTracePropagation(other.getTracePropagation());
1390  }
1391  if (other.getTraceSearch() != false) {
1392  setTraceSearch(other.getTraceSearch());
1393  }
1394  if (other.getPrintModel() != false) {
1395  setPrintModel(other.getPrintModel());
1396  }
1397  if (other.getPrintModelStats() != false) {
1398  setPrintModelStats(other.getPrintModelStats());
1399  }
1400  if (other.getPrintAddedConstraints() != false) {
1401  setPrintAddedConstraints(other.getPrintAddedConstraints());
1402  }
1403  if (other.getDisableSolve() != false) {
1404  setDisableSolve(other.getDisableSolve());
1405  }
1406  if (other.getUseSmallTable() != false) {
1407  setUseSmallTable(other.getUseSmallTable());
1408  }
1409  if (other.getUseCumulativeEdgeFinder() != false) {
1410  setUseCumulativeEdgeFinder(other.getUseCumulativeEdgeFinder());
1411  }
1412  if (other.getUseCumulativeTimeTable() != false) {
1413  setUseCumulativeTimeTable(other.getUseCumulativeTimeTable());
1414  }
1415  if (other.getUseCumulativeTimeTableSync() != false) {
1416  setUseCumulativeTimeTableSync(other.getUseCumulativeTimeTableSync());
1417  }
1418  if (other.getUseSequenceHighDemandTasks() != false) {
1419  setUseSequenceHighDemandTasks(other.getUseSequenceHighDemandTasks());
1420  }
1421  if (other.getUseAllPossibleDisjunctions() != false) {
1422  setUseAllPossibleDisjunctions(other.getUseAllPossibleDisjunctions());
1423  }
1424  if (other.getMaxEdgeFinderSize() != 0) {
1425  setMaxEdgeFinderSize(other.getMaxEdgeFinderSize());
1426  }
1427  if (other.getDiffnUseCumulative() != false) {
1428  setDiffnUseCumulative(other.getDiffnUseCumulative());
1429  }
1430  if (other.getUseElementRmq() != false) {
1431  setUseElementRmq(other.getUseElementRmq());
1432  }
1433  if (other.getSkipLocallyOptimalPaths() != false) {
1434  setSkipLocallyOptimalPaths(other.getSkipLocallyOptimalPaths());
1435  }
1436  if (other.getCheckSolutionPeriod() != 0) {
1437  setCheckSolutionPeriod(other.getCheckSolutionPeriod());
1438  }
1439  this.mergeUnknownFields(other.unknownFields);
1440  onChanged();
1441  return this;
1442  }
1443 
1444  @java.lang.Override
1445  public final boolean isInitialized() {
1446  return true;
1447  }
1448 
1449  @java.lang.Override
1451  com.google.protobuf.CodedInputStream input,
1452  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1453  throws java.io.IOException {
1455  try {
1456  parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
1457  } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1458  parsedMessage = (com.google.ortools.constraintsolver.ConstraintSolverParameters) e.getUnfinishedMessage();
1459  throw e.unwrapIOException();
1460  } finally {
1461  if (parsedMessage != null) {
1462  mergeFrom(parsedMessage);
1463  }
1464  }
1465  return this;
1466  }
1467 
1468  private int compressTrail_ = 0;
1478  public int getCompressTrailValue() {
1479  return compressTrail_;
1480  }
1490  public Builder setCompressTrailValue(int value) {
1491  compressTrail_ = value;
1492  onChanged();
1493  return this;
1494  }
1505  @SuppressWarnings("deprecation")
1508  }
1519  if (value == null) {
1520  throw new NullPointerException();
1521  }
1522 
1523  compressTrail_ = value.getNumber();
1524  onChanged();
1525  return this;
1526  }
1537 
1538  compressTrail_ = 0;
1539  onChanged();
1540  return this;
1541  }
1542 
1543  private int trailBlockSize_ ;
1552  public int getTrailBlockSize() {
1553  return trailBlockSize_;
1554  }
1563  public Builder setTrailBlockSize(int value) {
1564 
1565  trailBlockSize_ = value;
1566  onChanged();
1567  return this;
1568  }
1578 
1579  trailBlockSize_ = 0;
1580  onChanged();
1581  return this;
1582  }
1583 
1584  private int arraySplitSize_ ;
1593  public int getArraySplitSize() {
1594  return arraySplitSize_;
1595  }
1604  public Builder setArraySplitSize(int value) {
1605 
1606  arraySplitSize_ = value;
1607  onChanged();
1608  return this;
1609  }
1619 
1620  arraySplitSize_ = 0;
1621  onChanged();
1622  return this;
1623  }
1624 
1625  private boolean storeNames_ ;
1634  public boolean getStoreNames() {
1635  return storeNames_;
1636  }
1645  public Builder setStoreNames(boolean value) {
1646 
1647  storeNames_ = value;
1648  onChanged();
1649  return this;
1650  }
1660 
1661  storeNames_ = false;
1662  onChanged();
1663  return this;
1664  }
1665 
1666  private boolean nameCastVariables_ ;
1674  public boolean getNameCastVariables() {
1675  return nameCastVariables_;
1676  }
1684  public Builder setNameCastVariables(boolean value) {
1685 
1686  nameCastVariables_ = value;
1687  onChanged();
1688  return this;
1689  }
1698 
1699  nameCastVariables_ = false;
1700  onChanged();
1701  return this;
1702  }
1703 
1704  private boolean nameAllVariables_ ;
1712  public boolean getNameAllVariables() {
1713  return nameAllVariables_;
1714  }
1722  public Builder setNameAllVariables(boolean value) {
1723 
1724  nameAllVariables_ = value;
1725  onChanged();
1726  return this;
1727  }
1736 
1737  nameAllVariables_ = false;
1738  onChanged();
1739  return this;
1740  }
1741 
1742  private boolean profilePropagation_ ;
1750  public boolean getProfilePropagation() {
1751  return profilePropagation_;
1752  }
1760  public Builder setProfilePropagation(boolean value) {
1761 
1762  profilePropagation_ = value;
1763  onChanged();
1764  return this;
1765  }
1774 
1775  profilePropagation_ = false;
1776  onChanged();
1777  return this;
1778  }
1779 
1780  private java.lang.Object profileFile_ = "";
1788  public java.lang.String getProfileFile() {
1789  java.lang.Object ref = profileFile_;
1790  if (!(ref instanceof java.lang.String)) {
1791  com.google.protobuf.ByteString bs =
1792  (com.google.protobuf.ByteString) ref;
1793  java.lang.String s = bs.toStringUtf8();
1794  profileFile_ = s;
1795  return s;
1796  } else {
1797  return (java.lang.String) ref;
1798  }
1799  }
1807  public com.google.protobuf.ByteString
1809  java.lang.Object ref = profileFile_;
1810  if (ref instanceof String) {
1811  com.google.protobuf.ByteString b =
1812  com.google.protobuf.ByteString.copyFromUtf8(
1813  (java.lang.String) ref);
1814  profileFile_ = b;
1815  return b;
1816  } else {
1817  return (com.google.protobuf.ByteString) ref;
1818  }
1819  }
1828  java.lang.String value) {
1829  if (value == null) {
1830  throw new NullPointerException();
1831  }
1832 
1833  profileFile_ = value;
1834  onChanged();
1835  return this;
1836  }
1845 
1846  profileFile_ = getDefaultInstance().getProfileFile();
1847  onChanged();
1848  return this;
1849  }
1858  com.google.protobuf.ByteString value) {
1859  if (value == null) {
1860  throw new NullPointerException();
1861  }
1862  checkByteStringIsUtf8(value);
1863 
1864  profileFile_ = value;
1865  onChanged();
1866  return this;
1867  }
1868 
1869  private boolean profileLocalSearch_ ;
1877  public boolean getProfileLocalSearch() {
1878  return profileLocalSearch_;
1879  }
1887  public Builder setProfileLocalSearch(boolean value) {
1888 
1889  profileLocalSearch_ = value;
1890  onChanged();
1891  return this;
1892  }
1901 
1902  profileLocalSearch_ = false;
1903  onChanged();
1904  return this;
1905  }
1906 
1907  private boolean printLocalSearchProfile_ ;
1915  public boolean getPrintLocalSearchProfile() {
1916  return printLocalSearchProfile_;
1917  }
1925  public Builder setPrintLocalSearchProfile(boolean value) {
1926 
1927  printLocalSearchProfile_ = value;
1928  onChanged();
1929  return this;
1930  }
1939 
1940  printLocalSearchProfile_ = false;
1941  onChanged();
1942  return this;
1943  }
1944 
1945  private boolean tracePropagation_ ;
1953  public boolean getTracePropagation() {
1954  return tracePropagation_;
1955  }
1963  public Builder setTracePropagation(boolean value) {
1964 
1965  tracePropagation_ = value;
1966  onChanged();
1967  return this;
1968  }
1977 
1978  tracePropagation_ = false;
1979  onChanged();
1980  return this;
1981  }
1982 
1983  private boolean traceSearch_ ;
1991  public boolean getTraceSearch() {
1992  return traceSearch_;
1993  }
2001  public Builder setTraceSearch(boolean value) {
2002 
2003  traceSearch_ = value;
2004  onChanged();
2005  return this;
2006  }
2015 
2016  traceSearch_ = false;
2017  onChanged();
2018  return this;
2019  }
2020 
2021  private boolean printModel_ ;
2029  public boolean getPrintModel() {
2030  return printModel_;
2031  }
2039  public Builder setPrintModel(boolean value) {
2040 
2041  printModel_ = value;
2042  onChanged();
2043  return this;
2044  }
2053 
2054  printModel_ = false;
2055  onChanged();
2056  return this;
2057  }
2058 
2059  private boolean printModelStats_ ;
2067  public boolean getPrintModelStats() {
2068  return printModelStats_;
2069  }
2077  public Builder setPrintModelStats(boolean value) {
2078 
2079  printModelStats_ = value;
2080  onChanged();
2081  return this;
2082  }
2091 
2092  printModelStats_ = false;
2093  onChanged();
2094  return this;
2095  }
2096 
2097  private boolean printAddedConstraints_ ;
2105  public boolean getPrintAddedConstraints() {
2106  return printAddedConstraints_;
2107  }
2115  public Builder setPrintAddedConstraints(boolean value) {
2116 
2117  printAddedConstraints_ = value;
2118  onChanged();
2119  return this;
2120  }
2129 
2130  printAddedConstraints_ = false;
2131  onChanged();
2132  return this;
2133  }
2134 
2135  private boolean disableSolve_ ;
2139  public boolean getDisableSolve() {
2140  return disableSolve_;
2141  }
2145  public Builder setDisableSolve(boolean value) {
2146 
2147  disableSolve_ = value;
2148  onChanged();
2149  return this;
2150  }
2155 
2156  disableSolve_ = false;
2157  onChanged();
2158  return this;
2159  }
2160 
2161  private boolean useSmallTable_ ;
2169  public boolean getUseSmallTable() {
2170  return useSmallTable_;
2171  }
2179  public Builder setUseSmallTable(boolean value) {
2180 
2181  useSmallTable_ = value;
2182  onChanged();
2183  return this;
2184  }
2193 
2194  useSmallTable_ = false;
2195  onChanged();
2196  return this;
2197  }
2198 
2199  private boolean useCumulativeEdgeFinder_ ;
2207  public boolean getUseCumulativeEdgeFinder() {
2208  return useCumulativeEdgeFinder_;
2209  }
2217  public Builder setUseCumulativeEdgeFinder(boolean value) {
2218 
2219  useCumulativeEdgeFinder_ = value;
2220  onChanged();
2221  return this;
2222  }
2231 
2232  useCumulativeEdgeFinder_ = false;
2233  onChanged();
2234  return this;
2235  }
2236 
2237  private boolean useCumulativeTimeTable_ ;
2241  public boolean getUseCumulativeTimeTable() {
2242  return useCumulativeTimeTable_;
2243  }
2247  public Builder setUseCumulativeTimeTable(boolean value) {
2248 
2249  useCumulativeTimeTable_ = value;
2250  onChanged();
2251  return this;
2252  }
2257 
2258  useCumulativeTimeTable_ = false;
2259  onChanged();
2260  return this;
2261  }
2262 
2263  private boolean useCumulativeTimeTableSync_ ;
2268  return useCumulativeTimeTableSync_;
2269  }
2273  public Builder setUseCumulativeTimeTableSync(boolean value) {
2274 
2275  useCumulativeTimeTableSync_ = value;
2276  onChanged();
2277  return this;
2278  }
2283 
2284  useCumulativeTimeTableSync_ = false;
2285  onChanged();
2286  return this;
2287  }
2288 
2289  private boolean useSequenceHighDemandTasks_ ;
2294  return useSequenceHighDemandTasks_;
2295  }
2299  public Builder setUseSequenceHighDemandTasks(boolean value) {
2300 
2301  useSequenceHighDemandTasks_ = value;
2302  onChanged();
2303  return this;
2304  }
2309 
2310  useSequenceHighDemandTasks_ = false;
2311  onChanged();
2312  return this;
2313  }
2314 
2315  private boolean useAllPossibleDisjunctions_ ;
2320  return useAllPossibleDisjunctions_;
2321  }
2325  public Builder setUseAllPossibleDisjunctions(boolean value) {
2326 
2327  useAllPossibleDisjunctions_ = value;
2328  onChanged();
2329  return this;
2330  }
2335 
2336  useAllPossibleDisjunctions_ = false;
2337  onChanged();
2338  return this;
2339  }
2340 
2341  private int maxEdgeFinderSize_ ;
2345  public int getMaxEdgeFinderSize() {
2346  return maxEdgeFinderSize_;
2347  }
2351  public Builder setMaxEdgeFinderSize(int value) {
2352 
2353  maxEdgeFinderSize_ = value;
2354  onChanged();
2355  return this;
2356  }
2361 
2362  maxEdgeFinderSize_ = 0;
2363  onChanged();
2364  return this;
2365  }
2366 
2367  private boolean diffnUseCumulative_ ;
2375  public boolean getDiffnUseCumulative() {
2376  return diffnUseCumulative_;
2377  }
2385  public Builder setDiffnUseCumulative(boolean value) {
2386 
2387  diffnUseCumulative_ = value;
2388  onChanged();
2389  return this;
2390  }
2399 
2400  diffnUseCumulative_ = false;
2401  onChanged();
2402  return this;
2403  }
2404 
2405  private boolean useElementRmq_ ;
2413  public boolean getUseElementRmq() {
2414  return useElementRmq_;
2415  }
2423  public Builder setUseElementRmq(boolean value) {
2424 
2425  useElementRmq_ = value;
2426  onChanged();
2427  return this;
2428  }
2437 
2438  useElementRmq_ = false;
2439  onChanged();
2440  return this;
2441  }
2442 
2443  private boolean skipLocallyOptimalPaths_ ;
2454  public boolean getSkipLocallyOptimalPaths() {
2455  return skipLocallyOptimalPaths_;
2456  }
2467  public Builder setSkipLocallyOptimalPaths(boolean value) {
2468 
2469  skipLocallyOptimalPaths_ = value;
2470  onChanged();
2471  return this;
2472  }
2484 
2485  skipLocallyOptimalPaths_ = false;
2486  onChanged();
2487  return this;
2488  }
2489 
2490  private int checkSolutionPeriod_ ;
2498  public int getCheckSolutionPeriod() {
2499  return checkSolutionPeriod_;
2500  }
2508  public Builder setCheckSolutionPeriod(int value) {
2509 
2510  checkSolutionPeriod_ = value;
2511  onChanged();
2512  return this;
2513  }
2522 
2523  checkSolutionPeriod_ = 0;
2524  onChanged();
2525  return this;
2526  }
2527  @java.lang.Override
2529  final com.google.protobuf.UnknownFieldSet unknownFields) {
2530  return super.setUnknownFields(unknownFields);
2531  }
2532 
2533  @java.lang.Override
2535  final com.google.protobuf.UnknownFieldSet unknownFields) {
2536  return super.mergeUnknownFields(unknownFields);
2537  }
2538 
2539 
2540  // @@protoc_insertion_point(builder_scope:operations_research.ConstraintSolverParameters)
2541  }
2542 
2543  // @@protoc_insertion_point(class_scope:operations_research.ConstraintSolverParameters)
2544  private static final com.google.ortools.constraintsolver.ConstraintSolverParameters DEFAULT_INSTANCE;
2545  static {
2547  }
2548 
2550  return DEFAULT_INSTANCE;
2551  }
2552 
2553  private static final com.google.protobuf.Parser<ConstraintSolverParameters>
2554  PARSER = new com.google.protobuf.AbstractParser<ConstraintSolverParameters>() {
2555  @java.lang.Override
2556  public ConstraintSolverParameters parsePartialFrom(
2557  com.google.protobuf.CodedInputStream input,
2558  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2559  throws com.google.protobuf.InvalidProtocolBufferException {
2560  return new ConstraintSolverParameters(input, extensionRegistry);
2561  }
2562  };
2563 
2564  public static com.google.protobuf.Parser<ConstraintSolverParameters> parser() {
2565  return PARSER;
2566  }
2567 
2568  @java.lang.Override
2570  return PARSER;
2571  }
2572 
2573  @java.lang.Override
2575  return DEFAULT_INSTANCE;
2576  }
2577 
2578 }
2579 
Builder clearUseCumulativeTimeTableSync()
bool use_cumulative_time_table_sync = 112;
.lang.Override final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(com.google.protobuf.CodedInputStream input)
.lang.Override com.google.ortools.constraintsolver.ConstraintSolverParameters getDefaultInstanceForType()
Builder clearUseAllPossibleDisjunctions()
bool use_all_possible_disjunctions = 108;
.lang.Override com.google.ortools.constraintsolver.ConstraintSolverParameters build()
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Builder setUseCumulativeTimeTableSync(boolean value)
bool use_cumulative_time_table_sync = 112;
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
.lang.Override Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Builder setUseCumulativeTimeTable(boolean value)
bool use_cumulative_time_table = 106;
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(java.nio.ByteBuffer data)
boolean getUseCumulativeTimeTableSync()
bool use_cumulative_time_table_sync = 112;
.lang.Override Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
.lang.Override Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
.lang.Override com.google.protobuf.Parser< ConstraintSolverParameters > getParserForType()
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
boolean getUseAllPossibleDisjunctions()
bool use_all_possible_disjunctions = 108;
Builder mergeFrom(com.google.ortools.constraintsolver.ConstraintSolverParameters other)
.lang.Override com.google.ortools.constraintsolver.ConstraintSolverParameters getDefaultInstanceForType()
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(com.google.protobuf.ByteString data)
Builder setUseSequenceHighDemandTasks(boolean value)
bool use_sequence_high_demand_tasks = 107;
boolean getUseCumulativeTimeTableSync()
bool use_cumulative_time_table_sync = 112;
static TrailCompression valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Builder setCompressTrail(com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression value)
.lang.Override Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(java.io.InputStream input)
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
static com.google.protobuf.Parser< ConstraintSolverParameters > parser()
.lang.Override Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseDelimitedFrom(java.io.InputStream input)
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(byte[] data)
.lang.Override final com.google.protobuf.UnknownFieldSet getUnknownFields()
Builder setUseAllPossibleDisjunctions(boolean value)
bool use_all_possible_disjunctions = 108;
.lang.Override com.google.ortools.constraintsolver.ConstraintSolverParameters buildPartial()
.lang.Override Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression getCompressTrail()
boolean getUseAllPossibleDisjunctions()
bool use_all_possible_disjunctions = 108;
boolean getUseCumulativeTimeTable()
bool use_cumulative_time_table = 106;
.lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
.lang.Override final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Builder newBuilder(com.google.ortools.constraintsolver.ConstraintSolverParameters prototype)
com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression getCompressTrail()
.lang.Override com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
static com.google.ortools.constraintsolver.ConstraintSolverParameters getDefaultInstance()
Builder clearUseSequenceHighDemandTasks()
bool use_sequence_high_demand_tasks = 107;
.lang.Override void writeTo(com.google.protobuf.CodedOutputStream output)
boolean getUseSequenceHighDemandTasks()
bool use_sequence_high_demand_tasks = 107;
static com.google.protobuf.Internal.EnumLiteMap< TrailCompression > internalGetValueMap()
static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
boolean getUseSequenceHighDemandTasks()
bool use_sequence_high_demand_tasks = 107;