Google OR-Tools v9.14
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.31.1
5
6package com.google.ortools.sat;
7
17@com.google.protobuf.Generated
18public final class CpSolverResponse extends
19 com.google.protobuf.GeneratedMessage implements
20 // @@protoc_insertion_point(message_implements:operations_research.sat.CpSolverResponse)
22private static final long serialVersionUID = 0L;
23 static {
24 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
25 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
26 /* major= */ 4,
27 /* minor= */ 31,
28 /* patch= */ 1,
29 /* suffix= */ "",
30 CpSolverResponse.class.getName());
31 }
32 // Use CpSolverResponse.newBuilder() to construct.
33 private CpSolverResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
34 super(builder);
35 }
36 private CpSolverResponse() {
37 status_ = 0;
38 solution_ = emptyLongList();
39 additionalSolutions_ = java.util.Collections.emptyList();
40 tightenedVariables_ = java.util.Collections.emptyList();
41 sufficientAssumptionsForInfeasibility_ = emptyIntList();
42 solutionInfo_ = "";
43 solveLog_ = "";
44 }
45
46 public static final com.google.protobuf.Descriptors.Descriptor
48 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_descriptor;
49 }
50
51 @java.lang.Override
52 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
54 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_fieldAccessorTable
55 .ensureFieldAccessorsInitialized(
56 com.google.ortools.sat.CpSolverResponse.class, com.google.ortools.sat.CpSolverResponse.Builder.class);
57 }
58
59 private int bitField0_;
60 public static final int STATUS_FIELD_NUMBER = 1;
61 private int status_ = 0;
70 @java.lang.Override public int getStatusValue() {
71 return status_;
72 }
73
81 @java.lang.Override public com.google.ortools.sat.CpSolverStatus getStatus() {
82 com.google.ortools.sat.CpSolverStatus result = com.google.ortools.sat.CpSolverStatus.forNumber(status_);
83 return result == null ? com.google.ortools.sat.CpSolverStatus.UNRECOGNIZED : result;
84 }
85
86 public static final int SOLUTION_FIELD_NUMBER = 2;
87 @SuppressWarnings("serial")
88 private com.google.protobuf.Internal.LongList solution_ =
89 emptyLongList();
101 @java.lang.Override
102 public java.util.List<java.lang.Long>
104 return solution_;
105 }
106
117 public int getSolutionCount() {
118 return solution_.size();
119 }
120
132 public long getSolution(int index) {
133 return solution_.getLong(index);
134 }
135 private int solutionMemoizedSerializedSize = -1;
136
137 public static final int OBJECTIVE_VALUE_FIELD_NUMBER = 3;
138 private double objectiveValue_ = 0D;
150 @java.lang.Override
151 public double getObjectiveValue() {
152 return objectiveValue_;
153 }
154
155 public static final int BEST_OBJECTIVE_BOUND_FIELD_NUMBER = 4;
156 private double bestObjectiveBound_ = 0D;
167 @java.lang.Override
168 public double getBestObjectiveBound() {
169 return bestObjectiveBound_;
170 }
171
172 public static final int ADDITIONAL_SOLUTIONS_FIELD_NUMBER = 27;
173 @SuppressWarnings("serial")
174 private java.util.List<com.google.ortools.sat.CpSolverSolution> additionalSolutions_;
187 @java.lang.Override
189 return additionalSolutions_;
190 }
191
203 @java.lang.Override
204 public java.util.List<? extends com.google.ortools.sat.CpSolverSolutionOrBuilder>
206 return additionalSolutions_;
207 }
208
220 @java.lang.Override
222 return additionalSolutions_.size();
223 }
224
236 @java.lang.Override
238 return additionalSolutions_.get(index);
239 }
240
252 @java.lang.Override
254 int index) {
255 return additionalSolutions_.get(index);
256 }
257
258 public static final int TIGHTENED_VARIABLES_FIELD_NUMBER = 21;
259 @SuppressWarnings("serial")
260 private java.util.List<com.google.ortools.sat.IntegerVariableProto> tightenedVariables_;
283 @java.lang.Override
285 return tightenedVariables_;
286 }
287
309 @java.lang.Override
310 public java.util.List<? extends com.google.ortools.sat.IntegerVariableProtoOrBuilder>
312 return tightenedVariables_;
313 }
314
336 @java.lang.Override
338 return tightenedVariables_.size();
339 }
340
362 @java.lang.Override
364 return tightenedVariables_.get(index);
365 }
366
388 @java.lang.Override
390 int index) {
391 return tightenedVariables_.get(index);
392 }
393
395 @SuppressWarnings("serial")
396 private com.google.protobuf.Internal.IntList sufficientAssumptionsForInfeasibility_ =
397 emptyIntList();
424 @java.lang.Override
425 public java.util.List<java.lang.Integer>
427 return sufficientAssumptionsForInfeasibility_;
428 }
429
456 return sufficientAssumptionsForInfeasibility_.size();
457 }
458
486 return sufficientAssumptionsForInfeasibility_.getInt(index);
487 }
488 private int sufficientAssumptionsForInfeasibilityMemoizedSerializedSize = -1;
489
490 public static final int INTEGER_OBJECTIVE_FIELD_NUMBER = 28;
491 private com.google.ortools.sat.CpObjectiveProto integerObjective_;
502 @java.lang.Override
503 public boolean hasIntegerObjective() {
504 return ((bitField0_ & 0x00000001) != 0);
505 }
506
516 @java.lang.Override
518 return integerObjective_ == null ? com.google.ortools.sat.CpObjectiveProto.getDefaultInstance() : integerObjective_;
519 }
520
529 @java.lang.Override
531 return integerObjective_ == null ? com.google.ortools.sat.CpObjectiveProto.getDefaultInstance() : integerObjective_;
532 }
533
534 public static final int INNER_OBJECTIVE_LOWER_BOUND_FIELD_NUMBER = 29;
535 private long innerObjectiveLowerBound_ = 0L;
551 @java.lang.Override
553 return innerObjectiveLowerBound_;
554 }
555
556 public static final int NUM_INTEGERS_FIELD_NUMBER = 30;
557 private long numIntegers_ = 0L;
570 @java.lang.Override
571 public long getNumIntegers() {
572 return numIntegers_;
573 }
574
575 public static final int NUM_BOOLEANS_FIELD_NUMBER = 10;
576 private long numBooleans_ = 0L;
581 @java.lang.Override
582 public long getNumBooleans() {
583 return numBooleans_;
584 }
585
586 public static final int NUM_FIXED_BOOLEANS_FIELD_NUMBER = 31;
587 private long numFixedBooleans_ = 0L;
592 @java.lang.Override
593 public long getNumFixedBooleans() {
594 return numFixedBooleans_;
595 }
596
597 public static final int NUM_CONFLICTS_FIELD_NUMBER = 11;
598 private long numConflicts_ = 0L;
603 @java.lang.Override
604 public long getNumConflicts() {
605 return numConflicts_;
606 }
607
608 public static final int NUM_BRANCHES_FIELD_NUMBER = 12;
609 private long numBranches_ = 0L;
614 @java.lang.Override
615 public long getNumBranches() {
616 return numBranches_;
617 }
618
619 public static final int NUM_BINARY_PROPAGATIONS_FIELD_NUMBER = 13;
620 private long numBinaryPropagations_ = 0L;
625 @java.lang.Override
627 return numBinaryPropagations_;
628 }
629
630 public static final int NUM_INTEGER_PROPAGATIONS_FIELD_NUMBER = 14;
631 private long numIntegerPropagations_ = 0L;
636 @java.lang.Override
638 return numIntegerPropagations_;
639 }
640
641 public static final int NUM_RESTARTS_FIELD_NUMBER = 24;
642 private long numRestarts_ = 0L;
647 @java.lang.Override
648 public long getNumRestarts() {
649 return numRestarts_;
650 }
651
652 public static final int NUM_LP_ITERATIONS_FIELD_NUMBER = 25;
653 private long numLpIterations_ = 0L;
658 @java.lang.Override
659 public long getNumLpIterations() {
660 return numLpIterations_;
661 }
662
663 public static final int WALL_TIME_FIELD_NUMBER = 15;
664 private double wallTime_ = 0D;
673 @java.lang.Override
674 public double getWallTime() {
675 return wallTime_;
676 }
677
678 public static final int USER_TIME_FIELD_NUMBER = 16;
679 private double userTime_ = 0D;
684 @java.lang.Override
685 public double getUserTime() {
686 return userTime_;
687 }
688
689 public static final int DETERMINISTIC_TIME_FIELD_NUMBER = 17;
690 private double deterministicTime_ = 0D;
695 @java.lang.Override
696 public double getDeterministicTime() {
697 return deterministicTime_;
698 }
699
700 public static final int GAP_INTEGRAL_FIELD_NUMBER = 22;
701 private double gapIntegral_ = 0D;
710 @java.lang.Override
711 public double getGapIntegral() {
712 return gapIntegral_;
713 }
714
715 public static final int SOLUTION_INFO_FIELD_NUMBER = 20;
716 @SuppressWarnings("serial")
717 private volatile java.lang.Object solutionInfo_ = "";
727 @java.lang.Override
728 public java.lang.String getSolutionInfo() {
729 java.lang.Object ref = solutionInfo_;
730 if (ref instanceof java.lang.String) {
731 return (java.lang.String) ref;
732 } else {
733 com.google.protobuf.ByteString bs =
734 (com.google.protobuf.ByteString) ref;
735 java.lang.String s = bs.toStringUtf8();
736 solutionInfo_ = s;
737 return s;
738 }
739 }
740
749 @java.lang.Override
750 public com.google.protobuf.ByteString
752 java.lang.Object ref = solutionInfo_;
753 if (ref instanceof java.lang.String) {
754 com.google.protobuf.ByteString b =
755 com.google.protobuf.ByteString.copyFromUtf8(
756 (java.lang.String) ref);
757 solutionInfo_ = b;
758 return b;
759 } else {
760 return (com.google.protobuf.ByteString) ref;
761 }
762 }
763
764 public static final int SOLVE_LOG_FIELD_NUMBER = 26;
765 @SuppressWarnings("serial")
766 private volatile java.lang.Object solveLog_ = "";
776 @java.lang.Override
777 public java.lang.String getSolveLog() {
778 java.lang.Object ref = solveLog_;
779 if (ref instanceof java.lang.String) {
780 return (java.lang.String) ref;
781 } else {
782 com.google.protobuf.ByteString bs =
783 (com.google.protobuf.ByteString) ref;
784 java.lang.String s = bs.toStringUtf8();
785 solveLog_ = s;
786 return s;
787 }
788 }
789
798 @java.lang.Override
799 public com.google.protobuf.ByteString
801 java.lang.Object ref = solveLog_;
802 if (ref instanceof java.lang.String) {
803 com.google.protobuf.ByteString b =
804 com.google.protobuf.ByteString.copyFromUtf8(
805 (java.lang.String) ref);
806 solveLog_ = b;
807 return b;
808 } else {
809 return (com.google.protobuf.ByteString) ref;
810 }
811 }
812
813 private byte memoizedIsInitialized = -1;
814 @java.lang.Override
815 public final boolean isInitialized() {
816 byte isInitialized = memoizedIsInitialized;
817 if (isInitialized == 1) return true;
818 if (isInitialized == 0) return false;
819
820 memoizedIsInitialized = 1;
821 return true;
822 }
823
824 @java.lang.Override
825 public void writeTo(com.google.protobuf.CodedOutputStream output)
826 throws java.io.IOException {
828 if (status_ != com.google.ortools.sat.CpSolverStatus.UNKNOWN.getNumber()) {
829 output.writeEnum(1, status_);
830 }
831 if (getSolutionList().size() > 0) {
832 output.writeUInt32NoTag(18);
833 output.writeUInt32NoTag(solutionMemoizedSerializedSize);
834 }
835 for (int i = 0; i < solution_.size(); i++) {
836 output.writeInt64NoTag(solution_.getLong(i));
837 }
838 if (java.lang.Double.doubleToRawLongBits(objectiveValue_) != 0) {
839 output.writeDouble(3, objectiveValue_);
840 }
841 if (java.lang.Double.doubleToRawLongBits(bestObjectiveBound_) != 0) {
842 output.writeDouble(4, bestObjectiveBound_);
843 }
844 if (numBooleans_ != 0L) {
845 output.writeInt64(10, numBooleans_);
846 }
847 if (numConflicts_ != 0L) {
848 output.writeInt64(11, numConflicts_);
849 }
850 if (numBranches_ != 0L) {
851 output.writeInt64(12, numBranches_);
852 }
853 if (numBinaryPropagations_ != 0L) {
854 output.writeInt64(13, numBinaryPropagations_);
855 }
856 if (numIntegerPropagations_ != 0L) {
857 output.writeInt64(14, numIntegerPropagations_);
858 }
859 if (java.lang.Double.doubleToRawLongBits(wallTime_) != 0) {
860 output.writeDouble(15, wallTime_);
861 }
862 if (java.lang.Double.doubleToRawLongBits(userTime_) != 0) {
863 output.writeDouble(16, userTime_);
864 }
865 if (java.lang.Double.doubleToRawLongBits(deterministicTime_) != 0) {
866 output.writeDouble(17, deterministicTime_);
867 }
868 if (!com.google.protobuf.GeneratedMessage.isStringEmpty(solutionInfo_)) {
869 com.google.protobuf.GeneratedMessage.writeString(output, 20, solutionInfo_);
870 }
871 for (int i = 0; i < tightenedVariables_.size(); i++) {
872 output.writeMessage(21, tightenedVariables_.get(i));
873 }
874 if (java.lang.Double.doubleToRawLongBits(gapIntegral_) != 0) {
875 output.writeDouble(22, gapIntegral_);
876 }
878 output.writeUInt32NoTag(186);
879 output.writeUInt32NoTag(sufficientAssumptionsForInfeasibilityMemoizedSerializedSize);
880 }
881 for (int i = 0; i < sufficientAssumptionsForInfeasibility_.size(); i++) {
882 output.writeInt32NoTag(sufficientAssumptionsForInfeasibility_.getInt(i));
883 }
884 if (numRestarts_ != 0L) {
885 output.writeInt64(24, numRestarts_);
886 }
887 if (numLpIterations_ != 0L) {
888 output.writeInt64(25, numLpIterations_);
889 }
890 if (!com.google.protobuf.GeneratedMessage.isStringEmpty(solveLog_)) {
891 com.google.protobuf.GeneratedMessage.writeString(output, 26, solveLog_);
892 }
893 for (int i = 0; i < additionalSolutions_.size(); i++) {
894 output.writeMessage(27, additionalSolutions_.get(i));
895 }
896 if (((bitField0_ & 0x00000001) != 0)) {
897 output.writeMessage(28, getIntegerObjective());
898 }
899 if (innerObjectiveLowerBound_ != 0L) {
900 output.writeInt64(29, innerObjectiveLowerBound_);
901 }
902 if (numIntegers_ != 0L) {
903 output.writeInt64(30, numIntegers_);
904 }
905 if (numFixedBooleans_ != 0L) {
906 output.writeInt64(31, numFixedBooleans_);
907 }
908 getUnknownFields().writeTo(output);
909 }
910
911 @java.lang.Override
912 public int getSerializedSize() {
913 int size = memoizedSize;
914 if (size != -1) return size;
915
916 size = 0;
917 if (status_ != com.google.ortools.sat.CpSolverStatus.UNKNOWN.getNumber()) {
918 size += com.google.protobuf.CodedOutputStream
919 .computeEnumSize(1, status_);
920 }
921 {
922 int dataSize = 0;
923 for (int i = 0; i < solution_.size(); i++) {
924 dataSize += com.google.protobuf.CodedOutputStream
925 .computeInt64SizeNoTag(solution_.getLong(i));
926 }
927 size += dataSize;
928 if (!getSolutionList().isEmpty()) {
929 size += 1;
930 size += com.google.protobuf.CodedOutputStream
931 .computeInt32SizeNoTag(dataSize);
932 }
933 solutionMemoizedSerializedSize = dataSize;
934 }
935 if (java.lang.Double.doubleToRawLongBits(objectiveValue_) != 0) {
936 size += com.google.protobuf.CodedOutputStream
937 .computeDoubleSize(3, objectiveValue_);
938 }
939 if (java.lang.Double.doubleToRawLongBits(bestObjectiveBound_) != 0) {
940 size += com.google.protobuf.CodedOutputStream
941 .computeDoubleSize(4, bestObjectiveBound_);
942 }
943 if (numBooleans_ != 0L) {
944 size += com.google.protobuf.CodedOutputStream
945 .computeInt64Size(10, numBooleans_);
946 }
947 if (numConflicts_ != 0L) {
948 size += com.google.protobuf.CodedOutputStream
949 .computeInt64Size(11, numConflicts_);
950 }
951 if (numBranches_ != 0L) {
952 size += com.google.protobuf.CodedOutputStream
953 .computeInt64Size(12, numBranches_);
954 }
955 if (numBinaryPropagations_ != 0L) {
956 size += com.google.protobuf.CodedOutputStream
957 .computeInt64Size(13, numBinaryPropagations_);
958 }
959 if (numIntegerPropagations_ != 0L) {
960 size += com.google.protobuf.CodedOutputStream
961 .computeInt64Size(14, numIntegerPropagations_);
962 }
963 if (java.lang.Double.doubleToRawLongBits(wallTime_) != 0) {
964 size += com.google.protobuf.CodedOutputStream
965 .computeDoubleSize(15, wallTime_);
966 }
967 if (java.lang.Double.doubleToRawLongBits(userTime_) != 0) {
968 size += com.google.protobuf.CodedOutputStream
969 .computeDoubleSize(16, userTime_);
970 }
971 if (java.lang.Double.doubleToRawLongBits(deterministicTime_) != 0) {
972 size += com.google.protobuf.CodedOutputStream
973 .computeDoubleSize(17, deterministicTime_);
974 }
975 if (!com.google.protobuf.GeneratedMessage.isStringEmpty(solutionInfo_)) {
976 size += com.google.protobuf.GeneratedMessage.computeStringSize(20, solutionInfo_);
977 }
978 for (int i = 0; i < tightenedVariables_.size(); i++) {
979 size += com.google.protobuf.CodedOutputStream
980 .computeMessageSize(21, tightenedVariables_.get(i));
981 }
982 if (java.lang.Double.doubleToRawLongBits(gapIntegral_) != 0) {
983 size += com.google.protobuf.CodedOutputStream
984 .computeDoubleSize(22, gapIntegral_);
985 }
986 {
987 int dataSize = 0;
988 for (int i = 0; i < sufficientAssumptionsForInfeasibility_.size(); i++) {
989 dataSize += com.google.protobuf.CodedOutputStream
990 .computeInt32SizeNoTag(sufficientAssumptionsForInfeasibility_.getInt(i));
991 }
992 size += dataSize;
994 size += 2;
995 size += com.google.protobuf.CodedOutputStream
996 .computeInt32SizeNoTag(dataSize);
997 }
998 sufficientAssumptionsForInfeasibilityMemoizedSerializedSize = dataSize;
999 }
1000 if (numRestarts_ != 0L) {
1001 size += com.google.protobuf.CodedOutputStream
1002 .computeInt64Size(24, numRestarts_);
1003 }
1004 if (numLpIterations_ != 0L) {
1005 size += com.google.protobuf.CodedOutputStream
1006 .computeInt64Size(25, numLpIterations_);
1007 }
1008 if (!com.google.protobuf.GeneratedMessage.isStringEmpty(solveLog_)) {
1009 size += com.google.protobuf.GeneratedMessage.computeStringSize(26, solveLog_);
1010 }
1011 for (int i = 0; i < additionalSolutions_.size(); i++) {
1012 size += com.google.protobuf.CodedOutputStream
1013 .computeMessageSize(27, additionalSolutions_.get(i));
1014 }
1015 if (((bitField0_ & 0x00000001) != 0)) {
1016 size += com.google.protobuf.CodedOutputStream
1017 .computeMessageSize(28, getIntegerObjective());
1018 }
1019 if (innerObjectiveLowerBound_ != 0L) {
1020 size += com.google.protobuf.CodedOutputStream
1021 .computeInt64Size(29, innerObjectiveLowerBound_);
1022 }
1023 if (numIntegers_ != 0L) {
1024 size += com.google.protobuf.CodedOutputStream
1025 .computeInt64Size(30, numIntegers_);
1026 }
1027 if (numFixedBooleans_ != 0L) {
1028 size += com.google.protobuf.CodedOutputStream
1029 .computeInt64Size(31, numFixedBooleans_);
1030 }
1031 size += getUnknownFields().getSerializedSize();
1032 memoizedSize = size;
1033 return size;
1034 }
1035
1036 @java.lang.Override
1037 public boolean equals(final java.lang.Object obj) {
1038 if (obj == this) {
1039 return true;
1040 }
1041 if (!(obj instanceof com.google.ortools.sat.CpSolverResponse)) {
1042 return super.equals(obj);
1043 }
1044 com.google.ortools.sat.CpSolverResponse other = (com.google.ortools.sat.CpSolverResponse) obj;
1045
1046 if (status_ != other.status_) return false;
1047 if (!getSolutionList()
1048 .equals(other.getSolutionList())) return false;
1049 if (java.lang.Double.doubleToLongBits(getObjectiveValue())
1050 != java.lang.Double.doubleToLongBits(
1051 other.getObjectiveValue())) return false;
1052 if (java.lang.Double.doubleToLongBits(getBestObjectiveBound())
1053 != java.lang.Double.doubleToLongBits(
1054 other.getBestObjectiveBound())) return false;
1056 .equals(other.getAdditionalSolutionsList())) return false;
1058 .equals(other.getTightenedVariablesList())) return false;
1061 if (hasIntegerObjective() != other.hasIntegerObjective()) return false;
1062 if (hasIntegerObjective()) {
1063 if (!getIntegerObjective()
1064 .equals(other.getIntegerObjective())) return false;
1065 }
1067 != other.getInnerObjectiveLowerBound()) return false;
1068 if (getNumIntegers()
1069 != other.getNumIntegers()) return false;
1070 if (getNumBooleans()
1071 != other.getNumBooleans()) return false;
1073 != other.getNumFixedBooleans()) return false;
1074 if (getNumConflicts()
1075 != other.getNumConflicts()) return false;
1076 if (getNumBranches()
1077 != other.getNumBranches()) return false;
1079 != other.getNumBinaryPropagations()) return false;
1081 != other.getNumIntegerPropagations()) return false;
1082 if (getNumRestarts()
1083 != other.getNumRestarts()) return false;
1084 if (getNumLpIterations()
1085 != other.getNumLpIterations()) return false;
1086 if (java.lang.Double.doubleToLongBits(getWallTime())
1087 != java.lang.Double.doubleToLongBits(
1088 other.getWallTime())) return false;
1089 if (java.lang.Double.doubleToLongBits(getUserTime())
1090 != java.lang.Double.doubleToLongBits(
1091 other.getUserTime())) return false;
1092 if (java.lang.Double.doubleToLongBits(getDeterministicTime())
1093 != java.lang.Double.doubleToLongBits(
1094 other.getDeterministicTime())) return false;
1095 if (java.lang.Double.doubleToLongBits(getGapIntegral())
1096 != java.lang.Double.doubleToLongBits(
1097 other.getGapIntegral())) return false;
1098 if (!getSolutionInfo()
1099 .equals(other.getSolutionInfo())) return false;
1100 if (!getSolveLog()
1101 .equals(other.getSolveLog())) return false;
1102 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
1103 return true;
1104 }
1105
1106 @java.lang.Override
1107 public int hashCode() {
1108 if (memoizedHashCode != 0) {
1109 return memoizedHashCode;
1110 }
1111 int hash = 41;
1112 hash = (19 * hash) + getDescriptor().hashCode();
1113 hash = (37 * hash) + STATUS_FIELD_NUMBER;
1114 hash = (53 * hash) + status_;
1115 if (getSolutionCount() > 0) {
1116 hash = (37 * hash) + SOLUTION_FIELD_NUMBER;
1117 hash = (53 * hash) + getSolutionList().hashCode();
1118 }
1119 hash = (37 * hash) + OBJECTIVE_VALUE_FIELD_NUMBER;
1120 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1121 java.lang.Double.doubleToLongBits(getObjectiveValue()));
1122 hash = (37 * hash) + BEST_OBJECTIVE_BOUND_FIELD_NUMBER;
1123 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1124 java.lang.Double.doubleToLongBits(getBestObjectiveBound()));
1125 if (getAdditionalSolutionsCount() > 0) {
1126 hash = (37 * hash) + ADDITIONAL_SOLUTIONS_FIELD_NUMBER;
1127 hash = (53 * hash) + getAdditionalSolutionsList().hashCode();
1128 }
1129 if (getTightenedVariablesCount() > 0) {
1130 hash = (37 * hash) + TIGHTENED_VARIABLES_FIELD_NUMBER;
1131 hash = (53 * hash) + getTightenedVariablesList().hashCode();
1132 }
1135 hash = (53 * hash) + getSufficientAssumptionsForInfeasibilityList().hashCode();
1136 }
1137 if (hasIntegerObjective()) {
1138 hash = (37 * hash) + INTEGER_OBJECTIVE_FIELD_NUMBER;
1139 hash = (53 * hash) + getIntegerObjective().hashCode();
1140 }
1141 hash = (37 * hash) + INNER_OBJECTIVE_LOWER_BOUND_FIELD_NUMBER;
1142 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1144 hash = (37 * hash) + NUM_INTEGERS_FIELD_NUMBER;
1145 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1146 getNumIntegers());
1147 hash = (37 * hash) + NUM_BOOLEANS_FIELD_NUMBER;
1148 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1149 getNumBooleans());
1150 hash = (37 * hash) + NUM_FIXED_BOOLEANS_FIELD_NUMBER;
1151 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1153 hash = (37 * hash) + NUM_CONFLICTS_FIELD_NUMBER;
1154 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1155 getNumConflicts());
1156 hash = (37 * hash) + NUM_BRANCHES_FIELD_NUMBER;
1157 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1158 getNumBranches());
1159 hash = (37 * hash) + NUM_BINARY_PROPAGATIONS_FIELD_NUMBER;
1160 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1162 hash = (37 * hash) + NUM_INTEGER_PROPAGATIONS_FIELD_NUMBER;
1163 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1165 hash = (37 * hash) + NUM_RESTARTS_FIELD_NUMBER;
1166 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1167 getNumRestarts());
1168 hash = (37 * hash) + NUM_LP_ITERATIONS_FIELD_NUMBER;
1169 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1171 hash = (37 * hash) + WALL_TIME_FIELD_NUMBER;
1172 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1173 java.lang.Double.doubleToLongBits(getWallTime()));
1174 hash = (37 * hash) + USER_TIME_FIELD_NUMBER;
1175 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1176 java.lang.Double.doubleToLongBits(getUserTime()));
1177 hash = (37 * hash) + DETERMINISTIC_TIME_FIELD_NUMBER;
1178 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1179 java.lang.Double.doubleToLongBits(getDeterministicTime()));
1180 hash = (37 * hash) + GAP_INTEGRAL_FIELD_NUMBER;
1181 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1182 java.lang.Double.doubleToLongBits(getGapIntegral()));
1183 hash = (37 * hash) + SOLUTION_INFO_FIELD_NUMBER;
1184 hash = (53 * hash) + getSolutionInfo().hashCode();
1185 hash = (37 * hash) + SOLVE_LOG_FIELD_NUMBER;
1186 hash = (53 * hash) + getSolveLog().hashCode();
1187 hash = (29 * hash) + getUnknownFields().hashCode();
1188 memoizedHashCode = hash;
1189 return hash;
1190 }
1191
1193 java.nio.ByteBuffer data)
1194 throws com.google.protobuf.InvalidProtocolBufferException {
1195 return PARSER.parseFrom(data);
1196 }
1198 java.nio.ByteBuffer data,
1199 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1200 throws com.google.protobuf.InvalidProtocolBufferException {
1201 return PARSER.parseFrom(data, extensionRegistry);
1202 }
1204 com.google.protobuf.ByteString data)
1205 throws com.google.protobuf.InvalidProtocolBufferException {
1206 return PARSER.parseFrom(data);
1207 }
1209 com.google.protobuf.ByteString data,
1210 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1211 throws com.google.protobuf.InvalidProtocolBufferException {
1212 return PARSER.parseFrom(data, extensionRegistry);
1213 }
1215 throws com.google.protobuf.InvalidProtocolBufferException {
1216 return PARSER.parseFrom(data);
1217 }
1219 byte[] data,
1220 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1221 throws com.google.protobuf.InvalidProtocolBufferException {
1222 return PARSER.parseFrom(data, extensionRegistry);
1223 }
1224 public static com.google.ortools.sat.CpSolverResponse parseFrom(java.io.InputStream input)
1225 throws java.io.IOException {
1226 return com.google.protobuf.GeneratedMessage
1227 .parseWithIOException(PARSER, input);
1228 }
1230 java.io.InputStream input,
1231 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1232 throws java.io.IOException {
1233 return com.google.protobuf.GeneratedMessage
1234 .parseWithIOException(PARSER, input, extensionRegistry);
1235 }
1236
1237 public static com.google.ortools.sat.CpSolverResponse parseDelimitedFrom(java.io.InputStream input)
1238 throws java.io.IOException {
1239 return com.google.protobuf.GeneratedMessage
1240 .parseDelimitedWithIOException(PARSER, input);
1241 }
1242
1244 java.io.InputStream input,
1245 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1246 throws java.io.IOException {
1247 return com.google.protobuf.GeneratedMessage
1248 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
1249 }
1251 com.google.protobuf.CodedInputStream input)
1252 throws java.io.IOException {
1253 return com.google.protobuf.GeneratedMessage
1254 .parseWithIOException(PARSER, input);
1255 }
1257 com.google.protobuf.CodedInputStream input,
1258 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1259 throws java.io.IOException {
1260 return com.google.protobuf.GeneratedMessage
1261 .parseWithIOException(PARSER, input, extensionRegistry);
1262 }
1263
1264 @java.lang.Override
1265 public Builder newBuilderForType() { return newBuilder(); }
1266 public static Builder newBuilder() {
1267 return DEFAULT_INSTANCE.toBuilder();
1268 }
1269 public static Builder newBuilder(com.google.ortools.sat.CpSolverResponse prototype) {
1270 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1271 }
1272 @java.lang.Override
1274 return this == DEFAULT_INSTANCE
1275 ? new Builder() : new Builder().mergeFrom(this);
1276 }
1277
1278 @java.lang.Override
1280 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1281 Builder builder = new Builder(parent);
1282 return builder;
1283 }
1284
1293 public static final class Builder extends
1294 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
1295 // @@protoc_insertion_point(builder_implements:operations_research.sat.CpSolverResponse)
1297 public static final com.google.protobuf.Descriptors.Descriptor
1299 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_descriptor;
1300 }
1301
1302 @java.lang.Override
1303 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1305 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_fieldAccessorTable
1306 .ensureFieldAccessorsInitialized(
1307 com.google.ortools.sat.CpSolverResponse.class, com.google.ortools.sat.CpSolverResponse.Builder.class);
1308 }
1309
1310 // Construct using com.google.ortools.sat.CpSolverResponse.newBuilder()
1311 private Builder() {
1312 maybeForceBuilderInitialization();
1313 }
1314
1315 private Builder(
1316 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1317 super(parent);
1318 maybeForceBuilderInitialization();
1319 }
1320 private void maybeForceBuilderInitialization() {
1321 if (com.google.protobuf.GeneratedMessage
1322 .alwaysUseFieldBuilders) {
1323 internalGetAdditionalSolutionsFieldBuilder();
1324 internalGetTightenedVariablesFieldBuilder();
1325 internalGetIntegerObjectiveFieldBuilder();
1326 }
1327 }
1328 @java.lang.Override
1329 public Builder clear() {
1330 super.clear();
1331 bitField0_ = 0;
1332 status_ = 0;
1333 solution_ = emptyLongList();
1334 objectiveValue_ = 0D;
1335 bestObjectiveBound_ = 0D;
1336 if (additionalSolutionsBuilder_ == null) {
1337 additionalSolutions_ = java.util.Collections.emptyList();
1338 } else {
1339 additionalSolutions_ = null;
1340 additionalSolutionsBuilder_.clear();
1341 }
1342 bitField0_ = (bitField0_ & ~0x00000010);
1343 if (tightenedVariablesBuilder_ == null) {
1344 tightenedVariables_ = java.util.Collections.emptyList();
1345 } else {
1346 tightenedVariables_ = null;
1347 tightenedVariablesBuilder_.clear();
1348 }
1349 bitField0_ = (bitField0_ & ~0x00000020);
1350 sufficientAssumptionsForInfeasibility_ = emptyIntList();
1351 integerObjective_ = null;
1352 if (integerObjectiveBuilder_ != null) {
1353 integerObjectiveBuilder_.dispose();
1354 integerObjectiveBuilder_ = null;
1355 }
1356 innerObjectiveLowerBound_ = 0L;
1357 numIntegers_ = 0L;
1358 numBooleans_ = 0L;
1359 numFixedBooleans_ = 0L;
1360 numConflicts_ = 0L;
1361 numBranches_ = 0L;
1362 numBinaryPropagations_ = 0L;
1363 numIntegerPropagations_ = 0L;
1364 numRestarts_ = 0L;
1365 numLpIterations_ = 0L;
1366 wallTime_ = 0D;
1367 userTime_ = 0D;
1368 deterministicTime_ = 0D;
1369 gapIntegral_ = 0D;
1370 solutionInfo_ = "";
1371 solveLog_ = "";
1372 return this;
1373 }
1374
1375 @java.lang.Override
1376 public com.google.protobuf.Descriptors.Descriptor
1378 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpSolverResponse_descriptor;
1379 }
1380
1381 @java.lang.Override
1383 return com.google.ortools.sat.CpSolverResponse.getDefaultInstance();
1384 }
1385
1386 @java.lang.Override
1389 if (!result.isInitialized()) {
1390 throw newUninitializedMessageException(result);
1391 }
1392 return result;
1393 }
1394
1395 @java.lang.Override
1397 com.google.ortools.sat.CpSolverResponse result = new com.google.ortools.sat.CpSolverResponse(this);
1398 buildPartialRepeatedFields(result);
1399 if (bitField0_ != 0) { buildPartial0(result); }
1400 onBuilt();
1401 return result;
1402 }
1403
1404 private void buildPartialRepeatedFields(com.google.ortools.sat.CpSolverResponse result) {
1405 if (additionalSolutionsBuilder_ == null) {
1406 if (((bitField0_ & 0x00000010) != 0)) {
1407 additionalSolutions_ = java.util.Collections.unmodifiableList(additionalSolutions_);
1408 bitField0_ = (bitField0_ & ~0x00000010);
1409 }
1410 result.additionalSolutions_ = additionalSolutions_;
1411 } else {
1412 result.additionalSolutions_ = additionalSolutionsBuilder_.build();
1413 }
1414 if (tightenedVariablesBuilder_ == null) {
1415 if (((bitField0_ & 0x00000020) != 0)) {
1416 tightenedVariables_ = java.util.Collections.unmodifiableList(tightenedVariables_);
1417 bitField0_ = (bitField0_ & ~0x00000020);
1418 }
1419 result.tightenedVariables_ = tightenedVariables_;
1420 } else {
1421 result.tightenedVariables_ = tightenedVariablesBuilder_.build();
1422 }
1423 }
1424
1425 private void buildPartial0(com.google.ortools.sat.CpSolverResponse result) {
1426 int from_bitField0_ = bitField0_;
1427 if (((from_bitField0_ & 0x00000001) != 0)) {
1428 result.status_ = status_;
1429 }
1430 if (((from_bitField0_ & 0x00000002) != 0)) {
1431 solution_.makeImmutable();
1432 result.solution_ = solution_;
1433 }
1434 if (((from_bitField0_ & 0x00000004) != 0)) {
1435 result.objectiveValue_ = objectiveValue_;
1436 }
1437 if (((from_bitField0_ & 0x00000008) != 0)) {
1438 result.bestObjectiveBound_ = bestObjectiveBound_;
1439 }
1440 if (((from_bitField0_ & 0x00000040) != 0)) {
1441 sufficientAssumptionsForInfeasibility_.makeImmutable();
1442 result.sufficientAssumptionsForInfeasibility_ = sufficientAssumptionsForInfeasibility_;
1443 }
1444 int to_bitField0_ = 0;
1445 if (((from_bitField0_ & 0x00000080) != 0)) {
1446 result.integerObjective_ = integerObjectiveBuilder_ == null
1447 ? integerObjective_
1448 : integerObjectiveBuilder_.build();
1449 to_bitField0_ |= 0x00000001;
1450 }
1451 if (((from_bitField0_ & 0x00000100) != 0)) {
1452 result.innerObjectiveLowerBound_ = innerObjectiveLowerBound_;
1453 }
1454 if (((from_bitField0_ & 0x00000200) != 0)) {
1455 result.numIntegers_ = numIntegers_;
1456 }
1457 if (((from_bitField0_ & 0x00000400) != 0)) {
1458 result.numBooleans_ = numBooleans_;
1459 }
1460 if (((from_bitField0_ & 0x00000800) != 0)) {
1461 result.numFixedBooleans_ = numFixedBooleans_;
1462 }
1463 if (((from_bitField0_ & 0x00001000) != 0)) {
1464 result.numConflicts_ = numConflicts_;
1465 }
1466 if (((from_bitField0_ & 0x00002000) != 0)) {
1467 result.numBranches_ = numBranches_;
1468 }
1469 if (((from_bitField0_ & 0x00004000) != 0)) {
1470 result.numBinaryPropagations_ = numBinaryPropagations_;
1471 }
1472 if (((from_bitField0_ & 0x00008000) != 0)) {
1473 result.numIntegerPropagations_ = numIntegerPropagations_;
1474 }
1475 if (((from_bitField0_ & 0x00010000) != 0)) {
1476 result.numRestarts_ = numRestarts_;
1477 }
1478 if (((from_bitField0_ & 0x00020000) != 0)) {
1479 result.numLpIterations_ = numLpIterations_;
1480 }
1481 if (((from_bitField0_ & 0x00040000) != 0)) {
1482 result.wallTime_ = wallTime_;
1483 }
1484 if (((from_bitField0_ & 0x00080000) != 0)) {
1485 result.userTime_ = userTime_;
1486 }
1487 if (((from_bitField0_ & 0x00100000) != 0)) {
1488 result.deterministicTime_ = deterministicTime_;
1489 }
1490 if (((from_bitField0_ & 0x00200000) != 0)) {
1491 result.gapIntegral_ = gapIntegral_;
1492 }
1493 if (((from_bitField0_ & 0x00400000) != 0)) {
1494 result.solutionInfo_ = solutionInfo_;
1495 }
1496 if (((from_bitField0_ & 0x00800000) != 0)) {
1497 result.solveLog_ = solveLog_;
1498 }
1499 result.bitField0_ |= to_bitField0_;
1500 }
1501
1502 @java.lang.Override
1503 public Builder mergeFrom(com.google.protobuf.Message other) {
1504 if (other instanceof com.google.ortools.sat.CpSolverResponse) {
1505 return mergeFrom((com.google.ortools.sat.CpSolverResponse)other);
1506 } else {
1507 super.mergeFrom(other);
1508 return this;
1509 }
1510 }
1511
1512 public Builder mergeFrom(com.google.ortools.sat.CpSolverResponse other) {
1513 if (other == com.google.ortools.sat.CpSolverResponse.getDefaultInstance()) return this;
1514 if (other.status_ != 0) {
1515 setStatusValue(other.getStatusValue());
1516 }
1517 if (!other.solution_.isEmpty()) {
1518 if (solution_.isEmpty()) {
1519 solution_ = other.solution_;
1520 solution_.makeImmutable();
1521 bitField0_ |= 0x00000002;
1522 } else {
1523 ensureSolutionIsMutable();
1524 solution_.addAll(other.solution_);
1525 }
1526 onChanged();
1527 }
1528 if (java.lang.Double.doubleToRawLongBits(other.getObjectiveValue()) != 0) {
1529 setObjectiveValue(other.getObjectiveValue());
1530 }
1531 if (java.lang.Double.doubleToRawLongBits(other.getBestObjectiveBound()) != 0) {
1532 setBestObjectiveBound(other.getBestObjectiveBound());
1533 }
1534 if (additionalSolutionsBuilder_ == null) {
1535 if (!other.additionalSolutions_.isEmpty()) {
1536 if (additionalSolutions_.isEmpty()) {
1537 additionalSolutions_ = other.additionalSolutions_;
1538 bitField0_ = (bitField0_ & ~0x00000010);
1539 } else {
1540 ensureAdditionalSolutionsIsMutable();
1541 additionalSolutions_.addAll(other.additionalSolutions_);
1542 }
1543 onChanged();
1544 }
1545 } else {
1546 if (!other.additionalSolutions_.isEmpty()) {
1547 if (additionalSolutionsBuilder_.isEmpty()) {
1548 additionalSolutionsBuilder_.dispose();
1549 additionalSolutionsBuilder_ = null;
1550 additionalSolutions_ = other.additionalSolutions_;
1551 bitField0_ = (bitField0_ & ~0x00000010);
1552 additionalSolutionsBuilder_ =
1553 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
1554 internalGetAdditionalSolutionsFieldBuilder() : null;
1555 } else {
1556 additionalSolutionsBuilder_.addAllMessages(other.additionalSolutions_);
1557 }
1558 }
1559 }
1560 if (tightenedVariablesBuilder_ == null) {
1561 if (!other.tightenedVariables_.isEmpty()) {
1562 if (tightenedVariables_.isEmpty()) {
1563 tightenedVariables_ = other.tightenedVariables_;
1564 bitField0_ = (bitField0_ & ~0x00000020);
1565 } else {
1566 ensureTightenedVariablesIsMutable();
1567 tightenedVariables_.addAll(other.tightenedVariables_);
1568 }
1569 onChanged();
1570 }
1571 } else {
1572 if (!other.tightenedVariables_.isEmpty()) {
1573 if (tightenedVariablesBuilder_.isEmpty()) {
1574 tightenedVariablesBuilder_.dispose();
1575 tightenedVariablesBuilder_ = null;
1576 tightenedVariables_ = other.tightenedVariables_;
1577 bitField0_ = (bitField0_ & ~0x00000020);
1578 tightenedVariablesBuilder_ =
1579 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
1580 internalGetTightenedVariablesFieldBuilder() : null;
1581 } else {
1582 tightenedVariablesBuilder_.addAllMessages(other.tightenedVariables_);
1583 }
1584 }
1585 }
1586 if (!other.sufficientAssumptionsForInfeasibility_.isEmpty()) {
1587 if (sufficientAssumptionsForInfeasibility_.isEmpty()) {
1588 sufficientAssumptionsForInfeasibility_ = other.sufficientAssumptionsForInfeasibility_;
1589 sufficientAssumptionsForInfeasibility_.makeImmutable();
1590 bitField0_ |= 0x00000040;
1591 } else {
1592 ensureSufficientAssumptionsForInfeasibilityIsMutable();
1593 sufficientAssumptionsForInfeasibility_.addAll(other.sufficientAssumptionsForInfeasibility_);
1594 }
1595 onChanged();
1596 }
1597 if (other.hasIntegerObjective()) {
1598 mergeIntegerObjective(other.getIntegerObjective());
1599 }
1600 if (other.getInnerObjectiveLowerBound() != 0L) {
1601 setInnerObjectiveLowerBound(other.getInnerObjectiveLowerBound());
1602 }
1603 if (other.getNumIntegers() != 0L) {
1604 setNumIntegers(other.getNumIntegers());
1605 }
1606 if (other.getNumBooleans() != 0L) {
1607 setNumBooleans(other.getNumBooleans());
1608 }
1609 if (other.getNumFixedBooleans() != 0L) {
1610 setNumFixedBooleans(other.getNumFixedBooleans());
1611 }
1612 if (other.getNumConflicts() != 0L) {
1613 setNumConflicts(other.getNumConflicts());
1614 }
1615 if (other.getNumBranches() != 0L) {
1616 setNumBranches(other.getNumBranches());
1617 }
1618 if (other.getNumBinaryPropagations() != 0L) {
1619 setNumBinaryPropagations(other.getNumBinaryPropagations());
1620 }
1621 if (other.getNumIntegerPropagations() != 0L) {
1622 setNumIntegerPropagations(other.getNumIntegerPropagations());
1623 }
1624 if (other.getNumRestarts() != 0L) {
1625 setNumRestarts(other.getNumRestarts());
1626 }
1627 if (other.getNumLpIterations() != 0L) {
1628 setNumLpIterations(other.getNumLpIterations());
1629 }
1630 if (java.lang.Double.doubleToRawLongBits(other.getWallTime()) != 0) {
1631 setWallTime(other.getWallTime());
1632 }
1633 if (java.lang.Double.doubleToRawLongBits(other.getUserTime()) != 0) {
1634 setUserTime(other.getUserTime());
1635 }
1636 if (java.lang.Double.doubleToRawLongBits(other.getDeterministicTime()) != 0) {
1637 setDeterministicTime(other.getDeterministicTime());
1638 }
1639 if (java.lang.Double.doubleToRawLongBits(other.getGapIntegral()) != 0) {
1640 setGapIntegral(other.getGapIntegral());
1641 }
1642 if (!other.getSolutionInfo().isEmpty()) {
1643 solutionInfo_ = other.solutionInfo_;
1644 bitField0_ |= 0x00400000;
1645 onChanged();
1646 }
1647 if (!other.getSolveLog().isEmpty()) {
1648 solveLog_ = other.solveLog_;
1649 bitField0_ |= 0x00800000;
1650 onChanged();
1651 }
1652 this.mergeUnknownFields(other.getUnknownFields());
1653 onChanged();
1654 return this;
1655 }
1656
1657 @java.lang.Override
1658 public final boolean isInitialized() {
1659 return true;
1660 }
1661
1662 @java.lang.Override
1663 public Builder mergeFrom(
1664 com.google.protobuf.CodedInputStream input,
1665 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1666 throws java.io.IOException {
1667 if (extensionRegistry == null) {
1668 throw new java.lang.NullPointerException();
1669 }
1670 try {
1671 boolean done = false;
1672 while (!done) {
1673 int tag = input.readTag();
1674 switch (tag) {
1675 case 0:
1676 done = true;
1677 break;
1678 case 8: {
1679 status_ = input.readEnum();
1680 bitField0_ |= 0x00000001;
1681 break;
1682 } // case 8
1683 case 16: {
1684 long v = input.readInt64();
1685 ensureSolutionIsMutable();
1686 solution_.addLong(v);
1687 break;
1688 } // case 16
1689 case 18: {
1690 int length = input.readRawVarint32();
1691 int limit = input.pushLimit(length);
1692 ensureSolutionIsMutable();
1693 while (input.getBytesUntilLimit() > 0) {
1694 solution_.addLong(input.readInt64());
1695 }
1696 input.popLimit(limit);
1697 break;
1698 } // case 18
1699 case 25: {
1700 objectiveValue_ = input.readDouble();
1701 bitField0_ |= 0x00000004;
1702 break;
1703 } // case 25
1704 case 33: {
1705 bestObjectiveBound_ = input.readDouble();
1706 bitField0_ |= 0x00000008;
1707 break;
1708 } // case 33
1709 case 80: {
1710 numBooleans_ = input.readInt64();
1711 bitField0_ |= 0x00000400;
1712 break;
1713 } // case 80
1714 case 88: {
1715 numConflicts_ = input.readInt64();
1716 bitField0_ |= 0x00001000;
1717 break;
1718 } // case 88
1719 case 96: {
1720 numBranches_ = input.readInt64();
1721 bitField0_ |= 0x00002000;
1722 break;
1723 } // case 96
1724 case 104: {
1725 numBinaryPropagations_ = input.readInt64();
1726 bitField0_ |= 0x00004000;
1727 break;
1728 } // case 104
1729 case 112: {
1730 numIntegerPropagations_ = input.readInt64();
1731 bitField0_ |= 0x00008000;
1732 break;
1733 } // case 112
1734 case 121: {
1735 wallTime_ = input.readDouble();
1736 bitField0_ |= 0x00040000;
1737 break;
1738 } // case 121
1739 case 129: {
1740 userTime_ = input.readDouble();
1741 bitField0_ |= 0x00080000;
1742 break;
1743 } // case 129
1744 case 137: {
1745 deterministicTime_ = input.readDouble();
1746 bitField0_ |= 0x00100000;
1747 break;
1748 } // case 137
1749 case 162: {
1750 solutionInfo_ = input.readStringRequireUtf8();
1751 bitField0_ |= 0x00400000;
1752 break;
1753 } // case 162
1754 case 170: {
1756 input.readMessage(
1757 com.google.ortools.sat.IntegerVariableProto.parser(),
1758 extensionRegistry);
1759 if (tightenedVariablesBuilder_ == null) {
1760 ensureTightenedVariablesIsMutable();
1761 tightenedVariables_.add(m);
1762 } else {
1763 tightenedVariablesBuilder_.addMessage(m);
1764 }
1765 break;
1766 } // case 170
1767 case 177: {
1768 gapIntegral_ = input.readDouble();
1769 bitField0_ |= 0x00200000;
1770 break;
1771 } // case 177
1772 case 184: {
1773 int v = input.readInt32();
1774 ensureSufficientAssumptionsForInfeasibilityIsMutable();
1775 sufficientAssumptionsForInfeasibility_.addInt(v);
1776 break;
1777 } // case 184
1778 case 186: {
1779 int length = input.readRawVarint32();
1780 int limit = input.pushLimit(length);
1781 ensureSufficientAssumptionsForInfeasibilityIsMutable();
1782 while (input.getBytesUntilLimit() > 0) {
1783 sufficientAssumptionsForInfeasibility_.addInt(input.readInt32());
1784 }
1785 input.popLimit(limit);
1786 break;
1787 } // case 186
1788 case 192: {
1789 numRestarts_ = input.readInt64();
1790 bitField0_ |= 0x00010000;
1791 break;
1792 } // case 192
1793 case 200: {
1794 numLpIterations_ = input.readInt64();
1795 bitField0_ |= 0x00020000;
1796 break;
1797 } // case 200
1798 case 210: {
1799 solveLog_ = input.readStringRequireUtf8();
1800 bitField0_ |= 0x00800000;
1801 break;
1802 } // case 210
1803 case 218: {
1805 input.readMessage(
1806 com.google.ortools.sat.CpSolverSolution.parser(),
1807 extensionRegistry);
1808 if (additionalSolutionsBuilder_ == null) {
1809 ensureAdditionalSolutionsIsMutable();
1810 additionalSolutions_.add(m);
1811 } else {
1812 additionalSolutionsBuilder_.addMessage(m);
1813 }
1814 break;
1815 } // case 218
1816 case 226: {
1817 input.readMessage(
1818 internalGetIntegerObjectiveFieldBuilder().getBuilder(),
1819 extensionRegistry);
1820 bitField0_ |= 0x00000080;
1821 break;
1822 } // case 226
1823 case 232: {
1824 innerObjectiveLowerBound_ = input.readInt64();
1825 bitField0_ |= 0x00000100;
1826 break;
1827 } // case 232
1828 case 240: {
1829 numIntegers_ = input.readInt64();
1830 bitField0_ |= 0x00000200;
1831 break;
1832 } // case 240
1833 case 248: {
1834 numFixedBooleans_ = input.readInt64();
1835 bitField0_ |= 0x00000800;
1836 break;
1837 } // case 248
1838 default: {
1839 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1840 done = true; // was an endgroup tag
1841 }
1842 break;
1843 } // default:
1844 } // switch (tag)
1845 } // while (!done)
1846 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1847 throw e.unwrapIOException();
1848 } finally {
1849 onChanged();
1850 } // finally
1851 return this;
1852 }
1853 private int bitField0_;
1854
1855 private int status_ = 0;
1864 @java.lang.Override public int getStatusValue() {
1865 return status_;
1866 }
1867
1876 public Builder setStatusValue(int value) {
1877 status_ = value;
1878 bitField0_ |= 0x00000001;
1879 onChanged();
1880 return this;
1881 }
1882
1890 @java.lang.Override
1892 com.google.ortools.sat.CpSolverStatus result = com.google.ortools.sat.CpSolverStatus.forNumber(status_);
1893 return result == null ? com.google.ortools.sat.CpSolverStatus.UNRECOGNIZED : result;
1894 }
1895
1904 public Builder setStatus(com.google.ortools.sat.CpSolverStatus value) {
1905 if (value == null) { throw new NullPointerException(); }
1906 bitField0_ |= 0x00000001;
1907 status_ = value.getNumber();
1908 onChanged();
1909 return this;
1910 }
1911
1919 public Builder clearStatus() {
1920 bitField0_ = (bitField0_ & ~0x00000001);
1921 status_ = 0;
1922 onChanged();
1923 return this;
1924 }
1925
1926 private com.google.protobuf.Internal.LongList solution_ = emptyLongList();
1927 private void ensureSolutionIsMutable() {
1928 if (!solution_.isModifiable()) {
1929 solution_ = makeMutableCopy(solution_);
1930 }
1931 bitField0_ |= 0x00000002;
1932 }
1944 public java.util.List<java.lang.Long>
1946 solution_.makeImmutable();
1947 return solution_;
1948 }
1949
1960 public int getSolutionCount() {
1961 return solution_.size();
1962 }
1963
1975 public long getSolution(int index) {
1976 return solution_.getLong(index);
1977 }
1978
1991 public Builder setSolution(
1992 int index, long value) {
1993
1994 ensureSolutionIsMutable();
1995 solution_.setLong(index, value);
1996 bitField0_ |= 0x00000002;
1997 onChanged();
1998 return this;
1999 }
2000
2012 public Builder addSolution(long value) {
2013
2014 ensureSolutionIsMutable();
2015 solution_.addLong(value);
2016 bitField0_ |= 0x00000002;
2017 onChanged();
2018 return this;
2019 }
2020
2032 public Builder addAllSolution(
2033 java.lang.Iterable<? extends java.lang.Long> values) {
2034 ensureSolutionIsMutable();
2035 com.google.protobuf.AbstractMessageLite.Builder.addAll(
2036 values, solution_);
2037 bitField0_ |= 0x00000002;
2038 onChanged();
2039 return this;
2040 }
2041
2052 public Builder clearSolution() {
2053 solution_ = emptyLongList();
2054 bitField0_ = (bitField0_ & ~0x00000002);
2055 onChanged();
2056 return this;
2057 }
2058
2059 private double objectiveValue_ ;
2071 @java.lang.Override
2072 public double getObjectiveValue() {
2073 return objectiveValue_;
2074 }
2075
2087 public Builder setObjectiveValue(double value) {
2088
2089 objectiveValue_ = value;
2090 bitField0_ |= 0x00000004;
2091 onChanged();
2092 return this;
2093 }
2094
2105 public Builder clearObjectiveValue() {
2106 bitField0_ = (bitField0_ & ~0x00000004);
2107 objectiveValue_ = 0D;
2108 onChanged();
2109 return this;
2110 }
2111
2112 private double bestObjectiveBound_ ;
2123 @java.lang.Override
2124 public double getBestObjectiveBound() {
2125 return bestObjectiveBound_;
2126 }
2127
2138 public Builder setBestObjectiveBound(double value) {
2139
2140 bestObjectiveBound_ = value;
2141 bitField0_ |= 0x00000008;
2142 onChanged();
2143 return this;
2144 }
2145
2155 public Builder clearBestObjectiveBound() {
2156 bitField0_ = (bitField0_ & ~0x00000008);
2157 bestObjectiveBound_ = 0D;
2158 onChanged();
2159 return this;
2160 }
2161
2162 private java.util.List<com.google.ortools.sat.CpSolverSolution> additionalSolutions_ =
2163 java.util.Collections.emptyList();
2164 private void ensureAdditionalSolutionsIsMutable() {
2165 if (!((bitField0_ & 0x00000010) != 0)) {
2166 additionalSolutions_ = new java.util.ArrayList<com.google.ortools.sat.CpSolverSolution>(additionalSolutions_);
2167 bitField0_ |= 0x00000010;
2168 }
2169 }
2170
2171 private com.google.protobuf.RepeatedFieldBuilder<
2172 com.google.ortools.sat.CpSolverSolution, com.google.ortools.sat.CpSolverSolution.Builder, com.google.ortools.sat.CpSolverSolutionOrBuilder> additionalSolutionsBuilder_;
2173
2186 public java.util.List<com.google.ortools.sat.CpSolverSolution> getAdditionalSolutionsList() {
2187 if (additionalSolutionsBuilder_ == null) {
2188 return java.util.Collections.unmodifiableList(additionalSolutions_);
2189 } else {
2190 return additionalSolutionsBuilder_.getMessageList();
2191 }
2192 }
2193
2206 if (additionalSolutionsBuilder_ == null) {
2207 return additionalSolutions_.size();
2208 } else {
2209 return additionalSolutionsBuilder_.getCount();
2210 }
2211 }
2212
2225 if (additionalSolutionsBuilder_ == null) {
2226 return additionalSolutions_.get(index);
2227 } else {
2228 return additionalSolutionsBuilder_.getMessage(index);
2229 }
2230 }
2231
2244 int index, com.google.ortools.sat.CpSolverSolution value) {
2245 if (additionalSolutionsBuilder_ == null) {
2246 if (value == null) {
2247 throw new NullPointerException();
2248 }
2249 ensureAdditionalSolutionsIsMutable();
2250 additionalSolutions_.set(index, value);
2251 onChanged();
2252 } else {
2253 additionalSolutionsBuilder_.setMessage(index, value);
2254 }
2255 return this;
2256 }
2257
2270 int index, com.google.ortools.sat.CpSolverSolution.Builder builderForValue) {
2271 if (additionalSolutionsBuilder_ == null) {
2272 ensureAdditionalSolutionsIsMutable();
2273 additionalSolutions_.set(index, builderForValue.build());
2274 onChanged();
2275 } else {
2276 additionalSolutionsBuilder_.setMessage(index, builderForValue.build());
2277 }
2278 return this;
2279 }
2280
2292 public Builder addAdditionalSolutions(com.google.ortools.sat.CpSolverSolution value) {
2293 if (additionalSolutionsBuilder_ == null) {
2294 if (value == null) {
2295 throw new NullPointerException();
2296 }
2297 ensureAdditionalSolutionsIsMutable();
2298 additionalSolutions_.add(value);
2299 onChanged();
2300 } else {
2301 additionalSolutionsBuilder_.addMessage(value);
2302 }
2303 return this;
2304 }
2305
2318 int index, com.google.ortools.sat.CpSolverSolution value) {
2319 if (additionalSolutionsBuilder_ == null) {
2320 if (value == null) {
2321 throw new NullPointerException();
2322 }
2323 ensureAdditionalSolutionsIsMutable();
2324 additionalSolutions_.add(index, value);
2325 onChanged();
2326 } else {
2327 additionalSolutionsBuilder_.addMessage(index, value);
2328 }
2329 return this;
2330 }
2331
2344 com.google.ortools.sat.CpSolverSolution.Builder builderForValue) {
2345 if (additionalSolutionsBuilder_ == null) {
2346 ensureAdditionalSolutionsIsMutable();
2347 additionalSolutions_.add(builderForValue.build());
2348 onChanged();
2349 } else {
2350 additionalSolutionsBuilder_.addMessage(builderForValue.build());
2351 }
2352 return this;
2353 }
2354
2367 int index, com.google.ortools.sat.CpSolverSolution.Builder builderForValue) {
2368 if (additionalSolutionsBuilder_ == null) {
2369 ensureAdditionalSolutionsIsMutable();
2370 additionalSolutions_.add(index, builderForValue.build());
2371 onChanged();
2372 } else {
2373 additionalSolutionsBuilder_.addMessage(index, builderForValue.build());
2374 }
2375 return this;
2376 }
2377
2390 java.lang.Iterable<? extends com.google.ortools.sat.CpSolverSolution> values) {
2391 if (additionalSolutionsBuilder_ == null) {
2392 ensureAdditionalSolutionsIsMutable();
2393 com.google.protobuf.AbstractMessageLite.Builder.addAll(
2394 values, additionalSolutions_);
2395 onChanged();
2396 } else {
2397 additionalSolutionsBuilder_.addAllMessages(values);
2398 }
2399 return this;
2400 }
2401
2413 public Builder clearAdditionalSolutions() {
2414 if (additionalSolutionsBuilder_ == null) {
2415 additionalSolutions_ = java.util.Collections.emptyList();
2416 bitField0_ = (bitField0_ & ~0x00000010);
2417 onChanged();
2418 } else {
2419 additionalSolutionsBuilder_.clear();
2420 }
2421 return this;
2422 }
2423
2435 public Builder removeAdditionalSolutions(int index) {
2436 if (additionalSolutionsBuilder_ == null) {
2437 ensureAdditionalSolutionsIsMutable();
2438 additionalSolutions_.remove(index);
2439 onChanged();
2440 } else {
2441 additionalSolutionsBuilder_.remove(index);
2442 }
2443 return this;
2444 }
2445
2458 int index) {
2459 return internalGetAdditionalSolutionsFieldBuilder().getBuilder(index);
2460 }
2461
2474 int index) {
2475 if (additionalSolutionsBuilder_ == null) {
2476 return additionalSolutions_.get(index); } else {
2477 return additionalSolutionsBuilder_.getMessageOrBuilder(index);
2478 }
2479 }
2480
2492 public java.util.List<? extends com.google.ortools.sat.CpSolverSolutionOrBuilder>
2494 if (additionalSolutionsBuilder_ != null) {
2495 return additionalSolutionsBuilder_.getMessageOrBuilderList();
2496 } else {
2497 return java.util.Collections.unmodifiableList(additionalSolutions_);
2498 }
2499 }
2500
2513 return internalGetAdditionalSolutionsFieldBuilder().addBuilder(
2514 com.google.ortools.sat.CpSolverSolution.getDefaultInstance());
2515 }
2516
2529 int index) {
2530 return internalGetAdditionalSolutionsFieldBuilder().addBuilder(
2531 index, com.google.ortools.sat.CpSolverSolution.getDefaultInstance());
2532 }
2533
2545 public java.util.List<com.google.ortools.sat.CpSolverSolution.Builder>
2547 return internalGetAdditionalSolutionsFieldBuilder().getBuilderList();
2548 }
2549 private com.google.protobuf.RepeatedFieldBuilder<
2550 com.google.ortools.sat.CpSolverSolution, com.google.ortools.sat.CpSolverSolution.Builder, com.google.ortools.sat.CpSolverSolutionOrBuilder>
2551 internalGetAdditionalSolutionsFieldBuilder() {
2552 if (additionalSolutionsBuilder_ == null) {
2553 additionalSolutionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
2554 com.google.ortools.sat.CpSolverSolution, com.google.ortools.sat.CpSolverSolution.Builder, com.google.ortools.sat.CpSolverSolutionOrBuilder>(
2555 additionalSolutions_,
2556 ((bitField0_ & 0x00000010) != 0),
2557 getParentForChildren(),
2558 isClean());
2559 additionalSolutions_ = null;
2560 }
2561 return additionalSolutionsBuilder_;
2562 }
2563
2564 private java.util.List<com.google.ortools.sat.IntegerVariableProto> tightenedVariables_ =
2565 java.util.Collections.emptyList();
2566 private void ensureTightenedVariablesIsMutable() {
2567 if (!((bitField0_ & 0x00000020) != 0)) {
2568 tightenedVariables_ = new java.util.ArrayList<com.google.ortools.sat.IntegerVariableProto>(tightenedVariables_);
2569 bitField0_ |= 0x00000020;
2570 }
2571 }
2572
2573 private com.google.protobuf.RepeatedFieldBuilder<
2574 com.google.ortools.sat.IntegerVariableProto, com.google.ortools.sat.IntegerVariableProto.Builder, com.google.ortools.sat.IntegerVariableProtoOrBuilder> tightenedVariablesBuilder_;
2575
2598 public java.util.List<com.google.ortools.sat.IntegerVariableProto> getTightenedVariablesList() {
2599 if (tightenedVariablesBuilder_ == null) {
2600 return java.util.Collections.unmodifiableList(tightenedVariables_);
2601 } else {
2602 return tightenedVariablesBuilder_.getMessageList();
2603 }
2604 }
2605
2628 if (tightenedVariablesBuilder_ == null) {
2629 return tightenedVariables_.size();
2630 } else {
2631 return tightenedVariablesBuilder_.getCount();
2632 }
2633 }
2634
2657 if (tightenedVariablesBuilder_ == null) {
2658 return tightenedVariables_.get(index);
2659 } else {
2660 return tightenedVariablesBuilder_.getMessage(index);
2661 }
2662 }
2663
2686 int index, com.google.ortools.sat.IntegerVariableProto value) {
2687 if (tightenedVariablesBuilder_ == null) {
2688 if (value == null) {
2689 throw new NullPointerException();
2690 }
2691 ensureTightenedVariablesIsMutable();
2692 tightenedVariables_.set(index, value);
2693 onChanged();
2694 } else {
2695 tightenedVariablesBuilder_.setMessage(index, value);
2696 }
2697 return this;
2698 }
2699
2722 int index, com.google.ortools.sat.IntegerVariableProto.Builder builderForValue) {
2723 if (tightenedVariablesBuilder_ == null) {
2724 ensureTightenedVariablesIsMutable();
2725 tightenedVariables_.set(index, builderForValue.build());
2726 onChanged();
2727 } else {
2728 tightenedVariablesBuilder_.setMessage(index, builderForValue.build());
2729 }
2730 return this;
2731 }
2732
2754 public Builder addTightenedVariables(com.google.ortools.sat.IntegerVariableProto value) {
2755 if (tightenedVariablesBuilder_ == null) {
2756 if (value == null) {
2757 throw new NullPointerException();
2758 }
2759 ensureTightenedVariablesIsMutable();
2760 tightenedVariables_.add(value);
2761 onChanged();
2762 } else {
2763 tightenedVariablesBuilder_.addMessage(value);
2764 }
2765 return this;
2766 }
2767
2790 int index, com.google.ortools.sat.IntegerVariableProto value) {
2791 if (tightenedVariablesBuilder_ == null) {
2792 if (value == null) {
2793 throw new NullPointerException();
2794 }
2795 ensureTightenedVariablesIsMutable();
2796 tightenedVariables_.add(index, value);
2797 onChanged();
2798 } else {
2799 tightenedVariablesBuilder_.addMessage(index, value);
2800 }
2801 return this;
2802 }
2803
2826 com.google.ortools.sat.IntegerVariableProto.Builder builderForValue) {
2827 if (tightenedVariablesBuilder_ == null) {
2828 ensureTightenedVariablesIsMutable();
2829 tightenedVariables_.add(builderForValue.build());
2830 onChanged();
2831 } else {
2832 tightenedVariablesBuilder_.addMessage(builderForValue.build());
2833 }
2834 return this;
2835 }
2836
2859 int index, com.google.ortools.sat.IntegerVariableProto.Builder builderForValue) {
2860 if (tightenedVariablesBuilder_ == null) {
2861 ensureTightenedVariablesIsMutable();
2862 tightenedVariables_.add(index, builderForValue.build());
2863 onChanged();
2864 } else {
2865 tightenedVariablesBuilder_.addMessage(index, builderForValue.build());
2866 }
2867 return this;
2868 }
2869
2892 java.lang.Iterable<? extends com.google.ortools.sat.IntegerVariableProto> values) {
2893 if (tightenedVariablesBuilder_ == null) {
2894 ensureTightenedVariablesIsMutable();
2895 com.google.protobuf.AbstractMessageLite.Builder.addAll(
2896 values, tightenedVariables_);
2897 onChanged();
2898 } else {
2899 tightenedVariablesBuilder_.addAllMessages(values);
2900 }
2901 return this;
2902 }
2903
2925 public Builder clearTightenedVariables() {
2926 if (tightenedVariablesBuilder_ == null) {
2927 tightenedVariables_ = java.util.Collections.emptyList();
2928 bitField0_ = (bitField0_ & ~0x00000020);
2929 onChanged();
2930 } else {
2931 tightenedVariablesBuilder_.clear();
2932 }
2933 return this;
2934 }
2935
2957 public Builder removeTightenedVariables(int index) {
2958 if (tightenedVariablesBuilder_ == null) {
2959 ensureTightenedVariablesIsMutable();
2960 tightenedVariables_.remove(index);
2961 onChanged();
2962 } else {
2963 tightenedVariablesBuilder_.remove(index);
2964 }
2965 return this;
2966 }
2967
2990 int index) {
2991 return internalGetTightenedVariablesFieldBuilder().getBuilder(index);
2992 }
2993
3016 int index) {
3017 if (tightenedVariablesBuilder_ == null) {
3018 return tightenedVariables_.get(index); } else {
3019 return tightenedVariablesBuilder_.getMessageOrBuilder(index);
3020 }
3021 }
3022
3044 public java.util.List<? extends com.google.ortools.sat.IntegerVariableProtoOrBuilder>
3046 if (tightenedVariablesBuilder_ != null) {
3047 return tightenedVariablesBuilder_.getMessageOrBuilderList();
3048 } else {
3049 return java.util.Collections.unmodifiableList(tightenedVariables_);
3050 }
3051 }
3052
3075 return internalGetTightenedVariablesFieldBuilder().addBuilder(
3076 com.google.ortools.sat.IntegerVariableProto.getDefaultInstance());
3077 }
3078
3101 int index) {
3102 return internalGetTightenedVariablesFieldBuilder().addBuilder(
3103 index, com.google.ortools.sat.IntegerVariableProto.getDefaultInstance());
3104 }
3105
3127 public java.util.List<com.google.ortools.sat.IntegerVariableProto.Builder>
3129 return internalGetTightenedVariablesFieldBuilder().getBuilderList();
3130 }
3131 private com.google.protobuf.RepeatedFieldBuilder<
3132 com.google.ortools.sat.IntegerVariableProto, com.google.ortools.sat.IntegerVariableProto.Builder, com.google.ortools.sat.IntegerVariableProtoOrBuilder>
3133 internalGetTightenedVariablesFieldBuilder() {
3134 if (tightenedVariablesBuilder_ == null) {
3135 tightenedVariablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
3136 com.google.ortools.sat.IntegerVariableProto, com.google.ortools.sat.IntegerVariableProto.Builder, com.google.ortools.sat.IntegerVariableProtoOrBuilder>(
3137 tightenedVariables_,
3138 ((bitField0_ & 0x00000020) != 0),
3139 getParentForChildren(),
3140 isClean());
3141 tightenedVariables_ = null;
3142 }
3143 return tightenedVariablesBuilder_;
3144 }
3145
3146 private com.google.protobuf.Internal.IntList sufficientAssumptionsForInfeasibility_ = emptyIntList();
3147 private void ensureSufficientAssumptionsForInfeasibilityIsMutable() {
3148 if (!sufficientAssumptionsForInfeasibility_.isModifiable()) {
3149 sufficientAssumptionsForInfeasibility_ = makeMutableCopy(sufficientAssumptionsForInfeasibility_);
3150 }
3151 bitField0_ |= 0x00000040;
3152 }
3179 public java.util.List<java.lang.Integer>
3181 sufficientAssumptionsForInfeasibility_.makeImmutable();
3182 return sufficientAssumptionsForInfeasibility_;
3183 }
3184
3211 return sufficientAssumptionsForInfeasibility_.size();
3212 }
3213
3241 return sufficientAssumptionsForInfeasibility_.getInt(index);
3242 }
3243
3272 int index, int value) {
3273
3274 ensureSufficientAssumptionsForInfeasibilityIsMutable();
3275 sufficientAssumptionsForInfeasibility_.setInt(index, value);
3276 bitField0_ |= 0x00000040;
3277 onChanged();
3278 return this;
3279 }
3280
3308
3309 ensureSufficientAssumptionsForInfeasibilityIsMutable();
3310 sufficientAssumptionsForInfeasibility_.addInt(value);
3311 bitField0_ |= 0x00000040;
3312 onChanged();
3313 return this;
3314 }
3315
3343 java.lang.Iterable<? extends java.lang.Integer> values) {
3344 ensureSufficientAssumptionsForInfeasibilityIsMutable();
3345 com.google.protobuf.AbstractMessageLite.Builder.addAll(
3346 values, sufficientAssumptionsForInfeasibility_);
3347 bitField0_ |= 0x00000040;
3348 onChanged();
3349 return this;
3350 }
3351
3378 sufficientAssumptionsForInfeasibility_ = emptyIntList();
3379 bitField0_ = (bitField0_ & ~0x00000040);
3380 onChanged();
3381 return this;
3382 }
3383
3384 private com.google.ortools.sat.CpObjectiveProto integerObjective_;
3385 private com.google.protobuf.SingleFieldBuilder<
3386 com.google.ortools.sat.CpObjectiveProto, com.google.ortools.sat.CpObjectiveProto.Builder, com.google.ortools.sat.CpObjectiveProtoOrBuilder> integerObjectiveBuilder_;
3397 public boolean hasIntegerObjective() {
3398 return ((bitField0_ & 0x00000080) != 0);
3399 }
3400
3411 if (integerObjectiveBuilder_ == null) {
3412 return integerObjective_ == null ? com.google.ortools.sat.CpObjectiveProto.getDefaultInstance() : integerObjective_;
3413 } else {
3414 return integerObjectiveBuilder_.getMessage();
3415 }
3416 }
3417
3426 public Builder setIntegerObjective(com.google.ortools.sat.CpObjectiveProto value) {
3427 if (integerObjectiveBuilder_ == null) {
3428 if (value == null) {
3429 throw new NullPointerException();
3430 }
3431 integerObjective_ = value;
3432 } else {
3433 integerObjectiveBuilder_.setMessage(value);
3434 }
3435 bitField0_ |= 0x00000080;
3436 onChanged();
3437 return this;
3438 }
3439
3448 public Builder setIntegerObjective(
3449 com.google.ortools.sat.CpObjectiveProto.Builder builderForValue) {
3450 if (integerObjectiveBuilder_ == null) {
3451 integerObjective_ = builderForValue.build();
3452 } else {
3453 integerObjectiveBuilder_.setMessage(builderForValue.build());
3454 }
3455 bitField0_ |= 0x00000080;
3456 onChanged();
3457 return this;
3458 }
3459
3468 public Builder mergeIntegerObjective(com.google.ortools.sat.CpObjectiveProto value) {
3469 if (integerObjectiveBuilder_ == null) {
3470 if (((bitField0_ & 0x00000080) != 0) &&
3471 integerObjective_ != null &&
3472 integerObjective_ != com.google.ortools.sat.CpObjectiveProto.getDefaultInstance()) {
3473 getIntegerObjectiveBuilder().mergeFrom(value);
3474 } else {
3475 integerObjective_ = value;
3476 }
3477 } else {
3478 integerObjectiveBuilder_.mergeFrom(value);
3479 }
3480 if (integerObjective_ != null) {
3481 bitField0_ |= 0x00000080;
3482 onChanged();
3483 }
3484 return this;
3485 }
3486
3495 public Builder clearIntegerObjective() {
3496 bitField0_ = (bitField0_ & ~0x00000080);
3497 integerObjective_ = null;
3498 if (integerObjectiveBuilder_ != null) {
3499 integerObjectiveBuilder_.dispose();
3500 integerObjectiveBuilder_ = null;
3501 }
3502 onChanged();
3503 return this;
3504 }
3505
3515 bitField0_ |= 0x00000080;
3516 onChanged();
3517 return internalGetIntegerObjectiveFieldBuilder().getBuilder();
3518 }
3519
3529 if (integerObjectiveBuilder_ != null) {
3530 return integerObjectiveBuilder_.getMessageOrBuilder();
3531 } else {
3532 return integerObjective_ == null ?
3533 com.google.ortools.sat.CpObjectiveProto.getDefaultInstance() : integerObjective_;
3534 }
3535 }
3536
3545 private com.google.protobuf.SingleFieldBuilder<
3546 com.google.ortools.sat.CpObjectiveProto, com.google.ortools.sat.CpObjectiveProto.Builder, com.google.ortools.sat.CpObjectiveProtoOrBuilder>
3547 internalGetIntegerObjectiveFieldBuilder() {
3548 if (integerObjectiveBuilder_ == null) {
3549 integerObjectiveBuilder_ = new com.google.protobuf.SingleFieldBuilder<
3550 com.google.ortools.sat.CpObjectiveProto, com.google.ortools.sat.CpObjectiveProto.Builder, com.google.ortools.sat.CpObjectiveProtoOrBuilder>(
3552 getParentForChildren(),
3553 isClean());
3554 integerObjective_ = null;
3555 }
3556 return integerObjectiveBuilder_;
3557 }
3558
3559 private long innerObjectiveLowerBound_ ;
3575 @java.lang.Override
3577 return innerObjectiveLowerBound_;
3578 }
3579
3595 public Builder setInnerObjectiveLowerBound(long value) {
3596
3597 innerObjectiveLowerBound_ = value;
3598 bitField0_ |= 0x00000100;
3599 onChanged();
3600 return this;
3601 }
3602
3618 bitField0_ = (bitField0_ & ~0x00000100);
3619 innerObjectiveLowerBound_ = 0L;
3620 onChanged();
3621 return this;
3622 }
3623
3624 private long numIntegers_ ;
3637 @java.lang.Override
3638 public long getNumIntegers() {
3639 return numIntegers_;
3640 }
3641
3654 public Builder setNumIntegers(long value) {
3655
3656 numIntegers_ = value;
3657 bitField0_ |= 0x00000200;
3658 onChanged();
3659 return this;
3660 }
3661
3673 public Builder clearNumIntegers() {
3674 bitField0_ = (bitField0_ & ~0x00000200);
3675 numIntegers_ = 0L;
3676 onChanged();
3677 return this;
3678 }
3679
3680 private long numBooleans_ ;
3685 @java.lang.Override
3686 public long getNumBooleans() {
3687 return numBooleans_;
3688 }
3689
3694 public Builder setNumBooleans(long value) {
3695
3696 numBooleans_ = value;
3697 bitField0_ |= 0x00000400;
3698 onChanged();
3699 return this;
3700 }
3701
3705 public Builder clearNumBooleans() {
3706 bitField0_ = (bitField0_ & ~0x00000400);
3707 numBooleans_ = 0L;
3708 onChanged();
3709 return this;
3710 }
3711
3712 private long numFixedBooleans_ ;
3717 @java.lang.Override
3718 public long getNumFixedBooleans() {
3719 return numFixedBooleans_;
3720 }
3721
3726 public Builder setNumFixedBooleans(long value) {
3727
3728 numFixedBooleans_ = value;
3729 bitField0_ |= 0x00000800;
3730 onChanged();
3731 return this;
3732 }
3733
3737 public Builder clearNumFixedBooleans() {
3738 bitField0_ = (bitField0_ & ~0x00000800);
3739 numFixedBooleans_ = 0L;
3740 onChanged();
3741 return this;
3742 }
3743
3744 private long numConflicts_ ;
3749 @java.lang.Override
3750 public long getNumConflicts() {
3751 return numConflicts_;
3752 }
3753
3758 public Builder setNumConflicts(long value) {
3759
3760 numConflicts_ = value;
3761 bitField0_ |= 0x00001000;
3762 onChanged();
3763 return this;
3764 }
3765
3769 public Builder clearNumConflicts() {
3770 bitField0_ = (bitField0_ & ~0x00001000);
3771 numConflicts_ = 0L;
3772 onChanged();
3773 return this;
3774 }
3775
3776 private long numBranches_ ;
3781 @java.lang.Override
3782 public long getNumBranches() {
3783 return numBranches_;
3784 }
3785
3790 public Builder setNumBranches(long value) {
3791
3792 numBranches_ = value;
3793 bitField0_ |= 0x00002000;
3794 onChanged();
3795 return this;
3796 }
3797
3801 public Builder clearNumBranches() {
3802 bitField0_ = (bitField0_ & ~0x00002000);
3803 numBranches_ = 0L;
3804 onChanged();
3805 return this;
3806 }
3807
3808 private long numBinaryPropagations_ ;
3813 @java.lang.Override
3815 return numBinaryPropagations_;
3816 }
3817
3822 public Builder setNumBinaryPropagations(long value) {
3823
3824 numBinaryPropagations_ = value;
3825 bitField0_ |= 0x00004000;
3826 onChanged();
3827 return this;
3828 }
3829
3834 bitField0_ = (bitField0_ & ~0x00004000);
3835 numBinaryPropagations_ = 0L;
3836 onChanged();
3837 return this;
3838 }
3839
3840 private long numIntegerPropagations_ ;
3845 @java.lang.Override
3847 return numIntegerPropagations_;
3848 }
3849
3854 public Builder setNumIntegerPropagations(long value) {
3855
3856 numIntegerPropagations_ = value;
3857 bitField0_ |= 0x00008000;
3858 onChanged();
3859 return this;
3860 }
3861
3866 bitField0_ = (bitField0_ & ~0x00008000);
3867 numIntegerPropagations_ = 0L;
3868 onChanged();
3869 return this;
3870 }
3871
3872 private long numRestarts_ ;
3877 @java.lang.Override
3878 public long getNumRestarts() {
3879 return numRestarts_;
3880 }
3881
3886 public Builder setNumRestarts(long value) {
3887
3888 numRestarts_ = value;
3889 bitField0_ |= 0x00010000;
3890 onChanged();
3891 return this;
3892 }
3893
3897 public Builder clearNumRestarts() {
3898 bitField0_ = (bitField0_ & ~0x00010000);
3899 numRestarts_ = 0L;
3900 onChanged();
3901 return this;
3902 }
3903
3904 private long numLpIterations_ ;
3909 @java.lang.Override
3910 public long getNumLpIterations() {
3911 return numLpIterations_;
3912 }
3913
3918 public Builder setNumLpIterations(long value) {
3919
3920 numLpIterations_ = value;
3921 bitField0_ |= 0x00020000;
3922 onChanged();
3923 return this;
3924 }
3925
3929 public Builder clearNumLpIterations() {
3930 bitField0_ = (bitField0_ & ~0x00020000);
3931 numLpIterations_ = 0L;
3932 onChanged();
3933 return this;
3934 }
3935
3936 private double wallTime_ ;
3945 @java.lang.Override
3946 public double getWallTime() {
3947 return wallTime_;
3948 }
3949
3958 public Builder setWallTime(double value) {
3959
3960 wallTime_ = value;
3961 bitField0_ |= 0x00040000;
3962 onChanged();
3963 return this;
3964 }
3965
3973 public Builder clearWallTime() {
3974 bitField0_ = (bitField0_ & ~0x00040000);
3975 wallTime_ = 0D;
3976 onChanged();
3977 return this;
3978 }
3979
3980 private double userTime_ ;
3985 @java.lang.Override
3986 public double getUserTime() {
3987 return userTime_;
3988 }
3989
3994 public Builder setUserTime(double value) {
3995
3996 userTime_ = value;
3997 bitField0_ |= 0x00080000;
3998 onChanged();
3999 return this;
4000 }
4001
4005 public Builder clearUserTime() {
4006 bitField0_ = (bitField0_ & ~0x00080000);
4007 userTime_ = 0D;
4008 onChanged();
4009 return this;
4010 }
4011
4012 private double deterministicTime_ ;
4017 @java.lang.Override
4018 public double getDeterministicTime() {
4019 return deterministicTime_;
4020 }
4021
4026 public Builder setDeterministicTime(double value) {
4027
4028 deterministicTime_ = value;
4029 bitField0_ |= 0x00100000;
4030 onChanged();
4031 return this;
4032 }
4033
4037 public Builder clearDeterministicTime() {
4038 bitField0_ = (bitField0_ & ~0x00100000);
4039 deterministicTime_ = 0D;
4040 onChanged();
4041 return this;
4042 }
4043
4044 private double gapIntegral_ ;
4053 @java.lang.Override
4054 public double getGapIntegral() {
4055 return gapIntegral_;
4056 }
4057
4066 public Builder setGapIntegral(double value) {
4067
4068 gapIntegral_ = value;
4069 bitField0_ |= 0x00200000;
4070 onChanged();
4071 return this;
4072 }
4073
4081 public Builder clearGapIntegral() {
4082 bitField0_ = (bitField0_ & ~0x00200000);
4083 gapIntegral_ = 0D;
4084 onChanged();
4085 return this;
4086 }
4087
4088 private java.lang.Object solutionInfo_ = "";
4098 public java.lang.String getSolutionInfo() {
4099 java.lang.Object ref = solutionInfo_;
4100 if (!(ref instanceof java.lang.String)) {
4101 com.google.protobuf.ByteString bs =
4102 (com.google.protobuf.ByteString) ref;
4103 java.lang.String s = bs.toStringUtf8();
4104 solutionInfo_ = s;
4105 return s;
4106 } else {
4107 return (java.lang.String) ref;
4108 }
4109 }
4110
4119 public com.google.protobuf.ByteString
4121 java.lang.Object ref = solutionInfo_;
4122 if (ref instanceof String) {
4123 com.google.protobuf.ByteString b =
4124 com.google.protobuf.ByteString.copyFromUtf8(
4125 (java.lang.String) ref);
4126 solutionInfo_ = b;
4127 return b;
4128 } else {
4129 return (com.google.protobuf.ByteString) ref;
4130 }
4131 }
4132
4142 public Builder setSolutionInfo(
4143 java.lang.String value) {
4144 if (value == null) { throw new NullPointerException(); }
4145 solutionInfo_ = value;
4146 bitField0_ |= 0x00400000;
4147 onChanged();
4148 return this;
4149 }
4150
4159 public Builder clearSolutionInfo() {
4160 solutionInfo_ = getDefaultInstance().getSolutionInfo();
4161 bitField0_ = (bitField0_ & ~0x00400000);
4162 onChanged();
4163 return this;
4164 }
4165
4175 public Builder setSolutionInfoBytes(
4176 com.google.protobuf.ByteString value) {
4177 if (value == null) { throw new NullPointerException(); }
4178 checkByteStringIsUtf8(value);
4179 solutionInfo_ = value;
4180 bitField0_ |= 0x00400000;
4181 onChanged();
4182 return this;
4183 }
4184
4185 private java.lang.Object solveLog_ = "";
4195 public java.lang.String getSolveLog() {
4196 java.lang.Object ref = solveLog_;
4197 if (!(ref instanceof java.lang.String)) {
4198 com.google.protobuf.ByteString bs =
4199 (com.google.protobuf.ByteString) ref;
4200 java.lang.String s = bs.toStringUtf8();
4201 solveLog_ = s;
4202 return s;
4203 } else {
4204 return (java.lang.String) ref;
4205 }
4206 }
4207
4216 public com.google.protobuf.ByteString
4218 java.lang.Object ref = solveLog_;
4219 if (ref instanceof String) {
4220 com.google.protobuf.ByteString b =
4221 com.google.protobuf.ByteString.copyFromUtf8(
4222 (java.lang.String) ref);
4223 solveLog_ = b;
4224 return b;
4225 } else {
4226 return (com.google.protobuf.ByteString) ref;
4227 }
4228 }
4229
4239 public Builder setSolveLog(
4240 java.lang.String value) {
4241 if (value == null) { throw new NullPointerException(); }
4242 solveLog_ = value;
4243 bitField0_ |= 0x00800000;
4244 onChanged();
4245 return this;
4246 }
4247
4256 public Builder clearSolveLog() {
4257 solveLog_ = getDefaultInstance().getSolveLog();
4258 bitField0_ = (bitField0_ & ~0x00800000);
4259 onChanged();
4260 return this;
4261 }
4262
4272 public Builder setSolveLogBytes(
4273 com.google.protobuf.ByteString value) {
4274 if (value == null) { throw new NullPointerException(); }
4275 checkByteStringIsUtf8(value);
4276 solveLog_ = value;
4277 bitField0_ |= 0x00800000;
4278 onChanged();
4279 return this;
4280 }
4281
4282 // @@protoc_insertion_point(builder_scope:operations_research.sat.CpSolverResponse)
4283 }
4284
4285 // @@protoc_insertion_point(class_scope:operations_research.sat.CpSolverResponse)
4286 private static final com.google.ortools.sat.CpSolverResponse DEFAULT_INSTANCE;
4287 static {
4288 DEFAULT_INSTANCE = new com.google.ortools.sat.CpSolverResponse();
4289 }
4290
4292 return DEFAULT_INSTANCE;
4293 }
4294
4295 private static final com.google.protobuf.Parser<CpSolverResponse>
4296 PARSER = new com.google.protobuf.AbstractParser<CpSolverResponse>() {
4297 @java.lang.Override
4298 public CpSolverResponse parsePartialFrom(
4299 com.google.protobuf.CodedInputStream input,
4300 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4301 throws com.google.protobuf.InvalidProtocolBufferException {
4302 Builder builder = newBuilder();
4303 try {
4304 builder.mergeFrom(input, extensionRegistry);
4305 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
4306 throw e.setUnfinishedMessage(builder.buildPartial());
4307 } catch (com.google.protobuf.UninitializedMessageException e) {
4308 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
4309 } catch (java.io.IOException e) {
4310 throw new com.google.protobuf.InvalidProtocolBufferException(e)
4311 .setUnfinishedMessage(builder.buildPartial());
4312 }
4313 return builder.buildPartial();
4314 }
4315 };
4316
4317 public static com.google.protobuf.Parser<CpSolverResponse> parser() {
4318 return PARSER;
4319 }
4320
4321 @java.lang.Override
4322 public com.google.protobuf.Parser<CpSolverResponse> getParserForType() {
4323 return PARSER;
4324 }
4325
4326 @java.lang.Override
4328 return DEFAULT_INSTANCE;
4329 }
4330
4331}
4332
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()