6package com.google.ortools.constraintsolver;
15@com.google.protobuf.Generated
16public final class ConstraintSolverParameters
extends
17 com.google.protobuf.GeneratedMessage implements
20private static final long serialVersionUID = 0L;
22 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
23 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
28 ConstraintSolverParameters.class.getName());
31 private ConstraintSolverParameters(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
34 private ConstraintSolverParameters() {
39 public static final com.google.protobuf.Descriptors.Descriptor
41 return com.google.ortools.constraintsolver.SolverParameters.internal_static_operations_research_ConstraintSolverParameters_descriptor;
45 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
47 return com.google.ortools.constraintsolver.SolverParameters.internal_static_operations_research_ConstraintSolverParameters_fieldAccessorTable
48 .ensureFieldAccessorsInitialized(
49 com.google.ortools.constraintsolver.ConstraintSolverParameters.class, com.google.ortools.constraintsolver.ConstraintSolverParameters.Builder.class);
60 public enum TrailCompression
61 implements com.google.protobuf.ProtocolMessageEnum {
74 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
75 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
80 TrailCompression.class.getName());
94 throw new java.lang.IllegalArgumentException(
95 "Can't get the number of an unknown enum value.");
105 @java.lang.Deprecated
106 public static TrailCompression
valueOf(
int value) {
118 default:
return null;
124 return internalValueMap;
126 private static final com.google.protobuf.Internal.EnumLiteMap<
134 public final com.google.protobuf.Descriptors.EnumValueDescriptor
137 throw new java.lang.IllegalStateException(
138 "Can't get the descriptor of an unrecognized enum value.");
142 public final com.google.protobuf.Descriptors.EnumDescriptor
146 public static com.google.protobuf.Descriptors.EnumDescriptor
148 return com.google.ortools.constraintsolver.ConstraintSolverParameters.getDescriptor().getEnumTypes().get(0);
154 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
156 throw new java.lang.IllegalArgumentException(
157 "EnumValueDescriptor is not for this type.");
159 if (desc.getIndex() == -1) {
162 return VALUES[desc.getIndex()];
165 private final int value;
175 private int compressTrail_ = 0;
187 return compressTrail_;
205 private int trailBlockSize_ = 0;
217 return trailBlockSize_;
221 private int arraySplitSize_ = 0;
233 return arraySplitSize_;
237 private boolean storeNames_ =
false;
253 private boolean nameCastVariables_ =
false;
264 return nameCastVariables_;
268 private boolean nameAllVariables_ =
false;
279 return nameAllVariables_;
283 private boolean profilePropagation_ =
false;
294 return profilePropagation_;
298 @SuppressWarnings(
"serial")
299 private volatile java.lang.Object profileFile_ =
"";
310 java.lang.Object ref = profileFile_;
311 if (ref instanceof java.lang.String) {
312 return (java.lang.String) ref;
314 com.google.protobuf.ByteString bs =
315 (com.google.protobuf.ByteString) ref;
316 java.lang.String s = bs.toStringUtf8();
330 public com.google.protobuf.ByteString
332 java.lang.Object ref = profileFile_;
333 if (ref instanceof java.lang.String) {
334 com.google.protobuf.ByteString b =
335 com.google.protobuf.ByteString.copyFromUtf8(
336 (java.lang.String) ref);
340 return (com.google.protobuf.ByteString) ref;
345 private boolean profileLocalSearch_ =
false;
356 return profileLocalSearch_;
360 private boolean printLocalSearchProfile_ =
false;
371 return printLocalSearchProfile_;
375 private boolean tracePropagation_ =
false;
386 return tracePropagation_;
390 private boolean traceSearch_ =
false;
405 private boolean printModel_ =
false;
420 private boolean printModelStats_ =
false;
431 return printModelStats_;
435 private boolean printAddedConstraints_ =
false;
446 return printAddedConstraints_;
450 private boolean disableSolve_ =
false;
457 return disableSolve_;
461 private boolean useSmallTable_ =
false;
473 return useSmallTable_;
477 private boolean useCumulativeEdgeFinder_ =
false;
489 return useCumulativeEdgeFinder_;
493 private boolean useCumulativeTimeTable_ =
false;
500 return useCumulativeTimeTable_;
504 private boolean useCumulativeTimeTableSync_ =
false;
511 return useCumulativeTimeTableSync_;
515 private boolean useSequenceHighDemandTasks_ =
false;
522 return useSequenceHighDemandTasks_;
526 private boolean useAllPossibleDisjunctions_ =
false;
533 return useAllPossibleDisjunctions_;
537 private int maxEdgeFinderSize_ = 0;
544 return maxEdgeFinderSize_;
548 private boolean diffnUseCumulative_ =
false;
560 return diffnUseCumulative_;
564 private boolean useElementRmq_ =
false;
576 return useElementRmq_;
580 private boolean skipLocallyOptimalPaths_ =
false;
595 return skipLocallyOptimalPaths_;
599 private int checkSolutionPeriod_ = 0;
611 return checkSolutionPeriod_;
614 private byte memoizedIsInitialized = -1;
621 memoizedIsInitialized = 1;
626 public void writeTo(com.google.protobuf.CodedOutputStream output)
627 throws java.io.IOException {
628 if (compressTrail_ != com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression.NO_COMPRESSION.getNumber()) {
629 output.writeEnum(1, compressTrail_);
631 if (trailBlockSize_ != 0) {
632 output.writeInt32(2, trailBlockSize_);
634 if (arraySplitSize_ != 0) {
635 output.writeInt32(3, arraySplitSize_);
637 if (storeNames_ !=
false) {
638 output.writeBool(4, storeNames_);
640 if (nameCastVariables_ !=
false) {
641 output.writeBool(5, nameCastVariables_);
643 if (nameAllVariables_ !=
false) {
644 output.writeBool(6, nameAllVariables_);
646 if (profilePropagation_ !=
false) {
647 output.writeBool(7, profilePropagation_);
649 if (!com.google.protobuf.GeneratedMessage.isStringEmpty(profileFile_)) {
650 com.google.protobuf.GeneratedMessage.writeString(output, 8, profileFile_);
652 if (tracePropagation_ !=
false) {
653 output.writeBool(9, tracePropagation_);
655 if (traceSearch_ !=
false) {
656 output.writeBool(10, traceSearch_);
658 if (printModel_ !=
false) {
659 output.writeBool(11, printModel_);
661 if (printModelStats_ !=
false) {
662 output.writeBool(12, printModelStats_);
664 if (printAddedConstraints_ !=
false) {
665 output.writeBool(13, printAddedConstraints_);
667 if (disableSolve_ !=
false) {
668 output.writeBool(15, disableSolve_);
670 if (profileLocalSearch_ !=
false) {
671 output.writeBool(16, profileLocalSearch_);
673 if (printLocalSearchProfile_ !=
false) {
674 output.writeBool(17, printLocalSearchProfile_);
676 if (useSmallTable_ !=
false) {
677 output.writeBool(101, useSmallTable_);
679 if (useCumulativeEdgeFinder_ !=
false) {
680 output.writeBool(105, useCumulativeEdgeFinder_);
682 if (useCumulativeTimeTable_ !=
false) {
683 output.writeBool(106, useCumulativeTimeTable_);
685 if (useSequenceHighDemandTasks_ !=
false) {
686 output.writeBool(107, useSequenceHighDemandTasks_);
688 if (useAllPossibleDisjunctions_ !=
false) {
689 output.writeBool(108, useAllPossibleDisjunctions_);
691 if (maxEdgeFinderSize_ != 0) {
692 output.writeInt32(109, maxEdgeFinderSize_);
694 if (diffnUseCumulative_ !=
false) {
695 output.writeBool(110, diffnUseCumulative_);
697 if (useElementRmq_ !=
false) {
698 output.writeBool(111, useElementRmq_);
700 if (useCumulativeTimeTableSync_ !=
false) {
701 output.writeBool(112, useCumulativeTimeTableSync_);
703 if (skipLocallyOptimalPaths_ !=
false) {
704 output.writeBool(113, skipLocallyOptimalPaths_);
706 if (checkSolutionPeriod_ != 0) {
707 output.writeInt32(114, checkSolutionPeriod_);
709 getUnknownFields().writeTo(output);
714 int size = memoizedSize;
715 if (size != -1)
return size;
718 if (compressTrail_ != com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression.NO_COMPRESSION.getNumber()) {
719 size += com.google.protobuf.CodedOutputStream
720 .computeEnumSize(1, compressTrail_);
722 if (trailBlockSize_ != 0) {
723 size += com.google.protobuf.CodedOutputStream
724 .computeInt32Size(2, trailBlockSize_);
726 if (arraySplitSize_ != 0) {
727 size += com.google.protobuf.CodedOutputStream
728 .computeInt32Size(3, arraySplitSize_);
730 if (storeNames_ !=
false) {
731 size += com.google.protobuf.CodedOutputStream
732 .computeBoolSize(4, storeNames_);
734 if (nameCastVariables_ !=
false) {
735 size += com.google.protobuf.CodedOutputStream
736 .computeBoolSize(5, nameCastVariables_);
738 if (nameAllVariables_ !=
false) {
739 size += com.google.protobuf.CodedOutputStream
740 .computeBoolSize(6, nameAllVariables_);
742 if (profilePropagation_ !=
false) {
743 size += com.google.protobuf.CodedOutputStream
744 .computeBoolSize(7, profilePropagation_);
746 if (!com.google.protobuf.GeneratedMessage.isStringEmpty(profileFile_)) {
747 size += com.google.protobuf.GeneratedMessage.computeStringSize(8, profileFile_);
749 if (tracePropagation_ !=
false) {
750 size += com.google.protobuf.CodedOutputStream
751 .computeBoolSize(9, tracePropagation_);
753 if (traceSearch_ !=
false) {
754 size += com.google.protobuf.CodedOutputStream
755 .computeBoolSize(10, traceSearch_);
757 if (printModel_ !=
false) {
758 size += com.google.protobuf.CodedOutputStream
759 .computeBoolSize(11, printModel_);
761 if (printModelStats_ !=
false) {
762 size += com.google.protobuf.CodedOutputStream
763 .computeBoolSize(12, printModelStats_);
765 if (printAddedConstraints_ !=
false) {
766 size += com.google.protobuf.CodedOutputStream
767 .computeBoolSize(13, printAddedConstraints_);
769 if (disableSolve_ !=
false) {
770 size += com.google.protobuf.CodedOutputStream
771 .computeBoolSize(15, disableSolve_);
773 if (profileLocalSearch_ !=
false) {
774 size += com.google.protobuf.CodedOutputStream
775 .computeBoolSize(16, profileLocalSearch_);
777 if (printLocalSearchProfile_ !=
false) {
778 size += com.google.protobuf.CodedOutputStream
779 .computeBoolSize(17, printLocalSearchProfile_);
781 if (useSmallTable_ !=
false) {
782 size += com.google.protobuf.CodedOutputStream
783 .computeBoolSize(101, useSmallTable_);
785 if (useCumulativeEdgeFinder_ !=
false) {
786 size += com.google.protobuf.CodedOutputStream
787 .computeBoolSize(105, useCumulativeEdgeFinder_);
789 if (useCumulativeTimeTable_ !=
false) {
790 size += com.google.protobuf.CodedOutputStream
791 .computeBoolSize(106, useCumulativeTimeTable_);
793 if (useSequenceHighDemandTasks_ !=
false) {
794 size += com.google.protobuf.CodedOutputStream
795 .computeBoolSize(107, useSequenceHighDemandTasks_);
797 if (useAllPossibleDisjunctions_ !=
false) {
798 size += com.google.protobuf.CodedOutputStream
799 .computeBoolSize(108, useAllPossibleDisjunctions_);
801 if (maxEdgeFinderSize_ != 0) {
802 size += com.google.protobuf.CodedOutputStream
803 .computeInt32Size(109, maxEdgeFinderSize_);
805 if (diffnUseCumulative_ !=
false) {
806 size += com.google.protobuf.CodedOutputStream
807 .computeBoolSize(110, diffnUseCumulative_);
809 if (useElementRmq_ !=
false) {
810 size += com.google.protobuf.CodedOutputStream
811 .computeBoolSize(111, useElementRmq_);
813 if (useCumulativeTimeTableSync_ !=
false) {
814 size += com.google.protobuf.CodedOutputStream
815 .computeBoolSize(112, useCumulativeTimeTableSync_);
817 if (skipLocallyOptimalPaths_ !=
false) {
818 size += com.google.protobuf.CodedOutputStream
819 .computeBoolSize(113, skipLocallyOptimalPaths_);
821 if (checkSolutionPeriod_ != 0) {
822 size += com.google.protobuf.CodedOutputStream
823 .computeInt32Size(114, checkSolutionPeriod_);
825 size += getUnknownFields().getSerializedSize();
831 public boolean equals(
final java.lang.Object obj) {
835 if (!(obj instanceof com.google.ortools.constraintsolver.ConstraintSolverParameters)) {
836 return super.equals(obj);
840 if (compressTrail_ != other.compressTrail_)
return false;
893 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
899 if (memoizedHashCode != 0) {
900 return memoizedHashCode;
905 hash = (53 * hash) + compressTrail_;
911 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
914 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
917 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
920 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
925 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
928 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
931 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
934 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
937 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
940 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
943 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
946 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
949 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
952 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
955 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
958 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
961 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
964 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
969 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
972 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
975 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
979 hash = (29 * hash) + getUnknownFields().hashCode();
980 memoizedHashCode = hash;
985 java.nio.ByteBuffer data)
986 throws com.google.protobuf.InvalidProtocolBufferException {
987 return PARSER.parseFrom(data);
990 java.nio.ByteBuffer data,
991 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
992 throws com.google.protobuf.InvalidProtocolBufferException {
993 return PARSER.parseFrom(data, extensionRegistry);
996 com.google.protobuf.ByteString data)
997 throws com.google.protobuf.InvalidProtocolBufferException {
998 return PARSER.parseFrom(data);
1001 com.google.protobuf.ByteString data,
1002 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1003 throws com.google.protobuf.InvalidProtocolBufferException {
1004 return PARSER.parseFrom(data, extensionRegistry);
1007 throws com.google.protobuf.InvalidProtocolBufferException {
1008 return PARSER.parseFrom(data);
1012 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1013 throws com.google.protobuf.InvalidProtocolBufferException {
1014 return PARSER.parseFrom(data, extensionRegistry);
1017 throws java.io.IOException {
1018 return com.google.protobuf.GeneratedMessage
1019 .parseWithIOException(PARSER, input);
1022 java.io.InputStream input,
1023 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1024 throws java.io.IOException {
1025 return com.google.protobuf.GeneratedMessage
1026 .parseWithIOException(PARSER, input, extensionRegistry);
1030 throws java.io.IOException {
1031 return com.google.protobuf.GeneratedMessage
1032 .parseDelimitedWithIOException(PARSER, input);
1036 java.io.InputStream input,
1037 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1038 throws java.io.IOException {
1039 return com.google.protobuf.GeneratedMessage
1040 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
1043 com.google.protobuf.CodedInputStream input)
1044 throws java.io.IOException {
1045 return com.google.protobuf.GeneratedMessage
1046 .parseWithIOException(PARSER, input);
1049 com.google.protobuf.CodedInputStream input,
1050 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1051 throws java.io.IOException {
1052 return com.google.protobuf.GeneratedMessage
1053 .parseWithIOException(PARSER, input, extensionRegistry);
1059 return DEFAULT_INSTANCE.toBuilder();
1061 public static Builder newBuilder(com.google.ortools.constraintsolver.ConstraintSolverParameters prototype) {
1062 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
1066 return this == DEFAULT_INSTANCE
1072 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1083 public static final class Builder
extends
1084 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
1087 public static final com.google.protobuf.Descriptors.Descriptor
1089 return com.google.ortools.constraintsolver.SolverParameters.internal_static_operations_research_ConstraintSolverParameters_descriptor;
1093 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1095 return com.google.ortools.constraintsolver.SolverParameters.internal_static_operations_research_ConstraintSolverParameters_fieldAccessorTable
1096 .ensureFieldAccessorsInitialized(
1097 com.google.ortools.constraintsolver.ConstraintSolverParameters.class, com.google.ortools.constraintsolver.ConstraintSolverParameters.Builder.class);
1106 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1115 trailBlockSize_ = 0;
1116 arraySplitSize_ = 0;
1117 storeNames_ =
false;
1118 nameCastVariables_ =
false;
1119 nameAllVariables_ =
false;
1120 profilePropagation_ =
false;
1122 profileLocalSearch_ =
false;
1123 printLocalSearchProfile_ =
false;
1124 tracePropagation_ =
false;
1125 traceSearch_ =
false;
1126 printModel_ =
false;
1127 printModelStats_ =
false;
1128 printAddedConstraints_ =
false;
1129 disableSolve_ =
false;
1130 useSmallTable_ =
false;
1131 useCumulativeEdgeFinder_ =
false;
1132 useCumulativeTimeTable_ =
false;
1133 useCumulativeTimeTableSync_ =
false;
1134 useSequenceHighDemandTasks_ =
false;
1135 useAllPossibleDisjunctions_ =
false;
1136 maxEdgeFinderSize_ = 0;
1137 diffnUseCumulative_ =
false;
1138 useElementRmq_ =
false;
1139 skipLocallyOptimalPaths_ =
false;
1140 checkSolutionPeriod_ = 0;
1145 public com.google.protobuf.Descriptors.Descriptor
1147 return com.google.ortools.constraintsolver.SolverParameters.internal_static_operations_research_ConstraintSolverParameters_descriptor;
1152 return com.google.ortools.constraintsolver.ConstraintSolverParameters.getDefaultInstance();
1159 throw newUninitializedMessageException(result);
1167 if (bitField0_ != 0) { buildPartial0(result); }
1172 private void buildPartial0(com.google.ortools.constraintsolver.ConstraintSolverParameters result) {
1173 int from_bitField0_ = bitField0_;
1174 if (((from_bitField0_ & 0x00000001) != 0)) {
1175 result.compressTrail_ = compressTrail_;
1177 if (((from_bitField0_ & 0x00000002) != 0)) {
1178 result.trailBlockSize_ = trailBlockSize_;
1180 if (((from_bitField0_ & 0x00000004) != 0)) {
1181 result.arraySplitSize_ = arraySplitSize_;
1183 if (((from_bitField0_ & 0x00000008) != 0)) {
1184 result.storeNames_ = storeNames_;
1186 if (((from_bitField0_ & 0x00000010) != 0)) {
1187 result.nameCastVariables_ = nameCastVariables_;
1189 if (((from_bitField0_ & 0x00000020) != 0)) {
1190 result.nameAllVariables_ = nameAllVariables_;
1192 if (((from_bitField0_ & 0x00000040) != 0)) {
1193 result.profilePropagation_ = profilePropagation_;
1195 if (((from_bitField0_ & 0x00000080) != 0)) {
1196 result.profileFile_ = profileFile_;
1198 if (((from_bitField0_ & 0x00000100) != 0)) {
1199 result.profileLocalSearch_ = profileLocalSearch_;
1201 if (((from_bitField0_ & 0x00000200) != 0)) {
1202 result.printLocalSearchProfile_ = printLocalSearchProfile_;
1204 if (((from_bitField0_ & 0x00000400) != 0)) {
1205 result.tracePropagation_ = tracePropagation_;
1207 if (((from_bitField0_ & 0x00000800) != 0)) {
1208 result.traceSearch_ = traceSearch_;
1210 if (((from_bitField0_ & 0x00001000) != 0)) {
1211 result.printModel_ = printModel_;
1213 if (((from_bitField0_ & 0x00002000) != 0)) {
1214 result.printModelStats_ = printModelStats_;
1216 if (((from_bitField0_ & 0x00004000) != 0)) {
1217 result.printAddedConstraints_ = printAddedConstraints_;
1219 if (((from_bitField0_ & 0x00008000) != 0)) {
1220 result.disableSolve_ = disableSolve_;
1222 if (((from_bitField0_ & 0x00010000) != 0)) {
1223 result.useSmallTable_ = useSmallTable_;
1225 if (((from_bitField0_ & 0x00020000) != 0)) {
1226 result.useCumulativeEdgeFinder_ = useCumulativeEdgeFinder_;
1228 if (((from_bitField0_ & 0x00040000) != 0)) {
1229 result.useCumulativeTimeTable_ = useCumulativeTimeTable_;
1231 if (((from_bitField0_ & 0x00080000) != 0)) {
1232 result.useCumulativeTimeTableSync_ = useCumulativeTimeTableSync_;
1234 if (((from_bitField0_ & 0x00100000) != 0)) {
1235 result.useSequenceHighDemandTasks_ = useSequenceHighDemandTasks_;
1237 if (((from_bitField0_ & 0x00200000) != 0)) {
1238 result.useAllPossibleDisjunctions_ = useAllPossibleDisjunctions_;
1240 if (((from_bitField0_ & 0x00400000) != 0)) {
1241 result.maxEdgeFinderSize_ = maxEdgeFinderSize_;
1243 if (((from_bitField0_ & 0x00800000) != 0)) {
1244 result.diffnUseCumulative_ = diffnUseCumulative_;
1246 if (((from_bitField0_ & 0x01000000) != 0)) {
1247 result.useElementRmq_ = useElementRmq_;
1249 if (((from_bitField0_ & 0x02000000) != 0)) {
1250 result.skipLocallyOptimalPaths_ = skipLocallyOptimalPaths_;
1252 if (((from_bitField0_ & 0x04000000) != 0)) {
1253 result.checkSolutionPeriod_ = checkSolutionPeriod_;
1258 public Builder
mergeFrom(com.google.protobuf.Message other) {
1259 if (other instanceof com.google.ortools.constraintsolver.ConstraintSolverParameters) {
1260 return mergeFrom((com.google.ortools.constraintsolver.ConstraintSolverParameters)other);
1262 super.mergeFrom(other);
1267 public Builder
mergeFrom(com.google.ortools.constraintsolver.ConstraintSolverParameters other) {
1268 if (other == com.google.ortools.constraintsolver.ConstraintSolverParameters.getDefaultInstance())
return this;
1269 if (other.compressTrail_ != 0) {
1272 if (other.getTrailBlockSize() != 0) {
1275 if (other.getArraySplitSize() != 0) {
1278 if (other.getStoreNames() !=
false) {
1281 if (other.getNameCastVariables() !=
false) {
1284 if (other.getNameAllVariables() !=
false) {
1287 if (other.getProfilePropagation() !=
false) {
1290 if (!other.getProfileFile().isEmpty()) {
1291 profileFile_ = other.profileFile_;
1292 bitField0_ |= 0x00000080;
1295 if (other.getProfileLocalSearch() !=
false) {
1298 if (other.getPrintLocalSearchProfile() !=
false) {
1301 if (other.getTracePropagation() !=
false) {
1304 if (other.getTraceSearch() !=
false) {
1307 if (other.getPrintModel() !=
false) {
1310 if (other.getPrintModelStats() !=
false) {
1313 if (other.getPrintAddedConstraints() !=
false) {
1316 if (other.getDisableSolve() !=
false) {
1319 if (other.getUseSmallTable() !=
false) {
1322 if (other.getUseCumulativeEdgeFinder() !=
false) {
1325 if (other.getUseCumulativeTimeTable() !=
false) {
1328 if (other.getUseCumulativeTimeTableSync() !=
false) {
1331 if (other.getUseSequenceHighDemandTasks() !=
false) {
1334 if (other.getUseAllPossibleDisjunctions() !=
false) {
1337 if (other.getMaxEdgeFinderSize() != 0) {
1340 if (other.getDiffnUseCumulative() !=
false) {
1343 if (other.getUseElementRmq() !=
false) {
1346 if (other.getSkipLocallyOptimalPaths() !=
false) {
1349 if (other.getCheckSolutionPeriod() != 0) {
1352 this.mergeUnknownFields(other.getUnknownFields());
1364 com.google.protobuf.CodedInputStream input,
1365 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1366 throws java.io.IOException {
1367 if (extensionRegistry ==
null) {
1368 throw new java.lang.NullPointerException();
1371 boolean done =
false;
1373 int tag = input.readTag();
1379 compressTrail_ = input.readEnum();
1380 bitField0_ |= 0x00000001;
1384 trailBlockSize_ = input.readInt32();
1385 bitField0_ |= 0x00000002;
1389 arraySplitSize_ = input.readInt32();
1390 bitField0_ |= 0x00000004;
1394 storeNames_ = input.readBool();
1395 bitField0_ |= 0x00000008;
1399 nameCastVariables_ = input.readBool();
1400 bitField0_ |= 0x00000010;
1404 nameAllVariables_ = input.readBool();
1405 bitField0_ |= 0x00000020;
1409 profilePropagation_ = input.readBool();
1410 bitField0_ |= 0x00000040;
1414 profileFile_ = input.readStringRequireUtf8();
1415 bitField0_ |= 0x00000080;
1419 tracePropagation_ = input.readBool();
1420 bitField0_ |= 0x00000400;
1424 traceSearch_ = input.readBool();
1425 bitField0_ |= 0x00000800;
1429 printModel_ = input.readBool();
1430 bitField0_ |= 0x00001000;
1434 printModelStats_ = input.readBool();
1435 bitField0_ |= 0x00002000;
1439 printAddedConstraints_ = input.readBool();
1440 bitField0_ |= 0x00004000;
1444 disableSolve_ = input.readBool();
1445 bitField0_ |= 0x00008000;
1449 profileLocalSearch_ = input.readBool();
1450 bitField0_ |= 0x00000100;
1454 printLocalSearchProfile_ = input.readBool();
1455 bitField0_ |= 0x00000200;
1459 useSmallTable_ = input.readBool();
1460 bitField0_ |= 0x00010000;
1464 useCumulativeEdgeFinder_ = input.readBool();
1465 bitField0_ |= 0x00020000;
1469 useCumulativeTimeTable_ = input.readBool();
1470 bitField0_ |= 0x00040000;
1474 useSequenceHighDemandTasks_ = input.readBool();
1475 bitField0_ |= 0x00100000;
1479 useAllPossibleDisjunctions_ = input.readBool();
1480 bitField0_ |= 0x00200000;
1484 maxEdgeFinderSize_ = input.readInt32();
1485 bitField0_ |= 0x00400000;
1489 diffnUseCumulative_ = input.readBool();
1490 bitField0_ |= 0x00800000;
1494 useElementRmq_ = input.readBool();
1495 bitField0_ |= 0x01000000;
1499 useCumulativeTimeTableSync_ = input.readBool();
1500 bitField0_ |= 0x00080000;
1504 skipLocallyOptimalPaths_ = input.readBool();
1505 bitField0_ |= 0x02000000;
1509 checkSolutionPeriod_ = input.readInt32();
1510 bitField0_ |= 0x04000000;
1514 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1521 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
1522 throw e.unwrapIOException();
1528 private int bitField0_;
1530 private int compressTrail_ = 0;
1542 return compressTrail_;
1556 compressTrail_ = value;
1557 bitField0_ |= 0x00000001;
1587 public Builder
setCompressTrail(com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression value) {
1588 if (value ==
null) {
throw new NullPointerException(); }
1589 bitField0_ |= 0x00000001;
1590 compressTrail_ = value.getNumber();
1605 bitField0_ = (bitField0_ & ~0x00000001);
1611 private int trailBlockSize_ ;
1623 return trailBlockSize_;
1637 trailBlockSize_ = value;
1638 bitField0_ |= 0x00000002;
1652 bitField0_ = (bitField0_ & ~0x00000002);
1653 trailBlockSize_ = 0;
1658 private int arraySplitSize_ ;
1670 return arraySplitSize_;
1684 arraySplitSize_ = value;
1685 bitField0_ |= 0x00000004;
1699 bitField0_ = (bitField0_ & ~0x00000004);
1700 arraySplitSize_ = 0;
1705 private boolean storeNames_ ;
1731 storeNames_ = value;
1732 bitField0_ |= 0x00000008;
1746 bitField0_ = (bitField0_ & ~0x00000008);
1747 storeNames_ =
false;
1752 private boolean nameCastVariables_ ;
1763 return nameCastVariables_;
1776 nameCastVariables_ = value;
1777 bitField0_ |= 0x00000010;
1790 bitField0_ = (bitField0_ & ~0x00000010);
1791 nameCastVariables_ =
false;
1796 private boolean nameAllVariables_ ;
1807 return nameAllVariables_;
1820 nameAllVariables_ = value;
1821 bitField0_ |= 0x00000020;
1834 bitField0_ = (bitField0_ & ~0x00000020);
1835 nameAllVariables_ =
false;
1840 private boolean profilePropagation_ ;
1851 return profilePropagation_;
1864 profilePropagation_ = value;
1865 bitField0_ |= 0x00000040;
1878 bitField0_ = (bitField0_ & ~0x00000040);
1879 profilePropagation_ =
false;
1884 private java.lang.Object profileFile_ =
"";
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();
1902 return (java.lang.String) ref;
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);
1923 return (com.google.protobuf.ByteString) ref;
1936 java.lang.String value) {
1937 if (value ==
null) {
throw new NullPointerException(); }
1938 profileFile_ = value;
1939 bitField0_ |= 0x00000080;
1953 bitField0_ = (bitField0_ & ~0x00000080);
1967 com.google.protobuf.ByteString value) {
1968 if (value ==
null) {
throw new NullPointerException(); }
1969 checkByteStringIsUtf8(value);
1970 profileFile_ = value;
1971 bitField0_ |= 0x00000080;
1976 private boolean profileLocalSearch_ ;
1987 return profileLocalSearch_;
2000 profileLocalSearch_ = value;
2001 bitField0_ |= 0x00000100;
2014 bitField0_ = (bitField0_ & ~0x00000100);
2015 profileLocalSearch_ =
false;
2020 private boolean printLocalSearchProfile_ ;
2031 return printLocalSearchProfile_;
2044 printLocalSearchProfile_ = value;
2045 bitField0_ |= 0x00000200;
2058 bitField0_ = (bitField0_ & ~0x00000200);
2059 printLocalSearchProfile_ =
false;
2064 private boolean tracePropagation_ ;
2075 return tracePropagation_;
2088 tracePropagation_ = value;
2089 bitField0_ |= 0x00000400;
2102 bitField0_ = (bitField0_ & ~0x00000400);
2103 tracePropagation_ =
false;
2108 private boolean traceSearch_ ;
2119 return traceSearch_;
2132 traceSearch_ = value;
2133 bitField0_ |= 0x00000800;
2146 bitField0_ = (bitField0_ & ~0x00000800);
2147 traceSearch_ =
false;
2152 private boolean printModel_ ;
2176 printModel_ = value;
2177 bitField0_ |= 0x00001000;
2190 bitField0_ = (bitField0_ & ~0x00001000);
2191 printModel_ =
false;
2196 private boolean printModelStats_ ;
2207 return printModelStats_;
2220 printModelStats_ = value;
2221 bitField0_ |= 0x00002000;
2234 bitField0_ = (bitField0_ & ~0x00002000);
2235 printModelStats_ =
false;
2240 private boolean printAddedConstraints_ ;
2251 return printAddedConstraints_;
2264 printAddedConstraints_ = value;
2265 bitField0_ |= 0x00004000;
2278 bitField0_ = (bitField0_ & ~0x00004000);
2279 printAddedConstraints_ =
false;
2284 private boolean disableSolve_ ;
2291 return disableSolve_;
2300 disableSolve_ = value;
2301 bitField0_ |= 0x00008000;
2310 bitField0_ = (bitField0_ & ~0x00008000);
2311 disableSolve_ =
false;
2316 private boolean useSmallTable_ ;
2328 return useSmallTable_;
2342 useSmallTable_ = value;
2343 bitField0_ |= 0x00010000;
2357 bitField0_ = (bitField0_ & ~0x00010000);
2358 useSmallTable_ =
false;
2363 private boolean useCumulativeEdgeFinder_ ;
2375 return useCumulativeEdgeFinder_;
2389 useCumulativeEdgeFinder_ = value;
2390 bitField0_ |= 0x00020000;
2404 bitField0_ = (bitField0_ & ~0x00020000);
2405 useCumulativeEdgeFinder_ =
false;
2410 private boolean useCumulativeTimeTable_ ;
2417 return useCumulativeTimeTable_;
2426 useCumulativeTimeTable_ = value;
2427 bitField0_ |= 0x00040000;
2436 bitField0_ = (bitField0_ & ~0x00040000);
2437 useCumulativeTimeTable_ =
false;
2442 private boolean useCumulativeTimeTableSync_ ;
2449 return useCumulativeTimeTableSync_;
2458 useCumulativeTimeTableSync_ = value;
2459 bitField0_ |= 0x00080000;
2468 bitField0_ = (bitField0_ & ~0x00080000);
2469 useCumulativeTimeTableSync_ =
false;
2474 private boolean useSequenceHighDemandTasks_ ;
2481 return useSequenceHighDemandTasks_;
2490 useSequenceHighDemandTasks_ = value;
2491 bitField0_ |= 0x00100000;
2500 bitField0_ = (bitField0_ & ~0x00100000);
2501 useSequenceHighDemandTasks_ =
false;
2506 private boolean useAllPossibleDisjunctions_ ;
2513 return useAllPossibleDisjunctions_;
2522 useAllPossibleDisjunctions_ = value;
2523 bitField0_ |= 0x00200000;
2532 bitField0_ = (bitField0_ & ~0x00200000);
2533 useAllPossibleDisjunctions_ =
false;
2538 private int maxEdgeFinderSize_ ;
2545 return maxEdgeFinderSize_;
2554 maxEdgeFinderSize_ = value;
2555 bitField0_ |= 0x00400000;
2564 bitField0_ = (bitField0_ & ~0x00400000);
2565 maxEdgeFinderSize_ = 0;
2570 private boolean diffnUseCumulative_ ;
2582 return diffnUseCumulative_;
2596 diffnUseCumulative_ = value;
2597 bitField0_ |= 0x00800000;
2611 bitField0_ = (bitField0_ & ~0x00800000);
2612 diffnUseCumulative_ =
false;
2617 private boolean useElementRmq_ ;
2629 return useElementRmq_;
2643 useElementRmq_ = value;
2644 bitField0_ |= 0x01000000;
2658 bitField0_ = (bitField0_ & ~0x01000000);
2659 useElementRmq_ =
false;
2664 private boolean skipLocallyOptimalPaths_ ;
2679 return skipLocallyOptimalPaths_;
2696 skipLocallyOptimalPaths_ = value;
2697 bitField0_ |= 0x02000000;
2714 bitField0_ = (bitField0_ & ~0x02000000);
2715 skipLocallyOptimalPaths_ =
false;
2720 private int checkSolutionPeriod_ ;
2732 return checkSolutionPeriod_;
2746 checkSolutionPeriod_ = value;
2747 bitField0_ |= 0x04000000;
2761 bitField0_ = (bitField0_ & ~0x04000000);
2762 checkSolutionPeriod_ = 0;
2773 DEFAULT_INSTANCE =
new com.google.ortools.constraintsolver.ConstraintSolverParameters();
2777 return DEFAULT_INSTANCE;
2784 com.google.protobuf.CodedInputStream input,
2785 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2786 throws com.google.protobuf.InvalidProtocolBufferException {
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());
2798 return builder.buildPartial();
2802 public static com.google.protobuf.Parser<ConstraintSolverParameters>
parser() {
2813 return DEFAULT_INSTANCE;