Google OR-Tools v9.9
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
ConstraintProto.java
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: ortools/sat/cp_model.proto
3
4// Protobuf Java Version: 3.25.3
5package com.google.ortools.sat;
6
14public final class ConstraintProto extends
15 com.google.protobuf.GeneratedMessageV3 implements
16 // @@protoc_insertion_point(message_implements:operations_research.sat.ConstraintProto)
18private static final long serialVersionUID = 0L;
19 // Use ConstraintProto.newBuilder() to construct.
20 private ConstraintProto(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
21 super(builder);
22 }
23 private ConstraintProto() {
24 name_ = "";
25 enforcementLiteral_ = emptyIntList();
26 }
27
28 @java.lang.Override
29 @SuppressWarnings({"unused"})
30 protected java.lang.Object newInstance(
31 UnusedPrivateParameter unused) {
32 return new ConstraintProto();
33 }
34
35 public static final com.google.protobuf.Descriptors.Descriptor
37 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_descriptor;
38 }
39
40 @java.lang.Override
41 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
43 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_fieldAccessorTable
44 .ensureFieldAccessorsInitialized(
45 com.google.ortools.sat.ConstraintProto.class, com.google.ortools.sat.ConstraintProto.Builder.class);
46 }
47
48 private int constraintCase_ = 0;
49 @SuppressWarnings("serial")
50 private java.lang.Object constraint_;
51 public enum ConstraintCase
52 implements com.google.protobuf.Internal.EnumLite,
53 com.google.protobuf.AbstractMessage.InternalOneOfEnum {
63 LINEAR(12),
67 ROUTES(23),
68 TABLE(16),
78 private final int value;
79 private ConstraintCase(int value) {
80 this.value = value;
81 }
87 @java.lang.Deprecated
88 public static ConstraintCase valueOf(int value) {
89 return forNumber(value);
90 }
91
92 public static ConstraintCase forNumber(int value) {
93 switch (value) {
94 case 3: return BOOL_OR;
95 case 4: return BOOL_AND;
96 case 26: return AT_MOST_ONE;
97 case 29: return EXACTLY_ONE;
98 case 5: return BOOL_XOR;
99 case 7: return INT_DIV;
100 case 8: return INT_MOD;
101 case 11: return INT_PROD;
102 case 27: return LIN_MAX;
103 case 12: return LINEAR;
104 case 13: return ALL_DIFF;
105 case 14: return ELEMENT;
106 case 15: return CIRCUIT;
107 case 23: return ROUTES;
108 case 16: return TABLE;
109 case 17: return AUTOMATON;
110 case 18: return INVERSE;
111 case 24: return RESERVOIR;
112 case 19: return INTERVAL;
113 case 20: return NO_OVERLAP;
114 case 21: return NO_OVERLAP_2D;
115 case 22: return CUMULATIVE;
116 case 30: return DUMMY_CONSTRAINT;
117 case 0: return CONSTRAINT_NOT_SET;
118 default: return null;
119 }
120 }
121 public int getNumber() {
122 return this.value;
123 }
124 };
125
126 public ConstraintCase
129 constraintCase_);
130 }
131
132 public static final int NAME_FIELD_NUMBER = 1;
133 @SuppressWarnings("serial")
134 private volatile java.lang.Object name_ = "";
143 @java.lang.Override
144 public java.lang.String getName() {
145 java.lang.Object ref = name_;
146 if (ref instanceof java.lang.String) {
147 return (java.lang.String) ref;
148 } else {
149 com.google.protobuf.ByteString bs =
150 (com.google.protobuf.ByteString) ref;
151 java.lang.String s = bs.toStringUtf8();
152 name_ = s;
153 return s;
154 }
155 }
164 @java.lang.Override
165 public com.google.protobuf.ByteString
167 java.lang.Object ref = name_;
168 if (ref instanceof java.lang.String) {
169 com.google.protobuf.ByteString b =
170 com.google.protobuf.ByteString.copyFromUtf8(
171 (java.lang.String) ref);
172 name_ = b;
173 return b;
174 } else {
175 return (com.google.protobuf.ByteString) ref;
176 }
177 }
178
179 public static final int ENFORCEMENT_LITERAL_FIELD_NUMBER = 2;
180 @SuppressWarnings("serial")
181 private com.google.protobuf.Internal.IntList enforcementLiteral_ =
182 emptyIntList();
204 @java.lang.Override
205 public java.util.List<java.lang.Integer>
207 return enforcementLiteral_;
208 }
231 return enforcementLiteral_.size();
232 }
255 public int getEnforcementLiteral(int index) {
256 return enforcementLiteral_.getInt(index);
257 }
258 private int enforcementLiteralMemoizedSerializedSize = -1;
259
260 public static final int BOOL_OR_FIELD_NUMBER = 3;
269 @java.lang.Override
270 public boolean hasBoolOr() {
271 return constraintCase_ == 3;
272 }
281 @java.lang.Override
283 if (constraintCase_ == 3) {
284 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
285 }
286 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
287 }
295 @java.lang.Override
297 if (constraintCase_ == 3) {
298 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
299 }
300 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
301 }
302
303 public static final int BOOL_AND_FIELD_NUMBER = 4;
316 @java.lang.Override
317 public boolean hasBoolAnd() {
318 return constraintCase_ == 4;
319 }
332 @java.lang.Override
334 if (constraintCase_ == 4) {
335 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
336 }
337 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
338 }
350 @java.lang.Override
352 if (constraintCase_ == 4) {
353 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
354 }
355 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
356 }
357
358 public static final int AT_MOST_ONE_FIELD_NUMBER = 26;
377 @java.lang.Override
378 public boolean hasAtMostOne() {
379 return constraintCase_ == 26;
380 }
399 @java.lang.Override
401 if (constraintCase_ == 26) {
402 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
403 }
404 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
405 }
423 @java.lang.Override
425 if (constraintCase_ == 26) {
426 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
427 }
428 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
429 }
430
431 public static final int EXACTLY_ONE_FIELD_NUMBER = 29;
451 @java.lang.Override
452 public boolean hasExactlyOne() {
453 return constraintCase_ == 29;
454 }
474 @java.lang.Override
476 if (constraintCase_ == 29) {
477 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
478 }
479 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
480 }
499 @java.lang.Override
501 if (constraintCase_ == 29) {
502 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
503 }
504 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
505 }
506
507 public static final int BOOL_XOR_FIELD_NUMBER = 5;
516 @java.lang.Override
517 public boolean hasBoolXor() {
518 return constraintCase_ == 5;
519 }
528 @java.lang.Override
530 if (constraintCase_ == 5) {
531 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
532 }
533 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
534 }
542 @java.lang.Override
544 if (constraintCase_ == 5) {
545 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
546 }
547 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
548 }
549
550 public static final int INT_DIV_FIELD_NUMBER = 7;
565 @java.lang.Override
566 public boolean hasIntDiv() {
567 return constraintCase_ == 7;
568 }
583 @java.lang.Override
585 if (constraintCase_ == 7) {
586 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
587 }
588 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
589 }
603 @java.lang.Override
605 if (constraintCase_ == 7) {
606 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
607 }
608 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
609 }
610
611 public static final int INT_MOD_FIELD_NUMBER = 8;
622 @java.lang.Override
623 public boolean hasIntMod() {
624 return constraintCase_ == 8;
625 }
636 @java.lang.Override
638 if (constraintCase_ == 8) {
639 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
640 }
641 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
642 }
652 @java.lang.Override
654 if (constraintCase_ == 8) {
655 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
656 }
657 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
658 }
659
660 public static final int INT_PROD_FIELD_NUMBER = 11;
676 @java.lang.Override
677 public boolean hasIntProd() {
678 return constraintCase_ == 11;
679 }
695 @java.lang.Override
697 if (constraintCase_ == 11) {
698 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
699 }
700 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
701 }
716 @java.lang.Override
718 if (constraintCase_ == 11) {
719 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
720 }
721 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
722 }
723
724 public static final int LIN_MAX_FIELD_NUMBER = 27;
735 @java.lang.Override
736 public boolean hasLinMax() {
737 return constraintCase_ == 27;
738 }
749 @java.lang.Override
751 if (constraintCase_ == 27) {
752 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
753 }
754 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
755 }
765 @java.lang.Override
767 if (constraintCase_ == 27) {
768 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
769 }
770 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
771 }
772
773 public static final int LINEAR_FIELD_NUMBER = 12;
783 @java.lang.Override
784 public boolean hasLinear() {
785 return constraintCase_ == 12;
786 }
796 @java.lang.Override
798 if (constraintCase_ == 12) {
799 return (com.google.ortools.sat.LinearConstraintProto) constraint_;
800 }
801 return com.google.ortools.sat.LinearConstraintProto.getDefaultInstance();
802 }
811 @java.lang.Override
813 if (constraintCase_ == 12) {
814 return (com.google.ortools.sat.LinearConstraintProto) constraint_;
815 }
816 return com.google.ortools.sat.LinearConstraintProto.getDefaultInstance();
817 }
818
819 public static final int ALL_DIFF_FIELD_NUMBER = 13;
828 @java.lang.Override
829 public boolean hasAllDiff() {
830 return constraintCase_ == 13;
831 }
840 @java.lang.Override
842 if (constraintCase_ == 13) {
843 return (com.google.ortools.sat.AllDifferentConstraintProto) constraint_;
844 }
845 return com.google.ortools.sat.AllDifferentConstraintProto.getDefaultInstance();
846 }
854 @java.lang.Override
856 if (constraintCase_ == 13) {
857 return (com.google.ortools.sat.AllDifferentConstraintProto) constraint_;
858 }
859 return com.google.ortools.sat.AllDifferentConstraintProto.getDefaultInstance();
860 }
861
862 public static final int ELEMENT_FIELD_NUMBER = 14;
872 @java.lang.Override
873 public boolean hasElement() {
874 return constraintCase_ == 14;
875 }
885 @java.lang.Override
887 if (constraintCase_ == 14) {
888 return (com.google.ortools.sat.ElementConstraintProto) constraint_;
889 }
890 return com.google.ortools.sat.ElementConstraintProto.getDefaultInstance();
891 }
900 @java.lang.Override
902 if (constraintCase_ == 14) {
903 return (com.google.ortools.sat.ElementConstraintProto) constraint_;
904 }
905 return com.google.ortools.sat.ElementConstraintProto.getDefaultInstance();
906 }
907
908 public static final int CIRCUIT_FIELD_NUMBER = 15;
918 @java.lang.Override
919 public boolean hasCircuit() {
920 return constraintCase_ == 15;
921 }
931 @java.lang.Override
933 if (constraintCase_ == 15) {
934 return (com.google.ortools.sat.CircuitConstraintProto) constraint_;
935 }
936 return com.google.ortools.sat.CircuitConstraintProto.getDefaultInstance();
937 }
946 @java.lang.Override
948 if (constraintCase_ == 15) {
949 return (com.google.ortools.sat.CircuitConstraintProto) constraint_;
950 }
951 return com.google.ortools.sat.CircuitConstraintProto.getDefaultInstance();
952 }
953
954 public static final int ROUTES_FIELD_NUMBER = 23;
963 @java.lang.Override
964 public boolean hasRoutes() {
965 return constraintCase_ == 23;
966 }
975 @java.lang.Override
977 if (constraintCase_ == 23) {
978 return (com.google.ortools.sat.RoutesConstraintProto) constraint_;
979 }
980 return com.google.ortools.sat.RoutesConstraintProto.getDefaultInstance();
981 }
989 @java.lang.Override
991 if (constraintCase_ == 23) {
992 return (com.google.ortools.sat.RoutesConstraintProto) constraint_;
993 }
994 return com.google.ortools.sat.RoutesConstraintProto.getDefaultInstance();
995 }
996
997 public static final int TABLE_FIELD_NUMBER = 16;
1007 @java.lang.Override
1008 public boolean hasTable() {
1009 return constraintCase_ == 16;
1010 }
1020 @java.lang.Override
1022 if (constraintCase_ == 16) {
1023 return (com.google.ortools.sat.TableConstraintProto) constraint_;
1024 }
1025 return com.google.ortools.sat.TableConstraintProto.getDefaultInstance();
1026 }
1035 @java.lang.Override
1037 if (constraintCase_ == 16) {
1038 return (com.google.ortools.sat.TableConstraintProto) constraint_;
1039 }
1040 return com.google.ortools.sat.TableConstraintProto.getDefaultInstance();
1041 }
1042
1043 public static final int AUTOMATON_FIELD_NUMBER = 17;
1053 @java.lang.Override
1054 public boolean hasAutomaton() {
1055 return constraintCase_ == 17;
1056 }
1066 @java.lang.Override
1068 if (constraintCase_ == 17) {
1069 return (com.google.ortools.sat.AutomatonConstraintProto) constraint_;
1070 }
1071 return com.google.ortools.sat.AutomatonConstraintProto.getDefaultInstance();
1072 }
1081 @java.lang.Override
1083 if (constraintCase_ == 17) {
1084 return (com.google.ortools.sat.AutomatonConstraintProto) constraint_;
1085 }
1086 return com.google.ortools.sat.AutomatonConstraintProto.getDefaultInstance();
1087 }
1088
1089 public static final int INVERSE_FIELD_NUMBER = 18;
1099 @java.lang.Override
1100 public boolean hasInverse() {
1101 return constraintCase_ == 18;
1102 }
1112 @java.lang.Override
1114 if (constraintCase_ == 18) {
1115 return (com.google.ortools.sat.InverseConstraintProto) constraint_;
1116 }
1117 return com.google.ortools.sat.InverseConstraintProto.getDefaultInstance();
1118 }
1127 @java.lang.Override
1129 if (constraintCase_ == 18) {
1130 return (com.google.ortools.sat.InverseConstraintProto) constraint_;
1131 }
1132 return com.google.ortools.sat.InverseConstraintProto.getDefaultInstance();
1133 }
1134
1135 public static final int RESERVOIR_FIELD_NUMBER = 24;
1146 @java.lang.Override
1147 public boolean hasReservoir() {
1148 return constraintCase_ == 24;
1149 }
1160 @java.lang.Override
1162 if (constraintCase_ == 24) {
1163 return (com.google.ortools.sat.ReservoirConstraintProto) constraint_;
1164 }
1165 return com.google.ortools.sat.ReservoirConstraintProto.getDefaultInstance();
1166 }
1176 @java.lang.Override
1178 if (constraintCase_ == 24) {
1179 return (com.google.ortools.sat.ReservoirConstraintProto) constraint_;
1180 }
1181 return com.google.ortools.sat.ReservoirConstraintProto.getDefaultInstance();
1182 }
1183
1184 public static final int INTERVAL_FIELD_NUMBER = 19;
1194 @java.lang.Override
1195 public boolean hasInterval() {
1196 return constraintCase_ == 19;
1197 }
1207 @java.lang.Override
1209 if (constraintCase_ == 19) {
1210 return (com.google.ortools.sat.IntervalConstraintProto) constraint_;
1211 }
1212 return com.google.ortools.sat.IntervalConstraintProto.getDefaultInstance();
1213 }
1222 @java.lang.Override
1224 if (constraintCase_ == 19) {
1225 return (com.google.ortools.sat.IntervalConstraintProto) constraint_;
1226 }
1227 return com.google.ortools.sat.IntervalConstraintProto.getDefaultInstance();
1228 }
1229
1230 public static final int NO_OVERLAP_FIELD_NUMBER = 20;
1241 @java.lang.Override
1242 public boolean hasNoOverlap() {
1243 return constraintCase_ == 20;
1244 }
1255 @java.lang.Override
1257 if (constraintCase_ == 20) {
1258 return (com.google.ortools.sat.NoOverlapConstraintProto) constraint_;
1259 }
1260 return com.google.ortools.sat.NoOverlapConstraintProto.getDefaultInstance();
1261 }
1271 @java.lang.Override
1273 if (constraintCase_ == 20) {
1274 return (com.google.ortools.sat.NoOverlapConstraintProto) constraint_;
1275 }
1276 return com.google.ortools.sat.NoOverlapConstraintProto.getDefaultInstance();
1277 }
1278
1279 public static final int NO_OVERLAP_2D_FIELD_NUMBER = 21;
1288 @java.lang.Override
1289 public boolean hasNoOverlap2D() {
1290 return constraintCase_ == 21;
1291 }
1300 @java.lang.Override
1302 if (constraintCase_ == 21) {
1303 return (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_;
1304 }
1305 return com.google.ortools.sat.NoOverlap2DConstraintProto.getDefaultInstance();
1306 }
1314 @java.lang.Override
1316 if (constraintCase_ == 21) {
1317 return (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_;
1318 }
1319 return com.google.ortools.sat.NoOverlap2DConstraintProto.getDefaultInstance();
1320 }
1321
1322 public static final int CUMULATIVE_FIELD_NUMBER = 22;
1333 @java.lang.Override
1334 public boolean hasCumulative() {
1335 return constraintCase_ == 22;
1336 }
1347 @java.lang.Override
1349 if (constraintCase_ == 22) {
1350 return (com.google.ortools.sat.CumulativeConstraintProto) constraint_;
1351 }
1352 return com.google.ortools.sat.CumulativeConstraintProto.getDefaultInstance();
1353 }
1363 @java.lang.Override
1365 if (constraintCase_ == 22) {
1366 return (com.google.ortools.sat.CumulativeConstraintProto) constraint_;
1367 }
1368 return com.google.ortools.sat.CumulativeConstraintProto.getDefaultInstance();
1369 }
1370
1371 public static final int DUMMY_CONSTRAINT_FIELD_NUMBER = 30;
1381 @java.lang.Override
1382 public boolean hasDummyConstraint() {
1383 return constraintCase_ == 30;
1384 }
1394 @java.lang.Override
1396 if (constraintCase_ == 30) {
1397 return (com.google.ortools.sat.ListOfVariablesProto) constraint_;
1398 }
1399 return com.google.ortools.sat.ListOfVariablesProto.getDefaultInstance();
1400 }
1409 @java.lang.Override
1411 if (constraintCase_ == 30) {
1412 return (com.google.ortools.sat.ListOfVariablesProto) constraint_;
1413 }
1414 return com.google.ortools.sat.ListOfVariablesProto.getDefaultInstance();
1415 }
1416
1417 private byte memoizedIsInitialized = -1;
1418 @java.lang.Override
1419 public final boolean isInitialized() {
1420 byte isInitialized = memoizedIsInitialized;
1421 if (isInitialized == 1) return true;
1422 if (isInitialized == 0) return false;
1423
1424 memoizedIsInitialized = 1;
1425 return true;
1426 }
1427
1428 @java.lang.Override
1429 public void writeTo(com.google.protobuf.CodedOutputStream output)
1430 throws java.io.IOException {
1432 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
1433 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
1434 }
1435 if (getEnforcementLiteralList().size() > 0) {
1436 output.writeUInt32NoTag(18);
1437 output.writeUInt32NoTag(enforcementLiteralMemoizedSerializedSize);
1438 }
1439 for (int i = 0; i < enforcementLiteral_.size(); i++) {
1440 output.writeInt32NoTag(enforcementLiteral_.getInt(i));
1441 }
1442 if (constraintCase_ == 3) {
1443 output.writeMessage(3, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1444 }
1445 if (constraintCase_ == 4) {
1446 output.writeMessage(4, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1447 }
1448 if (constraintCase_ == 5) {
1449 output.writeMessage(5, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1450 }
1451 if (constraintCase_ == 7) {
1452 output.writeMessage(7, (com.google.ortools.sat.LinearArgumentProto) constraint_);
1453 }
1454 if (constraintCase_ == 8) {
1455 output.writeMessage(8, (com.google.ortools.sat.LinearArgumentProto) constraint_);
1456 }
1457 if (constraintCase_ == 11) {
1458 output.writeMessage(11, (com.google.ortools.sat.LinearArgumentProto) constraint_);
1459 }
1460 if (constraintCase_ == 12) {
1461 output.writeMessage(12, (com.google.ortools.sat.LinearConstraintProto) constraint_);
1462 }
1463 if (constraintCase_ == 13) {
1464 output.writeMessage(13, (com.google.ortools.sat.AllDifferentConstraintProto) constraint_);
1465 }
1466 if (constraintCase_ == 14) {
1467 output.writeMessage(14, (com.google.ortools.sat.ElementConstraintProto) constraint_);
1468 }
1469 if (constraintCase_ == 15) {
1470 output.writeMessage(15, (com.google.ortools.sat.CircuitConstraintProto) constraint_);
1471 }
1472 if (constraintCase_ == 16) {
1473 output.writeMessage(16, (com.google.ortools.sat.TableConstraintProto) constraint_);
1474 }
1475 if (constraintCase_ == 17) {
1476 output.writeMessage(17, (com.google.ortools.sat.AutomatonConstraintProto) constraint_);
1477 }
1478 if (constraintCase_ == 18) {
1479 output.writeMessage(18, (com.google.ortools.sat.InverseConstraintProto) constraint_);
1480 }
1481 if (constraintCase_ == 19) {
1482 output.writeMessage(19, (com.google.ortools.sat.IntervalConstraintProto) constraint_);
1483 }
1484 if (constraintCase_ == 20) {
1485 output.writeMessage(20, (com.google.ortools.sat.NoOverlapConstraintProto) constraint_);
1486 }
1487 if (constraintCase_ == 21) {
1488 output.writeMessage(21, (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_);
1489 }
1490 if (constraintCase_ == 22) {
1491 output.writeMessage(22, (com.google.ortools.sat.CumulativeConstraintProto) constraint_);
1492 }
1493 if (constraintCase_ == 23) {
1494 output.writeMessage(23, (com.google.ortools.sat.RoutesConstraintProto) constraint_);
1495 }
1496 if (constraintCase_ == 24) {
1497 output.writeMessage(24, (com.google.ortools.sat.ReservoirConstraintProto) constraint_);
1498 }
1499 if (constraintCase_ == 26) {
1500 output.writeMessage(26, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1501 }
1502 if (constraintCase_ == 27) {
1503 output.writeMessage(27, (com.google.ortools.sat.LinearArgumentProto) constraint_);
1504 }
1505 if (constraintCase_ == 29) {
1506 output.writeMessage(29, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1507 }
1508 if (constraintCase_ == 30) {
1509 output.writeMessage(30, (com.google.ortools.sat.ListOfVariablesProto) constraint_);
1510 }
1511 getUnknownFields().writeTo(output);
1512 }
1513
1514 @java.lang.Override
1515 public int getSerializedSize() {
1516 int size = memoizedSize;
1517 if (size != -1) return size;
1518
1519 size = 0;
1520 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
1521 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
1522 }
1523 {
1524 int dataSize = 0;
1525 for (int i = 0; i < enforcementLiteral_.size(); i++) {
1526 dataSize += com.google.protobuf.CodedOutputStream
1527 .computeInt32SizeNoTag(enforcementLiteral_.getInt(i));
1528 }
1529 size += dataSize;
1530 if (!getEnforcementLiteralList().isEmpty()) {
1531 size += 1;
1532 size += com.google.protobuf.CodedOutputStream
1533 .computeInt32SizeNoTag(dataSize);
1534 }
1535 enforcementLiteralMemoizedSerializedSize = dataSize;
1536 }
1537 if (constraintCase_ == 3) {
1538 size += com.google.protobuf.CodedOutputStream
1539 .computeMessageSize(3, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1540 }
1541 if (constraintCase_ == 4) {
1542 size += com.google.protobuf.CodedOutputStream
1543 .computeMessageSize(4, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1544 }
1545 if (constraintCase_ == 5) {
1546 size += com.google.protobuf.CodedOutputStream
1547 .computeMessageSize(5, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1548 }
1549 if (constraintCase_ == 7) {
1550 size += com.google.protobuf.CodedOutputStream
1551 .computeMessageSize(7, (com.google.ortools.sat.LinearArgumentProto) constraint_);
1552 }
1553 if (constraintCase_ == 8) {
1554 size += com.google.protobuf.CodedOutputStream
1555 .computeMessageSize(8, (com.google.ortools.sat.LinearArgumentProto) constraint_);
1556 }
1557 if (constraintCase_ == 11) {
1558 size += com.google.protobuf.CodedOutputStream
1559 .computeMessageSize(11, (com.google.ortools.sat.LinearArgumentProto) constraint_);
1560 }
1561 if (constraintCase_ == 12) {
1562 size += com.google.protobuf.CodedOutputStream
1563 .computeMessageSize(12, (com.google.ortools.sat.LinearConstraintProto) constraint_);
1564 }
1565 if (constraintCase_ == 13) {
1566 size += com.google.protobuf.CodedOutputStream
1567 .computeMessageSize(13, (com.google.ortools.sat.AllDifferentConstraintProto) constraint_);
1568 }
1569 if (constraintCase_ == 14) {
1570 size += com.google.protobuf.CodedOutputStream
1571 .computeMessageSize(14, (com.google.ortools.sat.ElementConstraintProto) constraint_);
1572 }
1573 if (constraintCase_ == 15) {
1574 size += com.google.protobuf.CodedOutputStream
1575 .computeMessageSize(15, (com.google.ortools.sat.CircuitConstraintProto) constraint_);
1576 }
1577 if (constraintCase_ == 16) {
1578 size += com.google.protobuf.CodedOutputStream
1579 .computeMessageSize(16, (com.google.ortools.sat.TableConstraintProto) constraint_);
1580 }
1581 if (constraintCase_ == 17) {
1582 size += com.google.protobuf.CodedOutputStream
1583 .computeMessageSize(17, (com.google.ortools.sat.AutomatonConstraintProto) constraint_);
1584 }
1585 if (constraintCase_ == 18) {
1586 size += com.google.protobuf.CodedOutputStream
1587 .computeMessageSize(18, (com.google.ortools.sat.InverseConstraintProto) constraint_);
1588 }
1589 if (constraintCase_ == 19) {
1590 size += com.google.protobuf.CodedOutputStream
1591 .computeMessageSize(19, (com.google.ortools.sat.IntervalConstraintProto) constraint_);
1592 }
1593 if (constraintCase_ == 20) {
1594 size += com.google.protobuf.CodedOutputStream
1595 .computeMessageSize(20, (com.google.ortools.sat.NoOverlapConstraintProto) constraint_);
1596 }
1597 if (constraintCase_ == 21) {
1598 size += com.google.protobuf.CodedOutputStream
1599 .computeMessageSize(21, (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_);
1600 }
1601 if (constraintCase_ == 22) {
1602 size += com.google.protobuf.CodedOutputStream
1603 .computeMessageSize(22, (com.google.ortools.sat.CumulativeConstraintProto) constraint_);
1604 }
1605 if (constraintCase_ == 23) {
1606 size += com.google.protobuf.CodedOutputStream
1607 .computeMessageSize(23, (com.google.ortools.sat.RoutesConstraintProto) constraint_);
1608 }
1609 if (constraintCase_ == 24) {
1610 size += com.google.protobuf.CodedOutputStream
1611 .computeMessageSize(24, (com.google.ortools.sat.ReservoirConstraintProto) constraint_);
1612 }
1613 if (constraintCase_ == 26) {
1614 size += com.google.protobuf.CodedOutputStream
1615 .computeMessageSize(26, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1616 }
1617 if (constraintCase_ == 27) {
1618 size += com.google.protobuf.CodedOutputStream
1619 .computeMessageSize(27, (com.google.ortools.sat.LinearArgumentProto) constraint_);
1620 }
1621 if (constraintCase_ == 29) {
1622 size += com.google.protobuf.CodedOutputStream
1623 .computeMessageSize(29, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1624 }
1625 if (constraintCase_ == 30) {
1626 size += com.google.protobuf.CodedOutputStream
1627 .computeMessageSize(30, (com.google.ortools.sat.ListOfVariablesProto) constraint_);
1628 }
1629 size += getUnknownFields().getSerializedSize();
1630 memoizedSize = size;
1631 return size;
1632 }
1633
1634 @java.lang.Override
1635 public boolean equals(final java.lang.Object obj) {
1636 if (obj == this) {
1637 return true;
1638 }
1639 if (!(obj instanceof com.google.ortools.sat.ConstraintProto)) {
1640 return super.equals(obj);
1641 }
1642 com.google.ortools.sat.ConstraintProto other = (com.google.ortools.sat.ConstraintProto) obj;
1643
1644 if (!getName()
1645 .equals(other.getName())) return false;
1647 .equals(other.getEnforcementLiteralList())) return false;
1648 if (!getConstraintCase().equals(other.getConstraintCase())) return false;
1649 switch (constraintCase_) {
1650 case 3:
1651 if (!getBoolOr()
1652 .equals(other.getBoolOr())) return false;
1653 break;
1654 case 4:
1655 if (!getBoolAnd()
1656 .equals(other.getBoolAnd())) return false;
1657 break;
1658 case 26:
1659 if (!getAtMostOne()
1660 .equals(other.getAtMostOne())) return false;
1661 break;
1662 case 29:
1663 if (!getExactlyOne()
1664 .equals(other.getExactlyOne())) return false;
1665 break;
1666 case 5:
1667 if (!getBoolXor()
1668 .equals(other.getBoolXor())) return false;
1669 break;
1670 case 7:
1671 if (!getIntDiv()
1672 .equals(other.getIntDiv())) return false;
1673 break;
1674 case 8:
1675 if (!getIntMod()
1676 .equals(other.getIntMod())) return false;
1677 break;
1678 case 11:
1679 if (!getIntProd()
1680 .equals(other.getIntProd())) return false;
1681 break;
1682 case 27:
1683 if (!getLinMax()
1684 .equals(other.getLinMax())) return false;
1685 break;
1686 case 12:
1687 if (!getLinear()
1688 .equals(other.getLinear())) return false;
1689 break;
1690 case 13:
1691 if (!getAllDiff()
1692 .equals(other.getAllDiff())) return false;
1693 break;
1694 case 14:
1695 if (!getElement()
1696 .equals(other.getElement())) return false;
1697 break;
1698 case 15:
1699 if (!getCircuit()
1700 .equals(other.getCircuit())) return false;
1701 break;
1702 case 23:
1703 if (!getRoutes()
1704 .equals(other.getRoutes())) return false;
1705 break;
1706 case 16:
1707 if (!getTable()
1708 .equals(other.getTable())) return false;
1709 break;
1710 case 17:
1711 if (!getAutomaton()
1712 .equals(other.getAutomaton())) return false;
1713 break;
1714 case 18:
1715 if (!getInverse()
1716 .equals(other.getInverse())) return false;
1717 break;
1718 case 24:
1719 if (!getReservoir()
1720 .equals(other.getReservoir())) return false;
1721 break;
1722 case 19:
1723 if (!getInterval()
1724 .equals(other.getInterval())) return false;
1725 break;
1726 case 20:
1727 if (!getNoOverlap()
1728 .equals(other.getNoOverlap())) return false;
1729 break;
1730 case 21:
1731 if (!getNoOverlap2D()
1732 .equals(other.getNoOverlap2D())) return false;
1733 break;
1734 case 22:
1735 if (!getCumulative()
1736 .equals(other.getCumulative())) return false;
1737 break;
1738 case 30:
1739 if (!getDummyConstraint()
1740 .equals(other.getDummyConstraint())) return false;
1741 break;
1742 case 0:
1743 default:
1744 }
1745 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
1746 return true;
1747 }
1748
1749 @java.lang.Override
1750 public int hashCode() {
1751 if (memoizedHashCode != 0) {
1752 return memoizedHashCode;
1753 }
1754 int hash = 41;
1755 hash = (19 * hash) + getDescriptor().hashCode();
1756 hash = (37 * hash) + NAME_FIELD_NUMBER;
1757 hash = (53 * hash) + getName().hashCode();
1758 if (getEnforcementLiteralCount() > 0) {
1759 hash = (37 * hash) + ENFORCEMENT_LITERAL_FIELD_NUMBER;
1760 hash = (53 * hash) + getEnforcementLiteralList().hashCode();
1761 }
1762 switch (constraintCase_) {
1763 case 3:
1764 hash = (37 * hash) + BOOL_OR_FIELD_NUMBER;
1765 hash = (53 * hash) + getBoolOr().hashCode();
1766 break;
1767 case 4:
1768 hash = (37 * hash) + BOOL_AND_FIELD_NUMBER;
1769 hash = (53 * hash) + getBoolAnd().hashCode();
1770 break;
1771 case 26:
1772 hash = (37 * hash) + AT_MOST_ONE_FIELD_NUMBER;
1773 hash = (53 * hash) + getAtMostOne().hashCode();
1774 break;
1775 case 29:
1776 hash = (37 * hash) + EXACTLY_ONE_FIELD_NUMBER;
1777 hash = (53 * hash) + getExactlyOne().hashCode();
1778 break;
1779 case 5:
1780 hash = (37 * hash) + BOOL_XOR_FIELD_NUMBER;
1781 hash = (53 * hash) + getBoolXor().hashCode();
1782 break;
1783 case 7:
1784 hash = (37 * hash) + INT_DIV_FIELD_NUMBER;
1785 hash = (53 * hash) + getIntDiv().hashCode();
1786 break;
1787 case 8:
1788 hash = (37 * hash) + INT_MOD_FIELD_NUMBER;
1789 hash = (53 * hash) + getIntMod().hashCode();
1790 break;
1791 case 11:
1792 hash = (37 * hash) + INT_PROD_FIELD_NUMBER;
1793 hash = (53 * hash) + getIntProd().hashCode();
1794 break;
1795 case 27:
1796 hash = (37 * hash) + LIN_MAX_FIELD_NUMBER;
1797 hash = (53 * hash) + getLinMax().hashCode();
1798 break;
1799 case 12:
1800 hash = (37 * hash) + LINEAR_FIELD_NUMBER;
1801 hash = (53 * hash) + getLinear().hashCode();
1802 break;
1803 case 13:
1804 hash = (37 * hash) + ALL_DIFF_FIELD_NUMBER;
1805 hash = (53 * hash) + getAllDiff().hashCode();
1806 break;
1807 case 14:
1808 hash = (37 * hash) + ELEMENT_FIELD_NUMBER;
1809 hash = (53 * hash) + getElement().hashCode();
1810 break;
1811 case 15:
1812 hash = (37 * hash) + CIRCUIT_FIELD_NUMBER;
1813 hash = (53 * hash) + getCircuit().hashCode();
1814 break;
1815 case 23:
1816 hash = (37 * hash) + ROUTES_FIELD_NUMBER;
1817 hash = (53 * hash) + getRoutes().hashCode();
1818 break;
1819 case 16:
1820 hash = (37 * hash) + TABLE_FIELD_NUMBER;
1821 hash = (53 * hash) + getTable().hashCode();
1822 break;
1823 case 17:
1824 hash = (37 * hash) + AUTOMATON_FIELD_NUMBER;
1825 hash = (53 * hash) + getAutomaton().hashCode();
1826 break;
1827 case 18:
1828 hash = (37 * hash) + INVERSE_FIELD_NUMBER;
1829 hash = (53 * hash) + getInverse().hashCode();
1830 break;
1831 case 24:
1832 hash = (37 * hash) + RESERVOIR_FIELD_NUMBER;
1833 hash = (53 * hash) + getReservoir().hashCode();
1834 break;
1835 case 19:
1836 hash = (37 * hash) + INTERVAL_FIELD_NUMBER;
1837 hash = (53 * hash) + getInterval().hashCode();
1838 break;
1839 case 20:
1840 hash = (37 * hash) + NO_OVERLAP_FIELD_NUMBER;
1841 hash = (53 * hash) + getNoOverlap().hashCode();
1842 break;
1843 case 21:
1844 hash = (37 * hash) + NO_OVERLAP_2D_FIELD_NUMBER;
1845 hash = (53 * hash) + getNoOverlap2D().hashCode();
1846 break;
1847 case 22:
1848 hash = (37 * hash) + CUMULATIVE_FIELD_NUMBER;
1849 hash = (53 * hash) + getCumulative().hashCode();
1850 break;
1851 case 30:
1852 hash = (37 * hash) + DUMMY_CONSTRAINT_FIELD_NUMBER;
1853 hash = (53 * hash) + getDummyConstraint().hashCode();
1854 break;
1855 case 0:
1856 default:
1857 }
1858 hash = (29 * hash) + getUnknownFields().hashCode();
1859 memoizedHashCode = hash;
1860 return hash;
1861 }
1862
1864 java.nio.ByteBuffer data)
1865 throws com.google.protobuf.InvalidProtocolBufferException {
1866 return PARSER.parseFrom(data);
1867 }
1869 java.nio.ByteBuffer data,
1870 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1871 throws com.google.protobuf.InvalidProtocolBufferException {
1872 return PARSER.parseFrom(data, extensionRegistry);
1873 }
1875 com.google.protobuf.ByteString data)
1876 throws com.google.protobuf.InvalidProtocolBufferException {
1877 return PARSER.parseFrom(data);
1878 }
1880 com.google.protobuf.ByteString data,
1881 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1882 throws com.google.protobuf.InvalidProtocolBufferException {
1883 return PARSER.parseFrom(data, extensionRegistry);
1884 }
1886 throws com.google.protobuf.InvalidProtocolBufferException {
1887 return PARSER.parseFrom(data);
1888 }
1890 byte[] data,
1891 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1892 throws com.google.protobuf.InvalidProtocolBufferException {
1893 return PARSER.parseFrom(data, extensionRegistry);
1894 }
1895 public static com.google.ortools.sat.ConstraintProto parseFrom(java.io.InputStream input)
1896 throws java.io.IOException {
1897 return com.google.protobuf.GeneratedMessageV3
1898 .parseWithIOException(PARSER, input);
1899 }
1901 java.io.InputStream input,
1902 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1903 throws java.io.IOException {
1904 return com.google.protobuf.GeneratedMessageV3
1905 .parseWithIOException(PARSER, input, extensionRegistry);
1906 }
1907
1908 public static com.google.ortools.sat.ConstraintProto parseDelimitedFrom(java.io.InputStream input)
1909 throws java.io.IOException {
1910 return com.google.protobuf.GeneratedMessageV3
1911 .parseDelimitedWithIOException(PARSER, input);
1912 }
1913
1915 java.io.InputStream input,
1916 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1917 throws java.io.IOException {
1918 return com.google.protobuf.GeneratedMessageV3
1919 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
1920 }
1922 com.google.protobuf.CodedInputStream input)
1923 throws java.io.IOException {
1924 return com.google.protobuf.GeneratedMessageV3
1925 .parseWithIOException(PARSER, input);
1926 }
1928 com.google.protobuf.CodedInputStream input,
1929 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1930 throws java.io.IOException {
1931 return com.google.protobuf.GeneratedMessageV3
1932 .parseWithIOException(PARSER, input, extensionRegistry);
1933 }
1934
1935 @java.lang.Override
1936 public Builder newBuilderForType() { return newBuilder(); }
1937 public static Builder newBuilder() {
1938 return DEFAULT_INSTANCE.toBuilder();
1939 }
1940 public static Builder newBuilder(com.google.ortools.sat.ConstraintProto prototype) {
1941 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1942 }
1943 @java.lang.Override
1945 return this == DEFAULT_INSTANCE
1946 ? new Builder() : new Builder().mergeFrom(this);
1947 }
1948
1949 @java.lang.Override
1951 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1952 Builder builder = new Builder(parent);
1953 return builder;
1954 }
1962 public static final class Builder extends
1963 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
1964 // @@protoc_insertion_point(builder_implements:operations_research.sat.ConstraintProto)
1965 com.google.ortools.sat.ConstraintProtoOrBuilder {
1966 public static final com.google.protobuf.Descriptors.Descriptor
1968 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_descriptor;
1969 }
1970
1971 @java.lang.Override
1972 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
1974 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_fieldAccessorTable
1975 .ensureFieldAccessorsInitialized(
1976 com.google.ortools.sat.ConstraintProto.class, com.google.ortools.sat.ConstraintProto.Builder.class);
1977 }
1978
1979 // Construct using com.google.ortools.sat.ConstraintProto.newBuilder()
1980 private Builder() {
1981
1982 }
1983
1984 private Builder(
1985 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1986 super(parent);
1987
1988 }
1989 @java.lang.Override
1990 public Builder clear() {
1991 super.clear();
1992 bitField0_ = 0;
1993 name_ = "";
1994 enforcementLiteral_ = emptyIntList();
1995 if (boolOrBuilder_ != null) {
1996 boolOrBuilder_.clear();
1997 }
1998 if (boolAndBuilder_ != null) {
1999 boolAndBuilder_.clear();
2000 }
2001 if (atMostOneBuilder_ != null) {
2002 atMostOneBuilder_.clear();
2003 }
2004 if (exactlyOneBuilder_ != null) {
2005 exactlyOneBuilder_.clear();
2006 }
2007 if (boolXorBuilder_ != null) {
2008 boolXorBuilder_.clear();
2009 }
2010 if (intDivBuilder_ != null) {
2011 intDivBuilder_.clear();
2012 }
2013 if (intModBuilder_ != null) {
2014 intModBuilder_.clear();
2015 }
2016 if (intProdBuilder_ != null) {
2017 intProdBuilder_.clear();
2018 }
2019 if (linMaxBuilder_ != null) {
2020 linMaxBuilder_.clear();
2021 }
2022 if (linearBuilder_ != null) {
2023 linearBuilder_.clear();
2024 }
2025 if (allDiffBuilder_ != null) {
2026 allDiffBuilder_.clear();
2027 }
2028 if (elementBuilder_ != null) {
2029 elementBuilder_.clear();
2030 }
2031 if (circuitBuilder_ != null) {
2032 circuitBuilder_.clear();
2033 }
2034 if (routesBuilder_ != null) {
2035 routesBuilder_.clear();
2036 }
2037 if (tableBuilder_ != null) {
2038 tableBuilder_.clear();
2039 }
2040 if (automatonBuilder_ != null) {
2041 automatonBuilder_.clear();
2042 }
2043 if (inverseBuilder_ != null) {
2044 inverseBuilder_.clear();
2045 }
2046 if (reservoirBuilder_ != null) {
2047 reservoirBuilder_.clear();
2048 }
2049 if (intervalBuilder_ != null) {
2050 intervalBuilder_.clear();
2051 }
2052 if (noOverlapBuilder_ != null) {
2053 noOverlapBuilder_.clear();
2054 }
2055 if (noOverlap2DBuilder_ != null) {
2056 noOverlap2DBuilder_.clear();
2057 }
2058 if (cumulativeBuilder_ != null) {
2059 cumulativeBuilder_.clear();
2060 }
2061 if (dummyConstraintBuilder_ != null) {
2062 dummyConstraintBuilder_.clear();
2063 }
2064 constraintCase_ = 0;
2065 constraint_ = null;
2066 return this;
2067 }
2068
2069 @java.lang.Override
2070 public com.google.protobuf.Descriptors.Descriptor
2072 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_descriptor;
2073 }
2074
2075 @java.lang.Override
2077 return com.google.ortools.sat.ConstraintProto.getDefaultInstance();
2078 }
2079
2080 @java.lang.Override
2083 if (!result.isInitialized()) {
2084 throw newUninitializedMessageException(result);
2085 }
2086 return result;
2087 }
2088
2089 @java.lang.Override
2091 com.google.ortools.sat.ConstraintProto result = new com.google.ortools.sat.ConstraintProto(this);
2092 if (bitField0_ != 0) { buildPartial0(result); }
2093 buildPartialOneofs(result);
2094 onBuilt();
2095 return result;
2096 }
2097
2098 private void buildPartial0(com.google.ortools.sat.ConstraintProto result) {
2099 int from_bitField0_ = bitField0_;
2100 if (((from_bitField0_ & 0x00000001) != 0)) {
2101 result.name_ = name_;
2102 }
2103 if (((from_bitField0_ & 0x00000002) != 0)) {
2104 enforcementLiteral_.makeImmutable();
2105 result.enforcementLiteral_ = enforcementLiteral_;
2106 }
2107 }
2108
2109 private void buildPartialOneofs(com.google.ortools.sat.ConstraintProto result) {
2110 result.constraintCase_ = constraintCase_;
2111 result.constraint_ = this.constraint_;
2112 if (constraintCase_ == 3 &&
2113 boolOrBuilder_ != null) {
2114 result.constraint_ = boolOrBuilder_.build();
2115 }
2116 if (constraintCase_ == 4 &&
2117 boolAndBuilder_ != null) {
2118 result.constraint_ = boolAndBuilder_.build();
2119 }
2120 if (constraintCase_ == 26 &&
2121 atMostOneBuilder_ != null) {
2122 result.constraint_ = atMostOneBuilder_.build();
2123 }
2124 if (constraintCase_ == 29 &&
2125 exactlyOneBuilder_ != null) {
2126 result.constraint_ = exactlyOneBuilder_.build();
2127 }
2128 if (constraintCase_ == 5 &&
2129 boolXorBuilder_ != null) {
2130 result.constraint_ = boolXorBuilder_.build();
2131 }
2132 if (constraintCase_ == 7 &&
2133 intDivBuilder_ != null) {
2134 result.constraint_ = intDivBuilder_.build();
2135 }
2136 if (constraintCase_ == 8 &&
2137 intModBuilder_ != null) {
2138 result.constraint_ = intModBuilder_.build();
2139 }
2140 if (constraintCase_ == 11 &&
2141 intProdBuilder_ != null) {
2142 result.constraint_ = intProdBuilder_.build();
2143 }
2144 if (constraintCase_ == 27 &&
2145 linMaxBuilder_ != null) {
2146 result.constraint_ = linMaxBuilder_.build();
2147 }
2148 if (constraintCase_ == 12 &&
2149 linearBuilder_ != null) {
2150 result.constraint_ = linearBuilder_.build();
2151 }
2152 if (constraintCase_ == 13 &&
2153 allDiffBuilder_ != null) {
2154 result.constraint_ = allDiffBuilder_.build();
2155 }
2156 if (constraintCase_ == 14 &&
2157 elementBuilder_ != null) {
2158 result.constraint_ = elementBuilder_.build();
2159 }
2160 if (constraintCase_ == 15 &&
2161 circuitBuilder_ != null) {
2162 result.constraint_ = circuitBuilder_.build();
2163 }
2164 if (constraintCase_ == 23 &&
2165 routesBuilder_ != null) {
2166 result.constraint_ = routesBuilder_.build();
2167 }
2168 if (constraintCase_ == 16 &&
2169 tableBuilder_ != null) {
2170 result.constraint_ = tableBuilder_.build();
2171 }
2172 if (constraintCase_ == 17 &&
2173 automatonBuilder_ != null) {
2174 result.constraint_ = automatonBuilder_.build();
2175 }
2176 if (constraintCase_ == 18 &&
2177 inverseBuilder_ != null) {
2178 result.constraint_ = inverseBuilder_.build();
2179 }
2180 if (constraintCase_ == 24 &&
2181 reservoirBuilder_ != null) {
2182 result.constraint_ = reservoirBuilder_.build();
2183 }
2184 if (constraintCase_ == 19 &&
2185 intervalBuilder_ != null) {
2186 result.constraint_ = intervalBuilder_.build();
2187 }
2188 if (constraintCase_ == 20 &&
2189 noOverlapBuilder_ != null) {
2190 result.constraint_ = noOverlapBuilder_.build();
2191 }
2192 if (constraintCase_ == 21 &&
2193 noOverlap2DBuilder_ != null) {
2194 result.constraint_ = noOverlap2DBuilder_.build();
2195 }
2196 if (constraintCase_ == 22 &&
2197 cumulativeBuilder_ != null) {
2198 result.constraint_ = cumulativeBuilder_.build();
2199 }
2200 if (constraintCase_ == 30 &&
2201 dummyConstraintBuilder_ != null) {
2202 result.constraint_ = dummyConstraintBuilder_.build();
2203 }
2204 }
2205
2206 @java.lang.Override
2207 public Builder clone() {
2208 return super.clone();
2209 }
2210 @java.lang.Override
2212 com.google.protobuf.Descriptors.FieldDescriptor field,
2213 java.lang.Object value) {
2214 return super.setField(field, value);
2215 }
2216 @java.lang.Override
2218 com.google.protobuf.Descriptors.FieldDescriptor field) {
2219 return super.clearField(field);
2220 }
2221 @java.lang.Override
2223 com.google.protobuf.Descriptors.OneofDescriptor oneof) {
2224 return super.clearOneof(oneof);
2225 }
2226 @java.lang.Override
2228 com.google.protobuf.Descriptors.FieldDescriptor field,
2229 int index, java.lang.Object value) {
2230 return super.setRepeatedField(field, index, value);
2231 }
2232 @java.lang.Override
2234 com.google.protobuf.Descriptors.FieldDescriptor field,
2235 java.lang.Object value) {
2236 return super.addRepeatedField(field, value);
2237 }
2238 @java.lang.Override
2239 public Builder mergeFrom(com.google.protobuf.Message other) {
2240 if (other instanceof com.google.ortools.sat.ConstraintProto) {
2241 return mergeFrom((com.google.ortools.sat.ConstraintProto)other);
2242 } else {
2243 super.mergeFrom(other);
2244 return this;
2245 }
2246 }
2247
2248 public Builder mergeFrom(com.google.ortools.sat.ConstraintProto other) {
2249 if (other == com.google.ortools.sat.ConstraintProto.getDefaultInstance()) return this;
2250 if (!other.getName().isEmpty()) {
2251 name_ = other.name_;
2252 bitField0_ |= 0x00000001;
2253 onChanged();
2254 }
2255 if (!other.enforcementLiteral_.isEmpty()) {
2256 if (enforcementLiteral_.isEmpty()) {
2257 enforcementLiteral_ = other.enforcementLiteral_;
2258 enforcementLiteral_.makeImmutable();
2259 bitField0_ |= 0x00000002;
2260 } else {
2261 ensureEnforcementLiteralIsMutable();
2262 enforcementLiteral_.addAll(other.enforcementLiteral_);
2263 }
2264 onChanged();
2265 }
2266 switch (other.getConstraintCase()) {
2267 case BOOL_OR: {
2268 mergeBoolOr(other.getBoolOr());
2269 break;
2270 }
2271 case BOOL_AND: {
2272 mergeBoolAnd(other.getBoolAnd());
2273 break;
2274 }
2275 case AT_MOST_ONE: {
2276 mergeAtMostOne(other.getAtMostOne());
2277 break;
2278 }
2279 case EXACTLY_ONE: {
2280 mergeExactlyOne(other.getExactlyOne());
2281 break;
2282 }
2283 case BOOL_XOR: {
2284 mergeBoolXor(other.getBoolXor());
2285 break;
2286 }
2287 case INT_DIV: {
2288 mergeIntDiv(other.getIntDiv());
2289 break;
2290 }
2291 case INT_MOD: {
2292 mergeIntMod(other.getIntMod());
2293 break;
2294 }
2295 case INT_PROD: {
2296 mergeIntProd(other.getIntProd());
2297 break;
2298 }
2299 case LIN_MAX: {
2300 mergeLinMax(other.getLinMax());
2301 break;
2302 }
2303 case LINEAR: {
2304 mergeLinear(other.getLinear());
2305 break;
2306 }
2307 case ALL_DIFF: {
2308 mergeAllDiff(other.getAllDiff());
2309 break;
2310 }
2311 case ELEMENT: {
2312 mergeElement(other.getElement());
2313 break;
2314 }
2315 case CIRCUIT: {
2316 mergeCircuit(other.getCircuit());
2317 break;
2318 }
2319 case ROUTES: {
2320 mergeRoutes(other.getRoutes());
2321 break;
2322 }
2323 case TABLE: {
2324 mergeTable(other.getTable());
2325 break;
2326 }
2327 case AUTOMATON: {
2328 mergeAutomaton(other.getAutomaton());
2329 break;
2330 }
2331 case INVERSE: {
2332 mergeInverse(other.getInverse());
2333 break;
2334 }
2335 case RESERVOIR: {
2336 mergeReservoir(other.getReservoir());
2337 break;
2338 }
2339 case INTERVAL: {
2340 mergeInterval(other.getInterval());
2341 break;
2342 }
2343 case NO_OVERLAP: {
2344 mergeNoOverlap(other.getNoOverlap());
2345 break;
2346 }
2347 case NO_OVERLAP_2D: {
2348 mergeNoOverlap2D(other.getNoOverlap2D());
2349 break;
2350 }
2351 case CUMULATIVE: {
2352 mergeCumulative(other.getCumulative());
2353 break;
2354 }
2355 case DUMMY_CONSTRAINT: {
2356 mergeDummyConstraint(other.getDummyConstraint());
2357 break;
2358 }
2359 case CONSTRAINT_NOT_SET: {
2360 break;
2361 }
2362 }
2363 this.mergeUnknownFields(other.getUnknownFields());
2364 onChanged();
2365 return this;
2366 }
2367
2368 @java.lang.Override
2369 public final boolean isInitialized() {
2370 return true;
2371 }
2372
2373 @java.lang.Override
2375 com.google.protobuf.CodedInputStream input,
2376 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2377 throws java.io.IOException {
2378 if (extensionRegistry == null) {
2379 throw new java.lang.NullPointerException();
2380 }
2381 try {
2382 boolean done = false;
2383 while (!done) {
2384 int tag = input.readTag();
2385 switch (tag) {
2386 case 0:
2387 done = true;
2388 break;
2389 case 10: {
2390 name_ = input.readStringRequireUtf8();
2391 bitField0_ |= 0x00000001;
2392 break;
2393 } // case 10
2394 case 16: {
2395 int v = input.readInt32();
2396 ensureEnforcementLiteralIsMutable();
2397 enforcementLiteral_.addInt(v);
2398 break;
2399 } // case 16
2400 case 18: {
2401 int length = input.readRawVarint32();
2402 int limit = input.pushLimit(length);
2403 ensureEnforcementLiteralIsMutable();
2404 while (input.getBytesUntilLimit() > 0) {
2405 enforcementLiteral_.addInt(input.readInt32());
2406 }
2407 input.popLimit(limit);
2408 break;
2409 } // case 18
2410 case 26: {
2411 input.readMessage(
2412 getBoolOrFieldBuilder().getBuilder(),
2413 extensionRegistry);
2414 constraintCase_ = 3;
2415 break;
2416 } // case 26
2417 case 34: {
2418 input.readMessage(
2419 getBoolAndFieldBuilder().getBuilder(),
2420 extensionRegistry);
2421 constraintCase_ = 4;
2422 break;
2423 } // case 34
2424 case 42: {
2425 input.readMessage(
2426 getBoolXorFieldBuilder().getBuilder(),
2427 extensionRegistry);
2428 constraintCase_ = 5;
2429 break;
2430 } // case 42
2431 case 58: {
2432 input.readMessage(
2433 getIntDivFieldBuilder().getBuilder(),
2434 extensionRegistry);
2435 constraintCase_ = 7;
2436 break;
2437 } // case 58
2438 case 66: {
2439 input.readMessage(
2440 getIntModFieldBuilder().getBuilder(),
2441 extensionRegistry);
2442 constraintCase_ = 8;
2443 break;
2444 } // case 66
2445 case 90: {
2446 input.readMessage(
2447 getIntProdFieldBuilder().getBuilder(),
2448 extensionRegistry);
2449 constraintCase_ = 11;
2450 break;
2451 } // case 90
2452 case 98: {
2453 input.readMessage(
2454 getLinearFieldBuilder().getBuilder(),
2455 extensionRegistry);
2456 constraintCase_ = 12;
2457 break;
2458 } // case 98
2459 case 106: {
2460 input.readMessage(
2461 getAllDiffFieldBuilder().getBuilder(),
2462 extensionRegistry);
2463 constraintCase_ = 13;
2464 break;
2465 } // case 106
2466 case 114: {
2467 input.readMessage(
2468 getElementFieldBuilder().getBuilder(),
2469 extensionRegistry);
2470 constraintCase_ = 14;
2471 break;
2472 } // case 114
2473 case 122: {
2474 input.readMessage(
2475 getCircuitFieldBuilder().getBuilder(),
2476 extensionRegistry);
2477 constraintCase_ = 15;
2478 break;
2479 } // case 122
2480 case 130: {
2481 input.readMessage(
2482 getTableFieldBuilder().getBuilder(),
2483 extensionRegistry);
2484 constraintCase_ = 16;
2485 break;
2486 } // case 130
2487 case 138: {
2488 input.readMessage(
2489 getAutomatonFieldBuilder().getBuilder(),
2490 extensionRegistry);
2491 constraintCase_ = 17;
2492 break;
2493 } // case 138
2494 case 146: {
2495 input.readMessage(
2496 getInverseFieldBuilder().getBuilder(),
2497 extensionRegistry);
2498 constraintCase_ = 18;
2499 break;
2500 } // case 146
2501 case 154: {
2502 input.readMessage(
2503 getIntervalFieldBuilder().getBuilder(),
2504 extensionRegistry);
2505 constraintCase_ = 19;
2506 break;
2507 } // case 154
2508 case 162: {
2509 input.readMessage(
2510 getNoOverlapFieldBuilder().getBuilder(),
2511 extensionRegistry);
2512 constraintCase_ = 20;
2513 break;
2514 } // case 162
2515 case 170: {
2516 input.readMessage(
2517 getNoOverlap2DFieldBuilder().getBuilder(),
2518 extensionRegistry);
2519 constraintCase_ = 21;
2520 break;
2521 } // case 170
2522 case 178: {
2523 input.readMessage(
2524 getCumulativeFieldBuilder().getBuilder(),
2525 extensionRegistry);
2526 constraintCase_ = 22;
2527 break;
2528 } // case 178
2529 case 186: {
2530 input.readMessage(
2531 getRoutesFieldBuilder().getBuilder(),
2532 extensionRegistry);
2533 constraintCase_ = 23;
2534 break;
2535 } // case 186
2536 case 194: {
2537 input.readMessage(
2538 getReservoirFieldBuilder().getBuilder(),
2539 extensionRegistry);
2540 constraintCase_ = 24;
2541 break;
2542 } // case 194
2543 case 210: {
2544 input.readMessage(
2545 getAtMostOneFieldBuilder().getBuilder(),
2546 extensionRegistry);
2547 constraintCase_ = 26;
2548 break;
2549 } // case 210
2550 case 218: {
2551 input.readMessage(
2552 getLinMaxFieldBuilder().getBuilder(),
2553 extensionRegistry);
2554 constraintCase_ = 27;
2555 break;
2556 } // case 218
2557 case 234: {
2558 input.readMessage(
2559 getExactlyOneFieldBuilder().getBuilder(),
2560 extensionRegistry);
2561 constraintCase_ = 29;
2562 break;
2563 } // case 234
2564 case 242: {
2565 input.readMessage(
2566 getDummyConstraintFieldBuilder().getBuilder(),
2567 extensionRegistry);
2568 constraintCase_ = 30;
2569 break;
2570 } // case 242
2571 default: {
2572 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
2573 done = true; // was an endgroup tag
2574 }
2575 break;
2576 } // default:
2577 } // switch (tag)
2578 } // while (!done)
2579 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2580 throw e.unwrapIOException();
2581 } finally {
2582 onChanged();
2583 } // finally
2584 return this;
2585 }
2586 private int constraintCase_ = 0;
2587 private java.lang.Object constraint_;
2588 public ConstraintCase
2591 constraintCase_);
2592 }
2593
2595 constraintCase_ = 0;
2596 constraint_ = null;
2597 onChanged();
2598 return this;
2599 }
2600
2601 private int bitField0_;
2602
2603 private java.lang.Object name_ = "";
2612 public java.lang.String getName() {
2613 java.lang.Object ref = name_;
2614 if (!(ref instanceof java.lang.String)) {
2615 com.google.protobuf.ByteString bs =
2616 (com.google.protobuf.ByteString) ref;
2617 java.lang.String s = bs.toStringUtf8();
2618 name_ = s;
2619 return s;
2620 } else {
2621 return (java.lang.String) ref;
2622 }
2623 }
2632 public com.google.protobuf.ByteString
2634 java.lang.Object ref = name_;
2635 if (ref instanceof String) {
2636 com.google.protobuf.ByteString b =
2637 com.google.protobuf.ByteString.copyFromUtf8(
2638 (java.lang.String) ref);
2639 name_ = b;
2640 return b;
2641 } else {
2642 return (com.google.protobuf.ByteString) ref;
2643 }
2644 }
2655 java.lang.String value) {
2656 if (value == null) { throw new NullPointerException(); }
2657 name_ = value;
2658 bitField0_ |= 0x00000001;
2659 onChanged();
2660 return this;
2661 }
2671 name_ = getDefaultInstance().getName();
2672 bitField0_ = (bitField0_ & ~0x00000001);
2673 onChanged();
2674 return this;
2675 }
2686 com.google.protobuf.ByteString value) {
2687 if (value == null) { throw new NullPointerException(); }
2688 checkByteStringIsUtf8(value);
2689 name_ = value;
2690 bitField0_ |= 0x00000001;
2691 onChanged();
2692 return this;
2693 }
2694
2695 private com.google.protobuf.Internal.IntList enforcementLiteral_ = emptyIntList();
2696 private void ensureEnforcementLiteralIsMutable() {
2697 if (!enforcementLiteral_.isModifiable()) {
2698 enforcementLiteral_ = makeMutableCopy(enforcementLiteral_);
2699 }
2700 bitField0_ |= 0x00000002;
2701 }
2723 public java.util.List<java.lang.Integer>
2725 enforcementLiteral_.makeImmutable();
2726 return enforcementLiteral_;
2727 }
2750 return enforcementLiteral_.size();
2751 }
2774 public int getEnforcementLiteral(int index) {
2775 return enforcementLiteral_.getInt(index);
2776 }
2801 int index, int value) {
2802
2803 ensureEnforcementLiteralIsMutable();
2804 enforcementLiteral_.setInt(index, value);
2805 bitField0_ |= 0x00000002;
2806 onChanged();
2807 return this;
2808 }
2831 public Builder addEnforcementLiteral(int value) {
2832
2833 ensureEnforcementLiteralIsMutable();
2834 enforcementLiteral_.addInt(value);
2835 bitField0_ |= 0x00000002;
2836 onChanged();
2837 return this;
2838 }
2862 java.lang.Iterable<? extends java.lang.Integer> values) {
2863 ensureEnforcementLiteralIsMutable();
2864 com.google.protobuf.AbstractMessageLite.Builder.addAll(
2865 values, enforcementLiteral_);
2866 bitField0_ |= 0x00000002;
2867 onChanged();
2868 return this;
2869 }
2892 enforcementLiteral_ = emptyIntList();
2893 bitField0_ = (bitField0_ & ~0x00000002);
2894 onChanged();
2895 return this;
2896 }
2897
2898 private com.google.protobuf.SingleFieldBuilderV3<
2899 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder> boolOrBuilder_;
2908 @java.lang.Override
2909 public boolean hasBoolOr() {
2910 return constraintCase_ == 3;
2911 }
2920 @java.lang.Override
2922 if (boolOrBuilder_ == null) {
2923 if (constraintCase_ == 3) {
2924 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
2925 }
2926 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
2927 } else {
2928 if (constraintCase_ == 3) {
2929 return boolOrBuilder_.getMessage();
2930 }
2931 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
2932 }
2933 }
2941 public Builder setBoolOr(com.google.ortools.sat.BoolArgumentProto value) {
2942 if (boolOrBuilder_ == null) {
2943 if (value == null) {
2944 throw new NullPointerException();
2945 }
2946 constraint_ = value;
2947 onChanged();
2948 } else {
2949 boolOrBuilder_.setMessage(value);
2950 }
2951 constraintCase_ = 3;
2952 return this;
2953 }
2962 com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
2963 if (boolOrBuilder_ == null) {
2964 constraint_ = builderForValue.build();
2965 onChanged();
2966 } else {
2967 boolOrBuilder_.setMessage(builderForValue.build());
2968 }
2969 constraintCase_ = 3;
2970 return this;
2971 }
2979 public Builder mergeBoolOr(com.google.ortools.sat.BoolArgumentProto value) {
2980 if (boolOrBuilder_ == null) {
2981 if (constraintCase_ == 3 &&
2982 constraint_ != com.google.ortools.sat.BoolArgumentProto.getDefaultInstance()) {
2983 constraint_ = com.google.ortools.sat.BoolArgumentProto.newBuilder((com.google.ortools.sat.BoolArgumentProto) constraint_)
2984 .mergeFrom(value).buildPartial();
2985 } else {
2986 constraint_ = value;
2987 }
2988 onChanged();
2989 } else {
2990 if (constraintCase_ == 3) {
2991 boolOrBuilder_.mergeFrom(value);
2992 } else {
2993 boolOrBuilder_.setMessage(value);
2994 }
2995 }
2996 constraintCase_ = 3;
2997 return this;
2998 }
3007 if (boolOrBuilder_ == null) {
3008 if (constraintCase_ == 3) {
3009 constraintCase_ = 0;
3010 constraint_ = null;
3011 onChanged();
3012 }
3013 } else {
3014 if (constraintCase_ == 3) {
3015 constraintCase_ = 0;
3016 constraint_ = null;
3017 }
3018 boolOrBuilder_.clear();
3019 }
3020 return this;
3021 }
3030 return getBoolOrFieldBuilder().getBuilder();
3031 }
3039 @java.lang.Override
3041 if ((constraintCase_ == 3) && (boolOrBuilder_ != null)) {
3042 return boolOrBuilder_.getMessageOrBuilder();
3043 } else {
3044 if (constraintCase_ == 3) {
3045 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3046 }
3047 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3048 }
3049 }
3057 private com.google.protobuf.SingleFieldBuilderV3<
3058 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder>
3059 getBoolOrFieldBuilder() {
3060 if (boolOrBuilder_ == null) {
3061 if (!(constraintCase_ == 3)) {
3062 constraint_ = com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3063 }
3064 boolOrBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
3065 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder>(
3066 (com.google.ortools.sat.BoolArgumentProto) constraint_,
3067 getParentForChildren(),
3068 isClean());
3069 constraint_ = null;
3070 }
3071 constraintCase_ = 3;
3072 onChanged();
3073 return boolOrBuilder_;
3074 }
3075
3076 private com.google.protobuf.SingleFieldBuilderV3<
3077 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder> boolAndBuilder_;
3090 @java.lang.Override
3091 public boolean hasBoolAnd() {
3092 return constraintCase_ == 4;
3093 }
3106 @java.lang.Override
3108 if (boolAndBuilder_ == null) {
3109 if (constraintCase_ == 4) {
3110 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3111 }
3112 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3113 } else {
3114 if (constraintCase_ == 4) {
3115 return boolAndBuilder_.getMessage();
3116 }
3117 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3118 }
3119 }
3131 public Builder setBoolAnd(com.google.ortools.sat.BoolArgumentProto value) {
3132 if (boolAndBuilder_ == null) {
3133 if (value == null) {
3134 throw new NullPointerException();
3135 }
3136 constraint_ = value;
3137 onChanged();
3138 } else {
3139 boolAndBuilder_.setMessage(value);
3140 }
3141 constraintCase_ = 4;
3142 return this;
3143 }
3156 com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
3157 if (boolAndBuilder_ == null) {
3158 constraint_ = builderForValue.build();
3159 onChanged();
3160 } else {
3161 boolAndBuilder_.setMessage(builderForValue.build());
3162 }
3163 constraintCase_ = 4;
3164 return this;
3165 }
3177 public Builder mergeBoolAnd(com.google.ortools.sat.BoolArgumentProto value) {
3178 if (boolAndBuilder_ == null) {
3179 if (constraintCase_ == 4 &&
3180 constraint_ != com.google.ortools.sat.BoolArgumentProto.getDefaultInstance()) {
3181 constraint_ = com.google.ortools.sat.BoolArgumentProto.newBuilder((com.google.ortools.sat.BoolArgumentProto) constraint_)
3182 .mergeFrom(value).buildPartial();
3183 } else {
3184 constraint_ = value;
3185 }
3186 onChanged();
3187 } else {
3188 if (constraintCase_ == 4) {
3189 boolAndBuilder_.mergeFrom(value);
3190 } else {
3191 boolAndBuilder_.setMessage(value);
3192 }
3193 }
3194 constraintCase_ = 4;
3195 return this;
3196 }
3209 if (boolAndBuilder_ == null) {
3210 if (constraintCase_ == 4) {
3211 constraintCase_ = 0;
3212 constraint_ = null;
3213 onChanged();
3214 }
3215 } else {
3216 if (constraintCase_ == 4) {
3217 constraintCase_ = 0;
3218 constraint_ = null;
3219 }
3220 boolAndBuilder_.clear();
3221 }
3222 return this;
3223 }
3236 return getBoolAndFieldBuilder().getBuilder();
3237 }
3249 @java.lang.Override
3251 if ((constraintCase_ == 4) && (boolAndBuilder_ != null)) {
3252 return boolAndBuilder_.getMessageOrBuilder();
3253 } else {
3254 if (constraintCase_ == 4) {
3255 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3256 }
3257 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3258 }
3259 }
3271 private com.google.protobuf.SingleFieldBuilderV3<
3272 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder>
3273 getBoolAndFieldBuilder() {
3274 if (boolAndBuilder_ == null) {
3275 if (!(constraintCase_ == 4)) {
3276 constraint_ = com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3277 }
3278 boolAndBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
3279 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder>(
3280 (com.google.ortools.sat.BoolArgumentProto) constraint_,
3281 getParentForChildren(),
3282 isClean());
3283 constraint_ = null;
3284 }
3285 constraintCase_ = 4;
3286 onChanged();
3287 return boolAndBuilder_;
3288 }
3289
3290 private com.google.protobuf.SingleFieldBuilderV3<
3291 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder> atMostOneBuilder_;
3310 @java.lang.Override
3311 public boolean hasAtMostOne() {
3312 return constraintCase_ == 26;
3313 }
3332 @java.lang.Override
3334 if (atMostOneBuilder_ == null) {
3335 if (constraintCase_ == 26) {
3336 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3337 }
3338 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3339 } else {
3340 if (constraintCase_ == 26) {
3341 return atMostOneBuilder_.getMessage();
3342 }
3343 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3344 }
3345 }
3363 public Builder setAtMostOne(com.google.ortools.sat.BoolArgumentProto value) {
3364 if (atMostOneBuilder_ == null) {
3365 if (value == null) {
3366 throw new NullPointerException();
3367 }
3368 constraint_ = value;
3369 onChanged();
3370 } else {
3371 atMostOneBuilder_.setMessage(value);
3372 }
3373 constraintCase_ = 26;
3374 return this;
3375 }
3394 com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
3395 if (atMostOneBuilder_ == null) {
3396 constraint_ = builderForValue.build();
3397 onChanged();
3398 } else {
3399 atMostOneBuilder_.setMessage(builderForValue.build());
3400 }
3401 constraintCase_ = 26;
3402 return this;
3403 }
3421 public Builder mergeAtMostOne(com.google.ortools.sat.BoolArgumentProto value) {
3422 if (atMostOneBuilder_ == null) {
3423 if (constraintCase_ == 26 &&
3424 constraint_ != com.google.ortools.sat.BoolArgumentProto.getDefaultInstance()) {
3425 constraint_ = com.google.ortools.sat.BoolArgumentProto.newBuilder((com.google.ortools.sat.BoolArgumentProto) constraint_)
3426 .mergeFrom(value).buildPartial();
3427 } else {
3428 constraint_ = value;
3429 }
3430 onChanged();
3431 } else {
3432 if (constraintCase_ == 26) {
3433 atMostOneBuilder_.mergeFrom(value);
3434 } else {
3435 atMostOneBuilder_.setMessage(value);
3436 }
3437 }
3438 constraintCase_ = 26;
3439 return this;
3440 }
3459 if (atMostOneBuilder_ == null) {
3460 if (constraintCase_ == 26) {
3461 constraintCase_ = 0;
3462 constraint_ = null;
3463 onChanged();
3464 }
3465 } else {
3466 if (constraintCase_ == 26) {
3467 constraintCase_ = 0;
3468 constraint_ = null;
3469 }
3470 atMostOneBuilder_.clear();
3471 }
3472 return this;
3473 }
3492 return getAtMostOneFieldBuilder().getBuilder();
3493 }
3511 @java.lang.Override
3513 if ((constraintCase_ == 26) && (atMostOneBuilder_ != null)) {
3514 return atMostOneBuilder_.getMessageOrBuilder();
3515 } else {
3516 if (constraintCase_ == 26) {
3517 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3518 }
3519 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3520 }
3521 }
3539 private com.google.protobuf.SingleFieldBuilderV3<
3540 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder>
3541 getAtMostOneFieldBuilder() {
3542 if (atMostOneBuilder_ == null) {
3543 if (!(constraintCase_ == 26)) {
3544 constraint_ = com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3545 }
3546 atMostOneBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
3547 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder>(
3548 (com.google.ortools.sat.BoolArgumentProto) constraint_,
3549 getParentForChildren(),
3550 isClean());
3551 constraint_ = null;
3552 }
3553 constraintCase_ = 26;
3554 onChanged();
3555 return atMostOneBuilder_;
3556 }
3557
3558 private com.google.protobuf.SingleFieldBuilderV3<
3559 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder> exactlyOneBuilder_;
3579 @java.lang.Override
3580 public boolean hasExactlyOne() {
3581 return constraintCase_ == 29;
3582 }
3602 @java.lang.Override
3604 if (exactlyOneBuilder_ == null) {
3605 if (constraintCase_ == 29) {
3606 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3607 }
3608 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3609 } else {
3610 if (constraintCase_ == 29) {
3611 return exactlyOneBuilder_.getMessage();
3612 }
3613 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3614 }
3615 }
3634 public Builder setExactlyOne(com.google.ortools.sat.BoolArgumentProto value) {
3635 if (exactlyOneBuilder_ == null) {
3636 if (value == null) {
3637 throw new NullPointerException();
3638 }
3639 constraint_ = value;
3640 onChanged();
3641 } else {
3642 exactlyOneBuilder_.setMessage(value);
3643 }
3644 constraintCase_ = 29;
3645 return this;
3646 }
3666 com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
3667 if (exactlyOneBuilder_ == null) {
3668 constraint_ = builderForValue.build();
3669 onChanged();
3670 } else {
3671 exactlyOneBuilder_.setMessage(builderForValue.build());
3672 }
3673 constraintCase_ = 29;
3674 return this;
3675 }
3694 public Builder mergeExactlyOne(com.google.ortools.sat.BoolArgumentProto value) {
3695 if (exactlyOneBuilder_ == null) {
3696 if (constraintCase_ == 29 &&
3697 constraint_ != com.google.ortools.sat.BoolArgumentProto.getDefaultInstance()) {
3698 constraint_ = com.google.ortools.sat.BoolArgumentProto.newBuilder((com.google.ortools.sat.BoolArgumentProto) constraint_)
3699 .mergeFrom(value).buildPartial();
3700 } else {
3701 constraint_ = value;
3702 }
3703 onChanged();
3704 } else {
3705 if (constraintCase_ == 29) {
3706 exactlyOneBuilder_.mergeFrom(value);
3707 } else {
3708 exactlyOneBuilder_.setMessage(value);
3709 }
3710 }
3711 constraintCase_ = 29;
3712 return this;
3713 }
3733 if (exactlyOneBuilder_ == null) {
3734 if (constraintCase_ == 29) {
3735 constraintCase_ = 0;
3736 constraint_ = null;
3737 onChanged();
3738 }
3739 } else {
3740 if (constraintCase_ == 29) {
3741 constraintCase_ = 0;
3742 constraint_ = null;
3743 }
3744 exactlyOneBuilder_.clear();
3745 }
3746 return this;
3747 }
3767 return getExactlyOneFieldBuilder().getBuilder();
3768 }
3787 @java.lang.Override
3789 if ((constraintCase_ == 29) && (exactlyOneBuilder_ != null)) {
3790 return exactlyOneBuilder_.getMessageOrBuilder();
3791 } else {
3792 if (constraintCase_ == 29) {
3793 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3794 }
3795 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3796 }
3797 }
3816 private com.google.protobuf.SingleFieldBuilderV3<
3817 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder>
3818 getExactlyOneFieldBuilder() {
3819 if (exactlyOneBuilder_ == null) {
3820 if (!(constraintCase_ == 29)) {
3821 constraint_ = com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3822 }
3823 exactlyOneBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
3824 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder>(
3825 (com.google.ortools.sat.BoolArgumentProto) constraint_,
3826 getParentForChildren(),
3827 isClean());
3828 constraint_ = null;
3829 }
3830 constraintCase_ = 29;
3831 onChanged();
3832 return exactlyOneBuilder_;
3833 }
3834
3835 private com.google.protobuf.SingleFieldBuilderV3<
3836 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder> boolXorBuilder_;
3845 @java.lang.Override
3846 public boolean hasBoolXor() {
3847 return constraintCase_ == 5;
3848 }
3857 @java.lang.Override
3859 if (boolXorBuilder_ == null) {
3860 if (constraintCase_ == 5) {
3861 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3862 }
3863 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3864 } else {
3865 if (constraintCase_ == 5) {
3866 return boolXorBuilder_.getMessage();
3867 }
3868 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3869 }
3870 }
3878 public Builder setBoolXor(com.google.ortools.sat.BoolArgumentProto value) {
3879 if (boolXorBuilder_ == null) {
3880 if (value == null) {
3881 throw new NullPointerException();
3882 }
3883 constraint_ = value;
3884 onChanged();
3885 } else {
3886 boolXorBuilder_.setMessage(value);
3887 }
3888 constraintCase_ = 5;
3889 return this;
3890 }
3899 com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
3900 if (boolXorBuilder_ == null) {
3901 constraint_ = builderForValue.build();
3902 onChanged();
3903 } else {
3904 boolXorBuilder_.setMessage(builderForValue.build());
3905 }
3906 constraintCase_ = 5;
3907 return this;
3908 }
3916 public Builder mergeBoolXor(com.google.ortools.sat.BoolArgumentProto value) {
3917 if (boolXorBuilder_ == null) {
3918 if (constraintCase_ == 5 &&
3919 constraint_ != com.google.ortools.sat.BoolArgumentProto.getDefaultInstance()) {
3920 constraint_ = com.google.ortools.sat.BoolArgumentProto.newBuilder((com.google.ortools.sat.BoolArgumentProto) constraint_)
3921 .mergeFrom(value).buildPartial();
3922 } else {
3923 constraint_ = value;
3924 }
3925 onChanged();
3926 } else {
3927 if (constraintCase_ == 5) {
3928 boolXorBuilder_.mergeFrom(value);
3929 } else {
3930 boolXorBuilder_.setMessage(value);
3931 }
3932 }
3933 constraintCase_ = 5;
3934 return this;
3935 }
3944 if (boolXorBuilder_ == null) {
3945 if (constraintCase_ == 5) {
3946 constraintCase_ = 0;
3947 constraint_ = null;
3948 onChanged();
3949 }
3950 } else {
3951 if (constraintCase_ == 5) {
3952 constraintCase_ = 0;
3953 constraint_ = null;
3954 }
3955 boolXorBuilder_.clear();
3956 }
3957 return this;
3958 }
3967 return getBoolXorFieldBuilder().getBuilder();
3968 }
3976 @java.lang.Override
3978 if ((constraintCase_ == 5) && (boolXorBuilder_ != null)) {
3979 return boolXorBuilder_.getMessageOrBuilder();
3980 } else {
3981 if (constraintCase_ == 5) {
3982 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3983 }
3984 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3985 }
3986 }
3994 private com.google.protobuf.SingleFieldBuilderV3<
3995 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder>
3996 getBoolXorFieldBuilder() {
3997 if (boolXorBuilder_ == null) {
3998 if (!(constraintCase_ == 5)) {
3999 constraint_ = com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
4000 }
4001 boolXorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4002 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder>(
4003 (com.google.ortools.sat.BoolArgumentProto) constraint_,
4004 getParentForChildren(),
4005 isClean());
4006 constraint_ = null;
4007 }
4008 constraintCase_ = 5;
4009 onChanged();
4010 return boolXorBuilder_;
4011 }
4012
4013 private com.google.protobuf.SingleFieldBuilderV3<
4014 com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder> intDivBuilder_;
4029 @java.lang.Override
4030 public boolean hasIntDiv() {
4031 return constraintCase_ == 7;
4032 }
4047 @java.lang.Override
4049 if (intDivBuilder_ == null) {
4050 if (constraintCase_ == 7) {
4051 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
4052 }
4053 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4054 } else {
4055 if (constraintCase_ == 7) {
4056 return intDivBuilder_.getMessage();
4057 }
4058 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4059 }
4060 }
4074 public Builder setIntDiv(com.google.ortools.sat.LinearArgumentProto value) {
4075 if (intDivBuilder_ == null) {
4076 if (value == null) {
4077 throw new NullPointerException();
4078 }
4079 constraint_ = value;
4080 onChanged();
4081 } else {
4082 intDivBuilder_.setMessage(value);
4083 }
4084 constraintCase_ = 7;
4085 return this;
4086 }
4101 com.google.ortools.sat.LinearArgumentProto.Builder builderForValue) {
4102 if (intDivBuilder_ == null) {
4103 constraint_ = builderForValue.build();
4104 onChanged();
4105 } else {
4106 intDivBuilder_.setMessage(builderForValue.build());
4107 }
4108 constraintCase_ = 7;
4109 return this;
4110 }
4124 public Builder mergeIntDiv(com.google.ortools.sat.LinearArgumentProto value) {
4125 if (intDivBuilder_ == null) {
4126 if (constraintCase_ == 7 &&
4127 constraint_ != com.google.ortools.sat.LinearArgumentProto.getDefaultInstance()) {
4128 constraint_ = com.google.ortools.sat.LinearArgumentProto.newBuilder((com.google.ortools.sat.LinearArgumentProto) constraint_)
4129 .mergeFrom(value).buildPartial();
4130 } else {
4131 constraint_ = value;
4132 }
4133 onChanged();
4134 } else {
4135 if (constraintCase_ == 7) {
4136 intDivBuilder_.mergeFrom(value);
4137 } else {
4138 intDivBuilder_.setMessage(value);
4139 }
4140 }
4141 constraintCase_ = 7;
4142 return this;
4143 }
4158 if (intDivBuilder_ == null) {
4159 if (constraintCase_ == 7) {
4160 constraintCase_ = 0;
4161 constraint_ = null;
4162 onChanged();
4163 }
4164 } else {
4165 if (constraintCase_ == 7) {
4166 constraintCase_ = 0;
4167 constraint_ = null;
4168 }
4169 intDivBuilder_.clear();
4170 }
4171 return this;
4172 }
4187 return getIntDivFieldBuilder().getBuilder();
4188 }
4202 @java.lang.Override
4204 if ((constraintCase_ == 7) && (intDivBuilder_ != null)) {
4205 return intDivBuilder_.getMessageOrBuilder();
4206 } else {
4207 if (constraintCase_ == 7) {
4208 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
4209 }
4210 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4211 }
4212 }
4226 private com.google.protobuf.SingleFieldBuilderV3<
4227 com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder>
4228 getIntDivFieldBuilder() {
4229 if (intDivBuilder_ == null) {
4230 if (!(constraintCase_ == 7)) {
4231 constraint_ = com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4232 }
4233 intDivBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4234 com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder>(
4235 (com.google.ortools.sat.LinearArgumentProto) constraint_,
4236 getParentForChildren(),
4237 isClean());
4238 constraint_ = null;
4239 }
4240 constraintCase_ = 7;
4241 onChanged();
4242 return intDivBuilder_;
4243 }
4244
4245 private com.google.protobuf.SingleFieldBuilderV3<
4246 com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder> intModBuilder_;
4257 @java.lang.Override
4258 public boolean hasIntMod() {
4259 return constraintCase_ == 8;
4260 }
4271 @java.lang.Override
4273 if (intModBuilder_ == null) {
4274 if (constraintCase_ == 8) {
4275 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
4276 }
4277 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4278 } else {
4279 if (constraintCase_ == 8) {
4280 return intModBuilder_.getMessage();
4281 }
4282 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4283 }
4284 }
4294 public Builder setIntMod(com.google.ortools.sat.LinearArgumentProto value) {
4295 if (intModBuilder_ == null) {
4296 if (value == null) {
4297 throw new NullPointerException();
4298 }
4299 constraint_ = value;
4300 onChanged();
4301 } else {
4302 intModBuilder_.setMessage(value);
4303 }
4304 constraintCase_ = 8;
4305 return this;
4306 }
4317 com.google.ortools.sat.LinearArgumentProto.Builder builderForValue) {
4318 if (intModBuilder_ == null) {
4319 constraint_ = builderForValue.build();
4320 onChanged();
4321 } else {
4322 intModBuilder_.setMessage(builderForValue.build());
4323 }
4324 constraintCase_ = 8;
4325 return this;
4326 }
4336 public Builder mergeIntMod(com.google.ortools.sat.LinearArgumentProto value) {
4337 if (intModBuilder_ == null) {
4338 if (constraintCase_ == 8 &&
4339 constraint_ != com.google.ortools.sat.LinearArgumentProto.getDefaultInstance()) {
4340 constraint_ = com.google.ortools.sat.LinearArgumentProto.newBuilder((com.google.ortools.sat.LinearArgumentProto) constraint_)
4341 .mergeFrom(value).buildPartial();
4342 } else {
4343 constraint_ = value;
4344 }
4345 onChanged();
4346 } else {
4347 if (constraintCase_ == 8) {
4348 intModBuilder_.mergeFrom(value);
4349 } else {
4350 intModBuilder_.setMessage(value);
4351 }
4352 }
4353 constraintCase_ = 8;
4354 return this;
4355 }
4366 if (intModBuilder_ == null) {
4367 if (constraintCase_ == 8) {
4368 constraintCase_ = 0;
4369 constraint_ = null;
4370 onChanged();
4371 }
4372 } else {
4373 if (constraintCase_ == 8) {
4374 constraintCase_ = 0;
4375 constraint_ = null;
4376 }
4377 intModBuilder_.clear();
4378 }
4379 return this;
4380 }
4391 return getIntModFieldBuilder().getBuilder();
4392 }
4402 @java.lang.Override
4404 if ((constraintCase_ == 8) && (intModBuilder_ != null)) {
4405 return intModBuilder_.getMessageOrBuilder();
4406 } else {
4407 if (constraintCase_ == 8) {
4408 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
4409 }
4410 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4411 }
4412 }
4422 private com.google.protobuf.SingleFieldBuilderV3<
4423 com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder>
4424 getIntModFieldBuilder() {
4425 if (intModBuilder_ == null) {
4426 if (!(constraintCase_ == 8)) {
4427 constraint_ = com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4428 }
4429 intModBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4430 com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder>(
4431 (com.google.ortools.sat.LinearArgumentProto) constraint_,
4432 getParentForChildren(),
4433 isClean());
4434 constraint_ = null;
4435 }
4436 constraintCase_ = 8;
4437 onChanged();
4438 return intModBuilder_;
4439 }
4440
4441 private com.google.protobuf.SingleFieldBuilderV3<
4442 com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder> intProdBuilder_;
4458 @java.lang.Override
4459 public boolean hasIntProd() {
4460 return constraintCase_ == 11;
4461 }
4477 @java.lang.Override
4479 if (intProdBuilder_ == null) {
4480 if (constraintCase_ == 11) {
4481 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
4482 }
4483 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4484 } else {
4485 if (constraintCase_ == 11) {
4486 return intProdBuilder_.getMessage();
4487 }
4488 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4489 }
4490 }
4505 public Builder setIntProd(com.google.ortools.sat.LinearArgumentProto value) {
4506 if (intProdBuilder_ == null) {
4507 if (value == null) {
4508 throw new NullPointerException();
4509 }
4510 constraint_ = value;
4511 onChanged();
4512 } else {
4513 intProdBuilder_.setMessage(value);
4514 }
4515 constraintCase_ = 11;
4516 return this;
4517 }
4533 com.google.ortools.sat.LinearArgumentProto.Builder builderForValue) {
4534 if (intProdBuilder_ == null) {
4535 constraint_ = builderForValue.build();
4536 onChanged();
4537 } else {
4538 intProdBuilder_.setMessage(builderForValue.build());
4539 }
4540 constraintCase_ = 11;
4541 return this;
4542 }
4557 public Builder mergeIntProd(com.google.ortools.sat.LinearArgumentProto value) {
4558 if (intProdBuilder_ == null) {
4559 if (constraintCase_ == 11 &&
4560 constraint_ != com.google.ortools.sat.LinearArgumentProto.getDefaultInstance()) {
4561 constraint_ = com.google.ortools.sat.LinearArgumentProto.newBuilder((com.google.ortools.sat.LinearArgumentProto) constraint_)
4562 .mergeFrom(value).buildPartial();
4563 } else {
4564 constraint_ = value;
4565 }
4566 onChanged();
4567 } else {
4568 if (constraintCase_ == 11) {
4569 intProdBuilder_.mergeFrom(value);
4570 } else {
4571 intProdBuilder_.setMessage(value);
4572 }
4573 }
4574 constraintCase_ = 11;
4575 return this;
4576 }
4592 if (intProdBuilder_ == null) {
4593 if (constraintCase_ == 11) {
4594 constraintCase_ = 0;
4595 constraint_ = null;
4596 onChanged();
4597 }
4598 } else {
4599 if (constraintCase_ == 11) {
4600 constraintCase_ = 0;
4601 constraint_ = null;
4602 }
4603 intProdBuilder_.clear();
4604 }
4605 return this;
4606 }
4622 return getIntProdFieldBuilder().getBuilder();
4623 }
4638 @java.lang.Override
4640 if ((constraintCase_ == 11) && (intProdBuilder_ != null)) {
4641 return intProdBuilder_.getMessageOrBuilder();
4642 } else {
4643 if (constraintCase_ == 11) {
4644 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
4645 }
4646 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4647 }
4648 }
4663 private com.google.protobuf.SingleFieldBuilderV3<
4664 com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder>
4665 getIntProdFieldBuilder() {
4666 if (intProdBuilder_ == null) {
4667 if (!(constraintCase_ == 11)) {
4668 constraint_ = com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4669 }
4670 intProdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4671 com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder>(
4672 (com.google.ortools.sat.LinearArgumentProto) constraint_,
4673 getParentForChildren(),
4674 isClean());
4675 constraint_ = null;
4676 }
4677 constraintCase_ = 11;
4678 onChanged();
4679 return intProdBuilder_;
4680 }
4681
4682 private com.google.protobuf.SingleFieldBuilderV3<
4683 com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder> linMaxBuilder_;
4694 @java.lang.Override
4695 public boolean hasLinMax() {
4696 return constraintCase_ == 27;
4697 }
4708 @java.lang.Override
4710 if (linMaxBuilder_ == null) {
4711 if (constraintCase_ == 27) {
4712 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
4713 }
4714 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4715 } else {
4716 if (constraintCase_ == 27) {
4717 return linMaxBuilder_.getMessage();
4718 }
4719 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4720 }
4721 }
4731 public Builder setLinMax(com.google.ortools.sat.LinearArgumentProto value) {
4732 if (linMaxBuilder_ == null) {
4733 if (value == null) {
4734 throw new NullPointerException();
4735 }
4736 constraint_ = value;
4737 onChanged();
4738 } else {
4739 linMaxBuilder_.setMessage(value);
4740 }
4741 constraintCase_ = 27;
4742 return this;
4743 }
4754 com.google.ortools.sat.LinearArgumentProto.Builder builderForValue) {
4755 if (linMaxBuilder_ == null) {
4756 constraint_ = builderForValue.build();
4757 onChanged();
4758 } else {
4759 linMaxBuilder_.setMessage(builderForValue.build());
4760 }
4761 constraintCase_ = 27;
4762 return this;
4763 }
4773 public Builder mergeLinMax(com.google.ortools.sat.LinearArgumentProto value) {
4774 if (linMaxBuilder_ == null) {
4775 if (constraintCase_ == 27 &&
4776 constraint_ != com.google.ortools.sat.LinearArgumentProto.getDefaultInstance()) {
4777 constraint_ = com.google.ortools.sat.LinearArgumentProto.newBuilder((com.google.ortools.sat.LinearArgumentProto) constraint_)
4778 .mergeFrom(value).buildPartial();
4779 } else {
4780 constraint_ = value;
4781 }
4782 onChanged();
4783 } else {
4784 if (constraintCase_ == 27) {
4785 linMaxBuilder_.mergeFrom(value);
4786 } else {
4787 linMaxBuilder_.setMessage(value);
4788 }
4789 }
4790 constraintCase_ = 27;
4791 return this;
4792 }
4803 if (linMaxBuilder_ == null) {
4804 if (constraintCase_ == 27) {
4805 constraintCase_ = 0;
4806 constraint_ = null;
4807 onChanged();
4808 }
4809 } else {
4810 if (constraintCase_ == 27) {
4811 constraintCase_ = 0;
4812 constraint_ = null;
4813 }
4814 linMaxBuilder_.clear();
4815 }
4816 return this;
4817 }
4828 return getLinMaxFieldBuilder().getBuilder();
4829 }
4839 @java.lang.Override
4841 if ((constraintCase_ == 27) && (linMaxBuilder_ != null)) {
4842 return linMaxBuilder_.getMessageOrBuilder();
4843 } else {
4844 if (constraintCase_ == 27) {
4845 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
4846 }
4847 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4848 }
4849 }
4859 private com.google.protobuf.SingleFieldBuilderV3<
4860 com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder>
4861 getLinMaxFieldBuilder() {
4862 if (linMaxBuilder_ == null) {
4863 if (!(constraintCase_ == 27)) {
4864 constraint_ = com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4865 }
4866 linMaxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4867 com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder>(
4868 (com.google.ortools.sat.LinearArgumentProto) constraint_,
4869 getParentForChildren(),
4870 isClean());
4871 constraint_ = null;
4872 }
4873 constraintCase_ = 27;
4874 onChanged();
4875 return linMaxBuilder_;
4876 }
4877
4878 private com.google.protobuf.SingleFieldBuilderV3<
4879 com.google.ortools.sat.LinearConstraintProto, com.google.ortools.sat.LinearConstraintProto.Builder, com.google.ortools.sat.LinearConstraintProtoOrBuilder> linearBuilder_;
4889 @java.lang.Override
4890 public boolean hasLinear() {
4891 return constraintCase_ == 12;
4892 }
4902 @java.lang.Override
4904 if (linearBuilder_ == null) {
4905 if (constraintCase_ == 12) {
4906 return (com.google.ortools.sat.LinearConstraintProto) constraint_;
4907 }
4908 return com.google.ortools.sat.LinearConstraintProto.getDefaultInstance();
4909 } else {
4910 if (constraintCase_ == 12) {
4911 return linearBuilder_.getMessage();
4912 }
4913 return com.google.ortools.sat.LinearConstraintProto.getDefaultInstance();
4914 }
4915 }
4924 public Builder setLinear(com.google.ortools.sat.LinearConstraintProto value) {
4925 if (linearBuilder_ == null) {
4926 if (value == null) {
4927 throw new NullPointerException();
4928 }
4929 constraint_ = value;
4930 onChanged();
4931 } else {
4932 linearBuilder_.setMessage(value);
4933 }
4934 constraintCase_ = 12;
4935 return this;
4936 }
4946 com.google.ortools.sat.LinearConstraintProto.Builder builderForValue) {
4947 if (linearBuilder_ == null) {
4948 constraint_ = builderForValue.build();
4949 onChanged();
4950 } else {
4951 linearBuilder_.setMessage(builderForValue.build());
4952 }
4953 constraintCase_ = 12;
4954 return this;
4955 }
4964 public Builder mergeLinear(com.google.ortools.sat.LinearConstraintProto value) {
4965 if (linearBuilder_ == null) {
4966 if (constraintCase_ == 12 &&
4967 constraint_ != com.google.ortools.sat.LinearConstraintProto.getDefaultInstance()) {
4968 constraint_ = com.google.ortools.sat.LinearConstraintProto.newBuilder((com.google.ortools.sat.LinearConstraintProto) constraint_)
4969 .mergeFrom(value).buildPartial();
4970 } else {
4971 constraint_ = value;
4972 }
4973 onChanged();
4974 } else {
4975 if (constraintCase_ == 12) {
4976 linearBuilder_.mergeFrom(value);
4977 } else {
4978 linearBuilder_.setMessage(value);
4979 }
4980 }
4981 constraintCase_ = 12;
4982 return this;
4983 }
4993 if (linearBuilder_ == null) {
4994 if (constraintCase_ == 12) {
4995 constraintCase_ = 0;
4996 constraint_ = null;
4997 onChanged();
4998 }
4999 } else {
5000 if (constraintCase_ == 12) {
5001 constraintCase_ = 0;
5002 constraint_ = null;
5003 }
5004 linearBuilder_.clear();
5005 }
5006 return this;
5007 }
5017 return getLinearFieldBuilder().getBuilder();
5018 }
5027 @java.lang.Override
5029 if ((constraintCase_ == 12) && (linearBuilder_ != null)) {
5030 return linearBuilder_.getMessageOrBuilder();
5031 } else {
5032 if (constraintCase_ == 12) {
5033 return (com.google.ortools.sat.LinearConstraintProto) constraint_;
5034 }
5035 return com.google.ortools.sat.LinearConstraintProto.getDefaultInstance();
5036 }
5037 }
5046 private com.google.protobuf.SingleFieldBuilderV3<
5047 com.google.ortools.sat.LinearConstraintProto, com.google.ortools.sat.LinearConstraintProto.Builder, com.google.ortools.sat.LinearConstraintProtoOrBuilder>
5048 getLinearFieldBuilder() {
5049 if (linearBuilder_ == null) {
5050 if (!(constraintCase_ == 12)) {
5051 constraint_ = com.google.ortools.sat.LinearConstraintProto.getDefaultInstance();
5052 }
5053 linearBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5054 com.google.ortools.sat.LinearConstraintProto, com.google.ortools.sat.LinearConstraintProto.Builder, com.google.ortools.sat.LinearConstraintProtoOrBuilder>(
5055 (com.google.ortools.sat.LinearConstraintProto) constraint_,
5056 getParentForChildren(),
5057 isClean());
5058 constraint_ = null;
5059 }
5060 constraintCase_ = 12;
5061 onChanged();
5062 return linearBuilder_;
5063 }
5064
5065 private com.google.protobuf.SingleFieldBuilderV3<
5066 com.google.ortools.sat.AllDifferentConstraintProto, com.google.ortools.sat.AllDifferentConstraintProto.Builder, com.google.ortools.sat.AllDifferentConstraintProtoOrBuilder> allDiffBuilder_;
5075 @java.lang.Override
5076 public boolean hasAllDiff() {
5077 return constraintCase_ == 13;
5078 }
5087 @java.lang.Override
5089 if (allDiffBuilder_ == null) {
5090 if (constraintCase_ == 13) {
5091 return (com.google.ortools.sat.AllDifferentConstraintProto) constraint_;
5092 }
5093 return com.google.ortools.sat.AllDifferentConstraintProto.getDefaultInstance();
5094 } else {
5095 if (constraintCase_ == 13) {
5096 return allDiffBuilder_.getMessage();
5097 }
5098 return com.google.ortools.sat.AllDifferentConstraintProto.getDefaultInstance();
5099 }
5100 }
5108 public Builder setAllDiff(com.google.ortools.sat.AllDifferentConstraintProto value) {
5109 if (allDiffBuilder_ == null) {
5110 if (value == null) {
5111 throw new NullPointerException();
5112 }
5113 constraint_ = value;
5114 onChanged();
5115 } else {
5116 allDiffBuilder_.setMessage(value);
5117 }
5118 constraintCase_ = 13;
5119 return this;
5120 }
5129 com.google.ortools.sat.AllDifferentConstraintProto.Builder builderForValue) {
5130 if (allDiffBuilder_ == null) {
5131 constraint_ = builderForValue.build();
5132 onChanged();
5133 } else {
5134 allDiffBuilder_.setMessage(builderForValue.build());
5135 }
5136 constraintCase_ = 13;
5137 return this;
5138 }
5146 public Builder mergeAllDiff(com.google.ortools.sat.AllDifferentConstraintProto value) {
5147 if (allDiffBuilder_ == null) {
5148 if (constraintCase_ == 13 &&
5149 constraint_ != com.google.ortools.sat.AllDifferentConstraintProto.getDefaultInstance()) {
5150 constraint_ = com.google.ortools.sat.AllDifferentConstraintProto.newBuilder((com.google.ortools.sat.AllDifferentConstraintProto) constraint_)
5151 .mergeFrom(value).buildPartial();
5152 } else {
5153 constraint_ = value;
5154 }
5155 onChanged();
5156 } else {
5157 if (constraintCase_ == 13) {
5158 allDiffBuilder_.mergeFrom(value);
5159 } else {
5160 allDiffBuilder_.setMessage(value);
5161 }
5162 }
5163 constraintCase_ = 13;
5164 return this;
5165 }
5174 if (allDiffBuilder_ == null) {
5175 if (constraintCase_ == 13) {
5176 constraintCase_ = 0;
5177 constraint_ = null;
5178 onChanged();
5179 }
5180 } else {
5181 if (constraintCase_ == 13) {
5182 constraintCase_ = 0;
5183 constraint_ = null;
5184 }
5185 allDiffBuilder_.clear();
5186 }
5187 return this;
5188 }
5197 return getAllDiffFieldBuilder().getBuilder();
5198 }
5206 @java.lang.Override
5208 if ((constraintCase_ == 13) && (allDiffBuilder_ != null)) {
5209 return allDiffBuilder_.getMessageOrBuilder();
5210 } else {
5211 if (constraintCase_ == 13) {
5212 return (com.google.ortools.sat.AllDifferentConstraintProto) constraint_;
5213 }
5214 return com.google.ortools.sat.AllDifferentConstraintProto.getDefaultInstance();
5215 }
5216 }
5224 private com.google.protobuf.SingleFieldBuilderV3<
5225 com.google.ortools.sat.AllDifferentConstraintProto, com.google.ortools.sat.AllDifferentConstraintProto.Builder, com.google.ortools.sat.AllDifferentConstraintProtoOrBuilder>
5226 getAllDiffFieldBuilder() {
5227 if (allDiffBuilder_ == null) {
5228 if (!(constraintCase_ == 13)) {
5229 constraint_ = com.google.ortools.sat.AllDifferentConstraintProto.getDefaultInstance();
5230 }
5231 allDiffBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5232 com.google.ortools.sat.AllDifferentConstraintProto, com.google.ortools.sat.AllDifferentConstraintProto.Builder, com.google.ortools.sat.AllDifferentConstraintProtoOrBuilder>(
5233 (com.google.ortools.sat.AllDifferentConstraintProto) constraint_,
5234 getParentForChildren(),
5235 isClean());
5236 constraint_ = null;
5237 }
5238 constraintCase_ = 13;
5239 onChanged();
5240 return allDiffBuilder_;
5241 }
5242
5243 private com.google.protobuf.SingleFieldBuilderV3<
5244 com.google.ortools.sat.ElementConstraintProto, com.google.ortools.sat.ElementConstraintProto.Builder, com.google.ortools.sat.ElementConstraintProtoOrBuilder> elementBuilder_;
5254 @java.lang.Override
5255 public boolean hasElement() {
5256 return constraintCase_ == 14;
5257 }
5267 @java.lang.Override
5269 if (elementBuilder_ == null) {
5270 if (constraintCase_ == 14) {
5271 return (com.google.ortools.sat.ElementConstraintProto) constraint_;
5272 }
5273 return com.google.ortools.sat.ElementConstraintProto.getDefaultInstance();
5274 } else {
5275 if (constraintCase_ == 14) {
5276 return elementBuilder_.getMessage();
5277 }
5278 return com.google.ortools.sat.ElementConstraintProto.getDefaultInstance();
5279 }
5280 }
5289 public Builder setElement(com.google.ortools.sat.ElementConstraintProto value) {
5290 if (elementBuilder_ == null) {
5291 if (value == null) {
5292 throw new NullPointerException();
5293 }
5294 constraint_ = value;
5295 onChanged();
5296 } else {
5297 elementBuilder_.setMessage(value);
5298 }
5299 constraintCase_ = 14;
5300 return this;
5301 }
5311 com.google.ortools.sat.ElementConstraintProto.Builder builderForValue) {
5312 if (elementBuilder_ == null) {
5313 constraint_ = builderForValue.build();
5314 onChanged();
5315 } else {
5316 elementBuilder_.setMessage(builderForValue.build());
5317 }
5318 constraintCase_ = 14;
5319 return this;
5320 }
5329 public Builder mergeElement(com.google.ortools.sat.ElementConstraintProto value) {
5330 if (elementBuilder_ == null) {
5331 if (constraintCase_ == 14 &&
5332 constraint_ != com.google.ortools.sat.ElementConstraintProto.getDefaultInstance()) {
5333 constraint_ = com.google.ortools.sat.ElementConstraintProto.newBuilder((com.google.ortools.sat.ElementConstraintProto) constraint_)
5334 .mergeFrom(value).buildPartial();
5335 } else {
5336 constraint_ = value;
5337 }
5338 onChanged();
5339 } else {
5340 if (constraintCase_ == 14) {
5341 elementBuilder_.mergeFrom(value);
5342 } else {
5343 elementBuilder_.setMessage(value);
5344 }
5345 }
5346 constraintCase_ = 14;
5347 return this;
5348 }
5358 if (elementBuilder_ == null) {
5359 if (constraintCase_ == 14) {
5360 constraintCase_ = 0;
5361 constraint_ = null;
5362 onChanged();
5363 }
5364 } else {
5365 if (constraintCase_ == 14) {
5366 constraintCase_ = 0;
5367 constraint_ = null;
5368 }
5369 elementBuilder_.clear();
5370 }
5371 return this;
5372 }
5382 return getElementFieldBuilder().getBuilder();
5383 }
5392 @java.lang.Override
5394 if ((constraintCase_ == 14) && (elementBuilder_ != null)) {
5395 return elementBuilder_.getMessageOrBuilder();
5396 } else {
5397 if (constraintCase_ == 14) {
5398 return (com.google.ortools.sat.ElementConstraintProto) constraint_;
5399 }
5400 return com.google.ortools.sat.ElementConstraintProto.getDefaultInstance();
5401 }
5402 }
5411 private com.google.protobuf.SingleFieldBuilderV3<
5412 com.google.ortools.sat.ElementConstraintProto, com.google.ortools.sat.ElementConstraintProto.Builder, com.google.ortools.sat.ElementConstraintProtoOrBuilder>
5413 getElementFieldBuilder() {
5414 if (elementBuilder_ == null) {
5415 if (!(constraintCase_ == 14)) {
5416 constraint_ = com.google.ortools.sat.ElementConstraintProto.getDefaultInstance();
5417 }
5418 elementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5419 com.google.ortools.sat.ElementConstraintProto, com.google.ortools.sat.ElementConstraintProto.Builder, com.google.ortools.sat.ElementConstraintProtoOrBuilder>(
5420 (com.google.ortools.sat.ElementConstraintProto) constraint_,
5421 getParentForChildren(),
5422 isClean());
5423 constraint_ = null;
5424 }
5425 constraintCase_ = 14;
5426 onChanged();
5427 return elementBuilder_;
5428 }
5429
5430 private com.google.protobuf.SingleFieldBuilderV3<
5431 com.google.ortools.sat.CircuitConstraintProto, com.google.ortools.sat.CircuitConstraintProto.Builder, com.google.ortools.sat.CircuitConstraintProtoOrBuilder> circuitBuilder_;
5441 @java.lang.Override
5442 public boolean hasCircuit() {
5443 return constraintCase_ == 15;
5444 }
5454 @java.lang.Override
5456 if (circuitBuilder_ == null) {
5457 if (constraintCase_ == 15) {
5458 return (com.google.ortools.sat.CircuitConstraintProto) constraint_;
5459 }
5460 return com.google.ortools.sat.CircuitConstraintProto.getDefaultInstance();
5461 } else {
5462 if (constraintCase_ == 15) {
5463 return circuitBuilder_.getMessage();
5464 }
5465 return com.google.ortools.sat.CircuitConstraintProto.getDefaultInstance();
5466 }
5467 }
5476 public Builder setCircuit(com.google.ortools.sat.CircuitConstraintProto value) {
5477 if (circuitBuilder_ == null) {
5478 if (value == null) {
5479 throw new NullPointerException();
5480 }
5481 constraint_ = value;
5482 onChanged();
5483 } else {
5484 circuitBuilder_.setMessage(value);
5485 }
5486 constraintCase_ = 15;
5487 return this;
5488 }
5498 com.google.ortools.sat.CircuitConstraintProto.Builder builderForValue) {
5499 if (circuitBuilder_ == null) {
5500 constraint_ = builderForValue.build();
5501 onChanged();
5502 } else {
5503 circuitBuilder_.setMessage(builderForValue.build());
5504 }
5505 constraintCase_ = 15;
5506 return this;
5507 }
5516 public Builder mergeCircuit(com.google.ortools.sat.CircuitConstraintProto value) {
5517 if (circuitBuilder_ == null) {
5518 if (constraintCase_ == 15 &&
5519 constraint_ != com.google.ortools.sat.CircuitConstraintProto.getDefaultInstance()) {
5520 constraint_ = com.google.ortools.sat.CircuitConstraintProto.newBuilder((com.google.ortools.sat.CircuitConstraintProto) constraint_)
5521 .mergeFrom(value).buildPartial();
5522 } else {
5523 constraint_ = value;
5524 }
5525 onChanged();
5526 } else {
5527 if (constraintCase_ == 15) {
5528 circuitBuilder_.mergeFrom(value);
5529 } else {
5530 circuitBuilder_.setMessage(value);
5531 }
5532 }
5533 constraintCase_ = 15;
5534 return this;
5535 }
5545 if (circuitBuilder_ == null) {
5546 if (constraintCase_ == 15) {
5547 constraintCase_ = 0;
5548 constraint_ = null;
5549 onChanged();
5550 }
5551 } else {
5552 if (constraintCase_ == 15) {
5553 constraintCase_ = 0;
5554 constraint_ = null;
5555 }
5556 circuitBuilder_.clear();
5557 }
5558 return this;
5559 }
5569 return getCircuitFieldBuilder().getBuilder();
5570 }
5579 @java.lang.Override
5581 if ((constraintCase_ == 15) && (circuitBuilder_ != null)) {
5582 return circuitBuilder_.getMessageOrBuilder();
5583 } else {
5584 if (constraintCase_ == 15) {
5585 return (com.google.ortools.sat.CircuitConstraintProto) constraint_;
5586 }
5587 return com.google.ortools.sat.CircuitConstraintProto.getDefaultInstance();
5588 }
5589 }
5598 private com.google.protobuf.SingleFieldBuilderV3<
5599 com.google.ortools.sat.CircuitConstraintProto, com.google.ortools.sat.CircuitConstraintProto.Builder, com.google.ortools.sat.CircuitConstraintProtoOrBuilder>
5600 getCircuitFieldBuilder() {
5601 if (circuitBuilder_ == null) {
5602 if (!(constraintCase_ == 15)) {
5603 constraint_ = com.google.ortools.sat.CircuitConstraintProto.getDefaultInstance();
5604 }
5605 circuitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5606 com.google.ortools.sat.CircuitConstraintProto, com.google.ortools.sat.CircuitConstraintProto.Builder, com.google.ortools.sat.CircuitConstraintProtoOrBuilder>(
5607 (com.google.ortools.sat.CircuitConstraintProto) constraint_,
5608 getParentForChildren(),
5609 isClean());
5610 constraint_ = null;
5611 }
5612 constraintCase_ = 15;
5613 onChanged();
5614 return circuitBuilder_;
5615 }
5616
5617 private com.google.protobuf.SingleFieldBuilderV3<
5618 com.google.ortools.sat.RoutesConstraintProto, com.google.ortools.sat.RoutesConstraintProto.Builder, com.google.ortools.sat.RoutesConstraintProtoOrBuilder> routesBuilder_;
5627 @java.lang.Override
5628 public boolean hasRoutes() {
5629 return constraintCase_ == 23;
5630 }
5639 @java.lang.Override
5641 if (routesBuilder_ == null) {
5642 if (constraintCase_ == 23) {
5643 return (com.google.ortools.sat.RoutesConstraintProto) constraint_;
5644 }
5645 return com.google.ortools.sat.RoutesConstraintProto.getDefaultInstance();
5646 } else {
5647 if (constraintCase_ == 23) {
5648 return routesBuilder_.getMessage();
5649 }
5650 return com.google.ortools.sat.RoutesConstraintProto.getDefaultInstance();
5651 }
5652 }
5660 public Builder setRoutes(com.google.ortools.sat.RoutesConstraintProto value) {
5661 if (routesBuilder_ == null) {
5662 if (value == null) {
5663 throw new NullPointerException();
5664 }
5665 constraint_ = value;
5666 onChanged();
5667 } else {
5668 routesBuilder_.setMessage(value);
5669 }
5670 constraintCase_ = 23;
5671 return this;
5672 }
5681 com.google.ortools.sat.RoutesConstraintProto.Builder builderForValue) {
5682 if (routesBuilder_ == null) {
5683 constraint_ = builderForValue.build();
5684 onChanged();
5685 } else {
5686 routesBuilder_.setMessage(builderForValue.build());
5687 }
5688 constraintCase_ = 23;
5689 return this;
5690 }
5698 public Builder mergeRoutes(com.google.ortools.sat.RoutesConstraintProto value) {
5699 if (routesBuilder_ == null) {
5700 if (constraintCase_ == 23 &&
5701 constraint_ != com.google.ortools.sat.RoutesConstraintProto.getDefaultInstance()) {
5702 constraint_ = com.google.ortools.sat.RoutesConstraintProto.newBuilder((com.google.ortools.sat.RoutesConstraintProto) constraint_)
5703 .mergeFrom(value).buildPartial();
5704 } else {
5705 constraint_ = value;
5706 }
5707 onChanged();
5708 } else {
5709 if (constraintCase_ == 23) {
5710 routesBuilder_.mergeFrom(value);
5711 } else {
5712 routesBuilder_.setMessage(value);
5713 }
5714 }
5715 constraintCase_ = 23;
5716 return this;
5717 }
5726 if (routesBuilder_ == null) {
5727 if (constraintCase_ == 23) {
5728 constraintCase_ = 0;
5729 constraint_ = null;
5730 onChanged();
5731 }
5732 } else {
5733 if (constraintCase_ == 23) {
5734 constraintCase_ = 0;
5735 constraint_ = null;
5736 }
5737 routesBuilder_.clear();
5738 }
5739 return this;
5740 }
5749 return getRoutesFieldBuilder().getBuilder();
5750 }
5758 @java.lang.Override
5760 if ((constraintCase_ == 23) && (routesBuilder_ != null)) {
5761 return routesBuilder_.getMessageOrBuilder();
5762 } else {
5763 if (constraintCase_ == 23) {
5764 return (com.google.ortools.sat.RoutesConstraintProto) constraint_;
5765 }
5766 return com.google.ortools.sat.RoutesConstraintProto.getDefaultInstance();
5767 }
5768 }
5776 private com.google.protobuf.SingleFieldBuilderV3<
5777 com.google.ortools.sat.RoutesConstraintProto, com.google.ortools.sat.RoutesConstraintProto.Builder, com.google.ortools.sat.RoutesConstraintProtoOrBuilder>
5778 getRoutesFieldBuilder() {
5779 if (routesBuilder_ == null) {
5780 if (!(constraintCase_ == 23)) {
5781 constraint_ = com.google.ortools.sat.RoutesConstraintProto.getDefaultInstance();
5782 }
5783 routesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5784 com.google.ortools.sat.RoutesConstraintProto, com.google.ortools.sat.RoutesConstraintProto.Builder, com.google.ortools.sat.RoutesConstraintProtoOrBuilder>(
5785 (com.google.ortools.sat.RoutesConstraintProto) constraint_,
5786 getParentForChildren(),
5787 isClean());
5788 constraint_ = null;
5789 }
5790 constraintCase_ = 23;
5791 onChanged();
5792 return routesBuilder_;
5793 }
5794
5795 private com.google.protobuf.SingleFieldBuilderV3<
5796 com.google.ortools.sat.TableConstraintProto, com.google.ortools.sat.TableConstraintProto.Builder, com.google.ortools.sat.TableConstraintProtoOrBuilder> tableBuilder_;
5806 @java.lang.Override
5807 public boolean hasTable() {
5808 return constraintCase_ == 16;
5809 }
5819 @java.lang.Override
5821 if (tableBuilder_ == null) {
5822 if (constraintCase_ == 16) {
5823 return (com.google.ortools.sat.TableConstraintProto) constraint_;
5824 }
5825 return com.google.ortools.sat.TableConstraintProto.getDefaultInstance();
5826 } else {
5827 if (constraintCase_ == 16) {
5828 return tableBuilder_.getMessage();
5829 }
5830 return com.google.ortools.sat.TableConstraintProto.getDefaultInstance();
5831 }
5832 }
5841 public Builder setTable(com.google.ortools.sat.TableConstraintProto value) {
5842 if (tableBuilder_ == null) {
5843 if (value == null) {
5844 throw new NullPointerException();
5845 }
5846 constraint_ = value;
5847 onChanged();
5848 } else {
5849 tableBuilder_.setMessage(value);
5850 }
5851 constraintCase_ = 16;
5852 return this;
5853 }
5863 com.google.ortools.sat.TableConstraintProto.Builder builderForValue) {
5864 if (tableBuilder_ == null) {
5865 constraint_ = builderForValue.build();
5866 onChanged();
5867 } else {
5868 tableBuilder_.setMessage(builderForValue.build());
5869 }
5870 constraintCase_ = 16;
5871 return this;
5872 }
5881 public Builder mergeTable(com.google.ortools.sat.TableConstraintProto value) {
5882 if (tableBuilder_ == null) {
5883 if (constraintCase_ == 16 &&
5884 constraint_ != com.google.ortools.sat.TableConstraintProto.getDefaultInstance()) {
5885 constraint_ = com.google.ortools.sat.TableConstraintProto.newBuilder((com.google.ortools.sat.TableConstraintProto) constraint_)
5886 .mergeFrom(value).buildPartial();
5887 } else {
5888 constraint_ = value;
5889 }
5890 onChanged();
5891 } else {
5892 if (constraintCase_ == 16) {
5893 tableBuilder_.mergeFrom(value);
5894 } else {
5895 tableBuilder_.setMessage(value);
5896 }
5897 }
5898 constraintCase_ = 16;
5899 return this;
5900 }
5910 if (tableBuilder_ == null) {
5911 if (constraintCase_ == 16) {
5912 constraintCase_ = 0;
5913 constraint_ = null;
5914 onChanged();
5915 }
5916 } else {
5917 if (constraintCase_ == 16) {
5918 constraintCase_ = 0;
5919 constraint_ = null;
5920 }
5921 tableBuilder_.clear();
5922 }
5923 return this;
5924 }
5934 return getTableFieldBuilder().getBuilder();
5935 }
5944 @java.lang.Override
5946 if ((constraintCase_ == 16) && (tableBuilder_ != null)) {
5947 return tableBuilder_.getMessageOrBuilder();
5948 } else {
5949 if (constraintCase_ == 16) {
5950 return (com.google.ortools.sat.TableConstraintProto) constraint_;
5951 }
5952 return com.google.ortools.sat.TableConstraintProto.getDefaultInstance();
5953 }
5954 }
5963 private com.google.protobuf.SingleFieldBuilderV3<
5964 com.google.ortools.sat.TableConstraintProto, com.google.ortools.sat.TableConstraintProto.Builder, com.google.ortools.sat.TableConstraintProtoOrBuilder>
5965 getTableFieldBuilder() {
5966 if (tableBuilder_ == null) {
5967 if (!(constraintCase_ == 16)) {
5968 constraint_ = com.google.ortools.sat.TableConstraintProto.getDefaultInstance();
5969 }
5970 tableBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5971 com.google.ortools.sat.TableConstraintProto, com.google.ortools.sat.TableConstraintProto.Builder, com.google.ortools.sat.TableConstraintProtoOrBuilder>(
5972 (com.google.ortools.sat.TableConstraintProto) constraint_,
5973 getParentForChildren(),
5974 isClean());
5975 constraint_ = null;
5976 }
5977 constraintCase_ = 16;
5978 onChanged();
5979 return tableBuilder_;
5980 }
5981
5982 private com.google.protobuf.SingleFieldBuilderV3<
5983 com.google.ortools.sat.AutomatonConstraintProto, com.google.ortools.sat.AutomatonConstraintProto.Builder, com.google.ortools.sat.AutomatonConstraintProtoOrBuilder> automatonBuilder_;
5993 @java.lang.Override
5994 public boolean hasAutomaton() {
5995 return constraintCase_ == 17;
5996 }
6006 @java.lang.Override
6008 if (automatonBuilder_ == null) {
6009 if (constraintCase_ == 17) {
6010 return (com.google.ortools.sat.AutomatonConstraintProto) constraint_;
6011 }
6012 return com.google.ortools.sat.AutomatonConstraintProto.getDefaultInstance();
6013 } else {
6014 if (constraintCase_ == 17) {
6015 return automatonBuilder_.getMessage();
6016 }
6017 return com.google.ortools.sat.AutomatonConstraintProto.getDefaultInstance();
6018 }
6019 }
6028 public Builder setAutomaton(com.google.ortools.sat.AutomatonConstraintProto value) {
6029 if (automatonBuilder_ == null) {
6030 if (value == null) {
6031 throw new NullPointerException();
6032 }
6033 constraint_ = value;
6034 onChanged();
6035 } else {
6036 automatonBuilder_.setMessage(value);
6037 }
6038 constraintCase_ = 17;
6039 return this;
6040 }
6050 com.google.ortools.sat.AutomatonConstraintProto.Builder builderForValue) {
6051 if (automatonBuilder_ == null) {
6052 constraint_ = builderForValue.build();
6053 onChanged();
6054 } else {
6055 automatonBuilder_.setMessage(builderForValue.build());
6056 }
6057 constraintCase_ = 17;
6058 return this;
6059 }
6068 public Builder mergeAutomaton(com.google.ortools.sat.AutomatonConstraintProto value) {
6069 if (automatonBuilder_ == null) {
6070 if (constraintCase_ == 17 &&
6071 constraint_ != com.google.ortools.sat.AutomatonConstraintProto.getDefaultInstance()) {
6072 constraint_ = com.google.ortools.sat.AutomatonConstraintProto.newBuilder((com.google.ortools.sat.AutomatonConstraintProto) constraint_)
6073 .mergeFrom(value).buildPartial();
6074 } else {
6075 constraint_ = value;
6076 }
6077 onChanged();
6078 } else {
6079 if (constraintCase_ == 17) {
6080 automatonBuilder_.mergeFrom(value);
6081 } else {
6082 automatonBuilder_.setMessage(value);
6083 }
6084 }
6085 constraintCase_ = 17;
6086 return this;
6087 }
6097 if (automatonBuilder_ == null) {
6098 if (constraintCase_ == 17) {
6099 constraintCase_ = 0;
6100 constraint_ = null;
6101 onChanged();
6102 }
6103 } else {
6104 if (constraintCase_ == 17) {
6105 constraintCase_ = 0;
6106 constraint_ = null;
6107 }
6108 automatonBuilder_.clear();
6109 }
6110 return this;
6111 }
6121 return getAutomatonFieldBuilder().getBuilder();
6122 }
6131 @java.lang.Override
6133 if ((constraintCase_ == 17) && (automatonBuilder_ != null)) {
6134 return automatonBuilder_.getMessageOrBuilder();
6135 } else {
6136 if (constraintCase_ == 17) {
6137 return (com.google.ortools.sat.AutomatonConstraintProto) constraint_;
6138 }
6139 return com.google.ortools.sat.AutomatonConstraintProto.getDefaultInstance();
6140 }
6141 }
6150 private com.google.protobuf.SingleFieldBuilderV3<
6151 com.google.ortools.sat.AutomatonConstraintProto, com.google.ortools.sat.AutomatonConstraintProto.Builder, com.google.ortools.sat.AutomatonConstraintProtoOrBuilder>
6152 getAutomatonFieldBuilder() {
6153 if (automatonBuilder_ == null) {
6154 if (!(constraintCase_ == 17)) {
6155 constraint_ = com.google.ortools.sat.AutomatonConstraintProto.getDefaultInstance();
6156 }
6157 automatonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6158 com.google.ortools.sat.AutomatonConstraintProto, com.google.ortools.sat.AutomatonConstraintProto.Builder, com.google.ortools.sat.AutomatonConstraintProtoOrBuilder>(
6159 (com.google.ortools.sat.AutomatonConstraintProto) constraint_,
6160 getParentForChildren(),
6161 isClean());
6162 constraint_ = null;
6163 }
6164 constraintCase_ = 17;
6165 onChanged();
6166 return automatonBuilder_;
6167 }
6168
6169 private com.google.protobuf.SingleFieldBuilderV3<
6170 com.google.ortools.sat.InverseConstraintProto, com.google.ortools.sat.InverseConstraintProto.Builder, com.google.ortools.sat.InverseConstraintProtoOrBuilder> inverseBuilder_;
6180 @java.lang.Override
6181 public boolean hasInverse() {
6182 return constraintCase_ == 18;
6183 }
6193 @java.lang.Override
6195 if (inverseBuilder_ == null) {
6196 if (constraintCase_ == 18) {
6197 return (com.google.ortools.sat.InverseConstraintProto) constraint_;
6198 }
6199 return com.google.ortools.sat.InverseConstraintProto.getDefaultInstance();
6200 } else {
6201 if (constraintCase_ == 18) {
6202 return inverseBuilder_.getMessage();
6203 }
6204 return com.google.ortools.sat.InverseConstraintProto.getDefaultInstance();
6205 }
6206 }
6215 public Builder setInverse(com.google.ortools.sat.InverseConstraintProto value) {
6216 if (inverseBuilder_ == null) {
6217 if (value == null) {
6218 throw new NullPointerException();
6219 }
6220 constraint_ = value;
6221 onChanged();
6222 } else {
6223 inverseBuilder_.setMessage(value);
6224 }
6225 constraintCase_ = 18;
6226 return this;
6227 }
6237 com.google.ortools.sat.InverseConstraintProto.Builder builderForValue) {
6238 if (inverseBuilder_ == null) {
6239 constraint_ = builderForValue.build();
6240 onChanged();
6241 } else {
6242 inverseBuilder_.setMessage(builderForValue.build());
6243 }
6244 constraintCase_ = 18;
6245 return this;
6246 }
6255 public Builder mergeInverse(com.google.ortools.sat.InverseConstraintProto value) {
6256 if (inverseBuilder_ == null) {
6257 if (constraintCase_ == 18 &&
6258 constraint_ != com.google.ortools.sat.InverseConstraintProto.getDefaultInstance()) {
6259 constraint_ = com.google.ortools.sat.InverseConstraintProto.newBuilder((com.google.ortools.sat.InverseConstraintProto) constraint_)
6260 .mergeFrom(value).buildPartial();
6261 } else {
6262 constraint_ = value;
6263 }
6264 onChanged();
6265 } else {
6266 if (constraintCase_ == 18) {
6267 inverseBuilder_.mergeFrom(value);
6268 } else {
6269 inverseBuilder_.setMessage(value);
6270 }
6271 }
6272 constraintCase_ = 18;
6273 return this;
6274 }
6284 if (inverseBuilder_ == null) {
6285 if (constraintCase_ == 18) {
6286 constraintCase_ = 0;
6287 constraint_ = null;
6288 onChanged();
6289 }
6290 } else {
6291 if (constraintCase_ == 18) {
6292 constraintCase_ = 0;
6293 constraint_ = null;
6294 }
6295 inverseBuilder_.clear();
6296 }
6297 return this;
6298 }
6308 return getInverseFieldBuilder().getBuilder();
6309 }
6318 @java.lang.Override
6320 if ((constraintCase_ == 18) && (inverseBuilder_ != null)) {
6321 return inverseBuilder_.getMessageOrBuilder();
6322 } else {
6323 if (constraintCase_ == 18) {
6324 return (com.google.ortools.sat.InverseConstraintProto) constraint_;
6325 }
6326 return com.google.ortools.sat.InverseConstraintProto.getDefaultInstance();
6327 }
6328 }
6337 private com.google.protobuf.SingleFieldBuilderV3<
6338 com.google.ortools.sat.InverseConstraintProto, com.google.ortools.sat.InverseConstraintProto.Builder, com.google.ortools.sat.InverseConstraintProtoOrBuilder>
6339 getInverseFieldBuilder() {
6340 if (inverseBuilder_ == null) {
6341 if (!(constraintCase_ == 18)) {
6342 constraint_ = com.google.ortools.sat.InverseConstraintProto.getDefaultInstance();
6343 }
6344 inverseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6345 com.google.ortools.sat.InverseConstraintProto, com.google.ortools.sat.InverseConstraintProto.Builder, com.google.ortools.sat.InverseConstraintProtoOrBuilder>(
6346 (com.google.ortools.sat.InverseConstraintProto) constraint_,
6347 getParentForChildren(),
6348 isClean());
6349 constraint_ = null;
6350 }
6351 constraintCase_ = 18;
6352 onChanged();
6353 return inverseBuilder_;
6354 }
6355
6356 private com.google.protobuf.SingleFieldBuilderV3<
6357 com.google.ortools.sat.ReservoirConstraintProto, com.google.ortools.sat.ReservoirConstraintProto.Builder, com.google.ortools.sat.ReservoirConstraintProtoOrBuilder> reservoirBuilder_;
6368 @java.lang.Override
6369 public boolean hasReservoir() {
6370 return constraintCase_ == 24;
6371 }
6382 @java.lang.Override
6384 if (reservoirBuilder_ == null) {
6385 if (constraintCase_ == 24) {
6386 return (com.google.ortools.sat.ReservoirConstraintProto) constraint_;
6387 }
6388 return com.google.ortools.sat.ReservoirConstraintProto.getDefaultInstance();
6389 } else {
6390 if (constraintCase_ == 24) {
6391 return reservoirBuilder_.getMessage();
6392 }
6393 return com.google.ortools.sat.ReservoirConstraintProto.getDefaultInstance();
6394 }
6395 }
6405 public Builder setReservoir(com.google.ortools.sat.ReservoirConstraintProto value) {
6406 if (reservoirBuilder_ == null) {
6407 if (value == null) {
6408 throw new NullPointerException();
6409 }
6410 constraint_ = value;
6411 onChanged();
6412 } else {
6413 reservoirBuilder_.setMessage(value);
6414 }
6415 constraintCase_ = 24;
6416 return this;
6417 }
6428 com.google.ortools.sat.ReservoirConstraintProto.Builder builderForValue) {
6429 if (reservoirBuilder_ == null) {
6430 constraint_ = builderForValue.build();
6431 onChanged();
6432 } else {
6433 reservoirBuilder_.setMessage(builderForValue.build());
6434 }
6435 constraintCase_ = 24;
6436 return this;
6437 }
6447 public Builder mergeReservoir(com.google.ortools.sat.ReservoirConstraintProto value) {
6448 if (reservoirBuilder_ == null) {
6449 if (constraintCase_ == 24 &&
6450 constraint_ != com.google.ortools.sat.ReservoirConstraintProto.getDefaultInstance()) {
6451 constraint_ = com.google.ortools.sat.ReservoirConstraintProto.newBuilder((com.google.ortools.sat.ReservoirConstraintProto) constraint_)
6452 .mergeFrom(value).buildPartial();
6453 } else {
6454 constraint_ = value;
6455 }
6456 onChanged();
6457 } else {
6458 if (constraintCase_ == 24) {
6459 reservoirBuilder_.mergeFrom(value);
6460 } else {
6461 reservoirBuilder_.setMessage(value);
6462 }
6463 }
6464 constraintCase_ = 24;
6465 return this;
6466 }
6477 if (reservoirBuilder_ == null) {
6478 if (constraintCase_ == 24) {
6479 constraintCase_ = 0;
6480 constraint_ = null;
6481 onChanged();
6482 }
6483 } else {
6484 if (constraintCase_ == 24) {
6485 constraintCase_ = 0;
6486 constraint_ = null;
6487 }
6488 reservoirBuilder_.clear();
6489 }
6490 return this;
6491 }
6502 return getReservoirFieldBuilder().getBuilder();
6503 }
6513 @java.lang.Override
6515 if ((constraintCase_ == 24) && (reservoirBuilder_ != null)) {
6516 return reservoirBuilder_.getMessageOrBuilder();
6517 } else {
6518 if (constraintCase_ == 24) {
6519 return (com.google.ortools.sat.ReservoirConstraintProto) constraint_;
6520 }
6521 return com.google.ortools.sat.ReservoirConstraintProto.getDefaultInstance();
6522 }
6523 }
6533 private com.google.protobuf.SingleFieldBuilderV3<
6534 com.google.ortools.sat.ReservoirConstraintProto, com.google.ortools.sat.ReservoirConstraintProto.Builder, com.google.ortools.sat.ReservoirConstraintProtoOrBuilder>
6535 getReservoirFieldBuilder() {
6536 if (reservoirBuilder_ == null) {
6537 if (!(constraintCase_ == 24)) {
6538 constraint_ = com.google.ortools.sat.ReservoirConstraintProto.getDefaultInstance();
6539 }
6540 reservoirBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6541 com.google.ortools.sat.ReservoirConstraintProto, com.google.ortools.sat.ReservoirConstraintProto.Builder, com.google.ortools.sat.ReservoirConstraintProtoOrBuilder>(
6542 (com.google.ortools.sat.ReservoirConstraintProto) constraint_,
6543 getParentForChildren(),
6544 isClean());
6545 constraint_ = null;
6546 }
6547 constraintCase_ = 24;
6548 onChanged();
6549 return reservoirBuilder_;
6550 }
6551
6552 private com.google.protobuf.SingleFieldBuilderV3<
6553 com.google.ortools.sat.IntervalConstraintProto, com.google.ortools.sat.IntervalConstraintProto.Builder, com.google.ortools.sat.IntervalConstraintProtoOrBuilder> intervalBuilder_;
6563 @java.lang.Override
6564 public boolean hasInterval() {
6565 return constraintCase_ == 19;
6566 }
6576 @java.lang.Override
6578 if (intervalBuilder_ == null) {
6579 if (constraintCase_ == 19) {
6580 return (com.google.ortools.sat.IntervalConstraintProto) constraint_;
6581 }
6582 return com.google.ortools.sat.IntervalConstraintProto.getDefaultInstance();
6583 } else {
6584 if (constraintCase_ == 19) {
6585 return intervalBuilder_.getMessage();
6586 }
6587 return com.google.ortools.sat.IntervalConstraintProto.getDefaultInstance();
6588 }
6589 }
6598 public Builder setInterval(com.google.ortools.sat.IntervalConstraintProto value) {
6599 if (intervalBuilder_ == null) {
6600 if (value == null) {
6601 throw new NullPointerException();
6602 }
6603 constraint_ = value;
6604 onChanged();
6605 } else {
6606 intervalBuilder_.setMessage(value);
6607 }
6608 constraintCase_ = 19;
6609 return this;
6610 }
6620 com.google.ortools.sat.IntervalConstraintProto.Builder builderForValue) {
6621 if (intervalBuilder_ == null) {
6622 constraint_ = builderForValue.build();
6623 onChanged();
6624 } else {
6625 intervalBuilder_.setMessage(builderForValue.build());
6626 }
6627 constraintCase_ = 19;
6628 return this;
6629 }
6638 public Builder mergeInterval(com.google.ortools.sat.IntervalConstraintProto value) {
6639 if (intervalBuilder_ == null) {
6640 if (constraintCase_ == 19 &&
6641 constraint_ != com.google.ortools.sat.IntervalConstraintProto.getDefaultInstance()) {
6642 constraint_ = com.google.ortools.sat.IntervalConstraintProto.newBuilder((com.google.ortools.sat.IntervalConstraintProto) constraint_)
6643 .mergeFrom(value).buildPartial();
6644 } else {
6645 constraint_ = value;
6646 }
6647 onChanged();
6648 } else {
6649 if (constraintCase_ == 19) {
6650 intervalBuilder_.mergeFrom(value);
6651 } else {
6652 intervalBuilder_.setMessage(value);
6653 }
6654 }
6655 constraintCase_ = 19;
6656 return this;
6657 }
6667 if (intervalBuilder_ == null) {
6668 if (constraintCase_ == 19) {
6669 constraintCase_ = 0;
6670 constraint_ = null;
6671 onChanged();
6672 }
6673 } else {
6674 if (constraintCase_ == 19) {
6675 constraintCase_ = 0;
6676 constraint_ = null;
6677 }
6678 intervalBuilder_.clear();
6679 }
6680 return this;
6681 }
6691 return getIntervalFieldBuilder().getBuilder();
6692 }
6701 @java.lang.Override
6703 if ((constraintCase_ == 19) && (intervalBuilder_ != null)) {
6704 return intervalBuilder_.getMessageOrBuilder();
6705 } else {
6706 if (constraintCase_ == 19) {
6707 return (com.google.ortools.sat.IntervalConstraintProto) constraint_;
6708 }
6709 return com.google.ortools.sat.IntervalConstraintProto.getDefaultInstance();
6710 }
6711 }
6720 private com.google.protobuf.SingleFieldBuilderV3<
6721 com.google.ortools.sat.IntervalConstraintProto, com.google.ortools.sat.IntervalConstraintProto.Builder, com.google.ortools.sat.IntervalConstraintProtoOrBuilder>
6722 getIntervalFieldBuilder() {
6723 if (intervalBuilder_ == null) {
6724 if (!(constraintCase_ == 19)) {
6725 constraint_ = com.google.ortools.sat.IntervalConstraintProto.getDefaultInstance();
6726 }
6727 intervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6728 com.google.ortools.sat.IntervalConstraintProto, com.google.ortools.sat.IntervalConstraintProto.Builder, com.google.ortools.sat.IntervalConstraintProtoOrBuilder>(
6729 (com.google.ortools.sat.IntervalConstraintProto) constraint_,
6730 getParentForChildren(),
6731 isClean());
6732 constraint_ = null;
6733 }
6734 constraintCase_ = 19;
6735 onChanged();
6736 return intervalBuilder_;
6737 }
6738
6739 private com.google.protobuf.SingleFieldBuilderV3<
6740 com.google.ortools.sat.NoOverlapConstraintProto, com.google.ortools.sat.NoOverlapConstraintProto.Builder, com.google.ortools.sat.NoOverlapConstraintProtoOrBuilder> noOverlapBuilder_;
6751 @java.lang.Override
6752 public boolean hasNoOverlap() {
6753 return constraintCase_ == 20;
6754 }
6765 @java.lang.Override
6767 if (noOverlapBuilder_ == null) {
6768 if (constraintCase_ == 20) {
6769 return (com.google.ortools.sat.NoOverlapConstraintProto) constraint_;
6770 }
6771 return com.google.ortools.sat.NoOverlapConstraintProto.getDefaultInstance();
6772 } else {
6773 if (constraintCase_ == 20) {
6774 return noOverlapBuilder_.getMessage();
6775 }
6776 return com.google.ortools.sat.NoOverlapConstraintProto.getDefaultInstance();
6777 }
6778 }
6788 public Builder setNoOverlap(com.google.ortools.sat.NoOverlapConstraintProto value) {
6789 if (noOverlapBuilder_ == null) {
6790 if (value == null) {
6791 throw new NullPointerException();
6792 }
6793 constraint_ = value;
6794 onChanged();
6795 } else {
6796 noOverlapBuilder_.setMessage(value);
6797 }
6798 constraintCase_ = 20;
6799 return this;
6800 }
6811 com.google.ortools.sat.NoOverlapConstraintProto.Builder builderForValue) {
6812 if (noOverlapBuilder_ == null) {
6813 constraint_ = builderForValue.build();
6814 onChanged();
6815 } else {
6816 noOverlapBuilder_.setMessage(builderForValue.build());
6817 }
6818 constraintCase_ = 20;
6819 return this;
6820 }
6830 public Builder mergeNoOverlap(com.google.ortools.sat.NoOverlapConstraintProto value) {
6831 if (noOverlapBuilder_ == null) {
6832 if (constraintCase_ == 20 &&
6833 constraint_ != com.google.ortools.sat.NoOverlapConstraintProto.getDefaultInstance()) {
6834 constraint_ = com.google.ortools.sat.NoOverlapConstraintProto.newBuilder((com.google.ortools.sat.NoOverlapConstraintProto) constraint_)
6835 .mergeFrom(value).buildPartial();
6836 } else {
6837 constraint_ = value;
6838 }
6839 onChanged();
6840 } else {
6841 if (constraintCase_ == 20) {
6842 noOverlapBuilder_.mergeFrom(value);
6843 } else {
6844 noOverlapBuilder_.setMessage(value);
6845 }
6846 }
6847 constraintCase_ = 20;
6848 return this;
6849 }
6860 if (noOverlapBuilder_ == null) {
6861 if (constraintCase_ == 20) {
6862 constraintCase_ = 0;
6863 constraint_ = null;
6864 onChanged();
6865 }
6866 } else {
6867 if (constraintCase_ == 20) {
6868 constraintCase_ = 0;
6869 constraint_ = null;
6870 }
6871 noOverlapBuilder_.clear();
6872 }
6873 return this;
6874 }
6885 return getNoOverlapFieldBuilder().getBuilder();
6886 }
6896 @java.lang.Override
6898 if ((constraintCase_ == 20) && (noOverlapBuilder_ != null)) {
6899 return noOverlapBuilder_.getMessageOrBuilder();
6900 } else {
6901 if (constraintCase_ == 20) {
6902 return (com.google.ortools.sat.NoOverlapConstraintProto) constraint_;
6903 }
6904 return com.google.ortools.sat.NoOverlapConstraintProto.getDefaultInstance();
6905 }
6906 }
6916 private com.google.protobuf.SingleFieldBuilderV3<
6917 com.google.ortools.sat.NoOverlapConstraintProto, com.google.ortools.sat.NoOverlapConstraintProto.Builder, com.google.ortools.sat.NoOverlapConstraintProtoOrBuilder>
6918 getNoOverlapFieldBuilder() {
6919 if (noOverlapBuilder_ == null) {
6920 if (!(constraintCase_ == 20)) {
6921 constraint_ = com.google.ortools.sat.NoOverlapConstraintProto.getDefaultInstance();
6922 }
6923 noOverlapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6924 com.google.ortools.sat.NoOverlapConstraintProto, com.google.ortools.sat.NoOverlapConstraintProto.Builder, com.google.ortools.sat.NoOverlapConstraintProtoOrBuilder>(
6925 (com.google.ortools.sat.NoOverlapConstraintProto) constraint_,
6926 getParentForChildren(),
6927 isClean());
6928 constraint_ = null;
6929 }
6930 constraintCase_ = 20;
6931 onChanged();
6932 return noOverlapBuilder_;
6933 }
6934
6935 private com.google.protobuf.SingleFieldBuilderV3<
6936 com.google.ortools.sat.NoOverlap2DConstraintProto, com.google.ortools.sat.NoOverlap2DConstraintProto.Builder, com.google.ortools.sat.NoOverlap2DConstraintProtoOrBuilder> noOverlap2DBuilder_;
6945 @java.lang.Override
6946 public boolean hasNoOverlap2D() {
6947 return constraintCase_ == 21;
6948 }
6957 @java.lang.Override
6959 if (noOverlap2DBuilder_ == null) {
6960 if (constraintCase_ == 21) {
6961 return (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_;
6962 }
6963 return com.google.ortools.sat.NoOverlap2DConstraintProto.getDefaultInstance();
6964 } else {
6965 if (constraintCase_ == 21) {
6966 return noOverlap2DBuilder_.getMessage();
6967 }
6968 return com.google.ortools.sat.NoOverlap2DConstraintProto.getDefaultInstance();
6969 }
6970 }
6978 public Builder setNoOverlap2D(com.google.ortools.sat.NoOverlap2DConstraintProto value) {
6979 if (noOverlap2DBuilder_ == null) {
6980 if (value == null) {
6981 throw new NullPointerException();
6982 }
6983 constraint_ = value;
6984 onChanged();
6985 } else {
6986 noOverlap2DBuilder_.setMessage(value);
6987 }
6988 constraintCase_ = 21;
6989 return this;
6990 }
6999 com.google.ortools.sat.NoOverlap2DConstraintProto.Builder builderForValue) {
7000 if (noOverlap2DBuilder_ == null) {
7001 constraint_ = builderForValue.build();
7002 onChanged();
7003 } else {
7004 noOverlap2DBuilder_.setMessage(builderForValue.build());
7005 }
7006 constraintCase_ = 21;
7007 return this;
7008 }
7016 public Builder mergeNoOverlap2D(com.google.ortools.sat.NoOverlap2DConstraintProto value) {
7017 if (noOverlap2DBuilder_ == null) {
7018 if (constraintCase_ == 21 &&
7019 constraint_ != com.google.ortools.sat.NoOverlap2DConstraintProto.getDefaultInstance()) {
7020 constraint_ = com.google.ortools.sat.NoOverlap2DConstraintProto.newBuilder((com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_)
7021 .mergeFrom(value).buildPartial();
7022 } else {
7023 constraint_ = value;
7024 }
7025 onChanged();
7026 } else {
7027 if (constraintCase_ == 21) {
7028 noOverlap2DBuilder_.mergeFrom(value);
7029 } else {
7030 noOverlap2DBuilder_.setMessage(value);
7031 }
7032 }
7033 constraintCase_ = 21;
7034 return this;
7035 }
7044 if (noOverlap2DBuilder_ == null) {
7045 if (constraintCase_ == 21) {
7046 constraintCase_ = 0;
7047 constraint_ = null;
7048 onChanged();
7049 }
7050 } else {
7051 if (constraintCase_ == 21) {
7052 constraintCase_ = 0;
7053 constraint_ = null;
7054 }
7055 noOverlap2DBuilder_.clear();
7056 }
7057 return this;
7058 }
7067 return getNoOverlap2DFieldBuilder().getBuilder();
7068 }
7076 @java.lang.Override
7078 if ((constraintCase_ == 21) && (noOverlap2DBuilder_ != null)) {
7079 return noOverlap2DBuilder_.getMessageOrBuilder();
7080 } else {
7081 if (constraintCase_ == 21) {
7082 return (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_;
7083 }
7084 return com.google.ortools.sat.NoOverlap2DConstraintProto.getDefaultInstance();
7085 }
7086 }
7094 private com.google.protobuf.SingleFieldBuilderV3<
7095 com.google.ortools.sat.NoOverlap2DConstraintProto, com.google.ortools.sat.NoOverlap2DConstraintProto.Builder, com.google.ortools.sat.NoOverlap2DConstraintProtoOrBuilder>
7096 getNoOverlap2DFieldBuilder() {
7097 if (noOverlap2DBuilder_ == null) {
7098 if (!(constraintCase_ == 21)) {
7099 constraint_ = com.google.ortools.sat.NoOverlap2DConstraintProto.getDefaultInstance();
7100 }
7101 noOverlap2DBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
7102 com.google.ortools.sat.NoOverlap2DConstraintProto, com.google.ortools.sat.NoOverlap2DConstraintProto.Builder, com.google.ortools.sat.NoOverlap2DConstraintProtoOrBuilder>(
7103 (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_,
7104 getParentForChildren(),
7105 isClean());
7106 constraint_ = null;
7107 }
7108 constraintCase_ = 21;
7109 onChanged();
7110 return noOverlap2DBuilder_;
7111 }
7112
7113 private com.google.protobuf.SingleFieldBuilderV3<
7114 com.google.ortools.sat.CumulativeConstraintProto, com.google.ortools.sat.CumulativeConstraintProto.Builder, com.google.ortools.sat.CumulativeConstraintProtoOrBuilder> cumulativeBuilder_;
7125 @java.lang.Override
7126 public boolean hasCumulative() {
7127 return constraintCase_ == 22;
7128 }
7139 @java.lang.Override
7141 if (cumulativeBuilder_ == null) {
7142 if (constraintCase_ == 22) {
7143 return (com.google.ortools.sat.CumulativeConstraintProto) constraint_;
7144 }
7145 return com.google.ortools.sat.CumulativeConstraintProto.getDefaultInstance();
7146 } else {
7147 if (constraintCase_ == 22) {
7148 return cumulativeBuilder_.getMessage();
7149 }
7150 return com.google.ortools.sat.CumulativeConstraintProto.getDefaultInstance();
7151 }
7152 }
7162 public Builder setCumulative(com.google.ortools.sat.CumulativeConstraintProto value) {
7163 if (cumulativeBuilder_ == null) {
7164 if (value == null) {
7165 throw new NullPointerException();
7166 }
7167 constraint_ = value;
7168 onChanged();
7169 } else {
7170 cumulativeBuilder_.setMessage(value);
7171 }
7172 constraintCase_ = 22;
7173 return this;
7174 }
7185 com.google.ortools.sat.CumulativeConstraintProto.Builder builderForValue) {
7186 if (cumulativeBuilder_ == null) {
7187 constraint_ = builderForValue.build();
7188 onChanged();
7189 } else {
7190 cumulativeBuilder_.setMessage(builderForValue.build());
7191 }
7192 constraintCase_ = 22;
7193 return this;
7194 }
7204 public Builder mergeCumulative(com.google.ortools.sat.CumulativeConstraintProto value) {
7205 if (cumulativeBuilder_ == null) {
7206 if (constraintCase_ == 22 &&
7207 constraint_ != com.google.ortools.sat.CumulativeConstraintProto.getDefaultInstance()) {
7208 constraint_ = com.google.ortools.sat.CumulativeConstraintProto.newBuilder((com.google.ortools.sat.CumulativeConstraintProto) constraint_)
7209 .mergeFrom(value).buildPartial();
7210 } else {
7211 constraint_ = value;
7212 }
7213 onChanged();
7214 } else {
7215 if (constraintCase_ == 22) {
7216 cumulativeBuilder_.mergeFrom(value);
7217 } else {
7218 cumulativeBuilder_.setMessage(value);
7219 }
7220 }
7221 constraintCase_ = 22;
7222 return this;
7223 }
7234 if (cumulativeBuilder_ == null) {
7235 if (constraintCase_ == 22) {
7236 constraintCase_ = 0;
7237 constraint_ = null;
7238 onChanged();
7239 }
7240 } else {
7241 if (constraintCase_ == 22) {
7242 constraintCase_ = 0;
7243 constraint_ = null;
7244 }
7245 cumulativeBuilder_.clear();
7246 }
7247 return this;
7248 }
7259 return getCumulativeFieldBuilder().getBuilder();
7260 }
7270 @java.lang.Override
7272 if ((constraintCase_ == 22) && (cumulativeBuilder_ != null)) {
7273 return cumulativeBuilder_.getMessageOrBuilder();
7274 } else {
7275 if (constraintCase_ == 22) {
7276 return (com.google.ortools.sat.CumulativeConstraintProto) constraint_;
7277 }
7278 return com.google.ortools.sat.CumulativeConstraintProto.getDefaultInstance();
7279 }
7280 }
7290 private com.google.protobuf.SingleFieldBuilderV3<
7291 com.google.ortools.sat.CumulativeConstraintProto, com.google.ortools.sat.CumulativeConstraintProto.Builder, com.google.ortools.sat.CumulativeConstraintProtoOrBuilder>
7292 getCumulativeFieldBuilder() {
7293 if (cumulativeBuilder_ == null) {
7294 if (!(constraintCase_ == 22)) {
7295 constraint_ = com.google.ortools.sat.CumulativeConstraintProto.getDefaultInstance();
7296 }
7297 cumulativeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
7298 com.google.ortools.sat.CumulativeConstraintProto, com.google.ortools.sat.CumulativeConstraintProto.Builder, com.google.ortools.sat.CumulativeConstraintProtoOrBuilder>(
7299 (com.google.ortools.sat.CumulativeConstraintProto) constraint_,
7300 getParentForChildren(),
7301 isClean());
7302 constraint_ = null;
7303 }
7304 constraintCase_ = 22;
7305 onChanged();
7306 return cumulativeBuilder_;
7307 }
7308
7309 private com.google.protobuf.SingleFieldBuilderV3<
7310 com.google.ortools.sat.ListOfVariablesProto, com.google.ortools.sat.ListOfVariablesProto.Builder, com.google.ortools.sat.ListOfVariablesProtoOrBuilder> dummyConstraintBuilder_;
7320 @java.lang.Override
7321 public boolean hasDummyConstraint() {
7322 return constraintCase_ == 30;
7323 }
7333 @java.lang.Override
7335 if (dummyConstraintBuilder_ == null) {
7336 if (constraintCase_ == 30) {
7337 return (com.google.ortools.sat.ListOfVariablesProto) constraint_;
7338 }
7339 return com.google.ortools.sat.ListOfVariablesProto.getDefaultInstance();
7340 } else {
7341 if (constraintCase_ == 30) {
7342 return dummyConstraintBuilder_.getMessage();
7343 }
7344 return com.google.ortools.sat.ListOfVariablesProto.getDefaultInstance();
7345 }
7346 }
7355 public Builder setDummyConstraint(com.google.ortools.sat.ListOfVariablesProto value) {
7356 if (dummyConstraintBuilder_ == null) {
7357 if (value == null) {
7358 throw new NullPointerException();
7359 }
7360 constraint_ = value;
7361 onChanged();
7362 } else {
7363 dummyConstraintBuilder_.setMessage(value);
7364 }
7365 constraintCase_ = 30;
7366 return this;
7367 }
7377 com.google.ortools.sat.ListOfVariablesProto.Builder builderForValue) {
7378 if (dummyConstraintBuilder_ == null) {
7379 constraint_ = builderForValue.build();
7380 onChanged();
7381 } else {
7382 dummyConstraintBuilder_.setMessage(builderForValue.build());
7383 }
7384 constraintCase_ = 30;
7385 return this;
7386 }
7395 public Builder mergeDummyConstraint(com.google.ortools.sat.ListOfVariablesProto value) {
7396 if (dummyConstraintBuilder_ == null) {
7397 if (constraintCase_ == 30 &&
7398 constraint_ != com.google.ortools.sat.ListOfVariablesProto.getDefaultInstance()) {
7399 constraint_ = com.google.ortools.sat.ListOfVariablesProto.newBuilder((com.google.ortools.sat.ListOfVariablesProto) constraint_)
7400 .mergeFrom(value).buildPartial();
7401 } else {
7402 constraint_ = value;
7403 }
7404 onChanged();
7405 } else {
7406 if (constraintCase_ == 30) {
7407 dummyConstraintBuilder_.mergeFrom(value);
7408 } else {
7409 dummyConstraintBuilder_.setMessage(value);
7410 }
7411 }
7412 constraintCase_ = 30;
7413 return this;
7414 }
7424 if (dummyConstraintBuilder_ == null) {
7425 if (constraintCase_ == 30) {
7426 constraintCase_ = 0;
7427 constraint_ = null;
7428 onChanged();
7429 }
7430 } else {
7431 if (constraintCase_ == 30) {
7432 constraintCase_ = 0;
7433 constraint_ = null;
7434 }
7435 dummyConstraintBuilder_.clear();
7436 }
7437 return this;
7438 }
7448 return getDummyConstraintFieldBuilder().getBuilder();
7449 }
7458 @java.lang.Override
7460 if ((constraintCase_ == 30) && (dummyConstraintBuilder_ != null)) {
7461 return dummyConstraintBuilder_.getMessageOrBuilder();
7462 } else {
7463 if (constraintCase_ == 30) {
7464 return (com.google.ortools.sat.ListOfVariablesProto) constraint_;
7465 }
7466 return com.google.ortools.sat.ListOfVariablesProto.getDefaultInstance();
7467 }
7468 }
7477 private com.google.protobuf.SingleFieldBuilderV3<
7478 com.google.ortools.sat.ListOfVariablesProto, com.google.ortools.sat.ListOfVariablesProto.Builder, com.google.ortools.sat.ListOfVariablesProtoOrBuilder>
7479 getDummyConstraintFieldBuilder() {
7480 if (dummyConstraintBuilder_ == null) {
7481 if (!(constraintCase_ == 30)) {
7482 constraint_ = com.google.ortools.sat.ListOfVariablesProto.getDefaultInstance();
7483 }
7484 dummyConstraintBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
7485 com.google.ortools.sat.ListOfVariablesProto, com.google.ortools.sat.ListOfVariablesProto.Builder, com.google.ortools.sat.ListOfVariablesProtoOrBuilder>(
7486 (com.google.ortools.sat.ListOfVariablesProto) constraint_,
7487 getParentForChildren(),
7488 isClean());
7489 constraint_ = null;
7490 }
7491 constraintCase_ = 30;
7492 onChanged();
7493 return dummyConstraintBuilder_;
7494 }
7495 @java.lang.Override
7497 final com.google.protobuf.UnknownFieldSet unknownFields) {
7498 return super.setUnknownFields(unknownFields);
7499 }
7500
7501 @java.lang.Override
7503 final com.google.protobuf.UnknownFieldSet unknownFields) {
7504 return super.mergeUnknownFields(unknownFields);
7505 }
7506
7507
7508 // @@protoc_insertion_point(builder_scope:operations_research.sat.ConstraintProto)
7509 }
7510
7511 // @@protoc_insertion_point(class_scope:operations_research.sat.ConstraintProto)
7512 private static final com.google.ortools.sat.ConstraintProto DEFAULT_INSTANCE;
7513 static {
7514 DEFAULT_INSTANCE = new com.google.ortools.sat.ConstraintProto();
7515 }
7516
7518 return DEFAULT_INSTANCE;
7519 }
7520
7521 private static final com.google.protobuf.Parser<ConstraintProto>
7522 PARSER = new com.google.protobuf.AbstractParser<ConstraintProto>() {
7523 @java.lang.Override
7524 public ConstraintProto parsePartialFrom(
7525 com.google.protobuf.CodedInputStream input,
7526 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7527 throws com.google.protobuf.InvalidProtocolBufferException {
7528 Builder builder = newBuilder();
7529 try {
7530 builder.mergeFrom(input, extensionRegistry);
7531 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
7532 throw e.setUnfinishedMessage(builder.buildPartial());
7533 } catch (com.google.protobuf.UninitializedMessageException e) {
7534 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
7535 } catch (java.io.IOException e) {
7536 throw new com.google.protobuf.InvalidProtocolBufferException(e)
7537 .setUnfinishedMessage(builder.buildPartial());
7538 }
7539 return builder.buildPartial();
7540 }
7541 };
7542
7543 public static com.google.protobuf.Parser<ConstraintProto> parser() {
7544 return PARSER;
7545 }
7546
7547 @java.lang.Override
7548 public com.google.protobuf.Parser<ConstraintProto> getParserForType() {
7549 return PARSER;
7550 }
7551
7552 @java.lang.Override
7554 return DEFAULT_INSTANCE;
7555 }
7556
7557}
7558
boolean equals(final java.lang.Object obj)
Builder setNoOverlap2D(com.google.ortools.sat.NoOverlap2DConstraintProto.Builder builderForValue)
com.google.ortools.sat.ReservoirConstraintProto.Builder getReservoirBuilder()
com.google.ortools.sat.InverseConstraintProtoOrBuilder getInverseOrBuilder()
com.google.ortools.sat.BoolArgumentProtoOrBuilder getExactlyOneOrBuilder()
Builder setIntDiv(com.google.ortools.sat.LinearArgumentProto value)
Builder setRoutes(com.google.ortools.sat.RoutesConstraintProto.Builder builderForValue)
final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
Builder mergeFrom(com.google.ortools.sat.ConstraintProto other)
Builder setLinear(com.google.ortools.sat.LinearConstraintProto value)
com.google.ortools.sat.ReservoirConstraintProto getReservoir()
Builder setAutomaton(com.google.ortools.sat.AutomatonConstraintProto value)
Builder setExactlyOne(com.google.ortools.sat.BoolArgumentProto.Builder builderForValue)
Builder mergeRoutes(com.google.ortools.sat.RoutesConstraintProto value)
Builder setTable(com.google.ortools.sat.TableConstraintProto value)
Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Builder mergeLinear(com.google.ortools.sat.LinearConstraintProto value)
Builder setReservoir(com.google.ortools.sat.ReservoirConstraintProto.Builder builderForValue)
com.google.protobuf.ByteString getNameBytes()
com.google.ortools.sat.ElementConstraintProtoOrBuilder getElementOrBuilder()
com.google.ortools.sat.LinearArgumentProto.Builder getIntModBuilder()
com.google.ortools.sat.LinearArgumentProto getIntProd()
com.google.ortools.sat.NoOverlap2DConstraintProto.Builder getNoOverlap2DBuilder()
com.google.ortools.sat.InverseConstraintProto.Builder getInverseBuilder()
Builder setBoolXor(com.google.ortools.sat.BoolArgumentProto value)
Builder setIntProd(com.google.ortools.sat.LinearArgumentProto.Builder builderForValue)
com.google.ortools.sat.LinearConstraintProtoOrBuilder getLinearOrBuilder()
com.google.ortools.sat.LinearConstraintProto getLinear()
com.google.ortools.sat.BoolArgumentProto getAtMostOne()
com.google.ortools.sat.LinearArgumentProto.Builder getIntDivBuilder()
Builder setBoolXor(com.google.ortools.sat.BoolArgumentProto.Builder builderForValue)
Builder setLinear(com.google.ortools.sat.LinearConstraintProto.Builder builderForValue)
Builder mergeBoolXor(com.google.ortools.sat.BoolArgumentProto value)
Builder mergeLinMax(com.google.ortools.sat.LinearArgumentProto value)
Builder setInverse(com.google.ortools.sat.InverseConstraintProto value)
com.google.ortools.sat.LinearConstraintProto.Builder getLinearBuilder()
com.google.ortools.sat.LinearArgumentProto.Builder getIntProdBuilder()
Builder setIntMod(com.google.ortools.sat.LinearArgumentProto value)
com.google.ortools.sat.CumulativeConstraintProtoOrBuilder getCumulativeOrBuilder()
com.google.ortools.sat.CumulativeConstraintProto.Builder getCumulativeBuilder()
com.google.ortools.sat.BoolArgumentProto.Builder getAtMostOneBuilder()
Builder setExactlyOne(com.google.ortools.sat.BoolArgumentProto value)
com.google.ortools.sat.LinearArgumentProtoOrBuilder getIntDivOrBuilder()
com.google.ortools.sat.IntervalConstraintProto.Builder getIntervalBuilder()
com.google.ortools.sat.NoOverlapConstraintProtoOrBuilder getNoOverlapOrBuilder()
com.google.ortools.sat.IntervalConstraintProtoOrBuilder getIntervalOrBuilder()
Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.sat.CircuitConstraintProto getCircuit()
com.google.ortools.sat.LinearArgumentProto.Builder getLinMaxBuilder()
Builder addAllEnforcementLiteral(java.lang.Iterable<? extends java.lang.Integer > values)
com.google.ortools.sat.CumulativeConstraintProto getCumulative()
com.google.ortools.sat.BoolArgumentProto getBoolOr()
com.google.ortools.sat.AutomatonConstraintProtoOrBuilder getAutomatonOrBuilder()
com.google.ortools.sat.BoolArgumentProto.Builder getBoolAndBuilder()
Builder mergeCumulative(com.google.ortools.sat.CumulativeConstraintProto value)
com.google.ortools.sat.ConstraintProto build()
final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
Builder setReservoir(com.google.ortools.sat.ReservoirConstraintProto value)
com.google.ortools.sat.BoolArgumentProtoOrBuilder getAtMostOneOrBuilder()
Builder setCircuit(com.google.ortools.sat.CircuitConstraintProto.Builder builderForValue)
java.util.List< java.lang.Integer > getEnforcementLiteralList()
com.google.ortools.sat.IntervalConstraintProto getInterval()
com.google.ortools.sat.RoutesConstraintProto getRoutes()
com.google.ortools.sat.BoolArgumentProto getExactlyOne()
Builder mergeNoOverlap(com.google.ortools.sat.NoOverlapConstraintProto value)
com.google.ortools.sat.AllDifferentConstraintProto getAllDiff()
Builder setEnforcementLiteral(int index, int value)
com.google.ortools.sat.BoolArgumentProto getBoolAnd()
Builder mergeCircuit(com.google.ortools.sat.CircuitConstraintProto value)
Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Builder mergeAtMostOne(com.google.ortools.sat.BoolArgumentProto value)
Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
com.google.ortools.sat.ElementConstraintProto getElement()
Builder setNoOverlap(com.google.ortools.sat.NoOverlapConstraintProto value)
com.google.ortools.sat.ConstraintProto buildPartial()
Builder mergeIntDiv(com.google.ortools.sat.LinearArgumentProto value)
Builder mergeElement(com.google.ortools.sat.ElementConstraintProto value)
Builder setDummyConstraint(com.google.ortools.sat.ListOfVariablesProto.Builder builderForValue)
Builder mergeInverse(com.google.ortools.sat.InverseConstraintProto value)
Builder setAllDiff(com.google.ortools.sat.AllDifferentConstraintProto.Builder builderForValue)
com.google.ortools.sat.LinearArgumentProtoOrBuilder getIntProdOrBuilder()
Builder setAtMostOne(com.google.ortools.sat.BoolArgumentProto.Builder builderForValue)
Builder setIntDiv(com.google.ortools.sat.LinearArgumentProto.Builder builderForValue)
Builder setInterval(com.google.ortools.sat.IntervalConstraintProto.Builder builderForValue)
Builder setLinMax(com.google.ortools.sat.LinearArgumentProto value)
com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolOrOrBuilder()
Builder mergeFrom(com.google.protobuf.Message other)
Builder setRoutes(com.google.ortools.sat.RoutesConstraintProto value)
Builder setTable(com.google.ortools.sat.TableConstraintProto.Builder builderForValue)
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Builder setAllDiff(com.google.ortools.sat.AllDifferentConstraintProto value)
Builder setCumulative(com.google.ortools.sat.CumulativeConstraintProto.Builder builderForValue)
com.google.ortools.sat.InverseConstraintProto getInverse()
Builder setIntMod(com.google.ortools.sat.LinearArgumentProto.Builder builderForValue)
com.google.ortools.sat.LinearArgumentProto getIntMod()
Builder setLinMax(com.google.ortools.sat.LinearArgumentProto.Builder builderForValue)
Builder setBoolAnd(com.google.ortools.sat.BoolArgumentProto value)
Builder mergeNoOverlap2D(com.google.ortools.sat.NoOverlap2DConstraintProto value)
Builder setAutomaton(com.google.ortools.sat.AutomatonConstraintProto.Builder builderForValue)
Builder setBoolAnd(com.google.ortools.sat.BoolArgumentProto.Builder builderForValue)
Builder setBoolOr(com.google.ortools.sat.BoolArgumentProto value)
Builder mergeDummyConstraint(com.google.ortools.sat.ListOfVariablesProto value)
Builder mergeIntProd(com.google.ortools.sat.LinearArgumentProto value)
com.google.ortools.sat.LinearArgumentProtoOrBuilder getIntModOrBuilder()
Builder mergeIntMod(com.google.ortools.sat.LinearArgumentProto value)
com.google.ortools.sat.BoolArgumentProto.Builder getExactlyOneBuilder()
com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolAndOrBuilder()
com.google.ortools.sat.TableConstraintProto getTable()
com.google.ortools.sat.CircuitConstraintProto.Builder getCircuitBuilder()
Builder setCircuit(com.google.ortools.sat.CircuitConstraintProto value)
com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolXorOrBuilder()
com.google.ortools.sat.BoolArgumentProto.Builder getBoolOrBuilder()
com.google.ortools.sat.LinearArgumentProtoOrBuilder getLinMaxOrBuilder()
Builder setNoOverlap2D(com.google.ortools.sat.NoOverlap2DConstraintProto value)
com.google.ortools.sat.ConstraintProto getDefaultInstanceForType()
Builder setAtMostOne(com.google.ortools.sat.BoolArgumentProto value)
Builder mergeExactlyOne(com.google.ortools.sat.BoolArgumentProto value)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
com.google.ortools.sat.LinearArgumentProto getIntDiv()
Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
com.google.ortools.sat.AllDifferentConstraintProto.Builder getAllDiffBuilder()
Builder mergeTable(com.google.ortools.sat.TableConstraintProto value)
Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
com.google.ortools.sat.BoolArgumentProto getBoolXor()
com.google.ortools.sat.AllDifferentConstraintProtoOrBuilder getAllDiffOrBuilder()
com.google.ortools.sat.RoutesConstraintProtoOrBuilder getRoutesOrBuilder()
Builder setDummyConstraint(com.google.ortools.sat.ListOfVariablesProto value)
com.google.ortools.sat.AutomatonConstraintProto getAutomaton()
com.google.ortools.sat.LinearArgumentProto getLinMax()
Builder setNameBytes(com.google.protobuf.ByteString value)
Builder setInterval(com.google.ortools.sat.IntervalConstraintProto value)
Builder setElement(com.google.ortools.sat.ElementConstraintProto value)
com.google.ortools.sat.BoolArgumentProto.Builder getBoolXorBuilder()
com.google.ortools.sat.NoOverlapConstraintProto.Builder getNoOverlapBuilder()
com.google.ortools.sat.NoOverlap2DConstraintProtoOrBuilder getNoOverlap2DOrBuilder()
com.google.ortools.sat.RoutesConstraintProto.Builder getRoutesBuilder()
Builder mergeAutomaton(com.google.ortools.sat.AutomatonConstraintProto value)
com.google.ortools.sat.ElementConstraintProto.Builder getElementBuilder()
Builder setIntProd(com.google.ortools.sat.LinearArgumentProto value)
com.google.ortools.sat.NoOverlap2DConstraintProto getNoOverlap2D()
com.google.ortools.sat.TableConstraintProtoOrBuilder getTableOrBuilder()
Builder setCumulative(com.google.ortools.sat.CumulativeConstraintProto value)
Builder mergeReservoir(com.google.ortools.sat.ReservoirConstraintProto value)
com.google.ortools.sat.AutomatonConstraintProto.Builder getAutomatonBuilder()
Builder setInverse(com.google.ortools.sat.InverseConstraintProto.Builder builderForValue)
com.google.ortools.sat.ListOfVariablesProto getDummyConstraint()
Builder setNoOverlap(com.google.ortools.sat.NoOverlapConstraintProto.Builder builderForValue)
com.google.ortools.sat.ListOfVariablesProto.Builder getDummyConstraintBuilder()
com.google.ortools.sat.TableConstraintProto.Builder getTableBuilder()
Builder mergeAllDiff(com.google.ortools.sat.AllDifferentConstraintProto value)
Builder setElement(com.google.ortools.sat.ElementConstraintProto.Builder builderForValue)
Builder setBoolOr(com.google.ortools.sat.BoolArgumentProto.Builder builderForValue)
Builder mergeInterval(com.google.ortools.sat.IntervalConstraintProto value)
Builder mergeBoolOr(com.google.ortools.sat.BoolArgumentProto value)
Builder mergeBoolAnd(com.google.ortools.sat.BoolArgumentProto value)
com.google.ortools.sat.NoOverlapConstraintProto getNoOverlap()
com.google.ortools.sat.CircuitConstraintProtoOrBuilder getCircuitOrBuilder()
com.google.ortools.sat.ReservoirConstraintProtoOrBuilder getReservoirOrBuilder()
com.google.ortools.sat.ListOfVariablesProtoOrBuilder getDummyConstraintOrBuilder()
com.google.ortools.sat.ReservoirConstraintProto getReservoir()
com.google.ortools.sat.InverseConstraintProto getInverse()
static com.google.ortools.sat.ConstraintProto parseDelimitedFrom(java.io.InputStream input)
com.google.protobuf.Parser< ConstraintProto > getParserForType()
com.google.ortools.sat.LinearArgumentProtoOrBuilder getIntProdOrBuilder()
com.google.ortools.sat.AutomatonConstraintProto getAutomaton()
com.google.ortools.sat.CumulativeConstraintProtoOrBuilder getCumulativeOrBuilder()
static com.google.ortools.sat.ConstraintProto parseFrom(com.google.protobuf.CodedInputStream input)
static com.google.ortools.sat.ConstraintProto parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.sat.ConstraintProto parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.sat.CumulativeConstraintProto getCumulative()
com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolOrOrBuilder()
com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolAndOrBuilder()
java.lang.Object newInstance(UnusedPrivateParameter unused)
com.google.ortools.sat.BoolArgumentProto getExactlyOne()
com.google.ortools.sat.BoolArgumentProto getBoolOr()
com.google.ortools.sat.LinearConstraintProto getLinear()
com.google.ortools.sat.AutomatonConstraintProtoOrBuilder getAutomatonOrBuilder()
static com.google.ortools.sat.ConstraintProto getDefaultInstance()
com.google.ortools.sat.BoolArgumentProtoOrBuilder getExactlyOneOrBuilder()
static com.google.ortools.sat.ConstraintProto parseFrom(byte[] data)
com.google.ortools.sat.NoOverlapConstraintProto getNoOverlap()
com.google.ortools.sat.TableConstraintProto getTable()
com.google.ortools.sat.LinearConstraintProtoOrBuilder getLinearOrBuilder()
com.google.ortools.sat.AllDifferentConstraintProtoOrBuilder getAllDiffOrBuilder()
com.google.ortools.sat.LinearArgumentProto getIntMod()
Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
com.google.ortools.sat.RoutesConstraintProtoOrBuilder getRoutesOrBuilder()
com.google.ortools.sat.BoolArgumentProtoOrBuilder getAtMostOneOrBuilder()
java.util.List< java.lang.Integer > getEnforcementLiteralList()
com.google.ortools.sat.BoolArgumentProto getBoolXor()
com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolXorOrBuilder()
com.google.ortools.sat.InverseConstraintProtoOrBuilder getInverseOrBuilder()
static com.google.ortools.sat.ConstraintProto parseFrom(java.nio.ByteBuffer data)
boolean equals(final java.lang.Object obj)
static com.google.ortools.sat.ConstraintProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.sat.LinearArgumentProtoOrBuilder getIntDivOrBuilder()
com.google.ortools.sat.NoOverlapConstraintProtoOrBuilder getNoOverlapOrBuilder()
com.google.ortools.sat.LinearArgumentProtoOrBuilder getIntModOrBuilder()
com.google.ortools.sat.IntervalConstraintProto getInterval()
com.google.ortools.sat.AllDifferentConstraintProto getAllDiff()
static com.google.ortools.sat.ConstraintProto parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
static Builder newBuilder(com.google.ortools.sat.ConstraintProto prototype)
com.google.ortools.sat.CircuitConstraintProto getCircuit()
static com.google.protobuf.Parser< ConstraintProto > parser()
com.google.ortools.sat.NoOverlap2DConstraintProto getNoOverlap2D()
com.google.ortools.sat.CircuitConstraintProtoOrBuilder getCircuitOrBuilder()
com.google.ortools.sat.TableConstraintProtoOrBuilder getTableOrBuilder()
com.google.ortools.sat.NoOverlap2DConstraintProtoOrBuilder getNoOverlap2DOrBuilder()
com.google.ortools.sat.IntervalConstraintProtoOrBuilder getIntervalOrBuilder()
static com.google.ortools.sat.ConstraintProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.sat.ElementConstraintProtoOrBuilder getElementOrBuilder()
static com.google.ortools.sat.ConstraintProto parseFrom(com.google.protobuf.ByteString data)
com.google.ortools.sat.ListOfVariablesProtoOrBuilder getDummyConstraintOrBuilder()
static com.google.ortools.sat.ConstraintProto parseFrom(java.io.InputStream input)
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
com.google.ortools.sat.BoolArgumentProto getBoolAnd()
com.google.ortools.sat.RoutesConstraintProto getRoutes()
com.google.ortools.sat.ConstraintProto getDefaultInstanceForType()
com.google.ortools.sat.LinearArgumentProto getLinMax()
com.google.ortools.sat.LinearArgumentProto getIntProd()
com.google.ortools.sat.BoolArgumentProto getAtMostOne()
com.google.ortools.sat.LinearArgumentProtoOrBuilder getLinMaxOrBuilder()
com.google.protobuf.ByteString getNameBytes()
static com.google.ortools.sat.ConstraintProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.sat.ElementConstraintProto getElement()
com.google.ortools.sat.LinearArgumentProto getIntDiv()
void writeTo(com.google.protobuf.CodedOutputStream output)
com.google.ortools.sat.ReservoirConstraintProtoOrBuilder getReservoirOrBuilder()
com.google.ortools.sat.ListOfVariablesProto getDummyConstraint()
boolean equals(final java.lang.Object obj)
boolean equals(final java.lang.Object obj)
boolean equals(final java.lang.Object obj)