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 
269  @java.lang.Deprecated
270  public static TrailCompression valueOf(int value) {
271  return forNumber(value);
272  }
273 
278  public static TrailCompression forNumber(int value) {
279  switch (value) {
280  case 0: return NO_COMPRESSION;
281  case 1: return COMPRESS_WITH_ZLIB;
282  default: return null;
283  }
284  }
285 
286  public static com.google.protobuf.Internal.EnumLiteMap<TrailCompression>
288  return internalValueMap;
289  }
290  private static final com.google.protobuf.Internal.EnumLiteMap<
291  TrailCompression> internalValueMap =
292  new com.google.protobuf.Internal.EnumLiteMap<TrailCompression>() {
293  public TrailCompression findValueByNumber(int number) {
294  return TrailCompression.forNumber(number);
295  }
296  };
297 
298  public final com.google.protobuf.Descriptors.EnumValueDescriptor
300  return getDescriptor().getValues().get(ordinal());
301  }
302  public final com.google.protobuf.Descriptors.EnumDescriptor
304  return getDescriptor();
305  }
306  public static final com.google.protobuf.Descriptors.EnumDescriptor
309  }
310 
311  private static final TrailCompression[] VALUES = values();
312 
313  public static TrailCompression valueOf(
314  com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
315  if (desc.getType() != getDescriptor()) {
316  throw new java.lang.IllegalArgumentException(
317  "EnumValueDescriptor is not for this type.");
318  }
319  if (desc.getIndex() == -1) {
320  return UNRECOGNIZED;
321  }
322  return VALUES[desc.getIndex()];
323  }
324 
325  private final int value;
326 
327  private TrailCompression(int value) {
328  this.value = value;
329  }
330 
331  // @@protoc_insertion_point(enum_scope:operations_research.ConstraintSolverParameters.TrailCompression)
332  }
333 
334  public static final int COMPRESS_TRAIL_FIELD_NUMBER = 1;
335  private int compressTrail_;
346  public int getCompressTrailValue() {
347  return compressTrail_;
348  }
360  @SuppressWarnings("deprecation")
363  }
364 
365  public static final int TRAIL_BLOCK_SIZE_FIELD_NUMBER = 2;
366  private int trailBlockSize_;
376  public int getTrailBlockSize() {
377  return trailBlockSize_;
378  }
379 
380  public static final int ARRAY_SPLIT_SIZE_FIELD_NUMBER = 3;
381  private int arraySplitSize_;
391  public int getArraySplitSize() {
392  return arraySplitSize_;
393  }
394 
395  public static final int STORE_NAMES_FIELD_NUMBER = 4;
396  private boolean storeNames_;
406  public boolean getStoreNames() {
407  return storeNames_;
408  }
409 
410  public static final int NAME_CAST_VARIABLES_FIELD_NUMBER = 5;
411  private boolean nameCastVariables_;
420  public boolean getNameCastVariables() {
421  return nameCastVariables_;
422  }
423 
424  public static final int NAME_ALL_VARIABLES_FIELD_NUMBER = 6;
425  private boolean nameAllVariables_;
434  public boolean getNameAllVariables() {
435  return nameAllVariables_;
436  }
437 
438  public static final int PROFILE_PROPAGATION_FIELD_NUMBER = 7;
439  private boolean profilePropagation_;
448  public boolean getProfilePropagation() {
449  return profilePropagation_;
450  }
451 
452  public static final int PROFILE_FILE_FIELD_NUMBER = 8;
453  private volatile java.lang.Object profileFile_;
462  public java.lang.String getProfileFile() {
463  java.lang.Object ref = profileFile_;
464  if (ref instanceof java.lang.String) {
465  return (java.lang.String) ref;
466  } else {
467  com.google.protobuf.ByteString bs =
468  (com.google.protobuf.ByteString) ref;
469  java.lang.String s = bs.toStringUtf8();
470  profileFile_ = s;
471  return s;
472  }
473  }
482  public com.google.protobuf.ByteString
484  java.lang.Object ref = profileFile_;
485  if (ref instanceof java.lang.String) {
486  com.google.protobuf.ByteString b =
487  com.google.protobuf.ByteString.copyFromUtf8(
488  (java.lang.String) ref);
489  profileFile_ = b;
490  return b;
491  } else {
492  return (com.google.protobuf.ByteString) ref;
493  }
494  }
495 
496  public static final int PROFILE_LOCAL_SEARCH_FIELD_NUMBER = 16;
497  private boolean profileLocalSearch_;
506  public boolean getProfileLocalSearch() {
507  return profileLocalSearch_;
508  }
509 
510  public static final int PRINT_LOCAL_SEARCH_PROFILE_FIELD_NUMBER = 17;
511  private boolean printLocalSearchProfile_;
520  public boolean getPrintLocalSearchProfile() {
521  return printLocalSearchProfile_;
522  }
523 
524  public static final int TRACE_PROPAGATION_FIELD_NUMBER = 9;
525  private boolean tracePropagation_;
534  public boolean getTracePropagation() {
535  return tracePropagation_;
536  }
537 
538  public static final int TRACE_SEARCH_FIELD_NUMBER = 10;
539  private boolean traceSearch_;
548  public boolean getTraceSearch() {
549  return traceSearch_;
550  }
551 
552  public static final int PRINT_MODEL_FIELD_NUMBER = 11;
553  private boolean printModel_;
562  public boolean getPrintModel() {
563  return printModel_;
564  }
565 
566  public static final int PRINT_MODEL_STATS_FIELD_NUMBER = 12;
567  private boolean printModelStats_;
576  public boolean getPrintModelStats() {
577  return printModelStats_;
578  }
579 
580  public static final int PRINT_ADDED_CONSTRAINTS_FIELD_NUMBER = 13;
581  private boolean printAddedConstraints_;
590  public boolean getPrintAddedConstraints() {
591  return printAddedConstraints_;
592  }
593 
594  public static final int DISABLE_SOLVE_FIELD_NUMBER = 15;
595  private boolean disableSolve_;
600  public boolean getDisableSolve() {
601  return disableSolve_;
602  }
603 
604  public static final int USE_SMALL_TABLE_FIELD_NUMBER = 101;
605  private boolean useSmallTable_;
614  public boolean getUseSmallTable() {
615  return useSmallTable_;
616  }
617 
618  public static final int USE_CUMULATIVE_EDGE_FINDER_FIELD_NUMBER = 105;
619  private boolean useCumulativeEdgeFinder_;
628  public boolean getUseCumulativeEdgeFinder() {
629  return useCumulativeEdgeFinder_;
630  }
631 
632  public static final int USE_CUMULATIVE_TIME_TABLE_FIELD_NUMBER = 106;
633  private boolean useCumulativeTimeTable_;
638  public boolean getUseCumulativeTimeTable() {
639  return useCumulativeTimeTable_;
640  }
641 
642  public static final int USE_CUMULATIVE_TIME_TABLE_SYNC_FIELD_NUMBER = 112;
643  private boolean useCumulativeTimeTableSync_;
648  public boolean getUseCumulativeTimeTableSync() {
649  return useCumulativeTimeTableSync_;
650  }
651 
652  public static final int USE_SEQUENCE_HIGH_DEMAND_TASKS_FIELD_NUMBER = 107;
653  private boolean useSequenceHighDemandTasks_;
658  public boolean getUseSequenceHighDemandTasks() {
659  return useSequenceHighDemandTasks_;
660  }
661 
662  public static final int USE_ALL_POSSIBLE_DISJUNCTIONS_FIELD_NUMBER = 108;
663  private boolean useAllPossibleDisjunctions_;
668  public boolean getUseAllPossibleDisjunctions() {
669  return useAllPossibleDisjunctions_;
670  }
671 
672  public static final int MAX_EDGE_FINDER_SIZE_FIELD_NUMBER = 109;
673  private int maxEdgeFinderSize_;
678  public int getMaxEdgeFinderSize() {
679  return maxEdgeFinderSize_;
680  }
681 
682  public static final int DIFFN_USE_CUMULATIVE_FIELD_NUMBER = 110;
683  private boolean diffnUseCumulative_;
692  public boolean getDiffnUseCumulative() {
693  return diffnUseCumulative_;
694  }
695 
696  public static final int USE_ELEMENT_RMQ_FIELD_NUMBER = 111;
697  private boolean useElementRmq_;
706  public boolean getUseElementRmq() {
707  return useElementRmq_;
708  }
709 
710  public static final int SKIP_LOCALLY_OPTIMAL_PATHS_FIELD_NUMBER = 113;
711  private boolean skipLocallyOptimalPaths_;
723  public boolean getSkipLocallyOptimalPaths() {
724  return skipLocallyOptimalPaths_;
725  }
726 
727  public static final int CHECK_SOLUTION_PERIOD_FIELD_NUMBER = 114;
728  private int checkSolutionPeriod_;
737  public int getCheckSolutionPeriod() {
738  return checkSolutionPeriod_;
739  }
740 
741  private byte memoizedIsInitialized = -1;
742  @java.lang.Override
743  public final boolean isInitialized() {
744  byte isInitialized = memoizedIsInitialized;
745  if (isInitialized == 1) return true;
746  if (isInitialized == 0) return false;
747 
748  memoizedIsInitialized = 1;
749  return true;
750  }
751 
752  @java.lang.Override
753  public void writeTo(com.google.protobuf.CodedOutputStream output)
754  throws java.io.IOException {
756  output.writeEnum(1, compressTrail_);
757  }
758  if (trailBlockSize_ != 0) {
759  output.writeInt32(2, trailBlockSize_);
760  }
761  if (arraySplitSize_ != 0) {
762  output.writeInt32(3, arraySplitSize_);
763  }
764  if (storeNames_ != false) {
765  output.writeBool(4, storeNames_);
766  }
767  if (nameCastVariables_ != false) {
768  output.writeBool(5, nameCastVariables_);
769  }
770  if (nameAllVariables_ != false) {
771  output.writeBool(6, nameAllVariables_);
772  }
773  if (profilePropagation_ != false) {
774  output.writeBool(7, profilePropagation_);
775  }
776  if (!getProfileFileBytes().isEmpty()) {
777  com.google.protobuf.GeneratedMessageV3.writeString(output, 8, profileFile_);
778  }
779  if (tracePropagation_ != false) {
780  output.writeBool(9, tracePropagation_);
781  }
782  if (traceSearch_ != false) {
783  output.writeBool(10, traceSearch_);
784  }
785  if (printModel_ != false) {
786  output.writeBool(11, printModel_);
787  }
788  if (printModelStats_ != false) {
789  output.writeBool(12, printModelStats_);
790  }
791  if (printAddedConstraints_ != false) {
792  output.writeBool(13, printAddedConstraints_);
793  }
794  if (disableSolve_ != false) {
795  output.writeBool(15, disableSolve_);
796  }
797  if (profileLocalSearch_ != false) {
798  output.writeBool(16, profileLocalSearch_);
799  }
800  if (printLocalSearchProfile_ != false) {
801  output.writeBool(17, printLocalSearchProfile_);
802  }
803  if (useSmallTable_ != false) {
804  output.writeBool(101, useSmallTable_);
805  }
806  if (useCumulativeEdgeFinder_ != false) {
807  output.writeBool(105, useCumulativeEdgeFinder_);
808  }
809  if (useCumulativeTimeTable_ != false) {
810  output.writeBool(106, useCumulativeTimeTable_);
811  }
812  if (useSequenceHighDemandTasks_ != false) {
813  output.writeBool(107, useSequenceHighDemandTasks_);
814  }
815  if (useAllPossibleDisjunctions_ != false) {
816  output.writeBool(108, useAllPossibleDisjunctions_);
817  }
818  if (maxEdgeFinderSize_ != 0) {
819  output.writeInt32(109, maxEdgeFinderSize_);
820  }
821  if (diffnUseCumulative_ != false) {
822  output.writeBool(110, diffnUseCumulative_);
823  }
824  if (useElementRmq_ != false) {
825  output.writeBool(111, useElementRmq_);
826  }
827  if (useCumulativeTimeTableSync_ != false) {
828  output.writeBool(112, useCumulativeTimeTableSync_);
829  }
830  if (skipLocallyOptimalPaths_ != false) {
831  output.writeBool(113, skipLocallyOptimalPaths_);
832  }
833  if (checkSolutionPeriod_ != 0) {
834  output.writeInt32(114, checkSolutionPeriod_);
835  }
836  unknownFields.writeTo(output);
837  }
838 
839  @java.lang.Override
840  public int getSerializedSize() {
841  int size = memoizedSize;
842  if (size != -1) return size;
843 
844  size = 0;
846  size += com.google.protobuf.CodedOutputStream
847  .computeEnumSize(1, compressTrail_);
848  }
849  if (trailBlockSize_ != 0) {
850  size += com.google.protobuf.CodedOutputStream
851  .computeInt32Size(2, trailBlockSize_);
852  }
853  if (arraySplitSize_ != 0) {
854  size += com.google.protobuf.CodedOutputStream
855  .computeInt32Size(3, arraySplitSize_);
856  }
857  if (storeNames_ != false) {
858  size += com.google.protobuf.CodedOutputStream
859  .computeBoolSize(4, storeNames_);
860  }
861  if (nameCastVariables_ != false) {
862  size += com.google.protobuf.CodedOutputStream
863  .computeBoolSize(5, nameCastVariables_);
864  }
865  if (nameAllVariables_ != false) {
866  size += com.google.protobuf.CodedOutputStream
867  .computeBoolSize(6, nameAllVariables_);
868  }
869  if (profilePropagation_ != false) {
870  size += com.google.protobuf.CodedOutputStream
871  .computeBoolSize(7, profilePropagation_);
872  }
873  if (!getProfileFileBytes().isEmpty()) {
874  size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, profileFile_);
875  }
876  if (tracePropagation_ != false) {
877  size += com.google.protobuf.CodedOutputStream
878  .computeBoolSize(9, tracePropagation_);
879  }
880  if (traceSearch_ != false) {
881  size += com.google.protobuf.CodedOutputStream
882  .computeBoolSize(10, traceSearch_);
883  }
884  if (printModel_ != false) {
885  size += com.google.protobuf.CodedOutputStream
886  .computeBoolSize(11, printModel_);
887  }
888  if (printModelStats_ != false) {
889  size += com.google.protobuf.CodedOutputStream
890  .computeBoolSize(12, printModelStats_);
891  }
892  if (printAddedConstraints_ != false) {
893  size += com.google.protobuf.CodedOutputStream
894  .computeBoolSize(13, printAddedConstraints_);
895  }
896  if (disableSolve_ != false) {
897  size += com.google.protobuf.CodedOutputStream
898  .computeBoolSize(15, disableSolve_);
899  }
900  if (profileLocalSearch_ != false) {
901  size += com.google.protobuf.CodedOutputStream
902  .computeBoolSize(16, profileLocalSearch_);
903  }
904  if (printLocalSearchProfile_ != false) {
905  size += com.google.protobuf.CodedOutputStream
906  .computeBoolSize(17, printLocalSearchProfile_);
907  }
908  if (useSmallTable_ != false) {
909  size += com.google.protobuf.CodedOutputStream
910  .computeBoolSize(101, useSmallTable_);
911  }
912  if (useCumulativeEdgeFinder_ != false) {
913  size += com.google.protobuf.CodedOutputStream
914  .computeBoolSize(105, useCumulativeEdgeFinder_);
915  }
916  if (useCumulativeTimeTable_ != false) {
917  size += com.google.protobuf.CodedOutputStream
918  .computeBoolSize(106, useCumulativeTimeTable_);
919  }
920  if (useSequenceHighDemandTasks_ != false) {
921  size += com.google.protobuf.CodedOutputStream
922  .computeBoolSize(107, useSequenceHighDemandTasks_);
923  }
924  if (useAllPossibleDisjunctions_ != false) {
925  size += com.google.protobuf.CodedOutputStream
926  .computeBoolSize(108, useAllPossibleDisjunctions_);
927  }
928  if (maxEdgeFinderSize_ != 0) {
929  size += com.google.protobuf.CodedOutputStream
930  .computeInt32Size(109, maxEdgeFinderSize_);
931  }
932  if (diffnUseCumulative_ != false) {
933  size += com.google.protobuf.CodedOutputStream
934  .computeBoolSize(110, diffnUseCumulative_);
935  }
936  if (useElementRmq_ != false) {
937  size += com.google.protobuf.CodedOutputStream
938  .computeBoolSize(111, useElementRmq_);
939  }
940  if (useCumulativeTimeTableSync_ != false) {
941  size += com.google.protobuf.CodedOutputStream
942  .computeBoolSize(112, useCumulativeTimeTableSync_);
943  }
944  if (skipLocallyOptimalPaths_ != false) {
945  size += com.google.protobuf.CodedOutputStream
946  .computeBoolSize(113, skipLocallyOptimalPaths_);
947  }
948  if (checkSolutionPeriod_ != 0) {
949  size += com.google.protobuf.CodedOutputStream
950  .computeInt32Size(114, checkSolutionPeriod_);
951  }
952  size += unknownFields.getSerializedSize();
953  memoizedSize = size;
954  return size;
955  }
956 
957  @java.lang.Override
958  public boolean equals(final java.lang.Object obj) {
959  if (obj == this) {
960  return true;
961  }
963  return super.equals(obj);
964  }
966 
967  if (compressTrail_ != other.compressTrail_) return false;
968  if (getTrailBlockSize()
969  != other.getTrailBlockSize()) return false;
970  if (getArraySplitSize()
971  != other.getArraySplitSize()) return false;
972  if (getStoreNames()
973  != other.getStoreNames()) return false;
975  != other.getNameCastVariables()) return false;
976  if (getNameAllVariables()
977  != other.getNameAllVariables()) return false;
979  != other.getProfilePropagation()) return false;
980  if (!getProfileFile()
981  .equals(other.getProfileFile())) return false;
983  != other.getProfileLocalSearch()) return false;
985  != other.getPrintLocalSearchProfile()) return false;
986  if (getTracePropagation()
987  != other.getTracePropagation()) return false;
988  if (getTraceSearch()
989  != other.getTraceSearch()) return false;
990  if (getPrintModel()
991  != other.getPrintModel()) return false;
992  if (getPrintModelStats()
993  != other.getPrintModelStats()) return false;
995  != other.getPrintAddedConstraints()) return false;
996  if (getDisableSolve()
997  != other.getDisableSolve()) return false;
998  if (getUseSmallTable()
999  != other.getUseSmallTable()) return false;
1001  != other.getUseCumulativeEdgeFinder()) return false;
1003  != other.getUseCumulativeTimeTable()) return false;
1005  != other.getUseCumulativeTimeTableSync()) return false;
1007  != other.getUseSequenceHighDemandTasks()) return false;
1009  != other.getUseAllPossibleDisjunctions()) return false;
1010  if (getMaxEdgeFinderSize()
1011  != other.getMaxEdgeFinderSize()) return false;
1012  if (getDiffnUseCumulative()
1013  != other.getDiffnUseCumulative()) return false;
1014  if (getUseElementRmq()
1015  != other.getUseElementRmq()) return false;
1017  != other.getSkipLocallyOptimalPaths()) return false;
1019  != other.getCheckSolutionPeriod()) return false;
1020  if (!unknownFields.equals(other.unknownFields)) return false;
1021  return true;
1022  }
1023 
1024  @java.lang.Override
1025  public int hashCode() {
1026  if (memoizedHashCode != 0) {
1027  return memoizedHashCode;
1028  }
1029  int hash = 41;
1030  hash = (19 * hash) + getDescriptor().hashCode();
1031  hash = (37 * hash) + COMPRESS_TRAIL_FIELD_NUMBER;
1032  hash = (53 * hash) + compressTrail_;
1033  hash = (37 * hash) + TRAIL_BLOCK_SIZE_FIELD_NUMBER;
1034  hash = (53 * hash) + getTrailBlockSize();
1035  hash = (37 * hash) + ARRAY_SPLIT_SIZE_FIELD_NUMBER;
1036  hash = (53 * hash) + getArraySplitSize();
1037  hash = (37 * hash) + STORE_NAMES_FIELD_NUMBER;
1038  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1039  getStoreNames());
1040  hash = (37 * hash) + NAME_CAST_VARIABLES_FIELD_NUMBER;
1041  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1043  hash = (37 * hash) + NAME_ALL_VARIABLES_FIELD_NUMBER;
1044  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1046  hash = (37 * hash) + PROFILE_PROPAGATION_FIELD_NUMBER;
1047  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1049  hash = (37 * hash) + PROFILE_FILE_FIELD_NUMBER;
1050  hash = (53 * hash) + getProfileFile().hashCode();
1051  hash = (37 * hash) + PROFILE_LOCAL_SEARCH_FIELD_NUMBER;
1052  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1054  hash = (37 * hash) + PRINT_LOCAL_SEARCH_PROFILE_FIELD_NUMBER;
1055  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1057  hash = (37 * hash) + TRACE_PROPAGATION_FIELD_NUMBER;
1058  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1060  hash = (37 * hash) + TRACE_SEARCH_FIELD_NUMBER;
1061  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1062  getTraceSearch());
1063  hash = (37 * hash) + PRINT_MODEL_FIELD_NUMBER;
1064  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1065  getPrintModel());
1066  hash = (37 * hash) + PRINT_MODEL_STATS_FIELD_NUMBER;
1067  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1068  getPrintModelStats());
1069  hash = (37 * hash) + PRINT_ADDED_CONSTRAINTS_FIELD_NUMBER;
1070  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1072  hash = (37 * hash) + DISABLE_SOLVE_FIELD_NUMBER;
1073  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1074  getDisableSolve());
1075  hash = (37 * hash) + USE_SMALL_TABLE_FIELD_NUMBER;
1076  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1077  getUseSmallTable());
1078  hash = (37 * hash) + USE_CUMULATIVE_EDGE_FINDER_FIELD_NUMBER;
1079  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1081  hash = (37 * hash) + USE_CUMULATIVE_TIME_TABLE_FIELD_NUMBER;
1082  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1084  hash = (37 * hash) + USE_CUMULATIVE_TIME_TABLE_SYNC_FIELD_NUMBER;
1085  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1087  hash = (37 * hash) + USE_SEQUENCE_HIGH_DEMAND_TASKS_FIELD_NUMBER;
1088  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1090  hash = (37 * hash) + USE_ALL_POSSIBLE_DISJUNCTIONS_FIELD_NUMBER;
1091  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1093  hash = (37 * hash) + MAX_EDGE_FINDER_SIZE_FIELD_NUMBER;
1094  hash = (53 * hash) + getMaxEdgeFinderSize();
1095  hash = (37 * hash) + DIFFN_USE_CUMULATIVE_FIELD_NUMBER;
1096  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1098  hash = (37 * hash) + USE_ELEMENT_RMQ_FIELD_NUMBER;
1099  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1100  getUseElementRmq());
1101  hash = (37 * hash) + SKIP_LOCALLY_OPTIMAL_PATHS_FIELD_NUMBER;
1102  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1104  hash = (37 * hash) + CHECK_SOLUTION_PERIOD_FIELD_NUMBER;
1105  hash = (53 * hash) + getCheckSolutionPeriod();
1106  hash = (29 * hash) + unknownFields.hashCode();
1107  memoizedHashCode = hash;
1108  return hash;
1109  }
1110 
1112  java.nio.ByteBuffer data)
1113  throws com.google.protobuf.InvalidProtocolBufferException {
1114  return PARSER.parseFrom(data);
1115  }
1117  java.nio.ByteBuffer data,
1118  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1119  throws com.google.protobuf.InvalidProtocolBufferException {
1120  return PARSER.parseFrom(data, extensionRegistry);
1121  }
1123  com.google.protobuf.ByteString data)
1124  throws com.google.protobuf.InvalidProtocolBufferException {
1125  return PARSER.parseFrom(data);
1126  }
1128  com.google.protobuf.ByteString data,
1129  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1130  throws com.google.protobuf.InvalidProtocolBufferException {
1131  return PARSER.parseFrom(data, extensionRegistry);
1132  }
1134  throws com.google.protobuf.InvalidProtocolBufferException {
1135  return PARSER.parseFrom(data);
1136  }
1138  byte[] data,
1139  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1140  throws com.google.protobuf.InvalidProtocolBufferException {
1141  return PARSER.parseFrom(data, extensionRegistry);
1142  }
1143  public static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(java.io.InputStream input)
1144  throws java.io.IOException {
1145  return com.google.protobuf.GeneratedMessageV3
1146  .parseWithIOException(PARSER, input);
1147  }
1149  java.io.InputStream input,
1150  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1151  throws java.io.IOException {
1152  return com.google.protobuf.GeneratedMessageV3
1153  .parseWithIOException(PARSER, input, extensionRegistry);
1154  }
1156  throws java.io.IOException {
1157  return com.google.protobuf.GeneratedMessageV3
1158  .parseDelimitedWithIOException(PARSER, input);
1159  }
1161  java.io.InputStream input,
1162  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1163  throws java.io.IOException {
1164  return com.google.protobuf.GeneratedMessageV3
1165  .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
1166  }
1168  com.google.protobuf.CodedInputStream input)
1169  throws java.io.IOException {
1170  return com.google.protobuf.GeneratedMessageV3
1171  .parseWithIOException(PARSER, input);
1172  }
1174  com.google.protobuf.CodedInputStream input,
1175  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1176  throws java.io.IOException {
1177  return com.google.protobuf.GeneratedMessageV3
1178  .parseWithIOException(PARSER, input, extensionRegistry);
1179  }
1180 
1181  @java.lang.Override
1182  public Builder newBuilderForType() { return newBuilder(); }
1183  public static Builder newBuilder() {
1184  return DEFAULT_INSTANCE.toBuilder();
1185  }
1187  return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1188  }
1189  @java.lang.Override
1190  public Builder toBuilder() {
1191  return this == DEFAULT_INSTANCE
1192  ? new Builder() : new Builder().mergeFrom(this);
1193  }
1194 
1195  @java.lang.Override
1197  com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1198  Builder builder = new Builder(parent);
1199  return builder;
1200  }
1208  public static final class Builder extends
1209  com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
1210  // @@protoc_insertion_point(builder_implements:operations_research.ConstraintSolverParameters)
1211  com.google.ortools.constraintsolver.ConstraintSolverParametersOrBuilder {
1212  public static final com.google.protobuf.Descriptors.Descriptor
1214  return com.google.ortools.constraintsolver.SolverParameters.internal_static_operations_research_ConstraintSolverParameters_descriptor;
1215  }
1216 
1217  @java.lang.Override
1218  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
1220  return com.google.ortools.constraintsolver.SolverParameters.internal_static_operations_research_ConstraintSolverParameters_fieldAccessorTable
1221  .ensureFieldAccessorsInitialized(
1223  }
1224 
1225  // Construct using com.google.ortools.constraintsolver.ConstraintSolverParameters.newBuilder()
1226  private Builder() {
1227  maybeForceBuilderInitialization();
1228  }
1229 
1230  private Builder(
1231  com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1232  super(parent);
1233  maybeForceBuilderInitialization();
1234  }
1235  private void maybeForceBuilderInitialization() {
1236  if (com.google.protobuf.GeneratedMessageV3
1237  .alwaysUseFieldBuilders) {
1238  }
1239  }
1240  @java.lang.Override
1241  public Builder clear() {
1242  super.clear();
1243  compressTrail_ = 0;
1244 
1245  trailBlockSize_ = 0;
1246 
1247  arraySplitSize_ = 0;
1248 
1249  storeNames_ = false;
1250 
1251  nameCastVariables_ = false;
1252 
1253  nameAllVariables_ = false;
1254 
1255  profilePropagation_ = false;
1256 
1257  profileFile_ = "";
1258 
1259  profileLocalSearch_ = false;
1260 
1261  printLocalSearchProfile_ = false;
1262 
1263  tracePropagation_ = false;
1264 
1265  traceSearch_ = false;
1266 
1267  printModel_ = false;
1268 
1269  printModelStats_ = false;
1270 
1271  printAddedConstraints_ = false;
1272 
1273  disableSolve_ = false;
1274 
1275  useSmallTable_ = false;
1276 
1277  useCumulativeEdgeFinder_ = false;
1278 
1279  useCumulativeTimeTable_ = false;
1280 
1281  useCumulativeTimeTableSync_ = false;
1282 
1283  useSequenceHighDemandTasks_ = false;
1284 
1285  useAllPossibleDisjunctions_ = false;
1286 
1287  maxEdgeFinderSize_ = 0;
1288 
1289  diffnUseCumulative_ = false;
1290 
1291  useElementRmq_ = false;
1292 
1293  skipLocallyOptimalPaths_ = false;
1294 
1295  checkSolutionPeriod_ = 0;
1296 
1297  return this;
1298  }
1299 
1300  @java.lang.Override
1301  public com.google.protobuf.Descriptors.Descriptor
1303  return com.google.ortools.constraintsolver.SolverParameters.internal_static_operations_research_ConstraintSolverParameters_descriptor;
1304  }
1305 
1306  @java.lang.Override
1309  }
1310 
1311  @java.lang.Override
1314  if (!result.isInitialized()) {
1315  throw newUninitializedMessageException(result);
1316  }
1317  return result;
1318  }
1319 
1320  @java.lang.Override
1323  result.compressTrail_ = compressTrail_;
1324  result.trailBlockSize_ = trailBlockSize_;
1325  result.arraySplitSize_ = arraySplitSize_;
1326  result.storeNames_ = storeNames_;
1327  result.nameCastVariables_ = nameCastVariables_;
1328  result.nameAllVariables_ = nameAllVariables_;
1329  result.profilePropagation_ = profilePropagation_;
1330  result.profileFile_ = profileFile_;
1331  result.profileLocalSearch_ = profileLocalSearch_;
1332  result.printLocalSearchProfile_ = printLocalSearchProfile_;
1333  result.tracePropagation_ = tracePropagation_;
1334  result.traceSearch_ = traceSearch_;
1335  result.printModel_ = printModel_;
1336  result.printModelStats_ = printModelStats_;
1337  result.printAddedConstraints_ = printAddedConstraints_;
1338  result.disableSolve_ = disableSolve_;
1339  result.useSmallTable_ = useSmallTable_;
1340  result.useCumulativeEdgeFinder_ = useCumulativeEdgeFinder_;
1341  result.useCumulativeTimeTable_ = useCumulativeTimeTable_;
1342  result.useCumulativeTimeTableSync_ = useCumulativeTimeTableSync_;
1343  result.useSequenceHighDemandTasks_ = useSequenceHighDemandTasks_;
1344  result.useAllPossibleDisjunctions_ = useAllPossibleDisjunctions_;
1345  result.maxEdgeFinderSize_ = maxEdgeFinderSize_;
1346  result.diffnUseCumulative_ = diffnUseCumulative_;
1347  result.useElementRmq_ = useElementRmq_;
1348  result.skipLocallyOptimalPaths_ = skipLocallyOptimalPaths_;
1349  result.checkSolutionPeriod_ = checkSolutionPeriod_;
1350  onBuilt();
1351  return result;
1352  }
1353 
1354  @java.lang.Override
1355  public Builder clone() {
1356  return super.clone();
1357  }
1358  @java.lang.Override
1360  com.google.protobuf.Descriptors.FieldDescriptor field,
1361  java.lang.Object value) {
1362  return super.setField(field, value);
1363  }
1364  @java.lang.Override
1366  com.google.protobuf.Descriptors.FieldDescriptor field) {
1367  return super.clearField(field);
1368  }
1369  @java.lang.Override
1371  com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1372  return super.clearOneof(oneof);
1373  }
1374  @java.lang.Override
1376  com.google.protobuf.Descriptors.FieldDescriptor field,
1377  int index, java.lang.Object value) {
1378  return super.setRepeatedField(field, index, value);
1379  }
1380  @java.lang.Override
1382  com.google.protobuf.Descriptors.FieldDescriptor field,
1383  java.lang.Object value) {
1384  return super.addRepeatedField(field, value);
1385  }
1386  @java.lang.Override
1387  public Builder mergeFrom(com.google.protobuf.Message other) {
1390  } else {
1391  super.mergeFrom(other);
1392  return this;
1393  }
1394  }
1395 
1398  if (other.compressTrail_ != 0) {
1399  setCompressTrailValue(other.getCompressTrailValue());
1400  }
1401  if (other.getTrailBlockSize() != 0) {
1402  setTrailBlockSize(other.getTrailBlockSize());
1403  }
1404  if (other.getArraySplitSize() != 0) {
1405  setArraySplitSize(other.getArraySplitSize());
1406  }
1407  if (other.getStoreNames() != false) {
1408  setStoreNames(other.getStoreNames());
1409  }
1410  if (other.getNameCastVariables() != false) {
1411  setNameCastVariables(other.getNameCastVariables());
1412  }
1413  if (other.getNameAllVariables() != false) {
1414  setNameAllVariables(other.getNameAllVariables());
1415  }
1416  if (other.getProfilePropagation() != false) {
1417  setProfilePropagation(other.getProfilePropagation());
1418  }
1419  if (!other.getProfileFile().isEmpty()) {
1420  profileFile_ = other.profileFile_;
1421  onChanged();
1422  }
1423  if (other.getProfileLocalSearch() != false) {
1424  setProfileLocalSearch(other.getProfileLocalSearch());
1425  }
1426  if (other.getPrintLocalSearchProfile() != false) {
1427  setPrintLocalSearchProfile(other.getPrintLocalSearchProfile());
1428  }
1429  if (other.getTracePropagation() != false) {
1430  setTracePropagation(other.getTracePropagation());
1431  }
1432  if (other.getTraceSearch() != false) {
1433  setTraceSearch(other.getTraceSearch());
1434  }
1435  if (other.getPrintModel() != false) {
1436  setPrintModel(other.getPrintModel());
1437  }
1438  if (other.getPrintModelStats() != false) {
1439  setPrintModelStats(other.getPrintModelStats());
1440  }
1441  if (other.getPrintAddedConstraints() != false) {
1442  setPrintAddedConstraints(other.getPrintAddedConstraints());
1443  }
1444  if (other.getDisableSolve() != false) {
1445  setDisableSolve(other.getDisableSolve());
1446  }
1447  if (other.getUseSmallTable() != false) {
1448  setUseSmallTable(other.getUseSmallTable());
1449  }
1450  if (other.getUseCumulativeEdgeFinder() != false) {
1451  setUseCumulativeEdgeFinder(other.getUseCumulativeEdgeFinder());
1452  }
1453  if (other.getUseCumulativeTimeTable() != false) {
1454  setUseCumulativeTimeTable(other.getUseCumulativeTimeTable());
1455  }
1456  if (other.getUseCumulativeTimeTableSync() != false) {
1457  setUseCumulativeTimeTableSync(other.getUseCumulativeTimeTableSync());
1458  }
1459  if (other.getUseSequenceHighDemandTasks() != false) {
1460  setUseSequenceHighDemandTasks(other.getUseSequenceHighDemandTasks());
1461  }
1462  if (other.getUseAllPossibleDisjunctions() != false) {
1463  setUseAllPossibleDisjunctions(other.getUseAllPossibleDisjunctions());
1464  }
1465  if (other.getMaxEdgeFinderSize() != 0) {
1466  setMaxEdgeFinderSize(other.getMaxEdgeFinderSize());
1467  }
1468  if (other.getDiffnUseCumulative() != false) {
1469  setDiffnUseCumulative(other.getDiffnUseCumulative());
1470  }
1471  if (other.getUseElementRmq() != false) {
1472  setUseElementRmq(other.getUseElementRmq());
1473  }
1474  if (other.getSkipLocallyOptimalPaths() != false) {
1475  setSkipLocallyOptimalPaths(other.getSkipLocallyOptimalPaths());
1476  }
1477  if (other.getCheckSolutionPeriod() != 0) {
1478  setCheckSolutionPeriod(other.getCheckSolutionPeriod());
1479  }
1480  this.mergeUnknownFields(other.unknownFields);
1481  onChanged();
1482  return this;
1483  }
1484 
1485  @java.lang.Override
1486  public final boolean isInitialized() {
1487  return true;
1488  }
1489 
1490  @java.lang.Override
1492  com.google.protobuf.CodedInputStream input,
1493  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1494  throws java.io.IOException {
1496  try {
1497  parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
1498  } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1499  parsedMessage = (com.google.ortools.constraintsolver.ConstraintSolverParameters) e.getUnfinishedMessage();
1500  throw e.unwrapIOException();
1501  } finally {
1502  if (parsedMessage != null) {
1503  mergeFrom(parsedMessage);
1504  }
1505  }
1506  return this;
1507  }
1508 
1509  private int compressTrail_ = 0;
1520  public int getCompressTrailValue() {
1521  return compressTrail_;
1522  }
1534  public Builder setCompressTrailValue(int value) {
1535  compressTrail_ = value;
1536  onChanged();
1537  return this;
1538  }
1550  @SuppressWarnings("deprecation")
1553  }
1566  if (value == null) {
1567  throw new NullPointerException();
1568  }
1569 
1570  compressTrail_ = value.getNumber();
1571  onChanged();
1572  return this;
1573  }
1585 
1586  compressTrail_ = 0;
1587  onChanged();
1588  return this;
1589  }
1590 
1591  private int trailBlockSize_ ;
1601  public int getTrailBlockSize() {
1602  return trailBlockSize_;
1603  }
1614  public Builder setTrailBlockSize(int value) {
1615 
1616  trailBlockSize_ = value;
1617  onChanged();
1618  return this;
1619  }
1630 
1631  trailBlockSize_ = 0;
1632  onChanged();
1633  return this;
1634  }
1635 
1636  private int arraySplitSize_ ;
1646  public int getArraySplitSize() {
1647  return arraySplitSize_;
1648  }
1659  public Builder setArraySplitSize(int value) {
1660 
1661  arraySplitSize_ = value;
1662  onChanged();
1663  return this;
1664  }
1675 
1676  arraySplitSize_ = 0;
1677  onChanged();
1678  return this;
1679  }
1680 
1681  private boolean storeNames_ ;
1691  public boolean getStoreNames() {
1692  return storeNames_;
1693  }
1704  public Builder setStoreNames(boolean value) {
1705 
1706  storeNames_ = value;
1707  onChanged();
1708  return this;
1709  }
1720 
1721  storeNames_ = false;
1722  onChanged();
1723  return this;
1724  }
1725 
1726  private boolean nameCastVariables_ ;
1735  public boolean getNameCastVariables() {
1736  return nameCastVariables_;
1737  }
1747  public Builder setNameCastVariables(boolean value) {
1748 
1749  nameCastVariables_ = value;
1750  onChanged();
1751  return this;
1752  }
1762 
1763  nameCastVariables_ = false;
1764  onChanged();
1765  return this;
1766  }
1767 
1768  private boolean nameAllVariables_ ;
1777  public boolean getNameAllVariables() {
1778  return nameAllVariables_;
1779  }
1789  public Builder setNameAllVariables(boolean value) {
1790 
1791  nameAllVariables_ = value;
1792  onChanged();
1793  return this;
1794  }
1804 
1805  nameAllVariables_ = false;
1806  onChanged();
1807  return this;
1808  }
1809 
1810  private boolean profilePropagation_ ;
1819  public boolean getProfilePropagation() {
1820  return profilePropagation_;
1821  }
1831  public Builder setProfilePropagation(boolean value) {
1832 
1833  profilePropagation_ = value;
1834  onChanged();
1835  return this;
1836  }
1846 
1847  profilePropagation_ = false;
1848  onChanged();
1849  return this;
1850  }
1851 
1852  private java.lang.Object profileFile_ = "";
1861  public java.lang.String getProfileFile() {
1862  java.lang.Object ref = profileFile_;
1863  if (!(ref instanceof java.lang.String)) {
1864  com.google.protobuf.ByteString bs =
1865  (com.google.protobuf.ByteString) ref;
1866  java.lang.String s = bs.toStringUtf8();
1867  profileFile_ = s;
1868  return s;
1869  } else {
1870  return (java.lang.String) ref;
1871  }
1872  }
1881  public com.google.protobuf.ByteString
1883  java.lang.Object ref = profileFile_;
1884  if (ref instanceof String) {
1885  com.google.protobuf.ByteString b =
1886  com.google.protobuf.ByteString.copyFromUtf8(
1887  (java.lang.String) ref);
1888  profileFile_ = b;
1889  return b;
1890  } else {
1891  return (com.google.protobuf.ByteString) ref;
1892  }
1893  }
1904  java.lang.String value) {
1905  if (value == null) {
1906  throw new NullPointerException();
1907  }
1908 
1909  profileFile_ = value;
1910  onChanged();
1911  return this;
1912  }
1922 
1923  profileFile_ = getDefaultInstance().getProfileFile();
1924  onChanged();
1925  return this;
1926  }
1937  com.google.protobuf.ByteString value) {
1938  if (value == null) {
1939  throw new NullPointerException();
1940  }
1941  checkByteStringIsUtf8(value);
1942 
1943  profileFile_ = value;
1944  onChanged();
1945  return this;
1946  }
1947 
1948  private boolean profileLocalSearch_ ;
1957  public boolean getProfileLocalSearch() {
1958  return profileLocalSearch_;
1959  }
1969  public Builder setProfileLocalSearch(boolean value) {
1970 
1971  profileLocalSearch_ = value;
1972  onChanged();
1973  return this;
1974  }
1984 
1985  profileLocalSearch_ = false;
1986  onChanged();
1987  return this;
1988  }
1989 
1990  private boolean printLocalSearchProfile_ ;
1999  public boolean getPrintLocalSearchProfile() {
2000  return printLocalSearchProfile_;
2001  }
2011  public Builder setPrintLocalSearchProfile(boolean value) {
2012 
2013  printLocalSearchProfile_ = value;
2014  onChanged();
2015  return this;
2016  }
2026 
2027  printLocalSearchProfile_ = false;
2028  onChanged();
2029  return this;
2030  }
2031 
2032  private boolean tracePropagation_ ;
2041  public boolean getTracePropagation() {
2042  return tracePropagation_;
2043  }
2053  public Builder setTracePropagation(boolean value) {
2054 
2055  tracePropagation_ = value;
2056  onChanged();
2057  return this;
2058  }
2068 
2069  tracePropagation_ = false;
2070  onChanged();
2071  return this;
2072  }
2073 
2074  private boolean traceSearch_ ;
2083  public boolean getTraceSearch() {
2084  return traceSearch_;
2085  }
2095  public Builder setTraceSearch(boolean value) {
2096 
2097  traceSearch_ = value;
2098  onChanged();
2099  return this;
2100  }
2110 
2111  traceSearch_ = false;
2112  onChanged();
2113  return this;
2114  }
2115 
2116  private boolean printModel_ ;
2125  public boolean getPrintModel() {
2126  return printModel_;
2127  }
2137  public Builder setPrintModel(boolean value) {
2138 
2139  printModel_ = value;
2140  onChanged();
2141  return this;
2142  }
2152 
2153  printModel_ = false;
2154  onChanged();
2155  return this;
2156  }
2157 
2158  private boolean printModelStats_ ;
2167  public boolean getPrintModelStats() {
2168  return printModelStats_;
2169  }
2179  public Builder setPrintModelStats(boolean value) {
2180 
2181  printModelStats_ = value;
2182  onChanged();
2183  return this;
2184  }
2194 
2195  printModelStats_ = false;
2196  onChanged();
2197  return this;
2198  }
2199 
2200  private boolean printAddedConstraints_ ;
2209  public boolean getPrintAddedConstraints() {
2210  return printAddedConstraints_;
2211  }
2221  public Builder setPrintAddedConstraints(boolean value) {
2222 
2223  printAddedConstraints_ = value;
2224  onChanged();
2225  return this;
2226  }
2236 
2237  printAddedConstraints_ = false;
2238  onChanged();
2239  return this;
2240  }
2241 
2242  private boolean disableSolve_ ;
2247  public boolean getDisableSolve() {
2248  return disableSolve_;
2249  }
2255  public Builder setDisableSolve(boolean value) {
2256 
2257  disableSolve_ = value;
2258  onChanged();
2259  return this;
2260  }
2266 
2267  disableSolve_ = false;
2268  onChanged();
2269  return this;
2270  }
2271 
2272  private boolean useSmallTable_ ;
2281  public boolean getUseSmallTable() {
2282  return useSmallTable_;
2283  }
2293  public Builder setUseSmallTable(boolean value) {
2294 
2295  useSmallTable_ = value;
2296  onChanged();
2297  return this;
2298  }
2308 
2309  useSmallTable_ = false;
2310  onChanged();
2311  return this;
2312  }
2313 
2314  private boolean useCumulativeEdgeFinder_ ;
2323  public boolean getUseCumulativeEdgeFinder() {
2324  return useCumulativeEdgeFinder_;
2325  }
2335  public Builder setUseCumulativeEdgeFinder(boolean value) {
2336 
2337  useCumulativeEdgeFinder_ = value;
2338  onChanged();
2339  return this;
2340  }
2350 
2351  useCumulativeEdgeFinder_ = false;
2352  onChanged();
2353  return this;
2354  }
2355 
2356  private boolean useCumulativeTimeTable_ ;
2361  public boolean getUseCumulativeTimeTable() {
2362  return useCumulativeTimeTable_;
2363  }
2369  public Builder setUseCumulativeTimeTable(boolean value) {
2370 
2371  useCumulativeTimeTable_ = value;
2372  onChanged();
2373  return this;
2374  }
2380 
2381  useCumulativeTimeTable_ = false;
2382  onChanged();
2383  return this;
2384  }
2385 
2386  private boolean useCumulativeTimeTableSync_ ;
2392  return useCumulativeTimeTableSync_;
2393  }
2399  public Builder setUseCumulativeTimeTableSync(boolean value) {
2400 
2401  useCumulativeTimeTableSync_ = value;
2402  onChanged();
2403  return this;
2404  }
2410 
2411  useCumulativeTimeTableSync_ = false;
2412  onChanged();
2413  return this;
2414  }
2415 
2416  private boolean useSequenceHighDemandTasks_ ;
2422  return useSequenceHighDemandTasks_;
2423  }
2429  public Builder setUseSequenceHighDemandTasks(boolean value) {
2430 
2431  useSequenceHighDemandTasks_ = value;
2432  onChanged();
2433  return this;
2434  }
2440 
2441  useSequenceHighDemandTasks_ = false;
2442  onChanged();
2443  return this;
2444  }
2445 
2446  private boolean useAllPossibleDisjunctions_ ;
2452  return useAllPossibleDisjunctions_;
2453  }
2459  public Builder setUseAllPossibleDisjunctions(boolean value) {
2460 
2461  useAllPossibleDisjunctions_ = value;
2462  onChanged();
2463  return this;
2464  }
2470 
2471  useAllPossibleDisjunctions_ = false;
2472  onChanged();
2473  return this;
2474  }
2475 
2476  private int maxEdgeFinderSize_ ;
2481  public int getMaxEdgeFinderSize() {
2482  return maxEdgeFinderSize_;
2483  }
2489  public Builder setMaxEdgeFinderSize(int value) {
2490 
2491  maxEdgeFinderSize_ = value;
2492  onChanged();
2493  return this;
2494  }
2500 
2501  maxEdgeFinderSize_ = 0;
2502  onChanged();
2503  return this;
2504  }
2505 
2506  private boolean diffnUseCumulative_ ;
2515  public boolean getDiffnUseCumulative() {
2516  return diffnUseCumulative_;
2517  }
2527  public Builder setDiffnUseCumulative(boolean value) {
2528 
2529  diffnUseCumulative_ = value;
2530  onChanged();
2531  return this;
2532  }
2542 
2543  diffnUseCumulative_ = false;
2544  onChanged();
2545  return this;
2546  }
2547 
2548  private boolean useElementRmq_ ;
2557  public boolean getUseElementRmq() {
2558  return useElementRmq_;
2559  }
2569  public Builder setUseElementRmq(boolean value) {
2570 
2571  useElementRmq_ = value;
2572  onChanged();
2573  return this;
2574  }
2584 
2585  useElementRmq_ = false;
2586  onChanged();
2587  return this;
2588  }
2589 
2590  private boolean skipLocallyOptimalPaths_ ;
2602  public boolean getSkipLocallyOptimalPaths() {
2603  return skipLocallyOptimalPaths_;
2604  }
2617  public Builder setSkipLocallyOptimalPaths(boolean value) {
2618 
2619  skipLocallyOptimalPaths_ = value;
2620  onChanged();
2621  return this;
2622  }
2635 
2636  skipLocallyOptimalPaths_ = false;
2637  onChanged();
2638  return this;
2639  }
2640 
2641  private int checkSolutionPeriod_ ;
2650  public int getCheckSolutionPeriod() {
2651  return checkSolutionPeriod_;
2652  }
2662  public Builder setCheckSolutionPeriod(int value) {
2663 
2664  checkSolutionPeriod_ = value;
2665  onChanged();
2666  return this;
2667  }
2677 
2678  checkSolutionPeriod_ = 0;
2679  onChanged();
2680  return this;
2681  }
2682  @java.lang.Override
2684  final com.google.protobuf.UnknownFieldSet unknownFields) {
2685  return super.setUnknownFields(unknownFields);
2686  }
2687 
2688  @java.lang.Override
2690  final com.google.protobuf.UnknownFieldSet unknownFields) {
2691  return super.mergeUnknownFields(unknownFields);
2692  }
2693 
2694 
2695  // @@protoc_insertion_point(builder_scope:operations_research.ConstraintSolverParameters)
2696  }
2697 
2698  // @@protoc_insertion_point(class_scope:operations_research.ConstraintSolverParameters)
2699  private static final com.google.ortools.constraintsolver.ConstraintSolverParameters DEFAULT_INSTANCE;
2700  static {
2702  }
2703 
2705  return DEFAULT_INSTANCE;
2706  }
2707 
2708  private static final com.google.protobuf.Parser<ConstraintSolverParameters>
2709  PARSER = new com.google.protobuf.AbstractParser<ConstraintSolverParameters>() {
2710  @java.lang.Override
2711  public ConstraintSolverParameters parsePartialFrom(
2712  com.google.protobuf.CodedInputStream input,
2713  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2714  throws com.google.protobuf.InvalidProtocolBufferException {
2715  return new ConstraintSolverParameters(input, extensionRegistry);
2716  }
2717  };
2718 
2719  public static com.google.protobuf.Parser<ConstraintSolverParameters> parser() {
2720  return PARSER;
2721  }
2722 
2723  @java.lang.Override
2725  return PARSER;
2726  }
2727 
2728  @java.lang.Override
2730  return DEFAULT_INSTANCE;
2731  }
2732 
2733 }
2734 
.lang.Override Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
static final int USE_ALL_POSSIBLE_DISJUNCTIONS_FIELD_NUMBER
Builder clearTracePropagation()
Builder setCompressTrailValue(int value)
Builder setCompressTrail(com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression value)
com.google.protobuf.ByteString getProfileFileBytes()
static final int DISABLE_SOLVE_FIELD_NUMBER
.lang.Override Builder newBuilderForType()
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(java.nio.ByteBuffer data)
.lang.Override com.google.ortools.constraintsolver.ConstraintSolverParameters buildPartial()
Builder setUseCumulativeTimeTableSync(boolean value)
bool use_cumulative_time_table_sync = 112;
int getCheckSolutionPeriod()
Builder clearSkipLocallyOptimalPaths()
Builder clearDiffnUseCumulative()
Builder setUseAllPossibleDisjunctions(boolean value)
bool use_all_possible_disjunctions = 108;
Builder clearDisableSolve()
bool disable_solve = 15;
boolean getNameCastVariables()
java.lang.String getProfileFile()
NO_COMPRESSION
NO_COMPRESSION = 0;
boolean getPrintLocalSearchProfile()
Builder setPrintLocalSearchProfile(boolean value)
Builder clearUseElementRmq()
boolean getProfileLocalSearch()
boolean getNameAllVariables()
.lang.Override com.google.ortools.constraintsolver.ConstraintSolverParameters getDefaultInstanceForType()
Builder clearArraySplitSize()
com.google.protobuf.ByteString getProfileFileBytes()
Builder clearProfilePropagation()
static final int PRINT_LOCAL_SEARCH_PROFILE_FIELD_NUMBER
int getTrailBlockSize()
Builder setTraceSearch(boolean value)
boolean getTracePropagation()
int getArraySplitSize()
COMPRESS_WITH_ZLIB
COMPRESS_WITH_ZLIB = 1;
Builder clearTrailBlockSize()
boolean getPrintModelStats()
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Builder clearUseCumulativeTimeTableSync()
bool use_cumulative_time_table_sync = 112;
boolean getUseSequenceHighDemandTasks()
bool use_sequence_high_demand_tasks = 107;
boolean getDisableSolve()
bool disable_solve = 15;
static final int TRACE_PROPAGATION_FIELD_NUMBER
UNRECOGNIZED
.lang.Override java.lang.Object newInstance(UnusedPrivateParameter unused)
static final int COMPRESS_TRAIL_FIELD_NUMBER
boolean getSkipLocallyOptimalPaths()
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(java.io.InputStream input)
.lang.Override final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
boolean getUseAllPossibleDisjunctions()
bool use_all_possible_disjunctions = 108;
final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
static TrailCompression forNumber(int value)
.lang.Override Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
.lang.Override final com.google.protobuf.UnknownFieldSet getUnknownFields()
Builder setDiffnUseCumulative(boolean value)
boolean getPrintLocalSearchProfile()
Builder setMaxEdgeFinderSize(int value)
int32 max_edge_finder_size = 109;
Builder clearNameAllVariables()
static final int PRINT_MODEL_STATS_FIELD_NUMBER
boolean getUseCumulativeTimeTable()
bool use_cumulative_time_table = 106;
static Builder newBuilder()
Builder clearStoreNames()
.lang.Override final boolean isInitialized()
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
int getMaxEdgeFinderSize()
int32 max_edge_finder_size = 109;
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(com.google.protobuf.ByteString data)
static final int PRINT_ADDED_CONSTRAINTS_FIELD_NUMBER
Builder clearNameCastVariables()
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(byte[] data)
boolean getPrintAddedConstraints()
boolean getNameCastVariables()
Builder setUseCumulativeEdgeFinder(boolean value)
static final int SKIP_LOCALLY_OPTIMAL_PATHS_FIELD_NUMBER
Builder setUseSequenceHighDemandTasks(boolean value)
bool use_sequence_high_demand_tasks = 107;
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
boolean getTraceSearch()
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
boolean getTracePropagation()
Builder setNameAllVariables(boolean value)
static final int USE_CUMULATIVE_EDGE_FINDER_FIELD_NUMBER
boolean getProfileLocalSearch()
Builder clearUseCumulativeEdgeFinder()
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
Builder setProfilePropagation(boolean value)
static final int NAME_CAST_VARIABLES_FIELD_NUMBER
.lang.Override int getSerializedSize()
static final int CHECK_SOLUTION_PERIOD_FIELD_NUMBER
boolean getProfilePropagation()
Builder setPrintModelStats(boolean value)
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseDelimitedFrom(java.io.InputStream input)
boolean getStoreNames()
static TrailCompression valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
.lang.Override Builder clone()
Builder setTracePropagation(boolean value)
.lang.Override com.google.ortools.constraintsolver.ConstraintSolverParameters getDefaultInstanceForType()
.lang.Override com.google.protobuf.Parser< ConstraintSolverParameters > getParserForType()
static com.google.protobuf.Internal.EnumLiteMap< TrailCompression > internalGetValueMap()
static final int ARRAY_SPLIT_SIZE_FIELD_NUMBER
boolean getPrintModel()
java.lang.String getProfileFile()
Builder setUseElementRmq(boolean value)
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
boolean getUseElementRmq()
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
boolean getUseCumulativeTimeTableSync()
bool use_cumulative_time_table_sync = 112;
static com.google.protobuf.Parser< ConstraintSolverParameters > parser()
boolean getStoreNames()
static final int PROFILE_LOCAL_SEARCH_FIELD_NUMBER
static final int DIFFN_USE_CUMULATIVE_FIELD_NUMBER
Builder clearPrintModel()
boolean getUseElementRmq()
static final int MAX_EDGE_FINDER_SIZE_FIELD_NUMBER
Builder setSkipLocallyOptimalPaths(boolean value)
static final int TRAIL_BLOCK_SIZE_FIELD_NUMBER
boolean getUseSequenceHighDemandTasks()
bool use_sequence_high_demand_tasks = 107;
boolean getDiffnUseCumulative()
.lang.Override final boolean isInitialized()
Builder setDisableSolve(boolean value)
bool disable_solve = 15;
static com.google.ortools.constraintsolver.ConstraintSolverParameters getDefaultInstance()
static final int USE_SMALL_TABLE_FIELD_NUMBER
int getCompressTrailValue()
Builder setProfileLocalSearch(boolean value)
static Builder newBuilder(com.google.ortools.constraintsolver.ConstraintSolverParameters prototype)
static final int PRINT_MODEL_FIELD_NUMBER
boolean getUseAllPossibleDisjunctions()
bool use_all_possible_disjunctions = 108;
static final int USE_CUMULATIVE_TIME_TABLE_SYNC_FIELD_NUMBER
static final int USE_SEQUENCE_HIGH_DEMAND_TASKS_FIELD_NUMBER
static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
Builder setUseCumulativeTimeTable(boolean value)
bool use_cumulative_time_table = 106;
int getMaxEdgeFinderSize()
int32 max_edge_finder_size = 109;
.lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
.lang.Override int hashCode()
static final int STORE_NAMES_FIELD_NUMBER
Builder clearMaxEdgeFinderSize()
int32 max_edge_finder_size = 109;
boolean getPrintAddedConstraints()
boolean getUseSmallTable()
Builder clearProfileFile()
Builder setTrailBlockSize(int value)
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(com.google.protobuf.CodedInputStream input)
Builder setUseSmallTable(boolean value)
.lang.Override void writeTo(com.google.protobuf.CodedOutputStream output)
boolean getNameAllVariables()
Builder setNameCastVariables(boolean value)
Builder clearCompressTrail()
boolean getUseSmallTable()
final int getNumber()
Builder setPrintAddedConstraints(boolean value)
Builder setProfileFileBytes(com.google.protobuf.ByteString value)
boolean getUseCumulativeEdgeFinder()
.lang.Override final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
static final int PROFILE_PROPAGATION_FIELD_NUMBER
boolean getPrintModel()
int getCheckSolutionPeriod()
boolean getUseCumulativeTimeTable()
bool use_cumulative_time_table = 106;
Builder clearUseSequenceHighDemandTasks()
bool use_sequence_high_demand_tasks = 107;
static final int PROFILE_FILE_FIELD_NUMBER
.lang.Override Builder clear()
.lang.Deprecated static TrailCompression valueOf(int value)
Builder clearPrintModelStats()
static final int USE_ELEMENT_RMQ_FIELD_NUMBER
.lang.Override boolean equals(final java.lang.Object obj)
Builder clearUseAllPossibleDisjunctions()
bool use_all_possible_disjunctions = 108;
.lang.Override Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Builder setStoreNames(boolean value)
Builder setPrintModel(boolean value)
boolean getTraceSearch()
final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
boolean getSkipLocallyOptimalPaths()
Builder clearUseSmallTable()
static final int NAME_ALL_VARIABLES_FIELD_NUMBER
int getArraySplitSize()
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, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
int getCompressTrailValue()
int getTrailBlockSize()
Builder clearUseCumulativeTimeTable()
bool use_cumulative_time_table = 106;
Builder setCheckSolutionPeriod(int value)
boolean getPrintModelStats()
.lang.Override Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
boolean getDisableSolve()
bool disable_solve = 15;
boolean getUseCumulativeTimeTableSync()
bool use_cumulative_time_table_sync = 112;
static final int USE_CUMULATIVE_TIME_TABLE_FIELD_NUMBER
boolean getProfilePropagation()
Builder setArraySplitSize(int value)
boolean getUseCumulativeEdgeFinder()
Builder mergeFrom(com.google.ortools.constraintsolver.ConstraintSolverParameters other)
Builder clearTraceSearch()
.lang.Override com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
.lang.Override Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Builder clearPrintAddedConstraints()
static final int TRACE_SEARCH_FIELD_NUMBER
com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression getCompressTrail()
Builder clearPrintLocalSearchProfile()
.lang.Override com.google.ortools.constraintsolver.ConstraintSolverParameters build()
.lang.Override Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Builder clearProfileLocalSearch()
.lang.Override Builder toBuilder()
Builder setProfileFile(java.lang.String value)
boolean getDiffnUseCumulative()
com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression getCompressTrail()
Builder clearCheckSolutionPeriod()