5package com.google.ortools.constraintsolver;
15 com.google.protobuf.GeneratedMessage implements
18private static final long serialVersionUID = 0L;
20 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
21 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
37 public static final com.google.protobuf.Descriptors.Descriptor
39 return com.google.ortools.constraintsolver.SolverParameters.internal_static_operations_research_ConstraintSolverParameters_descriptor;
43 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
45 return com.google.ortools.constraintsolver.SolverParameters.internal_static_operations_research_ConstraintSolverParameters_fieldAccessorTable
46 .ensureFieldAccessorsInitialized(
47 com.google.ortools.constraintsolver.ConstraintSolverParameters.class, com.google.ortools.constraintsolver.ConstraintSolverParameters.Builder.class);
59 implements com.google.protobuf.ProtocolMessageEnum {
72 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
73 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
83 public static final int NO_COMPRESSION_VALUE = 0;
87 public static final int COMPRESS_WITH_ZLIB_VALUE = 1;
91 if (
this == UNRECOGNIZED) {
92 throw new java.lang.IllegalArgumentException(
93 "Can't get the number of an unknown enum value.");
103 @java.lang.Deprecated
105 return forNumber(value);
114 case 0:
return NO_COMPRESSION;
115 case 1:
return COMPRESS_WITH_ZLIB;
116 default:
return null;
122 return internalValueMap;
124 private static final com.google.protobuf.Internal.EnumLiteMap<
132 public final com.google.protobuf.Descriptors.EnumValueDescriptor
134 if (
this == UNRECOGNIZED) {
135 throw new java.lang.IllegalStateException(
136 "Can't get the descriptor of an unrecognized enum value.");
140 public final com.google.protobuf.Descriptors.EnumDescriptor
144 public static final com.google.protobuf.Descriptors.EnumDescriptor
146 return com.google.ortools.constraintsolver.ConstraintSolverParameters.getDescriptor().getEnumTypes().get(0);
152 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
154 throw new java.lang.IllegalArgumentException(
155 "EnumValueDescriptor is not for this type.");
157 if (desc.getIndex() == -1) {
160 return VALUES[desc.getIndex()];
163 private final int value;
173 private int compressTrail_ = 0;
185 return compressTrail_;
199 return result ==
null ? com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression.UNRECOGNIZED : result;
203 private int trailBlockSize_ = 0;
215 return trailBlockSize_;
219 private int arraySplitSize_ = 0;
231 return arraySplitSize_;
235 private boolean storeNames_ =
false;
251 private boolean nameCastVariables_ =
false;
262 return nameCastVariables_;
266 private boolean nameAllVariables_ =
false;
277 return nameAllVariables_;
281 private boolean profilePropagation_ =
false;
292 return profilePropagation_;
296 @SuppressWarnings(
"serial")
297 private volatile java.lang.Object profileFile_ = "";
308 java.lang.Object ref = profileFile_;
309 if (ref instanceof java.lang.String) {
310 return (java.lang.String) ref;
312 com.google.protobuf.ByteString bs =
313 (com.google.protobuf.ByteString) ref;
314 java.lang.String s = bs.toStringUtf8();
328 public com.google.protobuf.ByteString
330 java.lang.Object ref = profileFile_;
331 if (ref instanceof java.lang.String) {
332 com.google.protobuf.ByteString b =
333 com.google.protobuf.ByteString.copyFromUtf8(
334 (java.lang.String) ref);
338 return (com.google.protobuf.ByteString) ref;
343 private boolean profileLocalSearch_ =
false;
354 return profileLocalSearch_;
358 private boolean printLocalSearchProfile_ =
false;
369 return printLocalSearchProfile_;
373 private boolean tracePropagation_ =
false;
384 return tracePropagation_;
388 private boolean traceSearch_ =
false;
403 private boolean printModel_ =
false;
418 private boolean printModelStats_ =
false;
429 return printModelStats_;
433 private boolean printAddedConstraints_ =
false;
444 return printAddedConstraints_;
448 private boolean disableSolve_ =
false;
455 return disableSolve_;
459 private boolean useSmallTable_ =
false;
471 return useSmallTable_;
475 private boolean useCumulativeEdgeFinder_ =
false;
487 return useCumulativeEdgeFinder_;
491 private boolean useCumulativeTimeTable_ =
false;
498 return useCumulativeTimeTable_;
502 private boolean useCumulativeTimeTableSync_ =
false;
509 return useCumulativeTimeTableSync_;
513 private boolean useSequenceHighDemandTasks_ =
false;
520 return useSequenceHighDemandTasks_;
524 private boolean useAllPossibleDisjunctions_ =
false;
531 return useAllPossibleDisjunctions_;
535 private int maxEdgeFinderSize_ = 0;
542 return maxEdgeFinderSize_;
546 private boolean diffnUseCumulative_ =
false;
558 return diffnUseCumulative_;
562 private boolean useElementRmq_ =
false;
574 return useElementRmq_;
578 private boolean skipLocallyOptimalPaths_ =
false;
593 return skipLocallyOptimalPaths_;
597 private int checkSolutionPeriod_ = 0;
609 return checkSolutionPeriod_;
612 private byte memoizedIsInitialized = -1;
619 memoizedIsInitialized = 1;
624 public void writeTo(com.google.protobuf.CodedOutputStream output)
625 throws java.io.IOException {
626 if (compressTrail_ != com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression.NO_COMPRESSION.getNumber()) {
627 output.writeEnum(1, compressTrail_);
629 if (trailBlockSize_ != 0) {
630 output.writeInt32(2, trailBlockSize_);
632 if (arraySplitSize_ != 0) {
633 output.writeInt32(3, arraySplitSize_);
635 if (storeNames_ !=
false) {
636 output.writeBool(4, storeNames_);
638 if (nameCastVariables_ !=
false) {
639 output.writeBool(5, nameCastVariables_);
641 if (nameAllVariables_ !=
false) {
642 output.writeBool(6, nameAllVariables_);
644 if (profilePropagation_ !=
false) {
645 output.writeBool(7, profilePropagation_);
647 if (!com.google.protobuf.GeneratedMessage.isStringEmpty(profileFile_)) {
648 com.google.protobuf.GeneratedMessage.writeString(output, 8, profileFile_);
650 if (tracePropagation_ !=
false) {
651 output.writeBool(9, tracePropagation_);
653 if (traceSearch_ !=
false) {
654 output.writeBool(10, traceSearch_);
656 if (printModel_ !=
false) {
657 output.writeBool(11, printModel_);
659 if (printModelStats_ !=
false) {
660 output.writeBool(12, printModelStats_);
662 if (printAddedConstraints_ !=
false) {
663 output.writeBool(13, printAddedConstraints_);
665 if (disableSolve_ !=
false) {
666 output.writeBool(15, disableSolve_);
668 if (profileLocalSearch_ !=
false) {
669 output.writeBool(16, profileLocalSearch_);
671 if (printLocalSearchProfile_ !=
false) {
672 output.writeBool(17, printLocalSearchProfile_);
674 if (useSmallTable_ !=
false) {
675 output.writeBool(101, useSmallTable_);
677 if (useCumulativeEdgeFinder_ !=
false) {
678 output.writeBool(105, useCumulativeEdgeFinder_);
680 if (useCumulativeTimeTable_ !=
false) {
681 output.writeBool(106, useCumulativeTimeTable_);
683 if (useSequenceHighDemandTasks_ !=
false) {
684 output.writeBool(107, useSequenceHighDemandTasks_);
686 if (useAllPossibleDisjunctions_ !=
false) {
687 output.writeBool(108, useAllPossibleDisjunctions_);
689 if (maxEdgeFinderSize_ != 0) {
690 output.writeInt32(109, maxEdgeFinderSize_);
692 if (diffnUseCumulative_ !=
false) {
693 output.writeBool(110, diffnUseCumulative_);
695 if (useElementRmq_ !=
false) {
696 output.writeBool(111, useElementRmq_);
698 if (useCumulativeTimeTableSync_ !=
false) {
699 output.writeBool(112, useCumulativeTimeTableSync_);
701 if (skipLocallyOptimalPaths_ !=
false) {
702 output.writeBool(113, skipLocallyOptimalPaths_);
704 if (checkSolutionPeriod_ != 0) {
705 output.writeInt32(114, checkSolutionPeriod_);
707 getUnknownFields().writeTo(output);
712 int size = memoizedSize;
713 if (size != -1)
return size;
716 if (compressTrail_ != com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression.NO_COMPRESSION.getNumber()) {
717 size += com.google.protobuf.CodedOutputStream
718 .computeEnumSize(1, compressTrail_);
720 if (trailBlockSize_ != 0) {
721 size += com.google.protobuf.CodedOutputStream
722 .computeInt32Size(2, trailBlockSize_);
724 if (arraySplitSize_ != 0) {
725 size += com.google.protobuf.CodedOutputStream
726 .computeInt32Size(3, arraySplitSize_);
728 if (storeNames_ !=
false) {
729 size += com.google.protobuf.CodedOutputStream
730 .computeBoolSize(4, storeNames_);
732 if (nameCastVariables_ !=
false) {
733 size += com.google.protobuf.CodedOutputStream
734 .computeBoolSize(5, nameCastVariables_);
736 if (nameAllVariables_ !=
false) {
737 size += com.google.protobuf.CodedOutputStream
738 .computeBoolSize(6, nameAllVariables_);
740 if (profilePropagation_ !=
false) {
741 size += com.google.protobuf.CodedOutputStream
742 .computeBoolSize(7, profilePropagation_);
744 if (!com.google.protobuf.GeneratedMessage.isStringEmpty(profileFile_)) {
745 size += com.google.protobuf.GeneratedMessage.computeStringSize(8, profileFile_);
747 if (tracePropagation_ !=
false) {
748 size += com.google.protobuf.CodedOutputStream
749 .computeBoolSize(9, tracePropagation_);
751 if (traceSearch_ !=
false) {
752 size += com.google.protobuf.CodedOutputStream
753 .computeBoolSize(10, traceSearch_);
755 if (printModel_ !=
false) {
756 size += com.google.protobuf.CodedOutputStream
757 .computeBoolSize(11, printModel_);
759 if (printModelStats_ !=
false) {
760 size += com.google.protobuf.CodedOutputStream
761 .computeBoolSize(12, printModelStats_);
763 if (printAddedConstraints_ !=
false) {
764 size += com.google.protobuf.CodedOutputStream
765 .computeBoolSize(13, printAddedConstraints_);
767 if (disableSolve_ !=
false) {
768 size += com.google.protobuf.CodedOutputStream
769 .computeBoolSize(15, disableSolve_);
771 if (profileLocalSearch_ !=
false) {
772 size += com.google.protobuf.CodedOutputStream
773 .computeBoolSize(16, profileLocalSearch_);
775 if (printLocalSearchProfile_ !=
false) {
776 size += com.google.protobuf.CodedOutputStream
777 .computeBoolSize(17, printLocalSearchProfile_);
779 if (useSmallTable_ !=
false) {
780 size += com.google.protobuf.CodedOutputStream
781 .computeBoolSize(101, useSmallTable_);
783 if (useCumulativeEdgeFinder_ !=
false) {
784 size += com.google.protobuf.CodedOutputStream
785 .computeBoolSize(105, useCumulativeEdgeFinder_);
787 if (useCumulativeTimeTable_ !=
false) {
788 size += com.google.protobuf.CodedOutputStream
789 .computeBoolSize(106, useCumulativeTimeTable_);
791 if (useSequenceHighDemandTasks_ !=
false) {
792 size += com.google.protobuf.CodedOutputStream
793 .computeBoolSize(107, useSequenceHighDemandTasks_);
795 if (useAllPossibleDisjunctions_ !=
false) {
796 size += com.google.protobuf.CodedOutputStream
797 .computeBoolSize(108, useAllPossibleDisjunctions_);
799 if (maxEdgeFinderSize_ != 0) {
800 size += com.google.protobuf.CodedOutputStream
801 .computeInt32Size(109, maxEdgeFinderSize_);
803 if (diffnUseCumulative_ !=
false) {
804 size += com.google.protobuf.CodedOutputStream
805 .computeBoolSize(110, diffnUseCumulative_);
807 if (useElementRmq_ !=
false) {
808 size += com.google.protobuf.CodedOutputStream
809 .computeBoolSize(111, useElementRmq_);
811 if (useCumulativeTimeTableSync_ !=
false) {
812 size += com.google.protobuf.CodedOutputStream
813 .computeBoolSize(112, useCumulativeTimeTableSync_);
815 if (skipLocallyOptimalPaths_ !=
false) {
816 size += com.google.protobuf.CodedOutputStream
817 .computeBoolSize(113, skipLocallyOptimalPaths_);
819 if (checkSolutionPeriod_ != 0) {
820 size += com.google.protobuf.CodedOutputStream
821 .computeInt32Size(114, checkSolutionPeriod_);
823 size += getUnknownFields().getSerializedSize();
829 public boolean equals(
final java.lang.Object obj) {
833 if (!(obj instanceof com.google.ortools.constraintsolver.ConstraintSolverParameters)) {
834 return super.equals(obj);
838 if (compressTrail_ != other.compressTrail_)
return false;
891 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
897 if (memoizedHashCode != 0) {
898 return memoizedHashCode;
903 hash = (53 * hash) + compressTrail_;
909 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(
923 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
926 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
929 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
932 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
935 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
938 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
941 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
944 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
947 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
950 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
953 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
956 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
959 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
962 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
967 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
970 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
973 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
977 hash = (29 * hash) + getUnknownFields().hashCode();
978 memoizedHashCode = hash;
983 java.nio.ByteBuffer data)
984 throws com.google.protobuf.InvalidProtocolBufferException {
985 return PARSER.parseFrom(data);
988 java.nio.ByteBuffer data,
989 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
990 throws com.google.protobuf.InvalidProtocolBufferException {
991 return PARSER.parseFrom(data, extensionRegistry);
994 com.google.protobuf.ByteString data)
995 throws com.google.protobuf.InvalidProtocolBufferException {
996 return PARSER.parseFrom(data);
999 com.google.protobuf.ByteString data,
1000 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1001 throws com.google.protobuf.InvalidProtocolBufferException {
1002 return PARSER.parseFrom(data, extensionRegistry);
1005 throws com.google.protobuf.InvalidProtocolBufferException {
1006 return PARSER.parseFrom(data);
1010 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1011 throws com.google.protobuf.InvalidProtocolBufferException {
1012 return PARSER.parseFrom(data, extensionRegistry);
1015 throws java.io.IOException {
1016 return com.google.protobuf.GeneratedMessage
1017 .parseWithIOException(PARSER, input);
1020 java.io.InputStream input,
1021 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1022 throws java.io.IOException {
1023 return com.google.protobuf.GeneratedMessage
1024 .parseWithIOException(PARSER, input, extensionRegistry);
1028 throws java.io.IOException {
1029 return com.google.protobuf.GeneratedMessage
1030 .parseDelimitedWithIOException(PARSER, input);
1034 java.io.InputStream input,
1035 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1036 throws java.io.IOException {
1037 return com.google.protobuf.GeneratedMessage
1038 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
1041 com.google.protobuf.CodedInputStream input)
1042 throws java.io.IOException {
1043 return com.google.protobuf.GeneratedMessage
1044 .parseWithIOException(PARSER, input);
1047 com.google.protobuf.CodedInputStream input,
1048 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1049 throws java.io.IOException {
1050 return com.google.protobuf.GeneratedMessage
1051 .parseWithIOException(PARSER, input, extensionRegistry);
1059 public static Builder newBuilder(com.google.ortools.constraintsolver.ConstraintSolverParameters prototype) {
1064 return this == DEFAULT_INSTANCE
1070 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1082 com.google.protobuf.GeneratedMessage.
Builder<Builder> implements
1085 public static final com.google.protobuf.Descriptors.Descriptor
1087 return com.google.ortools.constraintsolver.SolverParameters.internal_static_operations_research_ConstraintSolverParameters_descriptor;
1091 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1093 return com.google.ortools.constraintsolver.SolverParameters.internal_static_operations_research_ConstraintSolverParameters_fieldAccessorTable
1094 .ensureFieldAccessorsInitialized(
1095 com.google.ortools.constraintsolver.ConstraintSolverParameters.class, com.google.ortools.constraintsolver.ConstraintSolverParameters.Builder.class);
1104 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1113 trailBlockSize_ = 0;
1114 arraySplitSize_ = 0;
1115 storeNames_ =
false;
1116 nameCastVariables_ =
false;
1117 nameAllVariables_ =
false;
1118 profilePropagation_ =
false;
1120 profileLocalSearch_ =
false;
1121 printLocalSearchProfile_ =
false;
1122 tracePropagation_ =
false;
1123 traceSearch_ =
false;
1124 printModel_ =
false;
1125 printModelStats_ =
false;
1126 printAddedConstraints_ =
false;
1127 disableSolve_ =
false;
1128 useSmallTable_ =
false;
1129 useCumulativeEdgeFinder_ =
false;
1130 useCumulativeTimeTable_ =
false;
1131 useCumulativeTimeTableSync_ =
false;
1132 useSequenceHighDemandTasks_ =
false;
1133 useAllPossibleDisjunctions_ =
false;
1134 maxEdgeFinderSize_ = 0;
1135 diffnUseCumulative_ =
false;
1136 useElementRmq_ =
false;
1137 skipLocallyOptimalPaths_ =
false;
1138 checkSolutionPeriod_ = 0;
1143 public com.google.protobuf.Descriptors.Descriptor
1145 return com.google.ortools.constraintsolver.SolverParameters.internal_static_operations_research_ConstraintSolverParameters_descriptor;
1150 return com.google.ortools.constraintsolver.ConstraintSolverParameters.getDefaultInstance();
1157 throw newUninitializedMessageException(result);
1165 if (bitField0_ != 0) { buildPartial0(result); }
1170 private void buildPartial0(com.google.ortools.constraintsolver.ConstraintSolverParameters result) {
1171 int from_bitField0_ = bitField0_;
1172 if (((from_bitField0_ & 0x00000001) != 0)) {
1173 result.compressTrail_ = compressTrail_;
1175 if (((from_bitField0_ & 0x00000002) != 0)) {
1176 result.trailBlockSize_ = trailBlockSize_;
1178 if (((from_bitField0_ & 0x00000004) != 0)) {
1179 result.arraySplitSize_ = arraySplitSize_;
1181 if (((from_bitField0_ & 0x00000008) != 0)) {
1182 result.storeNames_ = storeNames_;
1184 if (((from_bitField0_ & 0x00000010) != 0)) {
1185 result.nameCastVariables_ = nameCastVariables_;
1187 if (((from_bitField0_ & 0x00000020) != 0)) {
1188 result.nameAllVariables_ = nameAllVariables_;
1190 if (((from_bitField0_ & 0x00000040) != 0)) {
1191 result.profilePropagation_ = profilePropagation_;
1193 if (((from_bitField0_ & 0x00000080) != 0)) {
1194 result.profileFile_ = profileFile_;
1196 if (((from_bitField0_ & 0x00000100) != 0)) {
1197 result.profileLocalSearch_ = profileLocalSearch_;
1199 if (((from_bitField0_ & 0x00000200) != 0)) {
1200 result.printLocalSearchProfile_ = printLocalSearchProfile_;
1202 if (((from_bitField0_ & 0x00000400) != 0)) {
1203 result.tracePropagation_ = tracePropagation_;
1205 if (((from_bitField0_ & 0x00000800) != 0)) {
1206 result.traceSearch_ = traceSearch_;
1208 if (((from_bitField0_ & 0x00001000) != 0)) {
1209 result.printModel_ = printModel_;
1211 if (((from_bitField0_ & 0x00002000) != 0)) {
1212 result.printModelStats_ = printModelStats_;
1214 if (((from_bitField0_ & 0x00004000) != 0)) {
1215 result.printAddedConstraints_ = printAddedConstraints_;
1217 if (((from_bitField0_ & 0x00008000) != 0)) {
1218 result.disableSolve_ = disableSolve_;
1220 if (((from_bitField0_ & 0x00010000) != 0)) {
1221 result.useSmallTable_ = useSmallTable_;
1223 if (((from_bitField0_ & 0x00020000) != 0)) {
1224 result.useCumulativeEdgeFinder_ = useCumulativeEdgeFinder_;
1226 if (((from_bitField0_ & 0x00040000) != 0)) {
1227 result.useCumulativeTimeTable_ = useCumulativeTimeTable_;
1229 if (((from_bitField0_ & 0x00080000) != 0)) {
1230 result.useCumulativeTimeTableSync_ = useCumulativeTimeTableSync_;
1232 if (((from_bitField0_ & 0x00100000) != 0)) {
1233 result.useSequenceHighDemandTasks_ = useSequenceHighDemandTasks_;
1235 if (((from_bitField0_ & 0x00200000) != 0)) {
1236 result.useAllPossibleDisjunctions_ = useAllPossibleDisjunctions_;
1238 if (((from_bitField0_ & 0x00400000) != 0)) {
1239 result.maxEdgeFinderSize_ = maxEdgeFinderSize_;
1241 if (((from_bitField0_ & 0x00800000) != 0)) {
1242 result.diffnUseCumulative_ = diffnUseCumulative_;
1244 if (((from_bitField0_ & 0x01000000) != 0)) {
1245 result.useElementRmq_ = useElementRmq_;
1247 if (((from_bitField0_ & 0x02000000) != 0)) {
1248 result.skipLocallyOptimalPaths_ = skipLocallyOptimalPaths_;
1250 if (((from_bitField0_ & 0x04000000) != 0)) {
1251 result.checkSolutionPeriod_ = checkSolutionPeriod_;
1257 if (other instanceof com.google.ortools.constraintsolver.ConstraintSolverParameters) {
1258 return mergeFrom((com.google.ortools.constraintsolver.ConstraintSolverParameters)other);
1260 super.mergeFrom(other);
1265 public Builder mergeFrom(com.google.ortools.constraintsolver.ConstraintSolverParameters other) {
1266 if (other == com.google.ortools.constraintsolver.ConstraintSolverParameters.getDefaultInstance())
return this;
1267 if (other.compressTrail_ != 0) {
1270 if (other.getTrailBlockSize() != 0) {
1273 if (other.getArraySplitSize() != 0) {
1276 if (other.getStoreNames() !=
false) {
1279 if (other.getNameCastVariables() !=
false) {
1282 if (other.getNameAllVariables() !=
false) {
1285 if (other.getProfilePropagation() !=
false) {
1288 if (!other.getProfileFile().isEmpty()) {
1289 profileFile_ = other.profileFile_;
1290 bitField0_ |= 0x00000080;
1293 if (other.getProfileLocalSearch() !=
false) {
1296 if (other.getPrintLocalSearchProfile() !=
false) {
1299 if (other.getTracePropagation() !=
false) {
1302 if (other.getTraceSearch() !=
false) {
1305 if (other.getPrintModel() !=
false) {
1308 if (other.getPrintModelStats() !=
false) {
1311 if (other.getPrintAddedConstraints() !=
false) {
1314 if (other.getDisableSolve() !=
false) {
1317 if (other.getUseSmallTable() !=
false) {
1320 if (other.getUseCumulativeEdgeFinder() !=
false) {
1323 if (other.getUseCumulativeTimeTable() !=
false) {
1326 if (other.getUseCumulativeTimeTableSync() !=
false) {
1329 if (other.getUseSequenceHighDemandTasks() !=
false) {
1332 if (other.getUseAllPossibleDisjunctions() !=
false) {
1335 if (other.getMaxEdgeFinderSize() != 0) {
1338 if (other.getDiffnUseCumulative() !=
false) {
1341 if (other.getUseElementRmq() !=
false) {
1344 if (other.getSkipLocallyOptimalPaths() !=
false) {
1347 if (other.getCheckSolutionPeriod() != 0) {
1350 this.mergeUnknownFields(other.getUnknownFields());
1362 com.google.protobuf.CodedInputStream input,
1363 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1364 throws java.io.IOException {
1365 if (extensionRegistry ==
null) {
1366 throw new java.lang.NullPointerException();
1369 boolean done =
false;
1371 int tag = input.readTag();
1377 compressTrail_ = input.readEnum();
1378 bitField0_ |= 0x00000001;
1382 trailBlockSize_ = input.readInt32();
1383 bitField0_ |= 0x00000002;
1387 arraySplitSize_ = input.readInt32();
1388 bitField0_ |= 0x00000004;
1392 storeNames_ = input.readBool();
1393 bitField0_ |= 0x00000008;
1397 nameCastVariables_ = input.readBool();
1398 bitField0_ |= 0x00000010;
1402 nameAllVariables_ = input.readBool();
1403 bitField0_ |= 0x00000020;
1407 profilePropagation_ = input.readBool();
1408 bitField0_ |= 0x00000040;
1412 profileFile_ = input.readStringRequireUtf8();
1413 bitField0_ |= 0x00000080;
1417 tracePropagation_ = input.readBool();
1418 bitField0_ |= 0x00000400;
1422 traceSearch_ = input.readBool();
1423 bitField0_ |= 0x00000800;
1427 printModel_ = input.readBool();
1428 bitField0_ |= 0x00001000;
1432 printModelStats_ = input.readBool();
1433 bitField0_ |= 0x00002000;
1437 printAddedConstraints_ = input.readBool();
1438 bitField0_ |= 0x00004000;
1442 disableSolve_ = input.readBool();
1443 bitField0_ |= 0x00008000;
1447 profileLocalSearch_ = input.readBool();
1448 bitField0_ |= 0x00000100;
1452 printLocalSearchProfile_ = input.readBool();
1453 bitField0_ |= 0x00000200;
1457 useSmallTable_ = input.readBool();
1458 bitField0_ |= 0x00010000;
1462 useCumulativeEdgeFinder_ = input.readBool();
1463 bitField0_ |= 0x00020000;
1467 useCumulativeTimeTable_ = input.readBool();
1468 bitField0_ |= 0x00040000;
1472 useSequenceHighDemandTasks_ = input.readBool();
1473 bitField0_ |= 0x00100000;
1477 useAllPossibleDisjunctions_ = input.readBool();
1478 bitField0_ |= 0x00200000;
1482 maxEdgeFinderSize_ = input.readInt32();
1483 bitField0_ |= 0x00400000;
1487 diffnUseCumulative_ = input.readBool();
1488 bitField0_ |= 0x00800000;
1492 useElementRmq_ = input.readBool();
1493 bitField0_ |= 0x01000000;
1497 useCumulativeTimeTableSync_ = input.readBool();
1498 bitField0_ |= 0x00080000;
1502 skipLocallyOptimalPaths_ = input.readBool();
1503 bitField0_ |= 0x02000000;
1507 checkSolutionPeriod_ = input.readInt32();
1508 bitField0_ |= 0x04000000;
1512 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1519 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
1520 throw e.unwrapIOException();
1526 private int bitField0_;
1528 private int compressTrail_ = 0;
1540 return compressTrail_;
1554 compressTrail_ = value;
1555 bitField0_ |= 0x00000001;
1572 return result ==
null ? com.google.ortools.constraintsolver.ConstraintSolverParameters.TrailCompression.UNRECOGNIZED : result;
1586 if (value ==
null) {
1587 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();
2813 return DEFAULT_INSTANCE;