Google OR-Tools v9.12
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// NO CHECKED-IN PROTOBUF GENCODE
3// source: ortools/sat/cp_model.proto
4// Protobuf Java Version: 4.29.3
5
6package com.google.ortools.sat;
7
17public final class CpSolverResponse extends
18 com.google.protobuf.GeneratedMessage implements
19 // @@protoc_insertion_point(message_implements:operations_research.sat.CpSolverResponse)
21private static final long serialVersionUID = 0L;
22 static {
23 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
24 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
25 /* major= */ 4,
26 /* minor= */ 29,
27 /* patch= */ 3,
28 /* suffix= */ "",
29 CpSolverResponse.class.getName());
30 }
31 // Use CpSolverResponse.newBuilder() to construct.
32 private CpSolverResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
33 super(builder);
34 }
35 private CpSolverResponse() {
36 status_ = 0;
37 solution_ = emptyLongList();
38 additionalSolutions_ = java.util.Collections.emptyList();
39 tightenedVariables_ = java.util.Collections.emptyList();
40 sufficientAssumptionsForInfeasibility_ = emptyIntList();
41 solutionInfo_ = "";
42 solveLog_ = "";
43 }
44
45 public static final com.google.protobuf.Descriptors.Descriptor
47 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_descriptor;
48 }
49
50 @java.lang.Override
51 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
53 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_fieldAccessorTable
54 .ensureFieldAccessorsInitialized(
55 com.google.ortools.sat.CpSolverResponse.class, com.google.ortools.sat.CpSolverResponse.Builder.class);
56 }
57
58 private int bitField0_;
59 public static final int STATUS_FIELD_NUMBER = 1;
60 private int status_ = 0;
69 @java.lang.Override public int getStatusValue() {
70 return status_;
71 }
72
80 @java.lang.Override public com.google.ortools.sat.CpSolverStatus getStatus() {
81 com.google.ortools.sat.CpSolverStatus result = com.google.ortools.sat.CpSolverStatus.forNumber(status_);
82 return result == null ? com.google.ortools.sat.CpSolverStatus.UNRECOGNIZED : result;
83 }
84
85 public static final int SOLUTION_FIELD_NUMBER = 2;
86 @SuppressWarnings("serial")
87 private com.google.protobuf.Internal.LongList solution_ =
88 emptyLongList();
100 @java.lang.Override
101 public java.util.List<java.lang.Long>
103 return solution_;
104 }
105
116 public int getSolutionCount() {
117 return solution_.size();
118 }
119
131 public long getSolution(int index) {
132 return solution_.getLong(index);
133 }
134 private int solutionMemoizedSerializedSize = -1;
135
136 public static final int OBJECTIVE_VALUE_FIELD_NUMBER = 3;
137 private double objectiveValue_ = 0D;
149 @java.lang.Override
150 public double getObjectiveValue() {
151 return objectiveValue_;
152 }
153
154 public static final int BEST_OBJECTIVE_BOUND_FIELD_NUMBER = 4;
155 private double bestObjectiveBound_ = 0D;
166 @java.lang.Override
167 public double getBestObjectiveBound() {
168 return bestObjectiveBound_;
169 }
170
171 public static final int ADDITIONAL_SOLUTIONS_FIELD_NUMBER = 27;
172 @SuppressWarnings("serial")
173 private java.util.List<com.google.ortools.sat.CpSolverSolution> additionalSolutions_;
186 @java.lang.Override
188 return additionalSolutions_;
189 }
190
202 @java.lang.Override
203 public java.util.List<? extends com.google.ortools.sat.CpSolverSolutionOrBuilder>
205 return additionalSolutions_;
206 }
207
219 @java.lang.Override
221 return additionalSolutions_.size();
222 }
223
235 @java.lang.Override
237 return additionalSolutions_.get(index);
238 }
239
251 @java.lang.Override
253 int index) {
254 return additionalSolutions_.get(index);
255 }
256
257 public static final int TIGHTENED_VARIABLES_FIELD_NUMBER = 21;
258 @SuppressWarnings("serial")
259 private java.util.List<com.google.ortools.sat.IntegerVariableProto> tightenedVariables_;
282 @java.lang.Override
284 return tightenedVariables_;
285 }
286
308 @java.lang.Override
309 public java.util.List<? extends com.google.ortools.sat.IntegerVariableProtoOrBuilder>
311 return tightenedVariables_;
312 }
313
335 @java.lang.Override
337 return tightenedVariables_.size();
338 }
339
361 @java.lang.Override
363 return tightenedVariables_.get(index);
364 }
365
387 @java.lang.Override
389 int index) {
390 return tightenedVariables_.get(index);
391 }
392
394 @SuppressWarnings("serial")
395 private com.google.protobuf.Internal.IntList sufficientAssumptionsForInfeasibility_ =
396 emptyIntList();
423 @java.lang.Override
424 public java.util.List<java.lang.Integer>
426 return sufficientAssumptionsForInfeasibility_;
427 }
428
455 return sufficientAssumptionsForInfeasibility_.size();
456 }
457
485 return sufficientAssumptionsForInfeasibility_.getInt(index);
486 }
487 private int sufficientAssumptionsForInfeasibilityMemoizedSerializedSize = -1;
488
489 public static final int INTEGER_OBJECTIVE_FIELD_NUMBER = 28;
490 private com.google.ortools.sat.CpObjectiveProto integerObjective_;
501 @java.lang.Override
502 public boolean hasIntegerObjective() {
503 return ((bitField0_ & 0x00000001) != 0);
504 }
505
515 @java.lang.Override
517 return integerObjective_ == null ? com.google.ortools.sat.CpObjectiveProto.getDefaultInstance() : integerObjective_;
518 }
519
528 @java.lang.Override
530 return integerObjective_ == null ? com.google.ortools.sat.CpObjectiveProto.getDefaultInstance() : integerObjective_;
531 }
532
533 public static final int INNER_OBJECTIVE_LOWER_BOUND_FIELD_NUMBER = 29;
534 private long innerObjectiveLowerBound_ = 0L;
548 @java.lang.Override
550 return innerObjectiveLowerBound_;
551 }
552
553 public static final int NUM_INTEGERS_FIELD_NUMBER = 30;
554 private long numIntegers_ = 0L;
567 @java.lang.Override
568 public long getNumIntegers() {
569 return numIntegers_;
570 }
571
572 public static final int NUM_BOOLEANS_FIELD_NUMBER = 10;
573 private long numBooleans_ = 0L;
578 @java.lang.Override
579 public long getNumBooleans() {
580 return numBooleans_;
581 }
582
583 public static final int NUM_FIXED_BOOLEANS_FIELD_NUMBER = 31;
584 private long numFixedBooleans_ = 0L;
589 @java.lang.Override
590 public long getNumFixedBooleans() {
591 return numFixedBooleans_;
592 }
593
594 public static final int NUM_CONFLICTS_FIELD_NUMBER = 11;
595 private long numConflicts_ = 0L;
600 @java.lang.Override
601 public long getNumConflicts() {
602 return numConflicts_;
603 }
604
605 public static final int NUM_BRANCHES_FIELD_NUMBER = 12;
606 private long numBranches_ = 0L;
611 @java.lang.Override
612 public long getNumBranches() {
613 return numBranches_;
614 }
615
616 public static final int NUM_BINARY_PROPAGATIONS_FIELD_NUMBER = 13;
617 private long numBinaryPropagations_ = 0L;
622 @java.lang.Override
624 return numBinaryPropagations_;
625 }
626
627 public static final int NUM_INTEGER_PROPAGATIONS_FIELD_NUMBER = 14;
628 private long numIntegerPropagations_ = 0L;
633 @java.lang.Override
635 return numIntegerPropagations_;
636 }
637
638 public static final int NUM_RESTARTS_FIELD_NUMBER = 24;
639 private long numRestarts_ = 0L;
644 @java.lang.Override
645 public long getNumRestarts() {
646 return numRestarts_;
647 }
648
649 public static final int NUM_LP_ITERATIONS_FIELD_NUMBER = 25;
650 private long numLpIterations_ = 0L;
655 @java.lang.Override
656 public long getNumLpIterations() {
657 return numLpIterations_;
658 }
659
660 public static final int WALL_TIME_FIELD_NUMBER = 15;
661 private double wallTime_ = 0D;
670 @java.lang.Override
671 public double getWallTime() {
672 return wallTime_;
673 }
674
675 public static final int USER_TIME_FIELD_NUMBER = 16;
676 private double userTime_ = 0D;
681 @java.lang.Override
682 public double getUserTime() {
683 return userTime_;
684 }
685
686 public static final int DETERMINISTIC_TIME_FIELD_NUMBER = 17;
687 private double deterministicTime_ = 0D;
692 @java.lang.Override
693 public double getDeterministicTime() {
694 return deterministicTime_;
695 }
696
697 public static final int GAP_INTEGRAL_FIELD_NUMBER = 22;
698 private double gapIntegral_ = 0D;
707 @java.lang.Override
708 public double getGapIntegral() {
709 return gapIntegral_;
710 }
711
712 public static final int SOLUTION_INFO_FIELD_NUMBER = 20;
713 @SuppressWarnings("serial")
714 private volatile java.lang.Object solutionInfo_ = "";
724 @java.lang.Override
725 public java.lang.String getSolutionInfo() {
726 java.lang.Object ref = solutionInfo_;
727 if (ref instanceof java.lang.String) {
728 return (java.lang.String) ref;
729 } else {
730 com.google.protobuf.ByteString bs =
731 (com.google.protobuf.ByteString) ref;
732 java.lang.String s = bs.toStringUtf8();
733 solutionInfo_ = s;
734 return s;
735 }
736 }
737
746 @java.lang.Override
747 public com.google.protobuf.ByteString
749 java.lang.Object ref = solutionInfo_;
750 if (ref instanceof java.lang.String) {
751 com.google.protobuf.ByteString b =
752 com.google.protobuf.ByteString.copyFromUtf8(
753 (java.lang.String) ref);
754 solutionInfo_ = b;
755 return b;
756 } else {
757 return (com.google.protobuf.ByteString) ref;
758 }
759 }
760
761 public static final int SOLVE_LOG_FIELD_NUMBER = 26;
762 @SuppressWarnings("serial")
763 private volatile java.lang.Object solveLog_ = "";
773 @java.lang.Override
774 public java.lang.String getSolveLog() {
775 java.lang.Object ref = solveLog_;
776 if (ref instanceof java.lang.String) {
777 return (java.lang.String) ref;
778 } else {
779 com.google.protobuf.ByteString bs =
780 (com.google.protobuf.ByteString) ref;
781 java.lang.String s = bs.toStringUtf8();
782 solveLog_ = s;
783 return s;
784 }
785 }
786
795 @java.lang.Override
796 public com.google.protobuf.ByteString
798 java.lang.Object ref = solveLog_;
799 if (ref instanceof java.lang.String) {
800 com.google.protobuf.ByteString b =
801 com.google.protobuf.ByteString.copyFromUtf8(
802 (java.lang.String) ref);
803 solveLog_ = b;
804 return b;
805 } else {
806 return (com.google.protobuf.ByteString) ref;
807 }
808 }
809
810 private byte memoizedIsInitialized = -1;
811 @java.lang.Override
812 public final boolean isInitialized() {
813 byte isInitialized = memoizedIsInitialized;
814 if (isInitialized == 1) return true;
815 if (isInitialized == 0) return false;
816
817 memoizedIsInitialized = 1;
818 return true;
819 }
820
821 @java.lang.Override
822 public void writeTo(com.google.protobuf.CodedOutputStream output)
823 throws java.io.IOException {
825 if (status_ != com.google.ortools.sat.CpSolverStatus.UNKNOWN.getNumber()) {
826 output.writeEnum(1, status_);
827 }
828 if (getSolutionList().size() > 0) {
829 output.writeUInt32NoTag(18);
830 output.writeUInt32NoTag(solutionMemoizedSerializedSize);
831 }
832 for (int i = 0; i < solution_.size(); i++) {
833 output.writeInt64NoTag(solution_.getLong(i));
834 }
835 if (java.lang.Double.doubleToRawLongBits(objectiveValue_) != 0) {
836 output.writeDouble(3, objectiveValue_);
837 }
838 if (java.lang.Double.doubleToRawLongBits(bestObjectiveBound_) != 0) {
839 output.writeDouble(4, bestObjectiveBound_);
840 }
841 if (numBooleans_ != 0L) {
842 output.writeInt64(10, numBooleans_);
843 }
844 if (numConflicts_ != 0L) {
845 output.writeInt64(11, numConflicts_);
846 }
847 if (numBranches_ != 0L) {
848 output.writeInt64(12, numBranches_);
849 }
850 if (numBinaryPropagations_ != 0L) {
851 output.writeInt64(13, numBinaryPropagations_);
852 }
853 if (numIntegerPropagations_ != 0L) {
854 output.writeInt64(14, numIntegerPropagations_);
855 }
856 if (java.lang.Double.doubleToRawLongBits(wallTime_) != 0) {
857 output.writeDouble(15, wallTime_);
858 }
859 if (java.lang.Double.doubleToRawLongBits(userTime_) != 0) {
860 output.writeDouble(16, userTime_);
861 }
862 if (java.lang.Double.doubleToRawLongBits(deterministicTime_) != 0) {
863 output.writeDouble(17, deterministicTime_);
864 }
865 if (!com.google.protobuf.GeneratedMessage.isStringEmpty(solutionInfo_)) {
866 com.google.protobuf.GeneratedMessage.writeString(output, 20, solutionInfo_);
867 }
868 for (int i = 0; i < tightenedVariables_.size(); i++) {
869 output.writeMessage(21, tightenedVariables_.get(i));
870 }
871 if (java.lang.Double.doubleToRawLongBits(gapIntegral_) != 0) {
872 output.writeDouble(22, gapIntegral_);
873 }
875 output.writeUInt32NoTag(186);
876 output.writeUInt32NoTag(sufficientAssumptionsForInfeasibilityMemoizedSerializedSize);
877 }
878 for (int i = 0; i < sufficientAssumptionsForInfeasibility_.size(); i++) {
879 output.writeInt32NoTag(sufficientAssumptionsForInfeasibility_.getInt(i));
880 }
881 if (numRestarts_ != 0L) {
882 output.writeInt64(24, numRestarts_);
883 }
884 if (numLpIterations_ != 0L) {
885 output.writeInt64(25, numLpIterations_);
886 }
887 if (!com.google.protobuf.GeneratedMessage.isStringEmpty(solveLog_)) {
888 com.google.protobuf.GeneratedMessage.writeString(output, 26, solveLog_);
889 }
890 for (int i = 0; i < additionalSolutions_.size(); i++) {
891 output.writeMessage(27, additionalSolutions_.get(i));
892 }
893 if (((bitField0_ & 0x00000001) != 0)) {
894 output.writeMessage(28, getIntegerObjective());
895 }
896 if (innerObjectiveLowerBound_ != 0L) {
897 output.writeInt64(29, innerObjectiveLowerBound_);
898 }
899 if (numIntegers_ != 0L) {
900 output.writeInt64(30, numIntegers_);
901 }
902 if (numFixedBooleans_ != 0L) {
903 output.writeInt64(31, numFixedBooleans_);
904 }
905 getUnknownFields().writeTo(output);
906 }
907
908 @java.lang.Override
909 public int getSerializedSize() {
910 int size = memoizedSize;
911 if (size != -1) return size;
912
913 size = 0;
914 if (status_ != com.google.ortools.sat.CpSolverStatus.UNKNOWN.getNumber()) {
915 size += com.google.protobuf.CodedOutputStream
916 .computeEnumSize(1, status_);
917 }
918 {
919 int dataSize = 0;
920 for (int i = 0; i < solution_.size(); i++) {
921 dataSize += com.google.protobuf.CodedOutputStream
922 .computeInt64SizeNoTag(solution_.getLong(i));
923 }
924 size += dataSize;
925 if (!getSolutionList().isEmpty()) {
926 size += 1;
927 size += com.google.protobuf.CodedOutputStream
928 .computeInt32SizeNoTag(dataSize);
929 }
930 solutionMemoizedSerializedSize = dataSize;
931 }
932 if (java.lang.Double.doubleToRawLongBits(objectiveValue_) != 0) {
933 size += com.google.protobuf.CodedOutputStream
934 .computeDoubleSize(3, objectiveValue_);
935 }
936 if (java.lang.Double.doubleToRawLongBits(bestObjectiveBound_) != 0) {
937 size += com.google.protobuf.CodedOutputStream
938 .computeDoubleSize(4, bestObjectiveBound_);
939 }
940 if (numBooleans_ != 0L) {
941 size += com.google.protobuf.CodedOutputStream
942 .computeInt64Size(10, numBooleans_);
943 }
944 if (numConflicts_ != 0L) {
945 size += com.google.protobuf.CodedOutputStream
946 .computeInt64Size(11, numConflicts_);
947 }
948 if (numBranches_ != 0L) {
949 size += com.google.protobuf.CodedOutputStream
950 .computeInt64Size(12, numBranches_);
951 }
952 if (numBinaryPropagations_ != 0L) {
953 size += com.google.protobuf.CodedOutputStream
954 .computeInt64Size(13, numBinaryPropagations_);
955 }
956 if (numIntegerPropagations_ != 0L) {
957 size += com.google.protobuf.CodedOutputStream
958 .computeInt64Size(14, numIntegerPropagations_);
959 }
960 if (java.lang.Double.doubleToRawLongBits(wallTime_) != 0) {
961 size += com.google.protobuf.CodedOutputStream
962 .computeDoubleSize(15, wallTime_);
963 }
964 if (java.lang.Double.doubleToRawLongBits(userTime_) != 0) {
965 size += com.google.protobuf.CodedOutputStream
966 .computeDoubleSize(16, userTime_);
967 }
968 if (java.lang.Double.doubleToRawLongBits(deterministicTime_) != 0) {
969 size += com.google.protobuf.CodedOutputStream
970 .computeDoubleSize(17, deterministicTime_);
971 }
972 if (!com.google.protobuf.GeneratedMessage.isStringEmpty(solutionInfo_)) {
973 size += com.google.protobuf.GeneratedMessage.computeStringSize(20, solutionInfo_);
974 }
975 for (int i = 0; i < tightenedVariables_.size(); i++) {
976 size += com.google.protobuf.CodedOutputStream
977 .computeMessageSize(21, tightenedVariables_.get(i));
978 }
979 if (java.lang.Double.doubleToRawLongBits(gapIntegral_) != 0) {
980 size += com.google.protobuf.CodedOutputStream
981 .computeDoubleSize(22, gapIntegral_);
982 }
983 {
984 int dataSize = 0;
985 for (int i = 0; i < sufficientAssumptionsForInfeasibility_.size(); i++) {
986 dataSize += com.google.protobuf.CodedOutputStream
987 .computeInt32SizeNoTag(sufficientAssumptionsForInfeasibility_.getInt(i));
988 }
989 size += dataSize;
991 size += 2;
992 size += com.google.protobuf.CodedOutputStream
993 .computeInt32SizeNoTag(dataSize);
994 }
995 sufficientAssumptionsForInfeasibilityMemoizedSerializedSize = dataSize;
996 }
997 if (numRestarts_ != 0L) {
998 size += com.google.protobuf.CodedOutputStream
999 .computeInt64Size(24, numRestarts_);
1000 }
1001 if (numLpIterations_ != 0L) {
1002 size += com.google.protobuf.CodedOutputStream
1003 .computeInt64Size(25, numLpIterations_);
1004 }
1005 if (!com.google.protobuf.GeneratedMessage.isStringEmpty(solveLog_)) {
1006 size += com.google.protobuf.GeneratedMessage.computeStringSize(26, solveLog_);
1007 }
1008 for (int i = 0; i < additionalSolutions_.size(); i++) {
1009 size += com.google.protobuf.CodedOutputStream
1010 .computeMessageSize(27, additionalSolutions_.get(i));
1011 }
1012 if (((bitField0_ & 0x00000001) != 0)) {
1013 size += com.google.protobuf.CodedOutputStream
1014 .computeMessageSize(28, getIntegerObjective());
1015 }
1016 if (innerObjectiveLowerBound_ != 0L) {
1017 size += com.google.protobuf.CodedOutputStream
1018 .computeInt64Size(29, innerObjectiveLowerBound_);
1019 }
1020 if (numIntegers_ != 0L) {
1021 size += com.google.protobuf.CodedOutputStream
1022 .computeInt64Size(30, numIntegers_);
1023 }
1024 if (numFixedBooleans_ != 0L) {
1025 size += com.google.protobuf.CodedOutputStream
1026 .computeInt64Size(31, numFixedBooleans_);
1027 }
1028 size += getUnknownFields().getSerializedSize();
1029 memoizedSize = size;
1030 return size;
1031 }
1032
1033 @java.lang.Override
1034 public boolean equals(final java.lang.Object obj) {
1035 if (obj == this) {
1036 return true;
1037 }
1038 if (!(obj instanceof com.google.ortools.sat.CpSolverResponse)) {
1039 return super.equals(obj);
1040 }
1041 com.google.ortools.sat.CpSolverResponse other = (com.google.ortools.sat.CpSolverResponse) obj;
1042
1043 if (status_ != other.status_) return false;
1044 if (!getSolutionList()
1045 .equals(other.getSolutionList())) return false;
1046 if (java.lang.Double.doubleToLongBits(getObjectiveValue())
1047 != java.lang.Double.doubleToLongBits(
1048 other.getObjectiveValue())) return false;
1049 if (java.lang.Double.doubleToLongBits(getBestObjectiveBound())
1050 != java.lang.Double.doubleToLongBits(
1051 other.getBestObjectiveBound())) return false;
1053 .equals(other.getAdditionalSolutionsList())) return false;
1055 .equals(other.getTightenedVariablesList())) return false;
1058 if (hasIntegerObjective() != other.hasIntegerObjective()) return false;
1059 if (hasIntegerObjective()) {
1060 if (!getIntegerObjective()
1061 .equals(other.getIntegerObjective())) return false;
1062 }
1064 != other.getInnerObjectiveLowerBound()) return false;
1065 if (getNumIntegers()
1066 != other.getNumIntegers()) return false;
1067 if (getNumBooleans()
1068 != other.getNumBooleans()) return false;
1070 != other.getNumFixedBooleans()) return false;
1071 if (getNumConflicts()
1072 != other.getNumConflicts()) return false;
1073 if (getNumBranches()
1074 != other.getNumBranches()) return false;
1076 != other.getNumBinaryPropagations()) return false;
1078 != other.getNumIntegerPropagations()) return false;
1079 if (getNumRestarts()
1080 != other.getNumRestarts()) return false;
1081 if (getNumLpIterations()
1082 != other.getNumLpIterations()) return false;
1083 if (java.lang.Double.doubleToLongBits(getWallTime())
1084 != java.lang.Double.doubleToLongBits(
1085 other.getWallTime())) return false;
1086 if (java.lang.Double.doubleToLongBits(getUserTime())
1087 != java.lang.Double.doubleToLongBits(
1088 other.getUserTime())) return false;
1089 if (java.lang.Double.doubleToLongBits(getDeterministicTime())
1090 != java.lang.Double.doubleToLongBits(
1091 other.getDeterministicTime())) return false;
1092 if (java.lang.Double.doubleToLongBits(getGapIntegral())
1093 != java.lang.Double.doubleToLongBits(
1094 other.getGapIntegral())) return false;
1095 if (!getSolutionInfo()
1096 .equals(other.getSolutionInfo())) return false;
1097 if (!getSolveLog()
1098 .equals(other.getSolveLog())) return false;
1099 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
1100 return true;
1101 }
1102
1103 @java.lang.Override
1104 public int hashCode() {
1105 if (memoizedHashCode != 0) {
1106 return memoizedHashCode;
1107 }
1108 int hash = 41;
1109 hash = (19 * hash) + getDescriptor().hashCode();
1110 hash = (37 * hash) + STATUS_FIELD_NUMBER;
1111 hash = (53 * hash) + status_;
1112 if (getSolutionCount() > 0) {
1113 hash = (37 * hash) + SOLUTION_FIELD_NUMBER;
1114 hash = (53 * hash) + getSolutionList().hashCode();
1115 }
1116 hash = (37 * hash) + OBJECTIVE_VALUE_FIELD_NUMBER;
1117 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1118 java.lang.Double.doubleToLongBits(getObjectiveValue()));
1119 hash = (37 * hash) + BEST_OBJECTIVE_BOUND_FIELD_NUMBER;
1120 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1121 java.lang.Double.doubleToLongBits(getBestObjectiveBound()));
1122 if (getAdditionalSolutionsCount() > 0) {
1123 hash = (37 * hash) + ADDITIONAL_SOLUTIONS_FIELD_NUMBER;
1124 hash = (53 * hash) + getAdditionalSolutionsList().hashCode();
1125 }
1126 if (getTightenedVariablesCount() > 0) {
1127 hash = (37 * hash) + TIGHTENED_VARIABLES_FIELD_NUMBER;
1128 hash = (53 * hash) + getTightenedVariablesList().hashCode();
1129 }
1132 hash = (53 * hash) + getSufficientAssumptionsForInfeasibilityList().hashCode();
1133 }
1134 if (hasIntegerObjective()) {
1135 hash = (37 * hash) + INTEGER_OBJECTIVE_FIELD_NUMBER;
1136 hash = (53 * hash) + getIntegerObjective().hashCode();
1137 }
1138 hash = (37 * hash) + INNER_OBJECTIVE_LOWER_BOUND_FIELD_NUMBER;
1139 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1141 hash = (37 * hash) + NUM_INTEGERS_FIELD_NUMBER;
1142 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1143 getNumIntegers());
1144 hash = (37 * hash) + NUM_BOOLEANS_FIELD_NUMBER;
1145 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1146 getNumBooleans());
1147 hash = (37 * hash) + NUM_FIXED_BOOLEANS_FIELD_NUMBER;
1148 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1150 hash = (37 * hash) + NUM_CONFLICTS_FIELD_NUMBER;
1151 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1152 getNumConflicts());
1153 hash = (37 * hash) + NUM_BRANCHES_FIELD_NUMBER;
1154 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1155 getNumBranches());
1156 hash = (37 * hash) + NUM_BINARY_PROPAGATIONS_FIELD_NUMBER;
1157 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1159 hash = (37 * hash) + NUM_INTEGER_PROPAGATIONS_FIELD_NUMBER;
1160 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1162 hash = (37 * hash) + NUM_RESTARTS_FIELD_NUMBER;
1163 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1164 getNumRestarts());
1165 hash = (37 * hash) + NUM_LP_ITERATIONS_FIELD_NUMBER;
1166 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1168 hash = (37 * hash) + WALL_TIME_FIELD_NUMBER;
1169 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1170 java.lang.Double.doubleToLongBits(getWallTime()));
1171 hash = (37 * hash) + USER_TIME_FIELD_NUMBER;
1172 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1173 java.lang.Double.doubleToLongBits(getUserTime()));
1174 hash = (37 * hash) + DETERMINISTIC_TIME_FIELD_NUMBER;
1175 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1176 java.lang.Double.doubleToLongBits(getDeterministicTime()));
1177 hash = (37 * hash) + GAP_INTEGRAL_FIELD_NUMBER;
1178 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1179 java.lang.Double.doubleToLongBits(getGapIntegral()));
1180 hash = (37 * hash) + SOLUTION_INFO_FIELD_NUMBER;
1181 hash = (53 * hash) + getSolutionInfo().hashCode();
1182 hash = (37 * hash) + SOLVE_LOG_FIELD_NUMBER;
1183 hash = (53 * hash) + getSolveLog().hashCode();
1184 hash = (29 * hash) + getUnknownFields().hashCode();
1185 memoizedHashCode = hash;
1186 return hash;
1187 }
1188
1190 java.nio.ByteBuffer data)
1191 throws com.google.protobuf.InvalidProtocolBufferException {
1192 return PARSER.parseFrom(data);
1193 }
1195 java.nio.ByteBuffer data,
1196 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1197 throws com.google.protobuf.InvalidProtocolBufferException {
1198 return PARSER.parseFrom(data, extensionRegistry);
1199 }
1201 com.google.protobuf.ByteString data)
1202 throws com.google.protobuf.InvalidProtocolBufferException {
1203 return PARSER.parseFrom(data);
1204 }
1206 com.google.protobuf.ByteString data,
1207 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1208 throws com.google.protobuf.InvalidProtocolBufferException {
1209 return PARSER.parseFrom(data, extensionRegistry);
1210 }
1212 throws com.google.protobuf.InvalidProtocolBufferException {
1213 return PARSER.parseFrom(data);
1214 }
1216 byte[] data,
1217 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1218 throws com.google.protobuf.InvalidProtocolBufferException {
1219 return PARSER.parseFrom(data, extensionRegistry);
1220 }
1221 public static com.google.ortools.sat.CpSolverResponse parseFrom(java.io.InputStream input)
1222 throws java.io.IOException {
1223 return com.google.protobuf.GeneratedMessage
1224 .parseWithIOException(PARSER, input);
1225 }
1227 java.io.InputStream input,
1228 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1229 throws java.io.IOException {
1230 return com.google.protobuf.GeneratedMessage
1231 .parseWithIOException(PARSER, input, extensionRegistry);
1232 }
1233
1234 public static com.google.ortools.sat.CpSolverResponse parseDelimitedFrom(java.io.InputStream input)
1235 throws java.io.IOException {
1236 return com.google.protobuf.GeneratedMessage
1237 .parseDelimitedWithIOException(PARSER, input);
1238 }
1239
1241 java.io.InputStream input,
1242 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1243 throws java.io.IOException {
1244 return com.google.protobuf.GeneratedMessage
1245 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
1246 }
1248 com.google.protobuf.CodedInputStream input)
1249 throws java.io.IOException {
1250 return com.google.protobuf.GeneratedMessage
1251 .parseWithIOException(PARSER, input);
1252 }
1254 com.google.protobuf.CodedInputStream input,
1255 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1256 throws java.io.IOException {
1257 return com.google.protobuf.GeneratedMessage
1258 .parseWithIOException(PARSER, input, extensionRegistry);
1259 }
1260
1261 @java.lang.Override
1262 public Builder newBuilderForType() { return newBuilder(); }
1263 public static Builder newBuilder() {
1264 return DEFAULT_INSTANCE.toBuilder();
1265 }
1266 public static Builder newBuilder(com.google.ortools.sat.CpSolverResponse prototype) {
1267 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1268 }
1269 @java.lang.Override
1271 return this == DEFAULT_INSTANCE
1272 ? new Builder() : new Builder().mergeFrom(this);
1273 }
1274
1275 @java.lang.Override
1277 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1278 Builder builder = new Builder(parent);
1279 return builder;
1280 }
1281
1290 public static final class Builder extends
1291 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
1292 // @@protoc_insertion_point(builder_implements:operations_research.sat.CpSolverResponse)
1294 public static final com.google.protobuf.Descriptors.Descriptor
1296 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_descriptor;
1297 }
1298
1299 @java.lang.Override
1300 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1302 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_fieldAccessorTable
1303 .ensureFieldAccessorsInitialized(
1304 com.google.ortools.sat.CpSolverResponse.class, com.google.ortools.sat.CpSolverResponse.Builder.class);
1305 }
1306
1307 // Construct using com.google.ortools.sat.CpSolverResponse.newBuilder()
1308 private Builder() {
1309 maybeForceBuilderInitialization();
1310 }
1311
1312 private Builder(
1313 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1314 super(parent);
1315 maybeForceBuilderInitialization();
1316 }
1317 private void maybeForceBuilderInitialization() {
1318 if (com.google.protobuf.GeneratedMessage
1319 .alwaysUseFieldBuilders) {
1320 getAdditionalSolutionsFieldBuilder();
1321 getTightenedVariablesFieldBuilder();
1322 getIntegerObjectiveFieldBuilder();
1323 }
1324 }
1325 @java.lang.Override
1326 public Builder clear() {
1327 super.clear();
1328 bitField0_ = 0;
1329 status_ = 0;
1330 solution_ = emptyLongList();
1331 objectiveValue_ = 0D;
1332 bestObjectiveBound_ = 0D;
1333 if (additionalSolutionsBuilder_ == null) {
1334 additionalSolutions_ = java.util.Collections.emptyList();
1335 } else {
1336 additionalSolutions_ = null;
1337 additionalSolutionsBuilder_.clear();
1338 }
1339 bitField0_ = (bitField0_ & ~0x00000010);
1340 if (tightenedVariablesBuilder_ == null) {
1341 tightenedVariables_ = java.util.Collections.emptyList();
1342 } else {
1343 tightenedVariables_ = null;
1344 tightenedVariablesBuilder_.clear();
1345 }
1346 bitField0_ = (bitField0_ & ~0x00000020);
1347 sufficientAssumptionsForInfeasibility_ = emptyIntList();
1348 integerObjective_ = null;
1349 if (integerObjectiveBuilder_ != null) {
1350 integerObjectiveBuilder_.dispose();
1351 integerObjectiveBuilder_ = null;
1352 }
1353 innerObjectiveLowerBound_ = 0L;
1354 numIntegers_ = 0L;
1355 numBooleans_ = 0L;
1356 numFixedBooleans_ = 0L;
1357 numConflicts_ = 0L;
1358 numBranches_ = 0L;
1359 numBinaryPropagations_ = 0L;
1360 numIntegerPropagations_ = 0L;
1361 numRestarts_ = 0L;
1362 numLpIterations_ = 0L;
1363 wallTime_ = 0D;
1364 userTime_ = 0D;
1365 deterministicTime_ = 0D;
1366 gapIntegral_ = 0D;
1367 solutionInfo_ = "";
1368 solveLog_ = "";
1369 return this;
1370 }
1371
1372 @java.lang.Override
1373 public com.google.protobuf.Descriptors.Descriptor
1375 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_descriptor;
1376 }
1377
1378 @java.lang.Override
1380 return com.google.ortools.sat.CpSolverResponse.getDefaultInstance();
1381 }
1382
1383 @java.lang.Override
1386 if (!result.isInitialized()) {
1387 throw newUninitializedMessageException(result);
1388 }
1389 return result;
1390 }
1391
1392 @java.lang.Override
1394 com.google.ortools.sat.CpSolverResponse result = new com.google.ortools.sat.CpSolverResponse(this);
1395 buildPartialRepeatedFields(result);
1396 if (bitField0_ != 0) { buildPartial0(result); }
1397 onBuilt();
1398 return result;
1399 }
1400
1401 private void buildPartialRepeatedFields(com.google.ortools.sat.CpSolverResponse result) {
1402 if (additionalSolutionsBuilder_ == null) {
1403 if (((bitField0_ & 0x00000010) != 0)) {
1404 additionalSolutions_ = java.util.Collections.unmodifiableList(additionalSolutions_);
1405 bitField0_ = (bitField0_ & ~0x00000010);
1406 }
1407 result.additionalSolutions_ = additionalSolutions_;
1408 } else {
1409 result.additionalSolutions_ = additionalSolutionsBuilder_.build();
1410 }
1411 if (tightenedVariablesBuilder_ == null) {
1412 if (((bitField0_ & 0x00000020) != 0)) {
1413 tightenedVariables_ = java.util.Collections.unmodifiableList(tightenedVariables_);
1414 bitField0_ = (bitField0_ & ~0x00000020);
1415 }
1416 result.tightenedVariables_ = tightenedVariables_;
1417 } else {
1418 result.tightenedVariables_ = tightenedVariablesBuilder_.build();
1419 }
1420 }
1421
1422 private void buildPartial0(com.google.ortools.sat.CpSolverResponse result) {
1423 int from_bitField0_ = bitField0_;
1424 if (((from_bitField0_ & 0x00000001) != 0)) {
1425 result.status_ = status_;
1426 }
1427 if (((from_bitField0_ & 0x00000002) != 0)) {
1428 solution_.makeImmutable();
1429 result.solution_ = solution_;
1430 }
1431 if (((from_bitField0_ & 0x00000004) != 0)) {
1432 result.objectiveValue_ = objectiveValue_;
1433 }
1434 if (((from_bitField0_ & 0x00000008) != 0)) {
1435 result.bestObjectiveBound_ = bestObjectiveBound_;
1436 }
1437 if (((from_bitField0_ & 0x00000040) != 0)) {
1438 sufficientAssumptionsForInfeasibility_.makeImmutable();
1439 result.sufficientAssumptionsForInfeasibility_ = sufficientAssumptionsForInfeasibility_;
1440 }
1441 int to_bitField0_ = 0;
1442 if (((from_bitField0_ & 0x00000080) != 0)) {
1443 result.integerObjective_ = integerObjectiveBuilder_ == null
1444 ? integerObjective_
1445 : integerObjectiveBuilder_.build();
1446 to_bitField0_ |= 0x00000001;
1447 }
1448 if (((from_bitField0_ & 0x00000100) != 0)) {
1449 result.innerObjectiveLowerBound_ = innerObjectiveLowerBound_;
1450 }
1451 if (((from_bitField0_ & 0x00000200) != 0)) {
1452 result.numIntegers_ = numIntegers_;
1453 }
1454 if (((from_bitField0_ & 0x00000400) != 0)) {
1455 result.numBooleans_ = numBooleans_;
1456 }
1457 if (((from_bitField0_ & 0x00000800) != 0)) {
1458 result.numFixedBooleans_ = numFixedBooleans_;
1459 }
1460 if (((from_bitField0_ & 0x00001000) != 0)) {
1461 result.numConflicts_ = numConflicts_;
1462 }
1463 if (((from_bitField0_ & 0x00002000) != 0)) {
1464 result.numBranches_ = numBranches_;
1465 }
1466 if (((from_bitField0_ & 0x00004000) != 0)) {
1467 result.numBinaryPropagations_ = numBinaryPropagations_;
1468 }
1469 if (((from_bitField0_ & 0x00008000) != 0)) {
1470 result.numIntegerPropagations_ = numIntegerPropagations_;
1471 }
1472 if (((from_bitField0_ & 0x00010000) != 0)) {
1473 result.numRestarts_ = numRestarts_;
1474 }
1475 if (((from_bitField0_ & 0x00020000) != 0)) {
1476 result.numLpIterations_ = numLpIterations_;
1477 }
1478 if (((from_bitField0_ & 0x00040000) != 0)) {
1479 result.wallTime_ = wallTime_;
1480 }
1481 if (((from_bitField0_ & 0x00080000) != 0)) {
1482 result.userTime_ = userTime_;
1483 }
1484 if (((from_bitField0_ & 0x00100000) != 0)) {
1485 result.deterministicTime_ = deterministicTime_;
1486 }
1487 if (((from_bitField0_ & 0x00200000) != 0)) {
1488 result.gapIntegral_ = gapIntegral_;
1489 }
1490 if (((from_bitField0_ & 0x00400000) != 0)) {
1491 result.solutionInfo_ = solutionInfo_;
1492 }
1493 if (((from_bitField0_ & 0x00800000) != 0)) {
1494 result.solveLog_ = solveLog_;
1495 }
1496 result.bitField0_ |= to_bitField0_;
1497 }
1498
1499 @java.lang.Override
1500 public Builder mergeFrom(com.google.protobuf.Message other) {
1501 if (other instanceof com.google.ortools.sat.CpSolverResponse) {
1502 return mergeFrom((com.google.ortools.sat.CpSolverResponse)other);
1503 } else {
1504 super.mergeFrom(other);
1505 return this;
1506 }
1507 }
1508
1509 public Builder mergeFrom(com.google.ortools.sat.CpSolverResponse other) {
1510 if (other == com.google.ortools.sat.CpSolverResponse.getDefaultInstance()) return this;
1511 if (other.status_ != 0) {
1512 setStatusValue(other.getStatusValue());
1513 }
1514 if (!other.solution_.isEmpty()) {
1515 if (solution_.isEmpty()) {
1516 solution_ = other.solution_;
1517 solution_.makeImmutable();
1518 bitField0_ |= 0x00000002;
1519 } else {
1520 ensureSolutionIsMutable();
1521 solution_.addAll(other.solution_);
1522 }
1523 onChanged();
1524 }
1525 if (other.getObjectiveValue() != 0D) {
1526 setObjectiveValue(other.getObjectiveValue());
1527 }
1528 if (other.getBestObjectiveBound() != 0D) {
1529 setBestObjectiveBound(other.getBestObjectiveBound());
1530 }
1531 if (additionalSolutionsBuilder_ == null) {
1532 if (!other.additionalSolutions_.isEmpty()) {
1533 if (additionalSolutions_.isEmpty()) {
1534 additionalSolutions_ = other.additionalSolutions_;
1535 bitField0_ = (bitField0_ & ~0x00000010);
1536 } else {
1537 ensureAdditionalSolutionsIsMutable();
1538 additionalSolutions_.addAll(other.additionalSolutions_);
1539 }
1540 onChanged();
1541 }
1542 } else {
1543 if (!other.additionalSolutions_.isEmpty()) {
1544 if (additionalSolutionsBuilder_.isEmpty()) {
1545 additionalSolutionsBuilder_.dispose();
1546 additionalSolutionsBuilder_ = null;
1547 additionalSolutions_ = other.additionalSolutions_;
1548 bitField0_ = (bitField0_ & ~0x00000010);
1549 additionalSolutionsBuilder_ =
1550 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
1551 getAdditionalSolutionsFieldBuilder() : null;
1552 } else {
1553 additionalSolutionsBuilder_.addAllMessages(other.additionalSolutions_);
1554 }
1555 }
1556 }
1557 if (tightenedVariablesBuilder_ == null) {
1558 if (!other.tightenedVariables_.isEmpty()) {
1559 if (tightenedVariables_.isEmpty()) {
1560 tightenedVariables_ = other.tightenedVariables_;
1561 bitField0_ = (bitField0_ & ~0x00000020);
1562 } else {
1563 ensureTightenedVariablesIsMutable();
1564 tightenedVariables_.addAll(other.tightenedVariables_);
1565 }
1566 onChanged();
1567 }
1568 } else {
1569 if (!other.tightenedVariables_.isEmpty()) {
1570 if (tightenedVariablesBuilder_.isEmpty()) {
1571 tightenedVariablesBuilder_.dispose();
1572 tightenedVariablesBuilder_ = null;
1573 tightenedVariables_ = other.tightenedVariables_;
1574 bitField0_ = (bitField0_ & ~0x00000020);
1575 tightenedVariablesBuilder_ =
1576 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
1577 getTightenedVariablesFieldBuilder() : null;
1578 } else {
1579 tightenedVariablesBuilder_.addAllMessages(other.tightenedVariables_);
1580 }
1581 }
1582 }
1583 if (!other.sufficientAssumptionsForInfeasibility_.isEmpty()) {
1584 if (sufficientAssumptionsForInfeasibility_.isEmpty()) {
1585 sufficientAssumptionsForInfeasibility_ = other.sufficientAssumptionsForInfeasibility_;
1586 sufficientAssumptionsForInfeasibility_.makeImmutable();
1587 bitField0_ |= 0x00000040;
1588 } else {
1589 ensureSufficientAssumptionsForInfeasibilityIsMutable();
1590 sufficientAssumptionsForInfeasibility_.addAll(other.sufficientAssumptionsForInfeasibility_);
1591 }
1592 onChanged();
1593 }
1594 if (other.hasIntegerObjective()) {
1595 mergeIntegerObjective(other.getIntegerObjective());
1596 }
1597 if (other.getInnerObjectiveLowerBound() != 0L) {
1598 setInnerObjectiveLowerBound(other.getInnerObjectiveLowerBound());
1599 }
1600 if (other.getNumIntegers() != 0L) {
1601 setNumIntegers(other.getNumIntegers());
1602 }
1603 if (other.getNumBooleans() != 0L) {
1604 setNumBooleans(other.getNumBooleans());
1605 }
1606 if (other.getNumFixedBooleans() != 0L) {
1607 setNumFixedBooleans(other.getNumFixedBooleans());
1608 }
1609 if (other.getNumConflicts() != 0L) {
1610 setNumConflicts(other.getNumConflicts());
1611 }
1612 if (other.getNumBranches() != 0L) {
1613 setNumBranches(other.getNumBranches());
1614 }
1615 if (other.getNumBinaryPropagations() != 0L) {
1616 setNumBinaryPropagations(other.getNumBinaryPropagations());
1617 }
1618 if (other.getNumIntegerPropagations() != 0L) {
1619 setNumIntegerPropagations(other.getNumIntegerPropagations());
1620 }
1621 if (other.getNumRestarts() != 0L) {
1622 setNumRestarts(other.getNumRestarts());
1623 }
1624 if (other.getNumLpIterations() != 0L) {
1625 setNumLpIterations(other.getNumLpIterations());
1626 }
1627 if (other.getWallTime() != 0D) {
1628 setWallTime(other.getWallTime());
1629 }
1630 if (other.getUserTime() != 0D) {
1631 setUserTime(other.getUserTime());
1632 }
1633 if (other.getDeterministicTime() != 0D) {
1634 setDeterministicTime(other.getDeterministicTime());
1635 }
1636 if (other.getGapIntegral() != 0D) {
1637 setGapIntegral(other.getGapIntegral());
1638 }
1639 if (!other.getSolutionInfo().isEmpty()) {
1640 solutionInfo_ = other.solutionInfo_;
1641 bitField0_ |= 0x00400000;
1642 onChanged();
1643 }
1644 if (!other.getSolveLog().isEmpty()) {
1645 solveLog_ = other.solveLog_;
1646 bitField0_ |= 0x00800000;
1647 onChanged();
1648 }
1649 this.mergeUnknownFields(other.getUnknownFields());
1650 onChanged();
1651 return this;
1652 }
1653
1654 @java.lang.Override
1655 public final boolean isInitialized() {
1656 return true;
1657 }
1658
1659 @java.lang.Override
1660 public Builder mergeFrom(
1661 com.google.protobuf.CodedInputStream input,
1662 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1663 throws java.io.IOException {
1664 if (extensionRegistry == null) {
1665 throw new java.lang.NullPointerException();
1666 }
1667 try {
1668 boolean done = false;
1669 while (!done) {
1670 int tag = input.readTag();
1671 switch (tag) {
1672 case 0:
1673 done = true;
1674 break;
1675 case 8: {
1676 status_ = input.readEnum();
1677 bitField0_ |= 0x00000001;
1678 break;
1679 } // case 8
1680 case 16: {
1681 long v = input.readInt64();
1682 ensureSolutionIsMutable();
1683 solution_.addLong(v);
1684 break;
1685 } // case 16
1686 case 18: {
1687 int length = input.readRawVarint32();
1688 int limit = input.pushLimit(length);
1689 ensureSolutionIsMutable();
1690 while (input.getBytesUntilLimit() > 0) {
1691 solution_.addLong(input.readInt64());
1692 }
1693 input.popLimit(limit);
1694 break;
1695 } // case 18
1696 case 25: {
1697 objectiveValue_ = input.readDouble();
1698 bitField0_ |= 0x00000004;
1699 break;
1700 } // case 25
1701 case 33: {
1702 bestObjectiveBound_ = input.readDouble();
1703 bitField0_ |= 0x00000008;
1704 break;
1705 } // case 33
1706 case 80: {
1707 numBooleans_ = input.readInt64();
1708 bitField0_ |= 0x00000400;
1709 break;
1710 } // case 80
1711 case 88: {
1712 numConflicts_ = input.readInt64();
1713 bitField0_ |= 0x00001000;
1714 break;
1715 } // case 88
1716 case 96: {
1717 numBranches_ = input.readInt64();
1718 bitField0_ |= 0x00002000;
1719 break;
1720 } // case 96
1721 case 104: {
1722 numBinaryPropagations_ = input.readInt64();
1723 bitField0_ |= 0x00004000;
1724 break;
1725 } // case 104
1726 case 112: {
1727 numIntegerPropagations_ = input.readInt64();
1728 bitField0_ |= 0x00008000;
1729 break;
1730 } // case 112
1731 case 121: {
1732 wallTime_ = input.readDouble();
1733 bitField0_ |= 0x00040000;
1734 break;
1735 } // case 121
1736 case 129: {
1737 userTime_ = input.readDouble();
1738 bitField0_ |= 0x00080000;
1739 break;
1740 } // case 129
1741 case 137: {
1742 deterministicTime_ = input.readDouble();
1743 bitField0_ |= 0x00100000;
1744 break;
1745 } // case 137
1746 case 162: {
1747 solutionInfo_ = input.readStringRequireUtf8();
1748 bitField0_ |= 0x00400000;
1749 break;
1750 } // case 162
1751 case 170: {
1753 input.readMessage(
1754 com.google.ortools.sat.IntegerVariableProto.parser(),
1755 extensionRegistry);
1756 if (tightenedVariablesBuilder_ == null) {
1757 ensureTightenedVariablesIsMutable();
1758 tightenedVariables_.add(m);
1759 } else {
1760 tightenedVariablesBuilder_.addMessage(m);
1761 }
1762 break;
1763 } // case 170
1764 case 177: {
1765 gapIntegral_ = input.readDouble();
1766 bitField0_ |= 0x00200000;
1767 break;
1768 } // case 177
1769 case 184: {
1770 int v = input.readInt32();
1771 ensureSufficientAssumptionsForInfeasibilityIsMutable();
1772 sufficientAssumptionsForInfeasibility_.addInt(v);
1773 break;
1774 } // case 184
1775 case 186: {
1776 int length = input.readRawVarint32();
1777 int limit = input.pushLimit(length);
1778 ensureSufficientAssumptionsForInfeasibilityIsMutable();
1779 while (input.getBytesUntilLimit() > 0) {
1780 sufficientAssumptionsForInfeasibility_.addInt(input.readInt32());
1781 }
1782 input.popLimit(limit);
1783 break;
1784 } // case 186
1785 case 192: {
1786 numRestarts_ = input.readInt64();
1787 bitField0_ |= 0x00010000;
1788 break;
1789 } // case 192
1790 case 200: {
1791 numLpIterations_ = input.readInt64();
1792 bitField0_ |= 0x00020000;
1793 break;
1794 } // case 200
1795 case 210: {
1796 solveLog_ = input.readStringRequireUtf8();
1797 bitField0_ |= 0x00800000;
1798 break;
1799 } // case 210
1800 case 218: {
1802 input.readMessage(
1803 com.google.ortools.sat.CpSolverSolution.parser(),
1804 extensionRegistry);
1805 if (additionalSolutionsBuilder_ == null) {
1806 ensureAdditionalSolutionsIsMutable();
1807 additionalSolutions_.add(m);
1808 } else {
1809 additionalSolutionsBuilder_.addMessage(m);
1810 }
1811 break;
1812 } // case 218
1813 case 226: {
1814 input.readMessage(
1815 getIntegerObjectiveFieldBuilder().getBuilder(),
1816 extensionRegistry);
1817 bitField0_ |= 0x00000080;
1818 break;
1819 } // case 226
1820 case 232: {
1821 innerObjectiveLowerBound_ = input.readInt64();
1822 bitField0_ |= 0x00000100;
1823 break;
1824 } // case 232
1825 case 240: {
1826 numIntegers_ = input.readInt64();
1827 bitField0_ |= 0x00000200;
1828 break;
1829 } // case 240
1830 case 248: {
1831 numFixedBooleans_ = input.readInt64();
1832 bitField0_ |= 0x00000800;
1833 break;
1834 } // case 248
1835 default: {
1836 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1837 done = true; // was an endgroup tag
1838 }
1839 break;
1840 } // default:
1841 } // switch (tag)
1842 } // while (!done)
1843 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1844 throw e.unwrapIOException();
1845 } finally {
1846 onChanged();
1847 } // finally
1848 return this;
1849 }
1850 private int bitField0_;
1851
1852 private int status_ = 0;
1861 @java.lang.Override public int getStatusValue() {
1862 return status_;
1863 }
1864
1873 public Builder setStatusValue(int value) {
1874 status_ = value;
1875 bitField0_ |= 0x00000001;
1876 onChanged();
1877 return this;
1878 }
1879
1887 @java.lang.Override
1889 com.google.ortools.sat.CpSolverStatus result = com.google.ortools.sat.CpSolverStatus.forNumber(status_);
1890 return result == null ? com.google.ortools.sat.CpSolverStatus.UNRECOGNIZED : result;
1891 }
1892
1901 public Builder setStatus(com.google.ortools.sat.CpSolverStatus value) {
1902 if (value == null) {
1903 throw new NullPointerException();
1904 }
1905 bitField0_ |= 0x00000001;
1906 status_ = value.getNumber();
1907 onChanged();
1908 return this;
1909 }
1910
1918 public Builder clearStatus() {
1919 bitField0_ = (bitField0_ & ~0x00000001);
1920 status_ = 0;
1921 onChanged();
1922 return this;
1923 }
1924
1925 private com.google.protobuf.Internal.LongList solution_ = emptyLongList();
1926 private void ensureSolutionIsMutable() {
1927 if (!solution_.isModifiable()) {
1928 solution_ = makeMutableCopy(solution_);
1929 }
1930 bitField0_ |= 0x00000002;
1931 }
1943 public java.util.List<java.lang.Long>
1945 solution_.makeImmutable();
1946 return solution_;
1947 }
1948
1959 public int getSolutionCount() {
1960 return solution_.size();
1961 }
1962
1974 public long getSolution(int index) {
1975 return solution_.getLong(index);
1976 }
1977
1990 public Builder setSolution(
1991 int index, long value) {
1992
1993 ensureSolutionIsMutable();
1994 solution_.setLong(index, value);
1995 bitField0_ |= 0x00000002;
1996 onChanged();
1997 return this;
1998 }
1999
2011 public Builder addSolution(long value) {
2012
2013 ensureSolutionIsMutable();
2014 solution_.addLong(value);
2015 bitField0_ |= 0x00000002;
2016 onChanged();
2017 return this;
2018 }
2019
2031 public Builder addAllSolution(
2032 java.lang.Iterable<? extends java.lang.Long> values) {
2033 ensureSolutionIsMutable();
2034 com.google.protobuf.AbstractMessageLite.Builder.addAll(
2035 values, solution_);
2036 bitField0_ |= 0x00000002;
2037 onChanged();
2038 return this;
2039 }
2040
2051 public Builder clearSolution() {
2052 solution_ = emptyLongList();
2053 bitField0_ = (bitField0_ & ~0x00000002);
2054 onChanged();
2055 return this;
2056 }
2057
2058 private double objectiveValue_ ;
2070 @java.lang.Override
2071 public double getObjectiveValue() {
2072 return objectiveValue_;
2073 }
2074
2086 public Builder setObjectiveValue(double value) {
2087
2088 objectiveValue_ = value;
2089 bitField0_ |= 0x00000004;
2090 onChanged();
2091 return this;
2092 }
2093
2104 public Builder clearObjectiveValue() {
2105 bitField0_ = (bitField0_ & ~0x00000004);
2106 objectiveValue_ = 0D;
2107 onChanged();
2108 return this;
2109 }
2110
2111 private double bestObjectiveBound_ ;
2122 @java.lang.Override
2123 public double getBestObjectiveBound() {
2124 return bestObjectiveBound_;
2125 }
2126
2137 public Builder setBestObjectiveBound(double value) {
2138
2139 bestObjectiveBound_ = value;
2140 bitField0_ |= 0x00000008;
2141 onChanged();
2142 return this;
2143 }
2144
2154 public Builder clearBestObjectiveBound() {
2155 bitField0_ = (bitField0_ & ~0x00000008);
2156 bestObjectiveBound_ = 0D;
2157 onChanged();
2158 return this;
2159 }
2160
2161 private java.util.List<com.google.ortools.sat.CpSolverSolution> additionalSolutions_ =
2162 java.util.Collections.emptyList();
2163 private void ensureAdditionalSolutionsIsMutable() {
2164 if (!((bitField0_ & 0x00000010) != 0)) {
2165 additionalSolutions_ = new java.util.ArrayList<com.google.ortools.sat.CpSolverSolution>(additionalSolutions_);
2166 bitField0_ |= 0x00000010;
2167 }
2168 }
2169
2170 private com.google.protobuf.RepeatedFieldBuilder<
2171 com.google.ortools.sat.CpSolverSolution, com.google.ortools.sat.CpSolverSolution.Builder, com.google.ortools.sat.CpSolverSolutionOrBuilder> additionalSolutionsBuilder_;
2172
2185 public java.util.List<com.google.ortools.sat.CpSolverSolution> getAdditionalSolutionsList() {
2186 if (additionalSolutionsBuilder_ == null) {
2187 return java.util.Collections.unmodifiableList(additionalSolutions_);
2188 } else {
2189 return additionalSolutionsBuilder_.getMessageList();
2190 }
2191 }
2192
2205 if (additionalSolutionsBuilder_ == null) {
2206 return additionalSolutions_.size();
2207 } else {
2208 return additionalSolutionsBuilder_.getCount();
2209 }
2210 }
2211
2224 if (additionalSolutionsBuilder_ == null) {
2225 return additionalSolutions_.get(index);
2226 } else {
2227 return additionalSolutionsBuilder_.getMessage(index);
2228 }
2229 }
2230
2243 int index, com.google.ortools.sat.CpSolverSolution value) {
2244 if (additionalSolutionsBuilder_ == null) {
2245 if (value == null) {
2246 throw new NullPointerException();
2247 }
2248 ensureAdditionalSolutionsIsMutable();
2249 additionalSolutions_.set(index, value);
2250 onChanged();
2251 } else {
2252 additionalSolutionsBuilder_.setMessage(index, value);
2253 }
2254 return this;
2255 }
2256
2269 int index, com.google.ortools.sat.CpSolverSolution.Builder builderForValue) {
2270 if (additionalSolutionsBuilder_ == null) {
2271 ensureAdditionalSolutionsIsMutable();
2272 additionalSolutions_.set(index, builderForValue.build());
2273 onChanged();
2274 } else {
2275 additionalSolutionsBuilder_.setMessage(index, builderForValue.build());
2276 }
2277 return this;
2278 }
2279
2291 public Builder addAdditionalSolutions(com.google.ortools.sat.CpSolverSolution value) {
2292 if (additionalSolutionsBuilder_ == null) {
2293 if (value == null) {
2294 throw new NullPointerException();
2295 }
2296 ensureAdditionalSolutionsIsMutable();
2297 additionalSolutions_.add(value);
2298 onChanged();
2299 } else {
2300 additionalSolutionsBuilder_.addMessage(value);
2301 }
2302 return this;
2303 }
2304
2317 int index, com.google.ortools.sat.CpSolverSolution value) {
2318 if (additionalSolutionsBuilder_ == null) {
2319 if (value == null) {
2320 throw new NullPointerException();
2321 }
2322 ensureAdditionalSolutionsIsMutable();
2323 additionalSolutions_.add(index, value);
2324 onChanged();
2325 } else {
2326 additionalSolutionsBuilder_.addMessage(index, value);
2327 }
2328 return this;
2329 }
2330
2343 com.google.ortools.sat.CpSolverSolution.Builder builderForValue) {
2344 if (additionalSolutionsBuilder_ == null) {
2345 ensureAdditionalSolutionsIsMutable();
2346 additionalSolutions_.add(builderForValue.build());
2347 onChanged();
2348 } else {
2349 additionalSolutionsBuilder_.addMessage(builderForValue.build());
2350 }
2351 return this;
2352 }
2353
2366 int index, com.google.ortools.sat.CpSolverSolution.Builder builderForValue) {
2367 if (additionalSolutionsBuilder_ == null) {
2368 ensureAdditionalSolutionsIsMutable();
2369 additionalSolutions_.add(index, builderForValue.build());
2370 onChanged();
2371 } else {
2372 additionalSolutionsBuilder_.addMessage(index, builderForValue.build());
2373 }
2374 return this;
2375 }
2376
2389 java.lang.Iterable<? extends com.google.ortools.sat.CpSolverSolution> values) {
2390 if (additionalSolutionsBuilder_ == null) {
2391 ensureAdditionalSolutionsIsMutable();
2392 com.google.protobuf.AbstractMessageLite.Builder.addAll(
2393 values, additionalSolutions_);
2394 onChanged();
2395 } else {
2396 additionalSolutionsBuilder_.addAllMessages(values);
2397 }
2398 return this;
2399 }
2400
2412 public Builder clearAdditionalSolutions() {
2413 if (additionalSolutionsBuilder_ == null) {
2414 additionalSolutions_ = java.util.Collections.emptyList();
2415 bitField0_ = (bitField0_ & ~0x00000010);
2416 onChanged();
2417 } else {
2418 additionalSolutionsBuilder_.clear();
2419 }
2420 return this;
2421 }
2422
2434 public Builder removeAdditionalSolutions(int index) {
2435 if (additionalSolutionsBuilder_ == null) {
2436 ensureAdditionalSolutionsIsMutable();
2437 additionalSolutions_.remove(index);
2438 onChanged();
2439 } else {
2440 additionalSolutionsBuilder_.remove(index);
2441 }
2442 return this;
2443 }
2444
2457 int index) {
2458 return getAdditionalSolutionsFieldBuilder().getBuilder(index);
2459 }
2460
2473 int index) {
2474 if (additionalSolutionsBuilder_ == null) {
2475 return additionalSolutions_.get(index); } else {
2476 return additionalSolutionsBuilder_.getMessageOrBuilder(index);
2477 }
2478 }
2479
2491 public java.util.List<? extends com.google.ortools.sat.CpSolverSolutionOrBuilder>
2493 if (additionalSolutionsBuilder_ != null) {
2494 return additionalSolutionsBuilder_.getMessageOrBuilderList();
2495 } else {
2496 return java.util.Collections.unmodifiableList(additionalSolutions_);
2497 }
2498 }
2499
2512 return getAdditionalSolutionsFieldBuilder().addBuilder(
2513 com.google.ortools.sat.CpSolverSolution.getDefaultInstance());
2514 }
2515
2528 int index) {
2529 return getAdditionalSolutionsFieldBuilder().addBuilder(
2530 index, com.google.ortools.sat.CpSolverSolution.getDefaultInstance());
2531 }
2532
2544 public java.util.List<com.google.ortools.sat.CpSolverSolution.Builder>
2546 return getAdditionalSolutionsFieldBuilder().getBuilderList();
2547 }
2548 private com.google.protobuf.RepeatedFieldBuilder<
2549 com.google.ortools.sat.CpSolverSolution, com.google.ortools.sat.CpSolverSolution.Builder, com.google.ortools.sat.CpSolverSolutionOrBuilder>
2550 getAdditionalSolutionsFieldBuilder() {
2551 if (additionalSolutionsBuilder_ == null) {
2552 additionalSolutionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
2553 com.google.ortools.sat.CpSolverSolution, com.google.ortools.sat.CpSolverSolution.Builder, com.google.ortools.sat.CpSolverSolutionOrBuilder>(
2554 additionalSolutions_,
2555 ((bitField0_ & 0x00000010) != 0),
2556 getParentForChildren(),
2557 isClean());
2558 additionalSolutions_ = null;
2559 }
2560 return additionalSolutionsBuilder_;
2561 }
2562
2563 private java.util.List<com.google.ortools.sat.IntegerVariableProto> tightenedVariables_ =
2564 java.util.Collections.emptyList();
2565 private void ensureTightenedVariablesIsMutable() {
2566 if (!((bitField0_ & 0x00000020) != 0)) {
2567 tightenedVariables_ = new java.util.ArrayList<com.google.ortools.sat.IntegerVariableProto>(tightenedVariables_);
2568 bitField0_ |= 0x00000020;
2569 }
2570 }
2571
2572 private com.google.protobuf.RepeatedFieldBuilder<
2573 com.google.ortools.sat.IntegerVariableProto, com.google.ortools.sat.IntegerVariableProto.Builder, com.google.ortools.sat.IntegerVariableProtoOrBuilder> tightenedVariablesBuilder_;
2574
2597 public java.util.List<com.google.ortools.sat.IntegerVariableProto> getTightenedVariablesList() {
2598 if (tightenedVariablesBuilder_ == null) {
2599 return java.util.Collections.unmodifiableList(tightenedVariables_);
2600 } else {
2601 return tightenedVariablesBuilder_.getMessageList();
2602 }
2603 }
2604
2627 if (tightenedVariablesBuilder_ == null) {
2628 return tightenedVariables_.size();
2629 } else {
2630 return tightenedVariablesBuilder_.getCount();
2631 }
2632 }
2633
2656 if (tightenedVariablesBuilder_ == null) {
2657 return tightenedVariables_.get(index);
2658 } else {
2659 return tightenedVariablesBuilder_.getMessage(index);
2660 }
2661 }
2662
2685 int index, com.google.ortools.sat.IntegerVariableProto value) {
2686 if (tightenedVariablesBuilder_ == null) {
2687 if (value == null) {
2688 throw new NullPointerException();
2689 }
2690 ensureTightenedVariablesIsMutable();
2691 tightenedVariables_.set(index, value);
2692 onChanged();
2693 } else {
2694 tightenedVariablesBuilder_.setMessage(index, value);
2695 }
2696 return this;
2697 }
2698
2721 int index, com.google.ortools.sat.IntegerVariableProto.Builder builderForValue) {
2722 if (tightenedVariablesBuilder_ == null) {
2723 ensureTightenedVariablesIsMutable();
2724 tightenedVariables_.set(index, builderForValue.build());
2725 onChanged();
2726 } else {
2727 tightenedVariablesBuilder_.setMessage(index, builderForValue.build());
2728 }
2729 return this;
2730 }
2731
2753 public Builder addTightenedVariables(com.google.ortools.sat.IntegerVariableProto value) {
2754 if (tightenedVariablesBuilder_ == null) {
2755 if (value == null) {
2756 throw new NullPointerException();
2757 }
2758 ensureTightenedVariablesIsMutable();
2759 tightenedVariables_.add(value);
2760 onChanged();
2761 } else {
2762 tightenedVariablesBuilder_.addMessage(value);
2763 }
2764 return this;
2765 }
2766
2789 int index, com.google.ortools.sat.IntegerVariableProto value) {
2790 if (tightenedVariablesBuilder_ == null) {
2791 if (value == null) {
2792 throw new NullPointerException();
2793 }
2794 ensureTightenedVariablesIsMutable();
2795 tightenedVariables_.add(index, value);
2796 onChanged();
2797 } else {
2798 tightenedVariablesBuilder_.addMessage(index, value);
2799 }
2800 return this;
2801 }
2802
2825 com.google.ortools.sat.IntegerVariableProto.Builder builderForValue) {
2826 if (tightenedVariablesBuilder_ == null) {
2827 ensureTightenedVariablesIsMutable();
2828 tightenedVariables_.add(builderForValue.build());
2829 onChanged();
2830 } else {
2831 tightenedVariablesBuilder_.addMessage(builderForValue.build());
2832 }
2833 return this;
2834 }
2835
2858 int index, com.google.ortools.sat.IntegerVariableProto.Builder builderForValue) {
2859 if (tightenedVariablesBuilder_ == null) {
2860 ensureTightenedVariablesIsMutable();
2861 tightenedVariables_.add(index, builderForValue.build());
2862 onChanged();
2863 } else {
2864 tightenedVariablesBuilder_.addMessage(index, builderForValue.build());
2865 }
2866 return this;
2867 }
2868
2891 java.lang.Iterable<? extends com.google.ortools.sat.IntegerVariableProto> values) {
2892 if (tightenedVariablesBuilder_ == null) {
2893 ensureTightenedVariablesIsMutable();
2894 com.google.protobuf.AbstractMessageLite.Builder.addAll(
2895 values, tightenedVariables_);
2896 onChanged();
2897 } else {
2898 tightenedVariablesBuilder_.addAllMessages(values);
2899 }
2900 return this;
2901 }
2902
2924 public Builder clearTightenedVariables() {
2925 if (tightenedVariablesBuilder_ == null) {
2926 tightenedVariables_ = java.util.Collections.emptyList();
2927 bitField0_ = (bitField0_ & ~0x00000020);
2928 onChanged();
2929 } else {
2930 tightenedVariablesBuilder_.clear();
2931 }
2932 return this;
2933 }
2934
2956 public Builder removeTightenedVariables(int index) {
2957 if (tightenedVariablesBuilder_ == null) {
2958 ensureTightenedVariablesIsMutable();
2959 tightenedVariables_.remove(index);
2960 onChanged();
2961 } else {
2962 tightenedVariablesBuilder_.remove(index);
2963 }
2964 return this;
2965 }
2966
2989 int index) {
2990 return getTightenedVariablesFieldBuilder().getBuilder(index);
2991 }
2992
3015 int index) {
3016 if (tightenedVariablesBuilder_ == null) {
3017 return tightenedVariables_.get(index); } else {
3018 return tightenedVariablesBuilder_.getMessageOrBuilder(index);
3019 }
3020 }
3021
3043 public java.util.List<? extends com.google.ortools.sat.IntegerVariableProtoOrBuilder>
3045 if (tightenedVariablesBuilder_ != null) {
3046 return tightenedVariablesBuilder_.getMessageOrBuilderList();
3047 } else {
3048 return java.util.Collections.unmodifiableList(tightenedVariables_);
3049 }
3050 }
3051
3074 return getTightenedVariablesFieldBuilder().addBuilder(
3075 com.google.ortools.sat.IntegerVariableProto.getDefaultInstance());
3076 }
3077
3100 int index) {
3101 return getTightenedVariablesFieldBuilder().addBuilder(
3102 index, com.google.ortools.sat.IntegerVariableProto.getDefaultInstance());
3103 }
3104
3126 public java.util.List<com.google.ortools.sat.IntegerVariableProto.Builder>
3128 return getTightenedVariablesFieldBuilder().getBuilderList();
3129 }
3130 private com.google.protobuf.RepeatedFieldBuilder<
3131 com.google.ortools.sat.IntegerVariableProto, com.google.ortools.sat.IntegerVariableProto.Builder, com.google.ortools.sat.IntegerVariableProtoOrBuilder>
3132 getTightenedVariablesFieldBuilder() {
3133 if (tightenedVariablesBuilder_ == null) {
3134 tightenedVariablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
3135 com.google.ortools.sat.IntegerVariableProto, com.google.ortools.sat.IntegerVariableProto.Builder, com.google.ortools.sat.IntegerVariableProtoOrBuilder>(
3136 tightenedVariables_,
3137 ((bitField0_ & 0x00000020) != 0),
3138 getParentForChildren(),
3139 isClean());
3140 tightenedVariables_ = null;
3141 }
3142 return tightenedVariablesBuilder_;
3143 }
3144
3145 private com.google.protobuf.Internal.IntList sufficientAssumptionsForInfeasibility_ = emptyIntList();
3146 private void ensureSufficientAssumptionsForInfeasibilityIsMutable() {
3147 if (!sufficientAssumptionsForInfeasibility_.isModifiable()) {
3148 sufficientAssumptionsForInfeasibility_ = makeMutableCopy(sufficientAssumptionsForInfeasibility_);
3149 }
3150 bitField0_ |= 0x00000040;
3151 }
3178 public java.util.List<java.lang.Integer>
3180 sufficientAssumptionsForInfeasibility_.makeImmutable();
3181 return sufficientAssumptionsForInfeasibility_;
3182 }
3183
3210 return sufficientAssumptionsForInfeasibility_.size();
3211 }
3212
3240 return sufficientAssumptionsForInfeasibility_.getInt(index);
3241 }
3242
3271 int index, int value) {
3272
3273 ensureSufficientAssumptionsForInfeasibilityIsMutable();
3274 sufficientAssumptionsForInfeasibility_.setInt(index, value);
3275 bitField0_ |= 0x00000040;
3276 onChanged();
3277 return this;
3278 }
3279
3307
3308 ensureSufficientAssumptionsForInfeasibilityIsMutable();
3309 sufficientAssumptionsForInfeasibility_.addInt(value);
3310 bitField0_ |= 0x00000040;
3311 onChanged();
3312 return this;
3313 }
3314
3342 java.lang.Iterable<? extends java.lang.Integer> values) {
3343 ensureSufficientAssumptionsForInfeasibilityIsMutable();
3344 com.google.protobuf.AbstractMessageLite.Builder.addAll(
3345 values, sufficientAssumptionsForInfeasibility_);
3346 bitField0_ |= 0x00000040;
3347 onChanged();
3348 return this;
3349 }
3350
3377 sufficientAssumptionsForInfeasibility_ = emptyIntList();
3378 bitField0_ = (bitField0_ & ~0x00000040);
3379 onChanged();
3380 return this;
3381 }
3382
3383 private com.google.ortools.sat.CpObjectiveProto integerObjective_;
3384 private com.google.protobuf.SingleFieldBuilder<
3385 com.google.ortools.sat.CpObjectiveProto, com.google.ortools.sat.CpObjectiveProto.Builder, com.google.ortools.sat.CpObjectiveProtoOrBuilder> integerObjectiveBuilder_;
3396 public boolean hasIntegerObjective() {
3397 return ((bitField0_ & 0x00000080) != 0);
3398 }
3399
3410 if (integerObjectiveBuilder_ == null) {
3411 return integerObjective_ == null ? com.google.ortools.sat.CpObjectiveProto.getDefaultInstance() : integerObjective_;
3412 } else {
3413 return integerObjectiveBuilder_.getMessage();
3414 }
3415 }
3416
3425 public Builder setIntegerObjective(com.google.ortools.sat.CpObjectiveProto value) {
3426 if (integerObjectiveBuilder_ == null) {
3427 if (value == null) {
3428 throw new NullPointerException();
3429 }
3430 integerObjective_ = value;
3431 } else {
3432 integerObjectiveBuilder_.setMessage(value);
3433 }
3434 bitField0_ |= 0x00000080;
3435 onChanged();
3436 return this;
3437 }
3438
3447 public Builder setIntegerObjective(
3448 com.google.ortools.sat.CpObjectiveProto.Builder builderForValue) {
3449 if (integerObjectiveBuilder_ == null) {
3450 integerObjective_ = builderForValue.build();
3451 } else {
3452 integerObjectiveBuilder_.setMessage(builderForValue.build());
3453 }
3454 bitField0_ |= 0x00000080;
3455 onChanged();
3456 return this;
3457 }
3458
3467 public Builder mergeIntegerObjective(com.google.ortools.sat.CpObjectiveProto value) {
3468 if (integerObjectiveBuilder_ == null) {
3469 if (((bitField0_ & 0x00000080) != 0) &&
3470 integerObjective_ != null &&
3471 integerObjective_ != com.google.ortools.sat.CpObjectiveProto.getDefaultInstance()) {
3472 getIntegerObjectiveBuilder().mergeFrom(value);
3473 } else {
3474 integerObjective_ = value;
3475 }
3476 } else {
3477 integerObjectiveBuilder_.mergeFrom(value);
3478 }
3479 if (integerObjective_ != null) {
3480 bitField0_ |= 0x00000080;
3481 onChanged();
3482 }
3483 return this;
3484 }
3485
3494 public Builder clearIntegerObjective() {
3495 bitField0_ = (bitField0_ & ~0x00000080);
3496 integerObjective_ = null;
3497 if (integerObjectiveBuilder_ != null) {
3498 integerObjectiveBuilder_.dispose();
3499 integerObjectiveBuilder_ = null;
3500 }
3501 onChanged();
3502 return this;
3503 }
3504
3514 bitField0_ |= 0x00000080;
3515 onChanged();
3516 return getIntegerObjectiveFieldBuilder().getBuilder();
3517 }
3518
3528 if (integerObjectiveBuilder_ != null) {
3529 return integerObjectiveBuilder_.getMessageOrBuilder();
3530 } else {
3531 return integerObjective_ == null ?
3532 com.google.ortools.sat.CpObjectiveProto.getDefaultInstance() : integerObjective_;
3533 }
3534 }
3535
3544 private com.google.protobuf.SingleFieldBuilder<
3545 com.google.ortools.sat.CpObjectiveProto, com.google.ortools.sat.CpObjectiveProto.Builder, com.google.ortools.sat.CpObjectiveProtoOrBuilder>
3546 getIntegerObjectiveFieldBuilder() {
3547 if (integerObjectiveBuilder_ == null) {
3548 integerObjectiveBuilder_ = new com.google.protobuf.SingleFieldBuilder<
3549 com.google.ortools.sat.CpObjectiveProto, com.google.ortools.sat.CpObjectiveProto.Builder, com.google.ortools.sat.CpObjectiveProtoOrBuilder>(
3551 getParentForChildren(),
3552 isClean());
3553 integerObjective_ = null;
3554 }
3555 return integerObjectiveBuilder_;
3556 }
3557
3558 private long innerObjectiveLowerBound_ ;
3572 @java.lang.Override
3574 return innerObjectiveLowerBound_;
3575 }
3576
3590 public Builder setInnerObjectiveLowerBound(long value) {
3591
3592 innerObjectiveLowerBound_ = value;
3593 bitField0_ |= 0x00000100;
3594 onChanged();
3595 return this;
3596 }
3597
3611 bitField0_ = (bitField0_ & ~0x00000100);
3612 innerObjectiveLowerBound_ = 0L;
3613 onChanged();
3614 return this;
3615 }
3616
3617 private long numIntegers_ ;
3630 @java.lang.Override
3631 public long getNumIntegers() {
3632 return numIntegers_;
3633 }
3634
3647 public Builder setNumIntegers(long value) {
3648
3649 numIntegers_ = value;
3650 bitField0_ |= 0x00000200;
3651 onChanged();
3652 return this;
3653 }
3654
3666 public Builder clearNumIntegers() {
3667 bitField0_ = (bitField0_ & ~0x00000200);
3668 numIntegers_ = 0L;
3669 onChanged();
3670 return this;
3671 }
3672
3673 private long numBooleans_ ;
3678 @java.lang.Override
3679 public long getNumBooleans() {
3680 return numBooleans_;
3681 }
3682
3687 public Builder setNumBooleans(long value) {
3688
3689 numBooleans_ = value;
3690 bitField0_ |= 0x00000400;
3691 onChanged();
3692 return this;
3693 }
3694
3698 public Builder clearNumBooleans() {
3699 bitField0_ = (bitField0_ & ~0x00000400);
3700 numBooleans_ = 0L;
3701 onChanged();
3702 return this;
3703 }
3704
3705 private long numFixedBooleans_ ;
3710 @java.lang.Override
3711 public long getNumFixedBooleans() {
3712 return numFixedBooleans_;
3713 }
3714
3719 public Builder setNumFixedBooleans(long value) {
3720
3721 numFixedBooleans_ = value;
3722 bitField0_ |= 0x00000800;
3723 onChanged();
3724 return this;
3725 }
3726
3730 public Builder clearNumFixedBooleans() {
3731 bitField0_ = (bitField0_ & ~0x00000800);
3732 numFixedBooleans_ = 0L;
3733 onChanged();
3734 return this;
3735 }
3736
3737 private long numConflicts_ ;
3742 @java.lang.Override
3743 public long getNumConflicts() {
3744 return numConflicts_;
3745 }
3746
3751 public Builder setNumConflicts(long value) {
3752
3753 numConflicts_ = value;
3754 bitField0_ |= 0x00001000;
3755 onChanged();
3756 return this;
3757 }
3758
3762 public Builder clearNumConflicts() {
3763 bitField0_ = (bitField0_ & ~0x00001000);
3764 numConflicts_ = 0L;
3765 onChanged();
3766 return this;
3767 }
3768
3769 private long numBranches_ ;
3774 @java.lang.Override
3775 public long getNumBranches() {
3776 return numBranches_;
3777 }
3778
3783 public Builder setNumBranches(long value) {
3784
3785 numBranches_ = value;
3786 bitField0_ |= 0x00002000;
3787 onChanged();
3788 return this;
3789 }
3790
3794 public Builder clearNumBranches() {
3795 bitField0_ = (bitField0_ & ~0x00002000);
3796 numBranches_ = 0L;
3797 onChanged();
3798 return this;
3799 }
3800
3801 private long numBinaryPropagations_ ;
3806 @java.lang.Override
3808 return numBinaryPropagations_;
3809 }
3810
3815 public Builder setNumBinaryPropagations(long value) {
3816
3817 numBinaryPropagations_ = value;
3818 bitField0_ |= 0x00004000;
3819 onChanged();
3820 return this;
3821 }
3822
3827 bitField0_ = (bitField0_ & ~0x00004000);
3828 numBinaryPropagations_ = 0L;
3829 onChanged();
3830 return this;
3831 }
3832
3833 private long numIntegerPropagations_ ;
3838 @java.lang.Override
3840 return numIntegerPropagations_;
3841 }
3842
3847 public Builder setNumIntegerPropagations(long value) {
3848
3849 numIntegerPropagations_ = value;
3850 bitField0_ |= 0x00008000;
3851 onChanged();
3852 return this;
3853 }
3854
3859 bitField0_ = (bitField0_ & ~0x00008000);
3860 numIntegerPropagations_ = 0L;
3861 onChanged();
3862 return this;
3863 }
3864
3865 private long numRestarts_ ;
3870 @java.lang.Override
3871 public long getNumRestarts() {
3872 return numRestarts_;
3873 }
3874
3879 public Builder setNumRestarts(long value) {
3880
3881 numRestarts_ = value;
3882 bitField0_ |= 0x00010000;
3883 onChanged();
3884 return this;
3885 }
3886
3890 public Builder clearNumRestarts() {
3891 bitField0_ = (bitField0_ & ~0x00010000);
3892 numRestarts_ = 0L;
3893 onChanged();
3894 return this;
3895 }
3896
3897 private long numLpIterations_ ;
3902 @java.lang.Override
3903 public long getNumLpIterations() {
3904 return numLpIterations_;
3905 }
3906
3911 public Builder setNumLpIterations(long value) {
3912
3913 numLpIterations_ = value;
3914 bitField0_ |= 0x00020000;
3915 onChanged();
3916 return this;
3917 }
3918
3922 public Builder clearNumLpIterations() {
3923 bitField0_ = (bitField0_ & ~0x00020000);
3924 numLpIterations_ = 0L;
3925 onChanged();
3926 return this;
3927 }
3928
3929 private double wallTime_ ;
3938 @java.lang.Override
3939 public double getWallTime() {
3940 return wallTime_;
3941 }
3942
3951 public Builder setWallTime(double value) {
3952
3953 wallTime_ = value;
3954 bitField0_ |= 0x00040000;
3955 onChanged();
3956 return this;
3957 }
3958
3966 public Builder clearWallTime() {
3967 bitField0_ = (bitField0_ & ~0x00040000);
3968 wallTime_ = 0D;
3969 onChanged();
3970 return this;
3971 }
3972
3973 private double userTime_ ;
3978 @java.lang.Override
3979 public double getUserTime() {
3980 return userTime_;
3981 }
3982
3987 public Builder setUserTime(double value) {
3988
3989 userTime_ = value;
3990 bitField0_ |= 0x00080000;
3991 onChanged();
3992 return this;
3993 }
3994
3998 public Builder clearUserTime() {
3999 bitField0_ = (bitField0_ & ~0x00080000);
4000 userTime_ = 0D;
4001 onChanged();
4002 return this;
4003 }
4004
4005 private double deterministicTime_ ;
4010 @java.lang.Override
4011 public double getDeterministicTime() {
4012 return deterministicTime_;
4013 }
4014
4019 public Builder setDeterministicTime(double value) {
4020
4021 deterministicTime_ = value;
4022 bitField0_ |= 0x00100000;
4023 onChanged();
4024 return this;
4025 }
4026
4030 public Builder clearDeterministicTime() {
4031 bitField0_ = (bitField0_ & ~0x00100000);
4032 deterministicTime_ = 0D;
4033 onChanged();
4034 return this;
4035 }
4036
4037 private double gapIntegral_ ;
4046 @java.lang.Override
4047 public double getGapIntegral() {
4048 return gapIntegral_;
4049 }
4050
4059 public Builder setGapIntegral(double value) {
4060
4061 gapIntegral_ = value;
4062 bitField0_ |= 0x00200000;
4063 onChanged();
4064 return this;
4065 }
4066
4074 public Builder clearGapIntegral() {
4075 bitField0_ = (bitField0_ & ~0x00200000);
4076 gapIntegral_ = 0D;
4077 onChanged();
4078 return this;
4079 }
4080
4081 private java.lang.Object solutionInfo_ = "";
4091 public java.lang.String getSolutionInfo() {
4092 java.lang.Object ref = solutionInfo_;
4093 if (!(ref instanceof java.lang.String)) {
4094 com.google.protobuf.ByteString bs =
4095 (com.google.protobuf.ByteString) ref;
4096 java.lang.String s = bs.toStringUtf8();
4097 solutionInfo_ = s;
4098 return s;
4099 } else {
4100 return (java.lang.String) ref;
4101 }
4102 }
4103
4112 public com.google.protobuf.ByteString
4114 java.lang.Object ref = solutionInfo_;
4115 if (ref instanceof String) {
4116 com.google.protobuf.ByteString b =
4117 com.google.protobuf.ByteString.copyFromUtf8(
4118 (java.lang.String) ref);
4119 solutionInfo_ = b;
4120 return b;
4121 } else {
4122 return (com.google.protobuf.ByteString) ref;
4123 }
4124 }
4125
4135 public Builder setSolutionInfo(
4136 java.lang.String value) {
4137 if (value == null) { throw new NullPointerException(); }
4138 solutionInfo_ = value;
4139 bitField0_ |= 0x00400000;
4140 onChanged();
4141 return this;
4142 }
4143
4152 public Builder clearSolutionInfo() {
4153 solutionInfo_ = getDefaultInstance().getSolutionInfo();
4154 bitField0_ = (bitField0_ & ~0x00400000);
4155 onChanged();
4156 return this;
4157 }
4158
4168 public Builder setSolutionInfoBytes(
4169 com.google.protobuf.ByteString value) {
4170 if (value == null) { throw new NullPointerException(); }
4171 checkByteStringIsUtf8(value);
4172 solutionInfo_ = value;
4173 bitField0_ |= 0x00400000;
4174 onChanged();
4175 return this;
4176 }
4177
4178 private java.lang.Object solveLog_ = "";
4188 public java.lang.String getSolveLog() {
4189 java.lang.Object ref = solveLog_;
4190 if (!(ref instanceof java.lang.String)) {
4191 com.google.protobuf.ByteString bs =
4192 (com.google.protobuf.ByteString) ref;
4193 java.lang.String s = bs.toStringUtf8();
4194 solveLog_ = s;
4195 return s;
4196 } else {
4197 return (java.lang.String) ref;
4198 }
4199 }
4200
4209 public com.google.protobuf.ByteString
4211 java.lang.Object ref = solveLog_;
4212 if (ref instanceof String) {
4213 com.google.protobuf.ByteString b =
4214 com.google.protobuf.ByteString.copyFromUtf8(
4215 (java.lang.String) ref);
4216 solveLog_ = b;
4217 return b;
4218 } else {
4219 return (com.google.protobuf.ByteString) ref;
4220 }
4221 }
4222
4232 public Builder setSolveLog(
4233 java.lang.String value) {
4234 if (value == null) { throw new NullPointerException(); }
4235 solveLog_ = value;
4236 bitField0_ |= 0x00800000;
4237 onChanged();
4238 return this;
4239 }
4240
4249 public Builder clearSolveLog() {
4250 solveLog_ = getDefaultInstance().getSolveLog();
4251 bitField0_ = (bitField0_ & ~0x00800000);
4252 onChanged();
4253 return this;
4254 }
4255
4265 public Builder setSolveLogBytes(
4266 com.google.protobuf.ByteString value) {
4267 if (value == null) { throw new NullPointerException(); }
4268 checkByteStringIsUtf8(value);
4269 solveLog_ = value;
4270 bitField0_ |= 0x00800000;
4271 onChanged();
4272 return this;
4273 }
4274
4275 // @@protoc_insertion_point(builder_scope:operations_research.sat.CpSolverResponse)
4276 }
4277
4278 // @@protoc_insertion_point(class_scope:operations_research.sat.CpSolverResponse)
4279 private static final com.google.ortools.sat.CpSolverResponse DEFAULT_INSTANCE;
4280 static {
4281 DEFAULT_INSTANCE = new com.google.ortools.sat.CpSolverResponse();
4282 }
4283
4285 return DEFAULT_INSTANCE;
4286 }
4287
4288 private static final com.google.protobuf.Parser<CpSolverResponse>
4289 PARSER = new com.google.protobuf.AbstractParser<CpSolverResponse>() {
4290 @java.lang.Override
4291 public CpSolverResponse parsePartialFrom(
4292 com.google.protobuf.CodedInputStream input,
4293 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4294 throws com.google.protobuf.InvalidProtocolBufferException {
4295 Builder builder = newBuilder();
4296 try {
4297 builder.mergeFrom(input, extensionRegistry);
4298 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
4299 throw e.setUnfinishedMessage(builder.buildPartial());
4300 } catch (com.google.protobuf.UninitializedMessageException e) {
4301 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
4302 } catch (java.io.IOException e) {
4303 throw new com.google.protobuf.InvalidProtocolBufferException(e)
4304 .setUnfinishedMessage(builder.buildPartial());
4305 }
4306 return builder.buildPartial();
4307 }
4308 };
4309
4310 public static com.google.protobuf.Parser<CpSolverResponse> parser() {
4311 return PARSER;
4312 }
4313
4314 @java.lang.Override
4315 public com.google.protobuf.Parser<CpSolverResponse> getParserForType() {
4316 return PARSER;
4317 }
4318
4319 @java.lang.Override
4321 return DEFAULT_INSTANCE;
4322 }
4323
4324}
4325
com.google.ortools.sat.CpSolverSolution getAdditionalSolutions(int index)
com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
Builder setStatus(com.google.ortools.sat.CpSolverStatus value)
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)
java.util.List<? extends com.google.ortools.sat.IntegerVariableProtoOrBuilder > getTightenedVariablesOrBuilderList()
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()
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 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 mergeFrom(com.google.protobuf.Message other)
Builder addAllTightenedVariables(java.lang.Iterable<? extends com.google.ortools.sat.IntegerVariableProto > values)
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
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 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)
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)
Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
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()
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)
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
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()