6package com.google.ortools.constraintsolver;
15public final class ConstraintSolverParameters
extends
16 com.google.protobuf.GeneratedMessage implements
19private static final long serialVersionUID = 0L;
21 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
22 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
27 ConstraintSolverParameters.class.getName());
30 private ConstraintSolverParameters(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
33 private ConstraintSolverParameters() {
38 public static final com.google.protobuf.Descriptors.Descriptor
40 return com.google.ortools.constraintsolver.SolverParameters.internal_static_operations_research_ConstraintSolverParameters_descriptor;
44 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
46 return com.google.ortools.constraintsolver.SolverParameters.internal_static_operations_research_ConstraintSolverParameters_fieldAccessorTable
47 .ensureFieldAccessorsInitialized(
48 com.google.ortools.constraintsolver.ConstraintSolverParameters.class, com.google.ortools.constraintsolver.ConstraintSolverParameters.Builder.class);
59 public enum TrailCompression
60 implements com.google.protobuf.ProtocolMessageEnum {
73 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
74 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
79 TrailCompression.class.getName());
93 throw new java.lang.IllegalArgumentException(
94 "Can't get the number of an unknown enum value.");
104 @java.lang.Deprecated
105 public static TrailCompression
valueOf(
int value) {
117 default:
return null;
123 return internalValueMap;
125 private static final com.google.protobuf.Internal.EnumLiteMap<
133 public final com.google.protobuf.Descriptors.EnumValueDescriptor
136 throw new java.lang.IllegalStateException(
137 "Can't get the descriptor of an unrecognized enum value.");
141 public final com.google.protobuf.Descriptors.EnumDescriptor
145 public static final com.google.protobuf.Descriptors.EnumDescriptor
147 return com.google.ortools.constraintsolver.ConstraintSolverParameters.getDescriptor().getEnumTypes().get(0);
153 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
155 throw new java.lang.IllegalArgumentException(
156 "EnumValueDescriptor is not for this type.");
158 if (desc.getIndex() == -1) {
161 return VALUES[desc.getIndex()];
164 private final int value;
174 private int compressTrail_ = 0;
186 return compressTrail_;
204 private int trailBlockSize_ = 0;
216 return trailBlockSize_;
220 private int arraySplitSize_ = 0;
232 return arraySplitSize_;
236 private boolean storeNames_ =
false;
252 private boolean nameCastVariables_ =
false;
263 return nameCastVariables_;
267 private boolean nameAllVariables_ =
false;
278 return nameAllVariables_;
282 private boolean profilePropagation_ =
false;
293 return profilePropagation_;
297 @SuppressWarnings(
"serial")
298 private volatile java.lang.Object profileFile_ =
"";
309 java.lang.Object ref = profileFile_;
310 if (ref instanceof java.lang.String) {
311 return (java.lang.String) ref;
313 com.google.protobuf.ByteString bs =
314 (com.google.protobuf.ByteString) ref;
315 java.lang.String s = bs.toStringUtf8();
329 public com.google.protobuf.ByteString
331 java.lang.Object ref = profileFile_;
332 if (ref instanceof java.lang.String) {
333 com.google.protobuf.ByteString b =
334 com.google.protobuf.ByteString.copyFromUtf8(
335 (java.lang.String) ref);
339 return (com.google.protobuf.ByteString) ref;
344 private boolean profileLocalSearch_ =
false;
355 return profileLocalSearch_;
359 private boolean printLocalSearchProfile_ =
false;
370 return printLocalSearchProfile_;
374 private boolean tracePropagation_ =
false;
385 return tracePropagation_;
389 private boolean traceSearch_ =
false;
404 private boolean printModel_ =
false;
419 private boolean printModelStats_ =
false;
430 return printModelStats_;
434 private boolean printAddedConstraints_ =
false;
445 return printAddedConstraints_;
449 private boolean disableSolve_ =
false;
456 return disableSolve_;
460 private boolean useSmallTable_ =
false;
472 return useSmallTable_;
476 private boolean useCumulativeEdgeFinder_ =
false;
488 return useCumulativeEdgeFinder_;
492 private boolean useCumulativeTimeTable_ =
false;
499 return useCumulativeTimeTable_;
503 private boolean useCumulativeTimeTableSync_ =
false;
510 return useCumulativeTimeTableSync_;
514 private boolean useSequenceHighDemandTasks_ =
false;
521 return useSequenceHighDemandTasks_;
525 private boolean useAllPossibleDisjunctions_ =
false;
532 return useAllPossibleDisjunctions_;
536 private int maxEdgeFinderSize_ = 0;
543 return maxEdgeFinderSize_;
547 private boolean diffnUseCumulative_ =
false;
559 return diffnUseCumulative_;
563 private boolean useElementRmq_ =
false;
575 return useElementRmq_;
579 private boolean skipLocallyOptimalPaths_ =
false;
594 return skipLocallyOptimalPaths_;
598 private int checkSolutionPeriod_ = 0;
610 return checkSolutionPeriod_;
613 private byte memoizedIsInitialized = -1;
620 memoizedIsInitialized = 1;
625 public void writeTo(com.google.protobuf.CodedOutputStream output)
626 throws java.io.IOException {
627 if (compressTrail_ != com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression.NO_COMPRESSION.getNumber()) {
628 output.writeEnum(1, compressTrail_);
630 if (trailBlockSize_ != 0) {
631 output.writeInt32(2, trailBlockSize_);
633 if (arraySplitSize_ != 0) {
634 output.writeInt32(3, arraySplitSize_);
636 if (storeNames_ !=
false) {
637 output.writeBool(4, storeNames_);
639 if (nameCastVariables_ !=
false) {
640 output.writeBool(5, nameCastVariables_);
642 if (nameAllVariables_ !=
false) {
643 output.writeBool(6, nameAllVariables_);
645 if (profilePropagation_ !=
false) {
646 output.writeBool(7, profilePropagation_);
648 if (!com.google.protobuf.GeneratedMessage.isStringEmpty(profileFile_)) {
649 com.google.protobuf.GeneratedMessage.writeString(output, 8, profileFile_);
651 if (tracePropagation_ !=
false) {
652 output.writeBool(9, tracePropagation_);
654 if (traceSearch_ !=
false) {
655 output.writeBool(10, traceSearch_);
657 if (printModel_ !=
false) {
658 output.writeBool(11, printModel_);
660 if (printModelStats_ !=
false) {
661 output.writeBool(12, printModelStats_);
663 if (printAddedConstraints_ !=
false) {
664 output.writeBool(13, printAddedConstraints_);
666 if (disableSolve_ !=
false) {
667 output.writeBool(15, disableSolve_);
669 if (profileLocalSearch_ !=
false) {
670 output.writeBool(16, profileLocalSearch_);
672 if (printLocalSearchProfile_ !=
false) {
673 output.writeBool(17, printLocalSearchProfile_);
675 if (useSmallTable_ !=
false) {
676 output.writeBool(101, useSmallTable_);
678 if (useCumulativeEdgeFinder_ !=
false) {
679 output.writeBool(105, useCumulativeEdgeFinder_);
681 if (useCumulativeTimeTable_ !=
false) {
682 output.writeBool(106, useCumulativeTimeTable_);
684 if (useSequenceHighDemandTasks_ !=
false) {
685 output.writeBool(107, useSequenceHighDemandTasks_);
687 if (useAllPossibleDisjunctions_ !=
false) {
688 output.writeBool(108, useAllPossibleDisjunctions_);
690 if (maxEdgeFinderSize_ != 0) {
691 output.writeInt32(109, maxEdgeFinderSize_);
693 if (diffnUseCumulative_ !=
false) {
694 output.writeBool(110, diffnUseCumulative_);
696 if (useElementRmq_ !=
false) {
697 output.writeBool(111, useElementRmq_);
699 if (useCumulativeTimeTableSync_ !=
false) {
700 output.writeBool(112, useCumulativeTimeTableSync_);
702 if (skipLocallyOptimalPaths_ !=
false) {
703 output.writeBool(113, skipLocallyOptimalPaths_);
705 if (checkSolutionPeriod_ != 0) {
706 output.writeInt32(114, checkSolutionPeriod_);
708 getUnknownFields().writeTo(output);
713 int size = memoizedSize;
714 if (size != -1)
return size;
717 if (compressTrail_ != com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression.NO_COMPRESSION.getNumber()) {
718 size += com.google.protobuf.CodedOutputStream
719 .computeEnumSize(1, compressTrail_);
721 if (trailBlockSize_ != 0) {
722 size += com.google.protobuf.CodedOutputStream
723 .computeInt32Size(2, trailBlockSize_);
725 if (arraySplitSize_ != 0) {
726 size += com.google.protobuf.CodedOutputStream
727 .computeInt32Size(3, arraySplitSize_);
729 if (storeNames_ !=
false) {
730 size += com.google.protobuf.CodedOutputStream
731 .computeBoolSize(4, storeNames_);
733 if (nameCastVariables_ !=
false) {
734 size += com.google.protobuf.CodedOutputStream
735 .computeBoolSize(5, nameCastVariables_);
737 if (nameAllVariables_ !=
false) {
738 size += com.google.protobuf.CodedOutputStream
739 .computeBoolSize(6, nameAllVariables_);
741 if (profilePropagation_ !=
false) {
742 size += com.google.protobuf.CodedOutputStream
743 .computeBoolSize(7, profilePropagation_);
745 if (!com.google.protobuf.GeneratedMessage.isStringEmpty(profileFile_)) {
746 size += com.google.protobuf.GeneratedMessage.computeStringSize(8, profileFile_);
748 if (tracePropagation_ !=
false) {
749 size += com.google.protobuf.CodedOutputStream
750 .computeBoolSize(9, tracePropagation_);
752 if (traceSearch_ !=
false) {
753 size += com.google.protobuf.CodedOutputStream
754 .computeBoolSize(10, traceSearch_);
756 if (printModel_ !=
false) {
757 size += com.google.protobuf.CodedOutputStream
758 .computeBoolSize(11, printModel_);
760 if (printModelStats_ !=
false) {
761 size += com.google.protobuf.CodedOutputStream
762 .computeBoolSize(12, printModelStats_);
764 if (printAddedConstraints_ !=
false) {
765 size += com.google.protobuf.CodedOutputStream
766 .computeBoolSize(13, printAddedConstraints_);
768 if (disableSolve_ !=
false) {
769 size += com.google.protobuf.CodedOutputStream
770 .computeBoolSize(15, disableSolve_);
772 if (profileLocalSearch_ !=
false) {
773 size += com.google.protobuf.CodedOutputStream
774 .computeBoolSize(16, profileLocalSearch_);
776 if (printLocalSearchProfile_ !=
false) {
777 size += com.google.protobuf.CodedOutputStream
778 .computeBoolSize(17, printLocalSearchProfile_);
780 if (useSmallTable_ !=
false) {
781 size += com.google.protobuf.CodedOutputStream
782 .computeBoolSize(101, useSmallTable_);
784 if (useCumulativeEdgeFinder_ !=
false) {
785 size += com.google.protobuf.CodedOutputStream
786 .computeBoolSize(105, useCumulativeEdgeFinder_);
788 if (useCumulativeTimeTable_ !=
false) {
789 size += com.google.protobuf.CodedOutputStream
790 .computeBoolSize(106, useCumulativeTimeTable_);
792 if (useSequenceHighDemandTasks_ !=
false) {
793 size += com.google.protobuf.CodedOutputStream
794 .computeBoolSize(107, useSequenceHighDemandTasks_);
796 if (useAllPossibleDisjunctions_ !=
false) {
797 size += com.google.protobuf.CodedOutputStream
798 .computeBoolSize(108, useAllPossibleDisjunctions_);
800 if (maxEdgeFinderSize_ != 0) {
801 size += com.google.protobuf.CodedOutputStream
802 .computeInt32Size(109, maxEdgeFinderSize_);
804 if (diffnUseCumulative_ !=
false) {
805 size += com.google.protobuf.CodedOutputStream
806 .computeBoolSize(110, diffnUseCumulative_);
808 if (useElementRmq_ !=
false) {
809 size += com.google.protobuf.CodedOutputStream
810 .computeBoolSize(111, useElementRmq_);
812 if (useCumulativeTimeTableSync_ !=
false) {
813 size += com.google.protobuf.CodedOutputStream
814 .computeBoolSize(112, useCumulativeTimeTableSync_);
816 if (skipLocallyOptimalPaths_ !=
false) {
817 size += com.google.protobuf.CodedOutputStream
818 .computeBoolSize(113, skipLocallyOptimalPaths_);
820 if (checkSolutionPeriod_ != 0) {
821 size += com.google.protobuf.CodedOutputStream
822 .computeInt32Size(114, checkSolutionPeriod_);
824 size += getUnknownFields().getSerializedSize();
830 public boolean equals(
final java.lang.Object obj) {
834 if (!(obj instanceof com.google.ortools.constraintsolver.ConstraintSolverParameters)) {
835 return super.equals(obj);
839 if (compressTrail_ != other.compressTrail_)
return false;
892 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
898 if (memoizedHashCode != 0) {
899 return memoizedHashCode;
904 hash = (53 * hash) + compressTrail_;
910 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
913 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
916 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
919 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(
954 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
957 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
960 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
963 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
968 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
971 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
974 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
978 hash = (29 * hash) + getUnknownFields().hashCode();
979 memoizedHashCode = hash;
984 java.nio.ByteBuffer data)
985 throws com.google.protobuf.InvalidProtocolBufferException {
986 return PARSER.parseFrom(data);
989 java.nio.ByteBuffer data,
990 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
991 throws com.google.protobuf.InvalidProtocolBufferException {
992 return PARSER.parseFrom(data, extensionRegistry);
995 com.google.protobuf.ByteString data)
996 throws com.google.protobuf.InvalidProtocolBufferException {
997 return PARSER.parseFrom(data);
1000 com.google.protobuf.ByteString data,
1001 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1002 throws com.google.protobuf.InvalidProtocolBufferException {
1003 return PARSER.parseFrom(data, extensionRegistry);
1006 throws com.google.protobuf.InvalidProtocolBufferException {
1007 return PARSER.parseFrom(data);
1011 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1012 throws com.google.protobuf.InvalidProtocolBufferException {
1013 return PARSER.parseFrom(data, extensionRegistry);
1016 throws java.io.IOException {
1017 return com.google.protobuf.GeneratedMessage
1018 .parseWithIOException(PARSER, input);
1021 java.io.InputStream input,
1022 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1023 throws java.io.IOException {
1024 return com.google.protobuf.GeneratedMessage
1025 .parseWithIOException(PARSER, input, extensionRegistry);
1029 throws java.io.IOException {
1030 return com.google.protobuf.GeneratedMessage
1031 .parseDelimitedWithIOException(PARSER, input);
1035 java.io.InputStream input,
1036 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1037 throws java.io.IOException {
1038 return com.google.protobuf.GeneratedMessage
1039 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
1042 com.google.protobuf.CodedInputStream input)
1043 throws java.io.IOException {
1044 return com.google.protobuf.GeneratedMessage
1045 .parseWithIOException(PARSER, input);
1048 com.google.protobuf.CodedInputStream input,
1049 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1050 throws java.io.IOException {
1051 return com.google.protobuf.GeneratedMessage
1052 .parseWithIOException(PARSER, input, extensionRegistry);
1058 return DEFAULT_INSTANCE.toBuilder();
1060 public static Builder newBuilder(com.google.ortools.constraintsolver.ConstraintSolverParameters prototype) {
1061 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
1065 return this == DEFAULT_INSTANCE
1071 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1082 public static final class Builder
extends
1083 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
1086 public static final com.google.protobuf.Descriptors.Descriptor
1088 return com.google.ortools.constraintsolver.SolverParameters.internal_static_operations_research_ConstraintSolverParameters_descriptor;
1092 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1094 return com.google.ortools.constraintsolver.SolverParameters.internal_static_operations_research_ConstraintSolverParameters_fieldAccessorTable
1095 .ensureFieldAccessorsInitialized(
1096 com.google.ortools.constraintsolver.ConstraintSolverParameters.class, com.google.ortools.constraintsolver.ConstraintSolverParameters.Builder.class);
1105 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1114 trailBlockSize_ = 0;
1115 arraySplitSize_ = 0;
1116 storeNames_ =
false;
1117 nameCastVariables_ =
false;
1118 nameAllVariables_ =
false;
1119 profilePropagation_ =
false;
1121 profileLocalSearch_ =
false;
1122 printLocalSearchProfile_ =
false;
1123 tracePropagation_ =
false;
1124 traceSearch_ =
false;
1125 printModel_ =
false;
1126 printModelStats_ =
false;
1127 printAddedConstraints_ =
false;
1128 disableSolve_ =
false;
1129 useSmallTable_ =
false;
1130 useCumulativeEdgeFinder_ =
false;
1131 useCumulativeTimeTable_ =
false;
1132 useCumulativeTimeTableSync_ =
false;
1133 useSequenceHighDemandTasks_ =
false;
1134 useAllPossibleDisjunctions_ =
false;
1135 maxEdgeFinderSize_ = 0;
1136 diffnUseCumulative_ =
false;
1137 useElementRmq_ =
false;
1138 skipLocallyOptimalPaths_ =
false;
1139 checkSolutionPeriod_ = 0;
1144 public com.google.protobuf.Descriptors.Descriptor
1146 return com.google.ortools.constraintsolver.SolverParameters.internal_static_operations_research_ConstraintSolverParameters_descriptor;
1151 return com.google.ortools.constraintsolver.ConstraintSolverParameters.getDefaultInstance();
1158 throw newUninitializedMessageException(result);
1166 if (bitField0_ != 0) { buildPartial0(result); }
1171 private void buildPartial0(com.google.ortools.constraintsolver.ConstraintSolverParameters result) {
1172 int from_bitField0_ = bitField0_;
1173 if (((from_bitField0_ & 0x00000001) != 0)) {
1174 result.compressTrail_ = compressTrail_;
1176 if (((from_bitField0_ & 0x00000002) != 0)) {
1177 result.trailBlockSize_ = trailBlockSize_;
1179 if (((from_bitField0_ & 0x00000004) != 0)) {
1180 result.arraySplitSize_ = arraySplitSize_;
1182 if (((from_bitField0_ & 0x00000008) != 0)) {
1183 result.storeNames_ = storeNames_;
1185 if (((from_bitField0_ & 0x00000010) != 0)) {
1186 result.nameCastVariables_ = nameCastVariables_;
1188 if (((from_bitField0_ & 0x00000020) != 0)) {
1189 result.nameAllVariables_ = nameAllVariables_;
1191 if (((from_bitField0_ & 0x00000040) != 0)) {
1192 result.profilePropagation_ = profilePropagation_;
1194 if (((from_bitField0_ & 0x00000080) != 0)) {
1195 result.profileFile_ = profileFile_;
1197 if (((from_bitField0_ & 0x00000100) != 0)) {
1198 result.profileLocalSearch_ = profileLocalSearch_;
1200 if (((from_bitField0_ & 0x00000200) != 0)) {
1201 result.printLocalSearchProfile_ = printLocalSearchProfile_;
1203 if (((from_bitField0_ & 0x00000400) != 0)) {
1204 result.tracePropagation_ = tracePropagation_;
1206 if (((from_bitField0_ & 0x00000800) != 0)) {
1207 result.traceSearch_ = traceSearch_;
1209 if (((from_bitField0_ & 0x00001000) != 0)) {
1210 result.printModel_ = printModel_;
1212 if (((from_bitField0_ & 0x00002000) != 0)) {
1213 result.printModelStats_ = printModelStats_;
1215 if (((from_bitField0_ & 0x00004000) != 0)) {
1216 result.printAddedConstraints_ = printAddedConstraints_;
1218 if (((from_bitField0_ & 0x00008000) != 0)) {
1219 result.disableSolve_ = disableSolve_;
1221 if (((from_bitField0_ & 0x00010000) != 0)) {
1222 result.useSmallTable_ = useSmallTable_;
1224 if (((from_bitField0_ & 0x00020000) != 0)) {
1225 result.useCumulativeEdgeFinder_ = useCumulativeEdgeFinder_;
1227 if (((from_bitField0_ & 0x00040000) != 0)) {
1228 result.useCumulativeTimeTable_ = useCumulativeTimeTable_;
1230 if (((from_bitField0_ & 0x00080000) != 0)) {
1231 result.useCumulativeTimeTableSync_ = useCumulativeTimeTableSync_;
1233 if (((from_bitField0_ & 0x00100000) != 0)) {
1234 result.useSequenceHighDemandTasks_ = useSequenceHighDemandTasks_;
1236 if (((from_bitField0_ & 0x00200000) != 0)) {
1237 result.useAllPossibleDisjunctions_ = useAllPossibleDisjunctions_;
1239 if (((from_bitField0_ & 0x00400000) != 0)) {
1240 result.maxEdgeFinderSize_ = maxEdgeFinderSize_;
1242 if (((from_bitField0_ & 0x00800000) != 0)) {
1243 result.diffnUseCumulative_ = diffnUseCumulative_;
1245 if (((from_bitField0_ & 0x01000000) != 0)) {
1246 result.useElementRmq_ = useElementRmq_;
1248 if (((from_bitField0_ & 0x02000000) != 0)) {
1249 result.skipLocallyOptimalPaths_ = skipLocallyOptimalPaths_;
1251 if (((from_bitField0_ & 0x04000000) != 0)) {
1252 result.checkSolutionPeriod_ = checkSolutionPeriod_;
1257 public Builder
mergeFrom(com.google.protobuf.Message other) {
1258 if (other instanceof com.google.ortools.constraintsolver.ConstraintSolverParameters) {
1259 return mergeFrom((com.google.ortools.constraintsolver.ConstraintSolverParameters)other);
1261 super.mergeFrom(other);
1266 public Builder
mergeFrom(com.google.ortools.constraintsolver.ConstraintSolverParameters other) {
1267 if (other == com.google.ortools.constraintsolver.ConstraintSolverParameters.getDefaultInstance())
return this;
1268 if (other.compressTrail_ != 0) {
1271 if (other.getTrailBlockSize() != 0) {
1274 if (other.getArraySplitSize() != 0) {
1277 if (other.getStoreNames() !=
false) {
1280 if (other.getNameCastVariables() !=
false) {
1283 if (other.getNameAllVariables() !=
false) {
1286 if (other.getProfilePropagation() !=
false) {
1289 if (!other.getProfileFile().isEmpty()) {
1290 profileFile_ = other.profileFile_;
1291 bitField0_ |= 0x00000080;
1294 if (other.getProfileLocalSearch() !=
false) {
1297 if (other.getPrintLocalSearchProfile() !=
false) {
1300 if (other.getTracePropagation() !=
false) {
1303 if (other.getTraceSearch() !=
false) {
1306 if (other.getPrintModel() !=
false) {
1309 if (other.getPrintModelStats() !=
false) {
1312 if (other.getPrintAddedConstraints() !=
false) {
1315 if (other.getDisableSolve() !=
false) {
1318 if (other.getUseSmallTable() !=
false) {
1321 if (other.getUseCumulativeEdgeFinder() !=
false) {
1324 if (other.getUseCumulativeTimeTable() !=
false) {
1327 if (other.getUseCumulativeTimeTableSync() !=
false) {
1330 if (other.getUseSequenceHighDemandTasks() !=
false) {
1333 if (other.getUseAllPossibleDisjunctions() !=
false) {
1336 if (other.getMaxEdgeFinderSize() != 0) {
1339 if (other.getDiffnUseCumulative() !=
false) {
1342 if (other.getUseElementRmq() !=
false) {
1345 if (other.getSkipLocallyOptimalPaths() !=
false) {
1348 if (other.getCheckSolutionPeriod() != 0) {
1351 this.mergeUnknownFields(other.getUnknownFields());
1363 com.google.protobuf.CodedInputStream input,
1364 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1365 throws java.io.IOException {
1366 if (extensionRegistry ==
null) {
1367 throw new java.lang.NullPointerException();
1370 boolean done =
false;
1372 int tag = input.readTag();
1378 compressTrail_ = input.readEnum();
1379 bitField0_ |= 0x00000001;
1383 trailBlockSize_ = input.readInt32();
1384 bitField0_ |= 0x00000002;
1388 arraySplitSize_ = input.readInt32();
1389 bitField0_ |= 0x00000004;
1393 storeNames_ = input.readBool();
1394 bitField0_ |= 0x00000008;
1398 nameCastVariables_ = input.readBool();
1399 bitField0_ |= 0x00000010;
1403 nameAllVariables_ = input.readBool();
1404 bitField0_ |= 0x00000020;
1408 profilePropagation_ = input.readBool();
1409 bitField0_ |= 0x00000040;
1413 profileFile_ = input.readStringRequireUtf8();
1414 bitField0_ |= 0x00000080;
1418 tracePropagation_ = input.readBool();
1419 bitField0_ |= 0x00000400;
1423 traceSearch_ = input.readBool();
1424 bitField0_ |= 0x00000800;
1428 printModel_ = input.readBool();
1429 bitField0_ |= 0x00001000;
1433 printModelStats_ = input.readBool();
1434 bitField0_ |= 0x00002000;
1438 printAddedConstraints_ = input.readBool();
1439 bitField0_ |= 0x00004000;
1443 disableSolve_ = input.readBool();
1444 bitField0_ |= 0x00008000;
1448 profileLocalSearch_ = input.readBool();
1449 bitField0_ |= 0x00000100;
1453 printLocalSearchProfile_ = input.readBool();
1454 bitField0_ |= 0x00000200;
1458 useSmallTable_ = input.readBool();
1459 bitField0_ |= 0x00010000;
1463 useCumulativeEdgeFinder_ = input.readBool();
1464 bitField0_ |= 0x00020000;
1468 useCumulativeTimeTable_ = input.readBool();
1469 bitField0_ |= 0x00040000;
1473 useSequenceHighDemandTasks_ = input.readBool();
1474 bitField0_ |= 0x00100000;
1478 useAllPossibleDisjunctions_ = input.readBool();
1479 bitField0_ |= 0x00200000;
1483 maxEdgeFinderSize_ = input.readInt32();
1484 bitField0_ |= 0x00400000;
1488 diffnUseCumulative_ = input.readBool();
1489 bitField0_ |= 0x00800000;
1493 useElementRmq_ = input.readBool();
1494 bitField0_ |= 0x01000000;
1498 useCumulativeTimeTableSync_ = input.readBool();
1499 bitField0_ |= 0x00080000;
1503 skipLocallyOptimalPaths_ = input.readBool();
1504 bitField0_ |= 0x02000000;
1508 checkSolutionPeriod_ = input.readInt32();
1509 bitField0_ |= 0x04000000;
1513 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1520 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
1521 throw e.unwrapIOException();
1527 private int bitField0_;
1529 private int compressTrail_ = 0;
1541 return compressTrail_;
1555 compressTrail_ = value;
1556 bitField0_ |= 0x00000001;
1586 public Builder
setCompressTrail(com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression value) {
1587 if (value ==
null) {
1588 throw new NullPointerException();
1590 bitField0_ |= 0x00000001;
1591 compressTrail_ = value.getNumber();
1606 bitField0_ = (bitField0_ & ~0x00000001);
1612 private int trailBlockSize_ ;
1624 return trailBlockSize_;
1638 trailBlockSize_ = value;
1639 bitField0_ |= 0x00000002;
1653 bitField0_ = (bitField0_ & ~0x00000002);
1654 trailBlockSize_ = 0;
1659 private int arraySplitSize_ ;
1671 return arraySplitSize_;
1685 arraySplitSize_ = value;
1686 bitField0_ |= 0x00000004;
1700 bitField0_ = (bitField0_ & ~0x00000004);
1701 arraySplitSize_ = 0;
1706 private boolean storeNames_ ;
1732 storeNames_ = value;
1733 bitField0_ |= 0x00000008;
1747 bitField0_ = (bitField0_ & ~0x00000008);
1748 storeNames_ =
false;
1753 private boolean nameCastVariables_ ;
1764 return nameCastVariables_;
1777 nameCastVariables_ = value;
1778 bitField0_ |= 0x00000010;
1791 bitField0_ = (bitField0_ & ~0x00000010);
1792 nameCastVariables_ =
false;
1797 private boolean nameAllVariables_ ;
1808 return nameAllVariables_;
1821 nameAllVariables_ = value;
1822 bitField0_ |= 0x00000020;
1835 bitField0_ = (bitField0_ & ~0x00000020);
1836 nameAllVariables_ =
false;
1841 private boolean profilePropagation_ ;
1852 return profilePropagation_;
1865 profilePropagation_ = value;
1866 bitField0_ |= 0x00000040;
1879 bitField0_ = (bitField0_ & ~0x00000040);
1880 profilePropagation_ =
false;
1885 private java.lang.Object profileFile_ =
"";
1895 java.lang.Object ref = profileFile_;
1896 if (!(ref instanceof java.lang.String)) {
1897 com.google.protobuf.ByteString bs =
1898 (com.google.protobuf.ByteString) ref;
1899 java.lang.String s = bs.toStringUtf8();
1903 return (java.lang.String) ref;
1914 public com.google.protobuf.ByteString
1916 java.lang.Object ref = profileFile_;
1917 if (ref instanceof String) {
1918 com.google.protobuf.ByteString b =
1919 com.google.protobuf.ByteString.copyFromUtf8(
1920 (java.lang.String) ref);
1924 return (com.google.protobuf.ByteString) ref;
1937 java.lang.String value) {
1938 if (value ==
null) {
throw new NullPointerException(); }
1939 profileFile_ = value;
1940 bitField0_ |= 0x00000080;
1954 bitField0_ = (bitField0_ & ~0x00000080);
1968 com.google.protobuf.ByteString value) {
1969 if (value ==
null) {
throw new NullPointerException(); }
1970 checkByteStringIsUtf8(value);
1971 profileFile_ = value;
1972 bitField0_ |= 0x00000080;
1977 private boolean profileLocalSearch_ ;
1988 return profileLocalSearch_;
2001 profileLocalSearch_ = value;
2002 bitField0_ |= 0x00000100;
2015 bitField0_ = (bitField0_ & ~0x00000100);
2016 profileLocalSearch_ =
false;
2021 private boolean printLocalSearchProfile_ ;
2032 return printLocalSearchProfile_;
2045 printLocalSearchProfile_ = value;
2046 bitField0_ |= 0x00000200;
2059 bitField0_ = (bitField0_ & ~0x00000200);
2060 printLocalSearchProfile_ =
false;
2065 private boolean tracePropagation_ ;
2076 return tracePropagation_;
2089 tracePropagation_ = value;
2090 bitField0_ |= 0x00000400;
2103 bitField0_ = (bitField0_ & ~0x00000400);
2104 tracePropagation_ =
false;
2109 private boolean traceSearch_ ;
2120 return traceSearch_;
2133 traceSearch_ = value;
2134 bitField0_ |= 0x00000800;
2147 bitField0_ = (bitField0_ & ~0x00000800);
2148 traceSearch_ =
false;
2153 private boolean printModel_ ;
2177 printModel_ = value;
2178 bitField0_ |= 0x00001000;
2191 bitField0_ = (bitField0_ & ~0x00001000);
2192 printModel_ =
false;
2197 private boolean printModelStats_ ;
2208 return printModelStats_;
2221 printModelStats_ = value;
2222 bitField0_ |= 0x00002000;
2235 bitField0_ = (bitField0_ & ~0x00002000);
2236 printModelStats_ =
false;
2241 private boolean printAddedConstraints_ ;
2252 return printAddedConstraints_;
2265 printAddedConstraints_ = value;
2266 bitField0_ |= 0x00004000;
2279 bitField0_ = (bitField0_ & ~0x00004000);
2280 printAddedConstraints_ =
false;
2285 private boolean disableSolve_ ;
2292 return disableSolve_;
2301 disableSolve_ = value;
2302 bitField0_ |= 0x00008000;
2311 bitField0_ = (bitField0_ & ~0x00008000);
2312 disableSolve_ =
false;
2317 private boolean useSmallTable_ ;
2329 return useSmallTable_;
2343 useSmallTable_ = value;
2344 bitField0_ |= 0x00010000;
2358 bitField0_ = (bitField0_ & ~0x00010000);
2359 useSmallTable_ =
false;
2364 private boolean useCumulativeEdgeFinder_ ;
2376 return useCumulativeEdgeFinder_;
2390 useCumulativeEdgeFinder_ = value;
2391 bitField0_ |= 0x00020000;
2405 bitField0_ = (bitField0_ & ~0x00020000);
2406 useCumulativeEdgeFinder_ =
false;
2411 private boolean useCumulativeTimeTable_ ;
2418 return useCumulativeTimeTable_;
2427 useCumulativeTimeTable_ = value;
2428 bitField0_ |= 0x00040000;
2437 bitField0_ = (bitField0_ & ~0x00040000);
2438 useCumulativeTimeTable_ =
false;
2443 private boolean useCumulativeTimeTableSync_ ;
2450 return useCumulativeTimeTableSync_;
2459 useCumulativeTimeTableSync_ = value;
2460 bitField0_ |= 0x00080000;
2469 bitField0_ = (bitField0_ & ~0x00080000);
2470 useCumulativeTimeTableSync_ =
false;
2475 private boolean useSequenceHighDemandTasks_ ;
2482 return useSequenceHighDemandTasks_;
2491 useSequenceHighDemandTasks_ = value;
2492 bitField0_ |= 0x00100000;
2501 bitField0_ = (bitField0_ & ~0x00100000);
2502 useSequenceHighDemandTasks_ =
false;
2507 private boolean useAllPossibleDisjunctions_ ;
2514 return useAllPossibleDisjunctions_;
2523 useAllPossibleDisjunctions_ = value;
2524 bitField0_ |= 0x00200000;
2533 bitField0_ = (bitField0_ & ~0x00200000);
2534 useAllPossibleDisjunctions_ =
false;
2539 private int maxEdgeFinderSize_ ;
2546 return maxEdgeFinderSize_;
2555 maxEdgeFinderSize_ = value;
2556 bitField0_ |= 0x00400000;
2565 bitField0_ = (bitField0_ & ~0x00400000);
2566 maxEdgeFinderSize_ = 0;
2571 private boolean diffnUseCumulative_ ;
2583 return diffnUseCumulative_;
2597 diffnUseCumulative_ = value;
2598 bitField0_ |= 0x00800000;
2612 bitField0_ = (bitField0_ & ~0x00800000);
2613 diffnUseCumulative_ =
false;
2618 private boolean useElementRmq_ ;
2630 return useElementRmq_;
2644 useElementRmq_ = value;
2645 bitField0_ |= 0x01000000;
2659 bitField0_ = (bitField0_ & ~0x01000000);
2660 useElementRmq_ =
false;
2665 private boolean skipLocallyOptimalPaths_ ;
2680 return skipLocallyOptimalPaths_;
2697 skipLocallyOptimalPaths_ = value;
2698 bitField0_ |= 0x02000000;
2715 bitField0_ = (bitField0_ & ~0x02000000);
2716 skipLocallyOptimalPaths_ =
false;
2721 private int checkSolutionPeriod_ ;
2733 return checkSolutionPeriod_;
2747 checkSolutionPeriod_ = value;
2748 bitField0_ |= 0x04000000;
2762 bitField0_ = (bitField0_ & ~0x04000000);
2763 checkSolutionPeriod_ = 0;
2774 DEFAULT_INSTANCE =
new com.google.ortools.constraintsolver.ConstraintSolverParameters();
2778 return DEFAULT_INSTANCE;
2785 com.google.protobuf.CodedInputStream input,
2786 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2787 throws com.google.protobuf.InvalidProtocolBufferException {
2790 builder.mergeFrom(input, extensionRegistry);
2791 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
2792 throw e.setUnfinishedMessage(builder.buildPartial());
2793 }
catch (com.google.protobuf.UninitializedMessageException e) {
2794 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
2795 }
catch (java.io.IOException e) {
2796 throw new com.google.protobuf.InvalidProtocolBufferException(e)
2797 .setUnfinishedMessage(builder.buildPartial());
2799 return builder.buildPartial();
2803 public static com.google.protobuf.Parser<ConstraintSolverParameters>
parser() {
2814 return DEFAULT_INSTANCE;