5package com.google.ortools.constraintsolver;
15 com.google.protobuf.GeneratedMessageV3 implements
18private static final long serialVersionUID = 0L;
29 @SuppressWarnings({
"unused"})
31 UnusedPrivateParameter unused) {
35 public static final com.google.protobuf.Descriptors.Descriptor
37 return com.google.ortools.constraintsolver.SolverParameters.internal_static_operations_research_ConstraintSolverParameters_descriptor;
41 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
43 return com.google.ortools.constraintsolver.SolverParameters.internal_static_operations_research_ConstraintSolverParameters_fieldAccessorTable
44 .ensureFieldAccessorsInitialized(
45 com.google.ortools.constraintsolver.ConstraintSolverParameters.class, com.google.ortools.constraintsolver.ConstraintSolverParameters.Builder.class);
57 implements com.google.protobuf.ProtocolMessageEnum {
72 public static final int NO_COMPRESSION_VALUE = 0;
76 public static final int COMPRESS_WITH_ZLIB_VALUE = 1;
80 if (
this == UNRECOGNIZED) {
81 throw new java.lang.IllegalArgumentException(
82 "Can't get the number of an unknown enum value.");
94 return forNumber(value);
103 case 0:
return NO_COMPRESSION;
104 case 1:
return COMPRESS_WITH_ZLIB;
105 default:
return null;
111 return internalValueMap;
113 private static final com.google.protobuf.Internal.EnumLiteMap<
121 public final com.google.protobuf.Descriptors.EnumValueDescriptor
123 if (
this == UNRECOGNIZED) {
124 throw new java.lang.IllegalStateException(
125 "Can't get the descriptor of an unrecognized enum value.");
129 public final com.google.protobuf.Descriptors.EnumDescriptor
133 public static final com.google.protobuf.Descriptors.EnumDescriptor
135 return com.google.ortools.constraintsolver.ConstraintSolverParameters.getDescriptor().getEnumTypes().get(0);
141 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
143 throw new java.lang.IllegalArgumentException(
144 "EnumValueDescriptor is not for this type.");
146 if (desc.getIndex() == -1) {
149 return VALUES[desc.getIndex()];
152 private final int value;
162 private int compressTrail_ = 0;
174 return compressTrail_;
188 return result ==
null ? com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression.UNRECOGNIZED : result;
192 private int trailBlockSize_ = 0;
204 return trailBlockSize_;
208 private int arraySplitSize_ = 0;
220 return arraySplitSize_;
224 private boolean storeNames_ =
false;
240 private boolean nameCastVariables_ =
false;
251 return nameCastVariables_;
255 private boolean nameAllVariables_ =
false;
266 return nameAllVariables_;
270 private boolean profilePropagation_ =
false;
281 return profilePropagation_;
285 @SuppressWarnings(
"serial")
286 private volatile java.lang.Object profileFile_ = "";
297 java.lang.Object ref = profileFile_;
298 if (ref instanceof java.lang.String) {
299 return (java.lang.String) ref;
301 com.google.protobuf.ByteString bs =
302 (com.google.protobuf.ByteString) ref;
303 java.lang.String s = bs.toStringUtf8();
317 public com.google.protobuf.ByteString
319 java.lang.Object ref = profileFile_;
320 if (ref instanceof java.lang.String) {
321 com.google.protobuf.ByteString b =
322 com.google.protobuf.ByteString.copyFromUtf8(
323 (java.lang.String) ref);
327 return (com.google.protobuf.ByteString) ref;
332 private boolean profileLocalSearch_ =
false;
343 return profileLocalSearch_;
347 private boolean printLocalSearchProfile_ =
false;
358 return printLocalSearchProfile_;
362 private boolean tracePropagation_ =
false;
373 return tracePropagation_;
377 private boolean traceSearch_ =
false;
392 private boolean printModel_ =
false;
407 private boolean printModelStats_ =
false;
418 return printModelStats_;
422 private boolean printAddedConstraints_ =
false;
433 return printAddedConstraints_;
437 private boolean disableSolve_ =
false;
444 return disableSolve_;
448 private boolean useSmallTable_ =
false;
460 return useSmallTable_;
464 private boolean useCumulativeEdgeFinder_ =
false;
476 return useCumulativeEdgeFinder_;
480 private boolean useCumulativeTimeTable_ =
false;
487 return useCumulativeTimeTable_;
491 private boolean useCumulativeTimeTableSync_ =
false;
498 return useCumulativeTimeTableSync_;
502 private boolean useSequenceHighDemandTasks_ =
false;
509 return useSequenceHighDemandTasks_;
513 private boolean useAllPossibleDisjunctions_ =
false;
520 return useAllPossibleDisjunctions_;
524 private int maxEdgeFinderSize_ = 0;
531 return maxEdgeFinderSize_;
535 private boolean diffnUseCumulative_ =
false;
547 return diffnUseCumulative_;
551 private boolean useElementRmq_ =
false;
563 return useElementRmq_;
567 private boolean skipLocallyOptimalPaths_ =
false;
582 return skipLocallyOptimalPaths_;
586 private int checkSolutionPeriod_ = 0;
598 return checkSolutionPeriod_;
601 private byte memoizedIsInitialized = -1;
608 memoizedIsInitialized = 1;
613 public void writeTo(com.google.protobuf.CodedOutputStream output)
614 throws java.io.IOException {
615 if (compressTrail_ != com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression.NO_COMPRESSION.getNumber()) {
616 output.writeEnum(1, compressTrail_);
618 if (trailBlockSize_ != 0) {
619 output.writeInt32(2, trailBlockSize_);
621 if (arraySplitSize_ != 0) {
622 output.writeInt32(3, arraySplitSize_);
624 if (storeNames_ !=
false) {
625 output.writeBool(4, storeNames_);
627 if (nameCastVariables_ !=
false) {
628 output.writeBool(5, nameCastVariables_);
630 if (nameAllVariables_ !=
false) {
631 output.writeBool(6, nameAllVariables_);
633 if (profilePropagation_ !=
false) {
634 output.writeBool(7, profilePropagation_);
636 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(profileFile_)) {
637 com.google.protobuf.GeneratedMessageV3.writeString(output, 8, profileFile_);
639 if (tracePropagation_ !=
false) {
640 output.writeBool(9, tracePropagation_);
642 if (traceSearch_ !=
false) {
643 output.writeBool(10, traceSearch_);
645 if (printModel_ !=
false) {
646 output.writeBool(11, printModel_);
648 if (printModelStats_ !=
false) {
649 output.writeBool(12, printModelStats_);
651 if (printAddedConstraints_ !=
false) {
652 output.writeBool(13, printAddedConstraints_);
654 if (disableSolve_ !=
false) {
655 output.writeBool(15, disableSolve_);
657 if (profileLocalSearch_ !=
false) {
658 output.writeBool(16, profileLocalSearch_);
660 if (printLocalSearchProfile_ !=
false) {
661 output.writeBool(17, printLocalSearchProfile_);
663 if (useSmallTable_ !=
false) {
664 output.writeBool(101, useSmallTable_);
666 if (useCumulativeEdgeFinder_ !=
false) {
667 output.writeBool(105, useCumulativeEdgeFinder_);
669 if (useCumulativeTimeTable_ !=
false) {
670 output.writeBool(106, useCumulativeTimeTable_);
672 if (useSequenceHighDemandTasks_ !=
false) {
673 output.writeBool(107, useSequenceHighDemandTasks_);
675 if (useAllPossibleDisjunctions_ !=
false) {
676 output.writeBool(108, useAllPossibleDisjunctions_);
678 if (maxEdgeFinderSize_ != 0) {
679 output.writeInt32(109, maxEdgeFinderSize_);
681 if (diffnUseCumulative_ !=
false) {
682 output.writeBool(110, diffnUseCumulative_);
684 if (useElementRmq_ !=
false) {
685 output.writeBool(111, useElementRmq_);
687 if (useCumulativeTimeTableSync_ !=
false) {
688 output.writeBool(112, useCumulativeTimeTableSync_);
690 if (skipLocallyOptimalPaths_ !=
false) {
691 output.writeBool(113, skipLocallyOptimalPaths_);
693 if (checkSolutionPeriod_ != 0) {
694 output.writeInt32(114, checkSolutionPeriod_);
696 getUnknownFields().writeTo(output);
701 int size = memoizedSize;
702 if (size != -1)
return size;
705 if (compressTrail_ != com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression.NO_COMPRESSION.getNumber()) {
706 size += com.google.protobuf.CodedOutputStream
707 .computeEnumSize(1, compressTrail_);
709 if (trailBlockSize_ != 0) {
710 size += com.google.protobuf.CodedOutputStream
711 .computeInt32Size(2, trailBlockSize_);
713 if (arraySplitSize_ != 0) {
714 size += com.google.protobuf.CodedOutputStream
715 .computeInt32Size(3, arraySplitSize_);
717 if (storeNames_ !=
false) {
718 size += com.google.protobuf.CodedOutputStream
719 .computeBoolSize(4, storeNames_);
721 if (nameCastVariables_ !=
false) {
722 size += com.google.protobuf.CodedOutputStream
723 .computeBoolSize(5, nameCastVariables_);
725 if (nameAllVariables_ !=
false) {
726 size += com.google.protobuf.CodedOutputStream
727 .computeBoolSize(6, nameAllVariables_);
729 if (profilePropagation_ !=
false) {
730 size += com.google.protobuf.CodedOutputStream
731 .computeBoolSize(7, profilePropagation_);
733 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(profileFile_)) {
734 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, profileFile_);
736 if (tracePropagation_ !=
false) {
737 size += com.google.protobuf.CodedOutputStream
738 .computeBoolSize(9, tracePropagation_);
740 if (traceSearch_ !=
false) {
741 size += com.google.protobuf.CodedOutputStream
742 .computeBoolSize(10, traceSearch_);
744 if (printModel_ !=
false) {
745 size += com.google.protobuf.CodedOutputStream
746 .computeBoolSize(11, printModel_);
748 if (printModelStats_ !=
false) {
749 size += com.google.protobuf.CodedOutputStream
750 .computeBoolSize(12, printModelStats_);
752 if (printAddedConstraints_ !=
false) {
753 size += com.google.protobuf.CodedOutputStream
754 .computeBoolSize(13, printAddedConstraints_);
756 if (disableSolve_ !=
false) {
757 size += com.google.protobuf.CodedOutputStream
758 .computeBoolSize(15, disableSolve_);
760 if (profileLocalSearch_ !=
false) {
761 size += com.google.protobuf.CodedOutputStream
762 .computeBoolSize(16, profileLocalSearch_);
764 if (printLocalSearchProfile_ !=
false) {
765 size += com.google.protobuf.CodedOutputStream
766 .computeBoolSize(17, printLocalSearchProfile_);
768 if (useSmallTable_ !=
false) {
769 size += com.google.protobuf.CodedOutputStream
770 .computeBoolSize(101, useSmallTable_);
772 if (useCumulativeEdgeFinder_ !=
false) {
773 size += com.google.protobuf.CodedOutputStream
774 .computeBoolSize(105, useCumulativeEdgeFinder_);
776 if (useCumulativeTimeTable_ !=
false) {
777 size += com.google.protobuf.CodedOutputStream
778 .computeBoolSize(106, useCumulativeTimeTable_);
780 if (useSequenceHighDemandTasks_ !=
false) {
781 size += com.google.protobuf.CodedOutputStream
782 .computeBoolSize(107, useSequenceHighDemandTasks_);
784 if (useAllPossibleDisjunctions_ !=
false) {
785 size += com.google.protobuf.CodedOutputStream
786 .computeBoolSize(108, useAllPossibleDisjunctions_);
788 if (maxEdgeFinderSize_ != 0) {
789 size += com.google.protobuf.CodedOutputStream
790 .computeInt32Size(109, maxEdgeFinderSize_);
792 if (diffnUseCumulative_ !=
false) {
793 size += com.google.protobuf.CodedOutputStream
794 .computeBoolSize(110, diffnUseCumulative_);
796 if (useElementRmq_ !=
false) {
797 size += com.google.protobuf.CodedOutputStream
798 .computeBoolSize(111, useElementRmq_);
800 if (useCumulativeTimeTableSync_ !=
false) {
801 size += com.google.protobuf.CodedOutputStream
802 .computeBoolSize(112, useCumulativeTimeTableSync_);
804 if (skipLocallyOptimalPaths_ !=
false) {
805 size += com.google.protobuf.CodedOutputStream
806 .computeBoolSize(113, skipLocallyOptimalPaths_);
808 if (checkSolutionPeriod_ != 0) {
809 size += com.google.protobuf.CodedOutputStream
810 .computeInt32Size(114, checkSolutionPeriod_);
812 size += getUnknownFields().getSerializedSize();
818 public boolean equals(
final java.lang.Object obj) {
822 if (!(obj instanceof com.google.ortools.constraintsolver.ConstraintSolverParameters)) {
823 return super.equals(obj);
827 if (compressTrail_ != other.compressTrail_)
return false;
880 if (!getUnknownFields().equals(other.getUnknownFields()))
return false;
886 if (memoizedHashCode != 0) {
887 return memoizedHashCode;
892 hash = (53 * hash) + compressTrail_;
898 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
901 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
904 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
907 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
912 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
915 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
918 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
921 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
924 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
927 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
930 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
933 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
936 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
939 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
942 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
945 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
948 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
951 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
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(
966 hash = (29 * hash) + getUnknownFields().hashCode();
967 memoizedHashCode = hash;
972 java.nio.ByteBuffer data)
973 throws com.google.protobuf.InvalidProtocolBufferException {
974 return PARSER.parseFrom(data);
977 java.nio.ByteBuffer data,
978 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
979 throws com.google.protobuf.InvalidProtocolBufferException {
980 return PARSER.parseFrom(data, extensionRegistry);
983 com.google.protobuf.ByteString data)
984 throws com.google.protobuf.InvalidProtocolBufferException {
985 return PARSER.parseFrom(data);
988 com.google.protobuf.ByteString data,
989 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
990 throws com.google.protobuf.InvalidProtocolBufferException {
991 return PARSER.parseFrom(data, extensionRegistry);
994 throws com.google.protobuf.InvalidProtocolBufferException {
995 return PARSER.parseFrom(data);
999 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1000 throws com.google.protobuf.InvalidProtocolBufferException {
1001 return PARSER.parseFrom(data, extensionRegistry);
1004 throws java.io.IOException {
1005 return com.google.protobuf.GeneratedMessageV3
1006 .parseWithIOException(PARSER, input);
1009 java.io.InputStream input,
1010 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1011 throws java.io.IOException {
1012 return com.google.protobuf.GeneratedMessageV3
1013 .parseWithIOException(PARSER, input, extensionRegistry);
1017 throws java.io.IOException {
1018 return com.google.protobuf.GeneratedMessageV3
1019 .parseDelimitedWithIOException(PARSER, input);
1023 java.io.InputStream input,
1024 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1025 throws java.io.IOException {
1026 return com.google.protobuf.GeneratedMessageV3
1027 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
1030 com.google.protobuf.CodedInputStream input)
1031 throws java.io.IOException {
1032 return com.google.protobuf.GeneratedMessageV3
1033 .parseWithIOException(PARSER, input);
1036 com.google.protobuf.CodedInputStream input,
1037 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1038 throws java.io.IOException {
1039 return com.google.protobuf.GeneratedMessageV3
1040 .parseWithIOException(PARSER, input, extensionRegistry);
1048 public static Builder newBuilder(com.google.ortools.constraintsolver.ConstraintSolverParameters prototype) {
1053 return this == DEFAULT_INSTANCE
1059 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1071 com.google.protobuf.GeneratedMessageV3.
Builder<Builder> implements
1074 public static final com.google.protobuf.Descriptors.Descriptor
1076 return com.google.ortools.constraintsolver.SolverParameters.internal_static_operations_research_ConstraintSolverParameters_descriptor;
1080 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
1082 return com.google.ortools.constraintsolver.SolverParameters.internal_static_operations_research_ConstraintSolverParameters_fieldAccessorTable
1083 .ensureFieldAccessorsInitialized(
1084 com.google.ortools.constraintsolver.ConstraintSolverParameters.class, com.google.ortools.constraintsolver.ConstraintSolverParameters.Builder.class);
1093 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1102 trailBlockSize_ = 0;
1103 arraySplitSize_ = 0;
1104 storeNames_ =
false;
1105 nameCastVariables_ =
false;
1106 nameAllVariables_ =
false;
1107 profilePropagation_ =
false;
1109 profileLocalSearch_ =
false;
1110 printLocalSearchProfile_ =
false;
1111 tracePropagation_ =
false;
1112 traceSearch_ =
false;
1113 printModel_ =
false;
1114 printModelStats_ =
false;
1115 printAddedConstraints_ =
false;
1116 disableSolve_ =
false;
1117 useSmallTable_ =
false;
1118 useCumulativeEdgeFinder_ =
false;
1119 useCumulativeTimeTable_ =
false;
1120 useCumulativeTimeTableSync_ =
false;
1121 useSequenceHighDemandTasks_ =
false;
1122 useAllPossibleDisjunctions_ =
false;
1123 maxEdgeFinderSize_ = 0;
1124 diffnUseCumulative_ =
false;
1125 useElementRmq_ =
false;
1126 skipLocallyOptimalPaths_ =
false;
1127 checkSolutionPeriod_ = 0;
1132 public com.google.protobuf.Descriptors.Descriptor
1134 return com.google.ortools.constraintsolver.SolverParameters.internal_static_operations_research_ConstraintSolverParameters_descriptor;
1139 return com.google.ortools.constraintsolver.ConstraintSolverParameters.getDefaultInstance();
1146 throw newUninitializedMessageException(result);
1154 if (bitField0_ != 0) { buildPartial0(result); }
1159 private void buildPartial0(com.google.ortools.constraintsolver.ConstraintSolverParameters result) {
1160 int from_bitField0_ = bitField0_;
1161 if (((from_bitField0_ & 0x00000001) != 0)) {
1162 result.compressTrail_ = compressTrail_;
1164 if (((from_bitField0_ & 0x00000002) != 0)) {
1165 result.trailBlockSize_ = trailBlockSize_;
1167 if (((from_bitField0_ & 0x00000004) != 0)) {
1168 result.arraySplitSize_ = arraySplitSize_;
1170 if (((from_bitField0_ & 0x00000008) != 0)) {
1171 result.storeNames_ = storeNames_;
1173 if (((from_bitField0_ & 0x00000010) != 0)) {
1174 result.nameCastVariables_ = nameCastVariables_;
1176 if (((from_bitField0_ & 0x00000020) != 0)) {
1177 result.nameAllVariables_ = nameAllVariables_;
1179 if (((from_bitField0_ & 0x00000040) != 0)) {
1180 result.profilePropagation_ = profilePropagation_;
1182 if (((from_bitField0_ & 0x00000080) != 0)) {
1183 result.profileFile_ = profileFile_;
1185 if (((from_bitField0_ & 0x00000100) != 0)) {
1186 result.profileLocalSearch_ = profileLocalSearch_;
1188 if (((from_bitField0_ & 0x00000200) != 0)) {
1189 result.printLocalSearchProfile_ = printLocalSearchProfile_;
1191 if (((from_bitField0_ & 0x00000400) != 0)) {
1192 result.tracePropagation_ = tracePropagation_;
1194 if (((from_bitField0_ & 0x00000800) != 0)) {
1195 result.traceSearch_ = traceSearch_;
1197 if (((from_bitField0_ & 0x00001000) != 0)) {
1198 result.printModel_ = printModel_;
1200 if (((from_bitField0_ & 0x00002000) != 0)) {
1201 result.printModelStats_ = printModelStats_;
1203 if (((from_bitField0_ & 0x00004000) != 0)) {
1204 result.printAddedConstraints_ = printAddedConstraints_;
1206 if (((from_bitField0_ & 0x00008000) != 0)) {
1207 result.disableSolve_ = disableSolve_;
1209 if (((from_bitField0_ & 0x00010000) != 0)) {
1210 result.useSmallTable_ = useSmallTable_;
1212 if (((from_bitField0_ & 0x00020000) != 0)) {
1213 result.useCumulativeEdgeFinder_ = useCumulativeEdgeFinder_;
1215 if (((from_bitField0_ & 0x00040000) != 0)) {
1216 result.useCumulativeTimeTable_ = useCumulativeTimeTable_;
1218 if (((from_bitField0_ & 0x00080000) != 0)) {
1219 result.useCumulativeTimeTableSync_ = useCumulativeTimeTableSync_;
1221 if (((from_bitField0_ & 0x00100000) != 0)) {
1222 result.useSequenceHighDemandTasks_ = useSequenceHighDemandTasks_;
1224 if (((from_bitField0_ & 0x00200000) != 0)) {
1225 result.useAllPossibleDisjunctions_ = useAllPossibleDisjunctions_;
1227 if (((from_bitField0_ & 0x00400000) != 0)) {
1228 result.maxEdgeFinderSize_ = maxEdgeFinderSize_;
1230 if (((from_bitField0_ & 0x00800000) != 0)) {
1231 result.diffnUseCumulative_ = diffnUseCumulative_;
1233 if (((from_bitField0_ & 0x01000000) != 0)) {
1234 result.useElementRmq_ = useElementRmq_;
1236 if (((from_bitField0_ & 0x02000000) != 0)) {
1237 result.skipLocallyOptimalPaths_ = skipLocallyOptimalPaths_;
1239 if (((from_bitField0_ & 0x04000000) != 0)) {
1240 result.checkSolutionPeriod_ = checkSolutionPeriod_;
1246 return super.
clone();
1250 com.google.protobuf.Descriptors.FieldDescriptor field,
1251 java.lang.Object value) {
1252 return super.
setField(field, value);
1256 com.google.protobuf.Descriptors.FieldDescriptor field) {
1261 com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1266 com.google.protobuf.Descriptors.FieldDescriptor field,
1267 int index, java.lang.Object value) {
1272 com.google.protobuf.Descriptors.FieldDescriptor field,
1273 java.lang.Object value) {
1278 if (other instanceof com.google.ortools.constraintsolver.ConstraintSolverParameters) {
1279 return mergeFrom((com.google.ortools.constraintsolver.ConstraintSolverParameters)other);
1281 super.mergeFrom(other);
1286 public Builder mergeFrom(com.google.ortools.constraintsolver.ConstraintSolverParameters other) {
1287 if (other == com.google.ortools.constraintsolver.ConstraintSolverParameters.getDefaultInstance())
return this;
1288 if (other.compressTrail_ != 0) {
1291 if (other.getTrailBlockSize() != 0) {
1294 if (other.getArraySplitSize() != 0) {
1297 if (other.getStoreNames() !=
false) {
1300 if (other.getNameCastVariables() !=
false) {
1303 if (other.getNameAllVariables() !=
false) {
1306 if (other.getProfilePropagation() !=
false) {
1309 if (!other.getProfileFile().isEmpty()) {
1310 profileFile_ = other.profileFile_;
1311 bitField0_ |= 0x00000080;
1314 if (other.getProfileLocalSearch() !=
false) {
1317 if (other.getPrintLocalSearchProfile() !=
false) {
1320 if (other.getTracePropagation() !=
false) {
1323 if (other.getTraceSearch() !=
false) {
1326 if (other.getPrintModel() !=
false) {
1329 if (other.getPrintModelStats() !=
false) {
1332 if (other.getPrintAddedConstraints() !=
false) {
1335 if (other.getDisableSolve() !=
false) {
1338 if (other.getUseSmallTable() !=
false) {
1341 if (other.getUseCumulativeEdgeFinder() !=
false) {
1344 if (other.getUseCumulativeTimeTable() !=
false) {
1347 if (other.getUseCumulativeTimeTableSync() !=
false) {
1350 if (other.getUseSequenceHighDemandTasks() !=
false) {
1353 if (other.getUseAllPossibleDisjunctions() !=
false) {
1356 if (other.getMaxEdgeFinderSize() != 0) {
1359 if (other.getDiffnUseCumulative() !=
false) {
1362 if (other.getUseElementRmq() !=
false) {
1365 if (other.getSkipLocallyOptimalPaths() !=
false) {
1368 if (other.getCheckSolutionPeriod() != 0) {
1383 com.google.protobuf.CodedInputStream input,
1384 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1385 throws java.io.IOException {
1386 if (extensionRegistry ==
null) {
1387 throw new java.lang.NullPointerException();
1390 boolean done =
false;
1392 int tag = input.readTag();
1398 compressTrail_ = input.readEnum();
1399 bitField0_ |= 0x00000001;
1403 trailBlockSize_ = input.readInt32();
1404 bitField0_ |= 0x00000002;
1408 arraySplitSize_ = input.readInt32();
1409 bitField0_ |= 0x00000004;
1413 storeNames_ = input.readBool();
1414 bitField0_ |= 0x00000008;
1418 nameCastVariables_ = input.readBool();
1419 bitField0_ |= 0x00000010;
1423 nameAllVariables_ = input.readBool();
1424 bitField0_ |= 0x00000020;
1428 profilePropagation_ = input.readBool();
1429 bitField0_ |= 0x00000040;
1433 profileFile_ = input.readStringRequireUtf8();
1434 bitField0_ |= 0x00000080;
1438 tracePropagation_ = input.readBool();
1439 bitField0_ |= 0x00000400;
1443 traceSearch_ = input.readBool();
1444 bitField0_ |= 0x00000800;
1448 printModel_ = input.readBool();
1449 bitField0_ |= 0x00001000;
1453 printModelStats_ = input.readBool();
1454 bitField0_ |= 0x00002000;
1458 printAddedConstraints_ = input.readBool();
1459 bitField0_ |= 0x00004000;
1463 disableSolve_ = input.readBool();
1464 bitField0_ |= 0x00008000;
1468 profileLocalSearch_ = input.readBool();
1469 bitField0_ |= 0x00000100;
1473 printLocalSearchProfile_ = input.readBool();
1474 bitField0_ |= 0x00000200;
1478 useSmallTable_ = input.readBool();
1479 bitField0_ |= 0x00010000;
1483 useCumulativeEdgeFinder_ = input.readBool();
1484 bitField0_ |= 0x00020000;
1488 useCumulativeTimeTable_ = input.readBool();
1489 bitField0_ |= 0x00040000;
1493 useSequenceHighDemandTasks_ = input.readBool();
1494 bitField0_ |= 0x00100000;
1498 useAllPossibleDisjunctions_ = input.readBool();
1499 bitField0_ |= 0x00200000;
1503 maxEdgeFinderSize_ = input.readInt32();
1504 bitField0_ |= 0x00400000;
1508 diffnUseCumulative_ = input.readBool();
1509 bitField0_ |= 0x00800000;
1513 useElementRmq_ = input.readBool();
1514 bitField0_ |= 0x01000000;
1518 useCumulativeTimeTableSync_ = input.readBool();
1519 bitField0_ |= 0x00080000;
1523 skipLocallyOptimalPaths_ = input.readBool();
1524 bitField0_ |= 0x02000000;
1528 checkSolutionPeriod_ = input.readInt32();
1529 bitField0_ |= 0x04000000;
1533 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1540 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
1541 throw e.unwrapIOException();
1547 private int bitField0_;
1549 private int compressTrail_ = 0;
1561 return compressTrail_;
1575 compressTrail_ = value;
1576 bitField0_ |= 0x00000001;
1593 return result ==
null ? com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression.UNRECOGNIZED : result;
1607 if (value ==
null) {
1608 throw new NullPointerException();
1610 bitField0_ |= 0x00000001;
1611 compressTrail_ = value.getNumber();
1626 bitField0_ = (bitField0_ & ~0x00000001);
1632 private int trailBlockSize_ ;
1644 return trailBlockSize_;
1658 trailBlockSize_ = value;
1659 bitField0_ |= 0x00000002;
1673 bitField0_ = (bitField0_ & ~0x00000002);
1674 trailBlockSize_ = 0;
1679 private int arraySplitSize_ ;
1691 return arraySplitSize_;
1705 arraySplitSize_ = value;
1706 bitField0_ |= 0x00000004;
1720 bitField0_ = (bitField0_ & ~0x00000004);
1721 arraySplitSize_ = 0;
1726 private boolean storeNames_ ;
1752 storeNames_ = value;
1753 bitField0_ |= 0x00000008;
1767 bitField0_ = (bitField0_ & ~0x00000008);
1768 storeNames_ =
false;
1773 private boolean nameCastVariables_ ;
1784 return nameCastVariables_;
1797 nameCastVariables_ = value;
1798 bitField0_ |= 0x00000010;
1811 bitField0_ = (bitField0_ & ~0x00000010);
1812 nameCastVariables_ =
false;
1817 private boolean nameAllVariables_ ;
1828 return nameAllVariables_;
1841 nameAllVariables_ = value;
1842 bitField0_ |= 0x00000020;
1855 bitField0_ = (bitField0_ & ~0x00000020);
1856 nameAllVariables_ =
false;
1861 private boolean profilePropagation_ ;
1872 return profilePropagation_;
1885 profilePropagation_ = value;
1886 bitField0_ |= 0x00000040;
1899 bitField0_ = (bitField0_ & ~0x00000040);
1900 profilePropagation_ =
false;
1905 private java.lang.Object profileFile_ =
"";
1915 java.lang.Object ref = profileFile_;
1916 if (!(ref instanceof java.lang.String)) {
1917 com.google.protobuf.ByteString bs =
1918 (com.google.protobuf.ByteString) ref;
1919 java.lang.String s = bs.toStringUtf8();
1923 return (java.lang.String) ref;
1934 public com.google.protobuf.ByteString
1936 java.lang.Object ref = profileFile_;
1937 if (ref instanceof String) {
1938 com.google.protobuf.ByteString b =
1939 com.google.protobuf.ByteString.copyFromUtf8(
1940 (java.lang.String) ref);
1944 return (com.google.protobuf.ByteString) ref;
1957 java.lang.String value) {
1958 if (value ==
null) {
throw new NullPointerException(); }
1959 profileFile_ = value;
1960 bitField0_ |= 0x00000080;
1974 bitField0_ = (bitField0_ & ~0x00000080);
1988 com.google.protobuf.ByteString value) {
1989 if (value ==
null) {
throw new NullPointerException(); }
1990 checkByteStringIsUtf8(value);
1991 profileFile_ = value;
1992 bitField0_ |= 0x00000080;
1997 private boolean profileLocalSearch_ ;
2008 return profileLocalSearch_;
2021 profileLocalSearch_ = value;
2022 bitField0_ |= 0x00000100;
2035 bitField0_ = (bitField0_ & ~0x00000100);
2036 profileLocalSearch_ =
false;
2041 private boolean printLocalSearchProfile_ ;
2052 return printLocalSearchProfile_;
2065 printLocalSearchProfile_ = value;
2066 bitField0_ |= 0x00000200;
2079 bitField0_ = (bitField0_ & ~0x00000200);
2080 printLocalSearchProfile_ =
false;
2085 private boolean tracePropagation_ ;
2096 return tracePropagation_;
2109 tracePropagation_ = value;
2110 bitField0_ |= 0x00000400;
2123 bitField0_ = (bitField0_ & ~0x00000400);
2124 tracePropagation_ =
false;
2129 private boolean traceSearch_ ;
2140 return traceSearch_;
2153 traceSearch_ = value;
2154 bitField0_ |= 0x00000800;
2167 bitField0_ = (bitField0_ & ~0x00000800);
2168 traceSearch_ =
false;
2173 private boolean printModel_ ;
2197 printModel_ = value;
2198 bitField0_ |= 0x00001000;
2211 bitField0_ = (bitField0_ & ~0x00001000);
2212 printModel_ =
false;
2217 private boolean printModelStats_ ;
2228 return printModelStats_;
2241 printModelStats_ = value;
2242 bitField0_ |= 0x00002000;
2255 bitField0_ = (bitField0_ & ~0x00002000);
2256 printModelStats_ =
false;
2261 private boolean printAddedConstraints_ ;
2272 return printAddedConstraints_;
2285 printAddedConstraints_ = value;
2286 bitField0_ |= 0x00004000;
2299 bitField0_ = (bitField0_ & ~0x00004000);
2300 printAddedConstraints_ =
false;
2305 private boolean disableSolve_ ;
2312 return disableSolve_;
2321 disableSolve_ = value;
2322 bitField0_ |= 0x00008000;
2331 bitField0_ = (bitField0_ & ~0x00008000);
2332 disableSolve_ =
false;
2337 private boolean useSmallTable_ ;
2349 return useSmallTable_;
2363 useSmallTable_ = value;
2364 bitField0_ |= 0x00010000;
2378 bitField0_ = (bitField0_ & ~0x00010000);
2379 useSmallTable_ =
false;
2384 private boolean useCumulativeEdgeFinder_ ;
2396 return useCumulativeEdgeFinder_;
2410 useCumulativeEdgeFinder_ = value;
2411 bitField0_ |= 0x00020000;
2425 bitField0_ = (bitField0_ & ~0x00020000);
2426 useCumulativeEdgeFinder_ =
false;
2431 private boolean useCumulativeTimeTable_ ;
2438 return useCumulativeTimeTable_;
2447 useCumulativeTimeTable_ = value;
2448 bitField0_ |= 0x00040000;
2457 bitField0_ = (bitField0_ & ~0x00040000);
2458 useCumulativeTimeTable_ =
false;
2463 private boolean useCumulativeTimeTableSync_ ;
2470 return useCumulativeTimeTableSync_;
2479 useCumulativeTimeTableSync_ = value;
2480 bitField0_ |= 0x00080000;
2489 bitField0_ = (bitField0_ & ~0x00080000);
2490 useCumulativeTimeTableSync_ =
false;
2495 private boolean useSequenceHighDemandTasks_ ;
2502 return useSequenceHighDemandTasks_;
2511 useSequenceHighDemandTasks_ = value;
2512 bitField0_ |= 0x00100000;
2521 bitField0_ = (bitField0_ & ~0x00100000);
2522 useSequenceHighDemandTasks_ =
false;
2527 private boolean useAllPossibleDisjunctions_ ;
2534 return useAllPossibleDisjunctions_;
2543 useAllPossibleDisjunctions_ = value;
2544 bitField0_ |= 0x00200000;
2553 bitField0_ = (bitField0_ & ~0x00200000);
2554 useAllPossibleDisjunctions_ =
false;
2559 private int maxEdgeFinderSize_ ;
2566 return maxEdgeFinderSize_;
2575 maxEdgeFinderSize_ = value;
2576 bitField0_ |= 0x00400000;
2585 bitField0_ = (bitField0_ & ~0x00400000);
2586 maxEdgeFinderSize_ = 0;
2591 private boolean diffnUseCumulative_ ;
2603 return diffnUseCumulative_;
2617 diffnUseCumulative_ = value;
2618 bitField0_ |= 0x00800000;
2632 bitField0_ = (bitField0_ & ~0x00800000);
2633 diffnUseCumulative_ =
false;
2638 private boolean useElementRmq_ ;
2650 return useElementRmq_;
2664 useElementRmq_ = value;
2665 bitField0_ |= 0x01000000;
2679 bitField0_ = (bitField0_ & ~0x01000000);
2680 useElementRmq_ =
false;
2685 private boolean skipLocallyOptimalPaths_ ;
2700 return skipLocallyOptimalPaths_;
2717 skipLocallyOptimalPaths_ = value;
2718 bitField0_ |= 0x02000000;
2735 bitField0_ = (bitField0_ & ~0x02000000);
2736 skipLocallyOptimalPaths_ =
false;
2741 private int checkSolutionPeriod_ ;
2753 return checkSolutionPeriod_;
2767 checkSolutionPeriod_ = value;
2768 bitField0_ |= 0x04000000;
2782 bitField0_ = (bitField0_ & ~0x04000000);
2783 checkSolutionPeriod_ = 0;
2789 final com.google.protobuf.UnknownFieldSet unknownFields) {
2795 final com.google.protobuf.UnknownFieldSet unknownFields) {
2806 DEFAULT_INSTANCE =
new com.google.ortools.constraintsolver.ConstraintSolverParameters();
2810 return DEFAULT_INSTANCE;
2817 com.google.protobuf.CodedInputStream input,
2818 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2819 throws com.google.protobuf.InvalidProtocolBufferException {
2822 builder.mergeFrom(input, extensionRegistry);
2823 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
2824 throw e.setUnfinishedMessage(builder.buildPartial());
2825 }
catch (com.google.protobuf.UninitializedMessageException e) {
2826 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
2827 }
catch (java.io.IOException e) {
2828 throw new com.google.protobuf.InvalidProtocolBufferException(e)
2829 .setUnfinishedMessage(builder.buildPartial());
2831 return builder.buildPartial();
2846 return DEFAULT_INSTANCE;