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
4package com.google.ortools.constraintsolver;
5
13public final class ConstraintSolverParameters extends
14 com.google.protobuf.GeneratedMessageV3 implements
15 // @@protoc_insertion_point(message_implements:operations_research.ConstraintSolverParameters)
17private static final long serialVersionUID = 0L;
18 // Use ConstraintSolverParameters.newBuilder() to construct.
19 private ConstraintSolverParameters(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
20 super(builder);
21 }
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(
223 com.google.ortools.constraintsolver.ConstraintSolverParameters.class, com.google.ortools.constraintsolver.ConstraintSolverParameters.Builder.class);
224 }
225
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 if (this == UNRECOGNIZED) {
301 throw new java.lang.IllegalStateException(
302 "Can't get the descriptor of an unrecognized enum value.");
303 }
304 return getDescriptor().getValues().get(ordinal());
305 }
306 public final com.google.protobuf.Descriptors.EnumDescriptor
308 return getDescriptor();
309 }
310 public static final com.google.protobuf.Descriptors.EnumDescriptor
312 return com.google.ortools.constraintsolver.ConstraintSolverParameters.getDescriptor().getEnumTypes().get(0);
313 }
314
315 private static final TrailCompression[] VALUES = values();
316
318 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
319 if (desc.getType() != getDescriptor()) {
320 throw new java.lang.IllegalArgumentException(
321 "EnumValueDescriptor is not for this type.");
322 }
323 if (desc.getIndex() == -1) {
324 return UNRECOGNIZED;
325 }
326 return VALUES[desc.getIndex()];
327 }
328
329 private final int value;
330
331 private TrailCompression(int value) {
332 this.value = value;
333 }
334
335 // @@protoc_insertion_point(enum_scope:operations_research.ConstraintSolverParameters.TrailCompression)
336 }
337
338 public static final int COMPRESS_TRAIL_FIELD_NUMBER = 1;
339 private int compressTrail_;
350 @java.lang.Override public int getCompressTrailValue() {
351 return compressTrail_;
352 }
363 @java.lang.Override public com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression getCompressTrail() {
364 @SuppressWarnings("deprecation")
365 com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression result = com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression.valueOf(compressTrail_);
366 return result == null ? com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression.UNRECOGNIZED : result;
367 }
368
369 public static final int TRAIL_BLOCK_SIZE_FIELD_NUMBER = 2;
370 private int trailBlockSize_;
380 @java.lang.Override
381 public int getTrailBlockSize() {
382 return trailBlockSize_;
383 }
384
385 public static final int ARRAY_SPLIT_SIZE_FIELD_NUMBER = 3;
386 private int arraySplitSize_;
396 @java.lang.Override
397 public int getArraySplitSize() {
398 return arraySplitSize_;
399 }
400
401 public static final int STORE_NAMES_FIELD_NUMBER = 4;
402 private boolean storeNames_;
412 @java.lang.Override
413 public boolean getStoreNames() {
414 return storeNames_;
415 }
416
417 public static final int NAME_CAST_VARIABLES_FIELD_NUMBER = 5;
418 private boolean nameCastVariables_;
427 @java.lang.Override
428 public boolean getNameCastVariables() {
429 return nameCastVariables_;
430 }
431
432 public static final int NAME_ALL_VARIABLES_FIELD_NUMBER = 6;
433 private boolean nameAllVariables_;
442 @java.lang.Override
443 public boolean getNameAllVariables() {
444 return nameAllVariables_;
445 }
446
447 public static final int PROFILE_PROPAGATION_FIELD_NUMBER = 7;
448 private boolean profilePropagation_;
457 @java.lang.Override
458 public boolean getProfilePropagation() {
459 return profilePropagation_;
460 }
461
462 public static final int PROFILE_FILE_FIELD_NUMBER = 8;
463 private volatile java.lang.Object profileFile_;
472 @java.lang.Override
473 public java.lang.String getProfileFile() {
474 java.lang.Object ref = profileFile_;
475 if (ref instanceof java.lang.String) {
476 return (java.lang.String) ref;
477 } else {
478 com.google.protobuf.ByteString bs =
479 (com.google.protobuf.ByteString) ref;
480 java.lang.String s = bs.toStringUtf8();
481 profileFile_ = s;
482 return s;
483 }
484 }
493 @java.lang.Override
494 public com.google.protobuf.ByteString
496 java.lang.Object ref = profileFile_;
497 if (ref instanceof java.lang.String) {
498 com.google.protobuf.ByteString b =
499 com.google.protobuf.ByteString.copyFromUtf8(
500 (java.lang.String) ref);
501 profileFile_ = b;
502 return b;
503 } else {
504 return (com.google.protobuf.ByteString) ref;
505 }
506 }
507
508 public static final int PROFILE_LOCAL_SEARCH_FIELD_NUMBER = 16;
509 private boolean profileLocalSearch_;
518 @java.lang.Override
519 public boolean getProfileLocalSearch() {
520 return profileLocalSearch_;
521 }
522
523 public static final int PRINT_LOCAL_SEARCH_PROFILE_FIELD_NUMBER = 17;
524 private boolean printLocalSearchProfile_;
533 @java.lang.Override
534 public boolean getPrintLocalSearchProfile() {
535 return printLocalSearchProfile_;
536 }
537
538 public static final int TRACE_PROPAGATION_FIELD_NUMBER = 9;
539 private boolean tracePropagation_;
548 @java.lang.Override
549 public boolean getTracePropagation() {
550 return tracePropagation_;
551 }
552
553 public static final int TRACE_SEARCH_FIELD_NUMBER = 10;
554 private boolean traceSearch_;
563 @java.lang.Override
564 public boolean getTraceSearch() {
565 return traceSearch_;
566 }
567
568 public static final int PRINT_MODEL_FIELD_NUMBER = 11;
569 private boolean printModel_;
578 @java.lang.Override
579 public boolean getPrintModel() {
580 return printModel_;
581 }
582
583 public static final int PRINT_MODEL_STATS_FIELD_NUMBER = 12;
584 private boolean printModelStats_;
593 @java.lang.Override
594 public boolean getPrintModelStats() {
595 return printModelStats_;
596 }
597
598 public static final int PRINT_ADDED_CONSTRAINTS_FIELD_NUMBER = 13;
599 private boolean printAddedConstraints_;
608 @java.lang.Override
609 public boolean getPrintAddedConstraints() {
610 return printAddedConstraints_;
611 }
612
613 public static final int DISABLE_SOLVE_FIELD_NUMBER = 15;
614 private boolean disableSolve_;
619 @java.lang.Override
620 public boolean getDisableSolve() {
621 return disableSolve_;
622 }
623
624 public static final int USE_SMALL_TABLE_FIELD_NUMBER = 101;
625 private boolean useSmallTable_;
634 @java.lang.Override
635 public boolean getUseSmallTable() {
636 return useSmallTable_;
637 }
638
639 public static final int USE_CUMULATIVE_EDGE_FINDER_FIELD_NUMBER = 105;
640 private boolean useCumulativeEdgeFinder_;
649 @java.lang.Override
650 public boolean getUseCumulativeEdgeFinder() {
651 return useCumulativeEdgeFinder_;
652 }
653
654 public static final int USE_CUMULATIVE_TIME_TABLE_FIELD_NUMBER = 106;
655 private boolean useCumulativeTimeTable_;
660 @java.lang.Override
661 public boolean getUseCumulativeTimeTable() {
662 return useCumulativeTimeTable_;
663 }
664
665 public static final int USE_CUMULATIVE_TIME_TABLE_SYNC_FIELD_NUMBER = 112;
666 private boolean useCumulativeTimeTableSync_;
671 @java.lang.Override
673 return useCumulativeTimeTableSync_;
674 }
675
676 public static final int USE_SEQUENCE_HIGH_DEMAND_TASKS_FIELD_NUMBER = 107;
677 private boolean useSequenceHighDemandTasks_;
682 @java.lang.Override
684 return useSequenceHighDemandTasks_;
685 }
686
687 public static final int USE_ALL_POSSIBLE_DISJUNCTIONS_FIELD_NUMBER = 108;
688 private boolean useAllPossibleDisjunctions_;
693 @java.lang.Override
695 return useAllPossibleDisjunctions_;
696 }
697
698 public static final int MAX_EDGE_FINDER_SIZE_FIELD_NUMBER = 109;
699 private int maxEdgeFinderSize_;
704 @java.lang.Override
705 public int getMaxEdgeFinderSize() {
706 return maxEdgeFinderSize_;
707 }
708
709 public static final int DIFFN_USE_CUMULATIVE_FIELD_NUMBER = 110;
710 private boolean diffnUseCumulative_;
719 @java.lang.Override
720 public boolean getDiffnUseCumulative() {
721 return diffnUseCumulative_;
722 }
723
724 public static final int USE_ELEMENT_RMQ_FIELD_NUMBER = 111;
725 private boolean useElementRmq_;
734 @java.lang.Override
735 public boolean getUseElementRmq() {
736 return useElementRmq_;
737 }
738
739 public static final int SKIP_LOCALLY_OPTIMAL_PATHS_FIELD_NUMBER = 113;
740 private boolean skipLocallyOptimalPaths_;
752 @java.lang.Override
753 public boolean getSkipLocallyOptimalPaths() {
754 return skipLocallyOptimalPaths_;
755 }
756
757 public static final int CHECK_SOLUTION_PERIOD_FIELD_NUMBER = 114;
758 private int checkSolutionPeriod_;
767 @java.lang.Override
769 return checkSolutionPeriod_;
770 }
771
772 private byte memoizedIsInitialized = -1;
773 @java.lang.Override
774 public final boolean isInitialized() {
775 byte isInitialized = memoizedIsInitialized;
776 if (isInitialized == 1) return true;
777 if (isInitialized == 0) return false;
778
779 memoizedIsInitialized = 1;
780 return true;
781 }
782
783 @java.lang.Override
784 public void writeTo(com.google.protobuf.CodedOutputStream output)
785 throws java.io.IOException {
786 if (compressTrail_ != com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression.NO_COMPRESSION.getNumber()) {
787 output.writeEnum(1, compressTrail_);
788 }
789 if (trailBlockSize_ != 0) {
790 output.writeInt32(2, trailBlockSize_);
791 }
792 if (arraySplitSize_ != 0) {
793 output.writeInt32(3, arraySplitSize_);
794 }
795 if (storeNames_ != false) {
796 output.writeBool(4, storeNames_);
797 }
798 if (nameCastVariables_ != false) {
799 output.writeBool(5, nameCastVariables_);
800 }
801 if (nameAllVariables_ != false) {
802 output.writeBool(6, nameAllVariables_);
803 }
804 if (profilePropagation_ != false) {
805 output.writeBool(7, profilePropagation_);
806 }
807 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(profileFile_)) {
808 com.google.protobuf.GeneratedMessageV3.writeString(output, 8, profileFile_);
809 }
810 if (tracePropagation_ != false) {
811 output.writeBool(9, tracePropagation_);
812 }
813 if (traceSearch_ != false) {
814 output.writeBool(10, traceSearch_);
815 }
816 if (printModel_ != false) {
817 output.writeBool(11, printModel_);
818 }
819 if (printModelStats_ != false) {
820 output.writeBool(12, printModelStats_);
821 }
822 if (printAddedConstraints_ != false) {
823 output.writeBool(13, printAddedConstraints_);
824 }
825 if (disableSolve_ != false) {
826 output.writeBool(15, disableSolve_);
827 }
828 if (profileLocalSearch_ != false) {
829 output.writeBool(16, profileLocalSearch_);
830 }
831 if (printLocalSearchProfile_ != false) {
832 output.writeBool(17, printLocalSearchProfile_);
833 }
834 if (useSmallTable_ != false) {
835 output.writeBool(101, useSmallTable_);
836 }
837 if (useCumulativeEdgeFinder_ != false) {
838 output.writeBool(105, useCumulativeEdgeFinder_);
839 }
840 if (useCumulativeTimeTable_ != false) {
841 output.writeBool(106, useCumulativeTimeTable_);
842 }
843 if (useSequenceHighDemandTasks_ != false) {
844 output.writeBool(107, useSequenceHighDemandTasks_);
845 }
846 if (useAllPossibleDisjunctions_ != false) {
847 output.writeBool(108, useAllPossibleDisjunctions_);
848 }
849 if (maxEdgeFinderSize_ != 0) {
850 output.writeInt32(109, maxEdgeFinderSize_);
851 }
852 if (diffnUseCumulative_ != false) {
853 output.writeBool(110, diffnUseCumulative_);
854 }
855 if (useElementRmq_ != false) {
856 output.writeBool(111, useElementRmq_);
857 }
858 if (useCumulativeTimeTableSync_ != false) {
859 output.writeBool(112, useCumulativeTimeTableSync_);
860 }
861 if (skipLocallyOptimalPaths_ != false) {
862 output.writeBool(113, skipLocallyOptimalPaths_);
863 }
864 if (checkSolutionPeriod_ != 0) {
865 output.writeInt32(114, checkSolutionPeriod_);
866 }
867 unknownFields.writeTo(output);
868 }
869
870 @java.lang.Override
871 public int getSerializedSize() {
872 int size = memoizedSize;
873 if (size != -1) return size;
874
875 size = 0;
876 if (compressTrail_ != com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression.NO_COMPRESSION.getNumber()) {
877 size += com.google.protobuf.CodedOutputStream
878 .computeEnumSize(1, compressTrail_);
879 }
880 if (trailBlockSize_ != 0) {
881 size += com.google.protobuf.CodedOutputStream
882 .computeInt32Size(2, trailBlockSize_);
883 }
884 if (arraySplitSize_ != 0) {
885 size += com.google.protobuf.CodedOutputStream
886 .computeInt32Size(3, arraySplitSize_);
887 }
888 if (storeNames_ != false) {
889 size += com.google.protobuf.CodedOutputStream
890 .computeBoolSize(4, storeNames_);
891 }
892 if (nameCastVariables_ != false) {
893 size += com.google.protobuf.CodedOutputStream
894 .computeBoolSize(5, nameCastVariables_);
895 }
896 if (nameAllVariables_ != false) {
897 size += com.google.protobuf.CodedOutputStream
898 .computeBoolSize(6, nameAllVariables_);
899 }
900 if (profilePropagation_ != false) {
901 size += com.google.protobuf.CodedOutputStream
902 .computeBoolSize(7, profilePropagation_);
903 }
904 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(profileFile_)) {
905 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, profileFile_);
906 }
907 if (tracePropagation_ != false) {
908 size += com.google.protobuf.CodedOutputStream
909 .computeBoolSize(9, tracePropagation_);
910 }
911 if (traceSearch_ != false) {
912 size += com.google.protobuf.CodedOutputStream
913 .computeBoolSize(10, traceSearch_);
914 }
915 if (printModel_ != false) {
916 size += com.google.protobuf.CodedOutputStream
917 .computeBoolSize(11, printModel_);
918 }
919 if (printModelStats_ != false) {
920 size += com.google.protobuf.CodedOutputStream
921 .computeBoolSize(12, printModelStats_);
922 }
923 if (printAddedConstraints_ != false) {
924 size += com.google.protobuf.CodedOutputStream
925 .computeBoolSize(13, printAddedConstraints_);
926 }
927 if (disableSolve_ != false) {
928 size += com.google.protobuf.CodedOutputStream
929 .computeBoolSize(15, disableSolve_);
930 }
931 if (profileLocalSearch_ != false) {
932 size += com.google.protobuf.CodedOutputStream
933 .computeBoolSize(16, profileLocalSearch_);
934 }
935 if (printLocalSearchProfile_ != false) {
936 size += com.google.protobuf.CodedOutputStream
937 .computeBoolSize(17, printLocalSearchProfile_);
938 }
939 if (useSmallTable_ != false) {
940 size += com.google.protobuf.CodedOutputStream
941 .computeBoolSize(101, useSmallTable_);
942 }
943 if (useCumulativeEdgeFinder_ != false) {
944 size += com.google.protobuf.CodedOutputStream
945 .computeBoolSize(105, useCumulativeEdgeFinder_);
946 }
947 if (useCumulativeTimeTable_ != false) {
948 size += com.google.protobuf.CodedOutputStream
949 .computeBoolSize(106, useCumulativeTimeTable_);
950 }
951 if (useSequenceHighDemandTasks_ != false) {
952 size += com.google.protobuf.CodedOutputStream
953 .computeBoolSize(107, useSequenceHighDemandTasks_);
954 }
955 if (useAllPossibleDisjunctions_ != false) {
956 size += com.google.protobuf.CodedOutputStream
957 .computeBoolSize(108, useAllPossibleDisjunctions_);
958 }
959 if (maxEdgeFinderSize_ != 0) {
960 size += com.google.protobuf.CodedOutputStream
961 .computeInt32Size(109, maxEdgeFinderSize_);
962 }
963 if (diffnUseCumulative_ != false) {
964 size += com.google.protobuf.CodedOutputStream
965 .computeBoolSize(110, diffnUseCumulative_);
966 }
967 if (useElementRmq_ != false) {
968 size += com.google.protobuf.CodedOutputStream
969 .computeBoolSize(111, useElementRmq_);
970 }
971 if (useCumulativeTimeTableSync_ != false) {
972 size += com.google.protobuf.CodedOutputStream
973 .computeBoolSize(112, useCumulativeTimeTableSync_);
974 }
975 if (skipLocallyOptimalPaths_ != false) {
976 size += com.google.protobuf.CodedOutputStream
977 .computeBoolSize(113, skipLocallyOptimalPaths_);
978 }
979 if (checkSolutionPeriod_ != 0) {
980 size += com.google.protobuf.CodedOutputStream
981 .computeInt32Size(114, checkSolutionPeriod_);
982 }
983 size += unknownFields.getSerializedSize();
984 memoizedSize = size;
985 return size;
986 }
987
988 @java.lang.Override
989 public boolean equals(final java.lang.Object obj) {
990 if (obj == this) {
991 return true;
992 }
993 if (!(obj instanceof com.google.ortools.constraintsolver.ConstraintSolverParameters)) {
994 return super.equals(obj);
995 }
996 com.google.ortools.constraintsolver.ConstraintSolverParameters other = (com.google.ortools.constraintsolver.ConstraintSolverParameters) obj;
997
998 if (compressTrail_ != other.compressTrail_) return false;
1000 != other.getTrailBlockSize()) return false;
1001 if (getArraySplitSize()
1002 != other.getArraySplitSize()) return false;
1003 if (getStoreNames()
1004 != other.getStoreNames()) return false;
1006 != other.getNameCastVariables()) return false;
1008 != other.getNameAllVariables()) return false;
1010 != other.getProfilePropagation()) return false;
1011 if (!getProfileFile()
1012 .equals(other.getProfileFile())) return false;
1014 != other.getProfileLocalSearch()) return false;
1016 != other.getPrintLocalSearchProfile()) return false;
1018 != other.getTracePropagation()) return false;
1019 if (getTraceSearch()
1020 != other.getTraceSearch()) return false;
1021 if (getPrintModel()
1022 != other.getPrintModel()) return false;
1023 if (getPrintModelStats()
1024 != other.getPrintModelStats()) return false;
1026 != other.getPrintAddedConstraints()) return false;
1027 if (getDisableSolve()
1028 != other.getDisableSolve()) return false;
1029 if (getUseSmallTable()
1030 != other.getUseSmallTable()) return false;
1032 != other.getUseCumulativeEdgeFinder()) return false;
1034 != other.getUseCumulativeTimeTable()) return false;
1036 != other.getUseCumulativeTimeTableSync()) return false;
1038 != other.getUseSequenceHighDemandTasks()) return false;
1040 != other.getUseAllPossibleDisjunctions()) return false;
1042 != other.getMaxEdgeFinderSize()) return false;
1044 != other.getDiffnUseCumulative()) return false;
1045 if (getUseElementRmq()
1046 != other.getUseElementRmq()) return false;
1048 != other.getSkipLocallyOptimalPaths()) return false;
1050 != other.getCheckSolutionPeriod()) return false;
1051 if (!unknownFields.equals(other.unknownFields)) return false;
1052 return true;
1053 }
1054
1055 @java.lang.Override
1056 public int hashCode() {
1057 if (memoizedHashCode != 0) {
1058 return memoizedHashCode;
1059 }
1060 int hash = 41;
1061 hash = (19 * hash) + getDescriptor().hashCode();
1062 hash = (37 * hash) + COMPRESS_TRAIL_FIELD_NUMBER;
1063 hash = (53 * hash) + compressTrail_;
1064 hash = (37 * hash) + TRAIL_BLOCK_SIZE_FIELD_NUMBER;
1065 hash = (53 * hash) + getTrailBlockSize();
1066 hash = (37 * hash) + ARRAY_SPLIT_SIZE_FIELD_NUMBER;
1067 hash = (53 * hash) + getArraySplitSize();
1068 hash = (37 * hash) + STORE_NAMES_FIELD_NUMBER;
1069 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1070 getStoreNames());
1071 hash = (37 * hash) + NAME_CAST_VARIABLES_FIELD_NUMBER;
1072 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1074 hash = (37 * hash) + NAME_ALL_VARIABLES_FIELD_NUMBER;
1075 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1077 hash = (37 * hash) + PROFILE_PROPAGATION_FIELD_NUMBER;
1078 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1080 hash = (37 * hash) + PROFILE_FILE_FIELD_NUMBER;
1081 hash = (53 * hash) + getProfileFile().hashCode();
1082 hash = (37 * hash) + PROFILE_LOCAL_SEARCH_FIELD_NUMBER;
1083 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1085 hash = (37 * hash) + PRINT_LOCAL_SEARCH_PROFILE_FIELD_NUMBER;
1086 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1088 hash = (37 * hash) + TRACE_PROPAGATION_FIELD_NUMBER;
1089 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1091 hash = (37 * hash) + TRACE_SEARCH_FIELD_NUMBER;
1092 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1093 getTraceSearch());
1094 hash = (37 * hash) + PRINT_MODEL_FIELD_NUMBER;
1095 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1096 getPrintModel());
1097 hash = (37 * hash) + PRINT_MODEL_STATS_FIELD_NUMBER;
1098 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1100 hash = (37 * hash) + PRINT_ADDED_CONSTRAINTS_FIELD_NUMBER;
1101 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1103 hash = (37 * hash) + DISABLE_SOLVE_FIELD_NUMBER;
1104 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1105 getDisableSolve());
1106 hash = (37 * hash) + USE_SMALL_TABLE_FIELD_NUMBER;
1107 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1109 hash = (37 * hash) + USE_CUMULATIVE_EDGE_FINDER_FIELD_NUMBER;
1110 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1112 hash = (37 * hash) + USE_CUMULATIVE_TIME_TABLE_FIELD_NUMBER;
1113 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1116 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1119 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1121 hash = (37 * hash) + USE_ALL_POSSIBLE_DISJUNCTIONS_FIELD_NUMBER;
1122 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1124 hash = (37 * hash) + MAX_EDGE_FINDER_SIZE_FIELD_NUMBER;
1125 hash = (53 * hash) + getMaxEdgeFinderSize();
1126 hash = (37 * hash) + DIFFN_USE_CUMULATIVE_FIELD_NUMBER;
1127 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1129 hash = (37 * hash) + USE_ELEMENT_RMQ_FIELD_NUMBER;
1130 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1132 hash = (37 * hash) + SKIP_LOCALLY_OPTIMAL_PATHS_FIELD_NUMBER;
1133 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1135 hash = (37 * hash) + CHECK_SOLUTION_PERIOD_FIELD_NUMBER;
1136 hash = (53 * hash) + getCheckSolutionPeriod();
1137 hash = (29 * hash) + unknownFields.hashCode();
1138 memoizedHashCode = hash;
1139 return hash;
1140 }
1141
1142 public static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(
1143 java.nio.ByteBuffer data)
1144 throws com.google.protobuf.InvalidProtocolBufferException {
1145 return PARSER.parseFrom(data);
1146 }
1147 public static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(
1148 java.nio.ByteBuffer data,
1149 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1150 throws com.google.protobuf.InvalidProtocolBufferException {
1151 return PARSER.parseFrom(data, extensionRegistry);
1152 }
1153 public static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(
1154 com.google.protobuf.ByteString data)
1155 throws com.google.protobuf.InvalidProtocolBufferException {
1156 return PARSER.parseFrom(data);
1157 }
1158 public static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(
1159 com.google.protobuf.ByteString data,
1160 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1161 throws com.google.protobuf.InvalidProtocolBufferException {
1162 return PARSER.parseFrom(data, extensionRegistry);
1163 }
1164 public static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(byte[] data)
1165 throws com.google.protobuf.InvalidProtocolBufferException {
1166 return PARSER.parseFrom(data);
1167 }
1168 public static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(
1169 byte[] data,
1170 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1171 throws com.google.protobuf.InvalidProtocolBufferException {
1172 return PARSER.parseFrom(data, extensionRegistry);
1173 }
1174 public static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(java.io.InputStream input)
1175 throws java.io.IOException {
1176 return com.google.protobuf.GeneratedMessageV3
1177 .parseWithIOException(PARSER, input);
1178 }
1179 public static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(
1180 java.io.InputStream input,
1181 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1182 throws java.io.IOException {
1183 return com.google.protobuf.GeneratedMessageV3
1184 .parseWithIOException(PARSER, input, extensionRegistry);
1185 }
1186 public static com.google.ortools.constraintsolver.ConstraintSolverParameters parseDelimitedFrom(java.io.InputStream input)
1187 throws java.io.IOException {
1188 return com.google.protobuf.GeneratedMessageV3
1189 .parseDelimitedWithIOException(PARSER, input);
1190 }
1191 public static com.google.ortools.constraintsolver.ConstraintSolverParameters parseDelimitedFrom(
1192 java.io.InputStream input,
1193 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1194 throws java.io.IOException {
1195 return com.google.protobuf.GeneratedMessageV3
1196 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
1197 }
1198 public static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(
1199 com.google.protobuf.CodedInputStream input)
1200 throws java.io.IOException {
1201 return com.google.protobuf.GeneratedMessageV3
1202 .parseWithIOException(PARSER, input);
1203 }
1204 public static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(
1205 com.google.protobuf.CodedInputStream input,
1206 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1207 throws java.io.IOException {
1208 return com.google.protobuf.GeneratedMessageV3
1209 .parseWithIOException(PARSER, input, extensionRegistry);
1210 }
1211
1212 @java.lang.Override
1213 public Builder newBuilderForType() { return newBuilder(); }
1214 public static Builder newBuilder() {
1215 return DEFAULT_INSTANCE.toBuilder();
1216 }
1217 public static Builder newBuilder(com.google.ortools.constraintsolver.ConstraintSolverParameters prototype) {
1218 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1219 }
1220 @java.lang.Override
1222 return this == DEFAULT_INSTANCE
1223 ? new Builder() : new Builder().mergeFrom(this);
1224 }
1225
1226 @java.lang.Override
1228 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1229 Builder builder = new Builder(parent);
1230 return builder;
1231 }
1239 public static final class Builder extends
1240 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
1241 // @@protoc_insertion_point(builder_implements:operations_research.ConstraintSolverParameters)
1242 com.google.ortools.constraintsolver.ConstraintSolverParametersOrBuilder {
1243 public static final com.google.protobuf.Descriptors.Descriptor
1245 return com.google.ortools.constraintsolver.SolverParameters.internal_static_operations_research_ConstraintSolverParameters_descriptor;
1246 }
1247
1248 @java.lang.Override
1249 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
1251 return com.google.ortools.constraintsolver.SolverParameters.internal_static_operations_research_ConstraintSolverParameters_fieldAccessorTable
1252 .ensureFieldAccessorsInitialized(
1253 com.google.ortools.constraintsolver.ConstraintSolverParameters.class, com.google.ortools.constraintsolver.ConstraintSolverParameters.Builder.class);
1254 }
1255
1256 // Construct using com.google.ortools.constraintsolver.ConstraintSolverParameters.newBuilder()
1257 private Builder() {
1258 maybeForceBuilderInitialization();
1259 }
1260
1261 private Builder(
1262 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1263 super(parent);
1264 maybeForceBuilderInitialization();
1265 }
1266 private void maybeForceBuilderInitialization() {
1267 if (com.google.protobuf.GeneratedMessageV3
1268 .alwaysUseFieldBuilders) {
1269 }
1270 }
1271 @java.lang.Override
1272 public Builder clear() {
1273 super.clear();
1274 compressTrail_ = 0;
1275
1276 trailBlockSize_ = 0;
1277
1278 arraySplitSize_ = 0;
1279
1280 storeNames_ = false;
1281
1282 nameCastVariables_ = false;
1283
1284 nameAllVariables_ = false;
1285
1286 profilePropagation_ = false;
1287
1288 profileFile_ = "";
1289
1290 profileLocalSearch_ = false;
1291
1292 printLocalSearchProfile_ = false;
1293
1294 tracePropagation_ = false;
1295
1296 traceSearch_ = false;
1297
1298 printModel_ = false;
1299
1300 printModelStats_ = false;
1301
1302 printAddedConstraints_ = false;
1303
1304 disableSolve_ = false;
1305
1306 useSmallTable_ = false;
1307
1308 useCumulativeEdgeFinder_ = false;
1309
1310 useCumulativeTimeTable_ = false;
1311
1312 useCumulativeTimeTableSync_ = false;
1313
1314 useSequenceHighDemandTasks_ = false;
1315
1316 useAllPossibleDisjunctions_ = false;
1317
1318 maxEdgeFinderSize_ = 0;
1319
1320 diffnUseCumulative_ = false;
1321
1322 useElementRmq_ = false;
1323
1324 skipLocallyOptimalPaths_ = false;
1325
1326 checkSolutionPeriod_ = 0;
1327
1328 return this;
1329 }
1330
1331 @java.lang.Override
1332 public com.google.protobuf.Descriptors.Descriptor
1334 return com.google.ortools.constraintsolver.SolverParameters.internal_static_operations_research_ConstraintSolverParameters_descriptor;
1335 }
1336
1337 @java.lang.Override
1338 public com.google.ortools.constraintsolver.ConstraintSolverParameters getDefaultInstanceForType() {
1339 return com.google.ortools.constraintsolver.ConstraintSolverParameters.getDefaultInstance();
1340 }
1341
1342 @java.lang.Override
1343 public com.google.ortools.constraintsolver.ConstraintSolverParameters build() {
1344 com.google.ortools.constraintsolver.ConstraintSolverParameters result = buildPartial();
1345 if (!result.isInitialized()) {
1346 throw newUninitializedMessageException(result);
1347 }
1348 return result;
1349 }
1350
1351 @java.lang.Override
1352 public com.google.ortools.constraintsolver.ConstraintSolverParameters buildPartial() {
1353 com.google.ortools.constraintsolver.ConstraintSolverParameters result = new com.google.ortools.constraintsolver.ConstraintSolverParameters(this);
1354 result.compressTrail_ = compressTrail_;
1355 result.trailBlockSize_ = trailBlockSize_;
1356 result.arraySplitSize_ = arraySplitSize_;
1357 result.storeNames_ = storeNames_;
1358 result.nameCastVariables_ = nameCastVariables_;
1359 result.nameAllVariables_ = nameAllVariables_;
1360 result.profilePropagation_ = profilePropagation_;
1361 result.profileFile_ = profileFile_;
1362 result.profileLocalSearch_ = profileLocalSearch_;
1363 result.printLocalSearchProfile_ = printLocalSearchProfile_;
1364 result.tracePropagation_ = tracePropagation_;
1365 result.traceSearch_ = traceSearch_;
1366 result.printModel_ = printModel_;
1367 result.printModelStats_ = printModelStats_;
1368 result.printAddedConstraints_ = printAddedConstraints_;
1369 result.disableSolve_ = disableSolve_;
1370 result.useSmallTable_ = useSmallTable_;
1371 result.useCumulativeEdgeFinder_ = useCumulativeEdgeFinder_;
1372 result.useCumulativeTimeTable_ = useCumulativeTimeTable_;
1373 result.useCumulativeTimeTableSync_ = useCumulativeTimeTableSync_;
1374 result.useSequenceHighDemandTasks_ = useSequenceHighDemandTasks_;
1375 result.useAllPossibleDisjunctions_ = useAllPossibleDisjunctions_;
1376 result.maxEdgeFinderSize_ = maxEdgeFinderSize_;
1377 result.diffnUseCumulative_ = diffnUseCumulative_;
1378 result.useElementRmq_ = useElementRmq_;
1379 result.skipLocallyOptimalPaths_ = skipLocallyOptimalPaths_;
1380 result.checkSolutionPeriod_ = checkSolutionPeriod_;
1381 onBuilt();
1382 return result;
1383 }
1384
1385 @java.lang.Override
1386 public Builder clone() {
1387 return super.clone();
1388 }
1389 @java.lang.Override
1391 com.google.protobuf.Descriptors.FieldDescriptor field,
1392 java.lang.Object value) {
1393 return super.setField(field, value);
1394 }
1395 @java.lang.Override
1397 com.google.protobuf.Descriptors.FieldDescriptor field) {
1398 return super.clearField(field);
1399 }
1400 @java.lang.Override
1402 com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1403 return super.clearOneof(oneof);
1404 }
1405 @java.lang.Override
1407 com.google.protobuf.Descriptors.FieldDescriptor field,
1408 int index, java.lang.Object value) {
1409 return super.setRepeatedField(field, index, value);
1410 }
1411 @java.lang.Override
1413 com.google.protobuf.Descriptors.FieldDescriptor field,
1414 java.lang.Object value) {
1415 return super.addRepeatedField(field, value);
1416 }
1417 @java.lang.Override
1418 public Builder mergeFrom(com.google.protobuf.Message other) {
1419 if (other instanceof com.google.ortools.constraintsolver.ConstraintSolverParameters) {
1420 return mergeFrom((com.google.ortools.constraintsolver.ConstraintSolverParameters)other);
1421 } else {
1422 super.mergeFrom(other);
1423 return this;
1424 }
1425 }
1426
1427 public Builder mergeFrom(com.google.ortools.constraintsolver.ConstraintSolverParameters other) {
1428 if (other == com.google.ortools.constraintsolver.ConstraintSolverParameters.getDefaultInstance()) return this;
1429 if (other.compressTrail_ != 0) {
1430 setCompressTrailValue(other.getCompressTrailValue());
1431 }
1432 if (other.getTrailBlockSize() != 0) {
1433 setTrailBlockSize(other.getTrailBlockSize());
1434 }
1435 if (other.getArraySplitSize() != 0) {
1436 setArraySplitSize(other.getArraySplitSize());
1437 }
1438 if (other.getStoreNames() != false) {
1439 setStoreNames(other.getStoreNames());
1440 }
1441 if (other.getNameCastVariables() != false) {
1442 setNameCastVariables(other.getNameCastVariables());
1443 }
1444 if (other.getNameAllVariables() != false) {
1445 setNameAllVariables(other.getNameAllVariables());
1446 }
1447 if (other.getProfilePropagation() != false) {
1448 setProfilePropagation(other.getProfilePropagation());
1449 }
1450 if (!other.getProfileFile().isEmpty()) {
1451 profileFile_ = other.profileFile_;
1452 onChanged();
1453 }
1454 if (other.getProfileLocalSearch() != false) {
1455 setProfileLocalSearch(other.getProfileLocalSearch());
1456 }
1457 if (other.getPrintLocalSearchProfile() != false) {
1458 setPrintLocalSearchProfile(other.getPrintLocalSearchProfile());
1459 }
1460 if (other.getTracePropagation() != false) {
1461 setTracePropagation(other.getTracePropagation());
1462 }
1463 if (other.getTraceSearch() != false) {
1464 setTraceSearch(other.getTraceSearch());
1465 }
1466 if (other.getPrintModel() != false) {
1467 setPrintModel(other.getPrintModel());
1468 }
1469 if (other.getPrintModelStats() != false) {
1470 setPrintModelStats(other.getPrintModelStats());
1471 }
1472 if (other.getPrintAddedConstraints() != false) {
1473 setPrintAddedConstraints(other.getPrintAddedConstraints());
1474 }
1475 if (other.getDisableSolve() != false) {
1476 setDisableSolve(other.getDisableSolve());
1477 }
1478 if (other.getUseSmallTable() != false) {
1479 setUseSmallTable(other.getUseSmallTable());
1480 }
1481 if (other.getUseCumulativeEdgeFinder() != false) {
1482 setUseCumulativeEdgeFinder(other.getUseCumulativeEdgeFinder());
1483 }
1484 if (other.getUseCumulativeTimeTable() != false) {
1485 setUseCumulativeTimeTable(other.getUseCumulativeTimeTable());
1486 }
1487 if (other.getUseCumulativeTimeTableSync() != false) {
1488 setUseCumulativeTimeTableSync(other.getUseCumulativeTimeTableSync());
1489 }
1490 if (other.getUseSequenceHighDemandTasks() != false) {
1491 setUseSequenceHighDemandTasks(other.getUseSequenceHighDemandTasks());
1492 }
1493 if (other.getUseAllPossibleDisjunctions() != false) {
1494 setUseAllPossibleDisjunctions(other.getUseAllPossibleDisjunctions());
1495 }
1496 if (other.getMaxEdgeFinderSize() != 0) {
1497 setMaxEdgeFinderSize(other.getMaxEdgeFinderSize());
1498 }
1499 if (other.getDiffnUseCumulative() != false) {
1500 setDiffnUseCumulative(other.getDiffnUseCumulative());
1501 }
1502 if (other.getUseElementRmq() != false) {
1503 setUseElementRmq(other.getUseElementRmq());
1504 }
1505 if (other.getSkipLocallyOptimalPaths() != false) {
1506 setSkipLocallyOptimalPaths(other.getSkipLocallyOptimalPaths());
1507 }
1508 if (other.getCheckSolutionPeriod() != 0) {
1509 setCheckSolutionPeriod(other.getCheckSolutionPeriod());
1510 }
1511 this.mergeUnknownFields(other.unknownFields);
1512 onChanged();
1513 return this;
1514 }
1515
1516 @java.lang.Override
1517 public final boolean isInitialized() {
1518 return true;
1519 }
1520
1521 @java.lang.Override
1523 com.google.protobuf.CodedInputStream input,
1524 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1525 throws java.io.IOException {
1526 com.google.ortools.constraintsolver.ConstraintSolverParameters parsedMessage = null;
1527 try {
1528 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
1529 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1530 parsedMessage = (com.google.ortools.constraintsolver.ConstraintSolverParameters) e.getUnfinishedMessage();
1531 throw e.unwrapIOException();
1532 } finally {
1533 if (parsedMessage != null) {
1534 mergeFrom(parsedMessage);
1535 }
1536 }
1537 return this;
1538 }
1539
1540 private int compressTrail_ = 0;
1551 @java.lang.Override public int getCompressTrailValue() {
1552 return compressTrail_;
1553 }
1565 public Builder setCompressTrailValue(int value) {
1566
1567 compressTrail_ = value;
1568 onChanged();
1569 return this;
1570 }
1581 @java.lang.Override
1582 public com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression getCompressTrail() {
1583 @SuppressWarnings("deprecation")
1584 com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression result = com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression.valueOf(compressTrail_);
1585 return result == null ? com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression.UNRECOGNIZED : result;
1586 }
1598 public Builder setCompressTrail(com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression value) {
1599 if (value == null) {
1600 throw new NullPointerException();
1601 }
1602
1603 compressTrail_ = value.getNumber();
1604 onChanged();
1605 return this;
1606 }
1618
1619 compressTrail_ = 0;
1620 onChanged();
1621 return this;
1622 }
1623
1624 private int trailBlockSize_ ;
1634 @java.lang.Override
1635 public int getTrailBlockSize() {
1636 return trailBlockSize_;
1637 }
1648 public Builder setTrailBlockSize(int value) {
1649
1650 trailBlockSize_ = value;
1651 onChanged();
1652 return this;
1653 }
1664
1665 trailBlockSize_ = 0;
1666 onChanged();
1667 return this;
1668 }
1669
1670 private int arraySplitSize_ ;
1680 @java.lang.Override
1681 public int getArraySplitSize() {
1682 return arraySplitSize_;
1683 }
1694 public Builder setArraySplitSize(int value) {
1695
1696 arraySplitSize_ = value;
1697 onChanged();
1698 return this;
1699 }
1710
1711 arraySplitSize_ = 0;
1712 onChanged();
1713 return this;
1714 }
1715
1716 private boolean storeNames_ ;
1726 @java.lang.Override
1727 public boolean getStoreNames() {
1728 return storeNames_;
1729 }
1740 public Builder setStoreNames(boolean value) {
1741
1742 storeNames_ = value;
1743 onChanged();
1744 return this;
1745 }
1756
1757 storeNames_ = false;
1758 onChanged();
1759 return this;
1760 }
1761
1762 private boolean nameCastVariables_ ;
1771 @java.lang.Override
1772 public boolean getNameCastVariables() {
1773 return nameCastVariables_;
1774 }
1784 public Builder setNameCastVariables(boolean value) {
1785
1786 nameCastVariables_ = value;
1787 onChanged();
1788 return this;
1789 }
1799
1800 nameCastVariables_ = false;
1801 onChanged();
1802 return this;
1803 }
1804
1805 private boolean nameAllVariables_ ;
1814 @java.lang.Override
1815 public boolean getNameAllVariables() {
1816 return nameAllVariables_;
1817 }
1827 public Builder setNameAllVariables(boolean value) {
1828
1829 nameAllVariables_ = value;
1830 onChanged();
1831 return this;
1832 }
1842
1843 nameAllVariables_ = false;
1844 onChanged();
1845 return this;
1846 }
1847
1848 private boolean profilePropagation_ ;
1857 @java.lang.Override
1858 public boolean getProfilePropagation() {
1859 return profilePropagation_;
1860 }
1870 public Builder setProfilePropagation(boolean value) {
1871
1872 profilePropagation_ = value;
1873 onChanged();
1874 return this;
1875 }
1885
1886 profilePropagation_ = false;
1887 onChanged();
1888 return this;
1889 }
1890
1891 private java.lang.Object profileFile_ = "";
1900 public java.lang.String getProfileFile() {
1901 java.lang.Object ref = profileFile_;
1902 if (!(ref instanceof java.lang.String)) {
1903 com.google.protobuf.ByteString bs =
1904 (com.google.protobuf.ByteString) ref;
1905 java.lang.String s = bs.toStringUtf8();
1906 profileFile_ = s;
1907 return s;
1908 } else {
1909 return (java.lang.String) ref;
1910 }
1911 }
1920 public com.google.protobuf.ByteString
1922 java.lang.Object ref = profileFile_;
1923 if (ref instanceof String) {
1924 com.google.protobuf.ByteString b =
1925 com.google.protobuf.ByteString.copyFromUtf8(
1926 (java.lang.String) ref);
1927 profileFile_ = b;
1928 return b;
1929 } else {
1930 return (com.google.protobuf.ByteString) ref;
1931 }
1932 }
1943 java.lang.String value) {
1944 if (value == null) {
1945 throw new NullPointerException();
1946 }
1947
1948 profileFile_ = value;
1949 onChanged();
1950 return this;
1951 }
1961
1962 profileFile_ = getDefaultInstance().getProfileFile();
1963 onChanged();
1964 return this;
1965 }
1976 com.google.protobuf.ByteString value) {
1977 if (value == null) {
1978 throw new NullPointerException();
1979 }
1980 checkByteStringIsUtf8(value);
1981
1982 profileFile_ = value;
1983 onChanged();
1984 return this;
1985 }
1986
1987 private boolean profileLocalSearch_ ;
1996 @java.lang.Override
1997 public boolean getProfileLocalSearch() {
1998 return profileLocalSearch_;
1999 }
2009 public Builder setProfileLocalSearch(boolean value) {
2010
2011 profileLocalSearch_ = value;
2012 onChanged();
2013 return this;
2014 }
2024
2025 profileLocalSearch_ = false;
2026 onChanged();
2027 return this;
2028 }
2029
2030 private boolean printLocalSearchProfile_ ;
2039 @java.lang.Override
2041 return printLocalSearchProfile_;
2042 }
2052 public Builder setPrintLocalSearchProfile(boolean value) {
2053
2054 printLocalSearchProfile_ = value;
2055 onChanged();
2056 return this;
2057 }
2067
2068 printLocalSearchProfile_ = false;
2069 onChanged();
2070 return this;
2071 }
2072
2073 private boolean tracePropagation_ ;
2082 @java.lang.Override
2083 public boolean getTracePropagation() {
2084 return tracePropagation_;
2085 }
2095 public Builder setTracePropagation(boolean value) {
2096
2097 tracePropagation_ = value;
2098 onChanged();
2099 return this;
2100 }
2110
2111 tracePropagation_ = false;
2112 onChanged();
2113 return this;
2114 }
2115
2116 private boolean traceSearch_ ;
2125 @java.lang.Override
2126 public boolean getTraceSearch() {
2127 return traceSearch_;
2128 }
2138 public Builder setTraceSearch(boolean value) {
2139
2140 traceSearch_ = value;
2141 onChanged();
2142 return this;
2143 }
2153
2154 traceSearch_ = false;
2155 onChanged();
2156 return this;
2157 }
2158
2159 private boolean printModel_ ;
2168 @java.lang.Override
2169 public boolean getPrintModel() {
2170 return printModel_;
2171 }
2181 public Builder setPrintModel(boolean value) {
2182
2183 printModel_ = value;
2184 onChanged();
2185 return this;
2186 }
2196
2197 printModel_ = false;
2198 onChanged();
2199 return this;
2200 }
2201
2202 private boolean printModelStats_ ;
2211 @java.lang.Override
2212 public boolean getPrintModelStats() {
2213 return printModelStats_;
2214 }
2224 public Builder setPrintModelStats(boolean value) {
2225
2226 printModelStats_ = value;
2227 onChanged();
2228 return this;
2229 }
2239
2240 printModelStats_ = false;
2241 onChanged();
2242 return this;
2243 }
2244
2245 private boolean printAddedConstraints_ ;
2254 @java.lang.Override
2255 public boolean getPrintAddedConstraints() {
2256 return printAddedConstraints_;
2257 }
2267 public Builder setPrintAddedConstraints(boolean value) {
2268
2269 printAddedConstraints_ = value;
2270 onChanged();
2271 return this;
2272 }
2282
2283 printAddedConstraints_ = false;
2284 onChanged();
2285 return this;
2286 }
2287
2288 private boolean disableSolve_ ;
2293 @java.lang.Override
2294 public boolean getDisableSolve() {
2295 return disableSolve_;
2296 }
2302 public Builder setDisableSolve(boolean value) {
2303
2304 disableSolve_ = value;
2305 onChanged();
2306 return this;
2307 }
2313
2314 disableSolve_ = false;
2315 onChanged();
2316 return this;
2317 }
2318
2319 private boolean useSmallTable_ ;
2328 @java.lang.Override
2329 public boolean getUseSmallTable() {
2330 return useSmallTable_;
2331 }
2341 public Builder setUseSmallTable(boolean value) {
2342
2343 useSmallTable_ = value;
2344 onChanged();
2345 return this;
2346 }
2356
2357 useSmallTable_ = false;
2358 onChanged();
2359 return this;
2360 }
2361
2362 private boolean useCumulativeEdgeFinder_ ;
2371 @java.lang.Override
2373 return useCumulativeEdgeFinder_;
2374 }
2384 public Builder setUseCumulativeEdgeFinder(boolean value) {
2385
2386 useCumulativeEdgeFinder_ = value;
2387 onChanged();
2388 return this;
2389 }
2399
2400 useCumulativeEdgeFinder_ = false;
2401 onChanged();
2402 return this;
2403 }
2404
2405 private boolean useCumulativeTimeTable_ ;
2410 @java.lang.Override
2411 public boolean getUseCumulativeTimeTable() {
2412 return useCumulativeTimeTable_;
2413 }
2419 public Builder setUseCumulativeTimeTable(boolean value) {
2420
2421 useCumulativeTimeTable_ = value;
2422 onChanged();
2423 return this;
2424 }
2430
2431 useCumulativeTimeTable_ = false;
2432 onChanged();
2433 return this;
2434 }
2435
2436 private boolean useCumulativeTimeTableSync_ ;
2441 @java.lang.Override
2443 return useCumulativeTimeTableSync_;
2444 }
2451
2452 useCumulativeTimeTableSync_ = value;
2453 onChanged();
2454 return this;
2455 }
2461
2462 useCumulativeTimeTableSync_ = false;
2463 onChanged();
2464 return this;
2465 }
2466
2467 private boolean useSequenceHighDemandTasks_ ;
2472 @java.lang.Override
2474 return useSequenceHighDemandTasks_;
2475 }
2482
2483 useSequenceHighDemandTasks_ = value;
2484 onChanged();
2485 return this;
2486 }
2492
2493 useSequenceHighDemandTasks_ = false;
2494 onChanged();
2495 return this;
2496 }
2497
2498 private boolean useAllPossibleDisjunctions_ ;
2503 @java.lang.Override
2505 return useAllPossibleDisjunctions_;
2506 }
2513
2514 useAllPossibleDisjunctions_ = value;
2515 onChanged();
2516 return this;
2517 }
2523
2524 useAllPossibleDisjunctions_ = false;
2525 onChanged();
2526 return this;
2527 }
2528
2529 private int maxEdgeFinderSize_ ;
2534 @java.lang.Override
2536 return maxEdgeFinderSize_;
2537 }
2543 public Builder setMaxEdgeFinderSize(int value) {
2544
2545 maxEdgeFinderSize_ = value;
2546 onChanged();
2547 return this;
2548 }
2554
2555 maxEdgeFinderSize_ = 0;
2556 onChanged();
2557 return this;
2558 }
2559
2560 private boolean diffnUseCumulative_ ;
2569 @java.lang.Override
2570 public boolean getDiffnUseCumulative() {
2571 return diffnUseCumulative_;
2572 }
2582 public Builder setDiffnUseCumulative(boolean value) {
2583
2584 diffnUseCumulative_ = value;
2585 onChanged();
2586 return this;
2587 }
2597
2598 diffnUseCumulative_ = false;
2599 onChanged();
2600 return this;
2601 }
2602
2603 private boolean useElementRmq_ ;
2612 @java.lang.Override
2613 public boolean getUseElementRmq() {
2614 return useElementRmq_;
2615 }
2625 public Builder setUseElementRmq(boolean value) {
2626
2627 useElementRmq_ = value;
2628 onChanged();
2629 return this;
2630 }
2640
2641 useElementRmq_ = false;
2642 onChanged();
2643 return this;
2644 }
2645
2646 private boolean skipLocallyOptimalPaths_ ;
2658 @java.lang.Override
2660 return skipLocallyOptimalPaths_;
2661 }
2674 public Builder setSkipLocallyOptimalPaths(boolean value) {
2675
2676 skipLocallyOptimalPaths_ = value;
2677 onChanged();
2678 return this;
2679 }
2692
2693 skipLocallyOptimalPaths_ = false;
2694 onChanged();
2695 return this;
2696 }
2697
2698 private int checkSolutionPeriod_ ;
2707 @java.lang.Override
2709 return checkSolutionPeriod_;
2710 }
2721
2722 checkSolutionPeriod_ = value;
2723 onChanged();
2724 return this;
2725 }
2735
2736 checkSolutionPeriod_ = 0;
2737 onChanged();
2738 return this;
2739 }
2740 @java.lang.Override
2742 final com.google.protobuf.UnknownFieldSet unknownFields) {
2743 return super.setUnknownFields(unknownFields);
2744 }
2745
2746 @java.lang.Override
2748 final com.google.protobuf.UnknownFieldSet unknownFields) {
2749 return super.mergeUnknownFields(unknownFields);
2750 }
2751
2752
2753 // @@protoc_insertion_point(builder_scope:operations_research.ConstraintSolverParameters)
2754 }
2755
2756 // @@protoc_insertion_point(class_scope:operations_research.ConstraintSolverParameters)
2757 private static final com.google.ortools.constraintsolver.ConstraintSolverParameters DEFAULT_INSTANCE;
2758 static {
2759 DEFAULT_INSTANCE = new com.google.ortools.constraintsolver.ConstraintSolverParameters();
2760 }
2761
2762 public static com.google.ortools.constraintsolver.ConstraintSolverParameters getDefaultInstance() {
2763 return DEFAULT_INSTANCE;
2764 }
2765
2766 private static final com.google.protobuf.Parser<ConstraintSolverParameters>
2767 PARSER = new com.google.protobuf.AbstractParser<ConstraintSolverParameters>() {
2768 @java.lang.Override
2769 public ConstraintSolverParameters parsePartialFrom(
2770 com.google.protobuf.CodedInputStream input,
2771 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2772 throws com.google.protobuf.InvalidProtocolBufferException {
2773 return new ConstraintSolverParameters(input, extensionRegistry);
2774 }
2775 };
2776
2777 public static com.google.protobuf.Parser<ConstraintSolverParameters> parser() {
2778 return PARSER;
2779 }
2780
2781 @java.lang.Override
2782 public com.google.protobuf.Parser<ConstraintSolverParameters> getParserForType() {
2783 return PARSER;
2784 }
2785
2786 @java.lang.Override
2787 public com.google.ortools.constraintsolver.ConstraintSolverParameters getDefaultInstanceForType() {
2788 return DEFAULT_INSTANCE;
2789 }
2790
2791}
2792
Builder setUseSequenceHighDemandTasks(boolean value)
bool use_sequence_high_demand_tasks = 107;
final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
com.google.ortools.constraintsolver.ConstraintSolverParameters buildPartial()
Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
Builder setCompressTrail(com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression value)
Builder clearUseSequenceHighDemandTasks()
bool use_sequence_high_demand_tasks = 107;
boolean getUseSequenceHighDemandTasks()
bool use_sequence_high_demand_tasks = 107;
boolean getUseCumulativeTimeTableSync()
bool use_cumulative_time_table_sync = 112;
com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression getCompressTrail()
Builder setUseCumulativeTimeTable(boolean value)
bool use_cumulative_time_table = 106;
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Builder clearUseAllPossibleDisjunctions()
bool use_all_possible_disjunctions = 108;
com.google.ortools.constraintsolver.ConstraintSolverParameters build()
Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
Builder clearUseCumulativeTimeTableSync()
bool use_cumulative_time_table_sync = 112;
Builder mergeFrom(com.google.ortools.constraintsolver.ConstraintSolverParameters other)
Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Builder setUseCumulativeTimeTableSync(boolean value)
bool use_cumulative_time_table_sync = 112;
Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
boolean getUseAllPossibleDisjunctions()
bool use_all_possible_disjunctions = 108;
Builder setUseAllPossibleDisjunctions(boolean value)
bool use_all_possible_disjunctions = 108;
Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
com.google.ortools.constraintsolver.ConstraintSolverParameters getDefaultInstanceForType()
Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.protobuf.Parser< ConstraintSolverParameters > getParserForType()
void writeTo(com.google.protobuf.CodedOutputStream output)
boolean getUseSequenceHighDemandTasks()
bool use_sequence_high_demand_tasks = 107;
boolean getUseCumulativeTimeTableSync()
bool use_cumulative_time_table_sync = 112;
com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression getCompressTrail()
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(java.io.InputStream input)
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(java.nio.ByteBuffer data)
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Builder newBuilder(com.google.ortools.constraintsolver.ConstraintSolverParameters prototype)
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(com.google.protobuf.CodedInputStream input)
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(byte[] data)
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(com.google.protobuf.ByteString data)
boolean getUseAllPossibleDisjunctions()
bool use_all_possible_disjunctions = 108;
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
com.google.ortools.constraintsolver.ConstraintSolverParameters getDefaultInstanceForType()
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseDelimitedFrom(java.io.InputStream input)
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
boolean getUseCumulativeTimeTable()
bool use_cumulative_time_table = 106;
Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
static com.google.ortools.constraintsolver.ConstraintSolverParameters getDefaultInstance()
static com.google.protobuf.Parser< ConstraintSolverParameters > parser()
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
static TrailCompression valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
static com.google.protobuf.Internal.EnumLiteMap< TrailCompression > internalGetValueMap()
final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()