Google OR-Tools v9.11
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: 4.26.1
5package com.google.ortools.sat;
6
14public final class ConstraintProto extends
15 com.google.protobuf.GeneratedMessage implements
16 // @@protoc_insertion_point(message_implements:operations_research.sat.ConstraintProto)
18private static final long serialVersionUID = 0L;
19 static {
20 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
21 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
22 /* major= */ 4,
23 /* minor= */ 26,
24 /* patch= */ 1,
25 /* suffix= */ "",
26 ConstraintProto.class.getName());
27 }
28 // Use ConstraintProto.newBuilder() to construct.
29 private ConstraintProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
30 super(builder);
31 }
32 private ConstraintProto() {
33 name_ = "";
34 enforcementLiteral_ = emptyIntList();
35 }
36
37 public static final com.google.protobuf.Descriptors.Descriptor
39 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_descriptor;
40 }
41
42 @java.lang.Override
43 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
45 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_fieldAccessorTable
46 .ensureFieldAccessorsInitialized(
47 com.google.ortools.sat.ConstraintProto.class, com.google.ortools.sat.ConstraintProto.Builder.class);
48 }
49
50 private int constraintCase_ = 0;
51 @SuppressWarnings("serial")
52 private java.lang.Object constraint_;
53 public enum ConstraintCase
54 implements com.google.protobuf.Internal.EnumLite,
55 com.google.protobuf.AbstractMessage.InternalOneOfEnum {
65 LINEAR(12),
69 ROUTES(23),
70 TABLE(16),
80 private final int value;
81 private ConstraintCase(int value) {
82 this.value = value;
83 }
89 @java.lang.Deprecated
90 public static ConstraintCase valueOf(int value) {
91 return forNumber(value);
92 }
93
94 public static ConstraintCase forNumber(int value) {
95 switch (value) {
96 case 3: return BOOL_OR;
97 case 4: return BOOL_AND;
98 case 26: return AT_MOST_ONE;
99 case 29: return EXACTLY_ONE;
100 case 5: return BOOL_XOR;
101 case 7: return INT_DIV;
102 case 8: return INT_MOD;
103 case 11: return INT_PROD;
104 case 27: return LIN_MAX;
105 case 12: return LINEAR;
106 case 13: return ALL_DIFF;
107 case 14: return ELEMENT;
108 case 15: return CIRCUIT;
109 case 23: return ROUTES;
110 case 16: return TABLE;
111 case 17: return AUTOMATON;
112 case 18: return INVERSE;
113 case 24: return RESERVOIR;
114 case 19: return INTERVAL;
115 case 20: return NO_OVERLAP;
116 case 21: return NO_OVERLAP_2D;
117 case 22: return CUMULATIVE;
118 case 30: return DUMMY_CONSTRAINT;
119 case 0: return CONSTRAINT_NOT_SET;
120 default: return null;
121 }
122 }
123 public int getNumber() {
124 return this.value;
125 }
126 };
127
128 public ConstraintCase
131 constraintCase_);
132 }
133
134 public static final int NAME_FIELD_NUMBER = 1;
135 @SuppressWarnings("serial")
136 private volatile java.lang.Object name_ = "";
145 @java.lang.Override
146 public java.lang.String getName() {
147 java.lang.Object ref = name_;
148 if (ref instanceof java.lang.String) {
149 return (java.lang.String) ref;
150 } else {
151 com.google.protobuf.ByteString bs =
152 (com.google.protobuf.ByteString) ref;
153 java.lang.String s = bs.toStringUtf8();
154 name_ = s;
155 return s;
156 }
157 }
166 @java.lang.Override
167 public com.google.protobuf.ByteString
169 java.lang.Object ref = name_;
170 if (ref instanceof java.lang.String) {
171 com.google.protobuf.ByteString b =
172 com.google.protobuf.ByteString.copyFromUtf8(
173 (java.lang.String) ref);
174 name_ = b;
175 return b;
176 } else {
177 return (com.google.protobuf.ByteString) ref;
178 }
179 }
180
181 public static final int ENFORCEMENT_LITERAL_FIELD_NUMBER = 2;
182 @SuppressWarnings("serial")
183 private com.google.protobuf.Internal.IntList enforcementLiteral_ =
184 emptyIntList();
206 @java.lang.Override
207 public java.util.List<java.lang.Integer>
209 return enforcementLiteral_;
210 }
233 return enforcementLiteral_.size();
234 }
257 public int getEnforcementLiteral(int index) {
258 return enforcementLiteral_.getInt(index);
259 }
260 private int enforcementLiteralMemoizedSerializedSize = -1;
261
262 public static final int BOOL_OR_FIELD_NUMBER = 3;
271 @java.lang.Override
272 public boolean hasBoolOr() {
273 return constraintCase_ == 3;
274 }
283 @java.lang.Override
285 if (constraintCase_ == 3) {
286 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
287 }
288 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
289 }
297 @java.lang.Override
299 if (constraintCase_ == 3) {
300 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
301 }
302 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
303 }
304
305 public static final int BOOL_AND_FIELD_NUMBER = 4;
318 @java.lang.Override
319 public boolean hasBoolAnd() {
320 return constraintCase_ == 4;
321 }
334 @java.lang.Override
336 if (constraintCase_ == 4) {
337 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
338 }
339 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
340 }
352 @java.lang.Override
354 if (constraintCase_ == 4) {
355 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
356 }
357 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
358 }
359
360 public static final int AT_MOST_ONE_FIELD_NUMBER = 26;
379 @java.lang.Override
380 public boolean hasAtMostOne() {
381 return constraintCase_ == 26;
382 }
401 @java.lang.Override
403 if (constraintCase_ == 26) {
404 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
405 }
406 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
407 }
425 @java.lang.Override
427 if (constraintCase_ == 26) {
428 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
429 }
430 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
431 }
432
433 public static final int EXACTLY_ONE_FIELD_NUMBER = 29;
453 @java.lang.Override
454 public boolean hasExactlyOne() {
455 return constraintCase_ == 29;
456 }
476 @java.lang.Override
478 if (constraintCase_ == 29) {
479 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
480 }
481 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
482 }
501 @java.lang.Override
503 if (constraintCase_ == 29) {
504 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
505 }
506 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
507 }
508
509 public static final int BOOL_XOR_FIELD_NUMBER = 5;
518 @java.lang.Override
519 public boolean hasBoolXor() {
520 return constraintCase_ == 5;
521 }
530 @java.lang.Override
532 if (constraintCase_ == 5) {
533 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
534 }
535 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
536 }
544 @java.lang.Override
546 if (constraintCase_ == 5) {
547 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
548 }
549 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
550 }
551
552 public static final int INT_DIV_FIELD_NUMBER = 7;
567 @java.lang.Override
568 public boolean hasIntDiv() {
569 return constraintCase_ == 7;
570 }
585 @java.lang.Override
587 if (constraintCase_ == 7) {
588 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
589 }
590 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
591 }
605 @java.lang.Override
607 if (constraintCase_ == 7) {
608 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
609 }
610 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
611 }
612
613 public static final int INT_MOD_FIELD_NUMBER = 8;
624 @java.lang.Override
625 public boolean hasIntMod() {
626 return constraintCase_ == 8;
627 }
638 @java.lang.Override
640 if (constraintCase_ == 8) {
641 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
642 }
643 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
644 }
654 @java.lang.Override
656 if (constraintCase_ == 8) {
657 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
658 }
659 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
660 }
661
662 public static final int INT_PROD_FIELD_NUMBER = 11;
678 @java.lang.Override
679 public boolean hasIntProd() {
680 return constraintCase_ == 11;
681 }
697 @java.lang.Override
699 if (constraintCase_ == 11) {
700 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
701 }
702 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
703 }
718 @java.lang.Override
720 if (constraintCase_ == 11) {
721 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
722 }
723 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
724 }
725
726 public static final int LIN_MAX_FIELD_NUMBER = 27;
737 @java.lang.Override
738 public boolean hasLinMax() {
739 return constraintCase_ == 27;
740 }
751 @java.lang.Override
753 if (constraintCase_ == 27) {
754 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
755 }
756 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
757 }
767 @java.lang.Override
769 if (constraintCase_ == 27) {
770 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
771 }
772 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
773 }
774
775 public static final int LINEAR_FIELD_NUMBER = 12;
785 @java.lang.Override
786 public boolean hasLinear() {
787 return constraintCase_ == 12;
788 }
798 @java.lang.Override
800 if (constraintCase_ == 12) {
801 return (com.google.ortools.sat.LinearConstraintProto) constraint_;
802 }
803 return com.google.ortools.sat.LinearConstraintProto.getDefaultInstance();
804 }
813 @java.lang.Override
815 if (constraintCase_ == 12) {
816 return (com.google.ortools.sat.LinearConstraintProto) constraint_;
817 }
818 return com.google.ortools.sat.LinearConstraintProto.getDefaultInstance();
819 }
820
821 public static final int ALL_DIFF_FIELD_NUMBER = 13;
830 @java.lang.Override
831 public boolean hasAllDiff() {
832 return constraintCase_ == 13;
833 }
842 @java.lang.Override
844 if (constraintCase_ == 13) {
845 return (com.google.ortools.sat.AllDifferentConstraintProto) constraint_;
846 }
847 return com.google.ortools.sat.AllDifferentConstraintProto.getDefaultInstance();
848 }
856 @java.lang.Override
858 if (constraintCase_ == 13) {
859 return (com.google.ortools.sat.AllDifferentConstraintProto) constraint_;
860 }
861 return com.google.ortools.sat.AllDifferentConstraintProto.getDefaultInstance();
862 }
863
864 public static final int ELEMENT_FIELD_NUMBER = 14;
874 @java.lang.Override
875 public boolean hasElement() {
876 return constraintCase_ == 14;
877 }
887 @java.lang.Override
889 if (constraintCase_ == 14) {
890 return (com.google.ortools.sat.ElementConstraintProto) constraint_;
891 }
892 return com.google.ortools.sat.ElementConstraintProto.getDefaultInstance();
893 }
902 @java.lang.Override
904 if (constraintCase_ == 14) {
905 return (com.google.ortools.sat.ElementConstraintProto) constraint_;
906 }
907 return com.google.ortools.sat.ElementConstraintProto.getDefaultInstance();
908 }
909
910 public static final int CIRCUIT_FIELD_NUMBER = 15;
920 @java.lang.Override
921 public boolean hasCircuit() {
922 return constraintCase_ == 15;
923 }
933 @java.lang.Override
935 if (constraintCase_ == 15) {
936 return (com.google.ortools.sat.CircuitConstraintProto) constraint_;
937 }
938 return com.google.ortools.sat.CircuitConstraintProto.getDefaultInstance();
939 }
948 @java.lang.Override
950 if (constraintCase_ == 15) {
951 return (com.google.ortools.sat.CircuitConstraintProto) constraint_;
952 }
953 return com.google.ortools.sat.CircuitConstraintProto.getDefaultInstance();
954 }
955
956 public static final int ROUTES_FIELD_NUMBER = 23;
965 @java.lang.Override
966 public boolean hasRoutes() {
967 return constraintCase_ == 23;
968 }
977 @java.lang.Override
979 if (constraintCase_ == 23) {
980 return (com.google.ortools.sat.RoutesConstraintProto) constraint_;
981 }
982 return com.google.ortools.sat.RoutesConstraintProto.getDefaultInstance();
983 }
991 @java.lang.Override
993 if (constraintCase_ == 23) {
994 return (com.google.ortools.sat.RoutesConstraintProto) constraint_;
995 }
996 return com.google.ortools.sat.RoutesConstraintProto.getDefaultInstance();
997 }
998
999 public static final int TABLE_FIELD_NUMBER = 16;
1009 @java.lang.Override
1010 public boolean hasTable() {
1011 return constraintCase_ == 16;
1012 }
1022 @java.lang.Override
1024 if (constraintCase_ == 16) {
1025 return (com.google.ortools.sat.TableConstraintProto) constraint_;
1026 }
1027 return com.google.ortools.sat.TableConstraintProto.getDefaultInstance();
1028 }
1037 @java.lang.Override
1039 if (constraintCase_ == 16) {
1040 return (com.google.ortools.sat.TableConstraintProto) constraint_;
1041 }
1042 return com.google.ortools.sat.TableConstraintProto.getDefaultInstance();
1043 }
1044
1045 public static final int AUTOMATON_FIELD_NUMBER = 17;
1055 @java.lang.Override
1056 public boolean hasAutomaton() {
1057 return constraintCase_ == 17;
1058 }
1068 @java.lang.Override
1070 if (constraintCase_ == 17) {
1071 return (com.google.ortools.sat.AutomatonConstraintProto) constraint_;
1072 }
1073 return com.google.ortools.sat.AutomatonConstraintProto.getDefaultInstance();
1074 }
1083 @java.lang.Override
1085 if (constraintCase_ == 17) {
1086 return (com.google.ortools.sat.AutomatonConstraintProto) constraint_;
1087 }
1088 return com.google.ortools.sat.AutomatonConstraintProto.getDefaultInstance();
1089 }
1090
1091 public static final int INVERSE_FIELD_NUMBER = 18;
1101 @java.lang.Override
1102 public boolean hasInverse() {
1103 return constraintCase_ == 18;
1104 }
1114 @java.lang.Override
1116 if (constraintCase_ == 18) {
1117 return (com.google.ortools.sat.InverseConstraintProto) constraint_;
1118 }
1119 return com.google.ortools.sat.InverseConstraintProto.getDefaultInstance();
1120 }
1129 @java.lang.Override
1131 if (constraintCase_ == 18) {
1132 return (com.google.ortools.sat.InverseConstraintProto) constraint_;
1133 }
1134 return com.google.ortools.sat.InverseConstraintProto.getDefaultInstance();
1135 }
1136
1137 public static final int RESERVOIR_FIELD_NUMBER = 24;
1148 @java.lang.Override
1149 public boolean hasReservoir() {
1150 return constraintCase_ == 24;
1151 }
1162 @java.lang.Override
1164 if (constraintCase_ == 24) {
1165 return (com.google.ortools.sat.ReservoirConstraintProto) constraint_;
1166 }
1167 return com.google.ortools.sat.ReservoirConstraintProto.getDefaultInstance();
1168 }
1178 @java.lang.Override
1180 if (constraintCase_ == 24) {
1181 return (com.google.ortools.sat.ReservoirConstraintProto) constraint_;
1182 }
1183 return com.google.ortools.sat.ReservoirConstraintProto.getDefaultInstance();
1184 }
1185
1186 public static final int INTERVAL_FIELD_NUMBER = 19;
1196 @java.lang.Override
1197 public boolean hasInterval() {
1198 return constraintCase_ == 19;
1199 }
1209 @java.lang.Override
1211 if (constraintCase_ == 19) {
1212 return (com.google.ortools.sat.IntervalConstraintProto) constraint_;
1213 }
1214 return com.google.ortools.sat.IntervalConstraintProto.getDefaultInstance();
1215 }
1224 @java.lang.Override
1226 if (constraintCase_ == 19) {
1227 return (com.google.ortools.sat.IntervalConstraintProto) constraint_;
1228 }
1229 return com.google.ortools.sat.IntervalConstraintProto.getDefaultInstance();
1230 }
1231
1232 public static final int NO_OVERLAP_FIELD_NUMBER = 20;
1243 @java.lang.Override
1244 public boolean hasNoOverlap() {
1245 return constraintCase_ == 20;
1246 }
1257 @java.lang.Override
1259 if (constraintCase_ == 20) {
1260 return (com.google.ortools.sat.NoOverlapConstraintProto) constraint_;
1261 }
1262 return com.google.ortools.sat.NoOverlapConstraintProto.getDefaultInstance();
1263 }
1273 @java.lang.Override
1275 if (constraintCase_ == 20) {
1276 return (com.google.ortools.sat.NoOverlapConstraintProto) constraint_;
1277 }
1278 return com.google.ortools.sat.NoOverlapConstraintProto.getDefaultInstance();
1279 }
1280
1281 public static final int NO_OVERLAP_2D_FIELD_NUMBER = 21;
1290 @java.lang.Override
1291 public boolean hasNoOverlap2D() {
1292 return constraintCase_ == 21;
1293 }
1302 @java.lang.Override
1304 if (constraintCase_ == 21) {
1305 return (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_;
1306 }
1307 return com.google.ortools.sat.NoOverlap2DConstraintProto.getDefaultInstance();
1308 }
1316 @java.lang.Override
1318 if (constraintCase_ == 21) {
1319 return (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_;
1320 }
1321 return com.google.ortools.sat.NoOverlap2DConstraintProto.getDefaultInstance();
1322 }
1323
1324 public static final int CUMULATIVE_FIELD_NUMBER = 22;
1335 @java.lang.Override
1336 public boolean hasCumulative() {
1337 return constraintCase_ == 22;
1338 }
1349 @java.lang.Override
1351 if (constraintCase_ == 22) {
1352 return (com.google.ortools.sat.CumulativeConstraintProto) constraint_;
1353 }
1354 return com.google.ortools.sat.CumulativeConstraintProto.getDefaultInstance();
1355 }
1365 @java.lang.Override
1367 if (constraintCase_ == 22) {
1368 return (com.google.ortools.sat.CumulativeConstraintProto) constraint_;
1369 }
1370 return com.google.ortools.sat.CumulativeConstraintProto.getDefaultInstance();
1371 }
1372
1373 public static final int DUMMY_CONSTRAINT_FIELD_NUMBER = 30;
1383 @java.lang.Override
1384 public boolean hasDummyConstraint() {
1385 return constraintCase_ == 30;
1386 }
1396 @java.lang.Override
1398 if (constraintCase_ == 30) {
1399 return (com.google.ortools.sat.ListOfVariablesProto) constraint_;
1400 }
1401 return com.google.ortools.sat.ListOfVariablesProto.getDefaultInstance();
1402 }
1411 @java.lang.Override
1413 if (constraintCase_ == 30) {
1414 return (com.google.ortools.sat.ListOfVariablesProto) constraint_;
1415 }
1416 return com.google.ortools.sat.ListOfVariablesProto.getDefaultInstance();
1417 }
1418
1419 private byte memoizedIsInitialized = -1;
1420 @java.lang.Override
1421 public final boolean isInitialized() {
1422 byte isInitialized = memoizedIsInitialized;
1423 if (isInitialized == 1) return true;
1424 if (isInitialized == 0) return false;
1425
1426 memoizedIsInitialized = 1;
1427 return true;
1428 }
1429
1430 @java.lang.Override
1431 public void writeTo(com.google.protobuf.CodedOutputStream output)
1432 throws java.io.IOException {
1434 if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
1435 com.google.protobuf.GeneratedMessage.writeString(output, 1, name_);
1436 }
1437 if (getEnforcementLiteralList().size() > 0) {
1438 output.writeUInt32NoTag(18);
1439 output.writeUInt32NoTag(enforcementLiteralMemoizedSerializedSize);
1440 }
1441 for (int i = 0; i < enforcementLiteral_.size(); i++) {
1442 output.writeInt32NoTag(enforcementLiteral_.getInt(i));
1443 }
1444 if (constraintCase_ == 3) {
1445 output.writeMessage(3, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1446 }
1447 if (constraintCase_ == 4) {
1448 output.writeMessage(4, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1449 }
1450 if (constraintCase_ == 5) {
1451 output.writeMessage(5, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1452 }
1453 if (constraintCase_ == 7) {
1454 output.writeMessage(7, (com.google.ortools.sat.LinearArgumentProto) constraint_);
1455 }
1456 if (constraintCase_ == 8) {
1457 output.writeMessage(8, (com.google.ortools.sat.LinearArgumentProto) constraint_);
1458 }
1459 if (constraintCase_ == 11) {
1460 output.writeMessage(11, (com.google.ortools.sat.LinearArgumentProto) constraint_);
1461 }
1462 if (constraintCase_ == 12) {
1463 output.writeMessage(12, (com.google.ortools.sat.LinearConstraintProto) constraint_);
1464 }
1465 if (constraintCase_ == 13) {
1466 output.writeMessage(13, (com.google.ortools.sat.AllDifferentConstraintProto) constraint_);
1467 }
1468 if (constraintCase_ == 14) {
1469 output.writeMessage(14, (com.google.ortools.sat.ElementConstraintProto) constraint_);
1470 }
1471 if (constraintCase_ == 15) {
1472 output.writeMessage(15, (com.google.ortools.sat.CircuitConstraintProto) constraint_);
1473 }
1474 if (constraintCase_ == 16) {
1475 output.writeMessage(16, (com.google.ortools.sat.TableConstraintProto) constraint_);
1476 }
1477 if (constraintCase_ == 17) {
1478 output.writeMessage(17, (com.google.ortools.sat.AutomatonConstraintProto) constraint_);
1479 }
1480 if (constraintCase_ == 18) {
1481 output.writeMessage(18, (com.google.ortools.sat.InverseConstraintProto) constraint_);
1482 }
1483 if (constraintCase_ == 19) {
1484 output.writeMessage(19, (com.google.ortools.sat.IntervalConstraintProto) constraint_);
1485 }
1486 if (constraintCase_ == 20) {
1487 output.writeMessage(20, (com.google.ortools.sat.NoOverlapConstraintProto) constraint_);
1488 }
1489 if (constraintCase_ == 21) {
1490 output.writeMessage(21, (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_);
1491 }
1492 if (constraintCase_ == 22) {
1493 output.writeMessage(22, (com.google.ortools.sat.CumulativeConstraintProto) constraint_);
1494 }
1495 if (constraintCase_ == 23) {
1496 output.writeMessage(23, (com.google.ortools.sat.RoutesConstraintProto) constraint_);
1497 }
1498 if (constraintCase_ == 24) {
1499 output.writeMessage(24, (com.google.ortools.sat.ReservoirConstraintProto) constraint_);
1500 }
1501 if (constraintCase_ == 26) {
1502 output.writeMessage(26, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1503 }
1504 if (constraintCase_ == 27) {
1505 output.writeMessage(27, (com.google.ortools.sat.LinearArgumentProto) constraint_);
1506 }
1507 if (constraintCase_ == 29) {
1508 output.writeMessage(29, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1509 }
1510 if (constraintCase_ == 30) {
1511 output.writeMessage(30, (com.google.ortools.sat.ListOfVariablesProto) constraint_);
1512 }
1513 getUnknownFields().writeTo(output);
1514 }
1515
1516 @java.lang.Override
1517 public int getSerializedSize() {
1518 int size = memoizedSize;
1519 if (size != -1) return size;
1520
1521 size = 0;
1522 if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
1523 size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_);
1524 }
1525 {
1526 int dataSize = 0;
1527 for (int i = 0; i < enforcementLiteral_.size(); i++) {
1528 dataSize += com.google.protobuf.CodedOutputStream
1529 .computeInt32SizeNoTag(enforcementLiteral_.getInt(i));
1530 }
1531 size += dataSize;
1532 if (!getEnforcementLiteralList().isEmpty()) {
1533 size += 1;
1534 size += com.google.protobuf.CodedOutputStream
1535 .computeInt32SizeNoTag(dataSize);
1536 }
1537 enforcementLiteralMemoizedSerializedSize = dataSize;
1538 }
1539 if (constraintCase_ == 3) {
1540 size += com.google.protobuf.CodedOutputStream
1541 .computeMessageSize(3, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1542 }
1543 if (constraintCase_ == 4) {
1544 size += com.google.protobuf.CodedOutputStream
1545 .computeMessageSize(4, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1546 }
1547 if (constraintCase_ == 5) {
1548 size += com.google.protobuf.CodedOutputStream
1549 .computeMessageSize(5, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1550 }
1551 if (constraintCase_ == 7) {
1552 size += com.google.protobuf.CodedOutputStream
1553 .computeMessageSize(7, (com.google.ortools.sat.LinearArgumentProto) constraint_);
1554 }
1555 if (constraintCase_ == 8) {
1556 size += com.google.protobuf.CodedOutputStream
1557 .computeMessageSize(8, (com.google.ortools.sat.LinearArgumentProto) constraint_);
1558 }
1559 if (constraintCase_ == 11) {
1560 size += com.google.protobuf.CodedOutputStream
1561 .computeMessageSize(11, (com.google.ortools.sat.LinearArgumentProto) constraint_);
1562 }
1563 if (constraintCase_ == 12) {
1564 size += com.google.protobuf.CodedOutputStream
1565 .computeMessageSize(12, (com.google.ortools.sat.LinearConstraintProto) constraint_);
1566 }
1567 if (constraintCase_ == 13) {
1568 size += com.google.protobuf.CodedOutputStream
1569 .computeMessageSize(13, (com.google.ortools.sat.AllDifferentConstraintProto) constraint_);
1570 }
1571 if (constraintCase_ == 14) {
1572 size += com.google.protobuf.CodedOutputStream
1573 .computeMessageSize(14, (com.google.ortools.sat.ElementConstraintProto) constraint_);
1574 }
1575 if (constraintCase_ == 15) {
1576 size += com.google.protobuf.CodedOutputStream
1577 .computeMessageSize(15, (com.google.ortools.sat.CircuitConstraintProto) constraint_);
1578 }
1579 if (constraintCase_ == 16) {
1580 size += com.google.protobuf.CodedOutputStream
1581 .computeMessageSize(16, (com.google.ortools.sat.TableConstraintProto) constraint_);
1582 }
1583 if (constraintCase_ == 17) {
1584 size += com.google.protobuf.CodedOutputStream
1585 .computeMessageSize(17, (com.google.ortools.sat.AutomatonConstraintProto) constraint_);
1586 }
1587 if (constraintCase_ == 18) {
1588 size += com.google.protobuf.CodedOutputStream
1589 .computeMessageSize(18, (com.google.ortools.sat.InverseConstraintProto) constraint_);
1590 }
1591 if (constraintCase_ == 19) {
1592 size += com.google.protobuf.CodedOutputStream
1593 .computeMessageSize(19, (com.google.ortools.sat.IntervalConstraintProto) constraint_);
1594 }
1595 if (constraintCase_ == 20) {
1596 size += com.google.protobuf.CodedOutputStream
1597 .computeMessageSize(20, (com.google.ortools.sat.NoOverlapConstraintProto) constraint_);
1598 }
1599 if (constraintCase_ == 21) {
1600 size += com.google.protobuf.CodedOutputStream
1601 .computeMessageSize(21, (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_);
1602 }
1603 if (constraintCase_ == 22) {
1604 size += com.google.protobuf.CodedOutputStream
1605 .computeMessageSize(22, (com.google.ortools.sat.CumulativeConstraintProto) constraint_);
1606 }
1607 if (constraintCase_ == 23) {
1608 size += com.google.protobuf.CodedOutputStream
1609 .computeMessageSize(23, (com.google.ortools.sat.RoutesConstraintProto) constraint_);
1610 }
1611 if (constraintCase_ == 24) {
1612 size += com.google.protobuf.CodedOutputStream
1613 .computeMessageSize(24, (com.google.ortools.sat.ReservoirConstraintProto) constraint_);
1614 }
1615 if (constraintCase_ == 26) {
1616 size += com.google.protobuf.CodedOutputStream
1617 .computeMessageSize(26, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1618 }
1619 if (constraintCase_ == 27) {
1620 size += com.google.protobuf.CodedOutputStream
1621 .computeMessageSize(27, (com.google.ortools.sat.LinearArgumentProto) constraint_);
1622 }
1623 if (constraintCase_ == 29) {
1624 size += com.google.protobuf.CodedOutputStream
1625 .computeMessageSize(29, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1626 }
1627 if (constraintCase_ == 30) {
1628 size += com.google.protobuf.CodedOutputStream
1629 .computeMessageSize(30, (com.google.ortools.sat.ListOfVariablesProto) constraint_);
1630 }
1631 size += getUnknownFields().getSerializedSize();
1632 memoizedSize = size;
1633 return size;
1634 }
1635
1636 @java.lang.Override
1637 public boolean equals(final java.lang.Object obj) {
1638 if (obj == this) {
1639 return true;
1640 }
1641 if (!(obj instanceof com.google.ortools.sat.ConstraintProto)) {
1642 return super.equals(obj);
1643 }
1644 com.google.ortools.sat.ConstraintProto other = (com.google.ortools.sat.ConstraintProto) obj;
1645
1646 if (!getName()
1647 .equals(other.getName())) return false;
1649 .equals(other.getEnforcementLiteralList())) return false;
1650 if (!getConstraintCase().equals(other.getConstraintCase())) return false;
1651 switch (constraintCase_) {
1652 case 3:
1653 if (!getBoolOr()
1654 .equals(other.getBoolOr())) return false;
1655 break;
1656 case 4:
1657 if (!getBoolAnd()
1658 .equals(other.getBoolAnd())) return false;
1659 break;
1660 case 26:
1661 if (!getAtMostOne()
1662 .equals(other.getAtMostOne())) return false;
1663 break;
1664 case 29:
1665 if (!getExactlyOne()
1666 .equals(other.getExactlyOne())) return false;
1667 break;
1668 case 5:
1669 if (!getBoolXor()
1670 .equals(other.getBoolXor())) return false;
1671 break;
1672 case 7:
1673 if (!getIntDiv()
1674 .equals(other.getIntDiv())) return false;
1675 break;
1676 case 8:
1677 if (!getIntMod()
1678 .equals(other.getIntMod())) return false;
1679 break;
1680 case 11:
1681 if (!getIntProd()
1682 .equals(other.getIntProd())) return false;
1683 break;
1684 case 27:
1685 if (!getLinMax()
1686 .equals(other.getLinMax())) return false;
1687 break;
1688 case 12:
1689 if (!getLinear()
1690 .equals(other.getLinear())) return false;
1691 break;
1692 case 13:
1693 if (!getAllDiff()
1694 .equals(other.getAllDiff())) return false;
1695 break;
1696 case 14:
1697 if (!getElement()
1698 .equals(other.getElement())) return false;
1699 break;
1700 case 15:
1701 if (!getCircuit()
1702 .equals(other.getCircuit())) return false;
1703 break;
1704 case 23:
1705 if (!getRoutes()
1706 .equals(other.getRoutes())) return false;
1707 break;
1708 case 16:
1709 if (!getTable()
1710 .equals(other.getTable())) return false;
1711 break;
1712 case 17:
1713 if (!getAutomaton()
1714 .equals(other.getAutomaton())) return false;
1715 break;
1716 case 18:
1717 if (!getInverse()
1718 .equals(other.getInverse())) return false;
1719 break;
1720 case 24:
1721 if (!getReservoir()
1722 .equals(other.getReservoir())) return false;
1723 break;
1724 case 19:
1725 if (!getInterval()
1726 .equals(other.getInterval())) return false;
1727 break;
1728 case 20:
1729 if (!getNoOverlap()
1730 .equals(other.getNoOverlap())) return false;
1731 break;
1732 case 21:
1733 if (!getNoOverlap2D()
1734 .equals(other.getNoOverlap2D())) return false;
1735 break;
1736 case 22:
1737 if (!getCumulative()
1738 .equals(other.getCumulative())) return false;
1739 break;
1740 case 30:
1741 if (!getDummyConstraint()
1742 .equals(other.getDummyConstraint())) return false;
1743 break;
1744 case 0:
1745 default:
1746 }
1747 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
1748 return true;
1749 }
1750
1751 @java.lang.Override
1752 public int hashCode() {
1753 if (memoizedHashCode != 0) {
1754 return memoizedHashCode;
1755 }
1756 int hash = 41;
1757 hash = (19 * hash) + getDescriptor().hashCode();
1758 hash = (37 * hash) + NAME_FIELD_NUMBER;
1759 hash = (53 * hash) + getName().hashCode();
1760 if (getEnforcementLiteralCount() > 0) {
1761 hash = (37 * hash) + ENFORCEMENT_LITERAL_FIELD_NUMBER;
1762 hash = (53 * hash) + getEnforcementLiteralList().hashCode();
1763 }
1764 switch (constraintCase_) {
1765 case 3:
1766 hash = (37 * hash) + BOOL_OR_FIELD_NUMBER;
1767 hash = (53 * hash) + getBoolOr().hashCode();
1768 break;
1769 case 4:
1770 hash = (37 * hash) + BOOL_AND_FIELD_NUMBER;
1771 hash = (53 * hash) + getBoolAnd().hashCode();
1772 break;
1773 case 26:
1774 hash = (37 * hash) + AT_MOST_ONE_FIELD_NUMBER;
1775 hash = (53 * hash) + getAtMostOne().hashCode();
1776 break;
1777 case 29:
1778 hash = (37 * hash) + EXACTLY_ONE_FIELD_NUMBER;
1779 hash = (53 * hash) + getExactlyOne().hashCode();
1780 break;
1781 case 5:
1782 hash = (37 * hash) + BOOL_XOR_FIELD_NUMBER;
1783 hash = (53 * hash) + getBoolXor().hashCode();
1784 break;
1785 case 7:
1786 hash = (37 * hash) + INT_DIV_FIELD_NUMBER;
1787 hash = (53 * hash) + getIntDiv().hashCode();
1788 break;
1789 case 8:
1790 hash = (37 * hash) + INT_MOD_FIELD_NUMBER;
1791 hash = (53 * hash) + getIntMod().hashCode();
1792 break;
1793 case 11:
1794 hash = (37 * hash) + INT_PROD_FIELD_NUMBER;
1795 hash = (53 * hash) + getIntProd().hashCode();
1796 break;
1797 case 27:
1798 hash = (37 * hash) + LIN_MAX_FIELD_NUMBER;
1799 hash = (53 * hash) + getLinMax().hashCode();
1800 break;
1801 case 12:
1802 hash = (37 * hash) + LINEAR_FIELD_NUMBER;
1803 hash = (53 * hash) + getLinear().hashCode();
1804 break;
1805 case 13:
1806 hash = (37 * hash) + ALL_DIFF_FIELD_NUMBER;
1807 hash = (53 * hash) + getAllDiff().hashCode();
1808 break;
1809 case 14:
1810 hash = (37 * hash) + ELEMENT_FIELD_NUMBER;
1811 hash = (53 * hash) + getElement().hashCode();
1812 break;
1813 case 15:
1814 hash = (37 * hash) + CIRCUIT_FIELD_NUMBER;
1815 hash = (53 * hash) + getCircuit().hashCode();
1816 break;
1817 case 23:
1818 hash = (37 * hash) + ROUTES_FIELD_NUMBER;
1819 hash = (53 * hash) + getRoutes().hashCode();
1820 break;
1821 case 16:
1822 hash = (37 * hash) + TABLE_FIELD_NUMBER;
1823 hash = (53 * hash) + getTable().hashCode();
1824 break;
1825 case 17:
1826 hash = (37 * hash) + AUTOMATON_FIELD_NUMBER;
1827 hash = (53 * hash) + getAutomaton().hashCode();
1828 break;
1829 case 18:
1830 hash = (37 * hash) + INVERSE_FIELD_NUMBER;
1831 hash = (53 * hash) + getInverse().hashCode();
1832 break;
1833 case 24:
1834 hash = (37 * hash) + RESERVOIR_FIELD_NUMBER;
1835 hash = (53 * hash) + getReservoir().hashCode();
1836 break;
1837 case 19:
1838 hash = (37 * hash) + INTERVAL_FIELD_NUMBER;
1839 hash = (53 * hash) + getInterval().hashCode();
1840 break;
1841 case 20:
1842 hash = (37 * hash) + NO_OVERLAP_FIELD_NUMBER;
1843 hash = (53 * hash) + getNoOverlap().hashCode();
1844 break;
1845 case 21:
1846 hash = (37 * hash) + NO_OVERLAP_2D_FIELD_NUMBER;
1847 hash = (53 * hash) + getNoOverlap2D().hashCode();
1848 break;
1849 case 22:
1850 hash = (37 * hash) + CUMULATIVE_FIELD_NUMBER;
1851 hash = (53 * hash) + getCumulative().hashCode();
1852 break;
1853 case 30:
1854 hash = (37 * hash) + DUMMY_CONSTRAINT_FIELD_NUMBER;
1855 hash = (53 * hash) + getDummyConstraint().hashCode();
1856 break;
1857 case 0:
1858 default:
1859 }
1860 hash = (29 * hash) + getUnknownFields().hashCode();
1861 memoizedHashCode = hash;
1862 return hash;
1863 }
1864
1866 java.nio.ByteBuffer data)
1867 throws com.google.protobuf.InvalidProtocolBufferException {
1868 return PARSER.parseFrom(data);
1869 }
1871 java.nio.ByteBuffer data,
1872 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1873 throws com.google.protobuf.InvalidProtocolBufferException {
1874 return PARSER.parseFrom(data, extensionRegistry);
1875 }
1877 com.google.protobuf.ByteString data)
1878 throws com.google.protobuf.InvalidProtocolBufferException {
1879 return PARSER.parseFrom(data);
1880 }
1882 com.google.protobuf.ByteString data,
1883 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1884 throws com.google.protobuf.InvalidProtocolBufferException {
1885 return PARSER.parseFrom(data, extensionRegistry);
1886 }
1888 throws com.google.protobuf.InvalidProtocolBufferException {
1889 return PARSER.parseFrom(data);
1890 }
1892 byte[] data,
1893 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1894 throws com.google.protobuf.InvalidProtocolBufferException {
1895 return PARSER.parseFrom(data, extensionRegistry);
1896 }
1897 public static com.google.ortools.sat.ConstraintProto parseFrom(java.io.InputStream input)
1898 throws java.io.IOException {
1899 return com.google.protobuf.GeneratedMessage
1900 .parseWithIOException(PARSER, input);
1901 }
1903 java.io.InputStream input,
1904 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1905 throws java.io.IOException {
1906 return com.google.protobuf.GeneratedMessage
1907 .parseWithIOException(PARSER, input, extensionRegistry);
1908 }
1909
1910 public static com.google.ortools.sat.ConstraintProto parseDelimitedFrom(java.io.InputStream input)
1911 throws java.io.IOException {
1912 return com.google.protobuf.GeneratedMessage
1913 .parseDelimitedWithIOException(PARSER, input);
1914 }
1915
1917 java.io.InputStream input,
1918 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1919 throws java.io.IOException {
1920 return com.google.protobuf.GeneratedMessage
1921 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
1922 }
1924 com.google.protobuf.CodedInputStream input)
1925 throws java.io.IOException {
1926 return com.google.protobuf.GeneratedMessage
1927 .parseWithIOException(PARSER, input);
1928 }
1930 com.google.protobuf.CodedInputStream input,
1931 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1932 throws java.io.IOException {
1933 return com.google.protobuf.GeneratedMessage
1934 .parseWithIOException(PARSER, input, extensionRegistry);
1935 }
1936
1937 @java.lang.Override
1938 public Builder newBuilderForType() { return newBuilder(); }
1939 public static Builder newBuilder() {
1940 return DEFAULT_INSTANCE.toBuilder();
1941 }
1942 public static Builder newBuilder(com.google.ortools.sat.ConstraintProto prototype) {
1943 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1944 }
1945 @java.lang.Override
1947 return this == DEFAULT_INSTANCE
1948 ? new Builder() : new Builder().mergeFrom(this);
1949 }
1950
1951 @java.lang.Override
1953 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1954 Builder builder = new Builder(parent);
1955 return builder;
1956 }
1964 public static final class Builder extends
1965 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
1966 // @@protoc_insertion_point(builder_implements:operations_research.sat.ConstraintProto)
1967 com.google.ortools.sat.ConstraintProtoOrBuilder {
1968 public static final com.google.protobuf.Descriptors.Descriptor
1970 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_descriptor;
1971 }
1972
1973 @java.lang.Override
1974 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1976 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_fieldAccessorTable
1977 .ensureFieldAccessorsInitialized(
1978 com.google.ortools.sat.ConstraintProto.class, com.google.ortools.sat.ConstraintProto.Builder.class);
1979 }
1980
1981 // Construct using com.google.ortools.sat.ConstraintProto.newBuilder()
1982 private Builder() {
1983
1984 }
1985
1986 private Builder(
1987 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1988 super(parent);
1989
1990 }
1991 @java.lang.Override
1992 public Builder clear() {
1993 super.clear();
1994 bitField0_ = 0;
1995 name_ = "";
1996 enforcementLiteral_ = emptyIntList();
1997 if (boolOrBuilder_ != null) {
1998 boolOrBuilder_.clear();
1999 }
2000 if (boolAndBuilder_ != null) {
2001 boolAndBuilder_.clear();
2002 }
2003 if (atMostOneBuilder_ != null) {
2004 atMostOneBuilder_.clear();
2005 }
2006 if (exactlyOneBuilder_ != null) {
2007 exactlyOneBuilder_.clear();
2008 }
2009 if (boolXorBuilder_ != null) {
2010 boolXorBuilder_.clear();
2011 }
2012 if (intDivBuilder_ != null) {
2013 intDivBuilder_.clear();
2014 }
2015 if (intModBuilder_ != null) {
2016 intModBuilder_.clear();
2017 }
2018 if (intProdBuilder_ != null) {
2019 intProdBuilder_.clear();
2020 }
2021 if (linMaxBuilder_ != null) {
2022 linMaxBuilder_.clear();
2023 }
2024 if (linearBuilder_ != null) {
2025 linearBuilder_.clear();
2026 }
2027 if (allDiffBuilder_ != null) {
2028 allDiffBuilder_.clear();
2029 }
2030 if (elementBuilder_ != null) {
2031 elementBuilder_.clear();
2032 }
2033 if (circuitBuilder_ != null) {
2034 circuitBuilder_.clear();
2035 }
2036 if (routesBuilder_ != null) {
2037 routesBuilder_.clear();
2038 }
2039 if (tableBuilder_ != null) {
2040 tableBuilder_.clear();
2041 }
2042 if (automatonBuilder_ != null) {
2043 automatonBuilder_.clear();
2044 }
2045 if (inverseBuilder_ != null) {
2046 inverseBuilder_.clear();
2047 }
2048 if (reservoirBuilder_ != null) {
2049 reservoirBuilder_.clear();
2050 }
2051 if (intervalBuilder_ != null) {
2052 intervalBuilder_.clear();
2053 }
2054 if (noOverlapBuilder_ != null) {
2055 noOverlapBuilder_.clear();
2056 }
2057 if (noOverlap2DBuilder_ != null) {
2058 noOverlap2DBuilder_.clear();
2059 }
2060 if (cumulativeBuilder_ != null) {
2061 cumulativeBuilder_.clear();
2062 }
2063 if (dummyConstraintBuilder_ != null) {
2064 dummyConstraintBuilder_.clear();
2065 }
2066 constraintCase_ = 0;
2067 constraint_ = null;
2068 return this;
2069 }
2070
2071 @java.lang.Override
2072 public com.google.protobuf.Descriptors.Descriptor
2074 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_descriptor;
2075 }
2076
2077 @java.lang.Override
2079 return com.google.ortools.sat.ConstraintProto.getDefaultInstance();
2080 }
2081
2082 @java.lang.Override
2085 if (!result.isInitialized()) {
2086 throw newUninitializedMessageException(result);
2087 }
2088 return result;
2089 }
2090
2091 @java.lang.Override
2093 com.google.ortools.sat.ConstraintProto result = new com.google.ortools.sat.ConstraintProto(this);
2094 if (bitField0_ != 0) { buildPartial0(result); }
2095 buildPartialOneofs(result);
2096 onBuilt();
2097 return result;
2098 }
2099
2100 private void buildPartial0(com.google.ortools.sat.ConstraintProto result) {
2101 int from_bitField0_ = bitField0_;
2102 if (((from_bitField0_ & 0x00000001) != 0)) {
2103 result.name_ = name_;
2104 }
2105 if (((from_bitField0_ & 0x00000002) != 0)) {
2106 enforcementLiteral_.makeImmutable();
2107 result.enforcementLiteral_ = enforcementLiteral_;
2108 }
2109 }
2110
2111 private void buildPartialOneofs(com.google.ortools.sat.ConstraintProto result) {
2112 result.constraintCase_ = constraintCase_;
2113 result.constraint_ = this.constraint_;
2114 if (constraintCase_ == 3 &&
2115 boolOrBuilder_ != null) {
2116 result.constraint_ = boolOrBuilder_.build();
2117 }
2118 if (constraintCase_ == 4 &&
2119 boolAndBuilder_ != null) {
2120 result.constraint_ = boolAndBuilder_.build();
2121 }
2122 if (constraintCase_ == 26 &&
2123 atMostOneBuilder_ != null) {
2124 result.constraint_ = atMostOneBuilder_.build();
2125 }
2126 if (constraintCase_ == 29 &&
2127 exactlyOneBuilder_ != null) {
2128 result.constraint_ = exactlyOneBuilder_.build();
2129 }
2130 if (constraintCase_ == 5 &&
2131 boolXorBuilder_ != null) {
2132 result.constraint_ = boolXorBuilder_.build();
2133 }
2134 if (constraintCase_ == 7 &&
2135 intDivBuilder_ != null) {
2136 result.constraint_ = intDivBuilder_.build();
2137 }
2138 if (constraintCase_ == 8 &&
2139 intModBuilder_ != null) {
2140 result.constraint_ = intModBuilder_.build();
2141 }
2142 if (constraintCase_ == 11 &&
2143 intProdBuilder_ != null) {
2144 result.constraint_ = intProdBuilder_.build();
2145 }
2146 if (constraintCase_ == 27 &&
2147 linMaxBuilder_ != null) {
2148 result.constraint_ = linMaxBuilder_.build();
2149 }
2150 if (constraintCase_ == 12 &&
2151 linearBuilder_ != null) {
2152 result.constraint_ = linearBuilder_.build();
2153 }
2154 if (constraintCase_ == 13 &&
2155 allDiffBuilder_ != null) {
2156 result.constraint_ = allDiffBuilder_.build();
2157 }
2158 if (constraintCase_ == 14 &&
2159 elementBuilder_ != null) {
2160 result.constraint_ = elementBuilder_.build();
2161 }
2162 if (constraintCase_ == 15 &&
2163 circuitBuilder_ != null) {
2164 result.constraint_ = circuitBuilder_.build();
2165 }
2166 if (constraintCase_ == 23 &&
2167 routesBuilder_ != null) {
2168 result.constraint_ = routesBuilder_.build();
2169 }
2170 if (constraintCase_ == 16 &&
2171 tableBuilder_ != null) {
2172 result.constraint_ = tableBuilder_.build();
2173 }
2174 if (constraintCase_ == 17 &&
2175 automatonBuilder_ != null) {
2176 result.constraint_ = automatonBuilder_.build();
2177 }
2178 if (constraintCase_ == 18 &&
2179 inverseBuilder_ != null) {
2180 result.constraint_ = inverseBuilder_.build();
2181 }
2182 if (constraintCase_ == 24 &&
2183 reservoirBuilder_ != null) {
2184 result.constraint_ = reservoirBuilder_.build();
2185 }
2186 if (constraintCase_ == 19 &&
2187 intervalBuilder_ != null) {
2188 result.constraint_ = intervalBuilder_.build();
2189 }
2190 if (constraintCase_ == 20 &&
2191 noOverlapBuilder_ != null) {
2192 result.constraint_ = noOverlapBuilder_.build();
2193 }
2194 if (constraintCase_ == 21 &&
2195 noOverlap2DBuilder_ != null) {
2196 result.constraint_ = noOverlap2DBuilder_.build();
2197 }
2198 if (constraintCase_ == 22 &&
2199 cumulativeBuilder_ != null) {
2200 result.constraint_ = cumulativeBuilder_.build();
2201 }
2202 if (constraintCase_ == 30 &&
2203 dummyConstraintBuilder_ != null) {
2204 result.constraint_ = dummyConstraintBuilder_.build();
2205 }
2206 }
2207
2208 @java.lang.Override
2209 public Builder mergeFrom(com.google.protobuf.Message other) {
2210 if (other instanceof com.google.ortools.sat.ConstraintProto) {
2211 return mergeFrom((com.google.ortools.sat.ConstraintProto)other);
2212 } else {
2213 super.mergeFrom(other);
2214 return this;
2215 }
2216 }
2217
2218 public Builder mergeFrom(com.google.ortools.sat.ConstraintProto other) {
2219 if (other == com.google.ortools.sat.ConstraintProto.getDefaultInstance()) return this;
2220 if (!other.getName().isEmpty()) {
2221 name_ = other.name_;
2222 bitField0_ |= 0x00000001;
2223 onChanged();
2224 }
2225 if (!other.enforcementLiteral_.isEmpty()) {
2226 if (enforcementLiteral_.isEmpty()) {
2227 enforcementLiteral_ = other.enforcementLiteral_;
2228 enforcementLiteral_.makeImmutable();
2229 bitField0_ |= 0x00000002;
2230 } else {
2231 ensureEnforcementLiteralIsMutable();
2232 enforcementLiteral_.addAll(other.enforcementLiteral_);
2233 }
2234 onChanged();
2235 }
2236 switch (other.getConstraintCase()) {
2237 case BOOL_OR: {
2238 mergeBoolOr(other.getBoolOr());
2239 break;
2240 }
2241 case BOOL_AND: {
2242 mergeBoolAnd(other.getBoolAnd());
2243 break;
2244 }
2245 case AT_MOST_ONE: {
2246 mergeAtMostOne(other.getAtMostOne());
2247 break;
2248 }
2249 case EXACTLY_ONE: {
2250 mergeExactlyOne(other.getExactlyOne());
2251 break;
2252 }
2253 case BOOL_XOR: {
2254 mergeBoolXor(other.getBoolXor());
2255 break;
2256 }
2257 case INT_DIV: {
2258 mergeIntDiv(other.getIntDiv());
2259 break;
2260 }
2261 case INT_MOD: {
2262 mergeIntMod(other.getIntMod());
2263 break;
2264 }
2265 case INT_PROD: {
2266 mergeIntProd(other.getIntProd());
2267 break;
2268 }
2269 case LIN_MAX: {
2270 mergeLinMax(other.getLinMax());
2271 break;
2272 }
2273 case LINEAR: {
2274 mergeLinear(other.getLinear());
2275 break;
2276 }
2277 case ALL_DIFF: {
2278 mergeAllDiff(other.getAllDiff());
2279 break;
2280 }
2281 case ELEMENT: {
2282 mergeElement(other.getElement());
2283 break;
2284 }
2285 case CIRCUIT: {
2286 mergeCircuit(other.getCircuit());
2287 break;
2288 }
2289 case ROUTES: {
2290 mergeRoutes(other.getRoutes());
2291 break;
2292 }
2293 case TABLE: {
2294 mergeTable(other.getTable());
2295 break;
2296 }
2297 case AUTOMATON: {
2298 mergeAutomaton(other.getAutomaton());
2299 break;
2300 }
2301 case INVERSE: {
2302 mergeInverse(other.getInverse());
2303 break;
2304 }
2305 case RESERVOIR: {
2306 mergeReservoir(other.getReservoir());
2307 break;
2308 }
2309 case INTERVAL: {
2310 mergeInterval(other.getInterval());
2311 break;
2312 }
2313 case NO_OVERLAP: {
2314 mergeNoOverlap(other.getNoOverlap());
2315 break;
2316 }
2317 case NO_OVERLAP_2D: {
2318 mergeNoOverlap2D(other.getNoOverlap2D());
2319 break;
2320 }
2321 case CUMULATIVE: {
2322 mergeCumulative(other.getCumulative());
2323 break;
2324 }
2325 case DUMMY_CONSTRAINT: {
2326 mergeDummyConstraint(other.getDummyConstraint());
2327 break;
2328 }
2329 case CONSTRAINT_NOT_SET: {
2330 break;
2331 }
2332 }
2333 this.mergeUnknownFields(other.getUnknownFields());
2334 onChanged();
2335 return this;
2336 }
2337
2338 @java.lang.Override
2339 public final boolean isInitialized() {
2340 return true;
2341 }
2342
2343 @java.lang.Override
2345 com.google.protobuf.CodedInputStream input,
2346 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2347 throws java.io.IOException {
2348 if (extensionRegistry == null) {
2349 throw new java.lang.NullPointerException();
2350 }
2351 try {
2352 boolean done = false;
2353 while (!done) {
2354 int tag = input.readTag();
2355 switch (tag) {
2356 case 0:
2357 done = true;
2358 break;
2359 case 10: {
2360 name_ = input.readStringRequireUtf8();
2361 bitField0_ |= 0x00000001;
2362 break;
2363 } // case 10
2364 case 16: {
2365 int v = input.readInt32();
2366 ensureEnforcementLiteralIsMutable();
2367 enforcementLiteral_.addInt(v);
2368 break;
2369 } // case 16
2370 case 18: {
2371 int length = input.readRawVarint32();
2372 int limit = input.pushLimit(length);
2373 ensureEnforcementLiteralIsMutable();
2374 while (input.getBytesUntilLimit() > 0) {
2375 enforcementLiteral_.addInt(input.readInt32());
2376 }
2377 input.popLimit(limit);
2378 break;
2379 } // case 18
2380 case 26: {
2381 input.readMessage(
2382 getBoolOrFieldBuilder().getBuilder(),
2383 extensionRegistry);
2384 constraintCase_ = 3;
2385 break;
2386 } // case 26
2387 case 34: {
2388 input.readMessage(
2389 getBoolAndFieldBuilder().getBuilder(),
2390 extensionRegistry);
2391 constraintCase_ = 4;
2392 break;
2393 } // case 34
2394 case 42: {
2395 input.readMessage(
2396 getBoolXorFieldBuilder().getBuilder(),
2397 extensionRegistry);
2398 constraintCase_ = 5;
2399 break;
2400 } // case 42
2401 case 58: {
2402 input.readMessage(
2403 getIntDivFieldBuilder().getBuilder(),
2404 extensionRegistry);
2405 constraintCase_ = 7;
2406 break;
2407 } // case 58
2408 case 66: {
2409 input.readMessage(
2410 getIntModFieldBuilder().getBuilder(),
2411 extensionRegistry);
2412 constraintCase_ = 8;
2413 break;
2414 } // case 66
2415 case 90: {
2416 input.readMessage(
2417 getIntProdFieldBuilder().getBuilder(),
2418 extensionRegistry);
2419 constraintCase_ = 11;
2420 break;
2421 } // case 90
2422 case 98: {
2423 input.readMessage(
2424 getLinearFieldBuilder().getBuilder(),
2425 extensionRegistry);
2426 constraintCase_ = 12;
2427 break;
2428 } // case 98
2429 case 106: {
2430 input.readMessage(
2431 getAllDiffFieldBuilder().getBuilder(),
2432 extensionRegistry);
2433 constraintCase_ = 13;
2434 break;
2435 } // case 106
2436 case 114: {
2437 input.readMessage(
2438 getElementFieldBuilder().getBuilder(),
2439 extensionRegistry);
2440 constraintCase_ = 14;
2441 break;
2442 } // case 114
2443 case 122: {
2444 input.readMessage(
2445 getCircuitFieldBuilder().getBuilder(),
2446 extensionRegistry);
2447 constraintCase_ = 15;
2448 break;
2449 } // case 122
2450 case 130: {
2451 input.readMessage(
2452 getTableFieldBuilder().getBuilder(),
2453 extensionRegistry);
2454 constraintCase_ = 16;
2455 break;
2456 } // case 130
2457 case 138: {
2458 input.readMessage(
2459 getAutomatonFieldBuilder().getBuilder(),
2460 extensionRegistry);
2461 constraintCase_ = 17;
2462 break;
2463 } // case 138
2464 case 146: {
2465 input.readMessage(
2466 getInverseFieldBuilder().getBuilder(),
2467 extensionRegistry);
2468 constraintCase_ = 18;
2469 break;
2470 } // case 146
2471 case 154: {
2472 input.readMessage(
2473 getIntervalFieldBuilder().getBuilder(),
2474 extensionRegistry);
2475 constraintCase_ = 19;
2476 break;
2477 } // case 154
2478 case 162: {
2479 input.readMessage(
2480 getNoOverlapFieldBuilder().getBuilder(),
2481 extensionRegistry);
2482 constraintCase_ = 20;
2483 break;
2484 } // case 162
2485 case 170: {
2486 input.readMessage(
2487 getNoOverlap2DFieldBuilder().getBuilder(),
2488 extensionRegistry);
2489 constraintCase_ = 21;
2490 break;
2491 } // case 170
2492 case 178: {
2493 input.readMessage(
2494 getCumulativeFieldBuilder().getBuilder(),
2495 extensionRegistry);
2496 constraintCase_ = 22;
2497 break;
2498 } // case 178
2499 case 186: {
2500 input.readMessage(
2501 getRoutesFieldBuilder().getBuilder(),
2502 extensionRegistry);
2503 constraintCase_ = 23;
2504 break;
2505 } // case 186
2506 case 194: {
2507 input.readMessage(
2508 getReservoirFieldBuilder().getBuilder(),
2509 extensionRegistry);
2510 constraintCase_ = 24;
2511 break;
2512 } // case 194
2513 case 210: {
2514 input.readMessage(
2515 getAtMostOneFieldBuilder().getBuilder(),
2516 extensionRegistry);
2517 constraintCase_ = 26;
2518 break;
2519 } // case 210
2520 case 218: {
2521 input.readMessage(
2522 getLinMaxFieldBuilder().getBuilder(),
2523 extensionRegistry);
2524 constraintCase_ = 27;
2525 break;
2526 } // case 218
2527 case 234: {
2528 input.readMessage(
2529 getExactlyOneFieldBuilder().getBuilder(),
2530 extensionRegistry);
2531 constraintCase_ = 29;
2532 break;
2533 } // case 234
2534 case 242: {
2535 input.readMessage(
2536 getDummyConstraintFieldBuilder().getBuilder(),
2537 extensionRegistry);
2538 constraintCase_ = 30;
2539 break;
2540 } // case 242
2541 default: {
2542 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
2543 done = true; // was an endgroup tag
2544 }
2545 break;
2546 } // default:
2547 } // switch (tag)
2548 } // while (!done)
2549 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2550 throw e.unwrapIOException();
2551 } finally {
2552 onChanged();
2553 } // finally
2554 return this;
2555 }
2556 private int constraintCase_ = 0;
2557 private java.lang.Object constraint_;
2558 public ConstraintCase
2561 constraintCase_);
2562 }
2563
2565 constraintCase_ = 0;
2566 constraint_ = null;
2567 onChanged();
2568 return this;
2569 }
2570
2571 private int bitField0_;
2572
2573 private java.lang.Object name_ = "";
2582 public java.lang.String getName() {
2583 java.lang.Object ref = name_;
2584 if (!(ref instanceof java.lang.String)) {
2585 com.google.protobuf.ByteString bs =
2586 (com.google.protobuf.ByteString) ref;
2587 java.lang.String s = bs.toStringUtf8();
2588 name_ = s;
2589 return s;
2590 } else {
2591 return (java.lang.String) ref;
2592 }
2593 }
2602 public com.google.protobuf.ByteString
2604 java.lang.Object ref = name_;
2605 if (ref instanceof String) {
2606 com.google.protobuf.ByteString b =
2607 com.google.protobuf.ByteString.copyFromUtf8(
2608 (java.lang.String) ref);
2609 name_ = b;
2610 return b;
2611 } else {
2612 return (com.google.protobuf.ByteString) ref;
2613 }
2614 }
2625 java.lang.String value) {
2626 if (value == null) { throw new NullPointerException(); }
2627 name_ = value;
2628 bitField0_ |= 0x00000001;
2629 onChanged();
2630 return this;
2631 }
2641 name_ = getDefaultInstance().getName();
2642 bitField0_ = (bitField0_ & ~0x00000001);
2643 onChanged();
2644 return this;
2645 }
2656 com.google.protobuf.ByteString value) {
2657 if (value == null) { throw new NullPointerException(); }
2658 checkByteStringIsUtf8(value);
2659 name_ = value;
2660 bitField0_ |= 0x00000001;
2661 onChanged();
2662 return this;
2663 }
2664
2665 private com.google.protobuf.Internal.IntList enforcementLiteral_ = emptyIntList();
2666 private void ensureEnforcementLiteralIsMutable() {
2667 if (!enforcementLiteral_.isModifiable()) {
2668 enforcementLiteral_ = makeMutableCopy(enforcementLiteral_);
2669 }
2670 bitField0_ |= 0x00000002;
2671 }
2693 public java.util.List<java.lang.Integer>
2695 enforcementLiteral_.makeImmutable();
2696 return enforcementLiteral_;
2697 }
2720 return enforcementLiteral_.size();
2721 }
2744 public int getEnforcementLiteral(int index) {
2745 return enforcementLiteral_.getInt(index);
2746 }
2771 int index, int value) {
2772
2773 ensureEnforcementLiteralIsMutable();
2774 enforcementLiteral_.setInt(index, value);
2775 bitField0_ |= 0x00000002;
2776 onChanged();
2777 return this;
2778 }
2801 public Builder addEnforcementLiteral(int value) {
2802
2803 ensureEnforcementLiteralIsMutable();
2804 enforcementLiteral_.addInt(value);
2805 bitField0_ |= 0x00000002;
2806 onChanged();
2807 return this;
2808 }
2832 java.lang.Iterable<? extends java.lang.Integer> values) {
2833 ensureEnforcementLiteralIsMutable();
2834 com.google.protobuf.AbstractMessageLite.Builder.addAll(
2835 values, enforcementLiteral_);
2836 bitField0_ |= 0x00000002;
2837 onChanged();
2838 return this;
2839 }
2862 enforcementLiteral_ = emptyIntList();
2863 bitField0_ = (bitField0_ & ~0x00000002);
2864 onChanged();
2865 return this;
2866 }
2867
2868 private com.google.protobuf.SingleFieldBuilder<
2869 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder> boolOrBuilder_;
2878 @java.lang.Override
2879 public boolean hasBoolOr() {
2880 return constraintCase_ == 3;
2881 }
2890 @java.lang.Override
2892 if (boolOrBuilder_ == null) {
2893 if (constraintCase_ == 3) {
2894 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
2895 }
2896 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
2897 } else {
2898 if (constraintCase_ == 3) {
2899 return boolOrBuilder_.getMessage();
2900 }
2901 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
2902 }
2903 }
2911 public Builder setBoolOr(com.google.ortools.sat.BoolArgumentProto value) {
2912 if (boolOrBuilder_ == null) {
2913 if (value == null) {
2914 throw new NullPointerException();
2915 }
2916 constraint_ = value;
2917 onChanged();
2918 } else {
2919 boolOrBuilder_.setMessage(value);
2920 }
2921 constraintCase_ = 3;
2922 return this;
2923 }
2932 com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
2933 if (boolOrBuilder_ == null) {
2934 constraint_ = builderForValue.build();
2935 onChanged();
2936 } else {
2937 boolOrBuilder_.setMessage(builderForValue.build());
2938 }
2939 constraintCase_ = 3;
2940 return this;
2941 }
2949 public Builder mergeBoolOr(com.google.ortools.sat.BoolArgumentProto value) {
2950 if (boolOrBuilder_ == null) {
2951 if (constraintCase_ == 3 &&
2952 constraint_ != com.google.ortools.sat.BoolArgumentProto.getDefaultInstance()) {
2953 constraint_ = com.google.ortools.sat.BoolArgumentProto.newBuilder((com.google.ortools.sat.BoolArgumentProto) constraint_)
2954 .mergeFrom(value).buildPartial();
2955 } else {
2956 constraint_ = value;
2957 }
2958 onChanged();
2959 } else {
2960 if (constraintCase_ == 3) {
2961 boolOrBuilder_.mergeFrom(value);
2962 } else {
2963 boolOrBuilder_.setMessage(value);
2964 }
2965 }
2966 constraintCase_ = 3;
2967 return this;
2968 }
2977 if (boolOrBuilder_ == null) {
2978 if (constraintCase_ == 3) {
2979 constraintCase_ = 0;
2980 constraint_ = null;
2981 onChanged();
2982 }
2983 } else {
2984 if (constraintCase_ == 3) {
2985 constraintCase_ = 0;
2986 constraint_ = null;
2987 }
2988 boolOrBuilder_.clear();
2989 }
2990 return this;
2991 }
3000 return getBoolOrFieldBuilder().getBuilder();
3001 }
3009 @java.lang.Override
3011 if ((constraintCase_ == 3) && (boolOrBuilder_ != null)) {
3012 return boolOrBuilder_.getMessageOrBuilder();
3013 } else {
3014 if (constraintCase_ == 3) {
3015 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3016 }
3017 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3018 }
3019 }
3027 private com.google.protobuf.SingleFieldBuilder<
3028 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder>
3029 getBoolOrFieldBuilder() {
3030 if (boolOrBuilder_ == null) {
3031 if (!(constraintCase_ == 3)) {
3032 constraint_ = com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3033 }
3034 boolOrBuilder_ = new com.google.protobuf.SingleFieldBuilder<
3035 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder>(
3036 (com.google.ortools.sat.BoolArgumentProto) constraint_,
3037 getParentForChildren(),
3038 isClean());
3039 constraint_ = null;
3040 }
3041 constraintCase_ = 3;
3042 onChanged();
3043 return boolOrBuilder_;
3044 }
3045
3046 private com.google.protobuf.SingleFieldBuilder<
3047 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder> boolAndBuilder_;
3060 @java.lang.Override
3061 public boolean hasBoolAnd() {
3062 return constraintCase_ == 4;
3063 }
3076 @java.lang.Override
3078 if (boolAndBuilder_ == null) {
3079 if (constraintCase_ == 4) {
3080 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3081 }
3082 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3083 } else {
3084 if (constraintCase_ == 4) {
3085 return boolAndBuilder_.getMessage();
3086 }
3087 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3088 }
3089 }
3101 public Builder setBoolAnd(com.google.ortools.sat.BoolArgumentProto value) {
3102 if (boolAndBuilder_ == null) {
3103 if (value == null) {
3104 throw new NullPointerException();
3105 }
3106 constraint_ = value;
3107 onChanged();
3108 } else {
3109 boolAndBuilder_.setMessage(value);
3110 }
3111 constraintCase_ = 4;
3112 return this;
3113 }
3126 com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
3127 if (boolAndBuilder_ == null) {
3128 constraint_ = builderForValue.build();
3129 onChanged();
3130 } else {
3131 boolAndBuilder_.setMessage(builderForValue.build());
3132 }
3133 constraintCase_ = 4;
3134 return this;
3135 }
3147 public Builder mergeBoolAnd(com.google.ortools.sat.BoolArgumentProto value) {
3148 if (boolAndBuilder_ == null) {
3149 if (constraintCase_ == 4 &&
3150 constraint_ != com.google.ortools.sat.BoolArgumentProto.getDefaultInstance()) {
3151 constraint_ = com.google.ortools.sat.BoolArgumentProto.newBuilder((com.google.ortools.sat.BoolArgumentProto) constraint_)
3152 .mergeFrom(value).buildPartial();
3153 } else {
3154 constraint_ = value;
3155 }
3156 onChanged();
3157 } else {
3158 if (constraintCase_ == 4) {
3159 boolAndBuilder_.mergeFrom(value);
3160 } else {
3161 boolAndBuilder_.setMessage(value);
3162 }
3163 }
3164 constraintCase_ = 4;
3165 return this;
3166 }
3179 if (boolAndBuilder_ == null) {
3180 if (constraintCase_ == 4) {
3181 constraintCase_ = 0;
3182 constraint_ = null;
3183 onChanged();
3184 }
3185 } else {
3186 if (constraintCase_ == 4) {
3187 constraintCase_ = 0;
3188 constraint_ = null;
3189 }
3190 boolAndBuilder_.clear();
3191 }
3192 return this;
3193 }
3206 return getBoolAndFieldBuilder().getBuilder();
3207 }
3219 @java.lang.Override
3221 if ((constraintCase_ == 4) && (boolAndBuilder_ != null)) {
3222 return boolAndBuilder_.getMessageOrBuilder();
3223 } else {
3224 if (constraintCase_ == 4) {
3225 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3226 }
3227 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3228 }
3229 }
3241 private com.google.protobuf.SingleFieldBuilder<
3242 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder>
3243 getBoolAndFieldBuilder() {
3244 if (boolAndBuilder_ == null) {
3245 if (!(constraintCase_ == 4)) {
3246 constraint_ = com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3247 }
3248 boolAndBuilder_ = new com.google.protobuf.SingleFieldBuilder<
3249 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder>(
3250 (com.google.ortools.sat.BoolArgumentProto) constraint_,
3251 getParentForChildren(),
3252 isClean());
3253 constraint_ = null;
3254 }
3255 constraintCase_ = 4;
3256 onChanged();
3257 return boolAndBuilder_;
3258 }
3259
3260 private com.google.protobuf.SingleFieldBuilder<
3261 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder> atMostOneBuilder_;
3280 @java.lang.Override
3281 public boolean hasAtMostOne() {
3282 return constraintCase_ == 26;
3283 }
3302 @java.lang.Override
3304 if (atMostOneBuilder_ == null) {
3305 if (constraintCase_ == 26) {
3306 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3307 }
3308 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3309 } else {
3310 if (constraintCase_ == 26) {
3311 return atMostOneBuilder_.getMessage();
3312 }
3313 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3314 }
3315 }
3333 public Builder setAtMostOne(com.google.ortools.sat.BoolArgumentProto value) {
3334 if (atMostOneBuilder_ == null) {
3335 if (value == null) {
3336 throw new NullPointerException();
3337 }
3338 constraint_ = value;
3339 onChanged();
3340 } else {
3341 atMostOneBuilder_.setMessage(value);
3342 }
3343 constraintCase_ = 26;
3344 return this;
3345 }
3364 com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
3365 if (atMostOneBuilder_ == null) {
3366 constraint_ = builderForValue.build();
3367 onChanged();
3368 } else {
3369 atMostOneBuilder_.setMessage(builderForValue.build());
3370 }
3371 constraintCase_ = 26;
3372 return this;
3373 }
3391 public Builder mergeAtMostOne(com.google.ortools.sat.BoolArgumentProto value) {
3392 if (atMostOneBuilder_ == null) {
3393 if (constraintCase_ == 26 &&
3394 constraint_ != com.google.ortools.sat.BoolArgumentProto.getDefaultInstance()) {
3395 constraint_ = com.google.ortools.sat.BoolArgumentProto.newBuilder((com.google.ortools.sat.BoolArgumentProto) constraint_)
3396 .mergeFrom(value).buildPartial();
3397 } else {
3398 constraint_ = value;
3399 }
3400 onChanged();
3401 } else {
3402 if (constraintCase_ == 26) {
3403 atMostOneBuilder_.mergeFrom(value);
3404 } else {
3405 atMostOneBuilder_.setMessage(value);
3406 }
3407 }
3408 constraintCase_ = 26;
3409 return this;
3410 }
3429 if (atMostOneBuilder_ == null) {
3430 if (constraintCase_ == 26) {
3431 constraintCase_ = 0;
3432 constraint_ = null;
3433 onChanged();
3434 }
3435 } else {
3436 if (constraintCase_ == 26) {
3437 constraintCase_ = 0;
3438 constraint_ = null;
3439 }
3440 atMostOneBuilder_.clear();
3441 }
3442 return this;
3443 }
3462 return getAtMostOneFieldBuilder().getBuilder();
3463 }
3481 @java.lang.Override
3483 if ((constraintCase_ == 26) && (atMostOneBuilder_ != null)) {
3484 return atMostOneBuilder_.getMessageOrBuilder();
3485 } else {
3486 if (constraintCase_ == 26) {
3487 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3488 }
3489 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3490 }
3491 }
3509 private com.google.protobuf.SingleFieldBuilder<
3510 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder>
3511 getAtMostOneFieldBuilder() {
3512 if (atMostOneBuilder_ == null) {
3513 if (!(constraintCase_ == 26)) {
3514 constraint_ = com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3515 }
3516 atMostOneBuilder_ = new com.google.protobuf.SingleFieldBuilder<
3517 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder>(
3518 (com.google.ortools.sat.BoolArgumentProto) constraint_,
3519 getParentForChildren(),
3520 isClean());
3521 constraint_ = null;
3522 }
3523 constraintCase_ = 26;
3524 onChanged();
3525 return atMostOneBuilder_;
3526 }
3527
3528 private com.google.protobuf.SingleFieldBuilder<
3529 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder> exactlyOneBuilder_;
3549 @java.lang.Override
3550 public boolean hasExactlyOne() {
3551 return constraintCase_ == 29;
3552 }
3572 @java.lang.Override
3574 if (exactlyOneBuilder_ == null) {
3575 if (constraintCase_ == 29) {
3576 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3577 }
3578 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3579 } else {
3580 if (constraintCase_ == 29) {
3581 return exactlyOneBuilder_.getMessage();
3582 }
3583 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3584 }
3585 }
3604 public Builder setExactlyOne(com.google.ortools.sat.BoolArgumentProto value) {
3605 if (exactlyOneBuilder_ == null) {
3606 if (value == null) {
3607 throw new NullPointerException();
3608 }
3609 constraint_ = value;
3610 onChanged();
3611 } else {
3612 exactlyOneBuilder_.setMessage(value);
3613 }
3614 constraintCase_ = 29;
3615 return this;
3616 }
3636 com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
3637 if (exactlyOneBuilder_ == null) {
3638 constraint_ = builderForValue.build();
3639 onChanged();
3640 } else {
3641 exactlyOneBuilder_.setMessage(builderForValue.build());
3642 }
3643 constraintCase_ = 29;
3644 return this;
3645 }
3664 public Builder mergeExactlyOne(com.google.ortools.sat.BoolArgumentProto value) {
3665 if (exactlyOneBuilder_ == null) {
3666 if (constraintCase_ == 29 &&
3667 constraint_ != com.google.ortools.sat.BoolArgumentProto.getDefaultInstance()) {
3668 constraint_ = com.google.ortools.sat.BoolArgumentProto.newBuilder((com.google.ortools.sat.BoolArgumentProto) constraint_)
3669 .mergeFrom(value).buildPartial();
3670 } else {
3671 constraint_ = value;
3672 }
3673 onChanged();
3674 } else {
3675 if (constraintCase_ == 29) {
3676 exactlyOneBuilder_.mergeFrom(value);
3677 } else {
3678 exactlyOneBuilder_.setMessage(value);
3679 }
3680 }
3681 constraintCase_ = 29;
3682 return this;
3683 }
3703 if (exactlyOneBuilder_ == null) {
3704 if (constraintCase_ == 29) {
3705 constraintCase_ = 0;
3706 constraint_ = null;
3707 onChanged();
3708 }
3709 } else {
3710 if (constraintCase_ == 29) {
3711 constraintCase_ = 0;
3712 constraint_ = null;
3713 }
3714 exactlyOneBuilder_.clear();
3715 }
3716 return this;
3717 }
3737 return getExactlyOneFieldBuilder().getBuilder();
3738 }
3757 @java.lang.Override
3759 if ((constraintCase_ == 29) && (exactlyOneBuilder_ != null)) {
3760 return exactlyOneBuilder_.getMessageOrBuilder();
3761 } else {
3762 if (constraintCase_ == 29) {
3763 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3764 }
3765 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3766 }
3767 }
3786 private com.google.protobuf.SingleFieldBuilder<
3787 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder>
3788 getExactlyOneFieldBuilder() {
3789 if (exactlyOneBuilder_ == null) {
3790 if (!(constraintCase_ == 29)) {
3791 constraint_ = com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3792 }
3793 exactlyOneBuilder_ = new com.google.protobuf.SingleFieldBuilder<
3794 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder>(
3795 (com.google.ortools.sat.BoolArgumentProto) constraint_,
3796 getParentForChildren(),
3797 isClean());
3798 constraint_ = null;
3799 }
3800 constraintCase_ = 29;
3801 onChanged();
3802 return exactlyOneBuilder_;
3803 }
3804
3805 private com.google.protobuf.SingleFieldBuilder<
3806 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder> boolXorBuilder_;
3815 @java.lang.Override
3816 public boolean hasBoolXor() {
3817 return constraintCase_ == 5;
3818 }
3827 @java.lang.Override
3829 if (boolXorBuilder_ == null) {
3830 if (constraintCase_ == 5) {
3831 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3832 }
3833 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3834 } else {
3835 if (constraintCase_ == 5) {
3836 return boolXorBuilder_.getMessage();
3837 }
3838 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3839 }
3840 }
3848 public Builder setBoolXor(com.google.ortools.sat.BoolArgumentProto value) {
3849 if (boolXorBuilder_ == null) {
3850 if (value == null) {
3851 throw new NullPointerException();
3852 }
3853 constraint_ = value;
3854 onChanged();
3855 } else {
3856 boolXorBuilder_.setMessage(value);
3857 }
3858 constraintCase_ = 5;
3859 return this;
3860 }
3869 com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
3870 if (boolXorBuilder_ == null) {
3871 constraint_ = builderForValue.build();
3872 onChanged();
3873 } else {
3874 boolXorBuilder_.setMessage(builderForValue.build());
3875 }
3876 constraintCase_ = 5;
3877 return this;
3878 }
3886 public Builder mergeBoolXor(com.google.ortools.sat.BoolArgumentProto value) {
3887 if (boolXorBuilder_ == null) {
3888 if (constraintCase_ == 5 &&
3889 constraint_ != com.google.ortools.sat.BoolArgumentProto.getDefaultInstance()) {
3890 constraint_ = com.google.ortools.sat.BoolArgumentProto.newBuilder((com.google.ortools.sat.BoolArgumentProto) constraint_)
3891 .mergeFrom(value).buildPartial();
3892 } else {
3893 constraint_ = value;
3894 }
3895 onChanged();
3896 } else {
3897 if (constraintCase_ == 5) {
3898 boolXorBuilder_.mergeFrom(value);
3899 } else {
3900 boolXorBuilder_.setMessage(value);
3901 }
3902 }
3903 constraintCase_ = 5;
3904 return this;
3905 }
3914 if (boolXorBuilder_ == null) {
3915 if (constraintCase_ == 5) {
3916 constraintCase_ = 0;
3917 constraint_ = null;
3918 onChanged();
3919 }
3920 } else {
3921 if (constraintCase_ == 5) {
3922 constraintCase_ = 0;
3923 constraint_ = null;
3924 }
3925 boolXorBuilder_.clear();
3926 }
3927 return this;
3928 }
3937 return getBoolXorFieldBuilder().getBuilder();
3938 }
3946 @java.lang.Override
3948 if ((constraintCase_ == 5) && (boolXorBuilder_ != null)) {
3949 return boolXorBuilder_.getMessageOrBuilder();
3950 } else {
3951 if (constraintCase_ == 5) {
3952 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3953 }
3954 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3955 }
3956 }
3964 private com.google.protobuf.SingleFieldBuilder<
3965 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder>
3966 getBoolXorFieldBuilder() {
3967 if (boolXorBuilder_ == null) {
3968 if (!(constraintCase_ == 5)) {
3969 constraint_ = com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3970 }
3971 boolXorBuilder_ = new com.google.protobuf.SingleFieldBuilder<
3972 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder>(
3973 (com.google.ortools.sat.BoolArgumentProto) constraint_,
3974 getParentForChildren(),
3975 isClean());
3976 constraint_ = null;
3977 }
3978 constraintCase_ = 5;
3979 onChanged();
3980 return boolXorBuilder_;
3981 }
3982
3983 private com.google.protobuf.SingleFieldBuilder<
3984 com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder> intDivBuilder_;
3999 @java.lang.Override
4000 public boolean hasIntDiv() {
4001 return constraintCase_ == 7;
4002 }
4017 @java.lang.Override
4019 if (intDivBuilder_ == null) {
4020 if (constraintCase_ == 7) {
4021 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
4022 }
4023 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4024 } else {
4025 if (constraintCase_ == 7) {
4026 return intDivBuilder_.getMessage();
4027 }
4028 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4029 }
4030 }
4044 public Builder setIntDiv(com.google.ortools.sat.LinearArgumentProto value) {
4045 if (intDivBuilder_ == null) {
4046 if (value == null) {
4047 throw new NullPointerException();
4048 }
4049 constraint_ = value;
4050 onChanged();
4051 } else {
4052 intDivBuilder_.setMessage(value);
4053 }
4054 constraintCase_ = 7;
4055 return this;
4056 }
4071 com.google.ortools.sat.LinearArgumentProto.Builder builderForValue) {
4072 if (intDivBuilder_ == null) {
4073 constraint_ = builderForValue.build();
4074 onChanged();
4075 } else {
4076 intDivBuilder_.setMessage(builderForValue.build());
4077 }
4078 constraintCase_ = 7;
4079 return this;
4080 }
4094 public Builder mergeIntDiv(com.google.ortools.sat.LinearArgumentProto value) {
4095 if (intDivBuilder_ == null) {
4096 if (constraintCase_ == 7 &&
4097 constraint_ != com.google.ortools.sat.LinearArgumentProto.getDefaultInstance()) {
4098 constraint_ = com.google.ortools.sat.LinearArgumentProto.newBuilder((com.google.ortools.sat.LinearArgumentProto) constraint_)
4099 .mergeFrom(value).buildPartial();
4100 } else {
4101 constraint_ = value;
4102 }
4103 onChanged();
4104 } else {
4105 if (constraintCase_ == 7) {
4106 intDivBuilder_.mergeFrom(value);
4107 } else {
4108 intDivBuilder_.setMessage(value);
4109 }
4110 }
4111 constraintCase_ = 7;
4112 return this;
4113 }
4128 if (intDivBuilder_ == null) {
4129 if (constraintCase_ == 7) {
4130 constraintCase_ = 0;
4131 constraint_ = null;
4132 onChanged();
4133 }
4134 } else {
4135 if (constraintCase_ == 7) {
4136 constraintCase_ = 0;
4137 constraint_ = null;
4138 }
4139 intDivBuilder_.clear();
4140 }
4141 return this;
4142 }
4157 return getIntDivFieldBuilder().getBuilder();
4158 }
4172 @java.lang.Override
4174 if ((constraintCase_ == 7) && (intDivBuilder_ != null)) {
4175 return intDivBuilder_.getMessageOrBuilder();
4176 } else {
4177 if (constraintCase_ == 7) {
4178 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
4179 }
4180 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4181 }
4182 }
4196 private com.google.protobuf.SingleFieldBuilder<
4197 com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder>
4198 getIntDivFieldBuilder() {
4199 if (intDivBuilder_ == null) {
4200 if (!(constraintCase_ == 7)) {
4201 constraint_ = com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4202 }
4203 intDivBuilder_ = new com.google.protobuf.SingleFieldBuilder<
4204 com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder>(
4205 (com.google.ortools.sat.LinearArgumentProto) constraint_,
4206 getParentForChildren(),
4207 isClean());
4208 constraint_ = null;
4209 }
4210 constraintCase_ = 7;
4211 onChanged();
4212 return intDivBuilder_;
4213 }
4214
4215 private com.google.protobuf.SingleFieldBuilder<
4216 com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder> intModBuilder_;
4227 @java.lang.Override
4228 public boolean hasIntMod() {
4229 return constraintCase_ == 8;
4230 }
4241 @java.lang.Override
4243 if (intModBuilder_ == null) {
4244 if (constraintCase_ == 8) {
4245 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
4246 }
4247 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4248 } else {
4249 if (constraintCase_ == 8) {
4250 return intModBuilder_.getMessage();
4251 }
4252 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4253 }
4254 }
4264 public Builder setIntMod(com.google.ortools.sat.LinearArgumentProto value) {
4265 if (intModBuilder_ == null) {
4266 if (value == null) {
4267 throw new NullPointerException();
4268 }
4269 constraint_ = value;
4270 onChanged();
4271 } else {
4272 intModBuilder_.setMessage(value);
4273 }
4274 constraintCase_ = 8;
4275 return this;
4276 }
4287 com.google.ortools.sat.LinearArgumentProto.Builder builderForValue) {
4288 if (intModBuilder_ == null) {
4289 constraint_ = builderForValue.build();
4290 onChanged();
4291 } else {
4292 intModBuilder_.setMessage(builderForValue.build());
4293 }
4294 constraintCase_ = 8;
4295 return this;
4296 }
4306 public Builder mergeIntMod(com.google.ortools.sat.LinearArgumentProto value) {
4307 if (intModBuilder_ == null) {
4308 if (constraintCase_ == 8 &&
4309 constraint_ != com.google.ortools.sat.LinearArgumentProto.getDefaultInstance()) {
4310 constraint_ = com.google.ortools.sat.LinearArgumentProto.newBuilder((com.google.ortools.sat.LinearArgumentProto) constraint_)
4311 .mergeFrom(value).buildPartial();
4312 } else {
4313 constraint_ = value;
4314 }
4315 onChanged();
4316 } else {
4317 if (constraintCase_ == 8) {
4318 intModBuilder_.mergeFrom(value);
4319 } else {
4320 intModBuilder_.setMessage(value);
4321 }
4322 }
4323 constraintCase_ = 8;
4324 return this;
4325 }
4336 if (intModBuilder_ == null) {
4337 if (constraintCase_ == 8) {
4338 constraintCase_ = 0;
4339 constraint_ = null;
4340 onChanged();
4341 }
4342 } else {
4343 if (constraintCase_ == 8) {
4344 constraintCase_ = 0;
4345 constraint_ = null;
4346 }
4347 intModBuilder_.clear();
4348 }
4349 return this;
4350 }
4361 return getIntModFieldBuilder().getBuilder();
4362 }
4372 @java.lang.Override
4374 if ((constraintCase_ == 8) && (intModBuilder_ != null)) {
4375 return intModBuilder_.getMessageOrBuilder();
4376 } else {
4377 if (constraintCase_ == 8) {
4378 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
4379 }
4380 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4381 }
4382 }
4392 private com.google.protobuf.SingleFieldBuilder<
4393 com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder>
4394 getIntModFieldBuilder() {
4395 if (intModBuilder_ == null) {
4396 if (!(constraintCase_ == 8)) {
4397 constraint_ = com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4398 }
4399 intModBuilder_ = new com.google.protobuf.SingleFieldBuilder<
4400 com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder>(
4401 (com.google.ortools.sat.LinearArgumentProto) constraint_,
4402 getParentForChildren(),
4403 isClean());
4404 constraint_ = null;
4405 }
4406 constraintCase_ = 8;
4407 onChanged();
4408 return intModBuilder_;
4409 }
4410
4411 private com.google.protobuf.SingleFieldBuilder<
4412 com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder> intProdBuilder_;
4428 @java.lang.Override
4429 public boolean hasIntProd() {
4430 return constraintCase_ == 11;
4431 }
4447 @java.lang.Override
4449 if (intProdBuilder_ == null) {
4450 if (constraintCase_ == 11) {
4451 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
4452 }
4453 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4454 } else {
4455 if (constraintCase_ == 11) {
4456 return intProdBuilder_.getMessage();
4457 }
4458 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4459 }
4460 }
4475 public Builder setIntProd(com.google.ortools.sat.LinearArgumentProto value) {
4476 if (intProdBuilder_ == null) {
4477 if (value == null) {
4478 throw new NullPointerException();
4479 }
4480 constraint_ = value;
4481 onChanged();
4482 } else {
4483 intProdBuilder_.setMessage(value);
4484 }
4485 constraintCase_ = 11;
4486 return this;
4487 }
4503 com.google.ortools.sat.LinearArgumentProto.Builder builderForValue) {
4504 if (intProdBuilder_ == null) {
4505 constraint_ = builderForValue.build();
4506 onChanged();
4507 } else {
4508 intProdBuilder_.setMessage(builderForValue.build());
4509 }
4510 constraintCase_ = 11;
4511 return this;
4512 }
4527 public Builder mergeIntProd(com.google.ortools.sat.LinearArgumentProto value) {
4528 if (intProdBuilder_ == null) {
4529 if (constraintCase_ == 11 &&
4530 constraint_ != com.google.ortools.sat.LinearArgumentProto.getDefaultInstance()) {
4531 constraint_ = com.google.ortools.sat.LinearArgumentProto.newBuilder((com.google.ortools.sat.LinearArgumentProto) constraint_)
4532 .mergeFrom(value).buildPartial();
4533 } else {
4534 constraint_ = value;
4535 }
4536 onChanged();
4537 } else {
4538 if (constraintCase_ == 11) {
4539 intProdBuilder_.mergeFrom(value);
4540 } else {
4541 intProdBuilder_.setMessage(value);
4542 }
4543 }
4544 constraintCase_ = 11;
4545 return this;
4546 }
4562 if (intProdBuilder_ == null) {
4563 if (constraintCase_ == 11) {
4564 constraintCase_ = 0;
4565 constraint_ = null;
4566 onChanged();
4567 }
4568 } else {
4569 if (constraintCase_ == 11) {
4570 constraintCase_ = 0;
4571 constraint_ = null;
4572 }
4573 intProdBuilder_.clear();
4574 }
4575 return this;
4576 }
4592 return getIntProdFieldBuilder().getBuilder();
4593 }
4608 @java.lang.Override
4610 if ((constraintCase_ == 11) && (intProdBuilder_ != null)) {
4611 return intProdBuilder_.getMessageOrBuilder();
4612 } else {
4613 if (constraintCase_ == 11) {
4614 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
4615 }
4616 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4617 }
4618 }
4633 private com.google.protobuf.SingleFieldBuilder<
4634 com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder>
4635 getIntProdFieldBuilder() {
4636 if (intProdBuilder_ == null) {
4637 if (!(constraintCase_ == 11)) {
4638 constraint_ = com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4639 }
4640 intProdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
4641 com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder>(
4642 (com.google.ortools.sat.LinearArgumentProto) constraint_,
4643 getParentForChildren(),
4644 isClean());
4645 constraint_ = null;
4646 }
4647 constraintCase_ = 11;
4648 onChanged();
4649 return intProdBuilder_;
4650 }
4651
4652 private com.google.protobuf.SingleFieldBuilder<
4653 com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder> linMaxBuilder_;
4664 @java.lang.Override
4665 public boolean hasLinMax() {
4666 return constraintCase_ == 27;
4667 }
4678 @java.lang.Override
4680 if (linMaxBuilder_ == null) {
4681 if (constraintCase_ == 27) {
4682 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
4683 }
4684 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4685 } else {
4686 if (constraintCase_ == 27) {
4687 return linMaxBuilder_.getMessage();
4688 }
4689 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4690 }
4691 }
4701 public Builder setLinMax(com.google.ortools.sat.LinearArgumentProto value) {
4702 if (linMaxBuilder_ == null) {
4703 if (value == null) {
4704 throw new NullPointerException();
4705 }
4706 constraint_ = value;
4707 onChanged();
4708 } else {
4709 linMaxBuilder_.setMessage(value);
4710 }
4711 constraintCase_ = 27;
4712 return this;
4713 }
4724 com.google.ortools.sat.LinearArgumentProto.Builder builderForValue) {
4725 if (linMaxBuilder_ == null) {
4726 constraint_ = builderForValue.build();
4727 onChanged();
4728 } else {
4729 linMaxBuilder_.setMessage(builderForValue.build());
4730 }
4731 constraintCase_ = 27;
4732 return this;
4733 }
4743 public Builder mergeLinMax(com.google.ortools.sat.LinearArgumentProto value) {
4744 if (linMaxBuilder_ == null) {
4745 if (constraintCase_ == 27 &&
4746 constraint_ != com.google.ortools.sat.LinearArgumentProto.getDefaultInstance()) {
4747 constraint_ = com.google.ortools.sat.LinearArgumentProto.newBuilder((com.google.ortools.sat.LinearArgumentProto) constraint_)
4748 .mergeFrom(value).buildPartial();
4749 } else {
4750 constraint_ = value;
4751 }
4752 onChanged();
4753 } else {
4754 if (constraintCase_ == 27) {
4755 linMaxBuilder_.mergeFrom(value);
4756 } else {
4757 linMaxBuilder_.setMessage(value);
4758 }
4759 }
4760 constraintCase_ = 27;
4761 return this;
4762 }
4773 if (linMaxBuilder_ == null) {
4774 if (constraintCase_ == 27) {
4775 constraintCase_ = 0;
4776 constraint_ = null;
4777 onChanged();
4778 }
4779 } else {
4780 if (constraintCase_ == 27) {
4781 constraintCase_ = 0;
4782 constraint_ = null;
4783 }
4784 linMaxBuilder_.clear();
4785 }
4786 return this;
4787 }
4798 return getLinMaxFieldBuilder().getBuilder();
4799 }
4809 @java.lang.Override
4811 if ((constraintCase_ == 27) && (linMaxBuilder_ != null)) {
4812 return linMaxBuilder_.getMessageOrBuilder();
4813 } else {
4814 if (constraintCase_ == 27) {
4815 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
4816 }
4817 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4818 }
4819 }
4829 private com.google.protobuf.SingleFieldBuilder<
4830 com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder>
4831 getLinMaxFieldBuilder() {
4832 if (linMaxBuilder_ == null) {
4833 if (!(constraintCase_ == 27)) {
4834 constraint_ = com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4835 }
4836 linMaxBuilder_ = new com.google.protobuf.SingleFieldBuilder<
4837 com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder>(
4838 (com.google.ortools.sat.LinearArgumentProto) constraint_,
4839 getParentForChildren(),
4840 isClean());
4841 constraint_ = null;
4842 }
4843 constraintCase_ = 27;
4844 onChanged();
4845 return linMaxBuilder_;
4846 }
4847
4848 private com.google.protobuf.SingleFieldBuilder<
4849 com.google.ortools.sat.LinearConstraintProto, com.google.ortools.sat.LinearConstraintProto.Builder, com.google.ortools.sat.LinearConstraintProtoOrBuilder> linearBuilder_;
4859 @java.lang.Override
4860 public boolean hasLinear() {
4861 return constraintCase_ == 12;
4862 }
4872 @java.lang.Override
4874 if (linearBuilder_ == null) {
4875 if (constraintCase_ == 12) {
4876 return (com.google.ortools.sat.LinearConstraintProto) constraint_;
4877 }
4878 return com.google.ortools.sat.LinearConstraintProto.getDefaultInstance();
4879 } else {
4880 if (constraintCase_ == 12) {
4881 return linearBuilder_.getMessage();
4882 }
4883 return com.google.ortools.sat.LinearConstraintProto.getDefaultInstance();
4884 }
4885 }
4894 public Builder setLinear(com.google.ortools.sat.LinearConstraintProto value) {
4895 if (linearBuilder_ == null) {
4896 if (value == null) {
4897 throw new NullPointerException();
4898 }
4899 constraint_ = value;
4900 onChanged();
4901 } else {
4902 linearBuilder_.setMessage(value);
4903 }
4904 constraintCase_ = 12;
4905 return this;
4906 }
4916 com.google.ortools.sat.LinearConstraintProto.Builder builderForValue) {
4917 if (linearBuilder_ == null) {
4918 constraint_ = builderForValue.build();
4919 onChanged();
4920 } else {
4921 linearBuilder_.setMessage(builderForValue.build());
4922 }
4923 constraintCase_ = 12;
4924 return this;
4925 }
4934 public Builder mergeLinear(com.google.ortools.sat.LinearConstraintProto value) {
4935 if (linearBuilder_ == null) {
4936 if (constraintCase_ == 12 &&
4937 constraint_ != com.google.ortools.sat.LinearConstraintProto.getDefaultInstance()) {
4938 constraint_ = com.google.ortools.sat.LinearConstraintProto.newBuilder((com.google.ortools.sat.LinearConstraintProto) constraint_)
4939 .mergeFrom(value).buildPartial();
4940 } else {
4941 constraint_ = value;
4942 }
4943 onChanged();
4944 } else {
4945 if (constraintCase_ == 12) {
4946 linearBuilder_.mergeFrom(value);
4947 } else {
4948 linearBuilder_.setMessage(value);
4949 }
4950 }
4951 constraintCase_ = 12;
4952 return this;
4953 }
4963 if (linearBuilder_ == null) {
4964 if (constraintCase_ == 12) {
4965 constraintCase_ = 0;
4966 constraint_ = null;
4967 onChanged();
4968 }
4969 } else {
4970 if (constraintCase_ == 12) {
4971 constraintCase_ = 0;
4972 constraint_ = null;
4973 }
4974 linearBuilder_.clear();
4975 }
4976 return this;
4977 }
4987 return getLinearFieldBuilder().getBuilder();
4988 }
4997 @java.lang.Override
4999 if ((constraintCase_ == 12) && (linearBuilder_ != null)) {
5000 return linearBuilder_.getMessageOrBuilder();
5001 } else {
5002 if (constraintCase_ == 12) {
5003 return (com.google.ortools.sat.LinearConstraintProto) constraint_;
5004 }
5005 return com.google.ortools.sat.LinearConstraintProto.getDefaultInstance();
5006 }
5007 }
5016 private com.google.protobuf.SingleFieldBuilder<
5017 com.google.ortools.sat.LinearConstraintProto, com.google.ortools.sat.LinearConstraintProto.Builder, com.google.ortools.sat.LinearConstraintProtoOrBuilder>
5018 getLinearFieldBuilder() {
5019 if (linearBuilder_ == null) {
5020 if (!(constraintCase_ == 12)) {
5021 constraint_ = com.google.ortools.sat.LinearConstraintProto.getDefaultInstance();
5022 }
5023 linearBuilder_ = new com.google.protobuf.SingleFieldBuilder<
5024 com.google.ortools.sat.LinearConstraintProto, com.google.ortools.sat.LinearConstraintProto.Builder, com.google.ortools.sat.LinearConstraintProtoOrBuilder>(
5025 (com.google.ortools.sat.LinearConstraintProto) constraint_,
5026 getParentForChildren(),
5027 isClean());
5028 constraint_ = null;
5029 }
5030 constraintCase_ = 12;
5031 onChanged();
5032 return linearBuilder_;
5033 }
5034
5035 private com.google.protobuf.SingleFieldBuilder<
5036 com.google.ortools.sat.AllDifferentConstraintProto, com.google.ortools.sat.AllDifferentConstraintProto.Builder, com.google.ortools.sat.AllDifferentConstraintProtoOrBuilder> allDiffBuilder_;
5045 @java.lang.Override
5046 public boolean hasAllDiff() {
5047 return constraintCase_ == 13;
5048 }
5057 @java.lang.Override
5059 if (allDiffBuilder_ == null) {
5060 if (constraintCase_ == 13) {
5061 return (com.google.ortools.sat.AllDifferentConstraintProto) constraint_;
5062 }
5063 return com.google.ortools.sat.AllDifferentConstraintProto.getDefaultInstance();
5064 } else {
5065 if (constraintCase_ == 13) {
5066 return allDiffBuilder_.getMessage();
5067 }
5068 return com.google.ortools.sat.AllDifferentConstraintProto.getDefaultInstance();
5069 }
5070 }
5078 public Builder setAllDiff(com.google.ortools.sat.AllDifferentConstraintProto value) {
5079 if (allDiffBuilder_ == null) {
5080 if (value == null) {
5081 throw new NullPointerException();
5082 }
5083 constraint_ = value;
5084 onChanged();
5085 } else {
5086 allDiffBuilder_.setMessage(value);
5087 }
5088 constraintCase_ = 13;
5089 return this;
5090 }
5099 com.google.ortools.sat.AllDifferentConstraintProto.Builder builderForValue) {
5100 if (allDiffBuilder_ == null) {
5101 constraint_ = builderForValue.build();
5102 onChanged();
5103 } else {
5104 allDiffBuilder_.setMessage(builderForValue.build());
5105 }
5106 constraintCase_ = 13;
5107 return this;
5108 }
5116 public Builder mergeAllDiff(com.google.ortools.sat.AllDifferentConstraintProto value) {
5117 if (allDiffBuilder_ == null) {
5118 if (constraintCase_ == 13 &&
5119 constraint_ != com.google.ortools.sat.AllDifferentConstraintProto.getDefaultInstance()) {
5120 constraint_ = com.google.ortools.sat.AllDifferentConstraintProto.newBuilder((com.google.ortools.sat.AllDifferentConstraintProto) constraint_)
5121 .mergeFrom(value).buildPartial();
5122 } else {
5123 constraint_ = value;
5124 }
5125 onChanged();
5126 } else {
5127 if (constraintCase_ == 13) {
5128 allDiffBuilder_.mergeFrom(value);
5129 } else {
5130 allDiffBuilder_.setMessage(value);
5131 }
5132 }
5133 constraintCase_ = 13;
5134 return this;
5135 }
5144 if (allDiffBuilder_ == null) {
5145 if (constraintCase_ == 13) {
5146 constraintCase_ = 0;
5147 constraint_ = null;
5148 onChanged();
5149 }
5150 } else {
5151 if (constraintCase_ == 13) {
5152 constraintCase_ = 0;
5153 constraint_ = null;
5154 }
5155 allDiffBuilder_.clear();
5156 }
5157 return this;
5158 }
5167 return getAllDiffFieldBuilder().getBuilder();
5168 }
5176 @java.lang.Override
5178 if ((constraintCase_ == 13) && (allDiffBuilder_ != null)) {
5179 return allDiffBuilder_.getMessageOrBuilder();
5180 } else {
5181 if (constraintCase_ == 13) {
5182 return (com.google.ortools.sat.AllDifferentConstraintProto) constraint_;
5183 }
5184 return com.google.ortools.sat.AllDifferentConstraintProto.getDefaultInstance();
5185 }
5186 }
5194 private com.google.protobuf.SingleFieldBuilder<
5195 com.google.ortools.sat.AllDifferentConstraintProto, com.google.ortools.sat.AllDifferentConstraintProto.Builder, com.google.ortools.sat.AllDifferentConstraintProtoOrBuilder>
5196 getAllDiffFieldBuilder() {
5197 if (allDiffBuilder_ == null) {
5198 if (!(constraintCase_ == 13)) {
5199 constraint_ = com.google.ortools.sat.AllDifferentConstraintProto.getDefaultInstance();
5200 }
5201 allDiffBuilder_ = new com.google.protobuf.SingleFieldBuilder<
5202 com.google.ortools.sat.AllDifferentConstraintProto, com.google.ortools.sat.AllDifferentConstraintProto.Builder, com.google.ortools.sat.AllDifferentConstraintProtoOrBuilder>(
5203 (com.google.ortools.sat.AllDifferentConstraintProto) constraint_,
5204 getParentForChildren(),
5205 isClean());
5206 constraint_ = null;
5207 }
5208 constraintCase_ = 13;
5209 onChanged();
5210 return allDiffBuilder_;
5211 }
5212
5213 private com.google.protobuf.SingleFieldBuilder<
5214 com.google.ortools.sat.ElementConstraintProto, com.google.ortools.sat.ElementConstraintProto.Builder, com.google.ortools.sat.ElementConstraintProtoOrBuilder> elementBuilder_;
5224 @java.lang.Override
5225 public boolean hasElement() {
5226 return constraintCase_ == 14;
5227 }
5237 @java.lang.Override
5239 if (elementBuilder_ == null) {
5240 if (constraintCase_ == 14) {
5241 return (com.google.ortools.sat.ElementConstraintProto) constraint_;
5242 }
5243 return com.google.ortools.sat.ElementConstraintProto.getDefaultInstance();
5244 } else {
5245 if (constraintCase_ == 14) {
5246 return elementBuilder_.getMessage();
5247 }
5248 return com.google.ortools.sat.ElementConstraintProto.getDefaultInstance();
5249 }
5250 }
5259 public Builder setElement(com.google.ortools.sat.ElementConstraintProto value) {
5260 if (elementBuilder_ == null) {
5261 if (value == null) {
5262 throw new NullPointerException();
5263 }
5264 constraint_ = value;
5265 onChanged();
5266 } else {
5267 elementBuilder_.setMessage(value);
5268 }
5269 constraintCase_ = 14;
5270 return this;
5271 }
5281 com.google.ortools.sat.ElementConstraintProto.Builder builderForValue) {
5282 if (elementBuilder_ == null) {
5283 constraint_ = builderForValue.build();
5284 onChanged();
5285 } else {
5286 elementBuilder_.setMessage(builderForValue.build());
5287 }
5288 constraintCase_ = 14;
5289 return this;
5290 }
5299 public Builder mergeElement(com.google.ortools.sat.ElementConstraintProto value) {
5300 if (elementBuilder_ == null) {
5301 if (constraintCase_ == 14 &&
5302 constraint_ != com.google.ortools.sat.ElementConstraintProto.getDefaultInstance()) {
5303 constraint_ = com.google.ortools.sat.ElementConstraintProto.newBuilder((com.google.ortools.sat.ElementConstraintProto) constraint_)
5304 .mergeFrom(value).buildPartial();
5305 } else {
5306 constraint_ = value;
5307 }
5308 onChanged();
5309 } else {
5310 if (constraintCase_ == 14) {
5311 elementBuilder_.mergeFrom(value);
5312 } else {
5313 elementBuilder_.setMessage(value);
5314 }
5315 }
5316 constraintCase_ = 14;
5317 return this;
5318 }
5328 if (elementBuilder_ == null) {
5329 if (constraintCase_ == 14) {
5330 constraintCase_ = 0;
5331 constraint_ = null;
5332 onChanged();
5333 }
5334 } else {
5335 if (constraintCase_ == 14) {
5336 constraintCase_ = 0;
5337 constraint_ = null;
5338 }
5339 elementBuilder_.clear();
5340 }
5341 return this;
5342 }
5352 return getElementFieldBuilder().getBuilder();
5353 }
5362 @java.lang.Override
5364 if ((constraintCase_ == 14) && (elementBuilder_ != null)) {
5365 return elementBuilder_.getMessageOrBuilder();
5366 } else {
5367 if (constraintCase_ == 14) {
5368 return (com.google.ortools.sat.ElementConstraintProto) constraint_;
5369 }
5370 return com.google.ortools.sat.ElementConstraintProto.getDefaultInstance();
5371 }
5372 }
5381 private com.google.protobuf.SingleFieldBuilder<
5382 com.google.ortools.sat.ElementConstraintProto, com.google.ortools.sat.ElementConstraintProto.Builder, com.google.ortools.sat.ElementConstraintProtoOrBuilder>
5383 getElementFieldBuilder() {
5384 if (elementBuilder_ == null) {
5385 if (!(constraintCase_ == 14)) {
5386 constraint_ = com.google.ortools.sat.ElementConstraintProto.getDefaultInstance();
5387 }
5388 elementBuilder_ = new com.google.protobuf.SingleFieldBuilder<
5389 com.google.ortools.sat.ElementConstraintProto, com.google.ortools.sat.ElementConstraintProto.Builder, com.google.ortools.sat.ElementConstraintProtoOrBuilder>(
5390 (com.google.ortools.sat.ElementConstraintProto) constraint_,
5391 getParentForChildren(),
5392 isClean());
5393 constraint_ = null;
5394 }
5395 constraintCase_ = 14;
5396 onChanged();
5397 return elementBuilder_;
5398 }
5399
5400 private com.google.protobuf.SingleFieldBuilder<
5401 com.google.ortools.sat.CircuitConstraintProto, com.google.ortools.sat.CircuitConstraintProto.Builder, com.google.ortools.sat.CircuitConstraintProtoOrBuilder> circuitBuilder_;
5411 @java.lang.Override
5412 public boolean hasCircuit() {
5413 return constraintCase_ == 15;
5414 }
5424 @java.lang.Override
5426 if (circuitBuilder_ == null) {
5427 if (constraintCase_ == 15) {
5428 return (com.google.ortools.sat.CircuitConstraintProto) constraint_;
5429 }
5430 return com.google.ortools.sat.CircuitConstraintProto.getDefaultInstance();
5431 } else {
5432 if (constraintCase_ == 15) {
5433 return circuitBuilder_.getMessage();
5434 }
5435 return com.google.ortools.sat.CircuitConstraintProto.getDefaultInstance();
5436 }
5437 }
5446 public Builder setCircuit(com.google.ortools.sat.CircuitConstraintProto value) {
5447 if (circuitBuilder_ == null) {
5448 if (value == null) {
5449 throw new NullPointerException();
5450 }
5451 constraint_ = value;
5452 onChanged();
5453 } else {
5454 circuitBuilder_.setMessage(value);
5455 }
5456 constraintCase_ = 15;
5457 return this;
5458 }
5468 com.google.ortools.sat.CircuitConstraintProto.Builder builderForValue) {
5469 if (circuitBuilder_ == null) {
5470 constraint_ = builderForValue.build();
5471 onChanged();
5472 } else {
5473 circuitBuilder_.setMessage(builderForValue.build());
5474 }
5475 constraintCase_ = 15;
5476 return this;
5477 }
5486 public Builder mergeCircuit(com.google.ortools.sat.CircuitConstraintProto value) {
5487 if (circuitBuilder_ == null) {
5488 if (constraintCase_ == 15 &&
5489 constraint_ != com.google.ortools.sat.CircuitConstraintProto.getDefaultInstance()) {
5490 constraint_ = com.google.ortools.sat.CircuitConstraintProto.newBuilder((com.google.ortools.sat.CircuitConstraintProto) constraint_)
5491 .mergeFrom(value).buildPartial();
5492 } else {
5493 constraint_ = value;
5494 }
5495 onChanged();
5496 } else {
5497 if (constraintCase_ == 15) {
5498 circuitBuilder_.mergeFrom(value);
5499 } else {
5500 circuitBuilder_.setMessage(value);
5501 }
5502 }
5503 constraintCase_ = 15;
5504 return this;
5505 }
5515 if (circuitBuilder_ == null) {
5516 if (constraintCase_ == 15) {
5517 constraintCase_ = 0;
5518 constraint_ = null;
5519 onChanged();
5520 }
5521 } else {
5522 if (constraintCase_ == 15) {
5523 constraintCase_ = 0;
5524 constraint_ = null;
5525 }
5526 circuitBuilder_.clear();
5527 }
5528 return this;
5529 }
5539 return getCircuitFieldBuilder().getBuilder();
5540 }
5549 @java.lang.Override
5551 if ((constraintCase_ == 15) && (circuitBuilder_ != null)) {
5552 return circuitBuilder_.getMessageOrBuilder();
5553 } else {
5554 if (constraintCase_ == 15) {
5555 return (com.google.ortools.sat.CircuitConstraintProto) constraint_;
5556 }
5557 return com.google.ortools.sat.CircuitConstraintProto.getDefaultInstance();
5558 }
5559 }
5568 private com.google.protobuf.SingleFieldBuilder<
5569 com.google.ortools.sat.CircuitConstraintProto, com.google.ortools.sat.CircuitConstraintProto.Builder, com.google.ortools.sat.CircuitConstraintProtoOrBuilder>
5570 getCircuitFieldBuilder() {
5571 if (circuitBuilder_ == null) {
5572 if (!(constraintCase_ == 15)) {
5573 constraint_ = com.google.ortools.sat.CircuitConstraintProto.getDefaultInstance();
5574 }
5575 circuitBuilder_ = new com.google.protobuf.SingleFieldBuilder<
5576 com.google.ortools.sat.CircuitConstraintProto, com.google.ortools.sat.CircuitConstraintProto.Builder, com.google.ortools.sat.CircuitConstraintProtoOrBuilder>(
5577 (com.google.ortools.sat.CircuitConstraintProto) constraint_,
5578 getParentForChildren(),
5579 isClean());
5580 constraint_ = null;
5581 }
5582 constraintCase_ = 15;
5583 onChanged();
5584 return circuitBuilder_;
5585 }
5586
5587 private com.google.protobuf.SingleFieldBuilder<
5588 com.google.ortools.sat.RoutesConstraintProto, com.google.ortools.sat.RoutesConstraintProto.Builder, com.google.ortools.sat.RoutesConstraintProtoOrBuilder> routesBuilder_;
5597 @java.lang.Override
5598 public boolean hasRoutes() {
5599 return constraintCase_ == 23;
5600 }
5609 @java.lang.Override
5611 if (routesBuilder_ == null) {
5612 if (constraintCase_ == 23) {
5613 return (com.google.ortools.sat.RoutesConstraintProto) constraint_;
5614 }
5615 return com.google.ortools.sat.RoutesConstraintProto.getDefaultInstance();
5616 } else {
5617 if (constraintCase_ == 23) {
5618 return routesBuilder_.getMessage();
5619 }
5620 return com.google.ortools.sat.RoutesConstraintProto.getDefaultInstance();
5621 }
5622 }
5630 public Builder setRoutes(com.google.ortools.sat.RoutesConstraintProto value) {
5631 if (routesBuilder_ == null) {
5632 if (value == null) {
5633 throw new NullPointerException();
5634 }
5635 constraint_ = value;
5636 onChanged();
5637 } else {
5638 routesBuilder_.setMessage(value);
5639 }
5640 constraintCase_ = 23;
5641 return this;
5642 }
5651 com.google.ortools.sat.RoutesConstraintProto.Builder builderForValue) {
5652 if (routesBuilder_ == null) {
5653 constraint_ = builderForValue.build();
5654 onChanged();
5655 } else {
5656 routesBuilder_.setMessage(builderForValue.build());
5657 }
5658 constraintCase_ = 23;
5659 return this;
5660 }
5668 public Builder mergeRoutes(com.google.ortools.sat.RoutesConstraintProto value) {
5669 if (routesBuilder_ == null) {
5670 if (constraintCase_ == 23 &&
5671 constraint_ != com.google.ortools.sat.RoutesConstraintProto.getDefaultInstance()) {
5672 constraint_ = com.google.ortools.sat.RoutesConstraintProto.newBuilder((com.google.ortools.sat.RoutesConstraintProto) constraint_)
5673 .mergeFrom(value).buildPartial();
5674 } else {
5675 constraint_ = value;
5676 }
5677 onChanged();
5678 } else {
5679 if (constraintCase_ == 23) {
5680 routesBuilder_.mergeFrom(value);
5681 } else {
5682 routesBuilder_.setMessage(value);
5683 }
5684 }
5685 constraintCase_ = 23;
5686 return this;
5687 }
5696 if (routesBuilder_ == null) {
5697 if (constraintCase_ == 23) {
5698 constraintCase_ = 0;
5699 constraint_ = null;
5700 onChanged();
5701 }
5702 } else {
5703 if (constraintCase_ == 23) {
5704 constraintCase_ = 0;
5705 constraint_ = null;
5706 }
5707 routesBuilder_.clear();
5708 }
5709 return this;
5710 }
5719 return getRoutesFieldBuilder().getBuilder();
5720 }
5728 @java.lang.Override
5730 if ((constraintCase_ == 23) && (routesBuilder_ != null)) {
5731 return routesBuilder_.getMessageOrBuilder();
5732 } else {
5733 if (constraintCase_ == 23) {
5734 return (com.google.ortools.sat.RoutesConstraintProto) constraint_;
5735 }
5736 return com.google.ortools.sat.RoutesConstraintProto.getDefaultInstance();
5737 }
5738 }
5746 private com.google.protobuf.SingleFieldBuilder<
5747 com.google.ortools.sat.RoutesConstraintProto, com.google.ortools.sat.RoutesConstraintProto.Builder, com.google.ortools.sat.RoutesConstraintProtoOrBuilder>
5748 getRoutesFieldBuilder() {
5749 if (routesBuilder_ == null) {
5750 if (!(constraintCase_ == 23)) {
5751 constraint_ = com.google.ortools.sat.RoutesConstraintProto.getDefaultInstance();
5752 }
5753 routesBuilder_ = new com.google.protobuf.SingleFieldBuilder<
5754 com.google.ortools.sat.RoutesConstraintProto, com.google.ortools.sat.RoutesConstraintProto.Builder, com.google.ortools.sat.RoutesConstraintProtoOrBuilder>(
5755 (com.google.ortools.sat.RoutesConstraintProto) constraint_,
5756 getParentForChildren(),
5757 isClean());
5758 constraint_ = null;
5759 }
5760 constraintCase_ = 23;
5761 onChanged();
5762 return routesBuilder_;
5763 }
5764
5765 private com.google.protobuf.SingleFieldBuilder<
5766 com.google.ortools.sat.TableConstraintProto, com.google.ortools.sat.TableConstraintProto.Builder, com.google.ortools.sat.TableConstraintProtoOrBuilder> tableBuilder_;
5776 @java.lang.Override
5777 public boolean hasTable() {
5778 return constraintCase_ == 16;
5779 }
5789 @java.lang.Override
5791 if (tableBuilder_ == null) {
5792 if (constraintCase_ == 16) {
5793 return (com.google.ortools.sat.TableConstraintProto) constraint_;
5794 }
5795 return com.google.ortools.sat.TableConstraintProto.getDefaultInstance();
5796 } else {
5797 if (constraintCase_ == 16) {
5798 return tableBuilder_.getMessage();
5799 }
5800 return com.google.ortools.sat.TableConstraintProto.getDefaultInstance();
5801 }
5802 }
5811 public Builder setTable(com.google.ortools.sat.TableConstraintProto value) {
5812 if (tableBuilder_ == null) {
5813 if (value == null) {
5814 throw new NullPointerException();
5815 }
5816 constraint_ = value;
5817 onChanged();
5818 } else {
5819 tableBuilder_.setMessage(value);
5820 }
5821 constraintCase_ = 16;
5822 return this;
5823 }
5833 com.google.ortools.sat.TableConstraintProto.Builder builderForValue) {
5834 if (tableBuilder_ == null) {
5835 constraint_ = builderForValue.build();
5836 onChanged();
5837 } else {
5838 tableBuilder_.setMessage(builderForValue.build());
5839 }
5840 constraintCase_ = 16;
5841 return this;
5842 }
5851 public Builder mergeTable(com.google.ortools.sat.TableConstraintProto value) {
5852 if (tableBuilder_ == null) {
5853 if (constraintCase_ == 16 &&
5854 constraint_ != com.google.ortools.sat.TableConstraintProto.getDefaultInstance()) {
5855 constraint_ = com.google.ortools.sat.TableConstraintProto.newBuilder((com.google.ortools.sat.TableConstraintProto) constraint_)
5856 .mergeFrom(value).buildPartial();
5857 } else {
5858 constraint_ = value;
5859 }
5860 onChanged();
5861 } else {
5862 if (constraintCase_ == 16) {
5863 tableBuilder_.mergeFrom(value);
5864 } else {
5865 tableBuilder_.setMessage(value);
5866 }
5867 }
5868 constraintCase_ = 16;
5869 return this;
5870 }
5880 if (tableBuilder_ == null) {
5881 if (constraintCase_ == 16) {
5882 constraintCase_ = 0;
5883 constraint_ = null;
5884 onChanged();
5885 }
5886 } else {
5887 if (constraintCase_ == 16) {
5888 constraintCase_ = 0;
5889 constraint_ = null;
5890 }
5891 tableBuilder_.clear();
5892 }
5893 return this;
5894 }
5904 return getTableFieldBuilder().getBuilder();
5905 }
5914 @java.lang.Override
5916 if ((constraintCase_ == 16) && (tableBuilder_ != null)) {
5917 return tableBuilder_.getMessageOrBuilder();
5918 } else {
5919 if (constraintCase_ == 16) {
5920 return (com.google.ortools.sat.TableConstraintProto) constraint_;
5921 }
5922 return com.google.ortools.sat.TableConstraintProto.getDefaultInstance();
5923 }
5924 }
5933 private com.google.protobuf.SingleFieldBuilder<
5934 com.google.ortools.sat.TableConstraintProto, com.google.ortools.sat.TableConstraintProto.Builder, com.google.ortools.sat.TableConstraintProtoOrBuilder>
5935 getTableFieldBuilder() {
5936 if (tableBuilder_ == null) {
5937 if (!(constraintCase_ == 16)) {
5938 constraint_ = com.google.ortools.sat.TableConstraintProto.getDefaultInstance();
5939 }
5940 tableBuilder_ = new com.google.protobuf.SingleFieldBuilder<
5941 com.google.ortools.sat.TableConstraintProto, com.google.ortools.sat.TableConstraintProto.Builder, com.google.ortools.sat.TableConstraintProtoOrBuilder>(
5942 (com.google.ortools.sat.TableConstraintProto) constraint_,
5943 getParentForChildren(),
5944 isClean());
5945 constraint_ = null;
5946 }
5947 constraintCase_ = 16;
5948 onChanged();
5949 return tableBuilder_;
5950 }
5951
5952 private com.google.protobuf.SingleFieldBuilder<
5953 com.google.ortools.sat.AutomatonConstraintProto, com.google.ortools.sat.AutomatonConstraintProto.Builder, com.google.ortools.sat.AutomatonConstraintProtoOrBuilder> automatonBuilder_;
5963 @java.lang.Override
5964 public boolean hasAutomaton() {
5965 return constraintCase_ == 17;
5966 }
5976 @java.lang.Override
5978 if (automatonBuilder_ == null) {
5979 if (constraintCase_ == 17) {
5980 return (com.google.ortools.sat.AutomatonConstraintProto) constraint_;
5981 }
5982 return com.google.ortools.sat.AutomatonConstraintProto.getDefaultInstance();
5983 } else {
5984 if (constraintCase_ == 17) {
5985 return automatonBuilder_.getMessage();
5986 }
5987 return com.google.ortools.sat.AutomatonConstraintProto.getDefaultInstance();
5988 }
5989 }
5998 public Builder setAutomaton(com.google.ortools.sat.AutomatonConstraintProto value) {
5999 if (automatonBuilder_ == null) {
6000 if (value == null) {
6001 throw new NullPointerException();
6002 }
6003 constraint_ = value;
6004 onChanged();
6005 } else {
6006 automatonBuilder_.setMessage(value);
6007 }
6008 constraintCase_ = 17;
6009 return this;
6010 }
6020 com.google.ortools.sat.AutomatonConstraintProto.Builder builderForValue) {
6021 if (automatonBuilder_ == null) {
6022 constraint_ = builderForValue.build();
6023 onChanged();
6024 } else {
6025 automatonBuilder_.setMessage(builderForValue.build());
6026 }
6027 constraintCase_ = 17;
6028 return this;
6029 }
6038 public Builder mergeAutomaton(com.google.ortools.sat.AutomatonConstraintProto value) {
6039 if (automatonBuilder_ == null) {
6040 if (constraintCase_ == 17 &&
6041 constraint_ != com.google.ortools.sat.AutomatonConstraintProto.getDefaultInstance()) {
6042 constraint_ = com.google.ortools.sat.AutomatonConstraintProto.newBuilder((com.google.ortools.sat.AutomatonConstraintProto) constraint_)
6043 .mergeFrom(value).buildPartial();
6044 } else {
6045 constraint_ = value;
6046 }
6047 onChanged();
6048 } else {
6049 if (constraintCase_ == 17) {
6050 automatonBuilder_.mergeFrom(value);
6051 } else {
6052 automatonBuilder_.setMessage(value);
6053 }
6054 }
6055 constraintCase_ = 17;
6056 return this;
6057 }
6067 if (automatonBuilder_ == null) {
6068 if (constraintCase_ == 17) {
6069 constraintCase_ = 0;
6070 constraint_ = null;
6071 onChanged();
6072 }
6073 } else {
6074 if (constraintCase_ == 17) {
6075 constraintCase_ = 0;
6076 constraint_ = null;
6077 }
6078 automatonBuilder_.clear();
6079 }
6080 return this;
6081 }
6091 return getAutomatonFieldBuilder().getBuilder();
6092 }
6101 @java.lang.Override
6103 if ((constraintCase_ == 17) && (automatonBuilder_ != null)) {
6104 return automatonBuilder_.getMessageOrBuilder();
6105 } else {
6106 if (constraintCase_ == 17) {
6107 return (com.google.ortools.sat.AutomatonConstraintProto) constraint_;
6108 }
6109 return com.google.ortools.sat.AutomatonConstraintProto.getDefaultInstance();
6110 }
6111 }
6120 private com.google.protobuf.SingleFieldBuilder<
6121 com.google.ortools.sat.AutomatonConstraintProto, com.google.ortools.sat.AutomatonConstraintProto.Builder, com.google.ortools.sat.AutomatonConstraintProtoOrBuilder>
6122 getAutomatonFieldBuilder() {
6123 if (automatonBuilder_ == null) {
6124 if (!(constraintCase_ == 17)) {
6125 constraint_ = com.google.ortools.sat.AutomatonConstraintProto.getDefaultInstance();
6126 }
6127 automatonBuilder_ = new com.google.protobuf.SingleFieldBuilder<
6128 com.google.ortools.sat.AutomatonConstraintProto, com.google.ortools.sat.AutomatonConstraintProto.Builder, com.google.ortools.sat.AutomatonConstraintProtoOrBuilder>(
6129 (com.google.ortools.sat.AutomatonConstraintProto) constraint_,
6130 getParentForChildren(),
6131 isClean());
6132 constraint_ = null;
6133 }
6134 constraintCase_ = 17;
6135 onChanged();
6136 return automatonBuilder_;
6137 }
6138
6139 private com.google.protobuf.SingleFieldBuilder<
6140 com.google.ortools.sat.InverseConstraintProto, com.google.ortools.sat.InverseConstraintProto.Builder, com.google.ortools.sat.InverseConstraintProtoOrBuilder> inverseBuilder_;
6150 @java.lang.Override
6151 public boolean hasInverse() {
6152 return constraintCase_ == 18;
6153 }
6163 @java.lang.Override
6165 if (inverseBuilder_ == null) {
6166 if (constraintCase_ == 18) {
6167 return (com.google.ortools.sat.InverseConstraintProto) constraint_;
6168 }
6169 return com.google.ortools.sat.InverseConstraintProto.getDefaultInstance();
6170 } else {
6171 if (constraintCase_ == 18) {
6172 return inverseBuilder_.getMessage();
6173 }
6174 return com.google.ortools.sat.InverseConstraintProto.getDefaultInstance();
6175 }
6176 }
6185 public Builder setInverse(com.google.ortools.sat.InverseConstraintProto value) {
6186 if (inverseBuilder_ == null) {
6187 if (value == null) {
6188 throw new NullPointerException();
6189 }
6190 constraint_ = value;
6191 onChanged();
6192 } else {
6193 inverseBuilder_.setMessage(value);
6194 }
6195 constraintCase_ = 18;
6196 return this;
6197 }
6207 com.google.ortools.sat.InverseConstraintProto.Builder builderForValue) {
6208 if (inverseBuilder_ == null) {
6209 constraint_ = builderForValue.build();
6210 onChanged();
6211 } else {
6212 inverseBuilder_.setMessage(builderForValue.build());
6213 }
6214 constraintCase_ = 18;
6215 return this;
6216 }
6225 public Builder mergeInverse(com.google.ortools.sat.InverseConstraintProto value) {
6226 if (inverseBuilder_ == null) {
6227 if (constraintCase_ == 18 &&
6228 constraint_ != com.google.ortools.sat.InverseConstraintProto.getDefaultInstance()) {
6229 constraint_ = com.google.ortools.sat.InverseConstraintProto.newBuilder((com.google.ortools.sat.InverseConstraintProto) constraint_)
6230 .mergeFrom(value).buildPartial();
6231 } else {
6232 constraint_ = value;
6233 }
6234 onChanged();
6235 } else {
6236 if (constraintCase_ == 18) {
6237 inverseBuilder_.mergeFrom(value);
6238 } else {
6239 inverseBuilder_.setMessage(value);
6240 }
6241 }
6242 constraintCase_ = 18;
6243 return this;
6244 }
6254 if (inverseBuilder_ == null) {
6255 if (constraintCase_ == 18) {
6256 constraintCase_ = 0;
6257 constraint_ = null;
6258 onChanged();
6259 }
6260 } else {
6261 if (constraintCase_ == 18) {
6262 constraintCase_ = 0;
6263 constraint_ = null;
6264 }
6265 inverseBuilder_.clear();
6266 }
6267 return this;
6268 }
6278 return getInverseFieldBuilder().getBuilder();
6279 }
6288 @java.lang.Override
6290 if ((constraintCase_ == 18) && (inverseBuilder_ != null)) {
6291 return inverseBuilder_.getMessageOrBuilder();
6292 } else {
6293 if (constraintCase_ == 18) {
6294 return (com.google.ortools.sat.InverseConstraintProto) constraint_;
6295 }
6296 return com.google.ortools.sat.InverseConstraintProto.getDefaultInstance();
6297 }
6298 }
6307 private com.google.protobuf.SingleFieldBuilder<
6308 com.google.ortools.sat.InverseConstraintProto, com.google.ortools.sat.InverseConstraintProto.Builder, com.google.ortools.sat.InverseConstraintProtoOrBuilder>
6309 getInverseFieldBuilder() {
6310 if (inverseBuilder_ == null) {
6311 if (!(constraintCase_ == 18)) {
6312 constraint_ = com.google.ortools.sat.InverseConstraintProto.getDefaultInstance();
6313 }
6314 inverseBuilder_ = new com.google.protobuf.SingleFieldBuilder<
6315 com.google.ortools.sat.InverseConstraintProto, com.google.ortools.sat.InverseConstraintProto.Builder, com.google.ortools.sat.InverseConstraintProtoOrBuilder>(
6316 (com.google.ortools.sat.InverseConstraintProto) constraint_,
6317 getParentForChildren(),
6318 isClean());
6319 constraint_ = null;
6320 }
6321 constraintCase_ = 18;
6322 onChanged();
6323 return inverseBuilder_;
6324 }
6325
6326 private com.google.protobuf.SingleFieldBuilder<
6327 com.google.ortools.sat.ReservoirConstraintProto, com.google.ortools.sat.ReservoirConstraintProto.Builder, com.google.ortools.sat.ReservoirConstraintProtoOrBuilder> reservoirBuilder_;
6338 @java.lang.Override
6339 public boolean hasReservoir() {
6340 return constraintCase_ == 24;
6341 }
6352 @java.lang.Override
6354 if (reservoirBuilder_ == null) {
6355 if (constraintCase_ == 24) {
6356 return (com.google.ortools.sat.ReservoirConstraintProto) constraint_;
6357 }
6358 return com.google.ortools.sat.ReservoirConstraintProto.getDefaultInstance();
6359 } else {
6360 if (constraintCase_ == 24) {
6361 return reservoirBuilder_.getMessage();
6362 }
6363 return com.google.ortools.sat.ReservoirConstraintProto.getDefaultInstance();
6364 }
6365 }
6375 public Builder setReservoir(com.google.ortools.sat.ReservoirConstraintProto value) {
6376 if (reservoirBuilder_ == null) {
6377 if (value == null) {
6378 throw new NullPointerException();
6379 }
6380 constraint_ = value;
6381 onChanged();
6382 } else {
6383 reservoirBuilder_.setMessage(value);
6384 }
6385 constraintCase_ = 24;
6386 return this;
6387 }
6398 com.google.ortools.sat.ReservoirConstraintProto.Builder builderForValue) {
6399 if (reservoirBuilder_ == null) {
6400 constraint_ = builderForValue.build();
6401 onChanged();
6402 } else {
6403 reservoirBuilder_.setMessage(builderForValue.build());
6404 }
6405 constraintCase_ = 24;
6406 return this;
6407 }
6417 public Builder mergeReservoir(com.google.ortools.sat.ReservoirConstraintProto value) {
6418 if (reservoirBuilder_ == null) {
6419 if (constraintCase_ == 24 &&
6420 constraint_ != com.google.ortools.sat.ReservoirConstraintProto.getDefaultInstance()) {
6421 constraint_ = com.google.ortools.sat.ReservoirConstraintProto.newBuilder((com.google.ortools.sat.ReservoirConstraintProto) constraint_)
6422 .mergeFrom(value).buildPartial();
6423 } else {
6424 constraint_ = value;
6425 }
6426 onChanged();
6427 } else {
6428 if (constraintCase_ == 24) {
6429 reservoirBuilder_.mergeFrom(value);
6430 } else {
6431 reservoirBuilder_.setMessage(value);
6432 }
6433 }
6434 constraintCase_ = 24;
6435 return this;
6436 }
6447 if (reservoirBuilder_ == null) {
6448 if (constraintCase_ == 24) {
6449 constraintCase_ = 0;
6450 constraint_ = null;
6451 onChanged();
6452 }
6453 } else {
6454 if (constraintCase_ == 24) {
6455 constraintCase_ = 0;
6456 constraint_ = null;
6457 }
6458 reservoirBuilder_.clear();
6459 }
6460 return this;
6461 }
6472 return getReservoirFieldBuilder().getBuilder();
6473 }
6483 @java.lang.Override
6485 if ((constraintCase_ == 24) && (reservoirBuilder_ != null)) {
6486 return reservoirBuilder_.getMessageOrBuilder();
6487 } else {
6488 if (constraintCase_ == 24) {
6489 return (com.google.ortools.sat.ReservoirConstraintProto) constraint_;
6490 }
6491 return com.google.ortools.sat.ReservoirConstraintProto.getDefaultInstance();
6492 }
6493 }
6503 private com.google.protobuf.SingleFieldBuilder<
6504 com.google.ortools.sat.ReservoirConstraintProto, com.google.ortools.sat.ReservoirConstraintProto.Builder, com.google.ortools.sat.ReservoirConstraintProtoOrBuilder>
6505 getReservoirFieldBuilder() {
6506 if (reservoirBuilder_ == null) {
6507 if (!(constraintCase_ == 24)) {
6508 constraint_ = com.google.ortools.sat.ReservoirConstraintProto.getDefaultInstance();
6509 }
6510 reservoirBuilder_ = new com.google.protobuf.SingleFieldBuilder<
6511 com.google.ortools.sat.ReservoirConstraintProto, com.google.ortools.sat.ReservoirConstraintProto.Builder, com.google.ortools.sat.ReservoirConstraintProtoOrBuilder>(
6512 (com.google.ortools.sat.ReservoirConstraintProto) constraint_,
6513 getParentForChildren(),
6514 isClean());
6515 constraint_ = null;
6516 }
6517 constraintCase_ = 24;
6518 onChanged();
6519 return reservoirBuilder_;
6520 }
6521
6522 private com.google.protobuf.SingleFieldBuilder<
6523 com.google.ortools.sat.IntervalConstraintProto, com.google.ortools.sat.IntervalConstraintProto.Builder, com.google.ortools.sat.IntervalConstraintProtoOrBuilder> intervalBuilder_;
6533 @java.lang.Override
6534 public boolean hasInterval() {
6535 return constraintCase_ == 19;
6536 }
6546 @java.lang.Override
6548 if (intervalBuilder_ == null) {
6549 if (constraintCase_ == 19) {
6550 return (com.google.ortools.sat.IntervalConstraintProto) constraint_;
6551 }
6552 return com.google.ortools.sat.IntervalConstraintProto.getDefaultInstance();
6553 } else {
6554 if (constraintCase_ == 19) {
6555 return intervalBuilder_.getMessage();
6556 }
6557 return com.google.ortools.sat.IntervalConstraintProto.getDefaultInstance();
6558 }
6559 }
6568 public Builder setInterval(com.google.ortools.sat.IntervalConstraintProto value) {
6569 if (intervalBuilder_ == null) {
6570 if (value == null) {
6571 throw new NullPointerException();
6572 }
6573 constraint_ = value;
6574 onChanged();
6575 } else {
6576 intervalBuilder_.setMessage(value);
6577 }
6578 constraintCase_ = 19;
6579 return this;
6580 }
6590 com.google.ortools.sat.IntervalConstraintProto.Builder builderForValue) {
6591 if (intervalBuilder_ == null) {
6592 constraint_ = builderForValue.build();
6593 onChanged();
6594 } else {
6595 intervalBuilder_.setMessage(builderForValue.build());
6596 }
6597 constraintCase_ = 19;
6598 return this;
6599 }
6608 public Builder mergeInterval(com.google.ortools.sat.IntervalConstraintProto value) {
6609 if (intervalBuilder_ == null) {
6610 if (constraintCase_ == 19 &&
6611 constraint_ != com.google.ortools.sat.IntervalConstraintProto.getDefaultInstance()) {
6612 constraint_ = com.google.ortools.sat.IntervalConstraintProto.newBuilder((com.google.ortools.sat.IntervalConstraintProto) constraint_)
6613 .mergeFrom(value).buildPartial();
6614 } else {
6615 constraint_ = value;
6616 }
6617 onChanged();
6618 } else {
6619 if (constraintCase_ == 19) {
6620 intervalBuilder_.mergeFrom(value);
6621 } else {
6622 intervalBuilder_.setMessage(value);
6623 }
6624 }
6625 constraintCase_ = 19;
6626 return this;
6627 }
6637 if (intervalBuilder_ == null) {
6638 if (constraintCase_ == 19) {
6639 constraintCase_ = 0;
6640 constraint_ = null;
6641 onChanged();
6642 }
6643 } else {
6644 if (constraintCase_ == 19) {
6645 constraintCase_ = 0;
6646 constraint_ = null;
6647 }
6648 intervalBuilder_.clear();
6649 }
6650 return this;
6651 }
6661 return getIntervalFieldBuilder().getBuilder();
6662 }
6671 @java.lang.Override
6673 if ((constraintCase_ == 19) && (intervalBuilder_ != null)) {
6674 return intervalBuilder_.getMessageOrBuilder();
6675 } else {
6676 if (constraintCase_ == 19) {
6677 return (com.google.ortools.sat.IntervalConstraintProto) constraint_;
6678 }
6679 return com.google.ortools.sat.IntervalConstraintProto.getDefaultInstance();
6680 }
6681 }
6690 private com.google.protobuf.SingleFieldBuilder<
6691 com.google.ortools.sat.IntervalConstraintProto, com.google.ortools.sat.IntervalConstraintProto.Builder, com.google.ortools.sat.IntervalConstraintProtoOrBuilder>
6692 getIntervalFieldBuilder() {
6693 if (intervalBuilder_ == null) {
6694 if (!(constraintCase_ == 19)) {
6695 constraint_ = com.google.ortools.sat.IntervalConstraintProto.getDefaultInstance();
6696 }
6697 intervalBuilder_ = new com.google.protobuf.SingleFieldBuilder<
6698 com.google.ortools.sat.IntervalConstraintProto, com.google.ortools.sat.IntervalConstraintProto.Builder, com.google.ortools.sat.IntervalConstraintProtoOrBuilder>(
6699 (com.google.ortools.sat.IntervalConstraintProto) constraint_,
6700 getParentForChildren(),
6701 isClean());
6702 constraint_ = null;
6703 }
6704 constraintCase_ = 19;
6705 onChanged();
6706 return intervalBuilder_;
6707 }
6708
6709 private com.google.protobuf.SingleFieldBuilder<
6710 com.google.ortools.sat.NoOverlapConstraintProto, com.google.ortools.sat.NoOverlapConstraintProto.Builder, com.google.ortools.sat.NoOverlapConstraintProtoOrBuilder> noOverlapBuilder_;
6721 @java.lang.Override
6722 public boolean hasNoOverlap() {
6723 return constraintCase_ == 20;
6724 }
6735 @java.lang.Override
6737 if (noOverlapBuilder_ == null) {
6738 if (constraintCase_ == 20) {
6739 return (com.google.ortools.sat.NoOverlapConstraintProto) constraint_;
6740 }
6741 return com.google.ortools.sat.NoOverlapConstraintProto.getDefaultInstance();
6742 } else {
6743 if (constraintCase_ == 20) {
6744 return noOverlapBuilder_.getMessage();
6745 }
6746 return com.google.ortools.sat.NoOverlapConstraintProto.getDefaultInstance();
6747 }
6748 }
6758 public Builder setNoOverlap(com.google.ortools.sat.NoOverlapConstraintProto value) {
6759 if (noOverlapBuilder_ == null) {
6760 if (value == null) {
6761 throw new NullPointerException();
6762 }
6763 constraint_ = value;
6764 onChanged();
6765 } else {
6766 noOverlapBuilder_.setMessage(value);
6767 }
6768 constraintCase_ = 20;
6769 return this;
6770 }
6781 com.google.ortools.sat.NoOverlapConstraintProto.Builder builderForValue) {
6782 if (noOverlapBuilder_ == null) {
6783 constraint_ = builderForValue.build();
6784 onChanged();
6785 } else {
6786 noOverlapBuilder_.setMessage(builderForValue.build());
6787 }
6788 constraintCase_ = 20;
6789 return this;
6790 }
6800 public Builder mergeNoOverlap(com.google.ortools.sat.NoOverlapConstraintProto value) {
6801 if (noOverlapBuilder_ == null) {
6802 if (constraintCase_ == 20 &&
6803 constraint_ != com.google.ortools.sat.NoOverlapConstraintProto.getDefaultInstance()) {
6804 constraint_ = com.google.ortools.sat.NoOverlapConstraintProto.newBuilder((com.google.ortools.sat.NoOverlapConstraintProto) constraint_)
6805 .mergeFrom(value).buildPartial();
6806 } else {
6807 constraint_ = value;
6808 }
6809 onChanged();
6810 } else {
6811 if (constraintCase_ == 20) {
6812 noOverlapBuilder_.mergeFrom(value);
6813 } else {
6814 noOverlapBuilder_.setMessage(value);
6815 }
6816 }
6817 constraintCase_ = 20;
6818 return this;
6819 }
6830 if (noOverlapBuilder_ == null) {
6831 if (constraintCase_ == 20) {
6832 constraintCase_ = 0;
6833 constraint_ = null;
6834 onChanged();
6835 }
6836 } else {
6837 if (constraintCase_ == 20) {
6838 constraintCase_ = 0;
6839 constraint_ = null;
6840 }
6841 noOverlapBuilder_.clear();
6842 }
6843 return this;
6844 }
6855 return getNoOverlapFieldBuilder().getBuilder();
6856 }
6866 @java.lang.Override
6868 if ((constraintCase_ == 20) && (noOverlapBuilder_ != null)) {
6869 return noOverlapBuilder_.getMessageOrBuilder();
6870 } else {
6871 if (constraintCase_ == 20) {
6872 return (com.google.ortools.sat.NoOverlapConstraintProto) constraint_;
6873 }
6874 return com.google.ortools.sat.NoOverlapConstraintProto.getDefaultInstance();
6875 }
6876 }
6886 private com.google.protobuf.SingleFieldBuilder<
6887 com.google.ortools.sat.NoOverlapConstraintProto, com.google.ortools.sat.NoOverlapConstraintProto.Builder, com.google.ortools.sat.NoOverlapConstraintProtoOrBuilder>
6888 getNoOverlapFieldBuilder() {
6889 if (noOverlapBuilder_ == null) {
6890 if (!(constraintCase_ == 20)) {
6891 constraint_ = com.google.ortools.sat.NoOverlapConstraintProto.getDefaultInstance();
6892 }
6893 noOverlapBuilder_ = new com.google.protobuf.SingleFieldBuilder<
6894 com.google.ortools.sat.NoOverlapConstraintProto, com.google.ortools.sat.NoOverlapConstraintProto.Builder, com.google.ortools.sat.NoOverlapConstraintProtoOrBuilder>(
6895 (com.google.ortools.sat.NoOverlapConstraintProto) constraint_,
6896 getParentForChildren(),
6897 isClean());
6898 constraint_ = null;
6899 }
6900 constraintCase_ = 20;
6901 onChanged();
6902 return noOverlapBuilder_;
6903 }
6904
6905 private com.google.protobuf.SingleFieldBuilder<
6906 com.google.ortools.sat.NoOverlap2DConstraintProto, com.google.ortools.sat.NoOverlap2DConstraintProto.Builder, com.google.ortools.sat.NoOverlap2DConstraintProtoOrBuilder> noOverlap2DBuilder_;
6915 @java.lang.Override
6916 public boolean hasNoOverlap2D() {
6917 return constraintCase_ == 21;
6918 }
6927 @java.lang.Override
6929 if (noOverlap2DBuilder_ == null) {
6930 if (constraintCase_ == 21) {
6931 return (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_;
6932 }
6933 return com.google.ortools.sat.NoOverlap2DConstraintProto.getDefaultInstance();
6934 } else {
6935 if (constraintCase_ == 21) {
6936 return noOverlap2DBuilder_.getMessage();
6937 }
6938 return com.google.ortools.sat.NoOverlap2DConstraintProto.getDefaultInstance();
6939 }
6940 }
6948 public Builder setNoOverlap2D(com.google.ortools.sat.NoOverlap2DConstraintProto value) {
6949 if (noOverlap2DBuilder_ == null) {
6950 if (value == null) {
6951 throw new NullPointerException();
6952 }
6953 constraint_ = value;
6954 onChanged();
6955 } else {
6956 noOverlap2DBuilder_.setMessage(value);
6957 }
6958 constraintCase_ = 21;
6959 return this;
6960 }
6969 com.google.ortools.sat.NoOverlap2DConstraintProto.Builder builderForValue) {
6970 if (noOverlap2DBuilder_ == null) {
6971 constraint_ = builderForValue.build();
6972 onChanged();
6973 } else {
6974 noOverlap2DBuilder_.setMessage(builderForValue.build());
6975 }
6976 constraintCase_ = 21;
6977 return this;
6978 }
6986 public Builder mergeNoOverlap2D(com.google.ortools.sat.NoOverlap2DConstraintProto value) {
6987 if (noOverlap2DBuilder_ == null) {
6988 if (constraintCase_ == 21 &&
6989 constraint_ != com.google.ortools.sat.NoOverlap2DConstraintProto.getDefaultInstance()) {
6990 constraint_ = com.google.ortools.sat.NoOverlap2DConstraintProto.newBuilder((com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_)
6991 .mergeFrom(value).buildPartial();
6992 } else {
6993 constraint_ = value;
6994 }
6995 onChanged();
6996 } else {
6997 if (constraintCase_ == 21) {
6998 noOverlap2DBuilder_.mergeFrom(value);
6999 } else {
7000 noOverlap2DBuilder_.setMessage(value);
7001 }
7002 }
7003 constraintCase_ = 21;
7004 return this;
7005 }
7014 if (noOverlap2DBuilder_ == null) {
7015 if (constraintCase_ == 21) {
7016 constraintCase_ = 0;
7017 constraint_ = null;
7018 onChanged();
7019 }
7020 } else {
7021 if (constraintCase_ == 21) {
7022 constraintCase_ = 0;
7023 constraint_ = null;
7024 }
7025 noOverlap2DBuilder_.clear();
7026 }
7027 return this;
7028 }
7037 return getNoOverlap2DFieldBuilder().getBuilder();
7038 }
7046 @java.lang.Override
7048 if ((constraintCase_ == 21) && (noOverlap2DBuilder_ != null)) {
7049 return noOverlap2DBuilder_.getMessageOrBuilder();
7050 } else {
7051 if (constraintCase_ == 21) {
7052 return (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_;
7053 }
7054 return com.google.ortools.sat.NoOverlap2DConstraintProto.getDefaultInstance();
7055 }
7056 }
7064 private com.google.protobuf.SingleFieldBuilder<
7065 com.google.ortools.sat.NoOverlap2DConstraintProto, com.google.ortools.sat.NoOverlap2DConstraintProto.Builder, com.google.ortools.sat.NoOverlap2DConstraintProtoOrBuilder>
7066 getNoOverlap2DFieldBuilder() {
7067 if (noOverlap2DBuilder_ == null) {
7068 if (!(constraintCase_ == 21)) {
7069 constraint_ = com.google.ortools.sat.NoOverlap2DConstraintProto.getDefaultInstance();
7070 }
7071 noOverlap2DBuilder_ = new com.google.protobuf.SingleFieldBuilder<
7072 com.google.ortools.sat.NoOverlap2DConstraintProto, com.google.ortools.sat.NoOverlap2DConstraintProto.Builder, com.google.ortools.sat.NoOverlap2DConstraintProtoOrBuilder>(
7073 (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_,
7074 getParentForChildren(),
7075 isClean());
7076 constraint_ = null;
7077 }
7078 constraintCase_ = 21;
7079 onChanged();
7080 return noOverlap2DBuilder_;
7081 }
7082
7083 private com.google.protobuf.SingleFieldBuilder<
7084 com.google.ortools.sat.CumulativeConstraintProto, com.google.ortools.sat.CumulativeConstraintProto.Builder, com.google.ortools.sat.CumulativeConstraintProtoOrBuilder> cumulativeBuilder_;
7095 @java.lang.Override
7096 public boolean hasCumulative() {
7097 return constraintCase_ == 22;
7098 }
7109 @java.lang.Override
7111 if (cumulativeBuilder_ == null) {
7112 if (constraintCase_ == 22) {
7113 return (com.google.ortools.sat.CumulativeConstraintProto) constraint_;
7114 }
7115 return com.google.ortools.sat.CumulativeConstraintProto.getDefaultInstance();
7116 } else {
7117 if (constraintCase_ == 22) {
7118 return cumulativeBuilder_.getMessage();
7119 }
7120 return com.google.ortools.sat.CumulativeConstraintProto.getDefaultInstance();
7121 }
7122 }
7132 public Builder setCumulative(com.google.ortools.sat.CumulativeConstraintProto value) {
7133 if (cumulativeBuilder_ == null) {
7134 if (value == null) {
7135 throw new NullPointerException();
7136 }
7137 constraint_ = value;
7138 onChanged();
7139 } else {
7140 cumulativeBuilder_.setMessage(value);
7141 }
7142 constraintCase_ = 22;
7143 return this;
7144 }
7155 com.google.ortools.sat.CumulativeConstraintProto.Builder builderForValue) {
7156 if (cumulativeBuilder_ == null) {
7157 constraint_ = builderForValue.build();
7158 onChanged();
7159 } else {
7160 cumulativeBuilder_.setMessage(builderForValue.build());
7161 }
7162 constraintCase_ = 22;
7163 return this;
7164 }
7174 public Builder mergeCumulative(com.google.ortools.sat.CumulativeConstraintProto value) {
7175 if (cumulativeBuilder_ == null) {
7176 if (constraintCase_ == 22 &&
7177 constraint_ != com.google.ortools.sat.CumulativeConstraintProto.getDefaultInstance()) {
7178 constraint_ = com.google.ortools.sat.CumulativeConstraintProto.newBuilder((com.google.ortools.sat.CumulativeConstraintProto) constraint_)
7179 .mergeFrom(value).buildPartial();
7180 } else {
7181 constraint_ = value;
7182 }
7183 onChanged();
7184 } else {
7185 if (constraintCase_ == 22) {
7186 cumulativeBuilder_.mergeFrom(value);
7187 } else {
7188 cumulativeBuilder_.setMessage(value);
7189 }
7190 }
7191 constraintCase_ = 22;
7192 return this;
7193 }
7204 if (cumulativeBuilder_ == null) {
7205 if (constraintCase_ == 22) {
7206 constraintCase_ = 0;
7207 constraint_ = null;
7208 onChanged();
7209 }
7210 } else {
7211 if (constraintCase_ == 22) {
7212 constraintCase_ = 0;
7213 constraint_ = null;
7214 }
7215 cumulativeBuilder_.clear();
7216 }
7217 return this;
7218 }
7229 return getCumulativeFieldBuilder().getBuilder();
7230 }
7240 @java.lang.Override
7242 if ((constraintCase_ == 22) && (cumulativeBuilder_ != null)) {
7243 return cumulativeBuilder_.getMessageOrBuilder();
7244 } else {
7245 if (constraintCase_ == 22) {
7246 return (com.google.ortools.sat.CumulativeConstraintProto) constraint_;
7247 }
7248 return com.google.ortools.sat.CumulativeConstraintProto.getDefaultInstance();
7249 }
7250 }
7260 private com.google.protobuf.SingleFieldBuilder<
7261 com.google.ortools.sat.CumulativeConstraintProto, com.google.ortools.sat.CumulativeConstraintProto.Builder, com.google.ortools.sat.CumulativeConstraintProtoOrBuilder>
7262 getCumulativeFieldBuilder() {
7263 if (cumulativeBuilder_ == null) {
7264 if (!(constraintCase_ == 22)) {
7265 constraint_ = com.google.ortools.sat.CumulativeConstraintProto.getDefaultInstance();
7266 }
7267 cumulativeBuilder_ = new com.google.protobuf.SingleFieldBuilder<
7268 com.google.ortools.sat.CumulativeConstraintProto, com.google.ortools.sat.CumulativeConstraintProto.Builder, com.google.ortools.sat.CumulativeConstraintProtoOrBuilder>(
7269 (com.google.ortools.sat.CumulativeConstraintProto) constraint_,
7270 getParentForChildren(),
7271 isClean());
7272 constraint_ = null;
7273 }
7274 constraintCase_ = 22;
7275 onChanged();
7276 return cumulativeBuilder_;
7277 }
7278
7279 private com.google.protobuf.SingleFieldBuilder<
7280 com.google.ortools.sat.ListOfVariablesProto, com.google.ortools.sat.ListOfVariablesProto.Builder, com.google.ortools.sat.ListOfVariablesProtoOrBuilder> dummyConstraintBuilder_;
7290 @java.lang.Override
7291 public boolean hasDummyConstraint() {
7292 return constraintCase_ == 30;
7293 }
7303 @java.lang.Override
7305 if (dummyConstraintBuilder_ == null) {
7306 if (constraintCase_ == 30) {
7307 return (com.google.ortools.sat.ListOfVariablesProto) constraint_;
7308 }
7309 return com.google.ortools.sat.ListOfVariablesProto.getDefaultInstance();
7310 } else {
7311 if (constraintCase_ == 30) {
7312 return dummyConstraintBuilder_.getMessage();
7313 }
7314 return com.google.ortools.sat.ListOfVariablesProto.getDefaultInstance();
7315 }
7316 }
7325 public Builder setDummyConstraint(com.google.ortools.sat.ListOfVariablesProto value) {
7326 if (dummyConstraintBuilder_ == null) {
7327 if (value == null) {
7328 throw new NullPointerException();
7329 }
7330 constraint_ = value;
7331 onChanged();
7332 } else {
7333 dummyConstraintBuilder_.setMessage(value);
7334 }
7335 constraintCase_ = 30;
7336 return this;
7337 }
7347 com.google.ortools.sat.ListOfVariablesProto.Builder builderForValue) {
7348 if (dummyConstraintBuilder_ == null) {
7349 constraint_ = builderForValue.build();
7350 onChanged();
7351 } else {
7352 dummyConstraintBuilder_.setMessage(builderForValue.build());
7353 }
7354 constraintCase_ = 30;
7355 return this;
7356 }
7365 public Builder mergeDummyConstraint(com.google.ortools.sat.ListOfVariablesProto value) {
7366 if (dummyConstraintBuilder_ == null) {
7367 if (constraintCase_ == 30 &&
7368 constraint_ != com.google.ortools.sat.ListOfVariablesProto.getDefaultInstance()) {
7369 constraint_ = com.google.ortools.sat.ListOfVariablesProto.newBuilder((com.google.ortools.sat.ListOfVariablesProto) constraint_)
7370 .mergeFrom(value).buildPartial();
7371 } else {
7372 constraint_ = value;
7373 }
7374 onChanged();
7375 } else {
7376 if (constraintCase_ == 30) {
7377 dummyConstraintBuilder_.mergeFrom(value);
7378 } else {
7379 dummyConstraintBuilder_.setMessage(value);
7380 }
7381 }
7382 constraintCase_ = 30;
7383 return this;
7384 }
7394 if (dummyConstraintBuilder_ == null) {
7395 if (constraintCase_ == 30) {
7396 constraintCase_ = 0;
7397 constraint_ = null;
7398 onChanged();
7399 }
7400 } else {
7401 if (constraintCase_ == 30) {
7402 constraintCase_ = 0;
7403 constraint_ = null;
7404 }
7405 dummyConstraintBuilder_.clear();
7406 }
7407 return this;
7408 }
7418 return getDummyConstraintFieldBuilder().getBuilder();
7419 }
7428 @java.lang.Override
7430 if ((constraintCase_ == 30) && (dummyConstraintBuilder_ != null)) {
7431 return dummyConstraintBuilder_.getMessageOrBuilder();
7432 } else {
7433 if (constraintCase_ == 30) {
7434 return (com.google.ortools.sat.ListOfVariablesProto) constraint_;
7435 }
7436 return com.google.ortools.sat.ListOfVariablesProto.getDefaultInstance();
7437 }
7438 }
7447 private com.google.protobuf.SingleFieldBuilder<
7448 com.google.ortools.sat.ListOfVariablesProto, com.google.ortools.sat.ListOfVariablesProto.Builder, com.google.ortools.sat.ListOfVariablesProtoOrBuilder>
7449 getDummyConstraintFieldBuilder() {
7450 if (dummyConstraintBuilder_ == null) {
7451 if (!(constraintCase_ == 30)) {
7452 constraint_ = com.google.ortools.sat.ListOfVariablesProto.getDefaultInstance();
7453 }
7454 dummyConstraintBuilder_ = new com.google.protobuf.SingleFieldBuilder<
7455 com.google.ortools.sat.ListOfVariablesProto, com.google.ortools.sat.ListOfVariablesProto.Builder, com.google.ortools.sat.ListOfVariablesProtoOrBuilder>(
7456 (com.google.ortools.sat.ListOfVariablesProto) constraint_,
7457 getParentForChildren(),
7458 isClean());
7459 constraint_ = null;
7460 }
7461 constraintCase_ = 30;
7462 onChanged();
7463 return dummyConstraintBuilder_;
7464 }
7465
7466 // @@protoc_insertion_point(builder_scope:operations_research.sat.ConstraintProto)
7467 }
7468
7469 // @@protoc_insertion_point(class_scope:operations_research.sat.ConstraintProto)
7470 private static final com.google.ortools.sat.ConstraintProto DEFAULT_INSTANCE;
7471 static {
7472 DEFAULT_INSTANCE = new com.google.ortools.sat.ConstraintProto();
7473 }
7474
7476 return DEFAULT_INSTANCE;
7477 }
7478
7479 private static final com.google.protobuf.Parser<ConstraintProto>
7480 PARSER = new com.google.protobuf.AbstractParser<ConstraintProto>() {
7481 @java.lang.Override
7482 public ConstraintProto parsePartialFrom(
7483 com.google.protobuf.CodedInputStream input,
7484 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7485 throws com.google.protobuf.InvalidProtocolBufferException {
7486 Builder builder = newBuilder();
7487 try {
7488 builder.mergeFrom(input, extensionRegistry);
7489 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
7490 throw e.setUnfinishedMessage(builder.buildPartial());
7491 } catch (com.google.protobuf.UninitializedMessageException e) {
7492 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
7493 } catch (java.io.IOException e) {
7494 throw new com.google.protobuf.InvalidProtocolBufferException(e)
7495 .setUnfinishedMessage(builder.buildPartial());
7496 }
7497 return builder.buildPartial();
7498 }
7499 };
7500
7501 public static com.google.protobuf.Parser<ConstraintProto> parser() {
7502 return PARSER;
7503 }
7504
7505 @java.lang.Override
7506 public com.google.protobuf.Parser<ConstraintProto> getParserForType() {
7507 return PARSER;
7508 }
7509
7510 @java.lang.Override
7512 return DEFAULT_INSTANCE;
7513 }
7514
7515}
7516
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)
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 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()
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 mergeAtMostOne(com.google.ortools.sat.BoolArgumentProto value)
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)
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()
com.google.ortools.sat.AllDifferentConstraintProto.Builder getAllDiffBuilder()
Builder mergeTable(com.google.ortools.sat.TableConstraintProto 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.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
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()
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
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()
Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
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()
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.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()