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