Google OR-Tools v9.9
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
CpSolverResponse.java
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: ortools/sat/cp_model.proto
3
4// Protobuf Java Version: 3.25.3
5package com.google.ortools.sat;
6
16public final class CpSolverResponse extends
17 com.google.protobuf.GeneratedMessageV3 implements
18 // @@protoc_insertion_point(message_implements:operations_research.sat.CpSolverResponse)
20private static final long serialVersionUID = 0L;
21 // Use CpSolverResponse.newBuilder() to construct.
22 private CpSolverResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
23 super(builder);
24 }
25 private CpSolverResponse() {
26 status_ = 0;
27 solution_ = emptyLongList();
28 additionalSolutions_ = java.util.Collections.emptyList();
29 tightenedVariables_ = java.util.Collections.emptyList();
30 sufficientAssumptionsForInfeasibility_ = emptyIntList();
31 solutionInfo_ = "";
32 solveLog_ = "";
33 }
34
35 @java.lang.Override
36 @SuppressWarnings({"unused"})
37 protected java.lang.Object newInstance(
38 UnusedPrivateParameter unused) {
39 return new CpSolverResponse();
40 }
41
42 public static final com.google.protobuf.Descriptors.Descriptor
44 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_descriptor;
45 }
46
47 @java.lang.Override
48 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
50 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_fieldAccessorTable
51 .ensureFieldAccessorsInitialized(
52 com.google.ortools.sat.CpSolverResponse.class, com.google.ortools.sat.CpSolverResponse.Builder.class);
53 }
54
55 private int bitField0_;
56 public static final int STATUS_FIELD_NUMBER = 1;
57 private int status_ = 0;
66 @java.lang.Override public int getStatusValue() {
67 return status_;
68 }
77 @java.lang.Override public com.google.ortools.sat.CpSolverStatus getStatus() {
78 com.google.ortools.sat.CpSolverStatus result = com.google.ortools.sat.CpSolverStatus.forNumber(status_);
79 return result == null ? com.google.ortools.sat.CpSolverStatus.UNRECOGNIZED : result;
80 }
81
82 public static final int SOLUTION_FIELD_NUMBER = 2;
83 @SuppressWarnings("serial")
84 private com.google.protobuf.Internal.LongList solution_ =
85 emptyLongList();
97 @java.lang.Override
98 public java.util.List<java.lang.Long>
100 return solution_;
101 }
113 public int getSolutionCount() {
114 return solution_.size();
115 }
128 public long getSolution(int index) {
129 return solution_.getLong(index);
130 }
131 private int solutionMemoizedSerializedSize = -1;
132
133 public static final int OBJECTIVE_VALUE_FIELD_NUMBER = 3;
134 private double objectiveValue_ = 0D;
146 @java.lang.Override
147 public double getObjectiveValue() {
148 return objectiveValue_;
149 }
150
151 public static final int BEST_OBJECTIVE_BOUND_FIELD_NUMBER = 4;
152 private double bestObjectiveBound_ = 0D;
163 @java.lang.Override
164 public double getBestObjectiveBound() {
165 return bestObjectiveBound_;
166 }
167
168 public static final int ADDITIONAL_SOLUTIONS_FIELD_NUMBER = 27;
169 @SuppressWarnings("serial")
170 private java.util.List<com.google.ortools.sat.CpSolverSolution> additionalSolutions_;
183 @java.lang.Override
184 public java.util.List<com.google.ortools.sat.CpSolverSolution> getAdditionalSolutionsList() {
185 return additionalSolutions_;
186 }
199 @java.lang.Override
200 public java.util.List<? extends com.google.ortools.sat.CpSolverSolutionOrBuilder>
202 return additionalSolutions_;
203 }
216 @java.lang.Override
218 return additionalSolutions_.size();
219 }
232 @java.lang.Override
234 return additionalSolutions_.get(index);
235 }
248 @java.lang.Override
250 int index) {
251 return additionalSolutions_.get(index);
252 }
253
254 public static final int TIGHTENED_VARIABLES_FIELD_NUMBER = 21;
255 @SuppressWarnings("serial")
256 private java.util.List<com.google.ortools.sat.IntegerVariableProto> tightenedVariables_;
275 @java.lang.Override
276 public java.util.List<com.google.ortools.sat.IntegerVariableProto> getTightenedVariablesList() {
277 return tightenedVariables_;
278 }
297 @java.lang.Override
298 public java.util.List<? extends com.google.ortools.sat.IntegerVariableProtoOrBuilder>
300 return tightenedVariables_;
301 }
320 @java.lang.Override
322 return tightenedVariables_.size();
323 }
342 @java.lang.Override
344 return tightenedVariables_.get(index);
345 }
364 @java.lang.Override
366 int index) {
367 return tightenedVariables_.get(index);
368 }
369
371 @SuppressWarnings("serial")
372 private com.google.protobuf.Internal.IntList sufficientAssumptionsForInfeasibility_ =
373 emptyIntList();
400 @java.lang.Override
401 public java.util.List<java.lang.Integer>
403 return sufficientAssumptionsForInfeasibility_;
404 }
432 return sufficientAssumptionsForInfeasibility_.size();
433 }
462 return sufficientAssumptionsForInfeasibility_.getInt(index);
463 }
464 private int sufficientAssumptionsForInfeasibilityMemoizedSerializedSize = -1;
465
466 public static final int INTEGER_OBJECTIVE_FIELD_NUMBER = 28;
467 private com.google.ortools.sat.CpObjectiveProto integerObjective_;
478 @java.lang.Override
479 public boolean hasIntegerObjective() {
480 return ((bitField0_ & 0x00000001) != 0);
481 }
492 @java.lang.Override
494 return integerObjective_ == null ? com.google.ortools.sat.CpObjectiveProto.getDefaultInstance() : integerObjective_;
495 }
505 @java.lang.Override
507 return integerObjective_ == null ? com.google.ortools.sat.CpObjectiveProto.getDefaultInstance() : integerObjective_;
508 }
509
510 public static final int INNER_OBJECTIVE_LOWER_BOUND_FIELD_NUMBER = 29;
511 private long innerObjectiveLowerBound_ = 0L;
525 @java.lang.Override
527 return innerObjectiveLowerBound_;
528 }
529
530 public static final int NUM_INTEGERS_FIELD_NUMBER = 30;
531 private long numIntegers_ = 0L;
544 @java.lang.Override
545 public long getNumIntegers() {
546 return numIntegers_;
547 }
548
549 public static final int NUM_BOOLEANS_FIELD_NUMBER = 10;
550 private long numBooleans_ = 0L;
555 @java.lang.Override
556 public long getNumBooleans() {
557 return numBooleans_;
558 }
559
560 public static final int NUM_CONFLICTS_FIELD_NUMBER = 11;
561 private long numConflicts_ = 0L;
566 @java.lang.Override
567 public long getNumConflicts() {
568 return numConflicts_;
569 }
570
571 public static final int NUM_BRANCHES_FIELD_NUMBER = 12;
572 private long numBranches_ = 0L;
577 @java.lang.Override
578 public long getNumBranches() {
579 return numBranches_;
580 }
581
582 public static final int NUM_BINARY_PROPAGATIONS_FIELD_NUMBER = 13;
583 private long numBinaryPropagations_ = 0L;
588 @java.lang.Override
590 return numBinaryPropagations_;
591 }
592
593 public static final int NUM_INTEGER_PROPAGATIONS_FIELD_NUMBER = 14;
594 private long numIntegerPropagations_ = 0L;
599 @java.lang.Override
601 return numIntegerPropagations_;
602 }
603
604 public static final int NUM_RESTARTS_FIELD_NUMBER = 24;
605 private long numRestarts_ = 0L;
610 @java.lang.Override
611 public long getNumRestarts() {
612 return numRestarts_;
613 }
614
615 public static final int NUM_LP_ITERATIONS_FIELD_NUMBER = 25;
616 private long numLpIterations_ = 0L;
621 @java.lang.Override
622 public long getNumLpIterations() {
623 return numLpIterations_;
624 }
625
626 public static final int WALL_TIME_FIELD_NUMBER = 15;
627 private double wallTime_ = 0D;
636 @java.lang.Override
637 public double getWallTime() {
638 return wallTime_;
639 }
640
641 public static final int USER_TIME_FIELD_NUMBER = 16;
642 private double userTime_ = 0D;
647 @java.lang.Override
648 public double getUserTime() {
649 return userTime_;
650 }
651
652 public static final int DETERMINISTIC_TIME_FIELD_NUMBER = 17;
653 private double deterministicTime_ = 0D;
658 @java.lang.Override
659 public double getDeterministicTime() {
660 return deterministicTime_;
661 }
662
663 public static final int GAP_INTEGRAL_FIELD_NUMBER = 22;
664 private double gapIntegral_ = 0D;
673 @java.lang.Override
674 public double getGapIntegral() {
675 return gapIntegral_;
676 }
677
678 public static final int SOLUTION_INFO_FIELD_NUMBER = 20;
679 @SuppressWarnings("serial")
680 private volatile java.lang.Object solutionInfo_ = "";
690 @java.lang.Override
691 public java.lang.String getSolutionInfo() {
692 java.lang.Object ref = solutionInfo_;
693 if (ref instanceof java.lang.String) {
694 return (java.lang.String) ref;
695 } else {
696 com.google.protobuf.ByteString bs =
697 (com.google.protobuf.ByteString) ref;
698 java.lang.String s = bs.toStringUtf8();
699 solutionInfo_ = s;
700 return s;
701 }
702 }
712 @java.lang.Override
713 public com.google.protobuf.ByteString
715 java.lang.Object ref = solutionInfo_;
716 if (ref instanceof java.lang.String) {
717 com.google.protobuf.ByteString b =
718 com.google.protobuf.ByteString.copyFromUtf8(
719 (java.lang.String) ref);
720 solutionInfo_ = b;
721 return b;
722 } else {
723 return (com.google.protobuf.ByteString) ref;
724 }
725 }
726
727 public static final int SOLVE_LOG_FIELD_NUMBER = 26;
728 @SuppressWarnings("serial")
729 private volatile java.lang.Object solveLog_ = "";
739 @java.lang.Override
740 public java.lang.String getSolveLog() {
741 java.lang.Object ref = solveLog_;
742 if (ref instanceof java.lang.String) {
743 return (java.lang.String) ref;
744 } else {
745 com.google.protobuf.ByteString bs =
746 (com.google.protobuf.ByteString) ref;
747 java.lang.String s = bs.toStringUtf8();
748 solveLog_ = s;
749 return s;
750 }
751 }
761 @java.lang.Override
762 public com.google.protobuf.ByteString
764 java.lang.Object ref = solveLog_;
765 if (ref instanceof java.lang.String) {
766 com.google.protobuf.ByteString b =
767 com.google.protobuf.ByteString.copyFromUtf8(
768 (java.lang.String) ref);
769 solveLog_ = b;
770 return b;
771 } else {
772 return (com.google.protobuf.ByteString) ref;
773 }
774 }
775
776 private byte memoizedIsInitialized = -1;
777 @java.lang.Override
778 public final boolean isInitialized() {
779 byte isInitialized = memoizedIsInitialized;
780 if (isInitialized == 1) return true;
781 if (isInitialized == 0) return false;
782
783 memoizedIsInitialized = 1;
784 return true;
785 }
786
787 @java.lang.Override
788 public void writeTo(com.google.protobuf.CodedOutputStream output)
789 throws java.io.IOException {
791 if (status_ != com.google.ortools.sat.CpSolverStatus.UNKNOWN.getNumber()) {
792 output.writeEnum(1, status_);
793 }
794 if (getSolutionList().size() > 0) {
795 output.writeUInt32NoTag(18);
796 output.writeUInt32NoTag(solutionMemoizedSerializedSize);
797 }
798 for (int i = 0; i < solution_.size(); i++) {
799 output.writeInt64NoTag(solution_.getLong(i));
800 }
801 if (java.lang.Double.doubleToRawLongBits(objectiveValue_) != 0) {
802 output.writeDouble(3, objectiveValue_);
803 }
804 if (java.lang.Double.doubleToRawLongBits(bestObjectiveBound_) != 0) {
805 output.writeDouble(4, bestObjectiveBound_);
806 }
807 if (numBooleans_ != 0L) {
808 output.writeInt64(10, numBooleans_);
809 }
810 if (numConflicts_ != 0L) {
811 output.writeInt64(11, numConflicts_);
812 }
813 if (numBranches_ != 0L) {
814 output.writeInt64(12, numBranches_);
815 }
816 if (numBinaryPropagations_ != 0L) {
817 output.writeInt64(13, numBinaryPropagations_);
818 }
819 if (numIntegerPropagations_ != 0L) {
820 output.writeInt64(14, numIntegerPropagations_);
821 }
822 if (java.lang.Double.doubleToRawLongBits(wallTime_) != 0) {
823 output.writeDouble(15, wallTime_);
824 }
825 if (java.lang.Double.doubleToRawLongBits(userTime_) != 0) {
826 output.writeDouble(16, userTime_);
827 }
828 if (java.lang.Double.doubleToRawLongBits(deterministicTime_) != 0) {
829 output.writeDouble(17, deterministicTime_);
830 }
831 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(solutionInfo_)) {
832 com.google.protobuf.GeneratedMessageV3.writeString(output, 20, solutionInfo_);
833 }
834 for (int i = 0; i < tightenedVariables_.size(); i++) {
835 output.writeMessage(21, tightenedVariables_.get(i));
836 }
837 if (java.lang.Double.doubleToRawLongBits(gapIntegral_) != 0) {
838 output.writeDouble(22, gapIntegral_);
839 }
841 output.writeUInt32NoTag(186);
842 output.writeUInt32NoTag(sufficientAssumptionsForInfeasibilityMemoizedSerializedSize);
843 }
844 for (int i = 0; i < sufficientAssumptionsForInfeasibility_.size(); i++) {
845 output.writeInt32NoTag(sufficientAssumptionsForInfeasibility_.getInt(i));
846 }
847 if (numRestarts_ != 0L) {
848 output.writeInt64(24, numRestarts_);
849 }
850 if (numLpIterations_ != 0L) {
851 output.writeInt64(25, numLpIterations_);
852 }
853 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(solveLog_)) {
854 com.google.protobuf.GeneratedMessageV3.writeString(output, 26, solveLog_);
855 }
856 for (int i = 0; i < additionalSolutions_.size(); i++) {
857 output.writeMessage(27, additionalSolutions_.get(i));
858 }
859 if (((bitField0_ & 0x00000001) != 0)) {
860 output.writeMessage(28, getIntegerObjective());
861 }
862 if (innerObjectiveLowerBound_ != 0L) {
863 output.writeInt64(29, innerObjectiveLowerBound_);
864 }
865 if (numIntegers_ != 0L) {
866 output.writeInt64(30, numIntegers_);
867 }
868 getUnknownFields().writeTo(output);
869 }
870
871 @java.lang.Override
872 public int getSerializedSize() {
873 int size = memoizedSize;
874 if (size != -1) return size;
875
876 size = 0;
877 if (status_ != com.google.ortools.sat.CpSolverStatus.UNKNOWN.getNumber()) {
878 size += com.google.protobuf.CodedOutputStream
879 .computeEnumSize(1, status_);
880 }
881 {
882 int dataSize = 0;
883 for (int i = 0; i < solution_.size(); i++) {
884 dataSize += com.google.protobuf.CodedOutputStream
885 .computeInt64SizeNoTag(solution_.getLong(i));
886 }
887 size += dataSize;
888 if (!getSolutionList().isEmpty()) {
889 size += 1;
890 size += com.google.protobuf.CodedOutputStream
891 .computeInt32SizeNoTag(dataSize);
892 }
893 solutionMemoizedSerializedSize = dataSize;
894 }
895 if (java.lang.Double.doubleToRawLongBits(objectiveValue_) != 0) {
896 size += com.google.protobuf.CodedOutputStream
897 .computeDoubleSize(3, objectiveValue_);
898 }
899 if (java.lang.Double.doubleToRawLongBits(bestObjectiveBound_) != 0) {
900 size += com.google.protobuf.CodedOutputStream
901 .computeDoubleSize(4, bestObjectiveBound_);
902 }
903 if (numBooleans_ != 0L) {
904 size += com.google.protobuf.CodedOutputStream
905 .computeInt64Size(10, numBooleans_);
906 }
907 if (numConflicts_ != 0L) {
908 size += com.google.protobuf.CodedOutputStream
909 .computeInt64Size(11, numConflicts_);
910 }
911 if (numBranches_ != 0L) {
912 size += com.google.protobuf.CodedOutputStream
913 .computeInt64Size(12, numBranches_);
914 }
915 if (numBinaryPropagations_ != 0L) {
916 size += com.google.protobuf.CodedOutputStream
917 .computeInt64Size(13, numBinaryPropagations_);
918 }
919 if (numIntegerPropagations_ != 0L) {
920 size += com.google.protobuf.CodedOutputStream
921 .computeInt64Size(14, numIntegerPropagations_);
922 }
923 if (java.lang.Double.doubleToRawLongBits(wallTime_) != 0) {
924 size += com.google.protobuf.CodedOutputStream
925 .computeDoubleSize(15, wallTime_);
926 }
927 if (java.lang.Double.doubleToRawLongBits(userTime_) != 0) {
928 size += com.google.protobuf.CodedOutputStream
929 .computeDoubleSize(16, userTime_);
930 }
931 if (java.lang.Double.doubleToRawLongBits(deterministicTime_) != 0) {
932 size += com.google.protobuf.CodedOutputStream
933 .computeDoubleSize(17, deterministicTime_);
934 }
935 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(solutionInfo_)) {
936 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, solutionInfo_);
937 }
938 for (int i = 0; i < tightenedVariables_.size(); i++) {
939 size += com.google.protobuf.CodedOutputStream
940 .computeMessageSize(21, tightenedVariables_.get(i));
941 }
942 if (java.lang.Double.doubleToRawLongBits(gapIntegral_) != 0) {
943 size += com.google.protobuf.CodedOutputStream
944 .computeDoubleSize(22, gapIntegral_);
945 }
946 {
947 int dataSize = 0;
948 for (int i = 0; i < sufficientAssumptionsForInfeasibility_.size(); i++) {
949 dataSize += com.google.protobuf.CodedOutputStream
950 .computeInt32SizeNoTag(sufficientAssumptionsForInfeasibility_.getInt(i));
951 }
952 size += dataSize;
954 size += 2;
955 size += com.google.protobuf.CodedOutputStream
956 .computeInt32SizeNoTag(dataSize);
957 }
958 sufficientAssumptionsForInfeasibilityMemoizedSerializedSize = dataSize;
959 }
960 if (numRestarts_ != 0L) {
961 size += com.google.protobuf.CodedOutputStream
962 .computeInt64Size(24, numRestarts_);
963 }
964 if (numLpIterations_ != 0L) {
965 size += com.google.protobuf.CodedOutputStream
966 .computeInt64Size(25, numLpIterations_);
967 }
968 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(solveLog_)) {
969 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(26, solveLog_);
970 }
971 for (int i = 0; i < additionalSolutions_.size(); i++) {
972 size += com.google.protobuf.CodedOutputStream
973 .computeMessageSize(27, additionalSolutions_.get(i));
974 }
975 if (((bitField0_ & 0x00000001) != 0)) {
976 size += com.google.protobuf.CodedOutputStream
977 .computeMessageSize(28, getIntegerObjective());
978 }
979 if (innerObjectiveLowerBound_ != 0L) {
980 size += com.google.protobuf.CodedOutputStream
981 .computeInt64Size(29, innerObjectiveLowerBound_);
982 }
983 if (numIntegers_ != 0L) {
984 size += com.google.protobuf.CodedOutputStream
985 .computeInt64Size(30, numIntegers_);
986 }
987 size += getUnknownFields().getSerializedSize();
988 memoizedSize = size;
989 return size;
990 }
991
992 @java.lang.Override
993 public boolean equals(final java.lang.Object obj) {
994 if (obj == this) {
995 return true;
996 }
997 if (!(obj instanceof com.google.ortools.sat.CpSolverResponse)) {
998 return super.equals(obj);
999 }
1000 com.google.ortools.sat.CpSolverResponse other = (com.google.ortools.sat.CpSolverResponse) obj;
1001
1002 if (status_ != other.status_) return false;
1003 if (!getSolutionList()
1004 .equals(other.getSolutionList())) return false;
1005 if (java.lang.Double.doubleToLongBits(getObjectiveValue())
1006 != java.lang.Double.doubleToLongBits(
1007 other.getObjectiveValue())) return false;
1008 if (java.lang.Double.doubleToLongBits(getBestObjectiveBound())
1009 != java.lang.Double.doubleToLongBits(
1010 other.getBestObjectiveBound())) return false;
1012 .equals(other.getAdditionalSolutionsList())) return false;
1014 .equals(other.getTightenedVariablesList())) return false;
1016 .equals(other.getSufficientAssumptionsForInfeasibilityList())) return false;
1017 if (hasIntegerObjective() != other.hasIntegerObjective()) return false;
1018 if (hasIntegerObjective()) {
1019 if (!getIntegerObjective()
1020 .equals(other.getIntegerObjective())) return false;
1021 }
1023 != other.getInnerObjectiveLowerBound()) return false;
1024 if (getNumIntegers()
1025 != other.getNumIntegers()) return false;
1026 if (getNumBooleans()
1027 != other.getNumBooleans()) return false;
1028 if (getNumConflicts()
1029 != other.getNumConflicts()) return false;
1030 if (getNumBranches()
1031 != other.getNumBranches()) return false;
1033 != other.getNumBinaryPropagations()) return false;
1035 != other.getNumIntegerPropagations()) return false;
1036 if (getNumRestarts()
1037 != other.getNumRestarts()) return false;
1038 if (getNumLpIterations()
1039 != other.getNumLpIterations()) return false;
1040 if (java.lang.Double.doubleToLongBits(getWallTime())
1041 != java.lang.Double.doubleToLongBits(
1042 other.getWallTime())) return false;
1043 if (java.lang.Double.doubleToLongBits(getUserTime())
1044 != java.lang.Double.doubleToLongBits(
1045 other.getUserTime())) return false;
1046 if (java.lang.Double.doubleToLongBits(getDeterministicTime())
1047 != java.lang.Double.doubleToLongBits(
1048 other.getDeterministicTime())) return false;
1049 if (java.lang.Double.doubleToLongBits(getGapIntegral())
1050 != java.lang.Double.doubleToLongBits(
1051 other.getGapIntegral())) return false;
1052 if (!getSolutionInfo()
1053 .equals(other.getSolutionInfo())) return false;
1054 if (!getSolveLog()
1055 .equals(other.getSolveLog())) return false;
1056 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
1057 return true;
1058 }
1059
1060 @java.lang.Override
1061 public int hashCode() {
1062 if (memoizedHashCode != 0) {
1063 return memoizedHashCode;
1064 }
1065 int hash = 41;
1066 hash = (19 * hash) + getDescriptor().hashCode();
1067 hash = (37 * hash) + STATUS_FIELD_NUMBER;
1068 hash = (53 * hash) + status_;
1069 if (getSolutionCount() > 0) {
1070 hash = (37 * hash) + SOLUTION_FIELD_NUMBER;
1071 hash = (53 * hash) + getSolutionList().hashCode();
1072 }
1073 hash = (37 * hash) + OBJECTIVE_VALUE_FIELD_NUMBER;
1074 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1075 java.lang.Double.doubleToLongBits(getObjectiveValue()));
1076 hash = (37 * hash) + BEST_OBJECTIVE_BOUND_FIELD_NUMBER;
1077 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1078 java.lang.Double.doubleToLongBits(getBestObjectiveBound()));
1079 if (getAdditionalSolutionsCount() > 0) {
1080 hash = (37 * hash) + ADDITIONAL_SOLUTIONS_FIELD_NUMBER;
1081 hash = (53 * hash) + getAdditionalSolutionsList().hashCode();
1082 }
1083 if (getTightenedVariablesCount() > 0) {
1084 hash = (37 * hash) + TIGHTENED_VARIABLES_FIELD_NUMBER;
1085 hash = (53 * hash) + getTightenedVariablesList().hashCode();
1086 }
1089 hash = (53 * hash) + getSufficientAssumptionsForInfeasibilityList().hashCode();
1090 }
1091 if (hasIntegerObjective()) {
1092 hash = (37 * hash) + INTEGER_OBJECTIVE_FIELD_NUMBER;
1093 hash = (53 * hash) + getIntegerObjective().hashCode();
1094 }
1095 hash = (37 * hash) + INNER_OBJECTIVE_LOWER_BOUND_FIELD_NUMBER;
1096 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1098 hash = (37 * hash) + NUM_INTEGERS_FIELD_NUMBER;
1099 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1100 getNumIntegers());
1101 hash = (37 * hash) + NUM_BOOLEANS_FIELD_NUMBER;
1102 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1103 getNumBooleans());
1104 hash = (37 * hash) + NUM_CONFLICTS_FIELD_NUMBER;
1105 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1106 getNumConflicts());
1107 hash = (37 * hash) + NUM_BRANCHES_FIELD_NUMBER;
1108 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1109 getNumBranches());
1110 hash = (37 * hash) + NUM_BINARY_PROPAGATIONS_FIELD_NUMBER;
1111 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1113 hash = (37 * hash) + NUM_INTEGER_PROPAGATIONS_FIELD_NUMBER;
1114 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1116 hash = (37 * hash) + NUM_RESTARTS_FIELD_NUMBER;
1117 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1118 getNumRestarts());
1119 hash = (37 * hash) + NUM_LP_ITERATIONS_FIELD_NUMBER;
1120 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1122 hash = (37 * hash) + WALL_TIME_FIELD_NUMBER;
1123 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1124 java.lang.Double.doubleToLongBits(getWallTime()));
1125 hash = (37 * hash) + USER_TIME_FIELD_NUMBER;
1126 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1127 java.lang.Double.doubleToLongBits(getUserTime()));
1128 hash = (37 * hash) + DETERMINISTIC_TIME_FIELD_NUMBER;
1129 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1130 java.lang.Double.doubleToLongBits(getDeterministicTime()));
1131 hash = (37 * hash) + GAP_INTEGRAL_FIELD_NUMBER;
1132 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1133 java.lang.Double.doubleToLongBits(getGapIntegral()));
1134 hash = (37 * hash) + SOLUTION_INFO_FIELD_NUMBER;
1135 hash = (53 * hash) + getSolutionInfo().hashCode();
1136 hash = (37 * hash) + SOLVE_LOG_FIELD_NUMBER;
1137 hash = (53 * hash) + getSolveLog().hashCode();
1138 hash = (29 * hash) + getUnknownFields().hashCode();
1139 memoizedHashCode = hash;
1140 return hash;
1141 }
1142
1144 java.nio.ByteBuffer data)
1145 throws com.google.protobuf.InvalidProtocolBufferException {
1146 return PARSER.parseFrom(data);
1147 }
1149 java.nio.ByteBuffer data,
1150 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1151 throws com.google.protobuf.InvalidProtocolBufferException {
1152 return PARSER.parseFrom(data, extensionRegistry);
1153 }
1155 com.google.protobuf.ByteString data)
1156 throws com.google.protobuf.InvalidProtocolBufferException {
1157 return PARSER.parseFrom(data);
1158 }
1160 com.google.protobuf.ByteString data,
1161 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1162 throws com.google.protobuf.InvalidProtocolBufferException {
1163 return PARSER.parseFrom(data, extensionRegistry);
1164 }
1166 throws com.google.protobuf.InvalidProtocolBufferException {
1167 return PARSER.parseFrom(data);
1168 }
1170 byte[] data,
1171 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1172 throws com.google.protobuf.InvalidProtocolBufferException {
1173 return PARSER.parseFrom(data, extensionRegistry);
1174 }
1175 public static com.google.ortools.sat.CpSolverResponse parseFrom(java.io.InputStream input)
1176 throws java.io.IOException {
1177 return com.google.protobuf.GeneratedMessageV3
1178 .parseWithIOException(PARSER, input);
1179 }
1181 java.io.InputStream input,
1182 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1183 throws java.io.IOException {
1184 return com.google.protobuf.GeneratedMessageV3
1185 .parseWithIOException(PARSER, input, extensionRegistry);
1186 }
1187
1188 public static com.google.ortools.sat.CpSolverResponse parseDelimitedFrom(java.io.InputStream input)
1189 throws java.io.IOException {
1190 return com.google.protobuf.GeneratedMessageV3
1191 .parseDelimitedWithIOException(PARSER, input);
1192 }
1193
1195 java.io.InputStream input,
1196 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1197 throws java.io.IOException {
1198 return com.google.protobuf.GeneratedMessageV3
1199 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
1200 }
1202 com.google.protobuf.CodedInputStream input)
1203 throws java.io.IOException {
1204 return com.google.protobuf.GeneratedMessageV3
1205 .parseWithIOException(PARSER, input);
1206 }
1208 com.google.protobuf.CodedInputStream input,
1209 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1210 throws java.io.IOException {
1211 return com.google.protobuf.GeneratedMessageV3
1212 .parseWithIOException(PARSER, input, extensionRegistry);
1213 }
1214
1215 @java.lang.Override
1216 public Builder newBuilderForType() { return newBuilder(); }
1217 public static Builder newBuilder() {
1218 return DEFAULT_INSTANCE.toBuilder();
1219 }
1220 public static Builder newBuilder(com.google.ortools.sat.CpSolverResponse prototype) {
1221 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1222 }
1223 @java.lang.Override
1225 return this == DEFAULT_INSTANCE
1226 ? new Builder() : new Builder().mergeFrom(this);
1227 }
1228
1229 @java.lang.Override
1231 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1232 Builder builder = new Builder(parent);
1233 return builder;
1234 }
1244 public static final class Builder extends
1245 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
1246 // @@protoc_insertion_point(builder_implements:operations_research.sat.CpSolverResponse)
1247 com.google.ortools.sat.CpSolverResponseOrBuilder {
1248 public static final com.google.protobuf.Descriptors.Descriptor
1250 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_descriptor;
1251 }
1252
1253 @java.lang.Override
1254 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
1256 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_fieldAccessorTable
1257 .ensureFieldAccessorsInitialized(
1258 com.google.ortools.sat.CpSolverResponse.class, com.google.ortools.sat.CpSolverResponse.Builder.class);
1259 }
1260
1261 // Construct using com.google.ortools.sat.CpSolverResponse.newBuilder()
1262 private Builder() {
1263 maybeForceBuilderInitialization();
1264 }
1265
1266 private Builder(
1267 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1268 super(parent);
1269 maybeForceBuilderInitialization();
1270 }
1271 private void maybeForceBuilderInitialization() {
1272 if (com.google.protobuf.GeneratedMessageV3
1273 .alwaysUseFieldBuilders) {
1274 getAdditionalSolutionsFieldBuilder();
1275 getTightenedVariablesFieldBuilder();
1276 getIntegerObjectiveFieldBuilder();
1277 }
1278 }
1279 @java.lang.Override
1280 public Builder clear() {
1281 super.clear();
1282 bitField0_ = 0;
1283 status_ = 0;
1284 solution_ = emptyLongList();
1285 objectiveValue_ = 0D;
1286 bestObjectiveBound_ = 0D;
1287 if (additionalSolutionsBuilder_ == null) {
1288 additionalSolutions_ = java.util.Collections.emptyList();
1289 } else {
1290 additionalSolutions_ = null;
1291 additionalSolutionsBuilder_.clear();
1292 }
1293 bitField0_ = (bitField0_ & ~0x00000010);
1294 if (tightenedVariablesBuilder_ == null) {
1295 tightenedVariables_ = java.util.Collections.emptyList();
1296 } else {
1297 tightenedVariables_ = null;
1298 tightenedVariablesBuilder_.clear();
1299 }
1300 bitField0_ = (bitField0_ & ~0x00000020);
1301 sufficientAssumptionsForInfeasibility_ = emptyIntList();
1302 integerObjective_ = null;
1303 if (integerObjectiveBuilder_ != null) {
1304 integerObjectiveBuilder_.dispose();
1305 integerObjectiveBuilder_ = null;
1306 }
1307 innerObjectiveLowerBound_ = 0L;
1308 numIntegers_ = 0L;
1309 numBooleans_ = 0L;
1310 numConflicts_ = 0L;
1311 numBranches_ = 0L;
1312 numBinaryPropagations_ = 0L;
1313 numIntegerPropagations_ = 0L;
1314 numRestarts_ = 0L;
1315 numLpIterations_ = 0L;
1316 wallTime_ = 0D;
1317 userTime_ = 0D;
1318 deterministicTime_ = 0D;
1319 gapIntegral_ = 0D;
1320 solutionInfo_ = "";
1321 solveLog_ = "";
1322 return this;
1323 }
1324
1325 @java.lang.Override
1326 public com.google.protobuf.Descriptors.Descriptor
1328 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_descriptor;
1329 }
1330
1331 @java.lang.Override
1333 return com.google.ortools.sat.CpSolverResponse.getDefaultInstance();
1334 }
1335
1336 @java.lang.Override
1339 if (!result.isInitialized()) {
1340 throw newUninitializedMessageException(result);
1341 }
1342 return result;
1343 }
1344
1345 @java.lang.Override
1347 com.google.ortools.sat.CpSolverResponse result = new com.google.ortools.sat.CpSolverResponse(this);
1348 buildPartialRepeatedFields(result);
1349 if (bitField0_ != 0) { buildPartial0(result); }
1350 onBuilt();
1351 return result;
1352 }
1353
1354 private void buildPartialRepeatedFields(com.google.ortools.sat.CpSolverResponse result) {
1355 if (additionalSolutionsBuilder_ == null) {
1356 if (((bitField0_ & 0x00000010) != 0)) {
1357 additionalSolutions_ = java.util.Collections.unmodifiableList(additionalSolutions_);
1358 bitField0_ = (bitField0_ & ~0x00000010);
1359 }
1360 result.additionalSolutions_ = additionalSolutions_;
1361 } else {
1362 result.additionalSolutions_ = additionalSolutionsBuilder_.build();
1363 }
1364 if (tightenedVariablesBuilder_ == null) {
1365 if (((bitField0_ & 0x00000020) != 0)) {
1366 tightenedVariables_ = java.util.Collections.unmodifiableList(tightenedVariables_);
1367 bitField0_ = (bitField0_ & ~0x00000020);
1368 }
1369 result.tightenedVariables_ = tightenedVariables_;
1370 } else {
1371 result.tightenedVariables_ = tightenedVariablesBuilder_.build();
1372 }
1373 }
1374
1375 private void buildPartial0(com.google.ortools.sat.CpSolverResponse result) {
1376 int from_bitField0_ = bitField0_;
1377 if (((from_bitField0_ & 0x00000001) != 0)) {
1378 result.status_ = status_;
1379 }
1380 if (((from_bitField0_ & 0x00000002) != 0)) {
1381 solution_.makeImmutable();
1382 result.solution_ = solution_;
1383 }
1384 if (((from_bitField0_ & 0x00000004) != 0)) {
1385 result.objectiveValue_ = objectiveValue_;
1386 }
1387 if (((from_bitField0_ & 0x00000008) != 0)) {
1388 result.bestObjectiveBound_ = bestObjectiveBound_;
1389 }
1390 if (((from_bitField0_ & 0x00000040) != 0)) {
1391 sufficientAssumptionsForInfeasibility_.makeImmutable();
1392 result.sufficientAssumptionsForInfeasibility_ = sufficientAssumptionsForInfeasibility_;
1393 }
1394 int to_bitField0_ = 0;
1395 if (((from_bitField0_ & 0x00000080) != 0)) {
1396 result.integerObjective_ = integerObjectiveBuilder_ == null
1397 ? integerObjective_
1398 : integerObjectiveBuilder_.build();
1399 to_bitField0_ |= 0x00000001;
1400 }
1401 if (((from_bitField0_ & 0x00000100) != 0)) {
1402 result.innerObjectiveLowerBound_ = innerObjectiveLowerBound_;
1403 }
1404 if (((from_bitField0_ & 0x00000200) != 0)) {
1405 result.numIntegers_ = numIntegers_;
1406 }
1407 if (((from_bitField0_ & 0x00000400) != 0)) {
1408 result.numBooleans_ = numBooleans_;
1409 }
1410 if (((from_bitField0_ & 0x00000800) != 0)) {
1411 result.numConflicts_ = numConflicts_;
1412 }
1413 if (((from_bitField0_ & 0x00001000) != 0)) {
1414 result.numBranches_ = numBranches_;
1415 }
1416 if (((from_bitField0_ & 0x00002000) != 0)) {
1417 result.numBinaryPropagations_ = numBinaryPropagations_;
1418 }
1419 if (((from_bitField0_ & 0x00004000) != 0)) {
1420 result.numIntegerPropagations_ = numIntegerPropagations_;
1421 }
1422 if (((from_bitField0_ & 0x00008000) != 0)) {
1423 result.numRestarts_ = numRestarts_;
1424 }
1425 if (((from_bitField0_ & 0x00010000) != 0)) {
1426 result.numLpIterations_ = numLpIterations_;
1427 }
1428 if (((from_bitField0_ & 0x00020000) != 0)) {
1429 result.wallTime_ = wallTime_;
1430 }
1431 if (((from_bitField0_ & 0x00040000) != 0)) {
1432 result.userTime_ = userTime_;
1433 }
1434 if (((from_bitField0_ & 0x00080000) != 0)) {
1435 result.deterministicTime_ = deterministicTime_;
1436 }
1437 if (((from_bitField0_ & 0x00100000) != 0)) {
1438 result.gapIntegral_ = gapIntegral_;
1439 }
1440 if (((from_bitField0_ & 0x00200000) != 0)) {
1441 result.solutionInfo_ = solutionInfo_;
1442 }
1443 if (((from_bitField0_ & 0x00400000) != 0)) {
1444 result.solveLog_ = solveLog_;
1445 }
1446 result.bitField0_ |= to_bitField0_;
1447 }
1448
1449 @java.lang.Override
1450 public Builder clone() {
1451 return super.clone();
1452 }
1453 @java.lang.Override
1455 com.google.protobuf.Descriptors.FieldDescriptor field,
1456 java.lang.Object value) {
1457 return super.setField(field, value);
1458 }
1459 @java.lang.Override
1461 com.google.protobuf.Descriptors.FieldDescriptor field) {
1462 return super.clearField(field);
1463 }
1464 @java.lang.Override
1466 com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1467 return super.clearOneof(oneof);
1468 }
1469 @java.lang.Override
1471 com.google.protobuf.Descriptors.FieldDescriptor field,
1472 int index, java.lang.Object value) {
1473 return super.setRepeatedField(field, index, value);
1474 }
1475 @java.lang.Override
1477 com.google.protobuf.Descriptors.FieldDescriptor field,
1478 java.lang.Object value) {
1479 return super.addRepeatedField(field, value);
1480 }
1481 @java.lang.Override
1482 public Builder mergeFrom(com.google.protobuf.Message other) {
1483 if (other instanceof com.google.ortools.sat.CpSolverResponse) {
1484 return mergeFrom((com.google.ortools.sat.CpSolverResponse)other);
1485 } else {
1486 super.mergeFrom(other);
1487 return this;
1488 }
1489 }
1490
1491 public Builder mergeFrom(com.google.ortools.sat.CpSolverResponse other) {
1492 if (other == com.google.ortools.sat.CpSolverResponse.getDefaultInstance()) return this;
1493 if (other.status_ != 0) {
1494 setStatusValue(other.getStatusValue());
1495 }
1496 if (!other.solution_.isEmpty()) {
1497 if (solution_.isEmpty()) {
1498 solution_ = other.solution_;
1499 solution_.makeImmutable();
1500 bitField0_ |= 0x00000002;
1501 } else {
1502 ensureSolutionIsMutable();
1503 solution_.addAll(other.solution_);
1504 }
1505 onChanged();
1506 }
1507 if (other.getObjectiveValue() != 0D) {
1508 setObjectiveValue(other.getObjectiveValue());
1509 }
1510 if (other.getBestObjectiveBound() != 0D) {
1511 setBestObjectiveBound(other.getBestObjectiveBound());
1512 }
1513 if (additionalSolutionsBuilder_ == null) {
1514 if (!other.additionalSolutions_.isEmpty()) {
1515 if (additionalSolutions_.isEmpty()) {
1516 additionalSolutions_ = other.additionalSolutions_;
1517 bitField0_ = (bitField0_ & ~0x00000010);
1518 } else {
1519 ensureAdditionalSolutionsIsMutable();
1520 additionalSolutions_.addAll(other.additionalSolutions_);
1521 }
1522 onChanged();
1523 }
1524 } else {
1525 if (!other.additionalSolutions_.isEmpty()) {
1526 if (additionalSolutionsBuilder_.isEmpty()) {
1527 additionalSolutionsBuilder_.dispose();
1528 additionalSolutionsBuilder_ = null;
1529 additionalSolutions_ = other.additionalSolutions_;
1530 bitField0_ = (bitField0_ & ~0x00000010);
1531 additionalSolutionsBuilder_ =
1532 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
1533 getAdditionalSolutionsFieldBuilder() : null;
1534 } else {
1535 additionalSolutionsBuilder_.addAllMessages(other.additionalSolutions_);
1536 }
1537 }
1538 }
1539 if (tightenedVariablesBuilder_ == null) {
1540 if (!other.tightenedVariables_.isEmpty()) {
1541 if (tightenedVariables_.isEmpty()) {
1542 tightenedVariables_ = other.tightenedVariables_;
1543 bitField0_ = (bitField0_ & ~0x00000020);
1544 } else {
1545 ensureTightenedVariablesIsMutable();
1546 tightenedVariables_.addAll(other.tightenedVariables_);
1547 }
1548 onChanged();
1549 }
1550 } else {
1551 if (!other.tightenedVariables_.isEmpty()) {
1552 if (tightenedVariablesBuilder_.isEmpty()) {
1553 tightenedVariablesBuilder_.dispose();
1554 tightenedVariablesBuilder_ = null;
1555 tightenedVariables_ = other.tightenedVariables_;
1556 bitField0_ = (bitField0_ & ~0x00000020);
1557 tightenedVariablesBuilder_ =
1558 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
1559 getTightenedVariablesFieldBuilder() : null;
1560 } else {
1561 tightenedVariablesBuilder_.addAllMessages(other.tightenedVariables_);
1562 }
1563 }
1564 }
1565 if (!other.sufficientAssumptionsForInfeasibility_.isEmpty()) {
1566 if (sufficientAssumptionsForInfeasibility_.isEmpty()) {
1567 sufficientAssumptionsForInfeasibility_ = other.sufficientAssumptionsForInfeasibility_;
1568 sufficientAssumptionsForInfeasibility_.makeImmutable();
1569 bitField0_ |= 0x00000040;
1570 } else {
1571 ensureSufficientAssumptionsForInfeasibilityIsMutable();
1572 sufficientAssumptionsForInfeasibility_.addAll(other.sufficientAssumptionsForInfeasibility_);
1573 }
1574 onChanged();
1575 }
1576 if (other.hasIntegerObjective()) {
1577 mergeIntegerObjective(other.getIntegerObjective());
1578 }
1579 if (other.getInnerObjectiveLowerBound() != 0L) {
1580 setInnerObjectiveLowerBound(other.getInnerObjectiveLowerBound());
1581 }
1582 if (other.getNumIntegers() != 0L) {
1583 setNumIntegers(other.getNumIntegers());
1584 }
1585 if (other.getNumBooleans() != 0L) {
1586 setNumBooleans(other.getNumBooleans());
1587 }
1588 if (other.getNumConflicts() != 0L) {
1589 setNumConflicts(other.getNumConflicts());
1590 }
1591 if (other.getNumBranches() != 0L) {
1592 setNumBranches(other.getNumBranches());
1593 }
1594 if (other.getNumBinaryPropagations() != 0L) {
1595 setNumBinaryPropagations(other.getNumBinaryPropagations());
1596 }
1597 if (other.getNumIntegerPropagations() != 0L) {
1598 setNumIntegerPropagations(other.getNumIntegerPropagations());
1599 }
1600 if (other.getNumRestarts() != 0L) {
1601 setNumRestarts(other.getNumRestarts());
1602 }
1603 if (other.getNumLpIterations() != 0L) {
1604 setNumLpIterations(other.getNumLpIterations());
1605 }
1606 if (other.getWallTime() != 0D) {
1607 setWallTime(other.getWallTime());
1608 }
1609 if (other.getUserTime() != 0D) {
1610 setUserTime(other.getUserTime());
1611 }
1612 if (other.getDeterministicTime() != 0D) {
1613 setDeterministicTime(other.getDeterministicTime());
1614 }
1615 if (other.getGapIntegral() != 0D) {
1616 setGapIntegral(other.getGapIntegral());
1617 }
1618 if (!other.getSolutionInfo().isEmpty()) {
1619 solutionInfo_ = other.solutionInfo_;
1620 bitField0_ |= 0x00200000;
1621 onChanged();
1622 }
1623 if (!other.getSolveLog().isEmpty()) {
1624 solveLog_ = other.solveLog_;
1625 bitField0_ |= 0x00400000;
1626 onChanged();
1627 }
1628 this.mergeUnknownFields(other.getUnknownFields());
1629 onChanged();
1630 return this;
1631 }
1632
1633 @java.lang.Override
1634 public final boolean isInitialized() {
1635 return true;
1636 }
1637
1638 @java.lang.Override
1640 com.google.protobuf.CodedInputStream input,
1641 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1642 throws java.io.IOException {
1643 if (extensionRegistry == null) {
1644 throw new java.lang.NullPointerException();
1645 }
1646 try {
1647 boolean done = false;
1648 while (!done) {
1649 int tag = input.readTag();
1650 switch (tag) {
1651 case 0:
1652 done = true;
1653 break;
1654 case 8: {
1655 status_ = input.readEnum();
1656 bitField0_ |= 0x00000001;
1657 break;
1658 } // case 8
1659 case 16: {
1660 long v = input.readInt64();
1661 ensureSolutionIsMutable();
1662 solution_.addLong(v);
1663 break;
1664 } // case 16
1665 case 18: {
1666 int length = input.readRawVarint32();
1667 int limit = input.pushLimit(length);
1668 ensureSolutionIsMutable();
1669 while (input.getBytesUntilLimit() > 0) {
1670 solution_.addLong(input.readInt64());
1671 }
1672 input.popLimit(limit);
1673 break;
1674 } // case 18
1675 case 25: {
1676 objectiveValue_ = input.readDouble();
1677 bitField0_ |= 0x00000004;
1678 break;
1679 } // case 25
1680 case 33: {
1681 bestObjectiveBound_ = input.readDouble();
1682 bitField0_ |= 0x00000008;
1683 break;
1684 } // case 33
1685 case 80: {
1686 numBooleans_ = input.readInt64();
1687 bitField0_ |= 0x00000400;
1688 break;
1689 } // case 80
1690 case 88: {
1691 numConflicts_ = input.readInt64();
1692 bitField0_ |= 0x00000800;
1693 break;
1694 } // case 88
1695 case 96: {
1696 numBranches_ = input.readInt64();
1697 bitField0_ |= 0x00001000;
1698 break;
1699 } // case 96
1700 case 104: {
1701 numBinaryPropagations_ = input.readInt64();
1702 bitField0_ |= 0x00002000;
1703 break;
1704 } // case 104
1705 case 112: {
1706 numIntegerPropagations_ = input.readInt64();
1707 bitField0_ |= 0x00004000;
1708 break;
1709 } // case 112
1710 case 121: {
1711 wallTime_ = input.readDouble();
1712 bitField0_ |= 0x00020000;
1713 break;
1714 } // case 121
1715 case 129: {
1716 userTime_ = input.readDouble();
1717 bitField0_ |= 0x00040000;
1718 break;
1719 } // case 129
1720 case 137: {
1721 deterministicTime_ = input.readDouble();
1722 bitField0_ |= 0x00080000;
1723 break;
1724 } // case 137
1725 case 162: {
1726 solutionInfo_ = input.readStringRequireUtf8();
1727 bitField0_ |= 0x00200000;
1728 break;
1729 } // case 162
1730 case 170: {
1732 input.readMessage(
1733 com.google.ortools.sat.IntegerVariableProto.parser(),
1734 extensionRegistry);
1735 if (tightenedVariablesBuilder_ == null) {
1736 ensureTightenedVariablesIsMutable();
1737 tightenedVariables_.add(m);
1738 } else {
1739 tightenedVariablesBuilder_.addMessage(m);
1740 }
1741 break;
1742 } // case 170
1743 case 177: {
1744 gapIntegral_ = input.readDouble();
1745 bitField0_ |= 0x00100000;
1746 break;
1747 } // case 177
1748 case 184: {
1749 int v = input.readInt32();
1750 ensureSufficientAssumptionsForInfeasibilityIsMutable();
1751 sufficientAssumptionsForInfeasibility_.addInt(v);
1752 break;
1753 } // case 184
1754 case 186: {
1755 int length = input.readRawVarint32();
1756 int limit = input.pushLimit(length);
1757 ensureSufficientAssumptionsForInfeasibilityIsMutable();
1758 while (input.getBytesUntilLimit() > 0) {
1759 sufficientAssumptionsForInfeasibility_.addInt(input.readInt32());
1760 }
1761 input.popLimit(limit);
1762 break;
1763 } // case 186
1764 case 192: {
1765 numRestarts_ = input.readInt64();
1766 bitField0_ |= 0x00008000;
1767 break;
1768 } // case 192
1769 case 200: {
1770 numLpIterations_ = input.readInt64();
1771 bitField0_ |= 0x00010000;
1772 break;
1773 } // case 200
1774 case 210: {
1775 solveLog_ = input.readStringRequireUtf8();
1776 bitField0_ |= 0x00400000;
1777 break;
1778 } // case 210
1779 case 218: {
1781 input.readMessage(
1782 com.google.ortools.sat.CpSolverSolution.parser(),
1783 extensionRegistry);
1784 if (additionalSolutionsBuilder_ == null) {
1785 ensureAdditionalSolutionsIsMutable();
1786 additionalSolutions_.add(m);
1787 } else {
1788 additionalSolutionsBuilder_.addMessage(m);
1789 }
1790 break;
1791 } // case 218
1792 case 226: {
1793 input.readMessage(
1794 getIntegerObjectiveFieldBuilder().getBuilder(),
1795 extensionRegistry);
1796 bitField0_ |= 0x00000080;
1797 break;
1798 } // case 226
1799 case 232: {
1800 innerObjectiveLowerBound_ = input.readInt64();
1801 bitField0_ |= 0x00000100;
1802 break;
1803 } // case 232
1804 case 240: {
1805 numIntegers_ = input.readInt64();
1806 bitField0_ |= 0x00000200;
1807 break;
1808 } // case 240
1809 default: {
1810 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1811 done = true; // was an endgroup tag
1812 }
1813 break;
1814 } // default:
1815 } // switch (tag)
1816 } // while (!done)
1817 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1818 throw e.unwrapIOException();
1819 } finally {
1820 onChanged();
1821 } // finally
1822 return this;
1823 }
1824 private int bitField0_;
1825
1826 private int status_ = 0;
1835 @java.lang.Override public int getStatusValue() {
1836 return status_;
1837 }
1847 public Builder setStatusValue(int value) {
1848 status_ = value;
1849 bitField0_ |= 0x00000001;
1850 onChanged();
1851 return this;
1852 }
1861 @java.lang.Override
1863 com.google.ortools.sat.CpSolverStatus result = com.google.ortools.sat.CpSolverStatus.forNumber(status_);
1864 return result == null ? com.google.ortools.sat.CpSolverStatus.UNRECOGNIZED : result;
1865 }
1875 public Builder setStatus(com.google.ortools.sat.CpSolverStatus value) {
1876 if (value == null) {
1877 throw new NullPointerException();
1878 }
1879 bitField0_ |= 0x00000001;
1880 status_ = value.getNumber();
1881 onChanged();
1882 return this;
1883 }
1893 bitField0_ = (bitField0_ & ~0x00000001);
1894 status_ = 0;
1895 onChanged();
1896 return this;
1897 }
1898
1899 private com.google.protobuf.Internal.LongList solution_ = emptyLongList();
1900 private void ensureSolutionIsMutable() {
1901 if (!solution_.isModifiable()) {
1902 solution_ = makeMutableCopy(solution_);
1903 }
1904 bitField0_ |= 0x00000002;
1905 }
1917 public java.util.List<java.lang.Long>
1919 solution_.makeImmutable();
1920 return solution_;
1921 }
1933 public int getSolutionCount() {
1934 return solution_.size();
1935 }
1948 public long getSolution(int index) {
1949 return solution_.getLong(index);
1950 }
1965 int index, long value) {
1966
1967 ensureSolutionIsMutable();
1968 solution_.setLong(index, value);
1969 bitField0_ |= 0x00000002;
1970 onChanged();
1971 return this;
1972 }
1985 public Builder addSolution(long value) {
1986
1987 ensureSolutionIsMutable();
1988 solution_.addLong(value);
1989 bitField0_ |= 0x00000002;
1990 onChanged();
1991 return this;
1992 }
2006 java.lang.Iterable<? extends java.lang.Long> values) {
2007 ensureSolutionIsMutable();
2008 com.google.protobuf.AbstractMessageLite.Builder.addAll(
2009 values, solution_);
2010 bitField0_ |= 0x00000002;
2011 onChanged();
2012 return this;
2013 }
2026 solution_ = emptyLongList();
2027 bitField0_ = (bitField0_ & ~0x00000002);
2028 onChanged();
2029 return this;
2030 }
2031
2032 private double objectiveValue_ ;
2044 @java.lang.Override
2045 public double getObjectiveValue() {
2046 return objectiveValue_;
2047 }
2060 public Builder setObjectiveValue(double value) {
2061
2062 objectiveValue_ = value;
2063 bitField0_ |= 0x00000004;
2064 onChanged();
2065 return this;
2066 }
2079 bitField0_ = (bitField0_ & ~0x00000004);
2080 objectiveValue_ = 0D;
2081 onChanged();
2082 return this;
2083 }
2084
2085 private double bestObjectiveBound_ ;
2096 @java.lang.Override
2097 public double getBestObjectiveBound() {
2098 return bestObjectiveBound_;
2099 }
2111 public Builder setBestObjectiveBound(double value) {
2112
2113 bestObjectiveBound_ = value;
2114 bitField0_ |= 0x00000008;
2115 onChanged();
2116 return this;
2117 }
2129 bitField0_ = (bitField0_ & ~0x00000008);
2130 bestObjectiveBound_ = 0D;
2131 onChanged();
2132 return this;
2133 }
2134
2135 private java.util.List<com.google.ortools.sat.CpSolverSolution> additionalSolutions_ =
2136 java.util.Collections.emptyList();
2137 private void ensureAdditionalSolutionsIsMutable() {
2138 if (!((bitField0_ & 0x00000010) != 0)) {
2139 additionalSolutions_ = new java.util.ArrayList<com.google.ortools.sat.CpSolverSolution>(additionalSolutions_);
2140 bitField0_ |= 0x00000010;
2141 }
2142 }
2143
2144 private com.google.protobuf.RepeatedFieldBuilderV3<
2145 com.google.ortools.sat.CpSolverSolution, com.google.ortools.sat.CpSolverSolution.Builder, com.google.ortools.sat.CpSolverSolutionOrBuilder> additionalSolutionsBuilder_;
2146
2159 public java.util.List<com.google.ortools.sat.CpSolverSolution> getAdditionalSolutionsList() {
2160 if (additionalSolutionsBuilder_ == null) {
2161 return java.util.Collections.unmodifiableList(additionalSolutions_);
2162 } else {
2163 return additionalSolutionsBuilder_.getMessageList();
2164 }
2165 }
2179 if (additionalSolutionsBuilder_ == null) {
2180 return additionalSolutions_.size();
2181 } else {
2182 return additionalSolutionsBuilder_.getCount();
2183 }
2184 }
2198 if (additionalSolutionsBuilder_ == null) {
2199 return additionalSolutions_.get(index);
2200 } else {
2201 return additionalSolutionsBuilder_.getMessage(index);
2202 }
2203 }
2217 int index, com.google.ortools.sat.CpSolverSolution value) {
2218 if (additionalSolutionsBuilder_ == null) {
2219 if (value == null) {
2220 throw new NullPointerException();
2221 }
2222 ensureAdditionalSolutionsIsMutable();
2223 additionalSolutions_.set(index, value);
2224 onChanged();
2225 } else {
2226 additionalSolutionsBuilder_.setMessage(index, value);
2227 }
2228 return this;
2229 }
2243 int index, com.google.ortools.sat.CpSolverSolution.Builder builderForValue) {
2244 if (additionalSolutionsBuilder_ == null) {
2245 ensureAdditionalSolutionsIsMutable();
2246 additionalSolutions_.set(index, builderForValue.build());
2247 onChanged();
2248 } else {
2249 additionalSolutionsBuilder_.setMessage(index, builderForValue.build());
2250 }
2251 return this;
2252 }
2265 public Builder addAdditionalSolutions(com.google.ortools.sat.CpSolverSolution value) {
2266 if (additionalSolutionsBuilder_ == null) {
2267 if (value == null) {
2268 throw new NullPointerException();
2269 }
2270 ensureAdditionalSolutionsIsMutable();
2271 additionalSolutions_.add(value);
2272 onChanged();
2273 } else {
2274 additionalSolutionsBuilder_.addMessage(value);
2275 }
2276 return this;
2277 }
2291 int index, com.google.ortools.sat.CpSolverSolution value) {
2292 if (additionalSolutionsBuilder_ == null) {
2293 if (value == null) {
2294 throw new NullPointerException();
2295 }
2296 ensureAdditionalSolutionsIsMutable();
2297 additionalSolutions_.add(index, value);
2298 onChanged();
2299 } else {
2300 additionalSolutionsBuilder_.addMessage(index, value);
2301 }
2302 return this;
2303 }
2317 com.google.ortools.sat.CpSolverSolution.Builder builderForValue) {
2318 if (additionalSolutionsBuilder_ == null) {
2319 ensureAdditionalSolutionsIsMutable();
2320 additionalSolutions_.add(builderForValue.build());
2321 onChanged();
2322 } else {
2323 additionalSolutionsBuilder_.addMessage(builderForValue.build());
2324 }
2325 return this;
2326 }
2340 int index, com.google.ortools.sat.CpSolverSolution.Builder builderForValue) {
2341 if (additionalSolutionsBuilder_ == null) {
2342 ensureAdditionalSolutionsIsMutable();
2343 additionalSolutions_.add(index, builderForValue.build());
2344 onChanged();
2345 } else {
2346 additionalSolutionsBuilder_.addMessage(index, builderForValue.build());
2347 }
2348 return this;
2349 }
2363 java.lang.Iterable<? extends com.google.ortools.sat.CpSolverSolution> values) {
2364 if (additionalSolutionsBuilder_ == null) {
2365 ensureAdditionalSolutionsIsMutable();
2366 com.google.protobuf.AbstractMessageLite.Builder.addAll(
2367 values, additionalSolutions_);
2368 onChanged();
2369 } else {
2370 additionalSolutionsBuilder_.addAllMessages(values);
2371 }
2372 return this;
2373 }
2387 if (additionalSolutionsBuilder_ == null) {
2388 additionalSolutions_ = java.util.Collections.emptyList();
2389 bitField0_ = (bitField0_ & ~0x00000010);
2390 onChanged();
2391 } else {
2392 additionalSolutionsBuilder_.clear();
2393 }
2394 return this;
2395 }
2409 if (additionalSolutionsBuilder_ == null) {
2410 ensureAdditionalSolutionsIsMutable();
2411 additionalSolutions_.remove(index);
2412 onChanged();
2413 } else {
2414 additionalSolutionsBuilder_.remove(index);
2415 }
2416 return this;
2417 }
2431 int index) {
2432 return getAdditionalSolutionsFieldBuilder().getBuilder(index);
2433 }
2447 int index) {
2448 if (additionalSolutionsBuilder_ == null) {
2449 return additionalSolutions_.get(index); } else {
2450 return additionalSolutionsBuilder_.getMessageOrBuilder(index);
2451 }
2452 }
2465 public java.util.List<? extends com.google.ortools.sat.CpSolverSolutionOrBuilder>
2467 if (additionalSolutionsBuilder_ != null) {
2468 return additionalSolutionsBuilder_.getMessageOrBuilderList();
2469 } else {
2470 return java.util.Collections.unmodifiableList(additionalSolutions_);
2471 }
2472 }
2486 return getAdditionalSolutionsFieldBuilder().addBuilder(
2487 com.google.ortools.sat.CpSolverSolution.getDefaultInstance());
2488 }
2502 int index) {
2503 return getAdditionalSolutionsFieldBuilder().addBuilder(
2504 index, com.google.ortools.sat.CpSolverSolution.getDefaultInstance());
2505 }
2518 public java.util.List<com.google.ortools.sat.CpSolverSolution.Builder>
2520 return getAdditionalSolutionsFieldBuilder().getBuilderList();
2521 }
2522 private com.google.protobuf.RepeatedFieldBuilderV3<
2523 com.google.ortools.sat.CpSolverSolution, com.google.ortools.sat.CpSolverSolution.Builder, com.google.ortools.sat.CpSolverSolutionOrBuilder>
2524 getAdditionalSolutionsFieldBuilder() {
2525 if (additionalSolutionsBuilder_ == null) {
2526 additionalSolutionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
2527 com.google.ortools.sat.CpSolverSolution, com.google.ortools.sat.CpSolverSolution.Builder, com.google.ortools.sat.CpSolverSolutionOrBuilder>(
2528 additionalSolutions_,
2529 ((bitField0_ & 0x00000010) != 0),
2530 getParentForChildren(),
2531 isClean());
2532 additionalSolutions_ = null;
2533 }
2534 return additionalSolutionsBuilder_;
2535 }
2536
2537 private java.util.List<com.google.ortools.sat.IntegerVariableProto> tightenedVariables_ =
2538 java.util.Collections.emptyList();
2539 private void ensureTightenedVariablesIsMutable() {
2540 if (!((bitField0_ & 0x00000020) != 0)) {
2541 tightenedVariables_ = new java.util.ArrayList<com.google.ortools.sat.IntegerVariableProto>(tightenedVariables_);
2542 bitField0_ |= 0x00000020;
2543 }
2544 }
2545
2546 private com.google.protobuf.RepeatedFieldBuilderV3<
2547 com.google.ortools.sat.IntegerVariableProto, com.google.ortools.sat.IntegerVariableProto.Builder, com.google.ortools.sat.IntegerVariableProtoOrBuilder> tightenedVariablesBuilder_;
2548
2567 public java.util.List<com.google.ortools.sat.IntegerVariableProto> getTightenedVariablesList() {
2568 if (tightenedVariablesBuilder_ == null) {
2569 return java.util.Collections.unmodifiableList(tightenedVariables_);
2570 } else {
2571 return tightenedVariablesBuilder_.getMessageList();
2572 }
2573 }
2593 if (tightenedVariablesBuilder_ == null) {
2594 return tightenedVariables_.size();
2595 } else {
2596 return tightenedVariablesBuilder_.getCount();
2597 }
2598 }
2618 if (tightenedVariablesBuilder_ == null) {
2619 return tightenedVariables_.get(index);
2620 } else {
2621 return tightenedVariablesBuilder_.getMessage(index);
2622 }
2623 }
2643 int index, com.google.ortools.sat.IntegerVariableProto value) {
2644 if (tightenedVariablesBuilder_ == null) {
2645 if (value == null) {
2646 throw new NullPointerException();
2647 }
2648 ensureTightenedVariablesIsMutable();
2649 tightenedVariables_.set(index, value);
2650 onChanged();
2651 } else {
2652 tightenedVariablesBuilder_.setMessage(index, value);
2653 }
2654 return this;
2655 }
2675 int index, com.google.ortools.sat.IntegerVariableProto.Builder builderForValue) {
2676 if (tightenedVariablesBuilder_ == null) {
2677 ensureTightenedVariablesIsMutable();
2678 tightenedVariables_.set(index, builderForValue.build());
2679 onChanged();
2680 } else {
2681 tightenedVariablesBuilder_.setMessage(index, builderForValue.build());
2682 }
2683 return this;
2684 }
2703 public Builder addTightenedVariables(com.google.ortools.sat.IntegerVariableProto value) {
2704 if (tightenedVariablesBuilder_ == null) {
2705 if (value == null) {
2706 throw new NullPointerException();
2707 }
2708 ensureTightenedVariablesIsMutable();
2709 tightenedVariables_.add(value);
2710 onChanged();
2711 } else {
2712 tightenedVariablesBuilder_.addMessage(value);
2713 }
2714 return this;
2715 }
2735 int index, com.google.ortools.sat.IntegerVariableProto value) {
2736 if (tightenedVariablesBuilder_ == null) {
2737 if (value == null) {
2738 throw new NullPointerException();
2739 }
2740 ensureTightenedVariablesIsMutable();
2741 tightenedVariables_.add(index, value);
2742 onChanged();
2743 } else {
2744 tightenedVariablesBuilder_.addMessage(index, value);
2745 }
2746 return this;
2747 }
2767 com.google.ortools.sat.IntegerVariableProto.Builder builderForValue) {
2768 if (tightenedVariablesBuilder_ == null) {
2769 ensureTightenedVariablesIsMutable();
2770 tightenedVariables_.add(builderForValue.build());
2771 onChanged();
2772 } else {
2773 tightenedVariablesBuilder_.addMessage(builderForValue.build());
2774 }
2775 return this;
2776 }
2796 int index, com.google.ortools.sat.IntegerVariableProto.Builder builderForValue) {
2797 if (tightenedVariablesBuilder_ == null) {
2798 ensureTightenedVariablesIsMutable();
2799 tightenedVariables_.add(index, builderForValue.build());
2800 onChanged();
2801 } else {
2802 tightenedVariablesBuilder_.addMessage(index, builderForValue.build());
2803 }
2804 return this;
2805 }
2825 java.lang.Iterable<? extends com.google.ortools.sat.IntegerVariableProto> values) {
2826 if (tightenedVariablesBuilder_ == null) {
2827 ensureTightenedVariablesIsMutable();
2828 com.google.protobuf.AbstractMessageLite.Builder.addAll(
2829 values, tightenedVariables_);
2830 onChanged();
2831 } else {
2832 tightenedVariablesBuilder_.addAllMessages(values);
2833 }
2834 return this;
2835 }
2855 if (tightenedVariablesBuilder_ == null) {
2856 tightenedVariables_ = java.util.Collections.emptyList();
2857 bitField0_ = (bitField0_ & ~0x00000020);
2858 onChanged();
2859 } else {
2860 tightenedVariablesBuilder_.clear();
2861 }
2862 return this;
2863 }
2883 if (tightenedVariablesBuilder_ == null) {
2884 ensureTightenedVariablesIsMutable();
2885 tightenedVariables_.remove(index);
2886 onChanged();
2887 } else {
2888 tightenedVariablesBuilder_.remove(index);
2889 }
2890 return this;
2891 }
2911 int index) {
2912 return getTightenedVariablesFieldBuilder().getBuilder(index);
2913 }
2933 int index) {
2934 if (tightenedVariablesBuilder_ == null) {
2935 return tightenedVariables_.get(index); } else {
2936 return tightenedVariablesBuilder_.getMessageOrBuilder(index);
2937 }
2938 }
2957 public java.util.List<? extends com.google.ortools.sat.IntegerVariableProtoOrBuilder>
2959 if (tightenedVariablesBuilder_ != null) {
2960 return tightenedVariablesBuilder_.getMessageOrBuilderList();
2961 } else {
2962 return java.util.Collections.unmodifiableList(tightenedVariables_);
2963 }
2964 }
2984 return getTightenedVariablesFieldBuilder().addBuilder(
2985 com.google.ortools.sat.IntegerVariableProto.getDefaultInstance());
2986 }
3006 int index) {
3007 return getTightenedVariablesFieldBuilder().addBuilder(
3008 index, com.google.ortools.sat.IntegerVariableProto.getDefaultInstance());
3009 }
3028 public java.util.List<com.google.ortools.sat.IntegerVariableProto.Builder>
3030 return getTightenedVariablesFieldBuilder().getBuilderList();
3031 }
3032 private com.google.protobuf.RepeatedFieldBuilderV3<
3033 com.google.ortools.sat.IntegerVariableProto, com.google.ortools.sat.IntegerVariableProto.Builder, com.google.ortools.sat.IntegerVariableProtoOrBuilder>
3034 getTightenedVariablesFieldBuilder() {
3035 if (tightenedVariablesBuilder_ == null) {
3036 tightenedVariablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
3037 com.google.ortools.sat.IntegerVariableProto, com.google.ortools.sat.IntegerVariableProto.Builder, com.google.ortools.sat.IntegerVariableProtoOrBuilder>(
3038 tightenedVariables_,
3039 ((bitField0_ & 0x00000020) != 0),
3040 getParentForChildren(),
3041 isClean());
3042 tightenedVariables_ = null;
3043 }
3044 return tightenedVariablesBuilder_;
3045 }
3046
3047 private com.google.protobuf.Internal.IntList sufficientAssumptionsForInfeasibility_ = emptyIntList();
3048 private void ensureSufficientAssumptionsForInfeasibilityIsMutable() {
3049 if (!sufficientAssumptionsForInfeasibility_.isModifiable()) {
3050 sufficientAssumptionsForInfeasibility_ = makeMutableCopy(sufficientAssumptionsForInfeasibility_);
3051 }
3052 bitField0_ |= 0x00000040;
3053 }
3080 public java.util.List<java.lang.Integer>
3082 sufficientAssumptionsForInfeasibility_.makeImmutable();
3083 return sufficientAssumptionsForInfeasibility_;
3084 }
3112 return sufficientAssumptionsForInfeasibility_.size();
3113 }
3142 return sufficientAssumptionsForInfeasibility_.getInt(index);
3143 }
3173 int index, int value) {
3174
3175 ensureSufficientAssumptionsForInfeasibilityIsMutable();
3176 sufficientAssumptionsForInfeasibility_.setInt(index, value);
3177 bitField0_ |= 0x00000040;
3178 onChanged();
3179 return this;
3180 }
3209
3210 ensureSufficientAssumptionsForInfeasibilityIsMutable();
3211 sufficientAssumptionsForInfeasibility_.addInt(value);
3212 bitField0_ |= 0x00000040;
3213 onChanged();
3214 return this;
3215 }
3244 java.lang.Iterable<? extends java.lang.Integer> values) {
3245 ensureSufficientAssumptionsForInfeasibilityIsMutable();
3246 com.google.protobuf.AbstractMessageLite.Builder.addAll(
3247 values, sufficientAssumptionsForInfeasibility_);
3248 bitField0_ |= 0x00000040;
3249 onChanged();
3250 return this;
3251 }
3279 sufficientAssumptionsForInfeasibility_ = emptyIntList();
3280 bitField0_ = (bitField0_ & ~0x00000040);
3281 onChanged();
3282 return this;
3283 }
3284
3285 private com.google.ortools.sat.CpObjectiveProto integerObjective_;
3286 private com.google.protobuf.SingleFieldBuilderV3<
3287 com.google.ortools.sat.CpObjectiveProto, com.google.ortools.sat.CpObjectiveProto.Builder, com.google.ortools.sat.CpObjectiveProtoOrBuilder> integerObjectiveBuilder_;
3298 public boolean hasIntegerObjective() {
3299 return ((bitField0_ & 0x00000080) != 0);
3300 }
3312 if (integerObjectiveBuilder_ == null) {
3313 return integerObjective_ == null ? com.google.ortools.sat.CpObjectiveProto.getDefaultInstance() : integerObjective_;
3314 } else {
3315 return integerObjectiveBuilder_.getMessage();
3316 }
3317 }
3327 public Builder setIntegerObjective(com.google.ortools.sat.CpObjectiveProto value) {
3328 if (integerObjectiveBuilder_ == null) {
3329 if (value == null) {
3330 throw new NullPointerException();
3331 }
3332 integerObjective_ = value;
3333 } else {
3334 integerObjectiveBuilder_.setMessage(value);
3335 }
3336 bitField0_ |= 0x00000080;
3337 onChanged();
3338 return this;
3339 }
3350 com.google.ortools.sat.CpObjectiveProto.Builder builderForValue) {
3351 if (integerObjectiveBuilder_ == null) {
3352 integerObjective_ = builderForValue.build();
3353 } else {
3354 integerObjectiveBuilder_.setMessage(builderForValue.build());
3355 }
3356 bitField0_ |= 0x00000080;
3357 onChanged();
3358 return this;
3359 }
3369 public Builder mergeIntegerObjective(com.google.ortools.sat.CpObjectiveProto value) {
3370 if (integerObjectiveBuilder_ == null) {
3371 if (((bitField0_ & 0x00000080) != 0) &&
3372 integerObjective_ != null &&
3373 integerObjective_ != com.google.ortools.sat.CpObjectiveProto.getDefaultInstance()) {
3374 getIntegerObjectiveBuilder().mergeFrom(value);
3375 } else {
3376 integerObjective_ = value;
3377 }
3378 } else {
3379 integerObjectiveBuilder_.mergeFrom(value);
3380 }
3381 if (integerObjective_ != null) {
3382 bitField0_ |= 0x00000080;
3383 onChanged();
3384 }
3385 return this;
3386 }
3397 bitField0_ = (bitField0_ & ~0x00000080);
3398 integerObjective_ = null;
3399 if (integerObjectiveBuilder_ != null) {
3400 integerObjectiveBuilder_.dispose();
3401 integerObjectiveBuilder_ = null;
3402 }
3403 onChanged();
3404 return this;
3405 }
3416 bitField0_ |= 0x00000080;
3417 onChanged();
3418 return getIntegerObjectiveFieldBuilder().getBuilder();
3419 }
3430 if (integerObjectiveBuilder_ != null) {
3431 return integerObjectiveBuilder_.getMessageOrBuilder();
3432 } else {
3433 return integerObjective_ == null ?
3434 com.google.ortools.sat.CpObjectiveProto.getDefaultInstance() : integerObjective_;
3435 }
3436 }
3446 private com.google.protobuf.SingleFieldBuilderV3<
3447 com.google.ortools.sat.CpObjectiveProto, com.google.ortools.sat.CpObjectiveProto.Builder, com.google.ortools.sat.CpObjectiveProtoOrBuilder>
3448 getIntegerObjectiveFieldBuilder() {
3449 if (integerObjectiveBuilder_ == null) {
3450 integerObjectiveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
3451 com.google.ortools.sat.CpObjectiveProto, com.google.ortools.sat.CpObjectiveProto.Builder, com.google.ortools.sat.CpObjectiveProtoOrBuilder>(
3453 getParentForChildren(),
3454 isClean());
3455 integerObjective_ = null;
3456 }
3457 return integerObjectiveBuilder_;
3458 }
3459
3460 private long innerObjectiveLowerBound_ ;
3474 @java.lang.Override
3476 return innerObjectiveLowerBound_;
3477 }
3493
3494 innerObjectiveLowerBound_ = value;
3495 bitField0_ |= 0x00000100;
3496 onChanged();
3497 return this;
3498 }
3513 bitField0_ = (bitField0_ & ~0x00000100);
3514 innerObjectiveLowerBound_ = 0L;
3515 onChanged();
3516 return this;
3517 }
3518
3519 private long numIntegers_ ;
3532 @java.lang.Override
3533 public long getNumIntegers() {
3534 return numIntegers_;
3535 }
3549 public Builder setNumIntegers(long value) {
3550
3551 numIntegers_ = value;
3552 bitField0_ |= 0x00000200;
3553 onChanged();
3554 return this;
3555 }
3569 bitField0_ = (bitField0_ & ~0x00000200);
3570 numIntegers_ = 0L;
3571 onChanged();
3572 return this;
3573 }
3574
3575 private long numBooleans_ ;
3580 @java.lang.Override
3581 public long getNumBooleans() {
3582 return numBooleans_;
3583 }
3589 public Builder setNumBooleans(long value) {
3590
3591 numBooleans_ = value;
3592 bitField0_ |= 0x00000400;
3593 onChanged();
3594 return this;
3595 }
3601 bitField0_ = (bitField0_ & ~0x00000400);
3602 numBooleans_ = 0L;
3603 onChanged();
3604 return this;
3605 }
3606
3607 private long numConflicts_ ;
3612 @java.lang.Override
3613 public long getNumConflicts() {
3614 return numConflicts_;
3615 }
3621 public Builder setNumConflicts(long value) {
3622
3623 numConflicts_ = value;
3624 bitField0_ |= 0x00000800;
3625 onChanged();
3626 return this;
3627 }
3633 bitField0_ = (bitField0_ & ~0x00000800);
3634 numConflicts_ = 0L;
3635 onChanged();
3636 return this;
3637 }
3638
3639 private long numBranches_ ;
3644 @java.lang.Override
3645 public long getNumBranches() {
3646 return numBranches_;
3647 }
3653 public Builder setNumBranches(long value) {
3654
3655 numBranches_ = value;
3656 bitField0_ |= 0x00001000;
3657 onChanged();
3658 return this;
3659 }
3665 bitField0_ = (bitField0_ & ~0x00001000);
3666 numBranches_ = 0L;
3667 onChanged();
3668 return this;
3669 }
3670
3671 private long numBinaryPropagations_ ;
3676 @java.lang.Override
3678 return numBinaryPropagations_;
3679 }
3686
3687 numBinaryPropagations_ = value;
3688 bitField0_ |= 0x00002000;
3689 onChanged();
3690 return this;
3691 }
3697 bitField0_ = (bitField0_ & ~0x00002000);
3698 numBinaryPropagations_ = 0L;
3699 onChanged();
3700 return this;
3701 }
3702
3703 private long numIntegerPropagations_ ;
3708 @java.lang.Override
3710 return numIntegerPropagations_;
3711 }
3718
3719 numIntegerPropagations_ = value;
3720 bitField0_ |= 0x00004000;
3721 onChanged();
3722 return this;
3723 }
3729 bitField0_ = (bitField0_ & ~0x00004000);
3730 numIntegerPropagations_ = 0L;
3731 onChanged();
3732 return this;
3733 }
3734
3735 private long numRestarts_ ;
3740 @java.lang.Override
3741 public long getNumRestarts() {
3742 return numRestarts_;
3743 }
3749 public Builder setNumRestarts(long value) {
3750
3751 numRestarts_ = value;
3752 bitField0_ |= 0x00008000;
3753 onChanged();
3754 return this;
3755 }
3761 bitField0_ = (bitField0_ & ~0x00008000);
3762 numRestarts_ = 0L;
3763 onChanged();
3764 return this;
3765 }
3766
3767 private long numLpIterations_ ;
3772 @java.lang.Override
3773 public long getNumLpIterations() {
3774 return numLpIterations_;
3775 }
3781 public Builder setNumLpIterations(long value) {
3782
3783 numLpIterations_ = value;
3784 bitField0_ |= 0x00010000;
3785 onChanged();
3786 return this;
3787 }
3793 bitField0_ = (bitField0_ & ~0x00010000);
3794 numLpIterations_ = 0L;
3795 onChanged();
3796 return this;
3797 }
3798
3799 private double wallTime_ ;
3808 @java.lang.Override
3809 public double getWallTime() {
3810 return wallTime_;
3811 }
3821 public Builder setWallTime(double value) {
3822
3823 wallTime_ = value;
3824 bitField0_ |= 0x00020000;
3825 onChanged();
3826 return this;
3827 }
3837 bitField0_ = (bitField0_ & ~0x00020000);
3838 wallTime_ = 0D;
3839 onChanged();
3840 return this;
3841 }
3842
3843 private double userTime_ ;
3848 @java.lang.Override
3849 public double getUserTime() {
3850 return userTime_;
3851 }
3857 public Builder setUserTime(double value) {
3858
3859 userTime_ = value;
3860 bitField0_ |= 0x00040000;
3861 onChanged();
3862 return this;
3863 }
3869 bitField0_ = (bitField0_ & ~0x00040000);
3870 userTime_ = 0D;
3871 onChanged();
3872 return this;
3873 }
3874
3875 private double deterministicTime_ ;
3880 @java.lang.Override
3881 public double getDeterministicTime() {
3882 return deterministicTime_;
3883 }
3889 public Builder setDeterministicTime(double value) {
3890
3891 deterministicTime_ = value;
3892 bitField0_ |= 0x00080000;
3893 onChanged();
3894 return this;
3895 }
3901 bitField0_ = (bitField0_ & ~0x00080000);
3902 deterministicTime_ = 0D;
3903 onChanged();
3904 return this;
3905 }
3906
3907 private double gapIntegral_ ;
3916 @java.lang.Override
3917 public double getGapIntegral() {
3918 return gapIntegral_;
3919 }
3929 public Builder setGapIntegral(double value) {
3930
3931 gapIntegral_ = value;
3932 bitField0_ |= 0x00100000;
3933 onChanged();
3934 return this;
3935 }
3945 bitField0_ = (bitField0_ & ~0x00100000);
3946 gapIntegral_ = 0D;
3947 onChanged();
3948 return this;
3949 }
3950
3951 private java.lang.Object solutionInfo_ = "";
3961 public java.lang.String getSolutionInfo() {
3962 java.lang.Object ref = solutionInfo_;
3963 if (!(ref instanceof java.lang.String)) {
3964 com.google.protobuf.ByteString bs =
3965 (com.google.protobuf.ByteString) ref;
3966 java.lang.String s = bs.toStringUtf8();
3967 solutionInfo_ = s;
3968 return s;
3969 } else {
3970 return (java.lang.String) ref;
3971 }
3972 }
3982 public com.google.protobuf.ByteString
3984 java.lang.Object ref = solutionInfo_;
3985 if (ref instanceof String) {
3986 com.google.protobuf.ByteString b =
3987 com.google.protobuf.ByteString.copyFromUtf8(
3988 (java.lang.String) ref);
3989 solutionInfo_ = b;
3990 return b;
3991 } else {
3992 return (com.google.protobuf.ByteString) ref;
3993 }
3994 }
4006 java.lang.String value) {
4007 if (value == null) { throw new NullPointerException(); }
4008 solutionInfo_ = value;
4009 bitField0_ |= 0x00200000;
4010 onChanged();
4011 return this;
4012 }
4023 solutionInfo_ = getDefaultInstance().getSolutionInfo();
4024 bitField0_ = (bitField0_ & ~0x00200000);
4025 onChanged();
4026 return this;
4027 }
4039 com.google.protobuf.ByteString value) {
4040 if (value == null) { throw new NullPointerException(); }
4041 checkByteStringIsUtf8(value);
4042 solutionInfo_ = value;
4043 bitField0_ |= 0x00200000;
4044 onChanged();
4045 return this;
4046 }
4047
4048 private java.lang.Object solveLog_ = "";
4058 public java.lang.String getSolveLog() {
4059 java.lang.Object ref = solveLog_;
4060 if (!(ref instanceof java.lang.String)) {
4061 com.google.protobuf.ByteString bs =
4062 (com.google.protobuf.ByteString) ref;
4063 java.lang.String s = bs.toStringUtf8();
4064 solveLog_ = s;
4065 return s;
4066 } else {
4067 return (java.lang.String) ref;
4068 }
4069 }
4079 public com.google.protobuf.ByteString
4081 java.lang.Object ref = solveLog_;
4082 if (ref instanceof String) {
4083 com.google.protobuf.ByteString b =
4084 com.google.protobuf.ByteString.copyFromUtf8(
4085 (java.lang.String) ref);
4086 solveLog_ = b;
4087 return b;
4088 } else {
4089 return (com.google.protobuf.ByteString) ref;
4090 }
4091 }
4103 java.lang.String value) {
4104 if (value == null) { throw new NullPointerException(); }
4105 solveLog_ = value;
4106 bitField0_ |= 0x00400000;
4107 onChanged();
4108 return this;
4109 }
4120 solveLog_ = getDefaultInstance().getSolveLog();
4121 bitField0_ = (bitField0_ & ~0x00400000);
4122 onChanged();
4123 return this;
4124 }
4136 com.google.protobuf.ByteString value) {
4137 if (value == null) { throw new NullPointerException(); }
4138 checkByteStringIsUtf8(value);
4139 solveLog_ = value;
4140 bitField0_ |= 0x00400000;
4141 onChanged();
4142 return this;
4143 }
4144 @java.lang.Override
4146 final com.google.protobuf.UnknownFieldSet unknownFields) {
4147 return super.setUnknownFields(unknownFields);
4148 }
4149
4150 @java.lang.Override
4152 final com.google.protobuf.UnknownFieldSet unknownFields) {
4153 return super.mergeUnknownFields(unknownFields);
4154 }
4155
4156
4157 // @@protoc_insertion_point(builder_scope:operations_research.sat.CpSolverResponse)
4158 }
4159
4160 // @@protoc_insertion_point(class_scope:operations_research.sat.CpSolverResponse)
4161 private static final com.google.ortools.sat.CpSolverResponse DEFAULT_INSTANCE;
4162 static {
4163 DEFAULT_INSTANCE = new com.google.ortools.sat.CpSolverResponse();
4164 }
4165
4167 return DEFAULT_INSTANCE;
4168 }
4169
4170 private static final com.google.protobuf.Parser<CpSolverResponse>
4171 PARSER = new com.google.protobuf.AbstractParser<CpSolverResponse>() {
4172 @java.lang.Override
4173 public CpSolverResponse parsePartialFrom(
4174 com.google.protobuf.CodedInputStream input,
4175 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4176 throws com.google.protobuf.InvalidProtocolBufferException {
4177 Builder builder = newBuilder();
4178 try {
4179 builder.mergeFrom(input, extensionRegistry);
4180 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
4181 throw e.setUnfinishedMessage(builder.buildPartial());
4182 } catch (com.google.protobuf.UninitializedMessageException e) {
4183 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
4184 } catch (java.io.IOException e) {
4185 throw new com.google.protobuf.InvalidProtocolBufferException(e)
4186 .setUnfinishedMessage(builder.buildPartial());
4187 }
4188 return builder.buildPartial();
4189 }
4190 };
4191
4192 public static com.google.protobuf.Parser<CpSolverResponse> parser() {
4193 return PARSER;
4194 }
4195
4196 @java.lang.Override
4197 public com.google.protobuf.Parser<CpSolverResponse> getParserForType() {
4198 return PARSER;
4199 }
4200
4201 @java.lang.Override
4203 return DEFAULT_INSTANCE;
4204 }
4205
4206}
4207
boolean equals(final java.lang.Object obj)
com.google.ortools.sat.CpSolverSolution getAdditionalSolutions(int index)
com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
Builder setStatus(com.google.ortools.sat.CpSolverStatus value)
Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
java.util.List< java.lang.Long > getSolutionList()
Builder addTightenedVariables(com.google.ortools.sat.IntegerVariableProto.Builder builderForValue)
Builder setSolveLogBytes(com.google.protobuf.ByteString value)
Builder addTightenedVariables(com.google.ortools.sat.IntegerVariableProto value)
com.google.ortools.sat.CpSolverSolution.Builder getAdditionalSolutionsBuilder(int index)
Builder mergeFrom(com.google.ortools.sat.CpSolverResponse other)
com.google.ortools.sat.CpSolverSolution.Builder addAdditionalSolutionsBuilder()
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
Builder setTightenedVariables(int index, com.google.ortools.sat.IntegerVariableProto value)
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
java.util.List<? extends com.google.ortools.sat.IntegerVariableProtoOrBuilder > getTightenedVariablesOrBuilderList()
final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
java.util.List< com.google.ortools.sat.IntegerVariableProto.Builder > getTightenedVariablesBuilderList()
com.google.ortools.sat.CpSolverResponse buildPartial()
Builder addAllSufficientAssumptionsForInfeasibility(java.lang.Iterable<? extends java.lang.Integer > values)
Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.sat.IntegerVariableProto.Builder addTightenedVariablesBuilder()
java.util.List< com.google.ortools.sat.CpSolverSolution > getAdditionalSolutionsList()
com.google.ortools.sat.CpObjectiveProto.Builder getIntegerObjectiveBuilder()
java.util.List< com.google.ortools.sat.IntegerVariableProto > getTightenedVariablesList()
Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
java.util.List< com.google.ortools.sat.CpSolverSolution.Builder > getAdditionalSolutionsBuilderList()
Builder addTightenedVariables(int index, com.google.ortools.sat.IntegerVariableProto.Builder builderForValue)
com.google.ortools.sat.CpObjectiveProto getIntegerObjective()
Builder addAdditionalSolutions(int index, com.google.ortools.sat.CpSolverSolution value)
Builder setSufficientAssumptionsForInfeasibility(int index, int value)
com.google.ortools.sat.CpSolverResponse getDefaultInstanceForType()
Builder addAdditionalSolutions(int index, com.google.ortools.sat.CpSolverSolution.Builder builderForValue)
com.google.ortools.sat.CpSolverSolution.Builder addAdditionalSolutionsBuilder(int index)
Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Builder setAdditionalSolutions(int index, com.google.ortools.sat.CpSolverSolution.Builder builderForValue)
com.google.protobuf.ByteString getSolveLogBytes()
Builder setAdditionalSolutions(int index, com.google.ortools.sat.CpSolverSolution value)
Builder addAllAdditionalSolutions(java.lang.Iterable<? extends com.google.ortools.sat.CpSolverSolution > values)
Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Builder mergeFrom(com.google.protobuf.Message other)
Builder addAllTightenedVariables(java.lang.Iterable<? extends com.google.ortools.sat.IntegerVariableProto > values)
com.google.ortools.sat.CpSolverStatus getStatus()
com.google.ortools.sat.IntegerVariableProtoOrBuilder getTightenedVariablesOrBuilder(int index)
java.util.List<? extends com.google.ortools.sat.CpSolverSolutionOrBuilder > getAdditionalSolutionsOrBuilderList()
Builder addAdditionalSolutions(com.google.ortools.sat.CpSolverSolution.Builder builderForValue)
com.google.ortools.sat.IntegerVariableProto.Builder addTightenedVariablesBuilder(int index)
Builder addAdditionalSolutions(com.google.ortools.sat.CpSolverSolution value)
Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Builder setIntegerObjective(com.google.ortools.sat.CpObjectiveProto.Builder builderForValue)
Builder addTightenedVariables(int index, com.google.ortools.sat.IntegerVariableProto value)
Builder setSolutionInfoBytes(com.google.protobuf.ByteString value)
final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
Builder setIntegerObjective(com.google.ortools.sat.CpObjectiveProto value)
com.google.ortools.sat.CpSolverSolutionOrBuilder getAdditionalSolutionsOrBuilder(int index)
Builder mergeIntegerObjective(com.google.ortools.sat.CpObjectiveProto value)
com.google.ortools.sat.IntegerVariableProto getTightenedVariables(int index)
java.util.List< java.lang.Integer > getSufficientAssumptionsForInfeasibilityList()
Builder addAllSolution(java.lang.Iterable<? extends java.lang.Long > values)
com.google.ortools.sat.IntegerVariableProto.Builder getTightenedVariablesBuilder(int index)
com.google.ortools.sat.CpSolverResponse build()
Builder setTightenedVariables(int index, com.google.ortools.sat.IntegerVariableProto.Builder builderForValue)
com.google.ortools.sat.CpObjectiveProtoOrBuilder getIntegerObjectiveOrBuilder()
com.google.protobuf.ByteString getSolutionInfoBytes()
static com.google.ortools.sat.CpSolverResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.sat.CpSolverResponse parseFrom(byte[] data)
java.util.List< java.lang.Long > getSolutionList()
com.google.ortools.sat.IntegerVariableProtoOrBuilder getTightenedVariablesOrBuilder(int index)
java.util.List< com.google.ortools.sat.IntegerVariableProto > getTightenedVariablesList()
com.google.protobuf.ByteString getSolutionInfoBytes()
static com.google.ortools.sat.CpSolverResponse parseFrom(java.io.InputStream input)
static com.google.ortools.sat.CpSolverResponse parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
java.lang.Object newInstance(UnusedPrivateParameter unused)
static com.google.ortools.sat.CpSolverResponse parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser< CpSolverResponse > parser()
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
static Builder newBuilder(com.google.ortools.sat.CpSolverResponse prototype)
java.util.List< com.google.ortools.sat.CpSolverSolution > getAdditionalSolutionsList()
com.google.ortools.sat.CpSolverResponse getDefaultInstanceForType()
java.util.List<? extends com.google.ortools.sat.IntegerVariableProtoOrBuilder > getTightenedVariablesOrBuilderList()
com.google.ortools.sat.CpObjectiveProto getIntegerObjective()
static com.google.ortools.sat.CpSolverResponse parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
java.util.List<? extends com.google.ortools.sat.CpSolverSolutionOrBuilder > getAdditionalSolutionsOrBuilderList()
java.util.List< java.lang.Integer > getSufficientAssumptionsForInfeasibilityList()
static final int SUFFICIENT_ASSUMPTIONS_FOR_INFEASIBILITY_FIELD_NUMBER
void writeTo(com.google.protobuf.CodedOutputStream output)
com.google.ortools.sat.IntegerVariableProto getTightenedVariables(int index)
static com.google.ortools.sat.CpSolverResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.sat.CpSolverStatus getStatus()
static com.google.ortools.sat.CpSolverResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.sat.CpSolverResponse parseDelimitedFrom(java.io.InputStream input)
static com.google.ortools.sat.CpSolverResponse parseFrom(java.nio.ByteBuffer data)
com.google.ortools.sat.CpSolverSolutionOrBuilder getAdditionalSolutionsOrBuilder(int index)
static com.google.ortools.sat.CpSolverResponse parseFrom(com.google.protobuf.CodedInputStream input)
com.google.ortools.sat.CpObjectiveProtoOrBuilder getIntegerObjectiveOrBuilder()
boolean equals(final java.lang.Object obj)
com.google.ortools.sat.CpSolverSolution getAdditionalSolutions(int index)
com.google.protobuf.Parser< CpSolverResponse > getParserForType()
static com.google.ortools.sat.CpSolverResponse parseFrom(com.google.protobuf.ByteString data)
static com.google.ortools.sat.CpSolverResponse getDefaultInstance()
com.google.protobuf.ByteString getSolveLogBytes()