Google OR-Tools v9.9
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// source: ortools/constraint_solver/solver_parameters.proto
3
4// Protobuf Java Version: 3.25.3
5package com.google.ortools.constraintsolver;
6
14public final class ConstraintSolverParameters extends
15 com.google.protobuf.GeneratedMessageV3 implements
16 // @@protoc_insertion_point(message_implements:operations_research.ConstraintSolverParameters)
18private static final long serialVersionUID = 0L;
19 // Use ConstraintSolverParameters.newBuilder() to construct.
20 private ConstraintSolverParameters(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
21 super(builder);
22 }
24 compressTrail_ = 0;
25 profileFile_ = "";
26 }
27
28 @java.lang.Override
29 @SuppressWarnings({"unused"})
30 protected java.lang.Object newInstance(
31 UnusedPrivateParameter unused) {
32 return new ConstraintSolverParameters();
33 }
34
35 public static final com.google.protobuf.Descriptors.Descriptor
37 return com.google.ortools.constraintsolver.SolverParameters.internal_static_operations_research_ConstraintSolverParameters_descriptor;
38 }
39
40 @java.lang.Override
41 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
43 return com.google.ortools.constraintsolver.SolverParameters.internal_static_operations_research_ConstraintSolverParameters_fieldAccessorTable
44 .ensureFieldAccessorsInitialized(
45 com.google.ortools.constraintsolver.ConstraintSolverParameters.class, com.google.ortools.constraintsolver.ConstraintSolverParameters.Builder.class);
46 }
47
56 public enum TrailCompression
57 implements com.google.protobuf.ProtocolMessageEnum {
67 ;
68
72 public static final int NO_COMPRESSION_VALUE = 0;
76 public static final int COMPRESS_WITH_ZLIB_VALUE = 1;
77
78
79 public final int getNumber() {
80 if (this == UNRECOGNIZED) {
81 throw new java.lang.IllegalArgumentException(
82 "Can't get the number of an unknown enum value.");
83 }
84 return value;
85 }
86
92 @java.lang.Deprecated
93 public static TrailCompression valueOf(int value) {
94 return forNumber(value);
95 }
96
101 public static TrailCompression forNumber(int value) {
102 switch (value) {
103 case 0: return NO_COMPRESSION;
104 case 1: return COMPRESS_WITH_ZLIB;
105 default: return null;
106 }
107 }
108
109 public static com.google.protobuf.Internal.EnumLiteMap<TrailCompression>
111 return internalValueMap;
112 }
113 private static final com.google.protobuf.Internal.EnumLiteMap<
114 TrailCompression> internalValueMap =
115 new com.google.protobuf.Internal.EnumLiteMap<TrailCompression>() {
116 public TrailCompression findValueByNumber(int number) {
117 return TrailCompression.forNumber(number);
118 }
119 };
120
121 public final com.google.protobuf.Descriptors.EnumValueDescriptor
123 if (this == UNRECOGNIZED) {
124 throw new java.lang.IllegalStateException(
125 "Can't get the descriptor of an unrecognized enum value.");
126 }
127 return getDescriptor().getValues().get(ordinal());
128 }
129 public final com.google.protobuf.Descriptors.EnumDescriptor
131 return getDescriptor();
132 }
133 public static final com.google.protobuf.Descriptors.EnumDescriptor
135 return com.google.ortools.constraintsolver.ConstraintSolverParameters.getDescriptor().getEnumTypes().get(0);
136 }
137
138 private static final TrailCompression[] VALUES = values();
139
141 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
142 if (desc.getType() != getDescriptor()) {
143 throw new java.lang.IllegalArgumentException(
144 "EnumValueDescriptor is not for this type.");
145 }
146 if (desc.getIndex() == -1) {
147 return UNRECOGNIZED;
148 }
149 return VALUES[desc.getIndex()];
150 }
151
152 private final int value;
153
154 private TrailCompression(int value) {
155 this.value = value;
156 }
157
158 // @@protoc_insertion_point(enum_scope:operations_research.ConstraintSolverParameters.TrailCompression)
159 }
160
161 public static final int COMPRESS_TRAIL_FIELD_NUMBER = 1;
162 private int compressTrail_ = 0;
173 @java.lang.Override public int getCompressTrailValue() {
174 return compressTrail_;
175 }
187 com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression result = com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression.forNumber(compressTrail_);
188 return result == null ? com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression.UNRECOGNIZED : result;
189 }
190
191 public static final int TRAIL_BLOCK_SIZE_FIELD_NUMBER = 2;
192 private int trailBlockSize_ = 0;
202 @java.lang.Override
203 public int getTrailBlockSize() {
204 return trailBlockSize_;
205 }
206
207 public static final int ARRAY_SPLIT_SIZE_FIELD_NUMBER = 3;
208 private int arraySplitSize_ = 0;
218 @java.lang.Override
219 public int getArraySplitSize() {
220 return arraySplitSize_;
221 }
222
223 public static final int STORE_NAMES_FIELD_NUMBER = 4;
224 private boolean storeNames_ = false;
234 @java.lang.Override
235 public boolean getStoreNames() {
236 return storeNames_;
237 }
238
239 public static final int NAME_CAST_VARIABLES_FIELD_NUMBER = 5;
240 private boolean nameCastVariables_ = false;
249 @java.lang.Override
250 public boolean getNameCastVariables() {
251 return nameCastVariables_;
252 }
253
254 public static final int NAME_ALL_VARIABLES_FIELD_NUMBER = 6;
255 private boolean nameAllVariables_ = false;
264 @java.lang.Override
265 public boolean getNameAllVariables() {
266 return nameAllVariables_;
267 }
268
269 public static final int PROFILE_PROPAGATION_FIELD_NUMBER = 7;
270 private boolean profilePropagation_ = false;
279 @java.lang.Override
280 public boolean getProfilePropagation() {
281 return profilePropagation_;
282 }
283
284 public static final int PROFILE_FILE_FIELD_NUMBER = 8;
285 @SuppressWarnings("serial")
286 private volatile java.lang.Object profileFile_ = "";
295 @java.lang.Override
296 public java.lang.String getProfileFile() {
297 java.lang.Object ref = profileFile_;
298 if (ref instanceof java.lang.String) {
299 return (java.lang.String) ref;
300 } else {
301 com.google.protobuf.ByteString bs =
302 (com.google.protobuf.ByteString) ref;
303 java.lang.String s = bs.toStringUtf8();
304 profileFile_ = s;
305 return s;
306 }
307 }
316 @java.lang.Override
317 public com.google.protobuf.ByteString
319 java.lang.Object ref = profileFile_;
320 if (ref instanceof java.lang.String) {
321 com.google.protobuf.ByteString b =
322 com.google.protobuf.ByteString.copyFromUtf8(
323 (java.lang.String) ref);
324 profileFile_ = b;
325 return b;
326 } else {
327 return (com.google.protobuf.ByteString) ref;
328 }
329 }
330
331 public static final int PROFILE_LOCAL_SEARCH_FIELD_NUMBER = 16;
332 private boolean profileLocalSearch_ = false;
341 @java.lang.Override
342 public boolean getProfileLocalSearch() {
343 return profileLocalSearch_;
344 }
345
346 public static final int PRINT_LOCAL_SEARCH_PROFILE_FIELD_NUMBER = 17;
347 private boolean printLocalSearchProfile_ = false;
356 @java.lang.Override
357 public boolean getPrintLocalSearchProfile() {
358 return printLocalSearchProfile_;
359 }
360
361 public static final int TRACE_PROPAGATION_FIELD_NUMBER = 9;
362 private boolean tracePropagation_ = false;
371 @java.lang.Override
372 public boolean getTracePropagation() {
373 return tracePropagation_;
374 }
375
376 public static final int TRACE_SEARCH_FIELD_NUMBER = 10;
377 private boolean traceSearch_ = false;
386 @java.lang.Override
387 public boolean getTraceSearch() {
388 return traceSearch_;
389 }
390
391 public static final int PRINT_MODEL_FIELD_NUMBER = 11;
392 private boolean printModel_ = false;
401 @java.lang.Override
402 public boolean getPrintModel() {
403 return printModel_;
404 }
405
406 public static final int PRINT_MODEL_STATS_FIELD_NUMBER = 12;
407 private boolean printModelStats_ = false;
416 @java.lang.Override
417 public boolean getPrintModelStats() {
418 return printModelStats_;
419 }
420
421 public static final int PRINT_ADDED_CONSTRAINTS_FIELD_NUMBER = 13;
422 private boolean printAddedConstraints_ = false;
431 @java.lang.Override
432 public boolean getPrintAddedConstraints() {
433 return printAddedConstraints_;
434 }
435
436 public static final int DISABLE_SOLVE_FIELD_NUMBER = 15;
437 private boolean disableSolve_ = false;
442 @java.lang.Override
443 public boolean getDisableSolve() {
444 return disableSolve_;
445 }
446
447 public static final int USE_SMALL_TABLE_FIELD_NUMBER = 101;
448 private boolean useSmallTable_ = false;
458 @java.lang.Override
459 public boolean getUseSmallTable() {
460 return useSmallTable_;
461 }
462
463 public static final int USE_CUMULATIVE_EDGE_FINDER_FIELD_NUMBER = 105;
464 private boolean useCumulativeEdgeFinder_ = false;
474 @java.lang.Override
475 public boolean getUseCumulativeEdgeFinder() {
476 return useCumulativeEdgeFinder_;
477 }
478
479 public static final int USE_CUMULATIVE_TIME_TABLE_FIELD_NUMBER = 106;
480 private boolean useCumulativeTimeTable_ = false;
485 @java.lang.Override
486 public boolean getUseCumulativeTimeTable() {
487 return useCumulativeTimeTable_;
488 }
489
490 public static final int USE_CUMULATIVE_TIME_TABLE_SYNC_FIELD_NUMBER = 112;
491 private boolean useCumulativeTimeTableSync_ = false;
496 @java.lang.Override
498 return useCumulativeTimeTableSync_;
499 }
500
501 public static final int USE_SEQUENCE_HIGH_DEMAND_TASKS_FIELD_NUMBER = 107;
502 private boolean useSequenceHighDemandTasks_ = false;
507 @java.lang.Override
509 return useSequenceHighDemandTasks_;
510 }
511
512 public static final int USE_ALL_POSSIBLE_DISJUNCTIONS_FIELD_NUMBER = 108;
513 private boolean useAllPossibleDisjunctions_ = false;
518 @java.lang.Override
520 return useAllPossibleDisjunctions_;
521 }
522
523 public static final int MAX_EDGE_FINDER_SIZE_FIELD_NUMBER = 109;
524 private int maxEdgeFinderSize_ = 0;
529 @java.lang.Override
530 public int getMaxEdgeFinderSize() {
531 return maxEdgeFinderSize_;
532 }
533
534 public static final int DIFFN_USE_CUMULATIVE_FIELD_NUMBER = 110;
535 private boolean diffnUseCumulative_ = false;
545 @java.lang.Override
546 public boolean getDiffnUseCumulative() {
547 return diffnUseCumulative_;
548 }
549
550 public static final int USE_ELEMENT_RMQ_FIELD_NUMBER = 111;
551 private boolean useElementRmq_ = false;
561 @java.lang.Override
562 public boolean getUseElementRmq() {
563 return useElementRmq_;
564 }
565
566 public static final int SKIP_LOCALLY_OPTIMAL_PATHS_FIELD_NUMBER = 113;
567 private boolean skipLocallyOptimalPaths_ = false;
580 @java.lang.Override
581 public boolean getSkipLocallyOptimalPaths() {
582 return skipLocallyOptimalPaths_;
583 }
584
585 public static final int CHECK_SOLUTION_PERIOD_FIELD_NUMBER = 114;
586 private int checkSolutionPeriod_ = 0;
596 @java.lang.Override
598 return checkSolutionPeriod_;
599 }
600
601 private byte memoizedIsInitialized = -1;
602 @java.lang.Override
603 public final boolean isInitialized() {
604 byte isInitialized = memoizedIsInitialized;
605 if (isInitialized == 1) return true;
606 if (isInitialized == 0) return false;
607
608 memoizedIsInitialized = 1;
609 return true;
610 }
611
612 @java.lang.Override
613 public void writeTo(com.google.protobuf.CodedOutputStream output)
614 throws java.io.IOException {
615 if (compressTrail_ != com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression.NO_COMPRESSION.getNumber()) {
616 output.writeEnum(1, compressTrail_);
617 }
618 if (trailBlockSize_ != 0) {
619 output.writeInt32(2, trailBlockSize_);
620 }
621 if (arraySplitSize_ != 0) {
622 output.writeInt32(3, arraySplitSize_);
623 }
624 if (storeNames_ != false) {
625 output.writeBool(4, storeNames_);
626 }
627 if (nameCastVariables_ != false) {
628 output.writeBool(5, nameCastVariables_);
629 }
630 if (nameAllVariables_ != false) {
631 output.writeBool(6, nameAllVariables_);
632 }
633 if (profilePropagation_ != false) {
634 output.writeBool(7, profilePropagation_);
635 }
636 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(profileFile_)) {
637 com.google.protobuf.GeneratedMessageV3.writeString(output, 8, profileFile_);
638 }
639 if (tracePropagation_ != false) {
640 output.writeBool(9, tracePropagation_);
641 }
642 if (traceSearch_ != false) {
643 output.writeBool(10, traceSearch_);
644 }
645 if (printModel_ != false) {
646 output.writeBool(11, printModel_);
647 }
648 if (printModelStats_ != false) {
649 output.writeBool(12, printModelStats_);
650 }
651 if (printAddedConstraints_ != false) {
652 output.writeBool(13, printAddedConstraints_);
653 }
654 if (disableSolve_ != false) {
655 output.writeBool(15, disableSolve_);
656 }
657 if (profileLocalSearch_ != false) {
658 output.writeBool(16, profileLocalSearch_);
659 }
660 if (printLocalSearchProfile_ != false) {
661 output.writeBool(17, printLocalSearchProfile_);
662 }
663 if (useSmallTable_ != false) {
664 output.writeBool(101, useSmallTable_);
665 }
666 if (useCumulativeEdgeFinder_ != false) {
667 output.writeBool(105, useCumulativeEdgeFinder_);
668 }
669 if (useCumulativeTimeTable_ != false) {
670 output.writeBool(106, useCumulativeTimeTable_);
671 }
672 if (useSequenceHighDemandTasks_ != false) {
673 output.writeBool(107, useSequenceHighDemandTasks_);
674 }
675 if (useAllPossibleDisjunctions_ != false) {
676 output.writeBool(108, useAllPossibleDisjunctions_);
677 }
678 if (maxEdgeFinderSize_ != 0) {
679 output.writeInt32(109, maxEdgeFinderSize_);
680 }
681 if (diffnUseCumulative_ != false) {
682 output.writeBool(110, diffnUseCumulative_);
683 }
684 if (useElementRmq_ != false) {
685 output.writeBool(111, useElementRmq_);
686 }
687 if (useCumulativeTimeTableSync_ != false) {
688 output.writeBool(112, useCumulativeTimeTableSync_);
689 }
690 if (skipLocallyOptimalPaths_ != false) {
691 output.writeBool(113, skipLocallyOptimalPaths_);
692 }
693 if (checkSolutionPeriod_ != 0) {
694 output.writeInt32(114, checkSolutionPeriod_);
695 }
696 getUnknownFields().writeTo(output);
697 }
698
699 @java.lang.Override
700 public int getSerializedSize() {
701 int size = memoizedSize;
702 if (size != -1) return size;
703
704 size = 0;
705 if (compressTrail_ != com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression.NO_COMPRESSION.getNumber()) {
706 size += com.google.protobuf.CodedOutputStream
707 .computeEnumSize(1, compressTrail_);
708 }
709 if (trailBlockSize_ != 0) {
710 size += com.google.protobuf.CodedOutputStream
711 .computeInt32Size(2, trailBlockSize_);
712 }
713 if (arraySplitSize_ != 0) {
714 size += com.google.protobuf.CodedOutputStream
715 .computeInt32Size(3, arraySplitSize_);
716 }
717 if (storeNames_ != false) {
718 size += com.google.protobuf.CodedOutputStream
719 .computeBoolSize(4, storeNames_);
720 }
721 if (nameCastVariables_ != false) {
722 size += com.google.protobuf.CodedOutputStream
723 .computeBoolSize(5, nameCastVariables_);
724 }
725 if (nameAllVariables_ != false) {
726 size += com.google.protobuf.CodedOutputStream
727 .computeBoolSize(6, nameAllVariables_);
728 }
729 if (profilePropagation_ != false) {
730 size += com.google.protobuf.CodedOutputStream
731 .computeBoolSize(7, profilePropagation_);
732 }
733 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(profileFile_)) {
734 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, profileFile_);
735 }
736 if (tracePropagation_ != false) {
737 size += com.google.protobuf.CodedOutputStream
738 .computeBoolSize(9, tracePropagation_);
739 }
740 if (traceSearch_ != false) {
741 size += com.google.protobuf.CodedOutputStream
742 .computeBoolSize(10, traceSearch_);
743 }
744 if (printModel_ != false) {
745 size += com.google.protobuf.CodedOutputStream
746 .computeBoolSize(11, printModel_);
747 }
748 if (printModelStats_ != false) {
749 size += com.google.protobuf.CodedOutputStream
750 .computeBoolSize(12, printModelStats_);
751 }
752 if (printAddedConstraints_ != false) {
753 size += com.google.protobuf.CodedOutputStream
754 .computeBoolSize(13, printAddedConstraints_);
755 }
756 if (disableSolve_ != false) {
757 size += com.google.protobuf.CodedOutputStream
758 .computeBoolSize(15, disableSolve_);
759 }
760 if (profileLocalSearch_ != false) {
761 size += com.google.protobuf.CodedOutputStream
762 .computeBoolSize(16, profileLocalSearch_);
763 }
764 if (printLocalSearchProfile_ != false) {
765 size += com.google.protobuf.CodedOutputStream
766 .computeBoolSize(17, printLocalSearchProfile_);
767 }
768 if (useSmallTable_ != false) {
769 size += com.google.protobuf.CodedOutputStream
770 .computeBoolSize(101, useSmallTable_);
771 }
772 if (useCumulativeEdgeFinder_ != false) {
773 size += com.google.protobuf.CodedOutputStream
774 .computeBoolSize(105, useCumulativeEdgeFinder_);
775 }
776 if (useCumulativeTimeTable_ != false) {
777 size += com.google.protobuf.CodedOutputStream
778 .computeBoolSize(106, useCumulativeTimeTable_);
779 }
780 if (useSequenceHighDemandTasks_ != false) {
781 size += com.google.protobuf.CodedOutputStream
782 .computeBoolSize(107, useSequenceHighDemandTasks_);
783 }
784 if (useAllPossibleDisjunctions_ != false) {
785 size += com.google.protobuf.CodedOutputStream
786 .computeBoolSize(108, useAllPossibleDisjunctions_);
787 }
788 if (maxEdgeFinderSize_ != 0) {
789 size += com.google.protobuf.CodedOutputStream
790 .computeInt32Size(109, maxEdgeFinderSize_);
791 }
792 if (diffnUseCumulative_ != false) {
793 size += com.google.protobuf.CodedOutputStream
794 .computeBoolSize(110, diffnUseCumulative_);
795 }
796 if (useElementRmq_ != false) {
797 size += com.google.protobuf.CodedOutputStream
798 .computeBoolSize(111, useElementRmq_);
799 }
800 if (useCumulativeTimeTableSync_ != false) {
801 size += com.google.protobuf.CodedOutputStream
802 .computeBoolSize(112, useCumulativeTimeTableSync_);
803 }
804 if (skipLocallyOptimalPaths_ != false) {
805 size += com.google.protobuf.CodedOutputStream
806 .computeBoolSize(113, skipLocallyOptimalPaths_);
807 }
808 if (checkSolutionPeriod_ != 0) {
809 size += com.google.protobuf.CodedOutputStream
810 .computeInt32Size(114, checkSolutionPeriod_);
811 }
812 size += getUnknownFields().getSerializedSize();
813 memoizedSize = size;
814 return size;
815 }
816
817 @java.lang.Override
818 public boolean equals(final java.lang.Object obj) {
819 if (obj == this) {
820 return true;
821 }
822 if (!(obj instanceof com.google.ortools.constraintsolver.ConstraintSolverParameters)) {
823 return super.equals(obj);
824 }
825 com.google.ortools.constraintsolver.ConstraintSolverParameters other = (com.google.ortools.constraintsolver.ConstraintSolverParameters) obj;
826
827 if (compressTrail_ != other.compressTrail_) return false;
829 != other.getTrailBlockSize()) return false;
831 != other.getArraySplitSize()) return false;
832 if (getStoreNames()
833 != other.getStoreNames()) return false;
835 != other.getNameCastVariables()) return false;
837 != other.getNameAllVariables()) return false;
839 != other.getProfilePropagation()) return false;
840 if (!getProfileFile()
841 .equals(other.getProfileFile())) return false;
843 != other.getProfileLocalSearch()) return false;
845 != other.getPrintLocalSearchProfile()) return false;
847 != other.getTracePropagation()) return false;
848 if (getTraceSearch()
849 != other.getTraceSearch()) return false;
850 if (getPrintModel()
851 != other.getPrintModel()) return false;
853 != other.getPrintModelStats()) return false;
855 != other.getPrintAddedConstraints()) return false;
856 if (getDisableSolve()
857 != other.getDisableSolve()) return false;
858 if (getUseSmallTable()
859 != other.getUseSmallTable()) return false;
861 != other.getUseCumulativeEdgeFinder()) return false;
863 != other.getUseCumulativeTimeTable()) return false;
865 != other.getUseCumulativeTimeTableSync()) return false;
867 != other.getUseSequenceHighDemandTasks()) return false;
869 != other.getUseAllPossibleDisjunctions()) return false;
871 != other.getMaxEdgeFinderSize()) return false;
873 != other.getDiffnUseCumulative()) return false;
874 if (getUseElementRmq()
875 != other.getUseElementRmq()) return false;
877 != other.getSkipLocallyOptimalPaths()) return false;
879 != other.getCheckSolutionPeriod()) return false;
880 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
881 return true;
882 }
883
884 @java.lang.Override
885 public int hashCode() {
886 if (memoizedHashCode != 0) {
887 return memoizedHashCode;
888 }
889 int hash = 41;
890 hash = (19 * hash) + getDescriptor().hashCode();
891 hash = (37 * hash) + COMPRESS_TRAIL_FIELD_NUMBER;
892 hash = (53 * hash) + compressTrail_;
893 hash = (37 * hash) + TRAIL_BLOCK_SIZE_FIELD_NUMBER;
894 hash = (53 * hash) + getTrailBlockSize();
895 hash = (37 * hash) + ARRAY_SPLIT_SIZE_FIELD_NUMBER;
896 hash = (53 * hash) + getArraySplitSize();
897 hash = (37 * hash) + STORE_NAMES_FIELD_NUMBER;
898 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
899 getStoreNames());
900 hash = (37 * hash) + NAME_CAST_VARIABLES_FIELD_NUMBER;
901 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
903 hash = (37 * hash) + NAME_ALL_VARIABLES_FIELD_NUMBER;
904 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
906 hash = (37 * hash) + PROFILE_PROPAGATION_FIELD_NUMBER;
907 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
909 hash = (37 * hash) + PROFILE_FILE_FIELD_NUMBER;
910 hash = (53 * hash) + getProfileFile().hashCode();
911 hash = (37 * hash) + PROFILE_LOCAL_SEARCH_FIELD_NUMBER;
912 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
914 hash = (37 * hash) + PRINT_LOCAL_SEARCH_PROFILE_FIELD_NUMBER;
915 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
917 hash = (37 * hash) + TRACE_PROPAGATION_FIELD_NUMBER;
918 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
920 hash = (37 * hash) + TRACE_SEARCH_FIELD_NUMBER;
921 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
923 hash = (37 * hash) + PRINT_MODEL_FIELD_NUMBER;
924 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
925 getPrintModel());
926 hash = (37 * hash) + PRINT_MODEL_STATS_FIELD_NUMBER;
927 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
929 hash = (37 * hash) + PRINT_ADDED_CONSTRAINTS_FIELD_NUMBER;
930 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
932 hash = (37 * hash) + DISABLE_SOLVE_FIELD_NUMBER;
933 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
935 hash = (37 * hash) + USE_SMALL_TABLE_FIELD_NUMBER;
936 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
938 hash = (37 * hash) + USE_CUMULATIVE_EDGE_FINDER_FIELD_NUMBER;
939 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
941 hash = (37 * hash) + USE_CUMULATIVE_TIME_TABLE_FIELD_NUMBER;
942 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
945 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
948 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
951 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
953 hash = (37 * hash) + MAX_EDGE_FINDER_SIZE_FIELD_NUMBER;
954 hash = (53 * hash) + getMaxEdgeFinderSize();
955 hash = (37 * hash) + DIFFN_USE_CUMULATIVE_FIELD_NUMBER;
956 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
958 hash = (37 * hash) + USE_ELEMENT_RMQ_FIELD_NUMBER;
959 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
961 hash = (37 * hash) + SKIP_LOCALLY_OPTIMAL_PATHS_FIELD_NUMBER;
962 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
964 hash = (37 * hash) + CHECK_SOLUTION_PERIOD_FIELD_NUMBER;
965 hash = (53 * hash) + getCheckSolutionPeriod();
966 hash = (29 * hash) + getUnknownFields().hashCode();
967 memoizedHashCode = hash;
968 return hash;
969 }
970
972 java.nio.ByteBuffer data)
973 throws com.google.protobuf.InvalidProtocolBufferException {
974 return PARSER.parseFrom(data);
975 }
977 java.nio.ByteBuffer data,
978 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
979 throws com.google.protobuf.InvalidProtocolBufferException {
980 return PARSER.parseFrom(data, extensionRegistry);
981 }
983 com.google.protobuf.ByteString data)
984 throws com.google.protobuf.InvalidProtocolBufferException {
985 return PARSER.parseFrom(data);
986 }
988 com.google.protobuf.ByteString data,
989 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
990 throws com.google.protobuf.InvalidProtocolBufferException {
991 return PARSER.parseFrom(data, extensionRegistry);
992 }
994 throws com.google.protobuf.InvalidProtocolBufferException {
995 return PARSER.parseFrom(data);
996 }
998 byte[] data,
999 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1000 throws com.google.protobuf.InvalidProtocolBufferException {
1001 return PARSER.parseFrom(data, extensionRegistry);
1002 }
1004 throws java.io.IOException {
1005 return com.google.protobuf.GeneratedMessageV3
1006 .parseWithIOException(PARSER, input);
1007 }
1009 java.io.InputStream input,
1010 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1011 throws java.io.IOException {
1012 return com.google.protobuf.GeneratedMessageV3
1013 .parseWithIOException(PARSER, input, extensionRegistry);
1014 }
1015
1017 throws java.io.IOException {
1018 return com.google.protobuf.GeneratedMessageV3
1019 .parseDelimitedWithIOException(PARSER, input);
1020 }
1021
1023 java.io.InputStream input,
1024 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1025 throws java.io.IOException {
1026 return com.google.protobuf.GeneratedMessageV3
1027 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
1028 }
1030 com.google.protobuf.CodedInputStream input)
1031 throws java.io.IOException {
1032 return com.google.protobuf.GeneratedMessageV3
1033 .parseWithIOException(PARSER, input);
1034 }
1036 com.google.protobuf.CodedInputStream input,
1037 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1038 throws java.io.IOException {
1039 return com.google.protobuf.GeneratedMessageV3
1040 .parseWithIOException(PARSER, input, extensionRegistry);
1041 }
1042
1043 @java.lang.Override
1044 public Builder newBuilderForType() { return newBuilder(); }
1045 public static Builder newBuilder() {
1046 return DEFAULT_INSTANCE.toBuilder();
1047 }
1048 public static Builder newBuilder(com.google.ortools.constraintsolver.ConstraintSolverParameters prototype) {
1049 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1050 }
1051 @java.lang.Override
1053 return this == DEFAULT_INSTANCE
1054 ? new Builder() : new Builder().mergeFrom(this);
1055 }
1056
1057 @java.lang.Override
1059 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1060 Builder builder = new Builder(parent);
1061 return builder;
1062 }
1070 public static final class Builder extends
1071 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
1072 // @@protoc_insertion_point(builder_implements:operations_research.ConstraintSolverParameters)
1073 com.google.ortools.constraintsolver.ConstraintSolverParametersOrBuilder {
1074 public static final com.google.protobuf.Descriptors.Descriptor
1076 return com.google.ortools.constraintsolver.SolverParameters.internal_static_operations_research_ConstraintSolverParameters_descriptor;
1077 }
1078
1079 @java.lang.Override
1080 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
1082 return com.google.ortools.constraintsolver.SolverParameters.internal_static_operations_research_ConstraintSolverParameters_fieldAccessorTable
1083 .ensureFieldAccessorsInitialized(
1084 com.google.ortools.constraintsolver.ConstraintSolverParameters.class, com.google.ortools.constraintsolver.ConstraintSolverParameters.Builder.class);
1085 }
1086
1087 // Construct using com.google.ortools.constraintsolver.ConstraintSolverParameters.newBuilder()
1088 private Builder() {
1089
1090 }
1091
1092 private Builder(
1093 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1094 super(parent);
1095
1096 }
1097 @java.lang.Override
1098 public Builder clear() {
1099 super.clear();
1100 bitField0_ = 0;
1101 compressTrail_ = 0;
1102 trailBlockSize_ = 0;
1103 arraySplitSize_ = 0;
1104 storeNames_ = false;
1105 nameCastVariables_ = false;
1106 nameAllVariables_ = false;
1107 profilePropagation_ = false;
1108 profileFile_ = "";
1109 profileLocalSearch_ = false;
1110 printLocalSearchProfile_ = false;
1111 tracePropagation_ = false;
1112 traceSearch_ = false;
1113 printModel_ = false;
1114 printModelStats_ = false;
1115 printAddedConstraints_ = false;
1116 disableSolve_ = false;
1117 useSmallTable_ = false;
1118 useCumulativeEdgeFinder_ = false;
1119 useCumulativeTimeTable_ = false;
1120 useCumulativeTimeTableSync_ = false;
1121 useSequenceHighDemandTasks_ = false;
1122 useAllPossibleDisjunctions_ = false;
1123 maxEdgeFinderSize_ = 0;
1124 diffnUseCumulative_ = false;
1125 useElementRmq_ = false;
1126 skipLocallyOptimalPaths_ = false;
1127 checkSolutionPeriod_ = 0;
1128 return this;
1129 }
1130
1131 @java.lang.Override
1132 public com.google.protobuf.Descriptors.Descriptor
1134 return com.google.ortools.constraintsolver.SolverParameters.internal_static_operations_research_ConstraintSolverParameters_descriptor;
1135 }
1136
1137 @java.lang.Override
1139 return com.google.ortools.constraintsolver.ConstraintSolverParameters.getDefaultInstance();
1140 }
1141
1142 @java.lang.Override
1145 if (!result.isInitialized()) {
1146 throw newUninitializedMessageException(result);
1147 }
1148 return result;
1149 }
1150
1151 @java.lang.Override
1153 com.google.ortools.constraintsolver.ConstraintSolverParameters result = new com.google.ortools.constraintsolver.ConstraintSolverParameters(this);
1154 if (bitField0_ != 0) { buildPartial0(result); }
1155 onBuilt();
1156 return result;
1157 }
1158
1159 private void buildPartial0(com.google.ortools.constraintsolver.ConstraintSolverParameters result) {
1160 int from_bitField0_ = bitField0_;
1161 if (((from_bitField0_ & 0x00000001) != 0)) {
1162 result.compressTrail_ = compressTrail_;
1163 }
1164 if (((from_bitField0_ & 0x00000002) != 0)) {
1165 result.trailBlockSize_ = trailBlockSize_;
1166 }
1167 if (((from_bitField0_ & 0x00000004) != 0)) {
1168 result.arraySplitSize_ = arraySplitSize_;
1169 }
1170 if (((from_bitField0_ & 0x00000008) != 0)) {
1171 result.storeNames_ = storeNames_;
1172 }
1173 if (((from_bitField0_ & 0x00000010) != 0)) {
1174 result.nameCastVariables_ = nameCastVariables_;
1175 }
1176 if (((from_bitField0_ & 0x00000020) != 0)) {
1177 result.nameAllVariables_ = nameAllVariables_;
1178 }
1179 if (((from_bitField0_ & 0x00000040) != 0)) {
1180 result.profilePropagation_ = profilePropagation_;
1181 }
1182 if (((from_bitField0_ & 0x00000080) != 0)) {
1183 result.profileFile_ = profileFile_;
1184 }
1185 if (((from_bitField0_ & 0x00000100) != 0)) {
1186 result.profileLocalSearch_ = profileLocalSearch_;
1187 }
1188 if (((from_bitField0_ & 0x00000200) != 0)) {
1189 result.printLocalSearchProfile_ = printLocalSearchProfile_;
1190 }
1191 if (((from_bitField0_ & 0x00000400) != 0)) {
1192 result.tracePropagation_ = tracePropagation_;
1193 }
1194 if (((from_bitField0_ & 0x00000800) != 0)) {
1195 result.traceSearch_ = traceSearch_;
1196 }
1197 if (((from_bitField0_ & 0x00001000) != 0)) {
1198 result.printModel_ = printModel_;
1199 }
1200 if (((from_bitField0_ & 0x00002000) != 0)) {
1201 result.printModelStats_ = printModelStats_;
1202 }
1203 if (((from_bitField0_ & 0x00004000) != 0)) {
1204 result.printAddedConstraints_ = printAddedConstraints_;
1205 }
1206 if (((from_bitField0_ & 0x00008000) != 0)) {
1207 result.disableSolve_ = disableSolve_;
1208 }
1209 if (((from_bitField0_ & 0x00010000) != 0)) {
1210 result.useSmallTable_ = useSmallTable_;
1211 }
1212 if (((from_bitField0_ & 0x00020000) != 0)) {
1213 result.useCumulativeEdgeFinder_ = useCumulativeEdgeFinder_;
1214 }
1215 if (((from_bitField0_ & 0x00040000) != 0)) {
1216 result.useCumulativeTimeTable_ = useCumulativeTimeTable_;
1217 }
1218 if (((from_bitField0_ & 0x00080000) != 0)) {
1219 result.useCumulativeTimeTableSync_ = useCumulativeTimeTableSync_;
1220 }
1221 if (((from_bitField0_ & 0x00100000) != 0)) {
1222 result.useSequenceHighDemandTasks_ = useSequenceHighDemandTasks_;
1223 }
1224 if (((from_bitField0_ & 0x00200000) != 0)) {
1225 result.useAllPossibleDisjunctions_ = useAllPossibleDisjunctions_;
1226 }
1227 if (((from_bitField0_ & 0x00400000) != 0)) {
1228 result.maxEdgeFinderSize_ = maxEdgeFinderSize_;
1229 }
1230 if (((from_bitField0_ & 0x00800000) != 0)) {
1231 result.diffnUseCumulative_ = diffnUseCumulative_;
1232 }
1233 if (((from_bitField0_ & 0x01000000) != 0)) {
1234 result.useElementRmq_ = useElementRmq_;
1235 }
1236 if (((from_bitField0_ & 0x02000000) != 0)) {
1237 result.skipLocallyOptimalPaths_ = skipLocallyOptimalPaths_;
1238 }
1239 if (((from_bitField0_ & 0x04000000) != 0)) {
1240 result.checkSolutionPeriod_ = checkSolutionPeriod_;
1241 }
1242 }
1243
1244 @java.lang.Override
1245 public Builder clone() {
1246 return super.clone();
1247 }
1248 @java.lang.Override
1250 com.google.protobuf.Descriptors.FieldDescriptor field,
1251 java.lang.Object value) {
1252 return super.setField(field, value);
1253 }
1254 @java.lang.Override
1256 com.google.protobuf.Descriptors.FieldDescriptor field) {
1257 return super.clearField(field);
1258 }
1259 @java.lang.Override
1261 com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1262 return super.clearOneof(oneof);
1263 }
1264 @java.lang.Override
1266 com.google.protobuf.Descriptors.FieldDescriptor field,
1267 int index, java.lang.Object value) {
1268 return super.setRepeatedField(field, index, value);
1269 }
1270 @java.lang.Override
1272 com.google.protobuf.Descriptors.FieldDescriptor field,
1273 java.lang.Object value) {
1274 return super.addRepeatedField(field, value);
1275 }
1276 @java.lang.Override
1277 public Builder mergeFrom(com.google.protobuf.Message other) {
1278 if (other instanceof com.google.ortools.constraintsolver.ConstraintSolverParameters) {
1279 return mergeFrom((com.google.ortools.constraintsolver.ConstraintSolverParameters)other);
1280 } else {
1281 super.mergeFrom(other);
1282 return this;
1283 }
1284 }
1285
1286 public Builder mergeFrom(com.google.ortools.constraintsolver.ConstraintSolverParameters other) {
1287 if (other == com.google.ortools.constraintsolver.ConstraintSolverParameters.getDefaultInstance()) return this;
1288 if (other.compressTrail_ != 0) {
1289 setCompressTrailValue(other.getCompressTrailValue());
1290 }
1291 if (other.getTrailBlockSize() != 0) {
1292 setTrailBlockSize(other.getTrailBlockSize());
1293 }
1294 if (other.getArraySplitSize() != 0) {
1295 setArraySplitSize(other.getArraySplitSize());
1296 }
1297 if (other.getStoreNames() != false) {
1298 setStoreNames(other.getStoreNames());
1299 }
1300 if (other.getNameCastVariables() != false) {
1301 setNameCastVariables(other.getNameCastVariables());
1302 }
1303 if (other.getNameAllVariables() != false) {
1304 setNameAllVariables(other.getNameAllVariables());
1305 }
1306 if (other.getProfilePropagation() != false) {
1307 setProfilePropagation(other.getProfilePropagation());
1308 }
1309 if (!other.getProfileFile().isEmpty()) {
1310 profileFile_ = other.profileFile_;
1311 bitField0_ |= 0x00000080;
1312 onChanged();
1313 }
1314 if (other.getProfileLocalSearch() != false) {
1315 setProfileLocalSearch(other.getProfileLocalSearch());
1316 }
1317 if (other.getPrintLocalSearchProfile() != false) {
1318 setPrintLocalSearchProfile(other.getPrintLocalSearchProfile());
1319 }
1320 if (other.getTracePropagation() != false) {
1321 setTracePropagation(other.getTracePropagation());
1322 }
1323 if (other.getTraceSearch() != false) {
1324 setTraceSearch(other.getTraceSearch());
1325 }
1326 if (other.getPrintModel() != false) {
1327 setPrintModel(other.getPrintModel());
1328 }
1329 if (other.getPrintModelStats() != false) {
1330 setPrintModelStats(other.getPrintModelStats());
1331 }
1332 if (other.getPrintAddedConstraints() != false) {
1333 setPrintAddedConstraints(other.getPrintAddedConstraints());
1334 }
1335 if (other.getDisableSolve() != false) {
1336 setDisableSolve(other.getDisableSolve());
1337 }
1338 if (other.getUseSmallTable() != false) {
1339 setUseSmallTable(other.getUseSmallTable());
1340 }
1341 if (other.getUseCumulativeEdgeFinder() != false) {
1342 setUseCumulativeEdgeFinder(other.getUseCumulativeEdgeFinder());
1343 }
1344 if (other.getUseCumulativeTimeTable() != false) {
1345 setUseCumulativeTimeTable(other.getUseCumulativeTimeTable());
1346 }
1347 if (other.getUseCumulativeTimeTableSync() != false) {
1348 setUseCumulativeTimeTableSync(other.getUseCumulativeTimeTableSync());
1349 }
1350 if (other.getUseSequenceHighDemandTasks() != false) {
1351 setUseSequenceHighDemandTasks(other.getUseSequenceHighDemandTasks());
1352 }
1353 if (other.getUseAllPossibleDisjunctions() != false) {
1354 setUseAllPossibleDisjunctions(other.getUseAllPossibleDisjunctions());
1355 }
1356 if (other.getMaxEdgeFinderSize() != 0) {
1357 setMaxEdgeFinderSize(other.getMaxEdgeFinderSize());
1358 }
1359 if (other.getDiffnUseCumulative() != false) {
1360 setDiffnUseCumulative(other.getDiffnUseCumulative());
1361 }
1362 if (other.getUseElementRmq() != false) {
1363 setUseElementRmq(other.getUseElementRmq());
1364 }
1365 if (other.getSkipLocallyOptimalPaths() != false) {
1366 setSkipLocallyOptimalPaths(other.getSkipLocallyOptimalPaths());
1367 }
1368 if (other.getCheckSolutionPeriod() != 0) {
1369 setCheckSolutionPeriod(other.getCheckSolutionPeriod());
1370 }
1371 this.mergeUnknownFields(other.getUnknownFields());
1372 onChanged();
1373 return this;
1374 }
1375
1376 @java.lang.Override
1377 public final boolean isInitialized() {
1378 return true;
1379 }
1380
1381 @java.lang.Override
1383 com.google.protobuf.CodedInputStream input,
1384 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1385 throws java.io.IOException {
1386 if (extensionRegistry == null) {
1387 throw new java.lang.NullPointerException();
1388 }
1389 try {
1390 boolean done = false;
1391 while (!done) {
1392 int tag = input.readTag();
1393 switch (tag) {
1394 case 0:
1395 done = true;
1396 break;
1397 case 8: {
1398 compressTrail_ = input.readEnum();
1399 bitField0_ |= 0x00000001;
1400 break;
1401 } // case 8
1402 case 16: {
1403 trailBlockSize_ = input.readInt32();
1404 bitField0_ |= 0x00000002;
1405 break;
1406 } // case 16
1407 case 24: {
1408 arraySplitSize_ = input.readInt32();
1409 bitField0_ |= 0x00000004;
1410 break;
1411 } // case 24
1412 case 32: {
1413 storeNames_ = input.readBool();
1414 bitField0_ |= 0x00000008;
1415 break;
1416 } // case 32
1417 case 40: {
1418 nameCastVariables_ = input.readBool();
1419 bitField0_ |= 0x00000010;
1420 break;
1421 } // case 40
1422 case 48: {
1423 nameAllVariables_ = input.readBool();
1424 bitField0_ |= 0x00000020;
1425 break;
1426 } // case 48
1427 case 56: {
1428 profilePropagation_ = input.readBool();
1429 bitField0_ |= 0x00000040;
1430 break;
1431 } // case 56
1432 case 66: {
1433 profileFile_ = input.readStringRequireUtf8();
1434 bitField0_ |= 0x00000080;
1435 break;
1436 } // case 66
1437 case 72: {
1438 tracePropagation_ = input.readBool();
1439 bitField0_ |= 0x00000400;
1440 break;
1441 } // case 72
1442 case 80: {
1443 traceSearch_ = input.readBool();
1444 bitField0_ |= 0x00000800;
1445 break;
1446 } // case 80
1447 case 88: {
1448 printModel_ = input.readBool();
1449 bitField0_ |= 0x00001000;
1450 break;
1451 } // case 88
1452 case 96: {
1453 printModelStats_ = input.readBool();
1454 bitField0_ |= 0x00002000;
1455 break;
1456 } // case 96
1457 case 104: {
1458 printAddedConstraints_ = input.readBool();
1459 bitField0_ |= 0x00004000;
1460 break;
1461 } // case 104
1462 case 120: {
1463 disableSolve_ = input.readBool();
1464 bitField0_ |= 0x00008000;
1465 break;
1466 } // case 120
1467 case 128: {
1468 profileLocalSearch_ = input.readBool();
1469 bitField0_ |= 0x00000100;
1470 break;
1471 } // case 128
1472 case 136: {
1473 printLocalSearchProfile_ = input.readBool();
1474 bitField0_ |= 0x00000200;
1475 break;
1476 } // case 136
1477 case 808: {
1478 useSmallTable_ = input.readBool();
1479 bitField0_ |= 0x00010000;
1480 break;
1481 } // case 808
1482 case 840: {
1483 useCumulativeEdgeFinder_ = input.readBool();
1484 bitField0_ |= 0x00020000;
1485 break;
1486 } // case 840
1487 case 848: {
1488 useCumulativeTimeTable_ = input.readBool();
1489 bitField0_ |= 0x00040000;
1490 break;
1491 } // case 848
1492 case 856: {
1493 useSequenceHighDemandTasks_ = input.readBool();
1494 bitField0_ |= 0x00100000;
1495 break;
1496 } // case 856
1497 case 864: {
1498 useAllPossibleDisjunctions_ = input.readBool();
1499 bitField0_ |= 0x00200000;
1500 break;
1501 } // case 864
1502 case 872: {
1503 maxEdgeFinderSize_ = input.readInt32();
1504 bitField0_ |= 0x00400000;
1505 break;
1506 } // case 872
1507 case 880: {
1508 diffnUseCumulative_ = input.readBool();
1509 bitField0_ |= 0x00800000;
1510 break;
1511 } // case 880
1512 case 888: {
1513 useElementRmq_ = input.readBool();
1514 bitField0_ |= 0x01000000;
1515 break;
1516 } // case 888
1517 case 896: {
1518 useCumulativeTimeTableSync_ = input.readBool();
1519 bitField0_ |= 0x00080000;
1520 break;
1521 } // case 896
1522 case 904: {
1523 skipLocallyOptimalPaths_ = input.readBool();
1524 bitField0_ |= 0x02000000;
1525 break;
1526 } // case 904
1527 case 912: {
1528 checkSolutionPeriod_ = input.readInt32();
1529 bitField0_ |= 0x04000000;
1530 break;
1531 } // case 912
1532 default: {
1533 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1534 done = true; // was an endgroup tag
1535 }
1536 break;
1537 } // default:
1538 } // switch (tag)
1539 } // while (!done)
1540 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1541 throw e.unwrapIOException();
1542 } finally {
1543 onChanged();
1544 } // finally
1545 return this;
1546 }
1547 private int bitField0_;
1548
1549 private int compressTrail_ = 0;
1560 @java.lang.Override public int getCompressTrailValue() {
1561 return compressTrail_;
1562 }
1574 public Builder setCompressTrailValue(int value) {
1575 compressTrail_ = value;
1576 bitField0_ |= 0x00000001;
1577 onChanged();
1578 return this;
1579 }
1590 @java.lang.Override
1592 com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression result = com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression.forNumber(compressTrail_);
1593 return result == null ? com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression.UNRECOGNIZED : result;
1594 }
1606 public Builder setCompressTrail(com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression value) {
1607 if (value == null) {
1608 throw new NullPointerException();
1609 }
1610 bitField0_ |= 0x00000001;
1611 compressTrail_ = value.getNumber();
1612 onChanged();
1613 return this;
1614 }
1626 bitField0_ = (bitField0_ & ~0x00000001);
1627 compressTrail_ = 0;
1628 onChanged();
1629 return this;
1630 }
1631
1632 private int trailBlockSize_ ;
1642 @java.lang.Override
1643 public int getTrailBlockSize() {
1644 return trailBlockSize_;
1645 }
1656 public Builder setTrailBlockSize(int value) {
1657
1658 trailBlockSize_ = value;
1659 bitField0_ |= 0x00000002;
1660 onChanged();
1661 return this;
1662 }
1673 bitField0_ = (bitField0_ & ~0x00000002);
1674 trailBlockSize_ = 0;
1675 onChanged();
1676 return this;
1677 }
1678
1679 private int arraySplitSize_ ;
1689 @java.lang.Override
1690 public int getArraySplitSize() {
1691 return arraySplitSize_;
1692 }
1703 public Builder setArraySplitSize(int value) {
1704
1705 arraySplitSize_ = value;
1706 bitField0_ |= 0x00000004;
1707 onChanged();
1708 return this;
1709 }
1720 bitField0_ = (bitField0_ & ~0x00000004);
1721 arraySplitSize_ = 0;
1722 onChanged();
1723 return this;
1724 }
1725
1726 private boolean storeNames_ ;
1736 @java.lang.Override
1737 public boolean getStoreNames() {
1738 return storeNames_;
1739 }
1750 public Builder setStoreNames(boolean value) {
1751
1752 storeNames_ = value;
1753 bitField0_ |= 0x00000008;
1754 onChanged();
1755 return this;
1756 }
1767 bitField0_ = (bitField0_ & ~0x00000008);
1768 storeNames_ = false;
1769 onChanged();
1770 return this;
1771 }
1772
1773 private boolean nameCastVariables_ ;
1782 @java.lang.Override
1783 public boolean getNameCastVariables() {
1784 return nameCastVariables_;
1785 }
1795 public Builder setNameCastVariables(boolean value) {
1796
1797 nameCastVariables_ = value;
1798 bitField0_ |= 0x00000010;
1799 onChanged();
1800 return this;
1801 }
1811 bitField0_ = (bitField0_ & ~0x00000010);
1812 nameCastVariables_ = false;
1813 onChanged();
1814 return this;
1815 }
1816
1817 private boolean nameAllVariables_ ;
1826 @java.lang.Override
1827 public boolean getNameAllVariables() {
1828 return nameAllVariables_;
1829 }
1839 public Builder setNameAllVariables(boolean value) {
1840
1841 nameAllVariables_ = value;
1842 bitField0_ |= 0x00000020;
1843 onChanged();
1844 return this;
1845 }
1855 bitField0_ = (bitField0_ & ~0x00000020);
1856 nameAllVariables_ = false;
1857 onChanged();
1858 return this;
1859 }
1860
1861 private boolean profilePropagation_ ;
1870 @java.lang.Override
1871 public boolean getProfilePropagation() {
1872 return profilePropagation_;
1873 }
1883 public Builder setProfilePropagation(boolean value) {
1884
1885 profilePropagation_ = value;
1886 bitField0_ |= 0x00000040;
1887 onChanged();
1888 return this;
1889 }
1899 bitField0_ = (bitField0_ & ~0x00000040);
1900 profilePropagation_ = false;
1901 onChanged();
1902 return this;
1903 }
1904
1905 private java.lang.Object profileFile_ = "";
1914 public java.lang.String getProfileFile() {
1915 java.lang.Object ref = profileFile_;
1916 if (!(ref instanceof java.lang.String)) {
1917 com.google.protobuf.ByteString bs =
1918 (com.google.protobuf.ByteString) ref;
1919 java.lang.String s = bs.toStringUtf8();
1920 profileFile_ = s;
1921 return s;
1922 } else {
1923 return (java.lang.String) ref;
1924 }
1925 }
1934 public com.google.protobuf.ByteString
1936 java.lang.Object ref = profileFile_;
1937 if (ref instanceof String) {
1938 com.google.protobuf.ByteString b =
1939 com.google.protobuf.ByteString.copyFromUtf8(
1940 (java.lang.String) ref);
1941 profileFile_ = b;
1942 return b;
1943 } else {
1944 return (com.google.protobuf.ByteString) ref;
1945 }
1946 }
1957 java.lang.String value) {
1958 if (value == null) { throw new NullPointerException(); }
1959 profileFile_ = value;
1960 bitField0_ |= 0x00000080;
1961 onChanged();
1962 return this;
1963 }
1973 profileFile_ = getDefaultInstance().getProfileFile();
1974 bitField0_ = (bitField0_ & ~0x00000080);
1975 onChanged();
1976 return this;
1977 }
1988 com.google.protobuf.ByteString value) {
1989 if (value == null) { throw new NullPointerException(); }
1990 checkByteStringIsUtf8(value);
1991 profileFile_ = value;
1992 bitField0_ |= 0x00000080;
1993 onChanged();
1994 return this;
1995 }
1996
1997 private boolean profileLocalSearch_ ;
2006 @java.lang.Override
2007 public boolean getProfileLocalSearch() {
2008 return profileLocalSearch_;
2009 }
2019 public Builder setProfileLocalSearch(boolean value) {
2020
2021 profileLocalSearch_ = value;
2022 bitField0_ |= 0x00000100;
2023 onChanged();
2024 return this;
2025 }
2035 bitField0_ = (bitField0_ & ~0x00000100);
2036 profileLocalSearch_ = false;
2037 onChanged();
2038 return this;
2039 }
2040
2041 private boolean printLocalSearchProfile_ ;
2050 @java.lang.Override
2052 return printLocalSearchProfile_;
2053 }
2063 public Builder setPrintLocalSearchProfile(boolean value) {
2064
2065 printLocalSearchProfile_ = value;
2066 bitField0_ |= 0x00000200;
2067 onChanged();
2068 return this;
2069 }
2079 bitField0_ = (bitField0_ & ~0x00000200);
2080 printLocalSearchProfile_ = false;
2081 onChanged();
2082 return this;
2083 }
2084
2085 private boolean tracePropagation_ ;
2094 @java.lang.Override
2095 public boolean getTracePropagation() {
2096 return tracePropagation_;
2097 }
2107 public Builder setTracePropagation(boolean value) {
2108
2109 tracePropagation_ = value;
2110 bitField0_ |= 0x00000400;
2111 onChanged();
2112 return this;
2113 }
2123 bitField0_ = (bitField0_ & ~0x00000400);
2124 tracePropagation_ = false;
2125 onChanged();
2126 return this;
2127 }
2128
2129 private boolean traceSearch_ ;
2138 @java.lang.Override
2139 public boolean getTraceSearch() {
2140 return traceSearch_;
2141 }
2151 public Builder setTraceSearch(boolean value) {
2152
2153 traceSearch_ = value;
2154 bitField0_ |= 0x00000800;
2155 onChanged();
2156 return this;
2157 }
2167 bitField0_ = (bitField0_ & ~0x00000800);
2168 traceSearch_ = false;
2169 onChanged();
2170 return this;
2171 }
2172
2173 private boolean printModel_ ;
2182 @java.lang.Override
2183 public boolean getPrintModel() {
2184 return printModel_;
2185 }
2195 public Builder setPrintModel(boolean value) {
2196
2197 printModel_ = value;
2198 bitField0_ |= 0x00001000;
2199 onChanged();
2200 return this;
2201 }
2211 bitField0_ = (bitField0_ & ~0x00001000);
2212 printModel_ = false;
2213 onChanged();
2214 return this;
2215 }
2216
2217 private boolean printModelStats_ ;
2226 @java.lang.Override
2227 public boolean getPrintModelStats() {
2228 return printModelStats_;
2229 }
2239 public Builder setPrintModelStats(boolean value) {
2240
2241 printModelStats_ = value;
2242 bitField0_ |= 0x00002000;
2243 onChanged();
2244 return this;
2245 }
2255 bitField0_ = (bitField0_ & ~0x00002000);
2256 printModelStats_ = false;
2257 onChanged();
2258 return this;
2259 }
2260
2261 private boolean printAddedConstraints_ ;
2270 @java.lang.Override
2271 public boolean getPrintAddedConstraints() {
2272 return printAddedConstraints_;
2273 }
2283 public Builder setPrintAddedConstraints(boolean value) {
2284
2285 printAddedConstraints_ = value;
2286 bitField0_ |= 0x00004000;
2287 onChanged();
2288 return this;
2289 }
2299 bitField0_ = (bitField0_ & ~0x00004000);
2300 printAddedConstraints_ = false;
2301 onChanged();
2302 return this;
2303 }
2304
2305 private boolean disableSolve_ ;
2310 @java.lang.Override
2311 public boolean getDisableSolve() {
2312 return disableSolve_;
2313 }
2319 public Builder setDisableSolve(boolean value) {
2320
2321 disableSolve_ = value;
2322 bitField0_ |= 0x00008000;
2323 onChanged();
2324 return this;
2325 }
2331 bitField0_ = (bitField0_ & ~0x00008000);
2332 disableSolve_ = false;
2333 onChanged();
2334 return this;
2335 }
2336
2337 private boolean useSmallTable_ ;
2347 @java.lang.Override
2348 public boolean getUseSmallTable() {
2349 return useSmallTable_;
2350 }
2361 public Builder setUseSmallTable(boolean value) {
2362
2363 useSmallTable_ = value;
2364 bitField0_ |= 0x00010000;
2365 onChanged();
2366 return this;
2367 }
2378 bitField0_ = (bitField0_ & ~0x00010000);
2379 useSmallTable_ = false;
2380 onChanged();
2381 return this;
2382 }
2383
2384 private boolean useCumulativeEdgeFinder_ ;
2394 @java.lang.Override
2396 return useCumulativeEdgeFinder_;
2397 }
2408 public Builder setUseCumulativeEdgeFinder(boolean value) {
2409
2410 useCumulativeEdgeFinder_ = value;
2411 bitField0_ |= 0x00020000;
2412 onChanged();
2413 return this;
2414 }
2425 bitField0_ = (bitField0_ & ~0x00020000);
2426 useCumulativeEdgeFinder_ = false;
2427 onChanged();
2428 return this;
2429 }
2430
2431 private boolean useCumulativeTimeTable_ ;
2436 @java.lang.Override
2437 public boolean getUseCumulativeTimeTable() {
2438 return useCumulativeTimeTable_;
2439 }
2445 public Builder setUseCumulativeTimeTable(boolean value) {
2446
2447 useCumulativeTimeTable_ = value;
2448 bitField0_ |= 0x00040000;
2449 onChanged();
2450 return this;
2451 }
2457 bitField0_ = (bitField0_ & ~0x00040000);
2458 useCumulativeTimeTable_ = false;
2459 onChanged();
2460 return this;
2461 }
2462
2463 private boolean useCumulativeTimeTableSync_ ;
2468 @java.lang.Override
2470 return useCumulativeTimeTableSync_;
2471 }
2478
2479 useCumulativeTimeTableSync_ = value;
2480 bitField0_ |= 0x00080000;
2481 onChanged();
2482 return this;
2483 }
2489 bitField0_ = (bitField0_ & ~0x00080000);
2490 useCumulativeTimeTableSync_ = false;
2491 onChanged();
2492 return this;
2493 }
2494
2495 private boolean useSequenceHighDemandTasks_ ;
2500 @java.lang.Override
2502 return useSequenceHighDemandTasks_;
2503 }
2510
2511 useSequenceHighDemandTasks_ = value;
2512 bitField0_ |= 0x00100000;
2513 onChanged();
2514 return this;
2515 }
2521 bitField0_ = (bitField0_ & ~0x00100000);
2522 useSequenceHighDemandTasks_ = false;
2523 onChanged();
2524 return this;
2525 }
2526
2527 private boolean useAllPossibleDisjunctions_ ;
2532 @java.lang.Override
2534 return useAllPossibleDisjunctions_;
2535 }
2542
2543 useAllPossibleDisjunctions_ = value;
2544 bitField0_ |= 0x00200000;
2545 onChanged();
2546 return this;
2547 }
2553 bitField0_ = (bitField0_ & ~0x00200000);
2554 useAllPossibleDisjunctions_ = false;
2555 onChanged();
2556 return this;
2557 }
2558
2559 private int maxEdgeFinderSize_ ;
2564 @java.lang.Override
2566 return maxEdgeFinderSize_;
2567 }
2573 public Builder setMaxEdgeFinderSize(int value) {
2574
2575 maxEdgeFinderSize_ = value;
2576 bitField0_ |= 0x00400000;
2577 onChanged();
2578 return this;
2579 }
2585 bitField0_ = (bitField0_ & ~0x00400000);
2586 maxEdgeFinderSize_ = 0;
2587 onChanged();
2588 return this;
2589 }
2590
2591 private boolean diffnUseCumulative_ ;
2601 @java.lang.Override
2602 public boolean getDiffnUseCumulative() {
2603 return diffnUseCumulative_;
2604 }
2615 public Builder setDiffnUseCumulative(boolean value) {
2616
2617 diffnUseCumulative_ = value;
2618 bitField0_ |= 0x00800000;
2619 onChanged();
2620 return this;
2621 }
2632 bitField0_ = (bitField0_ & ~0x00800000);
2633 diffnUseCumulative_ = false;
2634 onChanged();
2635 return this;
2636 }
2637
2638 private boolean useElementRmq_ ;
2648 @java.lang.Override
2649 public boolean getUseElementRmq() {
2650 return useElementRmq_;
2651 }
2662 public Builder setUseElementRmq(boolean value) {
2663
2664 useElementRmq_ = value;
2665 bitField0_ |= 0x01000000;
2666 onChanged();
2667 return this;
2668 }
2679 bitField0_ = (bitField0_ & ~0x01000000);
2680 useElementRmq_ = false;
2681 onChanged();
2682 return this;
2683 }
2684
2685 private boolean skipLocallyOptimalPaths_ ;
2698 @java.lang.Override
2700 return skipLocallyOptimalPaths_;
2701 }
2715 public Builder setSkipLocallyOptimalPaths(boolean value) {
2716
2717 skipLocallyOptimalPaths_ = value;
2718 bitField0_ |= 0x02000000;
2719 onChanged();
2720 return this;
2721 }
2735 bitField0_ = (bitField0_ & ~0x02000000);
2736 skipLocallyOptimalPaths_ = false;
2737 onChanged();
2738 return this;
2739 }
2740
2741 private int checkSolutionPeriod_ ;
2751 @java.lang.Override
2753 return checkSolutionPeriod_;
2754 }
2766
2767 checkSolutionPeriod_ = value;
2768 bitField0_ |= 0x04000000;
2769 onChanged();
2770 return this;
2771 }
2782 bitField0_ = (bitField0_ & ~0x04000000);
2783 checkSolutionPeriod_ = 0;
2784 onChanged();
2785 return this;
2786 }
2787 @java.lang.Override
2789 final com.google.protobuf.UnknownFieldSet unknownFields) {
2790 return super.setUnknownFields(unknownFields);
2791 }
2792
2793 @java.lang.Override
2795 final com.google.protobuf.UnknownFieldSet unknownFields) {
2796 return super.mergeUnknownFields(unknownFields);
2797 }
2798
2799
2800 // @@protoc_insertion_point(builder_scope:operations_research.ConstraintSolverParameters)
2801 }
2802
2803 // @@protoc_insertion_point(class_scope:operations_research.ConstraintSolverParameters)
2804 private static final com.google.ortools.constraintsolver.ConstraintSolverParameters DEFAULT_INSTANCE;
2805 static {
2806 DEFAULT_INSTANCE = new com.google.ortools.constraintsolver.ConstraintSolverParameters();
2807 }
2808
2810 return DEFAULT_INSTANCE;
2811 }
2812
2813 private static final com.google.protobuf.Parser<ConstraintSolverParameters>
2814 PARSER = new com.google.protobuf.AbstractParser<ConstraintSolverParameters>() {
2815 @java.lang.Override
2816 public ConstraintSolverParameters parsePartialFrom(
2817 com.google.protobuf.CodedInputStream input,
2818 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2819 throws com.google.protobuf.InvalidProtocolBufferException {
2820 Builder builder = newBuilder();
2821 try {
2822 builder.mergeFrom(input, extensionRegistry);
2823 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2824 throw e.setUnfinishedMessage(builder.buildPartial());
2825 } catch (com.google.protobuf.UninitializedMessageException e) {
2826 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
2827 } catch (java.io.IOException e) {
2828 throw new com.google.protobuf.InvalidProtocolBufferException(e)
2829 .setUnfinishedMessage(builder.buildPartial());
2830 }
2831 return builder.buildPartial();
2832 }
2833 };
2834
2835 public static com.google.protobuf.Parser<ConstraintSolverParameters> parser() {
2836 return PARSER;
2837 }
2838
2839 @java.lang.Override
2840 public com.google.protobuf.Parser<ConstraintSolverParameters> getParserForType() {
2841 return PARSER;
2842 }
2843
2844 @java.lang.Override
2848
2849}
2850
com.google.ortools.constraintsolver.ConstraintSolverParameters getDefaultInstanceForType()
final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
com.google.ortools.constraintsolver.ConstraintSolverParameters buildPartial()
Builder mergeFrom(com.google.ortools.constraintsolver.ConstraintSolverParameters other)
com.google.ortools.constraintsolver.ConstraintSolverParameters build()
Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Builder setCompressTrail(com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression value)
Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression getCompressTrail()
final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(java.nio.ByteBuffer data)
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)
Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(java.io.InputStream input)
com.google.ortools.constraintsolver.ConstraintSolverParameters getDefaultInstanceForType()
static com.google.ortools.constraintsolver.ConstraintSolverParameters parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.protobuf.Parser< ConstraintSolverParameters > getParserForType()
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
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)
static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()