5package com.google.ortools.sat;
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,
31 private CpSolverResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
36 solution_ = emptyLongList();
37 additionalSolutions_ = java.util.Collections.emptyList();
38 tightenedVariables_ = java.util.Collections.emptyList();
39 sufficientAssumptionsForInfeasibility_ = emptyIntList();
44 public static final com.google.protobuf.Descriptors.Descriptor
46 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_descriptor;
50 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
52 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_fieldAccessorTable
53 .ensureFieldAccessorsInitialized(
54 com.google.ortools.sat.CpSolverResponse.class, com.google.ortools.sat.CpSolverResponse.Builder.class);
57 private int bitField0_;
59 private int status_ = 0;
81 return result ==
null ? com.google.ortools.sat.CpSolverStatus.UNRECOGNIZED : result;
85 @SuppressWarnings(
"serial")
86 private com.google.protobuf.Internal.LongList solution_ =
100 public java.util.List<java.lang.Long>
116 return solution_.size();
131 return solution_.getLong(index);
133 private int solutionMemoizedSerializedSize = -1;
136 private double objectiveValue_ = 0D;
150 return objectiveValue_;
154 private double bestObjectiveBound_ = 0D;
167 return bestObjectiveBound_;
171 @SuppressWarnings(
"serial")
172 private java.util.List<com.google.ortools.sat.
CpSolverSolution> additionalSolutions_;
187 return additionalSolutions_;
202 public java.util.List<? extends com.google.ortools.sat.CpSolverSolutionOrBuilder>
204 return additionalSolutions_;
220 return additionalSolutions_.size();
236 return additionalSolutions_.get(index);
253 return additionalSolutions_.get(index);
257 @SuppressWarnings(
"serial")
283 return tightenedVariables_;
308 public java.util.List<? extends com.google.ortools.sat.IntegerVariableProtoOrBuilder>
310 return tightenedVariables_;
336 return tightenedVariables_.size();
362 return tightenedVariables_.get(index);
389 return tightenedVariables_.get(index);
393 @SuppressWarnings(
"serial")
394 private com.google.protobuf.Internal.IntList sufficientAssumptionsForInfeasibility_ =
423 public java.util.List<java.lang.Integer>
425 return sufficientAssumptionsForInfeasibility_;
454 return sufficientAssumptionsForInfeasibility_.size();
484 return sufficientAssumptionsForInfeasibility_.getInt(index);
486 private int sufficientAssumptionsForInfeasibilityMemoizedSerializedSize = -1;
502 return ((bitField0_ & 0x00000001) != 0);
516 return integerObjective_ ==
null ? com.google.ortools.sat.CpObjectiveProto.getDefaultInstance() : integerObjective_;
529 return integerObjective_ ==
null ? com.google.ortools.sat.CpObjectiveProto.getDefaultInstance() : integerObjective_;
533 private long innerObjectiveLowerBound_ = 0L;
549 return innerObjectiveLowerBound_;
553 private long numIntegers_ = 0L;
572 private long numBooleans_ = 0L;
583 private long numConflicts_ = 0L;
590 return numConflicts_;
594 private long numBranches_ = 0L;
605 private long numBinaryPropagations_ = 0L;
612 return numBinaryPropagations_;
616 private long numIntegerPropagations_ = 0L;
623 return numIntegerPropagations_;
627 private long numRestarts_ = 0L;
638 private long numLpIterations_ = 0L;
645 return numLpIterations_;
649 private double wallTime_ = 0D;
664 private double userTime_ = 0D;
675 private double deterministicTime_ = 0D;
682 return deterministicTime_;
686 private double gapIntegral_ = 0D;
701 @SuppressWarnings(
"serial")
702 private volatile java.lang.Object solutionInfo_ = "";
714 java.lang.Object ref = solutionInfo_;
715 if (ref instanceof java.lang.String) {
716 return (java.lang.String) ref;
718 com.google.protobuf.ByteString bs =
719 (com.google.protobuf.ByteString) ref;
720 java.lang.String s = bs.toStringUtf8();
735 public com.google.protobuf.ByteString
737 java.lang.Object ref = solutionInfo_;
738 if (ref instanceof java.lang.String) {
739 com.google.protobuf.ByteString b =
740 com.google.protobuf.ByteString.copyFromUtf8(
741 (java.lang.String) ref);
745 return (com.google.protobuf.ByteString) ref;
750 @SuppressWarnings(
"serial")
751 private volatile java.lang.Object solveLog_ = "";
763 java.lang.Object ref = solveLog_;
764 if (ref instanceof java.lang.String) {
765 return (java.lang.String) ref;
767 com.google.protobuf.ByteString bs =
768 (com.google.protobuf.ByteString) ref;
769 java.lang.String s = bs.toStringUtf8();
784 public com.google.protobuf.ByteString
786 java.lang.Object ref = solveLog_;
787 if (ref instanceof java.lang.String) {
788 com.google.protobuf.ByteString b =
789 com.google.protobuf.ByteString.copyFromUtf8(
790 (java.lang.String) ref);
794 return (com.google.protobuf.ByteString) ref;
798 private byte memoizedIsInitialized = -1;
805 memoizedIsInitialized = 1;
810 public void writeTo(com.google.protobuf.CodedOutputStream output)
811 throws java.io.IOException {
813 if (status_ != com.google.ortools.sat.CpSolverStatus.UNKNOWN.getNumber()) {
814 output.writeEnum(1, status_);
817 output.writeUInt32NoTag(18);
818 output.writeUInt32NoTag(solutionMemoizedSerializedSize);
820 for (
int i = 0; i < solution_.size(); i++) {
821 output.writeInt64NoTag(solution_.getLong(i));
823 if (java.lang.Double.doubleToRawLongBits(objectiveValue_) != 0) {
824 output.writeDouble(3, objectiveValue_);
826 if (java.lang.Double.doubleToRawLongBits(bestObjectiveBound_) != 0) {
827 output.writeDouble(4, bestObjectiveBound_);
829 if (numBooleans_ != 0L) {
830 output.writeInt64(10, numBooleans_);
832 if (numConflicts_ != 0L) {
833 output.writeInt64(11, numConflicts_);
835 if (numBranches_ != 0L) {
836 output.writeInt64(12, numBranches_);
838 if (numBinaryPropagations_ != 0L) {
839 output.writeInt64(13, numBinaryPropagations_);
841 if (numIntegerPropagations_ != 0L) {
842 output.writeInt64(14, numIntegerPropagations_);
844 if (java.lang.Double.doubleToRawLongBits(wallTime_) != 0) {
845 output.writeDouble(15, wallTime_);
847 if (java.lang.Double.doubleToRawLongBits(userTime_) != 0) {
848 output.writeDouble(16, userTime_);
850 if (java.lang.Double.doubleToRawLongBits(deterministicTime_) != 0) {
851 output.writeDouble(17, deterministicTime_);
853 if (!com.google.protobuf.GeneratedMessage.isStringEmpty(solutionInfo_)) {
854 com.google.protobuf.GeneratedMessage.writeString(output, 20, solutionInfo_);
856 for (
int i = 0; i < tightenedVariables_.size(); i++) {
857 output.writeMessage(21, tightenedVariables_.get(i));
859 if (java.lang.Double.doubleToRawLongBits(gapIntegral_) != 0) {
860 output.writeDouble(22, gapIntegral_);
863 output.writeUInt32NoTag(186);
864 output.writeUInt32NoTag(sufficientAssumptionsForInfeasibilityMemoizedSerializedSize);
866 for (
int i = 0; i < sufficientAssumptionsForInfeasibility_.size(); i++) {
867 output.writeInt32NoTag(sufficientAssumptionsForInfeasibility_.getInt(i));
869 if (numRestarts_ != 0L) {
870 output.writeInt64(24, numRestarts_);
872 if (numLpIterations_ != 0L) {
873 output.writeInt64(25, numLpIterations_);
875 if (!com.google.protobuf.GeneratedMessage.isStringEmpty(solveLog_)) {
876 com.google.protobuf.GeneratedMessage.writeString(output, 26, solveLog_);
878 for (
int i = 0; i < additionalSolutions_.size(); i++) {
879 output.writeMessage(27, additionalSolutions_.get(i));
881 if (((bitField0_ & 0x00000001) != 0)) {
884 if (innerObjectiveLowerBound_ != 0L) {
885 output.writeInt64(29, innerObjectiveLowerBound_);
887 if (numIntegers_ != 0L) {
888 output.writeInt64(30, numIntegers_);
890 getUnknownFields().writeTo(output);
895 int size = memoizedSize;
896 if (size != -1)
return size;
899 if (status_ != com.google.ortools.sat.CpSolverStatus.UNKNOWN.getNumber()) {
900 size += com.google.protobuf.CodedOutputStream
901 .computeEnumSize(1, status_);
905 for (
int i = 0; i < solution_.size(); i++) {
906 dataSize += com.google.protobuf.CodedOutputStream
907 .computeInt64SizeNoTag(solution_.getLong(i));
912 size += com.google.protobuf.CodedOutputStream
913 .computeInt32SizeNoTag(dataSize);
915 solutionMemoizedSerializedSize = dataSize;
917 if (java.lang.Double.doubleToRawLongBits(objectiveValue_) != 0) {
918 size += com.google.protobuf.CodedOutputStream
919 .computeDoubleSize(3, objectiveValue_);
921 if (java.lang.Double.doubleToRawLongBits(bestObjectiveBound_) != 0) {
922 size += com.google.protobuf.CodedOutputStream
923 .computeDoubleSize(4, bestObjectiveBound_);
925 if (numBooleans_ != 0L) {
926 size += com.google.protobuf.CodedOutputStream
927 .computeInt64Size(10, numBooleans_);
929 if (numConflicts_ != 0L) {
930 size += com.google.protobuf.CodedOutputStream
931 .computeInt64Size(11, numConflicts_);
933 if (numBranches_ != 0L) {
934 size += com.google.protobuf.CodedOutputStream
935 .computeInt64Size(12, numBranches_);
937 if (numBinaryPropagations_ != 0L) {
938 size += com.google.protobuf.CodedOutputStream
939 .computeInt64Size(13, numBinaryPropagations_);
941 if (numIntegerPropagations_ != 0L) {
942 size += com.google.protobuf.CodedOutputStream
943 .computeInt64Size(14, numIntegerPropagations_);
945 if (java.lang.Double.doubleToRawLongBits(wallTime_) != 0) {
946 size += com.google.protobuf.CodedOutputStream
947 .computeDoubleSize(15, wallTime_);
949 if (java.lang.Double.doubleToRawLongBits(userTime_) != 0) {
950 size += com.google.protobuf.CodedOutputStream
951 .computeDoubleSize(16, userTime_);
953 if (java.lang.Double.doubleToRawLongBits(deterministicTime_) != 0) {
954 size += com.google.protobuf.CodedOutputStream
955 .computeDoubleSize(17, deterministicTime_);
957 if (!com.google.protobuf.GeneratedMessage.isStringEmpty(solutionInfo_)) {
958 size += com.google.protobuf.GeneratedMessage.computeStringSize(20, solutionInfo_);
960 for (
int i = 0; i < tightenedVariables_.size(); i++) {
961 size += com.google.protobuf.CodedOutputStream
962 .computeMessageSize(21, tightenedVariables_.get(i));
964 if (java.lang.Double.doubleToRawLongBits(gapIntegral_) != 0) {
965 size += com.google.protobuf.CodedOutputStream
966 .computeDoubleSize(22, gapIntegral_);
970 for (
int i = 0; i < sufficientAssumptionsForInfeasibility_.size(); i++) {
971 dataSize += com.google.protobuf.CodedOutputStream
972 .computeInt32SizeNoTag(sufficientAssumptionsForInfeasibility_.getInt(i));
977 size += com.google.protobuf.CodedOutputStream
978 .computeInt32SizeNoTag(dataSize);
980 sufficientAssumptionsForInfeasibilityMemoizedSerializedSize = dataSize;
982 if (numRestarts_ != 0L) {
983 size += com.google.protobuf.CodedOutputStream
984 .computeInt64Size(24, numRestarts_);
986 if (numLpIterations_ != 0L) {
987 size += com.google.protobuf.CodedOutputStream
988 .computeInt64Size(25, numLpIterations_);
990 if (!com.google.protobuf.GeneratedMessage.isStringEmpty(solveLog_)) {
991 size += com.google.protobuf.GeneratedMessage.computeStringSize(26, solveLog_);
993 for (
int i = 0; i < additionalSolutions_.size(); i++) {
994 size += com.google.protobuf.CodedOutputStream
995 .computeMessageSize(27, additionalSolutions_.get(i));
997 if (((bitField0_ & 0x00000001) != 0)) {
998 size += com.google.protobuf.CodedOutputStream
1001 if (innerObjectiveLowerBound_ != 0L) {
1002 size += com.google.protobuf.CodedOutputStream
1003 .computeInt64Size(29, innerObjectiveLowerBound_);
1005 if (numIntegers_ != 0L) {
1006 size += com.google.protobuf.CodedOutputStream
1007 .computeInt64Size(30, numIntegers_);
1009 size += getUnknownFields().getSerializedSize();
1010 memoizedSize = size;
1015 public boolean equals(
final java.lang.Object obj) {
1019 if (!(obj instanceof com.google.ortools.sat.CpSolverResponse)) {
1020 return super.equals(obj);
1024 if (status_ != other.status_)
return false;
1028 != java.lang.Double.doubleToLongBits(
1031 != java.lang.Double.doubleToLongBits(
1062 if (java.lang.Double.doubleToLongBits(
getWallTime())
1063 != java.lang.Double.doubleToLongBits(
1065 if (java.lang.Double.doubleToLongBits(
getUserTime())
1066 != java.lang.Double.doubleToLongBits(
1069 != java.lang.Double.doubleToLongBits(
1072 != java.lang.Double.doubleToLongBits(
1078 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
1084 if (memoizedHashCode != 0) {
1085 return memoizedHashCode;
1090 hash = (53 * hash) + status_;
1096 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1099 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1118 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1121 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1124 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1127 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1130 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1133 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1136 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1139 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1142 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1145 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1146 java.lang.Double.doubleToLongBits(
getWallTime()));
1148 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1149 java.lang.Double.doubleToLongBits(
getUserTime()));
1151 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1154 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1160 hash = (29 * hash) + getUnknownFields().hashCode();
1161 memoizedHashCode = hash;
1166 java.nio.ByteBuffer data)
1167 throws com.google.protobuf.InvalidProtocolBufferException {
1168 return PARSER.parseFrom(data);
1171 java.nio.ByteBuffer data,
1172 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1173 throws com.google.protobuf.InvalidProtocolBufferException {
1174 return PARSER.parseFrom(data, extensionRegistry);
1177 com.google.protobuf.ByteString data)
1178 throws com.google.protobuf.InvalidProtocolBufferException {
1179 return PARSER.parseFrom(data);
1182 com.google.protobuf.ByteString data,
1183 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1184 throws com.google.protobuf.InvalidProtocolBufferException {
1185 return PARSER.parseFrom(data, extensionRegistry);
1188 throws com.google.protobuf.InvalidProtocolBufferException {
1189 return PARSER.parseFrom(data);
1193 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1194 throws com.google.protobuf.InvalidProtocolBufferException {
1195 return PARSER.parseFrom(data, extensionRegistry);
1198 throws java.io.IOException {
1199 return com.google.protobuf.GeneratedMessage
1200 .parseWithIOException(PARSER, input);
1203 java.io.InputStream input,
1204 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1205 throws java.io.IOException {
1206 return com.google.protobuf.GeneratedMessage
1207 .parseWithIOException(PARSER, input, extensionRegistry);
1211 throws java.io.IOException {
1212 return com.google.protobuf.GeneratedMessage
1213 .parseDelimitedWithIOException(PARSER, input);
1217 java.io.InputStream input,
1218 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1219 throws java.io.IOException {
1220 return com.google.protobuf.GeneratedMessage
1221 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
1224 com.google.protobuf.CodedInputStream input)
1225 throws java.io.IOException {
1226 return com.google.protobuf.GeneratedMessage
1227 .parseWithIOException(PARSER, input);
1230 com.google.protobuf.CodedInputStream input,
1231 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1232 throws java.io.IOException {
1233 return com.google.protobuf.GeneratedMessage
1234 .parseWithIOException(PARSER, input, extensionRegistry);
1247 return this == DEFAULT_INSTANCE
1253 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1267 com.google.protobuf.GeneratedMessage.
Builder<Builder> implements
1270 public static final com.google.protobuf.Descriptors.Descriptor
1272 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_descriptor;
1276 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1278 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_fieldAccessorTable
1279 .ensureFieldAccessorsInitialized(
1280 com.google.ortools.sat.CpSolverResponse.class, com.google.ortools.sat.CpSolverResponse.Builder.class);
1285 maybeForceBuilderInitialization();
1289 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1291 maybeForceBuilderInitialization();
1293 private void maybeForceBuilderInitialization() {
1294 if (com.google.protobuf.GeneratedMessage
1295 .alwaysUseFieldBuilders) {
1296 getAdditionalSolutionsFieldBuilder();
1297 getTightenedVariablesFieldBuilder();
1298 getIntegerObjectiveFieldBuilder();
1306 solution_ = emptyLongList();
1307 objectiveValue_ = 0D;
1308 bestObjectiveBound_ = 0D;
1309 if (additionalSolutionsBuilder_ ==
null) {
1310 additionalSolutions_ = java.util.Collections.emptyList();
1312 additionalSolutions_ =
null;
1313 additionalSolutionsBuilder_.clear();
1315 bitField0_ = (bitField0_ & ~0x00000010);
1316 if (tightenedVariablesBuilder_ ==
null) {
1317 tightenedVariables_ = java.util.Collections.emptyList();
1319 tightenedVariables_ =
null;
1320 tightenedVariablesBuilder_.clear();
1322 bitField0_ = (bitField0_ & ~0x00000020);
1323 sufficientAssumptionsForInfeasibility_ = emptyIntList();
1324 integerObjective_ =
null;
1325 if (integerObjectiveBuilder_ !=
null) {
1326 integerObjectiveBuilder_.dispose();
1327 integerObjectiveBuilder_ =
null;
1329 innerObjectiveLowerBound_ = 0L;
1334 numBinaryPropagations_ = 0L;
1335 numIntegerPropagations_ = 0L;
1337 numLpIterations_ = 0L;
1340 deterministicTime_ = 0D;
1348 public com.google.protobuf.Descriptors.Descriptor
1350 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_descriptor;
1355 return com.google.ortools.sat.CpSolverResponse.getDefaultInstance();
1362 throw newUninitializedMessageException(result);
1370 buildPartialRepeatedFields(result);
1371 if (bitField0_ != 0) { buildPartial0(result); }
1376 private void buildPartialRepeatedFields(com.google.ortools.sat.CpSolverResponse result) {
1377 if (additionalSolutionsBuilder_ ==
null) {
1378 if (((bitField0_ & 0x00000010) != 0)) {
1379 additionalSolutions_ = java.util.Collections.unmodifiableList(additionalSolutions_);
1380 bitField0_ = (bitField0_ & ~0x00000010);
1382 result.additionalSolutions_ = additionalSolutions_;
1384 result.additionalSolutions_ = additionalSolutionsBuilder_.build();
1386 if (tightenedVariablesBuilder_ ==
null) {
1387 if (((bitField0_ & 0x00000020) != 0)) {
1388 tightenedVariables_ = java.util.Collections.unmodifiableList(tightenedVariables_);
1389 bitField0_ = (bitField0_ & ~0x00000020);
1391 result.tightenedVariables_ = tightenedVariables_;
1393 result.tightenedVariables_ = tightenedVariablesBuilder_.build();
1397 private void buildPartial0(com.google.ortools.sat.CpSolverResponse result) {
1398 int from_bitField0_ = bitField0_;
1399 if (((from_bitField0_ & 0x00000001) != 0)) {
1400 result.status_ = status_;
1402 if (((from_bitField0_ & 0x00000002) != 0)) {
1403 solution_.makeImmutable();
1404 result.solution_ = solution_;
1406 if (((from_bitField0_ & 0x00000004) != 0)) {
1407 result.objectiveValue_ = objectiveValue_;
1409 if (((from_bitField0_ & 0x00000008) != 0)) {
1410 result.bestObjectiveBound_ = bestObjectiveBound_;
1412 if (((from_bitField0_ & 0x00000040) != 0)) {
1413 sufficientAssumptionsForInfeasibility_.makeImmutable();
1414 result.sufficientAssumptionsForInfeasibility_ = sufficientAssumptionsForInfeasibility_;
1416 int to_bitField0_ = 0;
1417 if (((from_bitField0_ & 0x00000080) != 0)) {
1418 result.integerObjective_ = integerObjectiveBuilder_ ==
null
1420 : integerObjectiveBuilder_.build();
1421 to_bitField0_ |= 0x00000001;
1423 if (((from_bitField0_ & 0x00000100) != 0)) {
1424 result.innerObjectiveLowerBound_ = innerObjectiveLowerBound_;
1426 if (((from_bitField0_ & 0x00000200) != 0)) {
1427 result.numIntegers_ = numIntegers_;
1429 if (((from_bitField0_ & 0x00000400) != 0)) {
1430 result.numBooleans_ = numBooleans_;
1432 if (((from_bitField0_ & 0x00000800) != 0)) {
1433 result.numConflicts_ = numConflicts_;
1435 if (((from_bitField0_ & 0x00001000) != 0)) {
1436 result.numBranches_ = numBranches_;
1438 if (((from_bitField0_ & 0x00002000) != 0)) {
1439 result.numBinaryPropagations_ = numBinaryPropagations_;
1441 if (((from_bitField0_ & 0x00004000) != 0)) {
1442 result.numIntegerPropagations_ = numIntegerPropagations_;
1444 if (((from_bitField0_ & 0x00008000) != 0)) {
1445 result.numRestarts_ = numRestarts_;
1447 if (((from_bitField0_ & 0x00010000) != 0)) {
1448 result.numLpIterations_ = numLpIterations_;
1450 if (((from_bitField0_ & 0x00020000) != 0)) {
1451 result.wallTime_ = wallTime_;
1453 if (((from_bitField0_ & 0x00040000) != 0)) {
1454 result.userTime_ = userTime_;
1456 if (((from_bitField0_ & 0x00080000) != 0)) {
1457 result.deterministicTime_ = deterministicTime_;
1459 if (((from_bitField0_ & 0x00100000) != 0)) {
1460 result.gapIntegral_ = gapIntegral_;
1462 if (((from_bitField0_ & 0x00200000) != 0)) {
1463 result.solutionInfo_ = solutionInfo_;
1465 if (((from_bitField0_ & 0x00400000) != 0)) {
1466 result.solveLog_ = solveLog_;
1468 result.bitField0_ |= to_bitField0_;
1473 if (other instanceof com.google.ortools.sat.CpSolverResponse) {
1474 return mergeFrom((com.google.ortools.sat.CpSolverResponse)other);
1476 super.mergeFrom(other);
1482 if (other == com.google.ortools.sat.CpSolverResponse.getDefaultInstance())
return this;
1483 if (other.status_ != 0) {
1486 if (!other.solution_.isEmpty()) {
1487 if (solution_.isEmpty()) {
1488 solution_ = other.solution_;
1489 solution_.makeImmutable();
1490 bitField0_ |= 0x00000002;
1492 ensureSolutionIsMutable();
1493 solution_.addAll(other.solution_);
1497 if (other.getObjectiveValue() != 0D) {
1500 if (other.getBestObjectiveBound() != 0D) {
1503 if (additionalSolutionsBuilder_ ==
null) {
1504 if (!other.additionalSolutions_.isEmpty()) {
1505 if (additionalSolutions_.isEmpty()) {
1506 additionalSolutions_ = other.additionalSolutions_;
1507 bitField0_ = (bitField0_ & ~0x00000010);
1509 ensureAdditionalSolutionsIsMutable();
1510 additionalSolutions_.addAll(other.additionalSolutions_);
1515 if (!other.additionalSolutions_.isEmpty()) {
1516 if (additionalSolutionsBuilder_.isEmpty()) {
1517 additionalSolutionsBuilder_.dispose();
1518 additionalSolutionsBuilder_ =
null;
1519 additionalSolutions_ = other.additionalSolutions_;
1520 bitField0_ = (bitField0_ & ~0x00000010);
1521 additionalSolutionsBuilder_ =
1522 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
1523 getAdditionalSolutionsFieldBuilder() :
null;
1525 additionalSolutionsBuilder_.addAllMessages(other.additionalSolutions_);
1529 if (tightenedVariablesBuilder_ ==
null) {
1530 if (!other.tightenedVariables_.isEmpty()) {
1531 if (tightenedVariables_.isEmpty()) {
1532 tightenedVariables_ = other.tightenedVariables_;
1533 bitField0_ = (bitField0_ & ~0x00000020);
1535 ensureTightenedVariablesIsMutable();
1536 tightenedVariables_.addAll(other.tightenedVariables_);
1541 if (!other.tightenedVariables_.isEmpty()) {
1542 if (tightenedVariablesBuilder_.isEmpty()) {
1543 tightenedVariablesBuilder_.dispose();
1544 tightenedVariablesBuilder_ =
null;
1545 tightenedVariables_ = other.tightenedVariables_;
1546 bitField0_ = (bitField0_ & ~0x00000020);
1547 tightenedVariablesBuilder_ =
1548 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
1549 getTightenedVariablesFieldBuilder() :
null;
1551 tightenedVariablesBuilder_.addAllMessages(other.tightenedVariables_);
1555 if (!other.sufficientAssumptionsForInfeasibility_.isEmpty()) {
1556 if (sufficientAssumptionsForInfeasibility_.isEmpty()) {
1557 sufficientAssumptionsForInfeasibility_ = other.sufficientAssumptionsForInfeasibility_;
1558 sufficientAssumptionsForInfeasibility_.makeImmutable();
1559 bitField0_ |= 0x00000040;
1561 ensureSufficientAssumptionsForInfeasibilityIsMutable();
1562 sufficientAssumptionsForInfeasibility_.addAll(other.sufficientAssumptionsForInfeasibility_);
1566 if (other.hasIntegerObjective()) {
1569 if (other.getInnerObjectiveLowerBound() != 0L) {
1572 if (other.getNumIntegers() != 0L) {
1575 if (other.getNumBooleans() != 0L) {
1578 if (other.getNumConflicts() != 0L) {
1581 if (other.getNumBranches() != 0L) {
1584 if (other.getNumBinaryPropagations() != 0L) {
1587 if (other.getNumIntegerPropagations() != 0L) {
1590 if (other.getNumRestarts() != 0L) {
1593 if (other.getNumLpIterations() != 0L) {
1596 if (other.getWallTime() != 0D) {
1599 if (other.getUserTime() != 0D) {
1602 if (other.getDeterministicTime() != 0D) {
1605 if (other.getGapIntegral() != 0D) {
1608 if (!other.getSolutionInfo().isEmpty()) {
1609 solutionInfo_ = other.solutionInfo_;
1610 bitField0_ |= 0x00200000;
1613 if (!other.getSolveLog().isEmpty()) {
1614 solveLog_ = other.solveLog_;
1615 bitField0_ |= 0x00400000;
1618 this.mergeUnknownFields(other.getUnknownFields());
1630 com.google.protobuf.CodedInputStream input,
1631 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1632 throws java.io.IOException {
1633 if (extensionRegistry ==
null) {
1634 throw new java.lang.NullPointerException();
1637 boolean done =
false;
1639 int tag = input.readTag();
1645 status_ = input.readEnum();
1646 bitField0_ |= 0x00000001;
1650 long v = input.readInt64();
1651 ensureSolutionIsMutable();
1652 solution_.addLong(v);
1656 int length = input.readRawVarint32();
1657 int limit = input.pushLimit(length);
1658 ensureSolutionIsMutable();
1659 while (input.getBytesUntilLimit() > 0) {
1660 solution_.addLong(input.readInt64());
1662 input.popLimit(limit);
1666 objectiveValue_ = input.readDouble();
1667 bitField0_ |= 0x00000004;
1671 bestObjectiveBound_ = input.readDouble();
1672 bitField0_ |= 0x00000008;
1676 numBooleans_ = input.readInt64();
1677 bitField0_ |= 0x00000400;
1681 numConflicts_ = input.readInt64();
1682 bitField0_ |= 0x00000800;
1686 numBranches_ = input.readInt64();
1687 bitField0_ |= 0x00001000;
1691 numBinaryPropagations_ = input.readInt64();
1692 bitField0_ |= 0x00002000;
1696 numIntegerPropagations_ = input.readInt64();
1697 bitField0_ |= 0x00004000;
1701 wallTime_ = input.readDouble();
1702 bitField0_ |= 0x00020000;
1706 userTime_ = input.readDouble();
1707 bitField0_ |= 0x00040000;
1711 deterministicTime_ = input.readDouble();
1712 bitField0_ |= 0x00080000;
1716 solutionInfo_ = input.readStringRequireUtf8();
1717 bitField0_ |= 0x00200000;
1723 com.google.ortools.sat.IntegerVariableProto.parser(),
1725 if (tightenedVariablesBuilder_ ==
null) {
1726 ensureTightenedVariablesIsMutable();
1727 tightenedVariables_.add(m);
1729 tightenedVariablesBuilder_.addMessage(m);
1734 gapIntegral_ = input.readDouble();
1735 bitField0_ |= 0x00100000;
1739 int v = input.readInt32();
1740 ensureSufficientAssumptionsForInfeasibilityIsMutable();
1741 sufficientAssumptionsForInfeasibility_.addInt(v);
1745 int length = input.readRawVarint32();
1746 int limit = input.pushLimit(length);
1747 ensureSufficientAssumptionsForInfeasibilityIsMutable();
1748 while (input.getBytesUntilLimit() > 0) {
1749 sufficientAssumptionsForInfeasibility_.addInt(input.readInt32());
1751 input.popLimit(limit);
1755 numRestarts_ = input.readInt64();
1756 bitField0_ |= 0x00008000;
1760 numLpIterations_ = input.readInt64();
1761 bitField0_ |= 0x00010000;
1765 solveLog_ = input.readStringRequireUtf8();
1766 bitField0_ |= 0x00400000;
1772 com.google.ortools.sat.CpSolverSolution.parser(),
1774 if (additionalSolutionsBuilder_ ==
null) {
1775 ensureAdditionalSolutionsIsMutable();
1776 additionalSolutions_.add(m);
1778 additionalSolutionsBuilder_.addMessage(m);
1784 getIntegerObjectiveFieldBuilder().getBuilder(),
1786 bitField0_ |= 0x00000080;
1790 innerObjectiveLowerBound_ = input.readInt64();
1791 bitField0_ |= 0x00000100;
1795 numIntegers_ = input.readInt64();
1796 bitField0_ |= 0x00000200;
1800 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1807 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
1808 throw e.unwrapIOException();
1814 private int bitField0_;
1816 private int status_ = 0;
1839 bitField0_ |= 0x00000001;
1854 return result ==
null ? com.google.ortools.sat.CpSolverStatus.UNRECOGNIZED : result;
1866 if (value ==
null) {
1867 throw new NullPointerException();
1869 bitField0_ |= 0x00000001;
1870 status_ = value.getNumber();
1883 bitField0_ = (bitField0_ & ~0x00000001);
1889 private com.google.protobuf.Internal.LongList solution_ = emptyLongList();
1890 private void ensureSolutionIsMutable() {
1891 if (!solution_.isModifiable()) {
1892 solution_ = makeMutableCopy(solution_);
1894 bitField0_ |= 0x00000002;
1907 public java.util.List<java.lang.Long>
1909 solution_.makeImmutable();
1924 return solution_.size();
1939 return solution_.getLong(index);
1955 int index,
long value) {
1957 ensureSolutionIsMutable();
1958 solution_.setLong(index, value);
1959 bitField0_ |= 0x00000002;
1977 ensureSolutionIsMutable();
1978 solution_.addLong(value);
1979 bitField0_ |= 0x00000002;
1996 java.lang.Iterable<? extends java.lang.Long> values) {
1997 ensureSolutionIsMutable();
1998 com.google.protobuf.AbstractMessageLite.Builder.addAll(
2000 bitField0_ |= 0x00000002;
2016 solution_ = emptyLongList();
2017 bitField0_ = (bitField0_ & ~0x00000002);
2022 private double objectiveValue_ ;
2036 return objectiveValue_;
2052 objectiveValue_ = value;
2053 bitField0_ |= 0x00000004;
2069 bitField0_ = (bitField0_ & ~0x00000004);
2070 objectiveValue_ = 0D;
2075 private double bestObjectiveBound_ ;
2088 return bestObjectiveBound_;
2103 bestObjectiveBound_ = value;
2104 bitField0_ |= 0x00000008;
2119 bitField0_ = (bitField0_ & ~0x00000008);
2120 bestObjectiveBound_ = 0D;
2125 private java.util.List<com.google.ortools.sat.CpSolverSolution> additionalSolutions_ =
2126 java.util.Collections.emptyList();
2127 private void ensureAdditionalSolutionsIsMutable() {
2128 if (!((bitField0_ & 0x00000010) != 0)) {
2129 additionalSolutions_ =
new java.util.ArrayList<com.google.ortools.sat.CpSolverSolution>(additionalSolutions_);
2130 bitField0_ |= 0x00000010;
2134 private com.google.protobuf.RepeatedFieldBuilder<
2135 com.google.ortools.sat.CpSolverSolution, com.google.ortools.sat.CpSolverSolution.Builder, com.google.ortools.sat.CpSolverSolutionOrBuilder> additionalSolutionsBuilder_;
2150 if (additionalSolutionsBuilder_ ==
null) {
2151 return java.util.Collections.unmodifiableList(additionalSolutions_);
2153 return additionalSolutionsBuilder_.getMessageList();
2169 if (additionalSolutionsBuilder_ ==
null) {
2170 return additionalSolutions_.size();
2172 return additionalSolutionsBuilder_.getCount();
2188 if (additionalSolutionsBuilder_ ==
null) {
2189 return additionalSolutions_.get(index);
2191 return additionalSolutionsBuilder_.getMessage(index);
2207 int index, com.google.ortools.sat.CpSolverSolution value) {
2208 if (additionalSolutionsBuilder_ ==
null) {
2209 if (value ==
null) {
2210 throw new NullPointerException();
2212 ensureAdditionalSolutionsIsMutable();
2213 additionalSolutions_.set(index, value);
2216 additionalSolutionsBuilder_.setMessage(index, value);
2233 int index, com.google.ortools.sat.CpSolverSolution.Builder builderForValue) {
2234 if (additionalSolutionsBuilder_ ==
null) {
2235 ensureAdditionalSolutionsIsMutable();
2236 additionalSolutions_.set(index, builderForValue.build());
2239 additionalSolutionsBuilder_.setMessage(index, builderForValue.build());
2256 if (additionalSolutionsBuilder_ ==
null) {
2257 if (value ==
null) {
2258 throw new NullPointerException();
2260 ensureAdditionalSolutionsIsMutable();
2261 additionalSolutions_.add(value);
2264 additionalSolutionsBuilder_.addMessage(value);
2281 int index, com.google.ortools.sat.CpSolverSolution value) {
2282 if (additionalSolutionsBuilder_ ==
null) {
2283 if (value ==
null) {
2284 throw new NullPointerException();
2286 ensureAdditionalSolutionsIsMutable();
2287 additionalSolutions_.add(index, value);
2290 additionalSolutionsBuilder_.addMessage(index, value);
2307 com.google.ortools.sat.CpSolverSolution.Builder builderForValue) {
2308 if (additionalSolutionsBuilder_ ==
null) {
2309 ensureAdditionalSolutionsIsMutable();
2310 additionalSolutions_.add(builderForValue.build());
2313 additionalSolutionsBuilder_.addMessage(builderForValue.build());
2330 int index, com.google.ortools.sat.CpSolverSolution.Builder builderForValue) {
2331 if (additionalSolutionsBuilder_ ==
null) {
2332 ensureAdditionalSolutionsIsMutable();
2333 additionalSolutions_.add(index, builderForValue.build());
2336 additionalSolutionsBuilder_.addMessage(index, builderForValue.build());
2353 java.lang.Iterable<? extends com.google.ortools.sat.CpSolverSolution> values) {
2354 if (additionalSolutionsBuilder_ ==
null) {
2355 ensureAdditionalSolutionsIsMutable();
2356 com.google.protobuf.AbstractMessageLite.Builder.addAll(
2357 values, additionalSolutions_);
2360 additionalSolutionsBuilder_.addAllMessages(values);
2377 if (additionalSolutionsBuilder_ ==
null) {
2378 additionalSolutions_ = java.util.Collections.emptyList();
2379 bitField0_ = (bitField0_ & ~0x00000010);
2382 additionalSolutionsBuilder_.clear();
2399 if (additionalSolutionsBuilder_ ==
null) {
2400 ensureAdditionalSolutionsIsMutable();
2401 additionalSolutions_.remove(index);
2404 additionalSolutionsBuilder_.remove(index);
2422 return getAdditionalSolutionsFieldBuilder().getBuilder(index);
2438 if (additionalSolutionsBuilder_ ==
null) {
2439 return additionalSolutions_.get(index); }
else {
2440 return additionalSolutionsBuilder_.getMessageOrBuilder(index);
2455 public java.util.List<? extends com.google.ortools.sat.CpSolverSolutionOrBuilder>
2457 if (additionalSolutionsBuilder_ !=
null) {
2458 return additionalSolutionsBuilder_.getMessageOrBuilderList();
2460 return java.util.Collections.unmodifiableList(additionalSolutions_);
2476 return getAdditionalSolutionsFieldBuilder().addBuilder(
2477 com.google.ortools.sat.CpSolverSolution.getDefaultInstance());
2493 return getAdditionalSolutionsFieldBuilder().addBuilder(
2494 index, com.google.ortools.sat.CpSolverSolution.getDefaultInstance());
2508 public java.util.List<com.google.ortools.sat.CpSolverSolution.Builder>
2510 return getAdditionalSolutionsFieldBuilder().getBuilderList();
2512 private com.google.protobuf.RepeatedFieldBuilder<
2513 com.google.ortools.sat.CpSolverSolution, com.google.ortools.sat.CpSolverSolution.Builder, com.google.ortools.sat.CpSolverSolutionOrBuilder>
2514 getAdditionalSolutionsFieldBuilder() {
2515 if (additionalSolutionsBuilder_ ==
null) {
2516 additionalSolutionsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilder<
2517 com.google.ortools.sat.CpSolverSolution, com.google.ortools.sat.CpSolverSolution.Builder, com.google.ortools.sat.CpSolverSolutionOrBuilder>(
2518 additionalSolutions_,
2519 ((bitField0_ & 0x00000010) != 0),
2520 getParentForChildren(),
2522 additionalSolutions_ =
null;
2524 return additionalSolutionsBuilder_;
2527 private java.util.List<com.google.ortools.sat.IntegerVariableProto> tightenedVariables_ =
2528 java.util.Collections.emptyList();
2529 private void ensureTightenedVariablesIsMutable() {
2530 if (!((bitField0_ & 0x00000020) != 0)) {
2531 tightenedVariables_ =
new java.util.ArrayList<com.google.ortools.sat.IntegerVariableProto>(tightenedVariables_);
2532 bitField0_ |= 0x00000020;
2536 private com.google.protobuf.RepeatedFieldBuilder<
2537 com.google.ortools.sat.IntegerVariableProto, com.google.ortools.sat.IntegerVariableProto.Builder, com.google.ortools.sat.IntegerVariableProtoOrBuilder> tightenedVariablesBuilder_;
2562 if (tightenedVariablesBuilder_ ==
null) {
2563 return java.util.Collections.unmodifiableList(tightenedVariables_);
2565 return tightenedVariablesBuilder_.getMessageList();
2591 if (tightenedVariablesBuilder_ ==
null) {
2592 return tightenedVariables_.size();
2594 return tightenedVariablesBuilder_.getCount();
2620 if (tightenedVariablesBuilder_ ==
null) {
2621 return tightenedVariables_.get(index);
2623 return tightenedVariablesBuilder_.getMessage(index);
2649 int index, com.google.ortools.sat.IntegerVariableProto value) {
2650 if (tightenedVariablesBuilder_ ==
null) {
2651 if (value ==
null) {
2652 throw new NullPointerException();
2654 ensureTightenedVariablesIsMutable();
2655 tightenedVariables_.set(index, value);
2658 tightenedVariablesBuilder_.setMessage(index, value);
2685 int index, com.google.ortools.sat.IntegerVariableProto.Builder builderForValue) {
2686 if (tightenedVariablesBuilder_ ==
null) {
2687 ensureTightenedVariablesIsMutable();
2688 tightenedVariables_.set(index, builderForValue.build());
2691 tightenedVariablesBuilder_.setMessage(index, builderForValue.build());
2718 if (tightenedVariablesBuilder_ ==
null) {
2719 if (value ==
null) {
2720 throw new NullPointerException();
2722 ensureTightenedVariablesIsMutable();
2723 tightenedVariables_.add(value);
2726 tightenedVariablesBuilder_.addMessage(value);
2753 int index, com.google.ortools.sat.IntegerVariableProto value) {
2754 if (tightenedVariablesBuilder_ ==
null) {
2755 if (value ==
null) {
2756 throw new NullPointerException();
2758 ensureTightenedVariablesIsMutable();
2759 tightenedVariables_.add(index, value);
2762 tightenedVariablesBuilder_.addMessage(index, value);
2789 com.google.ortools.sat.IntegerVariableProto.Builder builderForValue) {
2790 if (tightenedVariablesBuilder_ ==
null) {
2791 ensureTightenedVariablesIsMutable();
2792 tightenedVariables_.add(builderForValue.build());
2795 tightenedVariablesBuilder_.addMessage(builderForValue.build());
2822 int index, com.google.ortools.sat.IntegerVariableProto.Builder builderForValue) {
2823 if (tightenedVariablesBuilder_ ==
null) {
2824 ensureTightenedVariablesIsMutable();
2825 tightenedVariables_.add(index, builderForValue.build());
2828 tightenedVariablesBuilder_.addMessage(index, builderForValue.build());
2855 java.lang.Iterable<? extends com.google.ortools.sat.IntegerVariableProto> values) {
2856 if (tightenedVariablesBuilder_ ==
null) {
2857 ensureTightenedVariablesIsMutable();
2858 com.google.protobuf.AbstractMessageLite.Builder.addAll(
2859 values, tightenedVariables_);
2862 tightenedVariablesBuilder_.addAllMessages(values);
2889 if (tightenedVariablesBuilder_ ==
null) {
2890 tightenedVariables_ = java.util.Collections.emptyList();
2891 bitField0_ = (bitField0_ & ~0x00000020);
2894 tightenedVariablesBuilder_.clear();
2921 if (tightenedVariablesBuilder_ ==
null) {
2922 ensureTightenedVariablesIsMutable();
2923 tightenedVariables_.remove(index);
2926 tightenedVariablesBuilder_.remove(index);
2954 return getTightenedVariablesFieldBuilder().getBuilder(index);
2980 if (tightenedVariablesBuilder_ ==
null) {
2981 return tightenedVariables_.get(index); }
else {
2982 return tightenedVariablesBuilder_.getMessageOrBuilder(index);
3007 public java.util.List<? extends com.google.ortools.sat.IntegerVariableProtoOrBuilder>
3009 if (tightenedVariablesBuilder_ !=
null) {
3010 return tightenedVariablesBuilder_.getMessageOrBuilderList();
3012 return java.util.Collections.unmodifiableList(tightenedVariables_);
3038 return getTightenedVariablesFieldBuilder().addBuilder(
3039 com.google.ortools.sat.IntegerVariableProto.getDefaultInstance());
3065 return getTightenedVariablesFieldBuilder().addBuilder(
3066 index, com.google.ortools.sat.IntegerVariableProto.getDefaultInstance());
3090 public java.util.List<com.google.ortools.sat.IntegerVariableProto.Builder>
3092 return getTightenedVariablesFieldBuilder().getBuilderList();
3094 private com.google.protobuf.RepeatedFieldBuilder<
3095 com.google.ortools.sat.IntegerVariableProto, com.google.ortools.sat.IntegerVariableProto.Builder, com.google.ortools.sat.IntegerVariableProtoOrBuilder>
3096 getTightenedVariablesFieldBuilder() {
3097 if (tightenedVariablesBuilder_ ==
null) {
3098 tightenedVariablesBuilder_ =
new com.google.protobuf.RepeatedFieldBuilder<
3099 com.google.ortools.sat.IntegerVariableProto, com.google.ortools.sat.IntegerVariableProto.Builder, com.google.ortools.sat.IntegerVariableProtoOrBuilder>(
3100 tightenedVariables_,
3101 ((bitField0_ & 0x00000020) != 0),
3102 getParentForChildren(),
3104 tightenedVariables_ =
null;
3106 return tightenedVariablesBuilder_;
3109 private com.google.protobuf.Internal.IntList sufficientAssumptionsForInfeasibility_ = emptyIntList();
3110 private void ensureSufficientAssumptionsForInfeasibilityIsMutable() {
3111 if (!sufficientAssumptionsForInfeasibility_.isModifiable()) {
3112 sufficientAssumptionsForInfeasibility_ = makeMutableCopy(sufficientAssumptionsForInfeasibility_);
3114 bitField0_ |= 0x00000040;
3142 public java.util.List<java.lang.Integer>
3144 sufficientAssumptionsForInfeasibility_.makeImmutable();
3145 return sufficientAssumptionsForInfeasibility_;
3174 return sufficientAssumptionsForInfeasibility_.size();
3204 return sufficientAssumptionsForInfeasibility_.getInt(index);
3235 int index,
int value) {
3237 ensureSufficientAssumptionsForInfeasibilityIsMutable();
3238 sufficientAssumptionsForInfeasibility_.setInt(index, value);
3239 bitField0_ |= 0x00000040;
3272 ensureSufficientAssumptionsForInfeasibilityIsMutable();
3273 sufficientAssumptionsForInfeasibility_.addInt(value);
3274 bitField0_ |= 0x00000040;
3306 java.lang.Iterable<? extends java.lang.Integer> values) {
3307 ensureSufficientAssumptionsForInfeasibilityIsMutable();
3308 com.google.protobuf.AbstractMessageLite.Builder.addAll(
3309 values, sufficientAssumptionsForInfeasibility_);
3310 bitField0_ |= 0x00000040;
3341 sufficientAssumptionsForInfeasibility_ = emptyIntList();
3342 bitField0_ = (bitField0_ & ~0x00000040);
3348 private com.google.protobuf.SingleFieldBuilder<
3349 com.google.ortools.sat.CpObjectiveProto, com.google.ortools.sat.CpObjectiveProto.Builder, com.google.ortools.sat.CpObjectiveProtoOrBuilder> integerObjectiveBuilder_;
3361 return ((bitField0_ & 0x00000080) != 0);
3374 if (integerObjectiveBuilder_ ==
null) {
3375 return integerObjective_ ==
null ? com.google.ortools.sat.CpObjectiveProto.getDefaultInstance() : integerObjective_;
3377 return integerObjectiveBuilder_.getMessage();
3390 if (integerObjectiveBuilder_ ==
null) {
3391 if (value ==
null) {
3392 throw new NullPointerException();
3394 integerObjective_ = value;
3396 integerObjectiveBuilder_.setMessage(value);
3398 bitField0_ |= 0x00000080;
3412 com.google.ortools.sat.CpObjectiveProto.Builder builderForValue) {
3413 if (integerObjectiveBuilder_ ==
null) {
3414 integerObjective_ = builderForValue.build();
3416 integerObjectiveBuilder_.setMessage(builderForValue.build());
3418 bitField0_ |= 0x00000080;
3432 if (integerObjectiveBuilder_ ==
null) {
3433 if (((bitField0_ & 0x00000080) != 0) &&
3434 integerObjective_ !=
null &&
3435 integerObjective_ != com.google.ortools.sat.CpObjectiveProto.getDefaultInstance()) {
3438 integerObjective_ = value;
3441 integerObjectiveBuilder_.mergeFrom(value);
3443 if (integerObjective_ !=
null) {
3444 bitField0_ |= 0x00000080;
3459 bitField0_ = (bitField0_ & ~0x00000080);
3460 integerObjective_ =
null;
3461 if (integerObjectiveBuilder_ !=
null) {
3462 integerObjectiveBuilder_.dispose();
3463 integerObjectiveBuilder_ =
null;
3478 bitField0_ |= 0x00000080;
3480 return getIntegerObjectiveFieldBuilder().getBuilder();
3492 if (integerObjectiveBuilder_ !=
null) {
3493 return integerObjectiveBuilder_.getMessageOrBuilder();
3495 return integerObjective_ ==
null ?
3496 com.google.ortools.sat.CpObjectiveProto.getDefaultInstance() : integerObjective_;
3508 private com.google.protobuf.SingleFieldBuilder<
3509 com.google.ortools.sat.CpObjectiveProto, com.google.ortools.sat.CpObjectiveProto.Builder, com.google.ortools.sat.CpObjectiveProtoOrBuilder>
3510 getIntegerObjectiveFieldBuilder() {
3511 if (integerObjectiveBuilder_ ==
null) {
3512 integerObjectiveBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
3513 com.google.ortools.sat.CpObjectiveProto, com.google.ortools.sat.CpObjectiveProto.Builder, com.google.ortools.sat.CpObjectiveProtoOrBuilder>(
3515 getParentForChildren(),
3517 integerObjective_ =
null;
3519 return integerObjectiveBuilder_;
3522 private long innerObjectiveLowerBound_ ;
3538 return innerObjectiveLowerBound_;
3556 innerObjectiveLowerBound_ = value;
3557 bitField0_ |= 0x00000100;
3575 bitField0_ = (bitField0_ & ~0x00000100);
3576 innerObjectiveLowerBound_ = 0L;
3581 private long numIntegers_ ;
3596 return numIntegers_;
3613 numIntegers_ = value;
3614 bitField0_ |= 0x00000200;
3631 bitField0_ = (bitField0_ & ~0x00000200);
3637 private long numBooleans_ ;
3644 return numBooleans_;
3653 numBooleans_ = value;
3654 bitField0_ |= 0x00000400;
3663 bitField0_ = (bitField0_ & ~0x00000400);
3669 private long numConflicts_ ;
3676 return numConflicts_;
3685 numConflicts_ = value;
3686 bitField0_ |= 0x00000800;
3695 bitField0_ = (bitField0_ & ~0x00000800);
3701 private long numBranches_ ;
3708 return numBranches_;
3717 numBranches_ = value;
3718 bitField0_ |= 0x00001000;
3727 bitField0_ = (bitField0_ & ~0x00001000);
3733 private long numBinaryPropagations_ ;
3740 return numBinaryPropagations_;
3749 numBinaryPropagations_ = value;
3750 bitField0_ |= 0x00002000;
3759 bitField0_ = (bitField0_ & ~0x00002000);
3760 numBinaryPropagations_ = 0L;
3765 private long numIntegerPropagations_ ;
3772 return numIntegerPropagations_;
3781 numIntegerPropagations_ = value;
3782 bitField0_ |= 0x00004000;
3791 bitField0_ = (bitField0_ & ~0x00004000);
3792 numIntegerPropagations_ = 0L;
3797 private long numRestarts_ ;
3804 return numRestarts_;
3813 numRestarts_ = value;
3814 bitField0_ |= 0x00008000;
3823 bitField0_ = (bitField0_ & ~0x00008000);
3829 private long numLpIterations_ ;
3836 return numLpIterations_;
3845 numLpIterations_ = value;
3846 bitField0_ |= 0x00010000;
3855 bitField0_ = (bitField0_ & ~0x00010000);
3856 numLpIterations_ = 0L;
3861 private double wallTime_ ;
3886 bitField0_ |= 0x00020000;
3899 bitField0_ = (bitField0_ & ~0x00020000);
3905 private double userTime_ ;
3922 bitField0_ |= 0x00040000;
3931 bitField0_ = (bitField0_ & ~0x00040000);
3937 private double deterministicTime_ ;
3944 return deterministicTime_;
3953 deterministicTime_ = value;
3954 bitField0_ |= 0x00080000;
3963 bitField0_ = (bitField0_ & ~0x00080000);
3964 deterministicTime_ = 0D;
3969 private double gapIntegral_ ;
3980 return gapIntegral_;
3993 gapIntegral_ = value;
3994 bitField0_ |= 0x00100000;
4007 bitField0_ = (bitField0_ & ~0x00100000);
4013 private java.lang.Object solutionInfo_ =
"";
4024 java.lang.Object ref = solutionInfo_;
4025 if (!(ref instanceof java.lang.String)) {
4026 com.google.protobuf.ByteString bs =
4027 (com.google.protobuf.ByteString) ref;
4028 java.lang.String s = bs.toStringUtf8();
4032 return (java.lang.String) ref;
4044 public com.google.protobuf.ByteString
4046 java.lang.Object ref = solutionInfo_;
4047 if (ref instanceof String) {
4048 com.google.protobuf.ByteString b =
4049 com.google.protobuf.ByteString.copyFromUtf8(
4050 (java.lang.String) ref);
4054 return (com.google.protobuf.ByteString) ref;
4068 java.lang.String value) {
4069 if (value ==
null) {
throw new NullPointerException(); }
4070 solutionInfo_ = value;
4071 bitField0_ |= 0x00200000;
4086 bitField0_ = (bitField0_ & ~0x00200000);
4101 com.google.protobuf.ByteString value) {
4102 if (value ==
null) {
throw new NullPointerException(); }
4103 checkByteStringIsUtf8(value);
4104 solutionInfo_ = value;
4105 bitField0_ |= 0x00200000;
4110 private java.lang.Object solveLog_ =
"";
4121 java.lang.Object ref = solveLog_;
4122 if (!(ref instanceof java.lang.String)) {
4123 com.google.protobuf.ByteString bs =
4124 (com.google.protobuf.ByteString) ref;
4125 java.lang.String s = bs.toStringUtf8();
4129 return (java.lang.String) ref;
4141 public com.google.protobuf.ByteString
4143 java.lang.Object ref = solveLog_;
4144 if (ref instanceof String) {
4145 com.google.protobuf.ByteString b =
4146 com.google.protobuf.ByteString.copyFromUtf8(
4147 (java.lang.String) ref);
4151 return (com.google.protobuf.ByteString) ref;
4165 java.lang.String value) {
4166 if (value ==
null) {
throw new NullPointerException(); }
4168 bitField0_ |= 0x00400000;
4183 bitField0_ = (bitField0_ & ~0x00400000);
4198 com.google.protobuf.ByteString value) {
4199 if (value ==
null) {
throw new NullPointerException(); }
4200 checkByteStringIsUtf8(value);
4202 bitField0_ |= 0x00400000;
4213 DEFAULT_INSTANCE =
new com.google.ortools.sat.CpSolverResponse();
4217 return DEFAULT_INSTANCE;
4224 com.google.protobuf.CodedInputStream input,
4225 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4226 throws com.google.protobuf.InvalidProtocolBufferException {
4229 builder.mergeFrom(input, extensionRegistry);
4230 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
4231 throw e.setUnfinishedMessage(builder.buildPartial());
4232 }
catch (com.google.protobuf.UninitializedMessageException e) {
4233 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
4234 }
catch (java.io.IOException e) {
4235 throw new com.google.protobuf.InvalidProtocolBufferException(e)
4236 .setUnfinishedMessage(builder.buildPartial());
4238 return builder.buildPartial();
4253 return DEFAULT_INSTANCE;