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