Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
ConstraintSolverParameters.java
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// NO CHECKED-IN PROTOBUF GENCODE
3// source: ortools/constraint_solver/solver_parameters.proto
4// Protobuf Java Version: 4.31.1
5
6package com.google.ortools.constraintsolver;
7
15@com.google.protobuf.Generated
16public final class ConstraintSolverParameters extends
17 com.google.protobuf.GeneratedMessage implements
18 // @@protoc_insertion_point(message_implements:operations_research.ConstraintSolverParameters)
20private static final long serialVersionUID = 0L;
21 static {
22 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
23 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
24 /* major= */ 4,
25 /* minor= */ 31,
26 /* patch= */ 1,
27 /* suffix= */ "",
28 ConstraintSolverParameters.class.getName());
29 }
30 // Use ConstraintSolverParameters.newBuilder() to construct.
31 private ConstraintSolverParameters(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
32 super(builder);
33 }
34 private ConstraintSolverParameters() {
35 compressTrail_ = 0;
36 profileFile_ = "";
37 }
38
39 public static final com.google.protobuf.Descriptors.Descriptor
41 return com.google.ortools.constraintsolver.SolverParameters.internal_static_operations_research_ConstraintSolverParameters_descriptor;
42 }
43
44 @java.lang.Override
45 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
47 return com.google.ortools.constraintsolver.SolverParameters.internal_static_operations_research_ConstraintSolverParameters_fieldAccessorTable
48 .ensureFieldAccessorsInitialized(
49 com.google.ortools.constraintsolver.ConstraintSolverParameters.class, com.google.ortools.constraintsolver.ConstraintSolverParameters.Builder.class);
50 }
51
60 public enum TrailCompression
61 implements com.google.protobuf.ProtocolMessageEnum {
71 ;
72
73 static {
74 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
75 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
76 /* major= */ 4,
77 /* minor= */ 31,
78 /* patch= */ 1,
79 /* suffix= */ "",
80 TrailCompression.class.getName());
81 }
85 public static final int NO_COMPRESSION_VALUE = 0;
89 public static final int COMPRESS_WITH_ZLIB_VALUE = 1;
90
91
92 public final int getNumber() {
93 if (this == UNRECOGNIZED) {
94 throw new java.lang.IllegalArgumentException(
95 "Can't get the number of an unknown enum value.");
96 }
97 return value;
98 }
99
105 @java.lang.Deprecated
106 public static TrailCompression valueOf(int value) {
107 return forNumber(value);
108 }
109
114 public static TrailCompression forNumber(int value) {
115 switch (value) {
116 case 0: return NO_COMPRESSION;
117 case 1: return COMPRESS_WITH_ZLIB;
118 default: return null;
119 }
120 }
121
122 public static com.google.protobuf.Internal.EnumLiteMap<TrailCompression>
124 return internalValueMap;
125 }
126 private static final com.google.protobuf.Internal.EnumLiteMap<
127 TrailCompression> internalValueMap =
128 new com.google.protobuf.Internal.EnumLiteMap<TrailCompression>() {
129 public TrailCompression findValueByNumber(int number) {
130 return TrailCompression.forNumber(number);
131 }
132 };
133
134 public final com.google.protobuf.Descriptors.EnumValueDescriptor
136 if (this == UNRECOGNIZED) {
137 throw new java.lang.IllegalStateException(
138 "Can't get the descriptor of an unrecognized enum value.");
139 }
140 return getDescriptor().getValues().get(ordinal());
141 }
142 public final com.google.protobuf.Descriptors.EnumDescriptor
144 return getDescriptor();
145 }
146 public static com.google.protobuf.Descriptors.EnumDescriptor
148 return com.google.ortools.constraintsolver.ConstraintSolverParameters.getDescriptor().getEnumTypes().get(0);
149 }
150
151 private static final TrailCompression[] VALUES = values();
152
153 public static TrailCompression valueOf(
154 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
155 if (desc.getType() != getDescriptor()) {
156 throw new java.lang.IllegalArgumentException(
157 "EnumValueDescriptor is not for this type.");
158 }
159 if (desc.getIndex() == -1) {
160 return UNRECOGNIZED;
161 }
162 return VALUES[desc.getIndex()];
163 }
164
165 private final int value;
166
167 private TrailCompression(int value) {
168 this.value = value;
169 }
170
171 // @@protoc_insertion_point(enum_scope:operations_research.ConstraintSolverParameters.TrailCompression)
172 }
173
174 public static final int COMPRESS_TRAIL_FIELD_NUMBER = 1;
175 private int compressTrail_ = 0;
186 @java.lang.Override public int getCompressTrailValue() {
187 return compressTrail_;
188 }
189
200 com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression result = com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression.forNumber(compressTrail_);
202 }
203
204 public static final int TRAIL_BLOCK_SIZE_FIELD_NUMBER = 2;
205 private int trailBlockSize_ = 0;
215 @java.lang.Override
216 public int getTrailBlockSize() {
217 return trailBlockSize_;
218 }
219
220 public static final int ARRAY_SPLIT_SIZE_FIELD_NUMBER = 3;
221 private int arraySplitSize_ = 0;
231 @java.lang.Override
232 public int getArraySplitSize() {
233 return arraySplitSize_;
234 }
235
236 public static final int STORE_NAMES_FIELD_NUMBER = 4;
237 private boolean storeNames_ = false;
247 @java.lang.Override
248 public boolean getStoreNames() {
249 return storeNames_;
250 }
251
252 public static final int NAME_CAST_VARIABLES_FIELD_NUMBER = 5;
253 private boolean nameCastVariables_ = false;
262 @java.lang.Override
263 public boolean getNameCastVariables() {
264 return nameCastVariables_;
265 }
266
267 public static final int NAME_ALL_VARIABLES_FIELD_NUMBER = 6;
268 private boolean nameAllVariables_ = false;
277 @java.lang.Override
278 public boolean getNameAllVariables() {
279 return nameAllVariables_;
280 }
281
282 public static final int PROFILE_PROPAGATION_FIELD_NUMBER = 7;
283 private boolean profilePropagation_ = false;
292 @java.lang.Override
293 public boolean getProfilePropagation() {
294 return profilePropagation_;
295 }
296
297 public static final int PROFILE_FILE_FIELD_NUMBER = 8;
298 @SuppressWarnings("serial")
299 private volatile java.lang.Object profileFile_ = "";
308 @java.lang.Override
309 public java.lang.String getProfileFile() {
310 java.lang.Object ref = profileFile_;
311 if (ref instanceof java.lang.String) {
312 return (java.lang.String) ref;
313 } else {
314 com.google.protobuf.ByteString bs =
315 (com.google.protobuf.ByteString) ref;
316 java.lang.String s = bs.toStringUtf8();
317 profileFile_ = s;
318 return s;
319 }
320 }
321
329 @java.lang.Override
330 public com.google.protobuf.ByteString
332 java.lang.Object ref = profileFile_;
333 if (ref instanceof java.lang.String) {
334 com.google.protobuf.ByteString b =
335 com.google.protobuf.ByteString.copyFromUtf8(
336 (java.lang.String) ref);
337 profileFile_ = b;
338 return b;
339 } else {
340 return (com.google.protobuf.ByteString) ref;
341 }
342 }
343
344 public static final int PROFILE_LOCAL_SEARCH_FIELD_NUMBER = 16;
345 private boolean profileLocalSearch_ = false;
354 @java.lang.Override
355 public boolean getProfileLocalSearch() {
356 return profileLocalSearch_;
357 }
358
359 public static final int PRINT_LOCAL_SEARCH_PROFILE_FIELD_NUMBER = 17;
360 private boolean printLocalSearchProfile_ = false;
369 @java.lang.Override
370 public boolean getPrintLocalSearchProfile() {
371 return printLocalSearchProfile_;
372 }
373
374 public static final int TRACE_PROPAGATION_FIELD_NUMBER = 9;
375 private boolean tracePropagation_ = false;
384 @java.lang.Override
385 public boolean getTracePropagation() {
386 return tracePropagation_;
387 }
388
389 public static final int TRACE_SEARCH_FIELD_NUMBER = 10;
390 private boolean traceSearch_ = false;
399 @java.lang.Override
400 public boolean getTraceSearch() {
401 return traceSearch_;
402 }
403
404 public static final int PRINT_MODEL_FIELD_NUMBER = 11;
405 private boolean printModel_ = false;
414 @java.lang.Override
415 public boolean getPrintModel() {
416 return printModel_;
417 }
418
419 public static final int PRINT_MODEL_STATS_FIELD_NUMBER = 12;
420 private boolean printModelStats_ = false;
429 @java.lang.Override
430 public boolean getPrintModelStats() {
431 return printModelStats_;
432 }
433
434 public static final int PRINT_ADDED_CONSTRAINTS_FIELD_NUMBER = 13;
435 private boolean printAddedConstraints_ = false;
444 @java.lang.Override
445 public boolean getPrintAddedConstraints() {
446 return printAddedConstraints_;
447 }
448
449 public static final int DISABLE_SOLVE_FIELD_NUMBER = 15;
450 private boolean disableSolve_ = false;
455 @java.lang.Override
456 public boolean getDisableSolve() {
457 return disableSolve_;
458 }
459
460 public static final int USE_SMALL_TABLE_FIELD_NUMBER = 101;
461 private boolean useSmallTable_ = false;
471 @java.lang.Override
472 public boolean getUseSmallTable() {
473 return useSmallTable_;
474 }
475
476 public static final int USE_CUMULATIVE_EDGE_FINDER_FIELD_NUMBER = 105;
477 private boolean useCumulativeEdgeFinder_ = false;
487 @java.lang.Override
488 public boolean getUseCumulativeEdgeFinder() {
489 return useCumulativeEdgeFinder_;
490 }
491
492 public static final int USE_CUMULATIVE_TIME_TABLE_FIELD_NUMBER = 106;
493 private boolean useCumulativeTimeTable_ = false;
498 @java.lang.Override
499 public boolean getUseCumulativeTimeTable() {
500 return useCumulativeTimeTable_;
501 }
502
503 public static final int USE_CUMULATIVE_TIME_TABLE_SYNC_FIELD_NUMBER = 112;
504 private boolean useCumulativeTimeTableSync_ = false;
509 @java.lang.Override
511 return useCumulativeTimeTableSync_;
512 }
513
514 public static final int USE_SEQUENCE_HIGH_DEMAND_TASKS_FIELD_NUMBER = 107;
515 private boolean useSequenceHighDemandTasks_ = false;
520 @java.lang.Override
522 return useSequenceHighDemandTasks_;
523 }
524
525 public static final int USE_ALL_POSSIBLE_DISJUNCTIONS_FIELD_NUMBER = 108;
526 private boolean useAllPossibleDisjunctions_ = false;
531 @java.lang.Override
533 return useAllPossibleDisjunctions_;
534 }
535
536 public static final int MAX_EDGE_FINDER_SIZE_FIELD_NUMBER = 109;
537 private int maxEdgeFinderSize_ = 0;
542 @java.lang.Override
543 public int getMaxEdgeFinderSize() {
544 return maxEdgeFinderSize_;
545 }
546
547 public static final int DIFFN_USE_CUMULATIVE_FIELD_NUMBER = 110;
548 private boolean diffnUseCumulative_ = false;
558 @java.lang.Override
559 public boolean getDiffnUseCumulative() {
560 return diffnUseCumulative_;
561 }
562
563 public static final int USE_ELEMENT_RMQ_FIELD_NUMBER = 111;
564 private boolean useElementRmq_ = false;
574 @java.lang.Override
575 public boolean getUseElementRmq() {
576 return useElementRmq_;
577 }
578
579 public static final int SKIP_LOCALLY_OPTIMAL_PATHS_FIELD_NUMBER = 113;
580 private boolean skipLocallyOptimalPaths_ = false;
593 @java.lang.Override
594 public boolean getSkipLocallyOptimalPaths() {
595 return skipLocallyOptimalPaths_;
596 }
597
598 public static final int CHECK_SOLUTION_PERIOD_FIELD_NUMBER = 114;
599 private int checkSolutionPeriod_ = 0;
609 @java.lang.Override
611 return checkSolutionPeriod_;
612 }
613
614 private byte memoizedIsInitialized = -1;
615 @java.lang.Override
616 public final boolean isInitialized() {
617 byte isInitialized = memoizedIsInitialized;
618 if (isInitialized == 1) return true;
619 if (isInitialized == 0) return false;
620
621 memoizedIsInitialized = 1;
622 return true;
623 }
624
625 @java.lang.Override
626 public void writeTo(com.google.protobuf.CodedOutputStream output)
627 throws java.io.IOException {
628 if (compressTrail_ != com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression.NO_COMPRESSION.getNumber()) {
629 output.writeEnum(1, compressTrail_);
630 }
631 if (trailBlockSize_ != 0) {
632 output.writeInt32(2, trailBlockSize_);
633 }
634 if (arraySplitSize_ != 0) {
635 output.writeInt32(3, arraySplitSize_);
636 }
637 if (storeNames_ != false) {
638 output.writeBool(4, storeNames_);
639 }
640 if (nameCastVariables_ != false) {
641 output.writeBool(5, nameCastVariables_);
642 }
643 if (nameAllVariables_ != false) {
644 output.writeBool(6, nameAllVariables_);
645 }
646 if (profilePropagation_ != false) {
647 output.writeBool(7, profilePropagation_);
648 }
649 if (!com.google.protobuf.GeneratedMessage.isStringEmpty(profileFile_)) {
650 com.google.protobuf.GeneratedMessage.writeString(output, 8, profileFile_);
651 }
652 if (tracePropagation_ != false) {
653 output.writeBool(9, tracePropagation_);
654 }
655 if (traceSearch_ != false) {
656 output.writeBool(10, traceSearch_);
657 }
658 if (printModel_ != false) {
659 output.writeBool(11, printModel_);
660 }
661 if (printModelStats_ != false) {
662 output.writeBool(12, printModelStats_);
663 }
664 if (printAddedConstraints_ != false) {
665 output.writeBool(13, printAddedConstraints_);
666 }
667 if (disableSolve_ != false) {
668 output.writeBool(15, disableSolve_);
669 }
670 if (profileLocalSearch_ != false) {
671 output.writeBool(16, profileLocalSearch_);
672 }
673 if (printLocalSearchProfile_ != false) {
674 output.writeBool(17, printLocalSearchProfile_);
675 }
676 if (useSmallTable_ != false) {
677 output.writeBool(101, useSmallTable_);
678 }
679 if (useCumulativeEdgeFinder_ != false) {
680 output.writeBool(105, useCumulativeEdgeFinder_);
681 }
682 if (useCumulativeTimeTable_ != false) {
683 output.writeBool(106, useCumulativeTimeTable_);
684 }
685 if (useSequenceHighDemandTasks_ != false) {
686 output.writeBool(107, useSequenceHighDemandTasks_);
687 }
688 if (useAllPossibleDisjunctions_ != false) {
689 output.writeBool(108, useAllPossibleDisjunctions_);
690 }
691 if (maxEdgeFinderSize_ != 0) {
692 output.writeInt32(109, maxEdgeFinderSize_);
693 }
694 if (diffnUseCumulative_ != false) {
695 output.writeBool(110, diffnUseCumulative_);
696 }
697 if (useElementRmq_ != false) {
698 output.writeBool(111, useElementRmq_);
699 }
700 if (useCumulativeTimeTableSync_ != false) {
701 output.writeBool(112, useCumulativeTimeTableSync_);
702 }
703 if (skipLocallyOptimalPaths_ != false) {
704 output.writeBool(113, skipLocallyOptimalPaths_);
705 }
706 if (checkSolutionPeriod_ != 0) {
707 output.writeInt32(114, checkSolutionPeriod_);
708 }
709 getUnknownFields().writeTo(output);
710 }
711
712 @java.lang.Override
713 public int getSerializedSize() {
714 int size = memoizedSize;
715 if (size != -1) return size;
716
717 size = 0;
718 if (compressTrail_ != com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression.NO_COMPRESSION.getNumber()) {
719 size += com.google.protobuf.CodedOutputStream
720 .computeEnumSize(1, compressTrail_);
721 }
722 if (trailBlockSize_ != 0) {
723 size += com.google.protobuf.CodedOutputStream
724 .computeInt32Size(2, trailBlockSize_);
725 }
726 if (arraySplitSize_ != 0) {
727 size += com.google.protobuf.CodedOutputStream
728 .computeInt32Size(3, arraySplitSize_);
729 }
730 if (storeNames_ != false) {
731 size += com.google.protobuf.CodedOutputStream
732 .computeBoolSize(4, storeNames_);
733 }
734 if (nameCastVariables_ != false) {
735 size += com.google.protobuf.CodedOutputStream
736 .computeBoolSize(5, nameCastVariables_);
737 }
738 if (nameAllVariables_ != false) {
739 size += com.google.protobuf.CodedOutputStream
740 .computeBoolSize(6, nameAllVariables_);
741 }
742 if (profilePropagation_ != false) {
743 size += com.google.protobuf.CodedOutputStream
744 .computeBoolSize(7, profilePropagation_);
745 }
746 if (!com.google.protobuf.GeneratedMessage.isStringEmpty(profileFile_)) {
747 size += com.google.protobuf.GeneratedMessage.computeStringSize(8, profileFile_);
748 }
749 if (tracePropagation_ != false) {
750 size += com.google.protobuf.CodedOutputStream
751 .computeBoolSize(9, tracePropagation_);
752 }
753 if (traceSearch_ != false) {
754 size += com.google.protobuf.CodedOutputStream
755 .computeBoolSize(10, traceSearch_);
756 }
757 if (printModel_ != false) {
758 size += com.google.protobuf.CodedOutputStream
759 .computeBoolSize(11, printModel_);
760 }
761 if (printModelStats_ != false) {
762 size += com.google.protobuf.CodedOutputStream
763 .computeBoolSize(12, printModelStats_);
764 }
765 if (printAddedConstraints_ != false) {
766 size += com.google.protobuf.CodedOutputStream
767 .computeBoolSize(13, printAddedConstraints_);
768 }
769 if (disableSolve_ != false) {
770 size += com.google.protobuf.CodedOutputStream
771 .computeBoolSize(15, disableSolve_);
772 }
773 if (profileLocalSearch_ != false) {
774 size += com.google.protobuf.CodedOutputStream
775 .computeBoolSize(16, profileLocalSearch_);
776 }
777 if (printLocalSearchProfile_ != false) {
778 size += com.google.protobuf.CodedOutputStream
779 .computeBoolSize(17, printLocalSearchProfile_);
780 }
781 if (useSmallTable_ != false) {
782 size += com.google.protobuf.CodedOutputStream
783 .computeBoolSize(101, useSmallTable_);
784 }
785 if (useCumulativeEdgeFinder_ != false) {
786 size += com.google.protobuf.CodedOutputStream
787 .computeBoolSize(105, useCumulativeEdgeFinder_);
788 }
789 if (useCumulativeTimeTable_ != false) {
790 size += com.google.protobuf.CodedOutputStream
791 .computeBoolSize(106, useCumulativeTimeTable_);
792 }
793 if (useSequenceHighDemandTasks_ != false) {
794 size += com.google.protobuf.CodedOutputStream
795 .computeBoolSize(107, useSequenceHighDemandTasks_);
796 }
797 if (useAllPossibleDisjunctions_ != false) {
798 size += com.google.protobuf.CodedOutputStream
799 .computeBoolSize(108, useAllPossibleDisjunctions_);
800 }
801 if (maxEdgeFinderSize_ != 0) {
802 size += com.google.protobuf.CodedOutputStream
803 .computeInt32Size(109, maxEdgeFinderSize_);
804 }
805 if (diffnUseCumulative_ != false) {
806 size += com.google.protobuf.CodedOutputStream
807 .computeBoolSize(110, diffnUseCumulative_);
808 }
809 if (useElementRmq_ != false) {
810 size += com.google.protobuf.CodedOutputStream
811 .computeBoolSize(111, useElementRmq_);
812 }
813 if (useCumulativeTimeTableSync_ != false) {
814 size += com.google.protobuf.CodedOutputStream
815 .computeBoolSize(112, useCumulativeTimeTableSync_);
816 }
817 if (skipLocallyOptimalPaths_ != false) {
818 size += com.google.protobuf.CodedOutputStream
819 .computeBoolSize(113, skipLocallyOptimalPaths_);
820 }
821 if (checkSolutionPeriod_ != 0) {
822 size += com.google.protobuf.CodedOutputStream
823 .computeInt32Size(114, checkSolutionPeriod_);
824 }
825 size += getUnknownFields().getSerializedSize();
826 memoizedSize = size;
827 return size;
828 }
829
830 @java.lang.Override
831 public boolean equals(final java.lang.Object obj) {
832 if (obj == this) {
833 return true;
834 }
835 if (!(obj instanceof com.google.ortools.constraintsolver.ConstraintSolverParameters)) {
836 return super.equals(obj);
837 }
838 com.google.ortools.constraintsolver.ConstraintSolverParameters other = (com.google.ortools.constraintsolver.ConstraintSolverParameters) obj;
839
840 if (compressTrail_ != other.compressTrail_) return false;
842 != other.getTrailBlockSize()) return false;
844 != other.getArraySplitSize()) return false;
845 if (getStoreNames()
846 != other.getStoreNames()) return false;
848 != other.getNameCastVariables()) return false;
850 != other.getNameAllVariables()) return false;
852 != other.getProfilePropagation()) return false;
853 if (!getProfileFile()
854 .equals(other.getProfileFile())) return false;
856 != other.getProfileLocalSearch()) return false;
858 != other.getPrintLocalSearchProfile()) return false;
860 != other.getTracePropagation()) return false;
861 if (getTraceSearch()
862 != other.getTraceSearch()) return false;
863 if (getPrintModel()
864 != other.getPrintModel()) return false;
866 != other.getPrintModelStats()) return false;
868 != other.getPrintAddedConstraints()) return false;
869 if (getDisableSolve()
870 != other.getDisableSolve()) return false;
871 if (getUseSmallTable()
872 != other.getUseSmallTable()) return false;
874 != other.getUseCumulativeEdgeFinder()) return false;
876 != other.getUseCumulativeTimeTable()) return false;
878 != other.getUseCumulativeTimeTableSync()) return false;
880 != other.getUseSequenceHighDemandTasks()) return false;
882 != other.getUseAllPossibleDisjunctions()) return false;
884 != other.getMaxEdgeFinderSize()) return false;
886 != other.getDiffnUseCumulative()) return false;
887 if (getUseElementRmq()
888 != other.getUseElementRmq()) return false;
890 != other.getSkipLocallyOptimalPaths()) return false;
892 != other.getCheckSolutionPeriod()) return false;
893 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
894 return true;
895 }
896
897 @java.lang.Override
898 public int hashCode() {
899 if (memoizedHashCode != 0) {
900 return memoizedHashCode;
901 }
902 int hash = 41;
903 hash = (19 * hash) + getDescriptor().hashCode();
904 hash = (37 * hash) + COMPRESS_TRAIL_FIELD_NUMBER;
905 hash = (53 * hash) + compressTrail_;
906 hash = (37 * hash) + TRAIL_BLOCK_SIZE_FIELD_NUMBER;
907 hash = (53 * hash) + getTrailBlockSize();
908 hash = (37 * hash) + ARRAY_SPLIT_SIZE_FIELD_NUMBER;
909 hash = (53 * hash) + getArraySplitSize();
910 hash = (37 * hash) + STORE_NAMES_FIELD_NUMBER;
911 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
912 getStoreNames());
913 hash = (37 * hash) + NAME_CAST_VARIABLES_FIELD_NUMBER;
914 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
916 hash = (37 * hash) + NAME_ALL_VARIABLES_FIELD_NUMBER;
917 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
919 hash = (37 * hash) + PROFILE_PROPAGATION_FIELD_NUMBER;
920 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
922 hash = (37 * hash) + PROFILE_FILE_FIELD_NUMBER;
923 hash = (53 * hash) + getProfileFile().hashCode();
924 hash = (37 * hash) + PROFILE_LOCAL_SEARCH_FIELD_NUMBER;
925 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
927 hash = (37 * hash) + PRINT_LOCAL_SEARCH_PROFILE_FIELD_NUMBER;
928 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
930 hash = (37 * hash) + TRACE_PROPAGATION_FIELD_NUMBER;
931 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
933 hash = (37 * hash) + TRACE_SEARCH_FIELD_NUMBER;
934 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
936 hash = (37 * hash) + PRINT_MODEL_FIELD_NUMBER;
937 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
938 getPrintModel());
939 hash = (37 * hash) + PRINT_MODEL_STATS_FIELD_NUMBER;
940 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
942 hash = (37 * hash) + PRINT_ADDED_CONSTRAINTS_FIELD_NUMBER;
943 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
945 hash = (37 * hash) + DISABLE_SOLVE_FIELD_NUMBER;
946 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
948 hash = (37 * hash) + USE_SMALL_TABLE_FIELD_NUMBER;
949 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
951 hash = (37 * hash) + USE_CUMULATIVE_EDGE_FINDER_FIELD_NUMBER;
952 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
954 hash = (37 * hash) + USE_CUMULATIVE_TIME_TABLE_FIELD_NUMBER;
955 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
958 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
961 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
964 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
966 hash = (37 * hash) + MAX_EDGE_FINDER_SIZE_FIELD_NUMBER;
967 hash = (53 * hash) + getMaxEdgeFinderSize();
968 hash = (37 * hash) + DIFFN_USE_CUMULATIVE_FIELD_NUMBER;
969 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
971 hash = (37 * hash) + USE_ELEMENT_RMQ_FIELD_NUMBER;
972 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
974 hash = (37 * hash) + SKIP_LOCALLY_OPTIMAL_PATHS_FIELD_NUMBER;
975 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
977 hash = (37 * hash) + CHECK_SOLUTION_PERIOD_FIELD_NUMBER;
978 hash = (53 * hash) + getCheckSolutionPeriod();
979 hash = (29 * hash) + getUnknownFields().hashCode();
980 memoizedHashCode = hash;
981 return hash;
982 }
983
985 java.nio.ByteBuffer data)
986 throws com.google.protobuf.InvalidProtocolBufferException {
987 return PARSER.parseFrom(data);
988 }
990 java.nio.ByteBuffer data,
991 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
992 throws com.google.protobuf.InvalidProtocolBufferException {
993 return PARSER.parseFrom(data, extensionRegistry);
994 }
996 com.google.protobuf.ByteString data)
997 throws com.google.protobuf.InvalidProtocolBufferException {
998 return PARSER.parseFrom(data);
999 }
1001 com.google.protobuf.ByteString data,
1002 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1003 throws com.google.protobuf.InvalidProtocolBufferException {
1004 return PARSER.parseFrom(data, extensionRegistry);
1005 }
1007 throws com.google.protobuf.InvalidProtocolBufferException {
1008 return PARSER.parseFrom(data);
1009 }
1011 byte[] data,
1012 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1013 throws com.google.protobuf.InvalidProtocolBufferException {
1014 return PARSER.parseFrom(data, extensionRegistry);
1015 }
1017 throws java.io.IOException {
1018 return com.google.protobuf.GeneratedMessage
1019 .parseWithIOException(PARSER, input);
1020 }
1022 java.io.InputStream input,
1023 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1024 throws java.io.IOException {
1025 return com.google.protobuf.GeneratedMessage
1026 .parseWithIOException(PARSER, input, extensionRegistry);
1027 }
1028
1030 throws java.io.IOException {
1031 return com.google.protobuf.GeneratedMessage
1032 .parseDelimitedWithIOException(PARSER, input);
1033 }
1034
1036 java.io.InputStream input,
1037 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1038 throws java.io.IOException {
1039 return com.google.protobuf.GeneratedMessage
1040 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
1041 }
1043 com.google.protobuf.CodedInputStream input)
1044 throws java.io.IOException {
1045 return com.google.protobuf.GeneratedMessage
1046 .parseWithIOException(PARSER, input);
1047 }
1049 com.google.protobuf.CodedInputStream input,
1050 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1051 throws java.io.IOException {
1052 return com.google.protobuf.GeneratedMessage
1053 .parseWithIOException(PARSER, input, extensionRegistry);
1054 }
1055
1056 @java.lang.Override
1057 public Builder newBuilderForType() { return newBuilder(); }
1058 public static Builder newBuilder() {
1059 return DEFAULT_INSTANCE.toBuilder();
1060 }
1061 public static Builder newBuilder(com.google.ortools.constraintsolver.ConstraintSolverParameters prototype) {
1062 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1063 }
1064 @java.lang.Override
1066 return this == DEFAULT_INSTANCE
1067 ? new Builder() : new Builder().mergeFrom(this);
1068 }
1069
1070 @java.lang.Override
1072 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1073 Builder builder = new Builder(parent);
1074 return builder;
1075 }
1076
1083 public static final class Builder extends
1084 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
1085 // @@protoc_insertion_point(builder_implements:operations_research.ConstraintSolverParameters)
1087 public static final com.google.protobuf.Descriptors.Descriptor
1089 return com.google.ortools.constraintsolver.SolverParameters.internal_static_operations_research_ConstraintSolverParameters_descriptor;
1090 }
1091
1092 @java.lang.Override
1093 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1095 return com.google.ortools.constraintsolver.SolverParameters.internal_static_operations_research_ConstraintSolverParameters_fieldAccessorTable
1096 .ensureFieldAccessorsInitialized(
1097 com.google.ortools.constraintsolver.ConstraintSolverParameters.class, com.google.ortools.constraintsolver.ConstraintSolverParameters.Builder.class);
1098 }
1099
1100 // Construct using com.google.ortools.constraintsolver.ConstraintSolverParameters.newBuilder()
1101 private Builder() {
1102
1103 }
1104
1105 private Builder(
1106 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1107 super(parent);
1108
1109 }
1110 @java.lang.Override
1111 public Builder clear() {
1112 super.clear();
1113 bitField0_ = 0;
1114 compressTrail_ = 0;
1115 trailBlockSize_ = 0;
1116 arraySplitSize_ = 0;
1117 storeNames_ = false;
1118 nameCastVariables_ = false;
1119 nameAllVariables_ = false;
1120 profilePropagation_ = false;
1121 profileFile_ = "";
1122 profileLocalSearch_ = false;
1123 printLocalSearchProfile_ = false;
1124 tracePropagation_ = false;
1125 traceSearch_ = false;
1126 printModel_ = false;
1127 printModelStats_ = false;
1128 printAddedConstraints_ = false;
1129 disableSolve_ = false;
1130 useSmallTable_ = false;
1131 useCumulativeEdgeFinder_ = false;
1132 useCumulativeTimeTable_ = false;
1133 useCumulativeTimeTableSync_ = false;
1134 useSequenceHighDemandTasks_ = false;
1135 useAllPossibleDisjunctions_ = false;
1136 maxEdgeFinderSize_ = 0;
1137 diffnUseCumulative_ = false;
1138 useElementRmq_ = false;
1139 skipLocallyOptimalPaths_ = false;
1140 checkSolutionPeriod_ = 0;
1141 return this;
1142 }
1143
1144 @java.lang.Override
1145 public com.google.protobuf.Descriptors.Descriptor
1147 return com.google.ortools.constraintsolver.SolverParameters.internal_static_operations_research_ConstraintSolverParameters_descriptor;
1148 }
1149
1150 @java.lang.Override
1152 return com.google.ortools.constraintsolver.ConstraintSolverParameters.getDefaultInstance();
1153 }
1154
1155 @java.lang.Override
1158 if (!result.isInitialized()) {
1159 throw newUninitializedMessageException(result);
1160 }
1161 return result;
1162 }
1163
1164 @java.lang.Override
1166 com.google.ortools.constraintsolver.ConstraintSolverParameters result = new com.google.ortools.constraintsolver.ConstraintSolverParameters(this);
1167 if (bitField0_ != 0) { buildPartial0(result); }
1168 onBuilt();
1169 return result;
1170 }
1171
1172 private void buildPartial0(com.google.ortools.constraintsolver.ConstraintSolverParameters result) {
1173 int from_bitField0_ = bitField0_;
1174 if (((from_bitField0_ & 0x00000001) != 0)) {
1175 result.compressTrail_ = compressTrail_;
1176 }
1177 if (((from_bitField0_ & 0x00000002) != 0)) {
1178 result.trailBlockSize_ = trailBlockSize_;
1179 }
1180 if (((from_bitField0_ & 0x00000004) != 0)) {
1181 result.arraySplitSize_ = arraySplitSize_;
1182 }
1183 if (((from_bitField0_ & 0x00000008) != 0)) {
1184 result.storeNames_ = storeNames_;
1185 }
1186 if (((from_bitField0_ & 0x00000010) != 0)) {
1187 result.nameCastVariables_ = nameCastVariables_;
1188 }
1189 if (((from_bitField0_ & 0x00000020) != 0)) {
1190 result.nameAllVariables_ = nameAllVariables_;
1191 }
1192 if (((from_bitField0_ & 0x00000040) != 0)) {
1193 result.profilePropagation_ = profilePropagation_;
1194 }
1195 if (((from_bitField0_ & 0x00000080) != 0)) {
1196 result.profileFile_ = profileFile_;
1197 }
1198 if (((from_bitField0_ & 0x00000100) != 0)) {
1199 result.profileLocalSearch_ = profileLocalSearch_;
1200 }
1201 if (((from_bitField0_ & 0x00000200) != 0)) {
1202 result.printLocalSearchProfile_ = printLocalSearchProfile_;
1203 }
1204 if (((from_bitField0_ & 0x00000400) != 0)) {
1205 result.tracePropagation_ = tracePropagation_;
1206 }
1207 if (((from_bitField0_ & 0x00000800) != 0)) {
1208 result.traceSearch_ = traceSearch_;
1209 }
1210 if (((from_bitField0_ & 0x00001000) != 0)) {
1211 result.printModel_ = printModel_;
1212 }
1213 if (((from_bitField0_ & 0x00002000) != 0)) {
1214 result.printModelStats_ = printModelStats_;
1215 }
1216 if (((from_bitField0_ & 0x00004000) != 0)) {
1217 result.printAddedConstraints_ = printAddedConstraints_;
1218 }
1219 if (((from_bitField0_ & 0x00008000) != 0)) {
1220 result.disableSolve_ = disableSolve_;
1221 }
1222 if (((from_bitField0_ & 0x00010000) != 0)) {
1223 result.useSmallTable_ = useSmallTable_;
1224 }
1225 if (((from_bitField0_ & 0x00020000) != 0)) {
1226 result.useCumulativeEdgeFinder_ = useCumulativeEdgeFinder_;
1227 }
1228 if (((from_bitField0_ & 0x00040000) != 0)) {
1229 result.useCumulativeTimeTable_ = useCumulativeTimeTable_;
1230 }
1231 if (((from_bitField0_ & 0x00080000) != 0)) {
1232 result.useCumulativeTimeTableSync_ = useCumulativeTimeTableSync_;
1233 }
1234 if (((from_bitField0_ & 0x00100000) != 0)) {
1235 result.useSequenceHighDemandTasks_ = useSequenceHighDemandTasks_;
1236 }
1237 if (((from_bitField0_ & 0x00200000) != 0)) {
1238 result.useAllPossibleDisjunctions_ = useAllPossibleDisjunctions_;
1239 }
1240 if (((from_bitField0_ & 0x00400000) != 0)) {
1241 result.maxEdgeFinderSize_ = maxEdgeFinderSize_;
1242 }
1243 if (((from_bitField0_ & 0x00800000) != 0)) {
1244 result.diffnUseCumulative_ = diffnUseCumulative_;
1245 }
1246 if (((from_bitField0_ & 0x01000000) != 0)) {
1247 result.useElementRmq_ = useElementRmq_;
1248 }
1249 if (((from_bitField0_ & 0x02000000) != 0)) {
1250 result.skipLocallyOptimalPaths_ = skipLocallyOptimalPaths_;
1251 }
1252 if (((from_bitField0_ & 0x04000000) != 0)) {
1253 result.checkSolutionPeriod_ = checkSolutionPeriod_;
1254 }
1255 }
1256
1257 @java.lang.Override
1258 public Builder mergeFrom(com.google.protobuf.Message other) {
1259 if (other instanceof com.google.ortools.constraintsolver.ConstraintSolverParameters) {
1260 return mergeFrom((com.google.ortools.constraintsolver.ConstraintSolverParameters)other);
1261 } else {
1262 super.mergeFrom(other);
1263 return this;
1264 }
1265 }
1266
1267 public Builder mergeFrom(com.google.ortools.constraintsolver.ConstraintSolverParameters other) {
1268 if (other == com.google.ortools.constraintsolver.ConstraintSolverParameters.getDefaultInstance()) return this;
1269 if (other.compressTrail_ != 0) {
1270 setCompressTrailValue(other.getCompressTrailValue());
1271 }
1272 if (other.getTrailBlockSize() != 0) {
1273 setTrailBlockSize(other.getTrailBlockSize());
1274 }
1275 if (other.getArraySplitSize() != 0) {
1276 setArraySplitSize(other.getArraySplitSize());
1277 }
1278 if (other.getStoreNames() != false) {
1279 setStoreNames(other.getStoreNames());
1280 }
1281 if (other.getNameCastVariables() != false) {
1282 setNameCastVariables(other.getNameCastVariables());
1283 }
1284 if (other.getNameAllVariables() != false) {
1285 setNameAllVariables(other.getNameAllVariables());
1286 }
1287 if (other.getProfilePropagation() != false) {
1288 setProfilePropagation(other.getProfilePropagation());
1289 }
1290 if (!other.getProfileFile().isEmpty()) {
1291 profileFile_ = other.profileFile_;
1292 bitField0_ |= 0x00000080;
1293 onChanged();
1294 }
1295 if (other.getProfileLocalSearch() != false) {
1296 setProfileLocalSearch(other.getProfileLocalSearch());
1297 }
1298 if (other.getPrintLocalSearchProfile() != false) {
1299 setPrintLocalSearchProfile(other.getPrintLocalSearchProfile());
1300 }
1301 if (other.getTracePropagation() != false) {
1302 setTracePropagation(other.getTracePropagation());
1303 }
1304 if (other.getTraceSearch() != false) {
1305 setTraceSearch(other.getTraceSearch());
1306 }
1307 if (other.getPrintModel() != false) {
1308 setPrintModel(other.getPrintModel());
1309 }
1310 if (other.getPrintModelStats() != false) {
1311 setPrintModelStats(other.getPrintModelStats());
1312 }
1313 if (other.getPrintAddedConstraints() != false) {
1314 setPrintAddedConstraints(other.getPrintAddedConstraints());
1315 }
1316 if (other.getDisableSolve() != false) {
1317 setDisableSolve(other.getDisableSolve());
1318 }
1319 if (other.getUseSmallTable() != false) {
1320 setUseSmallTable(other.getUseSmallTable());
1321 }
1322 if (other.getUseCumulativeEdgeFinder() != false) {
1323 setUseCumulativeEdgeFinder(other.getUseCumulativeEdgeFinder());
1324 }
1325 if (other.getUseCumulativeTimeTable() != false) {
1326 setUseCumulativeTimeTable(other.getUseCumulativeTimeTable());
1327 }
1328 if (other.getUseCumulativeTimeTableSync() != false) {
1329 setUseCumulativeTimeTableSync(other.getUseCumulativeTimeTableSync());
1330 }
1331 if (other.getUseSequenceHighDemandTasks() != false) {
1332 setUseSequenceHighDemandTasks(other.getUseSequenceHighDemandTasks());
1333 }
1334 if (other.getUseAllPossibleDisjunctions() != false) {
1335 setUseAllPossibleDisjunctions(other.getUseAllPossibleDisjunctions());
1336 }
1337 if (other.getMaxEdgeFinderSize() != 0) {
1338 setMaxEdgeFinderSize(other.getMaxEdgeFinderSize());
1339 }
1340 if (other.getDiffnUseCumulative() != false) {
1341 setDiffnUseCumulative(other.getDiffnUseCumulative());
1342 }
1343 if (other.getUseElementRmq() != false) {
1344 setUseElementRmq(other.getUseElementRmq());
1345 }
1346 if (other.getSkipLocallyOptimalPaths() != false) {
1347 setSkipLocallyOptimalPaths(other.getSkipLocallyOptimalPaths());
1348 }
1349 if (other.getCheckSolutionPeriod() != 0) {
1350 setCheckSolutionPeriod(other.getCheckSolutionPeriod());
1351 }
1352 this.mergeUnknownFields(other.getUnknownFields());
1353 onChanged();
1354 return this;
1355 }
1356
1357 @java.lang.Override
1358 public final boolean isInitialized() {
1359 return true;
1360 }
1361
1362 @java.lang.Override
1363 public Builder mergeFrom(
1364 com.google.protobuf.CodedInputStream input,
1365 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1366 throws java.io.IOException {
1367 if (extensionRegistry == null) {
1368 throw new java.lang.NullPointerException();
1369 }
1370 try {
1371 boolean done = false;
1372 while (!done) {
1373 int tag = input.readTag();
1374 switch (tag) {
1375 case 0:
1376 done = true;
1377 break;
1378 case 8: {
1379 compressTrail_ = input.readEnum();
1380 bitField0_ |= 0x00000001;
1381 break;
1382 } // case 8
1383 case 16: {
1384 trailBlockSize_ = input.readInt32();
1385 bitField0_ |= 0x00000002;
1386 break;
1387 } // case 16
1388 case 24: {
1389 arraySplitSize_ = input.readInt32();
1390 bitField0_ |= 0x00000004;
1391 break;
1392 } // case 24
1393 case 32: {
1394 storeNames_ = input.readBool();
1395 bitField0_ |= 0x00000008;
1396 break;
1397 } // case 32
1398 case 40: {
1399 nameCastVariables_ = input.readBool();
1400 bitField0_ |= 0x00000010;
1401 break;
1402 } // case 40
1403 case 48: {
1404 nameAllVariables_ = input.readBool();
1405 bitField0_ |= 0x00000020;
1406 break;
1407 } // case 48
1408 case 56: {
1409 profilePropagation_ = input.readBool();
1410 bitField0_ |= 0x00000040;
1411 break;
1412 } // case 56
1413 case 66: {
1414 profileFile_ = input.readStringRequireUtf8();
1415 bitField0_ |= 0x00000080;
1416 break;
1417 } // case 66
1418 case 72: {
1419 tracePropagation_ = input.readBool();
1420 bitField0_ |= 0x00000400;
1421 break;
1422 } // case 72
1423 case 80: {
1424 traceSearch_ = input.readBool();
1425 bitField0_ |= 0x00000800;
1426 break;
1427 } // case 80
1428 case 88: {
1429 printModel_ = input.readBool();
1430 bitField0_ |= 0x00001000;
1431 break;
1432 } // case 88
1433 case 96: {
1434 printModelStats_ = input.readBool();
1435 bitField0_ |= 0x00002000;
1436 break;
1437 } // case 96
1438 case 104: {
1439 printAddedConstraints_ = input.readBool();
1440 bitField0_ |= 0x00004000;
1441 break;
1442 } // case 104
1443 case 120: {
1444 disableSolve_ = input.readBool();
1445 bitField0_ |= 0x00008000;
1446 break;
1447 } // case 120
1448 case 128: {
1449 profileLocalSearch_ = input.readBool();
1450 bitField0_ |= 0x00000100;
1451 break;
1452 } // case 128
1453 case 136: {
1454 printLocalSearchProfile_ = input.readBool();
1455 bitField0_ |= 0x00000200;
1456 break;
1457 } // case 136
1458 case 808: {
1459 useSmallTable_ = input.readBool();
1460 bitField0_ |= 0x00010000;
1461 break;
1462 } // case 808
1463 case 840: {
1464 useCumulativeEdgeFinder_ = input.readBool();
1465 bitField0_ |= 0x00020000;
1466 break;
1467 } // case 840
1468 case 848: {
1469 useCumulativeTimeTable_ = input.readBool();
1470 bitField0_ |= 0x00040000;
1471 break;
1472 } // case 848
1473 case 856: {
1474 useSequenceHighDemandTasks_ = input.readBool();
1475 bitField0_ |= 0x00100000;
1476 break;
1477 } // case 856
1478 case 864: {
1479 useAllPossibleDisjunctions_ = input.readBool();
1480 bitField0_ |= 0x00200000;
1481 break;
1482 } // case 864
1483 case 872: {
1484 maxEdgeFinderSize_ = input.readInt32();
1485 bitField0_ |= 0x00400000;
1486 break;
1487 } // case 872
1488 case 880: {
1489 diffnUseCumulative_ = input.readBool();
1490 bitField0_ |= 0x00800000;
1491 break;
1492 } // case 880
1493 case 888: {
1494 useElementRmq_ = input.readBool();
1495 bitField0_ |= 0x01000000;
1496 break;
1497 } // case 888
1498 case 896: {
1499 useCumulativeTimeTableSync_ = input.readBool();
1500 bitField0_ |= 0x00080000;
1501 break;
1502 } // case 896
1503 case 904: {
1504 skipLocallyOptimalPaths_ = input.readBool();
1505 bitField0_ |= 0x02000000;
1506 break;
1507 } // case 904
1508 case 912: {
1509 checkSolutionPeriod_ = input.readInt32();
1510 bitField0_ |= 0x04000000;
1511 break;
1512 } // case 912
1513 default: {
1514 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1515 done = true; // was an endgroup tag
1516 }
1517 break;
1518 } // default:
1519 } // switch (tag)
1520 } // while (!done)
1521 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1522 throw e.unwrapIOException();
1523 } finally {
1524 onChanged();
1525 } // finally
1526 return this;
1527 }
1528 private int bitField0_;
1529
1530 private int compressTrail_ = 0;
1541 @java.lang.Override public int getCompressTrailValue() {
1542 return compressTrail_;
1543 }
1544
1555 public Builder setCompressTrailValue(int value) {
1556 compressTrail_ = value;
1557 bitField0_ |= 0x00000001;
1558 onChanged();
1559 return this;
1560 }
1561
1571 @java.lang.Override
1573 com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression result = com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression.forNumber(compressTrail_);
1575 }
1576
1587 public Builder setCompressTrail(com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression value) {
1588 if (value == null) { throw new NullPointerException(); }
1589 bitField0_ |= 0x00000001;
1590 compressTrail_ = value.getNumber();
1591 onChanged();
1592 return this;
1593 }
1594
1604 public Builder clearCompressTrail() {
1605 bitField0_ = (bitField0_ & ~0x00000001);
1606 compressTrail_ = 0;
1607 onChanged();
1608 return this;
1609 }
1610
1611 private int trailBlockSize_ ;
1621 @java.lang.Override
1622 public int getTrailBlockSize() {
1623 return trailBlockSize_;
1624 }
1625
1635 public Builder setTrailBlockSize(int value) {
1636
1637 trailBlockSize_ = value;
1638 bitField0_ |= 0x00000002;
1639 onChanged();
1640 return this;
1641 }
1642
1651 public Builder clearTrailBlockSize() {
1652 bitField0_ = (bitField0_ & ~0x00000002);
1653 trailBlockSize_ = 0;
1654 onChanged();
1655 return this;
1656 }
1657
1658 private int arraySplitSize_ ;
1668 @java.lang.Override
1669 public int getArraySplitSize() {
1670 return arraySplitSize_;
1671 }
1672
1682 public Builder setArraySplitSize(int value) {
1683
1684 arraySplitSize_ = value;
1685 bitField0_ |= 0x00000004;
1686 onChanged();
1687 return this;
1688 }
1689
1698 public Builder clearArraySplitSize() {
1699 bitField0_ = (bitField0_ & ~0x00000004);
1700 arraySplitSize_ = 0;
1701 onChanged();
1702 return this;
1703 }
1704
1705 private boolean storeNames_ ;
1715 @java.lang.Override
1716 public boolean getStoreNames() {
1717 return storeNames_;
1718 }
1719
1729 public Builder setStoreNames(boolean value) {
1730
1731 storeNames_ = value;
1732 bitField0_ |= 0x00000008;
1733 onChanged();
1734 return this;
1735 }
1736
1745 public Builder clearStoreNames() {
1746 bitField0_ = (bitField0_ & ~0x00000008);
1747 storeNames_ = false;
1748 onChanged();
1749 return this;
1750 }
1751
1752 private boolean nameCastVariables_ ;
1761 @java.lang.Override
1762 public boolean getNameCastVariables() {
1763 return nameCastVariables_;
1764 }
1765
1774 public Builder setNameCastVariables(boolean value) {
1775
1776 nameCastVariables_ = value;
1777 bitField0_ |= 0x00000010;
1778 onChanged();
1779 return this;
1780 }
1781
1789 public Builder clearNameCastVariables() {
1790 bitField0_ = (bitField0_ & ~0x00000010);
1791 nameCastVariables_ = false;
1792 onChanged();
1793 return this;
1794 }
1795
1796 private boolean nameAllVariables_ ;
1805 @java.lang.Override
1806 public boolean getNameAllVariables() {
1807 return nameAllVariables_;
1808 }
1809
1818 public Builder setNameAllVariables(boolean value) {
1819
1820 nameAllVariables_ = value;
1821 bitField0_ |= 0x00000020;
1822 onChanged();
1823 return this;
1824 }
1825
1833 public Builder clearNameAllVariables() {
1834 bitField0_ = (bitField0_ & ~0x00000020);
1835 nameAllVariables_ = false;
1836 onChanged();
1837 return this;
1838 }
1839
1840 private boolean profilePropagation_ ;
1849 @java.lang.Override
1850 public boolean getProfilePropagation() {
1851 return profilePropagation_;
1852 }
1853
1862 public Builder setProfilePropagation(boolean value) {
1863
1864 profilePropagation_ = value;
1865 bitField0_ |= 0x00000040;
1866 onChanged();
1867 return this;
1868 }
1869
1877 public Builder clearProfilePropagation() {
1878 bitField0_ = (bitField0_ & ~0x00000040);
1879 profilePropagation_ = false;
1880 onChanged();
1881 return this;
1882 }
1883
1884 private java.lang.Object profileFile_ = "";
1893 public java.lang.String getProfileFile() {
1894 java.lang.Object ref = profileFile_;
1895 if (!(ref instanceof java.lang.String)) {
1896 com.google.protobuf.ByteString bs =
1897 (com.google.protobuf.ByteString) ref;
1898 java.lang.String s = bs.toStringUtf8();
1899 profileFile_ = s;
1900 return s;
1901 } else {
1902 return (java.lang.String) ref;
1903 }
1904 }
1905
1913 public com.google.protobuf.ByteString
1915 java.lang.Object ref = profileFile_;
1916 if (ref instanceof String) {
1917 com.google.protobuf.ByteString b =
1918 com.google.protobuf.ByteString.copyFromUtf8(
1919 (java.lang.String) ref);
1920 profileFile_ = b;
1921 return b;
1922 } else {
1923 return (com.google.protobuf.ByteString) ref;
1924 }
1925 }
1926
1935 public Builder setProfileFile(
1936 java.lang.String value) {
1937 if (value == null) { throw new NullPointerException(); }
1938 profileFile_ = value;
1939 bitField0_ |= 0x00000080;
1940 onChanged();
1941 return this;
1942 }
1943
1951 public Builder clearProfileFile() {
1952 profileFile_ = getDefaultInstance().getProfileFile();
1953 bitField0_ = (bitField0_ & ~0x00000080);
1954 onChanged();
1955 return this;
1956 }
1957
1966 public Builder setProfileFileBytes(
1967 com.google.protobuf.ByteString value) {
1968 if (value == null) { throw new NullPointerException(); }
1969 checkByteStringIsUtf8(value);
1970 profileFile_ = value;
1971 bitField0_ |= 0x00000080;
1972 onChanged();
1973 return this;
1974 }
1975
1976 private boolean profileLocalSearch_ ;
1985 @java.lang.Override
1986 public boolean getProfileLocalSearch() {
1987 return profileLocalSearch_;
1988 }
1989
1998 public Builder setProfileLocalSearch(boolean value) {
1999
2000 profileLocalSearch_ = value;
2001 bitField0_ |= 0x00000100;
2002 onChanged();
2003 return this;
2004 }
2005
2013 public Builder clearProfileLocalSearch() {
2014 bitField0_ = (bitField0_ & ~0x00000100);
2015 profileLocalSearch_ = false;
2016 onChanged();
2017 return this;
2018 }
2019
2020 private boolean printLocalSearchProfile_ ;
2029 @java.lang.Override
2031 return printLocalSearchProfile_;
2032 }
2033
2042 public Builder setPrintLocalSearchProfile(boolean value) {
2043
2044 printLocalSearchProfile_ = value;
2045 bitField0_ |= 0x00000200;
2046 onChanged();
2047 return this;
2048 }
2049
2058 bitField0_ = (bitField0_ & ~0x00000200);
2059 printLocalSearchProfile_ = false;
2060 onChanged();
2061 return this;
2062 }
2063
2064 private boolean tracePropagation_ ;
2073 @java.lang.Override
2074 public boolean getTracePropagation() {
2075 return tracePropagation_;
2076 }
2077
2086 public Builder setTracePropagation(boolean value) {
2087
2088 tracePropagation_ = value;
2089 bitField0_ |= 0x00000400;
2090 onChanged();
2091 return this;
2092 }
2093
2101 public Builder clearTracePropagation() {
2102 bitField0_ = (bitField0_ & ~0x00000400);
2103 tracePropagation_ = false;
2104 onChanged();
2105 return this;
2106 }
2107
2108 private boolean traceSearch_ ;
2117 @java.lang.Override
2118 public boolean getTraceSearch() {
2119 return traceSearch_;
2120 }
2121
2130 public Builder setTraceSearch(boolean value) {
2131
2132 traceSearch_ = value;
2133 bitField0_ |= 0x00000800;
2134 onChanged();
2135 return this;
2136 }
2137
2145 public Builder clearTraceSearch() {
2146 bitField0_ = (bitField0_ & ~0x00000800);
2147 traceSearch_ = false;
2148 onChanged();
2149 return this;
2150 }
2151
2152 private boolean printModel_ ;
2161 @java.lang.Override
2162 public boolean getPrintModel() {
2163 return printModel_;
2164 }
2165
2174 public Builder setPrintModel(boolean value) {
2175
2176 printModel_ = value;
2177 bitField0_ |= 0x00001000;
2178 onChanged();
2179 return this;
2180 }
2181
2189 public Builder clearPrintModel() {
2190 bitField0_ = (bitField0_ & ~0x00001000);
2191 printModel_ = false;
2192 onChanged();
2193 return this;
2194 }
2195
2196 private boolean printModelStats_ ;
2205 @java.lang.Override
2206 public boolean getPrintModelStats() {
2207 return printModelStats_;
2208 }
2209
2218 public Builder setPrintModelStats(boolean value) {
2219
2220 printModelStats_ = value;
2221 bitField0_ |= 0x00002000;
2222 onChanged();
2223 return this;
2224 }
2225
2233 public Builder clearPrintModelStats() {
2234 bitField0_ = (bitField0_ & ~0x00002000);
2235 printModelStats_ = false;
2236 onChanged();
2237 return this;
2238 }
2239
2240 private boolean printAddedConstraints_ ;
2249 @java.lang.Override
2250 public boolean getPrintAddedConstraints() {
2251 return printAddedConstraints_;
2252 }
2253
2262 public Builder setPrintAddedConstraints(boolean value) {
2263
2264 printAddedConstraints_ = value;
2265 bitField0_ |= 0x00004000;
2266 onChanged();
2267 return this;
2268 }
2269
2278 bitField0_ = (bitField0_ & ~0x00004000);
2279 printAddedConstraints_ = false;
2280 onChanged();
2281 return this;
2282 }
2283
2284 private boolean disableSolve_ ;
2289 @java.lang.Override
2290 public boolean getDisableSolve() {
2291 return disableSolve_;
2292 }
2293
2298 public Builder setDisableSolve(boolean value) {
2299
2300 disableSolve_ = value;
2301 bitField0_ |= 0x00008000;
2302 onChanged();
2303 return this;
2304 }
2305
2309 public Builder clearDisableSolve() {
2310 bitField0_ = (bitField0_ & ~0x00008000);
2311 disableSolve_ = false;
2312 onChanged();
2313 return this;
2314 }
2315
2316 private boolean useSmallTable_ ;
2326 @java.lang.Override
2327 public boolean getUseSmallTable() {
2328 return useSmallTable_;
2329 }
2330
2340 public Builder setUseSmallTable(boolean value) {
2341
2342 useSmallTable_ = value;
2343 bitField0_ |= 0x00010000;
2344 onChanged();
2345 return this;
2346 }
2347
2356 public Builder clearUseSmallTable() {
2357 bitField0_ = (bitField0_ & ~0x00010000);
2358 useSmallTable_ = false;
2359 onChanged();
2360 return this;
2361 }
2362
2363 private boolean useCumulativeEdgeFinder_ ;
2373 @java.lang.Override
2375 return useCumulativeEdgeFinder_;
2376 }
2377
2387 public Builder setUseCumulativeEdgeFinder(boolean value) {
2388
2389 useCumulativeEdgeFinder_ = value;
2390 bitField0_ |= 0x00020000;
2391 onChanged();
2392 return this;
2393 }
2394
2404 bitField0_ = (bitField0_ & ~0x00020000);
2405 useCumulativeEdgeFinder_ = false;
2406 onChanged();
2407 return this;
2408 }
2409
2410 private boolean useCumulativeTimeTable_ ;
2415 @java.lang.Override
2416 public boolean getUseCumulativeTimeTable() {
2417 return useCumulativeTimeTable_;
2418 }
2419
2424 public Builder setUseCumulativeTimeTable(boolean value) {
2425
2426 useCumulativeTimeTable_ = value;
2427 bitField0_ |= 0x00040000;
2428 onChanged();
2429 return this;
2430 }
2431
2436 bitField0_ = (bitField0_ & ~0x00040000);
2437 useCumulativeTimeTable_ = false;
2438 onChanged();
2439 return this;
2440 }
2441
2442 private boolean useCumulativeTimeTableSync_ ;
2447 @java.lang.Override
2449 return useCumulativeTimeTableSync_;
2450 }
2451
2456 public Builder setUseCumulativeTimeTableSync(boolean value) {
2457
2458 useCumulativeTimeTableSync_ = value;
2459 bitField0_ |= 0x00080000;
2460 onChanged();
2461 return this;
2462 }
2463
2468 bitField0_ = (bitField0_ & ~0x00080000);
2469 useCumulativeTimeTableSync_ = false;
2470 onChanged();
2471 return this;
2472 }
2473
2474 private boolean useSequenceHighDemandTasks_ ;
2479 @java.lang.Override
2481 return useSequenceHighDemandTasks_;
2482 }
2483
2488 public Builder setUseSequenceHighDemandTasks(boolean value) {
2489
2490 useSequenceHighDemandTasks_ = value;
2491 bitField0_ |= 0x00100000;
2492 onChanged();
2493 return this;
2494 }
2495
2500 bitField0_ = (bitField0_ & ~0x00100000);
2501 useSequenceHighDemandTasks_ = false;
2502 onChanged();
2503 return this;
2504 }
2505
2506 private boolean useAllPossibleDisjunctions_ ;
2511 @java.lang.Override
2513 return useAllPossibleDisjunctions_;
2514 }
2515
2520 public Builder setUseAllPossibleDisjunctions(boolean value) {
2521
2522 useAllPossibleDisjunctions_ = value;
2523 bitField0_ |= 0x00200000;
2524 onChanged();
2525 return this;
2526 }
2527
2532 bitField0_ = (bitField0_ & ~0x00200000);
2533 useAllPossibleDisjunctions_ = false;
2534 onChanged();
2535 return this;
2536 }
2537
2538 private int maxEdgeFinderSize_ ;
2543 @java.lang.Override
2545 return maxEdgeFinderSize_;
2546 }
2547
2552 public Builder setMaxEdgeFinderSize(int value) {
2553
2554 maxEdgeFinderSize_ = value;
2555 bitField0_ |= 0x00400000;
2556 onChanged();
2557 return this;
2558 }
2559
2563 public Builder clearMaxEdgeFinderSize() {
2564 bitField0_ = (bitField0_ & ~0x00400000);
2565 maxEdgeFinderSize_ = 0;
2566 onChanged();
2567 return this;
2568 }
2569
2570 private boolean diffnUseCumulative_ ;
2580 @java.lang.Override
2581 public boolean getDiffnUseCumulative() {
2582 return diffnUseCumulative_;
2583 }
2584
2594 public Builder setDiffnUseCumulative(boolean value) {
2595
2596 diffnUseCumulative_ = value;
2597 bitField0_ |= 0x00800000;
2598 onChanged();
2599 return this;
2600 }
2601
2610 public Builder clearDiffnUseCumulative() {
2611 bitField0_ = (bitField0_ & ~0x00800000);
2612 diffnUseCumulative_ = false;
2613 onChanged();
2614 return this;
2615 }
2616
2617 private boolean useElementRmq_ ;
2627 @java.lang.Override
2628 public boolean getUseElementRmq() {
2629 return useElementRmq_;
2630 }
2631
2641 public Builder setUseElementRmq(boolean value) {
2642
2643 useElementRmq_ = value;
2644 bitField0_ |= 0x01000000;
2645 onChanged();
2646 return this;
2647 }
2648
2657 public Builder clearUseElementRmq() {
2658 bitField0_ = (bitField0_ & ~0x01000000);
2659 useElementRmq_ = false;
2660 onChanged();
2661 return this;
2662 }
2663
2664 private boolean skipLocallyOptimalPaths_ ;
2677 @java.lang.Override
2679 return skipLocallyOptimalPaths_;
2680 }
2681
2694 public Builder setSkipLocallyOptimalPaths(boolean value) {
2695
2696 skipLocallyOptimalPaths_ = value;
2697 bitField0_ |= 0x02000000;
2698 onChanged();
2699 return this;
2700 }
2701
2714 bitField0_ = (bitField0_ & ~0x02000000);
2715 skipLocallyOptimalPaths_ = false;
2716 onChanged();
2717 return this;
2718 }
2719
2720 private int checkSolutionPeriod_ ;
2730 @java.lang.Override
2732 return checkSolutionPeriod_;
2733 }
2734
2744 public Builder setCheckSolutionPeriod(int value) {
2745
2746 checkSolutionPeriod_ = value;
2747 bitField0_ |= 0x04000000;
2748 onChanged();
2749 return this;
2750 }
2751
2760 public Builder clearCheckSolutionPeriod() {
2761 bitField0_ = (bitField0_ & ~0x04000000);
2762 checkSolutionPeriod_ = 0;
2763 onChanged();
2764 return this;
2765 }
2766
2767 // @@protoc_insertion_point(builder_scope:operations_research.ConstraintSolverParameters)
2768 }
2769
2770 // @@protoc_insertion_point(class_scope:operations_research.ConstraintSolverParameters)
2771 private static final com.google.ortools.constraintsolver.ConstraintSolverParameters DEFAULT_INSTANCE;
2772 static {
2773 DEFAULT_INSTANCE = new com.google.ortools.constraintsolver.ConstraintSolverParameters();
2774 }
2775
2777 return DEFAULT_INSTANCE;
2778 }
2779
2780 private static final com.google.protobuf.Parser<ConstraintSolverParameters>
2781 PARSER = new com.google.protobuf.AbstractParser<ConstraintSolverParameters>() {
2782 @java.lang.Override
2783 public ConstraintSolverParameters parsePartialFrom(
2784 com.google.protobuf.CodedInputStream input,
2785 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2786 throws com.google.protobuf.InvalidProtocolBufferException {
2787 Builder builder = newBuilder();
2788 try {
2789 builder.mergeFrom(input, extensionRegistry);
2790 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2791 throw e.setUnfinishedMessage(builder.buildPartial());
2792 } catch (com.google.protobuf.UninitializedMessageException e) {
2793 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
2794 } catch (java.io.IOException e) {
2795 throw new com.google.protobuf.InvalidProtocolBufferException(e)
2796 .setUnfinishedMessage(builder.buildPartial());
2797 }
2798 return builder.buildPartial();
2799 }
2800 };
2801
2802 public static com.google.protobuf.Parser<ConstraintSolverParameters> parser() {
2803 return PARSER;
2804 }
2805
2806 @java.lang.Override
2807 public com.google.protobuf.Parser<ConstraintSolverParameters> getParserForType() {
2808 return PARSER;
2809 }
2810
2811 @java.lang.Override
2813 return DEFAULT_INSTANCE;
2814 }
2815
2816}
2817
com.google.ortools.constraintsolver.ConstraintSolverParameters getDefaultInstanceForType()
com.google.ortools.constraintsolver.ConstraintSolverParameters buildPartial()
Builder mergeFrom(com.google.ortools.constraintsolver.ConstraintSolverParameters other)
com.google.ortools.constraintsolver.ConstraintSolverParameters build()
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Builder setCompressTrail(com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression value)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression getCompressTrail()
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(java.nio.ByteBuffer data)
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
static com.google.protobuf.Parser< ConstraintSolverParameters > parser()
static com.google.ortools.constraintsolver.ConstraintSolverParameters getDefaultInstance()
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(java.io.InputStream input)
com.google.ortools.constraintsolver.ConstraintSolverParameters getDefaultInstanceForType()
Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.protobuf.Parser< ConstraintSolverParameters > getParserForType()
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(com.google.protobuf.ByteString data)
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.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(com.google.protobuf.CodedInputStream input)
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseDelimitedFrom(java.io.InputStream input)
com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression getCompressTrail()
static Builder newBuilder(com.google.ortools.constraintsolver.ConstraintSolverParameters prototype)
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
static com.google.protobuf.Internal.EnumLiteMap< TrailCompression > internalGetValueMap()
static TrailCompression valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()