Java Reference

Java Reference

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
4package com.google.ortools.sat;
5
13public final class ConstraintProto extends
14 com.google.protobuf.GeneratedMessageV3 implements
15 // @@protoc_insertion_point(message_implements:operations_research.sat.ConstraintProto)
17private static final long serialVersionUID = 0L;
18 // Use ConstraintProto.newBuilder() to construct.
19 private ConstraintProto(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
20 super(builder);
21 }
22 private ConstraintProto() {
23 name_ = "";
24 enforcementLiteral_ = emptyIntList();
25 }
26
27 @java.lang.Override
28 @SuppressWarnings({"unused"})
29 protected java.lang.Object newInstance(
30 UnusedPrivateParameter unused) {
31 return new ConstraintProto();
32 }
33
34 @java.lang.Override
35 public final com.google.protobuf.UnknownFieldSet
37 return this.unknownFields;
38 }
39 private ConstraintProto(
40 com.google.protobuf.CodedInputStream input,
41 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
42 throws com.google.protobuf.InvalidProtocolBufferException {
43 this();
44 if (extensionRegistry == null) {
45 throw new java.lang.NullPointerException();
46 }
47 int mutable_bitField0_ = 0;
48 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
49 com.google.protobuf.UnknownFieldSet.newBuilder();
50 try {
51 boolean done = false;
52 while (!done) {
53 int tag = input.readTag();
54 switch (tag) {
55 case 0:
56 done = true;
57 break;
58 case 10: {
59 java.lang.String s = input.readStringRequireUtf8();
60
61 name_ = s;
62 break;
63 }
64 case 16: {
65 if (!((mutable_bitField0_ & 0x00000001) != 0)) {
66 enforcementLiteral_ = newIntList();
67 mutable_bitField0_ |= 0x00000001;
68 }
69 enforcementLiteral_.addInt(input.readInt32());
70 break;
71 }
72 case 18: {
73 int length = input.readRawVarint32();
74 int limit = input.pushLimit(length);
75 if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
76 enforcementLiteral_ = newIntList();
77 mutable_bitField0_ |= 0x00000001;
78 }
79 while (input.getBytesUntilLimit() > 0) {
80 enforcementLiteral_.addInt(input.readInt32());
81 }
82 input.popLimit(limit);
83 break;
84 }
85 case 26: {
86 com.google.ortools.sat.BoolArgumentProto.Builder subBuilder = null;
87 if (constraintCase_ == 3) {
88 subBuilder = ((com.google.ortools.sat.BoolArgumentProto) constraint_).toBuilder();
89 }
90 constraint_ =
91 input.readMessage(com.google.ortools.sat.BoolArgumentProto.parser(), extensionRegistry);
92 if (subBuilder != null) {
93 subBuilder.mergeFrom((com.google.ortools.sat.BoolArgumentProto) constraint_);
94 constraint_ = subBuilder.buildPartial();
95 }
96 constraintCase_ = 3;
97 break;
98 }
99 case 34: {
100 com.google.ortools.sat.BoolArgumentProto.Builder subBuilder = null;
101 if (constraintCase_ == 4) {
102 subBuilder = ((com.google.ortools.sat.BoolArgumentProto) constraint_).toBuilder();
103 }
104 constraint_ =
105 input.readMessage(com.google.ortools.sat.BoolArgumentProto.parser(), extensionRegistry);
106 if (subBuilder != null) {
107 subBuilder.mergeFrom((com.google.ortools.sat.BoolArgumentProto) constraint_);
108 constraint_ = subBuilder.buildPartial();
109 }
110 constraintCase_ = 4;
111 break;
112 }
113 case 42: {
114 com.google.ortools.sat.BoolArgumentProto.Builder subBuilder = null;
115 if (constraintCase_ == 5) {
116 subBuilder = ((com.google.ortools.sat.BoolArgumentProto) constraint_).toBuilder();
117 }
118 constraint_ =
119 input.readMessage(com.google.ortools.sat.BoolArgumentProto.parser(), extensionRegistry);
120 if (subBuilder != null) {
121 subBuilder.mergeFrom((com.google.ortools.sat.BoolArgumentProto) constraint_);
122 constraint_ = subBuilder.buildPartial();
123 }
124 constraintCase_ = 5;
125 break;
126 }
127 case 58: {
128 com.google.ortools.sat.LinearArgumentProto.Builder subBuilder = null;
129 if (constraintCase_ == 7) {
130 subBuilder = ((com.google.ortools.sat.LinearArgumentProto) constraint_).toBuilder();
131 }
132 constraint_ =
133 input.readMessage(com.google.ortools.sat.LinearArgumentProto.parser(), extensionRegistry);
134 if (subBuilder != null) {
135 subBuilder.mergeFrom((com.google.ortools.sat.LinearArgumentProto) constraint_);
136 constraint_ = subBuilder.buildPartial();
137 }
138 constraintCase_ = 7;
139 break;
140 }
141 case 66: {
142 com.google.ortools.sat.LinearArgumentProto.Builder subBuilder = null;
143 if (constraintCase_ == 8) {
144 subBuilder = ((com.google.ortools.sat.LinearArgumentProto) constraint_).toBuilder();
145 }
146 constraint_ =
147 input.readMessage(com.google.ortools.sat.LinearArgumentProto.parser(), extensionRegistry);
148 if (subBuilder != null) {
149 subBuilder.mergeFrom((com.google.ortools.sat.LinearArgumentProto) constraint_);
150 constraint_ = subBuilder.buildPartial();
151 }
152 constraintCase_ = 8;
153 break;
154 }
155 case 90: {
156 com.google.ortools.sat.LinearArgumentProto.Builder subBuilder = null;
157 if (constraintCase_ == 11) {
158 subBuilder = ((com.google.ortools.sat.LinearArgumentProto) constraint_).toBuilder();
159 }
160 constraint_ =
161 input.readMessage(com.google.ortools.sat.LinearArgumentProto.parser(), extensionRegistry);
162 if (subBuilder != null) {
163 subBuilder.mergeFrom((com.google.ortools.sat.LinearArgumentProto) constraint_);
164 constraint_ = subBuilder.buildPartial();
165 }
166 constraintCase_ = 11;
167 break;
168 }
169 case 98: {
170 com.google.ortools.sat.LinearConstraintProto.Builder subBuilder = null;
171 if (constraintCase_ == 12) {
172 subBuilder = ((com.google.ortools.sat.LinearConstraintProto) constraint_).toBuilder();
173 }
174 constraint_ =
175 input.readMessage(com.google.ortools.sat.LinearConstraintProto.parser(), extensionRegistry);
176 if (subBuilder != null) {
177 subBuilder.mergeFrom((com.google.ortools.sat.LinearConstraintProto) constraint_);
178 constraint_ = subBuilder.buildPartial();
179 }
180 constraintCase_ = 12;
181 break;
182 }
183 case 106: {
184 com.google.ortools.sat.AllDifferentConstraintProto.Builder subBuilder = null;
185 if (constraintCase_ == 13) {
186 subBuilder = ((com.google.ortools.sat.AllDifferentConstraintProto) constraint_).toBuilder();
187 }
188 constraint_ =
189 input.readMessage(com.google.ortools.sat.AllDifferentConstraintProto.parser(), extensionRegistry);
190 if (subBuilder != null) {
191 subBuilder.mergeFrom((com.google.ortools.sat.AllDifferentConstraintProto) constraint_);
192 constraint_ = subBuilder.buildPartial();
193 }
194 constraintCase_ = 13;
195 break;
196 }
197 case 114: {
198 com.google.ortools.sat.ElementConstraintProto.Builder subBuilder = null;
199 if (constraintCase_ == 14) {
200 subBuilder = ((com.google.ortools.sat.ElementConstraintProto) constraint_).toBuilder();
201 }
202 constraint_ =
203 input.readMessage(com.google.ortools.sat.ElementConstraintProto.parser(), extensionRegistry);
204 if (subBuilder != null) {
205 subBuilder.mergeFrom((com.google.ortools.sat.ElementConstraintProto) constraint_);
206 constraint_ = subBuilder.buildPartial();
207 }
208 constraintCase_ = 14;
209 break;
210 }
211 case 122: {
212 com.google.ortools.sat.CircuitConstraintProto.Builder subBuilder = null;
213 if (constraintCase_ == 15) {
214 subBuilder = ((com.google.ortools.sat.CircuitConstraintProto) constraint_).toBuilder();
215 }
216 constraint_ =
217 input.readMessage(com.google.ortools.sat.CircuitConstraintProto.parser(), extensionRegistry);
218 if (subBuilder != null) {
219 subBuilder.mergeFrom((com.google.ortools.sat.CircuitConstraintProto) constraint_);
220 constraint_ = subBuilder.buildPartial();
221 }
222 constraintCase_ = 15;
223 break;
224 }
225 case 130: {
226 com.google.ortools.sat.TableConstraintProto.Builder subBuilder = null;
227 if (constraintCase_ == 16) {
228 subBuilder = ((com.google.ortools.sat.TableConstraintProto) constraint_).toBuilder();
229 }
230 constraint_ =
231 input.readMessage(com.google.ortools.sat.TableConstraintProto.parser(), extensionRegistry);
232 if (subBuilder != null) {
233 subBuilder.mergeFrom((com.google.ortools.sat.TableConstraintProto) constraint_);
234 constraint_ = subBuilder.buildPartial();
235 }
236 constraintCase_ = 16;
237 break;
238 }
239 case 138: {
240 com.google.ortools.sat.AutomatonConstraintProto.Builder subBuilder = null;
241 if (constraintCase_ == 17) {
242 subBuilder = ((com.google.ortools.sat.AutomatonConstraintProto) constraint_).toBuilder();
243 }
244 constraint_ =
245 input.readMessage(com.google.ortools.sat.AutomatonConstraintProto.parser(), extensionRegistry);
246 if (subBuilder != null) {
247 subBuilder.mergeFrom((com.google.ortools.sat.AutomatonConstraintProto) constraint_);
248 constraint_ = subBuilder.buildPartial();
249 }
250 constraintCase_ = 17;
251 break;
252 }
253 case 146: {
254 com.google.ortools.sat.InverseConstraintProto.Builder subBuilder = null;
255 if (constraintCase_ == 18) {
256 subBuilder = ((com.google.ortools.sat.InverseConstraintProto) constraint_).toBuilder();
257 }
258 constraint_ =
259 input.readMessage(com.google.ortools.sat.InverseConstraintProto.parser(), extensionRegistry);
260 if (subBuilder != null) {
261 subBuilder.mergeFrom((com.google.ortools.sat.InverseConstraintProto) constraint_);
262 constraint_ = subBuilder.buildPartial();
263 }
264 constraintCase_ = 18;
265 break;
266 }
267 case 154: {
268 com.google.ortools.sat.IntervalConstraintProto.Builder subBuilder = null;
269 if (constraintCase_ == 19) {
270 subBuilder = ((com.google.ortools.sat.IntervalConstraintProto) constraint_).toBuilder();
271 }
272 constraint_ =
273 input.readMessage(com.google.ortools.sat.IntervalConstraintProto.parser(), extensionRegistry);
274 if (subBuilder != null) {
275 subBuilder.mergeFrom((com.google.ortools.sat.IntervalConstraintProto) constraint_);
276 constraint_ = subBuilder.buildPartial();
277 }
278 constraintCase_ = 19;
279 break;
280 }
281 case 162: {
282 com.google.ortools.sat.NoOverlapConstraintProto.Builder subBuilder = null;
283 if (constraintCase_ == 20) {
284 subBuilder = ((com.google.ortools.sat.NoOverlapConstraintProto) constraint_).toBuilder();
285 }
286 constraint_ =
287 input.readMessage(com.google.ortools.sat.NoOverlapConstraintProto.parser(), extensionRegistry);
288 if (subBuilder != null) {
289 subBuilder.mergeFrom((com.google.ortools.sat.NoOverlapConstraintProto) constraint_);
290 constraint_ = subBuilder.buildPartial();
291 }
292 constraintCase_ = 20;
293 break;
294 }
295 case 170: {
296 com.google.ortools.sat.NoOverlap2DConstraintProto.Builder subBuilder = null;
297 if (constraintCase_ == 21) {
298 subBuilder = ((com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_).toBuilder();
299 }
300 constraint_ =
301 input.readMessage(com.google.ortools.sat.NoOverlap2DConstraintProto.parser(), extensionRegistry);
302 if (subBuilder != null) {
303 subBuilder.mergeFrom((com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_);
304 constraint_ = subBuilder.buildPartial();
305 }
306 constraintCase_ = 21;
307 break;
308 }
309 case 178: {
310 com.google.ortools.sat.CumulativeConstraintProto.Builder subBuilder = null;
311 if (constraintCase_ == 22) {
312 subBuilder = ((com.google.ortools.sat.CumulativeConstraintProto) constraint_).toBuilder();
313 }
314 constraint_ =
315 input.readMessage(com.google.ortools.sat.CumulativeConstraintProto.parser(), extensionRegistry);
316 if (subBuilder != null) {
317 subBuilder.mergeFrom((com.google.ortools.sat.CumulativeConstraintProto) constraint_);
318 constraint_ = subBuilder.buildPartial();
319 }
320 constraintCase_ = 22;
321 break;
322 }
323 case 186: {
324 com.google.ortools.sat.RoutesConstraintProto.Builder subBuilder = null;
325 if (constraintCase_ == 23) {
326 subBuilder = ((com.google.ortools.sat.RoutesConstraintProto) constraint_).toBuilder();
327 }
328 constraint_ =
329 input.readMessage(com.google.ortools.sat.RoutesConstraintProto.parser(), extensionRegistry);
330 if (subBuilder != null) {
331 subBuilder.mergeFrom((com.google.ortools.sat.RoutesConstraintProto) constraint_);
332 constraint_ = subBuilder.buildPartial();
333 }
334 constraintCase_ = 23;
335 break;
336 }
337 case 194: {
338 com.google.ortools.sat.ReservoirConstraintProto.Builder subBuilder = null;
339 if (constraintCase_ == 24) {
340 subBuilder = ((com.google.ortools.sat.ReservoirConstraintProto) constraint_).toBuilder();
341 }
342 constraint_ =
343 input.readMessage(com.google.ortools.sat.ReservoirConstraintProto.parser(), extensionRegistry);
344 if (subBuilder != null) {
345 subBuilder.mergeFrom((com.google.ortools.sat.ReservoirConstraintProto) constraint_);
346 constraint_ = subBuilder.buildPartial();
347 }
348 constraintCase_ = 24;
349 break;
350 }
351 case 210: {
352 com.google.ortools.sat.BoolArgumentProto.Builder subBuilder = null;
353 if (constraintCase_ == 26) {
354 subBuilder = ((com.google.ortools.sat.BoolArgumentProto) constraint_).toBuilder();
355 }
356 constraint_ =
357 input.readMessage(com.google.ortools.sat.BoolArgumentProto.parser(), extensionRegistry);
358 if (subBuilder != null) {
359 subBuilder.mergeFrom((com.google.ortools.sat.BoolArgumentProto) constraint_);
360 constraint_ = subBuilder.buildPartial();
361 }
362 constraintCase_ = 26;
363 break;
364 }
365 case 218: {
366 com.google.ortools.sat.LinearArgumentProto.Builder subBuilder = null;
367 if (constraintCase_ == 27) {
368 subBuilder = ((com.google.ortools.sat.LinearArgumentProto) constraint_).toBuilder();
369 }
370 constraint_ =
371 input.readMessage(com.google.ortools.sat.LinearArgumentProto.parser(), extensionRegistry);
372 if (subBuilder != null) {
373 subBuilder.mergeFrom((com.google.ortools.sat.LinearArgumentProto) constraint_);
374 constraint_ = subBuilder.buildPartial();
375 }
376 constraintCase_ = 27;
377 break;
378 }
379 case 234: {
380 com.google.ortools.sat.BoolArgumentProto.Builder subBuilder = null;
381 if (constraintCase_ == 29) {
382 subBuilder = ((com.google.ortools.sat.BoolArgumentProto) constraint_).toBuilder();
383 }
384 constraint_ =
385 input.readMessage(com.google.ortools.sat.BoolArgumentProto.parser(), extensionRegistry);
386 if (subBuilder != null) {
387 subBuilder.mergeFrom((com.google.ortools.sat.BoolArgumentProto) constraint_);
388 constraint_ = subBuilder.buildPartial();
389 }
390 constraintCase_ = 29;
391 break;
392 }
393 case 242: {
394 com.google.ortools.sat.ListOfVariablesProto.Builder subBuilder = null;
395 if (constraintCase_ == 30) {
396 subBuilder = ((com.google.ortools.sat.ListOfVariablesProto) constraint_).toBuilder();
397 }
398 constraint_ =
399 input.readMessage(com.google.ortools.sat.ListOfVariablesProto.parser(), extensionRegistry);
400 if (subBuilder != null) {
401 subBuilder.mergeFrom((com.google.ortools.sat.ListOfVariablesProto) constraint_);
402 constraint_ = subBuilder.buildPartial();
403 }
404 constraintCase_ = 30;
405 break;
406 }
407 default: {
408 if (!parseUnknownField(
409 input, unknownFields, extensionRegistry, tag)) {
410 done = true;
411 }
412 break;
413 }
414 }
415 }
416 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
417 throw e.setUnfinishedMessage(this);
418 } catch (java.io.IOException e) {
419 throw new com.google.protobuf.InvalidProtocolBufferException(
420 e).setUnfinishedMessage(this);
421 } finally {
422 if (((mutable_bitField0_ & 0x00000001) != 0)) {
423 enforcementLiteral_.makeImmutable(); // C
424 }
425 this.unknownFields = unknownFields.build();
426 makeExtensionsImmutable();
427 }
428 }
429 public static final com.google.protobuf.Descriptors.Descriptor
431 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_descriptor;
432 }
433
434 @java.lang.Override
435 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
437 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_fieldAccessorTable
438 .ensureFieldAccessorsInitialized(
439 com.google.ortools.sat.ConstraintProto.class, com.google.ortools.sat.ConstraintProto.Builder.class);
440 }
441
442 private int constraintCase_ = 0;
443 private java.lang.Object constraint_;
444 public enum ConstraintCase
445 implements com.google.protobuf.Internal.EnumLite,
446 com.google.protobuf.AbstractMessage.InternalOneOfEnum {
461 TABLE(16),
471 private final int value;
472 private ConstraintCase(int value) {
473 this.value = value;
474 }
480 @java.lang.Deprecated
481 public static ConstraintCase valueOf(int value) {
482 return forNumber(value);
483 }
484
485 public static ConstraintCase forNumber(int value) {
486 switch (value) {
487 case 3: return BOOL_OR;
488 case 4: return BOOL_AND;
489 case 26: return AT_MOST_ONE;
490 case 29: return EXACTLY_ONE;
491 case 5: return BOOL_XOR;
492 case 7: return INT_DIV;
493 case 8: return INT_MOD;
494 case 11: return INT_PROD;
495 case 27: return LIN_MAX;
496 case 12: return LINEAR;
497 case 13: return ALL_DIFF;
498 case 14: return ELEMENT;
499 case 15: return CIRCUIT;
500 case 23: return ROUTES;
501 case 16: return TABLE;
502 case 17: return AUTOMATON;
503 case 18: return INVERSE;
504 case 24: return RESERVOIR;
505 case 19: return INTERVAL;
506 case 20: return NO_OVERLAP;
507 case 21: return NO_OVERLAP_2D;
508 case 22: return CUMULATIVE;
509 case 30: return DUMMY_CONSTRAINT;
510 case 0: return CONSTRAINT_NOT_SET;
511 default: return null;
512 }
513 }
514 public int getNumber() {
515 return this.value;
516 }
517 };
518
519 public ConstraintCase
522 constraintCase_);
523 }
524
525 public static final int NAME_FIELD_NUMBER = 1;
526 private volatile java.lang.Object name_;
535 @java.lang.Override
536 public java.lang.String getName() {
537 java.lang.Object ref = name_;
538 if (ref instanceof java.lang.String) {
539 return (java.lang.String) ref;
540 } else {
541 com.google.protobuf.ByteString bs =
542 (com.google.protobuf.ByteString) ref;
543 java.lang.String s = bs.toStringUtf8();
544 name_ = s;
545 return s;
546 }
547 }
556 @java.lang.Override
557 public com.google.protobuf.ByteString
559 java.lang.Object ref = name_;
560 if (ref instanceof java.lang.String) {
561 com.google.protobuf.ByteString b =
562 com.google.protobuf.ByteString.copyFromUtf8(
563 (java.lang.String) ref);
564 name_ = b;
565 return b;
566 } else {
567 return (com.google.protobuf.ByteString) ref;
568 }
569 }
570
571 public static final int ENFORCEMENT_LITERAL_FIELD_NUMBER = 2;
572 private com.google.protobuf.Internal.IntList enforcementLiteral_;
592 @java.lang.Override
593 public java.util.List<java.lang.Integer>
595 return enforcementLiteral_;
596 }
617 return enforcementLiteral_.size();
618 }
639 public int getEnforcementLiteral(int index) {
640 return enforcementLiteral_.getInt(index);
641 }
642 private int enforcementLiteralMemoizedSerializedSize = -1;
643
644 public static final int BOOL_OR_FIELD_NUMBER = 3;
653 @java.lang.Override
654 public boolean hasBoolOr() {
655 return constraintCase_ == 3;
656 }
665 @java.lang.Override
666 public com.google.ortools.sat.BoolArgumentProto getBoolOr() {
667 if (constraintCase_ == 3) {
668 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
669 }
670 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
671 }
679 @java.lang.Override
680 public com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolOrOrBuilder() {
681 if (constraintCase_ == 3) {
682 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
683 }
684 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
685 }
686
687 public static final int BOOL_AND_FIELD_NUMBER = 4;
699 @java.lang.Override
700 public boolean hasBoolAnd() {
701 return constraintCase_ == 4;
702 }
714 @java.lang.Override
715 public com.google.ortools.sat.BoolArgumentProto getBoolAnd() {
716 if (constraintCase_ == 4) {
717 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
718 }
719 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
720 }
731 @java.lang.Override
732 public com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolAndOrBuilder() {
733 if (constraintCase_ == 4) {
734 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
735 }
736 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
737 }
738
739 public static final int AT_MOST_ONE_FIELD_NUMBER = 26;
756 @java.lang.Override
757 public boolean hasAtMostOne() {
758 return constraintCase_ == 26;
759 }
776 @java.lang.Override
777 public com.google.ortools.sat.BoolArgumentProto getAtMostOne() {
778 if (constraintCase_ == 26) {
779 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
780 }
781 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
782 }
798 @java.lang.Override
799 public com.google.ortools.sat.BoolArgumentProtoOrBuilder getAtMostOneOrBuilder() {
800 if (constraintCase_ == 26) {
801 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
802 }
803 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
804 }
805
806 public static final int EXACTLY_ONE_FIELD_NUMBER = 29;
824 @java.lang.Override
825 public boolean hasExactlyOne() {
826 return constraintCase_ == 29;
827 }
845 @java.lang.Override
846 public com.google.ortools.sat.BoolArgumentProto getExactlyOne() {
847 if (constraintCase_ == 29) {
848 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
849 }
850 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
851 }
868 @java.lang.Override
869 public com.google.ortools.sat.BoolArgumentProtoOrBuilder getExactlyOneOrBuilder() {
870 if (constraintCase_ == 29) {
871 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
872 }
873 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
874 }
875
876 public static final int BOOL_XOR_FIELD_NUMBER = 5;
885 @java.lang.Override
886 public boolean hasBoolXor() {
887 return constraintCase_ == 5;
888 }
897 @java.lang.Override
898 public com.google.ortools.sat.BoolArgumentProto getBoolXor() {
899 if (constraintCase_ == 5) {
900 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
901 }
902 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
903 }
911 @java.lang.Override
912 public com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolXorOrBuilder() {
913 if (constraintCase_ == 5) {
914 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
915 }
916 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
917 }
918
919 public static final int INT_DIV_FIELD_NUMBER = 7;
930 @java.lang.Override
931 public boolean hasIntDiv() {
932 return constraintCase_ == 7;
933 }
944 @java.lang.Override
945 public com.google.ortools.sat.LinearArgumentProto getIntDiv() {
946 if (constraintCase_ == 7) {
947 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
948 }
949 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
950 }
960 @java.lang.Override
961 public com.google.ortools.sat.LinearArgumentProtoOrBuilder getIntDivOrBuilder() {
962 if (constraintCase_ == 7) {
963 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
964 }
965 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
966 }
967
968 public static final int INT_MOD_FIELD_NUMBER = 8;
979 @java.lang.Override
980 public boolean hasIntMod() {
981 return constraintCase_ == 8;
982 }
993 @java.lang.Override
994 public com.google.ortools.sat.LinearArgumentProto getIntMod() {
995 if (constraintCase_ == 8) {
996 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
997 }
998 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
999 }
1009 @java.lang.Override
1010 public com.google.ortools.sat.LinearArgumentProtoOrBuilder getIntModOrBuilder() {
1011 if (constraintCase_ == 8) {
1012 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
1013 }
1014 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
1015 }
1016
1017 public static final int INT_PROD_FIELD_NUMBER = 11;
1032 @java.lang.Override
1033 public boolean hasIntProd() {
1034 return constraintCase_ == 11;
1035 }
1050 @java.lang.Override
1051 public com.google.ortools.sat.LinearArgumentProto getIntProd() {
1052 if (constraintCase_ == 11) {
1053 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
1054 }
1055 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
1056 }
1070 @java.lang.Override
1071 public com.google.ortools.sat.LinearArgumentProtoOrBuilder getIntProdOrBuilder() {
1072 if (constraintCase_ == 11) {
1073 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
1074 }
1075 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
1076 }
1077
1078 public static final int LIN_MAX_FIELD_NUMBER = 27;
1089 @java.lang.Override
1090 public boolean hasLinMax() {
1091 return constraintCase_ == 27;
1092 }
1103 @java.lang.Override
1104 public com.google.ortools.sat.LinearArgumentProto getLinMax() {
1105 if (constraintCase_ == 27) {
1106 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
1107 }
1108 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
1109 }
1119 @java.lang.Override
1120 public com.google.ortools.sat.LinearArgumentProtoOrBuilder getLinMaxOrBuilder() {
1121 if (constraintCase_ == 27) {
1122 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
1123 }
1124 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
1125 }
1126
1127 public static final int LINEAR_FIELD_NUMBER = 12;
1137 @java.lang.Override
1138 public boolean hasLinear() {
1139 return constraintCase_ == 12;
1140 }
1150 @java.lang.Override
1151 public com.google.ortools.sat.LinearConstraintProto getLinear() {
1152 if (constraintCase_ == 12) {
1153 return (com.google.ortools.sat.LinearConstraintProto) constraint_;
1154 }
1155 return com.google.ortools.sat.LinearConstraintProto.getDefaultInstance();
1156 }
1165 @java.lang.Override
1166 public com.google.ortools.sat.LinearConstraintProtoOrBuilder getLinearOrBuilder() {
1167 if (constraintCase_ == 12) {
1168 return (com.google.ortools.sat.LinearConstraintProto) constraint_;
1169 }
1170 return com.google.ortools.sat.LinearConstraintProto.getDefaultInstance();
1171 }
1172
1173 public static final int ALL_DIFF_FIELD_NUMBER = 13;
1182 @java.lang.Override
1183 public boolean hasAllDiff() {
1184 return constraintCase_ == 13;
1185 }
1194 @java.lang.Override
1195 public com.google.ortools.sat.AllDifferentConstraintProto getAllDiff() {
1196 if (constraintCase_ == 13) {
1197 return (com.google.ortools.sat.AllDifferentConstraintProto) constraint_;
1198 }
1199 return com.google.ortools.sat.AllDifferentConstraintProto.getDefaultInstance();
1200 }
1208 @java.lang.Override
1209 public com.google.ortools.sat.AllDifferentConstraintProtoOrBuilder getAllDiffOrBuilder() {
1210 if (constraintCase_ == 13) {
1211 return (com.google.ortools.sat.AllDifferentConstraintProto) constraint_;
1212 }
1213 return com.google.ortools.sat.AllDifferentConstraintProto.getDefaultInstance();
1214 }
1215
1216 public static final int ELEMENT_FIELD_NUMBER = 14;
1226 @java.lang.Override
1227 public boolean hasElement() {
1228 return constraintCase_ == 14;
1229 }
1239 @java.lang.Override
1240 public com.google.ortools.sat.ElementConstraintProto getElement() {
1241 if (constraintCase_ == 14) {
1242 return (com.google.ortools.sat.ElementConstraintProto) constraint_;
1243 }
1244 return com.google.ortools.sat.ElementConstraintProto.getDefaultInstance();
1245 }
1254 @java.lang.Override
1255 public com.google.ortools.sat.ElementConstraintProtoOrBuilder getElementOrBuilder() {
1256 if (constraintCase_ == 14) {
1257 return (com.google.ortools.sat.ElementConstraintProto) constraint_;
1258 }
1259 return com.google.ortools.sat.ElementConstraintProto.getDefaultInstance();
1260 }
1261
1262 public static final int CIRCUIT_FIELD_NUMBER = 15;
1272 @java.lang.Override
1273 public boolean hasCircuit() {
1274 return constraintCase_ == 15;
1275 }
1285 @java.lang.Override
1286 public com.google.ortools.sat.CircuitConstraintProto getCircuit() {
1287 if (constraintCase_ == 15) {
1288 return (com.google.ortools.sat.CircuitConstraintProto) constraint_;
1289 }
1290 return com.google.ortools.sat.CircuitConstraintProto.getDefaultInstance();
1291 }
1300 @java.lang.Override
1301 public com.google.ortools.sat.CircuitConstraintProtoOrBuilder getCircuitOrBuilder() {
1302 if (constraintCase_ == 15) {
1303 return (com.google.ortools.sat.CircuitConstraintProto) constraint_;
1304 }
1305 return com.google.ortools.sat.CircuitConstraintProto.getDefaultInstance();
1306 }
1307
1308 public static final int ROUTES_FIELD_NUMBER = 23;
1317 @java.lang.Override
1318 public boolean hasRoutes() {
1319 return constraintCase_ == 23;
1320 }
1329 @java.lang.Override
1330 public com.google.ortools.sat.RoutesConstraintProto getRoutes() {
1331 if (constraintCase_ == 23) {
1332 return (com.google.ortools.sat.RoutesConstraintProto) constraint_;
1333 }
1334 return com.google.ortools.sat.RoutesConstraintProto.getDefaultInstance();
1335 }
1343 @java.lang.Override
1344 public com.google.ortools.sat.RoutesConstraintProtoOrBuilder getRoutesOrBuilder() {
1345 if (constraintCase_ == 23) {
1346 return (com.google.ortools.sat.RoutesConstraintProto) constraint_;
1347 }
1348 return com.google.ortools.sat.RoutesConstraintProto.getDefaultInstance();
1349 }
1350
1351 public static final int TABLE_FIELD_NUMBER = 16;
1361 @java.lang.Override
1362 public boolean hasTable() {
1363 return constraintCase_ == 16;
1364 }
1374 @java.lang.Override
1375 public com.google.ortools.sat.TableConstraintProto getTable() {
1376 if (constraintCase_ == 16) {
1377 return (com.google.ortools.sat.TableConstraintProto) constraint_;
1378 }
1379 return com.google.ortools.sat.TableConstraintProto.getDefaultInstance();
1380 }
1389 @java.lang.Override
1390 public com.google.ortools.sat.TableConstraintProtoOrBuilder getTableOrBuilder() {
1391 if (constraintCase_ == 16) {
1392 return (com.google.ortools.sat.TableConstraintProto) constraint_;
1393 }
1394 return com.google.ortools.sat.TableConstraintProto.getDefaultInstance();
1395 }
1396
1397 public static final int AUTOMATON_FIELD_NUMBER = 17;
1407 @java.lang.Override
1408 public boolean hasAutomaton() {
1409 return constraintCase_ == 17;
1410 }
1420 @java.lang.Override
1421 public com.google.ortools.sat.AutomatonConstraintProto getAutomaton() {
1422 if (constraintCase_ == 17) {
1423 return (com.google.ortools.sat.AutomatonConstraintProto) constraint_;
1424 }
1425 return com.google.ortools.sat.AutomatonConstraintProto.getDefaultInstance();
1426 }
1435 @java.lang.Override
1436 public com.google.ortools.sat.AutomatonConstraintProtoOrBuilder getAutomatonOrBuilder() {
1437 if (constraintCase_ == 17) {
1438 return (com.google.ortools.sat.AutomatonConstraintProto) constraint_;
1439 }
1440 return com.google.ortools.sat.AutomatonConstraintProto.getDefaultInstance();
1441 }
1442
1443 public static final int INVERSE_FIELD_NUMBER = 18;
1453 @java.lang.Override
1454 public boolean hasInverse() {
1455 return constraintCase_ == 18;
1456 }
1466 @java.lang.Override
1467 public com.google.ortools.sat.InverseConstraintProto getInverse() {
1468 if (constraintCase_ == 18) {
1469 return (com.google.ortools.sat.InverseConstraintProto) constraint_;
1470 }
1471 return com.google.ortools.sat.InverseConstraintProto.getDefaultInstance();
1472 }
1481 @java.lang.Override
1482 public com.google.ortools.sat.InverseConstraintProtoOrBuilder getInverseOrBuilder() {
1483 if (constraintCase_ == 18) {
1484 return (com.google.ortools.sat.InverseConstraintProto) constraint_;
1485 }
1486 return com.google.ortools.sat.InverseConstraintProto.getDefaultInstance();
1487 }
1488
1489 public static final int RESERVOIR_FIELD_NUMBER = 24;
1500 @java.lang.Override
1501 public boolean hasReservoir() {
1502 return constraintCase_ == 24;
1503 }
1514 @java.lang.Override
1515 public com.google.ortools.sat.ReservoirConstraintProto getReservoir() {
1516 if (constraintCase_ == 24) {
1517 return (com.google.ortools.sat.ReservoirConstraintProto) constraint_;
1518 }
1519 return com.google.ortools.sat.ReservoirConstraintProto.getDefaultInstance();
1520 }
1530 @java.lang.Override
1531 public com.google.ortools.sat.ReservoirConstraintProtoOrBuilder getReservoirOrBuilder() {
1532 if (constraintCase_ == 24) {
1533 return (com.google.ortools.sat.ReservoirConstraintProto) constraint_;
1534 }
1535 return com.google.ortools.sat.ReservoirConstraintProto.getDefaultInstance();
1536 }
1537
1538 public static final int INTERVAL_FIELD_NUMBER = 19;
1548 @java.lang.Override
1549 public boolean hasInterval() {
1550 return constraintCase_ == 19;
1551 }
1561 @java.lang.Override
1562 public com.google.ortools.sat.IntervalConstraintProto getInterval() {
1563 if (constraintCase_ == 19) {
1564 return (com.google.ortools.sat.IntervalConstraintProto) constraint_;
1565 }
1566 return com.google.ortools.sat.IntervalConstraintProto.getDefaultInstance();
1567 }
1576 @java.lang.Override
1577 public com.google.ortools.sat.IntervalConstraintProtoOrBuilder getIntervalOrBuilder() {
1578 if (constraintCase_ == 19) {
1579 return (com.google.ortools.sat.IntervalConstraintProto) constraint_;
1580 }
1581 return com.google.ortools.sat.IntervalConstraintProto.getDefaultInstance();
1582 }
1583
1584 public static final int NO_OVERLAP_FIELD_NUMBER = 20;
1595 @java.lang.Override
1596 public boolean hasNoOverlap() {
1597 return constraintCase_ == 20;
1598 }
1609 @java.lang.Override
1610 public com.google.ortools.sat.NoOverlapConstraintProto getNoOverlap() {
1611 if (constraintCase_ == 20) {
1612 return (com.google.ortools.sat.NoOverlapConstraintProto) constraint_;
1613 }
1614 return com.google.ortools.sat.NoOverlapConstraintProto.getDefaultInstance();
1615 }
1625 @java.lang.Override
1626 public com.google.ortools.sat.NoOverlapConstraintProtoOrBuilder getNoOverlapOrBuilder() {
1627 if (constraintCase_ == 20) {
1628 return (com.google.ortools.sat.NoOverlapConstraintProto) constraint_;
1629 }
1630 return com.google.ortools.sat.NoOverlapConstraintProto.getDefaultInstance();
1631 }
1632
1633 public static final int NO_OVERLAP_2D_FIELD_NUMBER = 21;
1642 @java.lang.Override
1643 public boolean hasNoOverlap2D() {
1644 return constraintCase_ == 21;
1645 }
1654 @java.lang.Override
1655 public com.google.ortools.sat.NoOverlap2DConstraintProto getNoOverlap2D() {
1656 if (constraintCase_ == 21) {
1657 return (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_;
1658 }
1659 return com.google.ortools.sat.NoOverlap2DConstraintProto.getDefaultInstance();
1660 }
1668 @java.lang.Override
1669 public com.google.ortools.sat.NoOverlap2DConstraintProtoOrBuilder getNoOverlap2DOrBuilder() {
1670 if (constraintCase_ == 21) {
1671 return (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_;
1672 }
1673 return com.google.ortools.sat.NoOverlap2DConstraintProto.getDefaultInstance();
1674 }
1675
1676 public static final int CUMULATIVE_FIELD_NUMBER = 22;
1687 @java.lang.Override
1688 public boolean hasCumulative() {
1689 return constraintCase_ == 22;
1690 }
1701 @java.lang.Override
1702 public com.google.ortools.sat.CumulativeConstraintProto getCumulative() {
1703 if (constraintCase_ == 22) {
1704 return (com.google.ortools.sat.CumulativeConstraintProto) constraint_;
1705 }
1706 return com.google.ortools.sat.CumulativeConstraintProto.getDefaultInstance();
1707 }
1717 @java.lang.Override
1718 public com.google.ortools.sat.CumulativeConstraintProtoOrBuilder getCumulativeOrBuilder() {
1719 if (constraintCase_ == 22) {
1720 return (com.google.ortools.sat.CumulativeConstraintProto) constraint_;
1721 }
1722 return com.google.ortools.sat.CumulativeConstraintProto.getDefaultInstance();
1723 }
1724
1725 public static final int DUMMY_CONSTRAINT_FIELD_NUMBER = 30;
1735 @java.lang.Override
1736 public boolean hasDummyConstraint() {
1737 return constraintCase_ == 30;
1738 }
1748 @java.lang.Override
1749 public com.google.ortools.sat.ListOfVariablesProto getDummyConstraint() {
1750 if (constraintCase_ == 30) {
1751 return (com.google.ortools.sat.ListOfVariablesProto) constraint_;
1752 }
1753 return com.google.ortools.sat.ListOfVariablesProto.getDefaultInstance();
1754 }
1763 @java.lang.Override
1764 public com.google.ortools.sat.ListOfVariablesProtoOrBuilder getDummyConstraintOrBuilder() {
1765 if (constraintCase_ == 30) {
1766 return (com.google.ortools.sat.ListOfVariablesProto) constraint_;
1767 }
1768 return com.google.ortools.sat.ListOfVariablesProto.getDefaultInstance();
1769 }
1770
1771 private byte memoizedIsInitialized = -1;
1772 @java.lang.Override
1773 public final boolean isInitialized() {
1774 byte isInitialized = memoizedIsInitialized;
1775 if (isInitialized == 1) return true;
1776 if (isInitialized == 0) return false;
1777
1778 memoizedIsInitialized = 1;
1779 return true;
1780 }
1781
1782 @java.lang.Override
1783 public void writeTo(com.google.protobuf.CodedOutputStream output)
1784 throws java.io.IOException {
1786 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
1787 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
1788 }
1789 if (getEnforcementLiteralList().size() > 0) {
1790 output.writeUInt32NoTag(18);
1791 output.writeUInt32NoTag(enforcementLiteralMemoizedSerializedSize);
1792 }
1793 for (int i = 0; i < enforcementLiteral_.size(); i++) {
1794 output.writeInt32NoTag(enforcementLiteral_.getInt(i));
1795 }
1796 if (constraintCase_ == 3) {
1797 output.writeMessage(3, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1798 }
1799 if (constraintCase_ == 4) {
1800 output.writeMessage(4, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1801 }
1802 if (constraintCase_ == 5) {
1803 output.writeMessage(5, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1804 }
1805 if (constraintCase_ == 7) {
1806 output.writeMessage(7, (com.google.ortools.sat.LinearArgumentProto) constraint_);
1807 }
1808 if (constraintCase_ == 8) {
1809 output.writeMessage(8, (com.google.ortools.sat.LinearArgumentProto) constraint_);
1810 }
1811 if (constraintCase_ == 11) {
1812 output.writeMessage(11, (com.google.ortools.sat.LinearArgumentProto) constraint_);
1813 }
1814 if (constraintCase_ == 12) {
1815 output.writeMessage(12, (com.google.ortools.sat.LinearConstraintProto) constraint_);
1816 }
1817 if (constraintCase_ == 13) {
1818 output.writeMessage(13, (com.google.ortools.sat.AllDifferentConstraintProto) constraint_);
1819 }
1820 if (constraintCase_ == 14) {
1821 output.writeMessage(14, (com.google.ortools.sat.ElementConstraintProto) constraint_);
1822 }
1823 if (constraintCase_ == 15) {
1824 output.writeMessage(15, (com.google.ortools.sat.CircuitConstraintProto) constraint_);
1825 }
1826 if (constraintCase_ == 16) {
1827 output.writeMessage(16, (com.google.ortools.sat.TableConstraintProto) constraint_);
1828 }
1829 if (constraintCase_ == 17) {
1830 output.writeMessage(17, (com.google.ortools.sat.AutomatonConstraintProto) constraint_);
1831 }
1832 if (constraintCase_ == 18) {
1833 output.writeMessage(18, (com.google.ortools.sat.InverseConstraintProto) constraint_);
1834 }
1835 if (constraintCase_ == 19) {
1836 output.writeMessage(19, (com.google.ortools.sat.IntervalConstraintProto) constraint_);
1837 }
1838 if (constraintCase_ == 20) {
1839 output.writeMessage(20, (com.google.ortools.sat.NoOverlapConstraintProto) constraint_);
1840 }
1841 if (constraintCase_ == 21) {
1842 output.writeMessage(21, (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_);
1843 }
1844 if (constraintCase_ == 22) {
1845 output.writeMessage(22, (com.google.ortools.sat.CumulativeConstraintProto) constraint_);
1846 }
1847 if (constraintCase_ == 23) {
1848 output.writeMessage(23, (com.google.ortools.sat.RoutesConstraintProto) constraint_);
1849 }
1850 if (constraintCase_ == 24) {
1851 output.writeMessage(24, (com.google.ortools.sat.ReservoirConstraintProto) constraint_);
1852 }
1853 if (constraintCase_ == 26) {
1854 output.writeMessage(26, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1855 }
1856 if (constraintCase_ == 27) {
1857 output.writeMessage(27, (com.google.ortools.sat.LinearArgumentProto) constraint_);
1858 }
1859 if (constraintCase_ == 29) {
1860 output.writeMessage(29, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1861 }
1862 if (constraintCase_ == 30) {
1863 output.writeMessage(30, (com.google.ortools.sat.ListOfVariablesProto) constraint_);
1864 }
1865 unknownFields.writeTo(output);
1866 }
1867
1868 @java.lang.Override
1869 public int getSerializedSize() {
1870 int size = memoizedSize;
1871 if (size != -1) return size;
1872
1873 size = 0;
1874 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
1875 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
1876 }
1877 {
1878 int dataSize = 0;
1879 for (int i = 0; i < enforcementLiteral_.size(); i++) {
1880 dataSize += com.google.protobuf.CodedOutputStream
1881 .computeInt32SizeNoTag(enforcementLiteral_.getInt(i));
1882 }
1883 size += dataSize;
1884 if (!getEnforcementLiteralList().isEmpty()) {
1885 size += 1;
1886 size += com.google.protobuf.CodedOutputStream
1887 .computeInt32SizeNoTag(dataSize);
1888 }
1889 enforcementLiteralMemoizedSerializedSize = dataSize;
1890 }
1891 if (constraintCase_ == 3) {
1892 size += com.google.protobuf.CodedOutputStream
1893 .computeMessageSize(3, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1894 }
1895 if (constraintCase_ == 4) {
1896 size += com.google.protobuf.CodedOutputStream
1897 .computeMessageSize(4, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1898 }
1899 if (constraintCase_ == 5) {
1900 size += com.google.protobuf.CodedOutputStream
1901 .computeMessageSize(5, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1902 }
1903 if (constraintCase_ == 7) {
1904 size += com.google.protobuf.CodedOutputStream
1905 .computeMessageSize(7, (com.google.ortools.sat.LinearArgumentProto) constraint_);
1906 }
1907 if (constraintCase_ == 8) {
1908 size += com.google.protobuf.CodedOutputStream
1909 .computeMessageSize(8, (com.google.ortools.sat.LinearArgumentProto) constraint_);
1910 }
1911 if (constraintCase_ == 11) {
1912 size += com.google.protobuf.CodedOutputStream
1913 .computeMessageSize(11, (com.google.ortools.sat.LinearArgumentProto) constraint_);
1914 }
1915 if (constraintCase_ == 12) {
1916 size += com.google.protobuf.CodedOutputStream
1917 .computeMessageSize(12, (com.google.ortools.sat.LinearConstraintProto) constraint_);
1918 }
1919 if (constraintCase_ == 13) {
1920 size += com.google.protobuf.CodedOutputStream
1921 .computeMessageSize(13, (com.google.ortools.sat.AllDifferentConstraintProto) constraint_);
1922 }
1923 if (constraintCase_ == 14) {
1924 size += com.google.protobuf.CodedOutputStream
1925 .computeMessageSize(14, (com.google.ortools.sat.ElementConstraintProto) constraint_);
1926 }
1927 if (constraintCase_ == 15) {
1928 size += com.google.protobuf.CodedOutputStream
1929 .computeMessageSize(15, (com.google.ortools.sat.CircuitConstraintProto) constraint_);
1930 }
1931 if (constraintCase_ == 16) {
1932 size += com.google.protobuf.CodedOutputStream
1933 .computeMessageSize(16, (com.google.ortools.sat.TableConstraintProto) constraint_);
1934 }
1935 if (constraintCase_ == 17) {
1936 size += com.google.protobuf.CodedOutputStream
1937 .computeMessageSize(17, (com.google.ortools.sat.AutomatonConstraintProto) constraint_);
1938 }
1939 if (constraintCase_ == 18) {
1940 size += com.google.protobuf.CodedOutputStream
1941 .computeMessageSize(18, (com.google.ortools.sat.InverseConstraintProto) constraint_);
1942 }
1943 if (constraintCase_ == 19) {
1944 size += com.google.protobuf.CodedOutputStream
1945 .computeMessageSize(19, (com.google.ortools.sat.IntervalConstraintProto) constraint_);
1946 }
1947 if (constraintCase_ == 20) {
1948 size += com.google.protobuf.CodedOutputStream
1949 .computeMessageSize(20, (com.google.ortools.sat.NoOverlapConstraintProto) constraint_);
1950 }
1951 if (constraintCase_ == 21) {
1952 size += com.google.protobuf.CodedOutputStream
1953 .computeMessageSize(21, (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_);
1954 }
1955 if (constraintCase_ == 22) {
1956 size += com.google.protobuf.CodedOutputStream
1957 .computeMessageSize(22, (com.google.ortools.sat.CumulativeConstraintProto) constraint_);
1958 }
1959 if (constraintCase_ == 23) {
1960 size += com.google.protobuf.CodedOutputStream
1961 .computeMessageSize(23, (com.google.ortools.sat.RoutesConstraintProto) constraint_);
1962 }
1963 if (constraintCase_ == 24) {
1964 size += com.google.protobuf.CodedOutputStream
1965 .computeMessageSize(24, (com.google.ortools.sat.ReservoirConstraintProto) constraint_);
1966 }
1967 if (constraintCase_ == 26) {
1968 size += com.google.protobuf.CodedOutputStream
1969 .computeMessageSize(26, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1970 }
1971 if (constraintCase_ == 27) {
1972 size += com.google.protobuf.CodedOutputStream
1973 .computeMessageSize(27, (com.google.ortools.sat.LinearArgumentProto) constraint_);
1974 }
1975 if (constraintCase_ == 29) {
1976 size += com.google.protobuf.CodedOutputStream
1977 .computeMessageSize(29, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1978 }
1979 if (constraintCase_ == 30) {
1980 size += com.google.protobuf.CodedOutputStream
1981 .computeMessageSize(30, (com.google.ortools.sat.ListOfVariablesProto) constraint_);
1982 }
1983 size += unknownFields.getSerializedSize();
1984 memoizedSize = size;
1985 return size;
1986 }
1987
1988 @java.lang.Override
1989 public boolean equals(final java.lang.Object obj) {
1990 if (obj == this) {
1991 return true;
1992 }
1993 if (!(obj instanceof com.google.ortools.sat.ConstraintProto)) {
1994 return super.equals(obj);
1995 }
1996 com.google.ortools.sat.ConstraintProto other = (com.google.ortools.sat.ConstraintProto) obj;
1997
1998 if (!getName()
1999 .equals(other.getName())) return false;
2001 .equals(other.getEnforcementLiteralList())) return false;
2002 if (!getConstraintCase().equals(other.getConstraintCase())) return false;
2003 switch (constraintCase_) {
2004 case 3:
2005 if (!getBoolOr()
2006 .equals(other.getBoolOr())) return false;
2007 break;
2008 case 4:
2009 if (!getBoolAnd()
2010 .equals(other.getBoolAnd())) return false;
2011 break;
2012 case 26:
2013 if (!getAtMostOne()
2014 .equals(other.getAtMostOne())) return false;
2015 break;
2016 case 29:
2017 if (!getExactlyOne()
2018 .equals(other.getExactlyOne())) return false;
2019 break;
2020 case 5:
2021 if (!getBoolXor()
2022 .equals(other.getBoolXor())) return false;
2023 break;
2024 case 7:
2025 if (!getIntDiv()
2026 .equals(other.getIntDiv())) return false;
2027 break;
2028 case 8:
2029 if (!getIntMod()
2030 .equals(other.getIntMod())) return false;
2031 break;
2032 case 11:
2033 if (!getIntProd()
2034 .equals(other.getIntProd())) return false;
2035 break;
2036 case 27:
2037 if (!getLinMax()
2038 .equals(other.getLinMax())) return false;
2039 break;
2040 case 12:
2041 if (!getLinear()
2042 .equals(other.getLinear())) return false;
2043 break;
2044 case 13:
2045 if (!getAllDiff()
2046 .equals(other.getAllDiff())) return false;
2047 break;
2048 case 14:
2049 if (!getElement()
2050 .equals(other.getElement())) return false;
2051 break;
2052 case 15:
2053 if (!getCircuit()
2054 .equals(other.getCircuit())) return false;
2055 break;
2056 case 23:
2057 if (!getRoutes()
2058 .equals(other.getRoutes())) return false;
2059 break;
2060 case 16:
2061 if (!getTable()
2062 .equals(other.getTable())) return false;
2063 break;
2064 case 17:
2065 if (!getAutomaton()
2066 .equals(other.getAutomaton())) return false;
2067 break;
2068 case 18:
2069 if (!getInverse()
2070 .equals(other.getInverse())) return false;
2071 break;
2072 case 24:
2073 if (!getReservoir()
2074 .equals(other.getReservoir())) return false;
2075 break;
2076 case 19:
2077 if (!getInterval()
2078 .equals(other.getInterval())) return false;
2079 break;
2080 case 20:
2081 if (!getNoOverlap()
2082 .equals(other.getNoOverlap())) return false;
2083 break;
2084 case 21:
2085 if (!getNoOverlap2D()
2086 .equals(other.getNoOverlap2D())) return false;
2087 break;
2088 case 22:
2089 if (!getCumulative()
2090 .equals(other.getCumulative())) return false;
2091 break;
2092 case 30:
2093 if (!getDummyConstraint()
2094 .equals(other.getDummyConstraint())) return false;
2095 break;
2096 case 0:
2097 default:
2098 }
2099 if (!unknownFields.equals(other.unknownFields)) return false;
2100 return true;
2101 }
2102
2103 @java.lang.Override
2104 public int hashCode() {
2105 if (memoizedHashCode != 0) {
2106 return memoizedHashCode;
2107 }
2108 int hash = 41;
2109 hash = (19 * hash) + getDescriptor().hashCode();
2110 hash = (37 * hash) + NAME_FIELD_NUMBER;
2111 hash = (53 * hash) + getName().hashCode();
2112 if (getEnforcementLiteralCount() > 0) {
2113 hash = (37 * hash) + ENFORCEMENT_LITERAL_FIELD_NUMBER;
2114 hash = (53 * hash) + getEnforcementLiteralList().hashCode();
2115 }
2116 switch (constraintCase_) {
2117 case 3:
2118 hash = (37 * hash) + BOOL_OR_FIELD_NUMBER;
2119 hash = (53 * hash) + getBoolOr().hashCode();
2120 break;
2121 case 4:
2122 hash = (37 * hash) + BOOL_AND_FIELD_NUMBER;
2123 hash = (53 * hash) + getBoolAnd().hashCode();
2124 break;
2125 case 26:
2126 hash = (37 * hash) + AT_MOST_ONE_FIELD_NUMBER;
2127 hash = (53 * hash) + getAtMostOne().hashCode();
2128 break;
2129 case 29:
2130 hash = (37 * hash) + EXACTLY_ONE_FIELD_NUMBER;
2131 hash = (53 * hash) + getExactlyOne().hashCode();
2132 break;
2133 case 5:
2134 hash = (37 * hash) + BOOL_XOR_FIELD_NUMBER;
2135 hash = (53 * hash) + getBoolXor().hashCode();
2136 break;
2137 case 7:
2138 hash = (37 * hash) + INT_DIV_FIELD_NUMBER;
2139 hash = (53 * hash) + getIntDiv().hashCode();
2140 break;
2141 case 8:
2142 hash = (37 * hash) + INT_MOD_FIELD_NUMBER;
2143 hash = (53 * hash) + getIntMod().hashCode();
2144 break;
2145 case 11:
2146 hash = (37 * hash) + INT_PROD_FIELD_NUMBER;
2147 hash = (53 * hash) + getIntProd().hashCode();
2148 break;
2149 case 27:
2150 hash = (37 * hash) + LIN_MAX_FIELD_NUMBER;
2151 hash = (53 * hash) + getLinMax().hashCode();
2152 break;
2153 case 12:
2154 hash = (37 * hash) + LINEAR_FIELD_NUMBER;
2155 hash = (53 * hash) + getLinear().hashCode();
2156 break;
2157 case 13:
2158 hash = (37 * hash) + ALL_DIFF_FIELD_NUMBER;
2159 hash = (53 * hash) + getAllDiff().hashCode();
2160 break;
2161 case 14:
2162 hash = (37 * hash) + ELEMENT_FIELD_NUMBER;
2163 hash = (53 * hash) + getElement().hashCode();
2164 break;
2165 case 15:
2166 hash = (37 * hash) + CIRCUIT_FIELD_NUMBER;
2167 hash = (53 * hash) + getCircuit().hashCode();
2168 break;
2169 case 23:
2170 hash = (37 * hash) + ROUTES_FIELD_NUMBER;
2171 hash = (53 * hash) + getRoutes().hashCode();
2172 break;
2173 case 16:
2174 hash = (37 * hash) + TABLE_FIELD_NUMBER;
2175 hash = (53 * hash) + getTable().hashCode();
2176 break;
2177 case 17:
2178 hash = (37 * hash) + AUTOMATON_FIELD_NUMBER;
2179 hash = (53 * hash) + getAutomaton().hashCode();
2180 break;
2181 case 18:
2182 hash = (37 * hash) + INVERSE_FIELD_NUMBER;
2183 hash = (53 * hash) + getInverse().hashCode();
2184 break;
2185 case 24:
2186 hash = (37 * hash) + RESERVOIR_FIELD_NUMBER;
2187 hash = (53 * hash) + getReservoir().hashCode();
2188 break;
2189 case 19:
2190 hash = (37 * hash) + INTERVAL_FIELD_NUMBER;
2191 hash = (53 * hash) + getInterval().hashCode();
2192 break;
2193 case 20:
2194 hash = (37 * hash) + NO_OVERLAP_FIELD_NUMBER;
2195 hash = (53 * hash) + getNoOverlap().hashCode();
2196 break;
2197 case 21:
2198 hash = (37 * hash) + NO_OVERLAP_2D_FIELD_NUMBER;
2199 hash = (53 * hash) + getNoOverlap2D().hashCode();
2200 break;
2201 case 22:
2202 hash = (37 * hash) + CUMULATIVE_FIELD_NUMBER;
2203 hash = (53 * hash) + getCumulative().hashCode();
2204 break;
2205 case 30:
2206 hash = (37 * hash) + DUMMY_CONSTRAINT_FIELD_NUMBER;
2207 hash = (53 * hash) + getDummyConstraint().hashCode();
2208 break;
2209 case 0:
2210 default:
2211 }
2212 hash = (29 * hash) + unknownFields.hashCode();
2213 memoizedHashCode = hash;
2214 return hash;
2215 }
2216
2217 public static com.google.ortools.sat.ConstraintProto parseFrom(
2218 java.nio.ByteBuffer data)
2219 throws com.google.protobuf.InvalidProtocolBufferException {
2220 return PARSER.parseFrom(data);
2221 }
2222 public static com.google.ortools.sat.ConstraintProto parseFrom(
2223 java.nio.ByteBuffer data,
2224 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2225 throws com.google.protobuf.InvalidProtocolBufferException {
2226 return PARSER.parseFrom(data, extensionRegistry);
2227 }
2228 public static com.google.ortools.sat.ConstraintProto parseFrom(
2229 com.google.protobuf.ByteString data)
2230 throws com.google.protobuf.InvalidProtocolBufferException {
2231 return PARSER.parseFrom(data);
2232 }
2233 public static com.google.ortools.sat.ConstraintProto parseFrom(
2234 com.google.protobuf.ByteString data,
2235 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2236 throws com.google.protobuf.InvalidProtocolBufferException {
2237 return PARSER.parseFrom(data, extensionRegistry);
2238 }
2239 public static com.google.ortools.sat.ConstraintProto parseFrom(byte[] data)
2240 throws com.google.protobuf.InvalidProtocolBufferException {
2241 return PARSER.parseFrom(data);
2242 }
2243 public static com.google.ortools.sat.ConstraintProto parseFrom(
2244 byte[] data,
2245 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2246 throws com.google.protobuf.InvalidProtocolBufferException {
2247 return PARSER.parseFrom(data, extensionRegistry);
2248 }
2249 public static com.google.ortools.sat.ConstraintProto parseFrom(java.io.InputStream input)
2250 throws java.io.IOException {
2251 return com.google.protobuf.GeneratedMessageV3
2252 .parseWithIOException(PARSER, input);
2253 }
2254 public static com.google.ortools.sat.ConstraintProto parseFrom(
2255 java.io.InputStream input,
2256 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2257 throws java.io.IOException {
2258 return com.google.protobuf.GeneratedMessageV3
2259 .parseWithIOException(PARSER, input, extensionRegistry);
2260 }
2261 public static com.google.ortools.sat.ConstraintProto parseDelimitedFrom(java.io.InputStream input)
2262 throws java.io.IOException {
2263 return com.google.protobuf.GeneratedMessageV3
2264 .parseDelimitedWithIOException(PARSER, input);
2265 }
2266 public static com.google.ortools.sat.ConstraintProto parseDelimitedFrom(
2267 java.io.InputStream input,
2268 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2269 throws java.io.IOException {
2270 return com.google.protobuf.GeneratedMessageV3
2271 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
2272 }
2273 public static com.google.ortools.sat.ConstraintProto parseFrom(
2274 com.google.protobuf.CodedInputStream input)
2275 throws java.io.IOException {
2276 return com.google.protobuf.GeneratedMessageV3
2277 .parseWithIOException(PARSER, input);
2278 }
2279 public static com.google.ortools.sat.ConstraintProto parseFrom(
2280 com.google.protobuf.CodedInputStream input,
2281 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2282 throws java.io.IOException {
2283 return com.google.protobuf.GeneratedMessageV3
2284 .parseWithIOException(PARSER, input, extensionRegistry);
2285 }
2286
2287 @java.lang.Override
2288 public Builder newBuilderForType() { return newBuilder(); }
2289 public static Builder newBuilder() {
2290 return DEFAULT_INSTANCE.toBuilder();
2291 }
2292 public static Builder newBuilder(com.google.ortools.sat.ConstraintProto prototype) {
2293 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
2294 }
2295 @java.lang.Override
2297 return this == DEFAULT_INSTANCE
2298 ? new Builder() : new Builder().mergeFrom(this);
2299 }
2300
2301 @java.lang.Override
2303 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
2304 Builder builder = new Builder(parent);
2305 return builder;
2306 }
2314 public static final class Builder extends
2315 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
2316 // @@protoc_insertion_point(builder_implements:operations_research.sat.ConstraintProto)
2317 com.google.ortools.sat.ConstraintProtoOrBuilder {
2318 public static final com.google.protobuf.Descriptors.Descriptor
2320 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_descriptor;
2321 }
2322
2323 @java.lang.Override
2324 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
2326 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_fieldAccessorTable
2327 .ensureFieldAccessorsInitialized(
2328 com.google.ortools.sat.ConstraintProto.class, com.google.ortools.sat.ConstraintProto.Builder.class);
2329 }
2330
2331 // Construct using com.google.ortools.sat.ConstraintProto.newBuilder()
2332 private Builder() {
2333 maybeForceBuilderInitialization();
2334 }
2335
2336 private Builder(
2337 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
2338 super(parent);
2339 maybeForceBuilderInitialization();
2340 }
2341 private void maybeForceBuilderInitialization() {
2342 if (com.google.protobuf.GeneratedMessageV3
2343 .alwaysUseFieldBuilders) {
2344 }
2345 }
2346 @java.lang.Override
2347 public Builder clear() {
2348 super.clear();
2349 name_ = "";
2350
2351 enforcementLiteral_ = emptyIntList();
2352 bitField0_ = (bitField0_ & ~0x00000001);
2353 constraintCase_ = 0;
2354 constraint_ = null;
2355 return this;
2356 }
2357
2358 @java.lang.Override
2359 public com.google.protobuf.Descriptors.Descriptor
2361 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_descriptor;
2362 }
2363
2364 @java.lang.Override
2365 public com.google.ortools.sat.ConstraintProto getDefaultInstanceForType() {
2366 return com.google.ortools.sat.ConstraintProto.getDefaultInstance();
2367 }
2368
2369 @java.lang.Override
2370 public com.google.ortools.sat.ConstraintProto build() {
2371 com.google.ortools.sat.ConstraintProto result = buildPartial();
2372 if (!result.isInitialized()) {
2373 throw newUninitializedMessageException(result);
2374 }
2375 return result;
2376 }
2377
2378 @java.lang.Override
2379 public com.google.ortools.sat.ConstraintProto buildPartial() {
2380 com.google.ortools.sat.ConstraintProto result = new com.google.ortools.sat.ConstraintProto(this);
2381 int from_bitField0_ = bitField0_;
2382 result.name_ = name_;
2383 if (((bitField0_ & 0x00000001) != 0)) {
2384 enforcementLiteral_.makeImmutable();
2385 bitField0_ = (bitField0_ & ~0x00000001);
2386 }
2387 result.enforcementLiteral_ = enforcementLiteral_;
2388 if (constraintCase_ == 3) {
2389 if (boolOrBuilder_ == null) {
2390 result.constraint_ = constraint_;
2391 } else {
2392 result.constraint_ = boolOrBuilder_.build();
2393 }
2394 }
2395 if (constraintCase_ == 4) {
2396 if (boolAndBuilder_ == null) {
2397 result.constraint_ = constraint_;
2398 } else {
2399 result.constraint_ = boolAndBuilder_.build();
2400 }
2401 }
2402 if (constraintCase_ == 26) {
2403 if (atMostOneBuilder_ == null) {
2404 result.constraint_ = constraint_;
2405 } else {
2406 result.constraint_ = atMostOneBuilder_.build();
2407 }
2408 }
2409 if (constraintCase_ == 29) {
2410 if (exactlyOneBuilder_ == null) {
2411 result.constraint_ = constraint_;
2412 } else {
2413 result.constraint_ = exactlyOneBuilder_.build();
2414 }
2415 }
2416 if (constraintCase_ == 5) {
2417 if (boolXorBuilder_ == null) {
2418 result.constraint_ = constraint_;
2419 } else {
2420 result.constraint_ = boolXorBuilder_.build();
2421 }
2422 }
2423 if (constraintCase_ == 7) {
2424 if (intDivBuilder_ == null) {
2425 result.constraint_ = constraint_;
2426 } else {
2427 result.constraint_ = intDivBuilder_.build();
2428 }
2429 }
2430 if (constraintCase_ == 8) {
2431 if (intModBuilder_ == null) {
2432 result.constraint_ = constraint_;
2433 } else {
2434 result.constraint_ = intModBuilder_.build();
2435 }
2436 }
2437 if (constraintCase_ == 11) {
2438 if (intProdBuilder_ == null) {
2439 result.constraint_ = constraint_;
2440 } else {
2441 result.constraint_ = intProdBuilder_.build();
2442 }
2443 }
2444 if (constraintCase_ == 27) {
2445 if (linMaxBuilder_ == null) {
2446 result.constraint_ = constraint_;
2447 } else {
2448 result.constraint_ = linMaxBuilder_.build();
2449 }
2450 }
2451 if (constraintCase_ == 12) {
2452 if (linearBuilder_ == null) {
2453 result.constraint_ = constraint_;
2454 } else {
2455 result.constraint_ = linearBuilder_.build();
2456 }
2457 }
2458 if (constraintCase_ == 13) {
2459 if (allDiffBuilder_ == null) {
2460 result.constraint_ = constraint_;
2461 } else {
2462 result.constraint_ = allDiffBuilder_.build();
2463 }
2464 }
2465 if (constraintCase_ == 14) {
2466 if (elementBuilder_ == null) {
2467 result.constraint_ = constraint_;
2468 } else {
2469 result.constraint_ = elementBuilder_.build();
2470 }
2471 }
2472 if (constraintCase_ == 15) {
2473 if (circuitBuilder_ == null) {
2474 result.constraint_ = constraint_;
2475 } else {
2476 result.constraint_ = circuitBuilder_.build();
2477 }
2478 }
2479 if (constraintCase_ == 23) {
2480 if (routesBuilder_ == null) {
2481 result.constraint_ = constraint_;
2482 } else {
2483 result.constraint_ = routesBuilder_.build();
2484 }
2485 }
2486 if (constraintCase_ == 16) {
2487 if (tableBuilder_ == null) {
2488 result.constraint_ = constraint_;
2489 } else {
2490 result.constraint_ = tableBuilder_.build();
2491 }
2492 }
2493 if (constraintCase_ == 17) {
2494 if (automatonBuilder_ == null) {
2495 result.constraint_ = constraint_;
2496 } else {
2497 result.constraint_ = automatonBuilder_.build();
2498 }
2499 }
2500 if (constraintCase_ == 18) {
2501 if (inverseBuilder_ == null) {
2502 result.constraint_ = constraint_;
2503 } else {
2504 result.constraint_ = inverseBuilder_.build();
2505 }
2506 }
2507 if (constraintCase_ == 24) {
2508 if (reservoirBuilder_ == null) {
2509 result.constraint_ = constraint_;
2510 } else {
2511 result.constraint_ = reservoirBuilder_.build();
2512 }
2513 }
2514 if (constraintCase_ == 19) {
2515 if (intervalBuilder_ == null) {
2516 result.constraint_ = constraint_;
2517 } else {
2518 result.constraint_ = intervalBuilder_.build();
2519 }
2520 }
2521 if (constraintCase_ == 20) {
2522 if (noOverlapBuilder_ == null) {
2523 result.constraint_ = constraint_;
2524 } else {
2525 result.constraint_ = noOverlapBuilder_.build();
2526 }
2527 }
2528 if (constraintCase_ == 21) {
2529 if (noOverlap2DBuilder_ == null) {
2530 result.constraint_ = constraint_;
2531 } else {
2532 result.constraint_ = noOverlap2DBuilder_.build();
2533 }
2534 }
2535 if (constraintCase_ == 22) {
2536 if (cumulativeBuilder_ == null) {
2537 result.constraint_ = constraint_;
2538 } else {
2539 result.constraint_ = cumulativeBuilder_.build();
2540 }
2541 }
2542 if (constraintCase_ == 30) {
2543 if (dummyConstraintBuilder_ == null) {
2544 result.constraint_ = constraint_;
2545 } else {
2546 result.constraint_ = dummyConstraintBuilder_.build();
2547 }
2548 }
2549 result.constraintCase_ = constraintCase_;
2550 onBuilt();
2551 return result;
2552 }
2553
2554 @java.lang.Override
2555 public Builder clone() {
2556 return super.clone();
2557 }
2558 @java.lang.Override
2560 com.google.protobuf.Descriptors.FieldDescriptor field,
2561 java.lang.Object value) {
2562 return super.setField(field, value);
2563 }
2564 @java.lang.Override
2566 com.google.protobuf.Descriptors.FieldDescriptor field) {
2567 return super.clearField(field);
2568 }
2569 @java.lang.Override
2571 com.google.protobuf.Descriptors.OneofDescriptor oneof) {
2572 return super.clearOneof(oneof);
2573 }
2574 @java.lang.Override
2576 com.google.protobuf.Descriptors.FieldDescriptor field,
2577 int index, java.lang.Object value) {
2578 return super.setRepeatedField(field, index, value);
2579 }
2580 @java.lang.Override
2582 com.google.protobuf.Descriptors.FieldDescriptor field,
2583 java.lang.Object value) {
2584 return super.addRepeatedField(field, value);
2585 }
2586 @java.lang.Override
2587 public Builder mergeFrom(com.google.protobuf.Message other) {
2588 if (other instanceof com.google.ortools.sat.ConstraintProto) {
2589 return mergeFrom((com.google.ortools.sat.ConstraintProto)other);
2590 } else {
2591 super.mergeFrom(other);
2592 return this;
2593 }
2594 }
2595
2596 public Builder mergeFrom(com.google.ortools.sat.ConstraintProto other) {
2597 if (other == com.google.ortools.sat.ConstraintProto.getDefaultInstance()) return this;
2598 if (!other.getName().isEmpty()) {
2599 name_ = other.name_;
2600 onChanged();
2601 }
2602 if (!other.enforcementLiteral_.isEmpty()) {
2603 if (enforcementLiteral_.isEmpty()) {
2604 enforcementLiteral_ = other.enforcementLiteral_;
2605 bitField0_ = (bitField0_ & ~0x00000001);
2606 } else {
2607 ensureEnforcementLiteralIsMutable();
2608 enforcementLiteral_.addAll(other.enforcementLiteral_);
2609 }
2610 onChanged();
2611 }
2612 switch (other.getConstraintCase()) {
2613 case BOOL_OR: {
2614 mergeBoolOr(other.getBoolOr());
2615 break;
2616 }
2617 case BOOL_AND: {
2618 mergeBoolAnd(other.getBoolAnd());
2619 break;
2620 }
2621 case AT_MOST_ONE: {
2622 mergeAtMostOne(other.getAtMostOne());
2623 break;
2624 }
2625 case EXACTLY_ONE: {
2626 mergeExactlyOne(other.getExactlyOne());
2627 break;
2628 }
2629 case BOOL_XOR: {
2630 mergeBoolXor(other.getBoolXor());
2631 break;
2632 }
2633 case INT_DIV: {
2634 mergeIntDiv(other.getIntDiv());
2635 break;
2636 }
2637 case INT_MOD: {
2638 mergeIntMod(other.getIntMod());
2639 break;
2640 }
2641 case INT_PROD: {
2642 mergeIntProd(other.getIntProd());
2643 break;
2644 }
2645 case LIN_MAX: {
2646 mergeLinMax(other.getLinMax());
2647 break;
2648 }
2649 case LINEAR: {
2650 mergeLinear(other.getLinear());
2651 break;
2652 }
2653 case ALL_DIFF: {
2654 mergeAllDiff(other.getAllDiff());
2655 break;
2656 }
2657 case ELEMENT: {
2658 mergeElement(other.getElement());
2659 break;
2660 }
2661 case CIRCUIT: {
2662 mergeCircuit(other.getCircuit());
2663 break;
2664 }
2665 case ROUTES: {
2666 mergeRoutes(other.getRoutes());
2667 break;
2668 }
2669 case TABLE: {
2670 mergeTable(other.getTable());
2671 break;
2672 }
2673 case AUTOMATON: {
2674 mergeAutomaton(other.getAutomaton());
2675 break;
2676 }
2677 case INVERSE: {
2678 mergeInverse(other.getInverse());
2679 break;
2680 }
2681 case RESERVOIR: {
2682 mergeReservoir(other.getReservoir());
2683 break;
2684 }
2685 case INTERVAL: {
2686 mergeInterval(other.getInterval());
2687 break;
2688 }
2689 case NO_OVERLAP: {
2690 mergeNoOverlap(other.getNoOverlap());
2691 break;
2692 }
2693 case NO_OVERLAP_2D: {
2694 mergeNoOverlap2D(other.getNoOverlap2D());
2695 break;
2696 }
2697 case CUMULATIVE: {
2698 mergeCumulative(other.getCumulative());
2699 break;
2700 }
2701 case DUMMY_CONSTRAINT: {
2702 mergeDummyConstraint(other.getDummyConstraint());
2703 break;
2704 }
2705 case CONSTRAINT_NOT_SET: {
2706 break;
2707 }
2708 }
2709 this.mergeUnknownFields(other.unknownFields);
2710 onChanged();
2711 return this;
2712 }
2713
2714 @java.lang.Override
2715 public final boolean isInitialized() {
2716 return true;
2717 }
2718
2719 @java.lang.Override
2721 com.google.protobuf.CodedInputStream input,
2722 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2723 throws java.io.IOException {
2724 com.google.ortools.sat.ConstraintProto parsedMessage = null;
2725 try {
2726 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
2727 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2728 parsedMessage = (com.google.ortools.sat.ConstraintProto) e.getUnfinishedMessage();
2729 throw e.unwrapIOException();
2730 } finally {
2731 if (parsedMessage != null) {
2732 mergeFrom(parsedMessage);
2733 }
2734 }
2735 return this;
2736 }
2737 private int constraintCase_ = 0;
2738 private java.lang.Object constraint_;
2739 public ConstraintCase
2742 constraintCase_);
2743 }
2744
2746 constraintCase_ = 0;
2747 constraint_ = null;
2748 onChanged();
2749 return this;
2750 }
2751
2752 private int bitField0_;
2753
2754 private java.lang.Object name_ = "";
2763 public java.lang.String getName() {
2764 java.lang.Object ref = name_;
2765 if (!(ref instanceof java.lang.String)) {
2766 com.google.protobuf.ByteString bs =
2767 (com.google.protobuf.ByteString) ref;
2768 java.lang.String s = bs.toStringUtf8();
2769 name_ = s;
2770 return s;
2771 } else {
2772 return (java.lang.String) ref;
2773 }
2774 }
2783 public com.google.protobuf.ByteString
2785 java.lang.Object ref = name_;
2786 if (ref instanceof String) {
2787 com.google.protobuf.ByteString b =
2788 com.google.protobuf.ByteString.copyFromUtf8(
2789 (java.lang.String) ref);
2790 name_ = b;
2791 return b;
2792 } else {
2793 return (com.google.protobuf.ByteString) ref;
2794 }
2795 }
2806 java.lang.String value) {
2807 if (value == null) {
2808 throw new NullPointerException();
2809 }
2810
2811 name_ = value;
2812 onChanged();
2813 return this;
2814 }
2824
2825 name_ = getDefaultInstance().getName();
2826 onChanged();
2827 return this;
2828 }
2839 com.google.protobuf.ByteString value) {
2840 if (value == null) {
2841 throw new NullPointerException();
2842 }
2843 checkByteStringIsUtf8(value);
2844
2845 name_ = value;
2846 onChanged();
2847 return this;
2848 }
2849
2850 private com.google.protobuf.Internal.IntList enforcementLiteral_ = emptyIntList();
2851 private void ensureEnforcementLiteralIsMutable() {
2852 if (!((bitField0_ & 0x00000001) != 0)) {
2853 enforcementLiteral_ = mutableCopy(enforcementLiteral_);
2854 bitField0_ |= 0x00000001;
2855 }
2856 }
2876 public java.util.List<java.lang.Integer>
2878 return ((bitField0_ & 0x00000001) != 0) ?
2879 java.util.Collections.unmodifiableList(enforcementLiteral_) : enforcementLiteral_;
2880 }
2901 return enforcementLiteral_.size();
2902 }
2923 public int getEnforcementLiteral(int index) {
2924 return enforcementLiteral_.getInt(index);
2925 }
2948 int index, int value) {
2949 ensureEnforcementLiteralIsMutable();
2950 enforcementLiteral_.setInt(index, value);
2951 onChanged();
2952 return this;
2953 }
2974 public Builder addEnforcementLiteral(int value) {
2975 ensureEnforcementLiteralIsMutable();
2976 enforcementLiteral_.addInt(value);
2977 onChanged();
2978 return this;
2979 }
3001 java.lang.Iterable<? extends java.lang.Integer> values) {
3002 ensureEnforcementLiteralIsMutable();
3003 com.google.protobuf.AbstractMessageLite.Builder.addAll(
3004 values, enforcementLiteral_);
3005 onChanged();
3006 return this;
3007 }
3028 enforcementLiteral_ = emptyIntList();
3029 bitField0_ = (bitField0_ & ~0x00000001);
3030 onChanged();
3031 return this;
3032 }
3033
3034 private com.google.protobuf.SingleFieldBuilderV3<
3035 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder> boolOrBuilder_;
3044 @java.lang.Override
3045 public boolean hasBoolOr() {
3046 return constraintCase_ == 3;
3047 }
3056 @java.lang.Override
3057 public com.google.ortools.sat.BoolArgumentProto getBoolOr() {
3058 if (boolOrBuilder_ == null) {
3059 if (constraintCase_ == 3) {
3060 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3061 }
3062 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3063 } else {
3064 if (constraintCase_ == 3) {
3065 return boolOrBuilder_.getMessage();
3066 }
3067 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3068 }
3069 }
3077 public Builder setBoolOr(com.google.ortools.sat.BoolArgumentProto value) {
3078 if (boolOrBuilder_ == null) {
3079 if (value == null) {
3080 throw new NullPointerException();
3081 }
3082 constraint_ = value;
3083 onChanged();
3084 } else {
3085 boolOrBuilder_.setMessage(value);
3086 }
3087 constraintCase_ = 3;
3088 return this;
3089 }
3098 com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
3099 if (boolOrBuilder_ == null) {
3100 constraint_ = builderForValue.build();
3101 onChanged();
3102 } else {
3103 boolOrBuilder_.setMessage(builderForValue.build());
3104 }
3105 constraintCase_ = 3;
3106 return this;
3107 }
3115 public Builder mergeBoolOr(com.google.ortools.sat.BoolArgumentProto value) {
3116 if (boolOrBuilder_ == null) {
3117 if (constraintCase_ == 3 &&
3118 constraint_ != com.google.ortools.sat.BoolArgumentProto.getDefaultInstance()) {
3119 constraint_ = com.google.ortools.sat.BoolArgumentProto.newBuilder((com.google.ortools.sat.BoolArgumentProto) constraint_)
3120 .mergeFrom(value).buildPartial();
3121 } else {
3122 constraint_ = value;
3123 }
3124 onChanged();
3125 } else {
3126 if (constraintCase_ == 3) {
3127 boolOrBuilder_.mergeFrom(value);
3128 }
3129 boolOrBuilder_.setMessage(value);
3130 }
3131 constraintCase_ = 3;
3132 return this;
3133 }
3142 if (boolOrBuilder_ == null) {
3143 if (constraintCase_ == 3) {
3144 constraintCase_ = 0;
3145 constraint_ = null;
3146 onChanged();
3147 }
3148 } else {
3149 if (constraintCase_ == 3) {
3150 constraintCase_ = 0;
3151 constraint_ = null;
3152 }
3153 boolOrBuilder_.clear();
3154 }
3155 return this;
3156 }
3164 public com.google.ortools.sat.BoolArgumentProto.Builder getBoolOrBuilder() {
3165 return getBoolOrFieldBuilder().getBuilder();
3166 }
3174 @java.lang.Override
3175 public com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolOrOrBuilder() {
3176 if ((constraintCase_ == 3) && (boolOrBuilder_ != null)) {
3177 return boolOrBuilder_.getMessageOrBuilder();
3178 } else {
3179 if (constraintCase_ == 3) {
3180 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3181 }
3182 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3183 }
3184 }
3192 private com.google.protobuf.SingleFieldBuilderV3<
3193 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder>
3194 getBoolOrFieldBuilder() {
3195 if (boolOrBuilder_ == null) {
3196 if (!(constraintCase_ == 3)) {
3197 constraint_ = com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3198 }
3199 boolOrBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
3200 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder>(
3201 (com.google.ortools.sat.BoolArgumentProto) constraint_,
3202 getParentForChildren(),
3203 isClean());
3204 constraint_ = null;
3205 }
3206 constraintCase_ = 3;
3207 onChanged();;
3208 return boolOrBuilder_;
3209 }
3210
3211 private com.google.protobuf.SingleFieldBuilderV3<
3212 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder> boolAndBuilder_;
3224 @java.lang.Override
3225 public boolean hasBoolAnd() {
3226 return constraintCase_ == 4;
3227 }
3239 @java.lang.Override
3240 public com.google.ortools.sat.BoolArgumentProto getBoolAnd() {
3241 if (boolAndBuilder_ == null) {
3242 if (constraintCase_ == 4) {
3243 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3244 }
3245 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3246 } else {
3247 if (constraintCase_ == 4) {
3248 return boolAndBuilder_.getMessage();
3249 }
3250 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3251 }
3252 }
3263 public Builder setBoolAnd(com.google.ortools.sat.BoolArgumentProto value) {
3264 if (boolAndBuilder_ == null) {
3265 if (value == null) {
3266 throw new NullPointerException();
3267 }
3268 constraint_ = value;
3269 onChanged();
3270 } else {
3271 boolAndBuilder_.setMessage(value);
3272 }
3273 constraintCase_ = 4;
3274 return this;
3275 }
3287 com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
3288 if (boolAndBuilder_ == null) {
3289 constraint_ = builderForValue.build();
3290 onChanged();
3291 } else {
3292 boolAndBuilder_.setMessage(builderForValue.build());
3293 }
3294 constraintCase_ = 4;
3295 return this;
3296 }
3307 public Builder mergeBoolAnd(com.google.ortools.sat.BoolArgumentProto value) {
3308 if (boolAndBuilder_ == null) {
3309 if (constraintCase_ == 4 &&
3310 constraint_ != com.google.ortools.sat.BoolArgumentProto.getDefaultInstance()) {
3311 constraint_ = com.google.ortools.sat.BoolArgumentProto.newBuilder((com.google.ortools.sat.BoolArgumentProto) constraint_)
3312 .mergeFrom(value).buildPartial();
3313 } else {
3314 constraint_ = value;
3315 }
3316 onChanged();
3317 } else {
3318 if (constraintCase_ == 4) {
3319 boolAndBuilder_.mergeFrom(value);
3320 }
3321 boolAndBuilder_.setMessage(value);
3322 }
3323 constraintCase_ = 4;
3324 return this;
3325 }
3337 if (boolAndBuilder_ == null) {
3338 if (constraintCase_ == 4) {
3339 constraintCase_ = 0;
3340 constraint_ = null;
3341 onChanged();
3342 }
3343 } else {
3344 if (constraintCase_ == 4) {
3345 constraintCase_ = 0;
3346 constraint_ = null;
3347 }
3348 boolAndBuilder_.clear();
3349 }
3350 return this;
3351 }
3362 public com.google.ortools.sat.BoolArgumentProto.Builder getBoolAndBuilder() {
3363 return getBoolAndFieldBuilder().getBuilder();
3364 }
3375 @java.lang.Override
3376 public com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolAndOrBuilder() {
3377 if ((constraintCase_ == 4) && (boolAndBuilder_ != null)) {
3378 return boolAndBuilder_.getMessageOrBuilder();
3379 } else {
3380 if (constraintCase_ == 4) {
3381 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3382 }
3383 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3384 }
3385 }
3396 private com.google.protobuf.SingleFieldBuilderV3<
3397 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder>
3398 getBoolAndFieldBuilder() {
3399 if (boolAndBuilder_ == null) {
3400 if (!(constraintCase_ == 4)) {
3401 constraint_ = com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3402 }
3403 boolAndBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
3404 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder>(
3405 (com.google.ortools.sat.BoolArgumentProto) constraint_,
3406 getParentForChildren(),
3407 isClean());
3408 constraint_ = null;
3409 }
3410 constraintCase_ = 4;
3411 onChanged();;
3412 return boolAndBuilder_;
3413 }
3414
3415 private com.google.protobuf.SingleFieldBuilderV3<
3416 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder> atMostOneBuilder_;
3433 @java.lang.Override
3434 public boolean hasAtMostOne() {
3435 return constraintCase_ == 26;
3436 }
3453 @java.lang.Override
3454 public com.google.ortools.sat.BoolArgumentProto getAtMostOne() {
3455 if (atMostOneBuilder_ == null) {
3456 if (constraintCase_ == 26) {
3457 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3458 }
3459 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3460 } else {
3461 if (constraintCase_ == 26) {
3462 return atMostOneBuilder_.getMessage();
3463 }
3464 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3465 }
3466 }
3482 public Builder setAtMostOne(com.google.ortools.sat.BoolArgumentProto value) {
3483 if (atMostOneBuilder_ == null) {
3484 if (value == null) {
3485 throw new NullPointerException();
3486 }
3487 constraint_ = value;
3488 onChanged();
3489 } else {
3490 atMostOneBuilder_.setMessage(value);
3491 }
3492 constraintCase_ = 26;
3493 return this;
3494 }
3511 com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
3512 if (atMostOneBuilder_ == null) {
3513 constraint_ = builderForValue.build();
3514 onChanged();
3515 } else {
3516 atMostOneBuilder_.setMessage(builderForValue.build());
3517 }
3518 constraintCase_ = 26;
3519 return this;
3520 }
3536 public Builder mergeAtMostOne(com.google.ortools.sat.BoolArgumentProto value) {
3537 if (atMostOneBuilder_ == null) {
3538 if (constraintCase_ == 26 &&
3539 constraint_ != com.google.ortools.sat.BoolArgumentProto.getDefaultInstance()) {
3540 constraint_ = com.google.ortools.sat.BoolArgumentProto.newBuilder((com.google.ortools.sat.BoolArgumentProto) constraint_)
3541 .mergeFrom(value).buildPartial();
3542 } else {
3543 constraint_ = value;
3544 }
3545 onChanged();
3546 } else {
3547 if (constraintCase_ == 26) {
3548 atMostOneBuilder_.mergeFrom(value);
3549 }
3550 atMostOneBuilder_.setMessage(value);
3551 }
3552 constraintCase_ = 26;
3553 return this;
3554 }
3571 if (atMostOneBuilder_ == null) {
3572 if (constraintCase_ == 26) {
3573 constraintCase_ = 0;
3574 constraint_ = null;
3575 onChanged();
3576 }
3577 } else {
3578 if (constraintCase_ == 26) {
3579 constraintCase_ = 0;
3580 constraint_ = null;
3581 }
3582 atMostOneBuilder_.clear();
3583 }
3584 return this;
3585 }
3601 public com.google.ortools.sat.BoolArgumentProto.Builder getAtMostOneBuilder() {
3602 return getAtMostOneFieldBuilder().getBuilder();
3603 }
3619 @java.lang.Override
3620 public com.google.ortools.sat.BoolArgumentProtoOrBuilder getAtMostOneOrBuilder() {
3621 if ((constraintCase_ == 26) && (atMostOneBuilder_ != null)) {
3622 return atMostOneBuilder_.getMessageOrBuilder();
3623 } else {
3624 if (constraintCase_ == 26) {
3625 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3626 }
3627 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3628 }
3629 }
3645 private com.google.protobuf.SingleFieldBuilderV3<
3646 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder>
3647 getAtMostOneFieldBuilder() {
3648 if (atMostOneBuilder_ == null) {
3649 if (!(constraintCase_ == 26)) {
3650 constraint_ = com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3651 }
3652 atMostOneBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
3653 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder>(
3654 (com.google.ortools.sat.BoolArgumentProto) constraint_,
3655 getParentForChildren(),
3656 isClean());
3657 constraint_ = null;
3658 }
3659 constraintCase_ = 26;
3660 onChanged();;
3661 return atMostOneBuilder_;
3662 }
3663
3664 private com.google.protobuf.SingleFieldBuilderV3<
3665 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder> exactlyOneBuilder_;
3683 @java.lang.Override
3684 public boolean hasExactlyOne() {
3685 return constraintCase_ == 29;
3686 }
3704 @java.lang.Override
3705 public com.google.ortools.sat.BoolArgumentProto getExactlyOne() {
3706 if (exactlyOneBuilder_ == null) {
3707 if (constraintCase_ == 29) {
3708 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3709 }
3710 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3711 } else {
3712 if (constraintCase_ == 29) {
3713 return exactlyOneBuilder_.getMessage();
3714 }
3715 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3716 }
3717 }
3734 public Builder setExactlyOne(com.google.ortools.sat.BoolArgumentProto value) {
3735 if (exactlyOneBuilder_ == null) {
3736 if (value == null) {
3737 throw new NullPointerException();
3738 }
3739 constraint_ = value;
3740 onChanged();
3741 } else {
3742 exactlyOneBuilder_.setMessage(value);
3743 }
3744 constraintCase_ = 29;
3745 return this;
3746 }
3764 com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
3765 if (exactlyOneBuilder_ == null) {
3766 constraint_ = builderForValue.build();
3767 onChanged();
3768 } else {
3769 exactlyOneBuilder_.setMessage(builderForValue.build());
3770 }
3771 constraintCase_ = 29;
3772 return this;
3773 }
3790 public Builder mergeExactlyOne(com.google.ortools.sat.BoolArgumentProto value) {
3791 if (exactlyOneBuilder_ == null) {
3792 if (constraintCase_ == 29 &&
3793 constraint_ != com.google.ortools.sat.BoolArgumentProto.getDefaultInstance()) {
3794 constraint_ = com.google.ortools.sat.BoolArgumentProto.newBuilder((com.google.ortools.sat.BoolArgumentProto) constraint_)
3795 .mergeFrom(value).buildPartial();
3796 } else {
3797 constraint_ = value;
3798 }
3799 onChanged();
3800 } else {
3801 if (constraintCase_ == 29) {
3802 exactlyOneBuilder_.mergeFrom(value);
3803 }
3804 exactlyOneBuilder_.setMessage(value);
3805 }
3806 constraintCase_ = 29;
3807 return this;
3808 }
3826 if (exactlyOneBuilder_ == null) {
3827 if (constraintCase_ == 29) {
3828 constraintCase_ = 0;
3829 constraint_ = null;
3830 onChanged();
3831 }
3832 } else {
3833 if (constraintCase_ == 29) {
3834 constraintCase_ = 0;
3835 constraint_ = null;
3836 }
3837 exactlyOneBuilder_.clear();
3838 }
3839 return this;
3840 }
3857 public com.google.ortools.sat.BoolArgumentProto.Builder getExactlyOneBuilder() {
3858 return getExactlyOneFieldBuilder().getBuilder();
3859 }
3876 @java.lang.Override
3877 public com.google.ortools.sat.BoolArgumentProtoOrBuilder getExactlyOneOrBuilder() {
3878 if ((constraintCase_ == 29) && (exactlyOneBuilder_ != null)) {
3879 return exactlyOneBuilder_.getMessageOrBuilder();
3880 } else {
3881 if (constraintCase_ == 29) {
3882 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3883 }
3884 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3885 }
3886 }
3903 private com.google.protobuf.SingleFieldBuilderV3<
3904 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder>
3905 getExactlyOneFieldBuilder() {
3906 if (exactlyOneBuilder_ == null) {
3907 if (!(constraintCase_ == 29)) {
3908 constraint_ = com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3909 }
3910 exactlyOneBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
3911 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder>(
3912 (com.google.ortools.sat.BoolArgumentProto) constraint_,
3913 getParentForChildren(),
3914 isClean());
3915 constraint_ = null;
3916 }
3917 constraintCase_ = 29;
3918 onChanged();;
3919 return exactlyOneBuilder_;
3920 }
3921
3922 private com.google.protobuf.SingleFieldBuilderV3<
3923 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder> boolXorBuilder_;
3932 @java.lang.Override
3933 public boolean hasBoolXor() {
3934 return constraintCase_ == 5;
3935 }
3944 @java.lang.Override
3945 public com.google.ortools.sat.BoolArgumentProto getBoolXor() {
3946 if (boolXorBuilder_ == null) {
3947 if (constraintCase_ == 5) {
3948 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3949 }
3950 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3951 } else {
3952 if (constraintCase_ == 5) {
3953 return boolXorBuilder_.getMessage();
3954 }
3955 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3956 }
3957 }
3965 public Builder setBoolXor(com.google.ortools.sat.BoolArgumentProto value) {
3966 if (boolXorBuilder_ == null) {
3967 if (value == null) {
3968 throw new NullPointerException();
3969 }
3970 constraint_ = value;
3971 onChanged();
3972 } else {
3973 boolXorBuilder_.setMessage(value);
3974 }
3975 constraintCase_ = 5;
3976 return this;
3977 }
3986 com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
3987 if (boolXorBuilder_ == null) {
3988 constraint_ = builderForValue.build();
3989 onChanged();
3990 } else {
3991 boolXorBuilder_.setMessage(builderForValue.build());
3992 }
3993 constraintCase_ = 5;
3994 return this;
3995 }
4003 public Builder mergeBoolXor(com.google.ortools.sat.BoolArgumentProto value) {
4004 if (boolXorBuilder_ == null) {
4005 if (constraintCase_ == 5 &&
4006 constraint_ != com.google.ortools.sat.BoolArgumentProto.getDefaultInstance()) {
4007 constraint_ = com.google.ortools.sat.BoolArgumentProto.newBuilder((com.google.ortools.sat.BoolArgumentProto) constraint_)
4008 .mergeFrom(value).buildPartial();
4009 } else {
4010 constraint_ = value;
4011 }
4012 onChanged();
4013 } else {
4014 if (constraintCase_ == 5) {
4015 boolXorBuilder_.mergeFrom(value);
4016 }
4017 boolXorBuilder_.setMessage(value);
4018 }
4019 constraintCase_ = 5;
4020 return this;
4021 }
4030 if (boolXorBuilder_ == null) {
4031 if (constraintCase_ == 5) {
4032 constraintCase_ = 0;
4033 constraint_ = null;
4034 onChanged();
4035 }
4036 } else {
4037 if (constraintCase_ == 5) {
4038 constraintCase_ = 0;
4039 constraint_ = null;
4040 }
4041 boolXorBuilder_.clear();
4042 }
4043 return this;
4044 }
4052 public com.google.ortools.sat.BoolArgumentProto.Builder getBoolXorBuilder() {
4053 return getBoolXorFieldBuilder().getBuilder();
4054 }
4062 @java.lang.Override
4063 public com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolXorOrBuilder() {
4064 if ((constraintCase_ == 5) && (boolXorBuilder_ != null)) {
4065 return boolXorBuilder_.getMessageOrBuilder();
4066 } else {
4067 if (constraintCase_ == 5) {
4068 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
4069 }
4070 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
4071 }
4072 }
4080 private com.google.protobuf.SingleFieldBuilderV3<
4081 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder>
4082 getBoolXorFieldBuilder() {
4083 if (boolXorBuilder_ == null) {
4084 if (!(constraintCase_ == 5)) {
4085 constraint_ = com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
4086 }
4087 boolXorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4088 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder>(
4089 (com.google.ortools.sat.BoolArgumentProto) constraint_,
4090 getParentForChildren(),
4091 isClean());
4092 constraint_ = null;
4093 }
4094 constraintCase_ = 5;
4095 onChanged();;
4096 return boolXorBuilder_;
4097 }
4098
4099 private com.google.protobuf.SingleFieldBuilderV3<
4100 com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder> intDivBuilder_;
4111 @java.lang.Override
4112 public boolean hasIntDiv() {
4113 return constraintCase_ == 7;
4114 }
4125 @java.lang.Override
4126 public com.google.ortools.sat.LinearArgumentProto getIntDiv() {
4127 if (intDivBuilder_ == null) {
4128 if (constraintCase_ == 7) {
4129 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
4130 }
4131 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4132 } else {
4133 if (constraintCase_ == 7) {
4134 return intDivBuilder_.getMessage();
4135 }
4136 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4137 }
4138 }
4148 public Builder setIntDiv(com.google.ortools.sat.LinearArgumentProto value) {
4149 if (intDivBuilder_ == null) {
4150 if (value == null) {
4151 throw new NullPointerException();
4152 }
4153 constraint_ = value;
4154 onChanged();
4155 } else {
4156 intDivBuilder_.setMessage(value);
4157 }
4158 constraintCase_ = 7;
4159 return this;
4160 }
4171 com.google.ortools.sat.LinearArgumentProto.Builder builderForValue) {
4172 if (intDivBuilder_ == null) {
4173 constraint_ = builderForValue.build();
4174 onChanged();
4175 } else {
4176 intDivBuilder_.setMessage(builderForValue.build());
4177 }
4178 constraintCase_ = 7;
4179 return this;
4180 }
4190 public Builder mergeIntDiv(com.google.ortools.sat.LinearArgumentProto value) {
4191 if (intDivBuilder_ == null) {
4192 if (constraintCase_ == 7 &&
4193 constraint_ != com.google.ortools.sat.LinearArgumentProto.getDefaultInstance()) {
4194 constraint_ = com.google.ortools.sat.LinearArgumentProto.newBuilder((com.google.ortools.sat.LinearArgumentProto) constraint_)
4195 .mergeFrom(value).buildPartial();
4196 } else {
4197 constraint_ = value;
4198 }
4199 onChanged();
4200 } else {
4201 if (constraintCase_ == 7) {
4202 intDivBuilder_.mergeFrom(value);
4203 }
4204 intDivBuilder_.setMessage(value);
4205 }
4206 constraintCase_ = 7;
4207 return this;
4208 }
4219 if (intDivBuilder_ == null) {
4220 if (constraintCase_ == 7) {
4221 constraintCase_ = 0;
4222 constraint_ = null;
4223 onChanged();
4224 }
4225 } else {
4226 if (constraintCase_ == 7) {
4227 constraintCase_ = 0;
4228 constraint_ = null;
4229 }
4230 intDivBuilder_.clear();
4231 }
4232 return this;
4233 }
4243 public com.google.ortools.sat.LinearArgumentProto.Builder getIntDivBuilder() {
4244 return getIntDivFieldBuilder().getBuilder();
4245 }
4255 @java.lang.Override
4256 public com.google.ortools.sat.LinearArgumentProtoOrBuilder getIntDivOrBuilder() {
4257 if ((constraintCase_ == 7) && (intDivBuilder_ != null)) {
4258 return intDivBuilder_.getMessageOrBuilder();
4259 } else {
4260 if (constraintCase_ == 7) {
4261 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
4262 }
4263 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4264 }
4265 }
4275 private com.google.protobuf.SingleFieldBuilderV3<
4276 com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder>
4277 getIntDivFieldBuilder() {
4278 if (intDivBuilder_ == null) {
4279 if (!(constraintCase_ == 7)) {
4280 constraint_ = com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4281 }
4282 intDivBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4283 com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder>(
4284 (com.google.ortools.sat.LinearArgumentProto) constraint_,
4285 getParentForChildren(),
4286 isClean());
4287 constraint_ = null;
4288 }
4289 constraintCase_ = 7;
4290 onChanged();;
4291 return intDivBuilder_;
4292 }
4293
4294 private com.google.protobuf.SingleFieldBuilderV3<
4295 com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder> intModBuilder_;
4306 @java.lang.Override
4307 public boolean hasIntMod() {
4308 return constraintCase_ == 8;
4309 }
4320 @java.lang.Override
4321 public com.google.ortools.sat.LinearArgumentProto getIntMod() {
4322 if (intModBuilder_ == null) {
4323 if (constraintCase_ == 8) {
4324 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
4325 }
4326 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4327 } else {
4328 if (constraintCase_ == 8) {
4329 return intModBuilder_.getMessage();
4330 }
4331 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4332 }
4333 }
4343 public Builder setIntMod(com.google.ortools.sat.LinearArgumentProto value) {
4344 if (intModBuilder_ == null) {
4345 if (value == null) {
4346 throw new NullPointerException();
4347 }
4348 constraint_ = value;
4349 onChanged();
4350 } else {
4351 intModBuilder_.setMessage(value);
4352 }
4353 constraintCase_ = 8;
4354 return this;
4355 }
4366 com.google.ortools.sat.LinearArgumentProto.Builder builderForValue) {
4367 if (intModBuilder_ == null) {
4368 constraint_ = builderForValue.build();
4369 onChanged();
4370 } else {
4371 intModBuilder_.setMessage(builderForValue.build());
4372 }
4373 constraintCase_ = 8;
4374 return this;
4375 }
4385 public Builder mergeIntMod(com.google.ortools.sat.LinearArgumentProto value) {
4386 if (intModBuilder_ == null) {
4387 if (constraintCase_ == 8 &&
4388 constraint_ != com.google.ortools.sat.LinearArgumentProto.getDefaultInstance()) {
4389 constraint_ = com.google.ortools.sat.LinearArgumentProto.newBuilder((com.google.ortools.sat.LinearArgumentProto) constraint_)
4390 .mergeFrom(value).buildPartial();
4391 } else {
4392 constraint_ = value;
4393 }
4394 onChanged();
4395 } else {
4396 if (constraintCase_ == 8) {
4397 intModBuilder_.mergeFrom(value);
4398 }
4399 intModBuilder_.setMessage(value);
4400 }
4401 constraintCase_ = 8;
4402 return this;
4403 }
4414 if (intModBuilder_ == null) {
4415 if (constraintCase_ == 8) {
4416 constraintCase_ = 0;
4417 constraint_ = null;
4418 onChanged();
4419 }
4420 } else {
4421 if (constraintCase_ == 8) {
4422 constraintCase_ = 0;
4423 constraint_ = null;
4424 }
4425 intModBuilder_.clear();
4426 }
4427 return this;
4428 }
4438 public com.google.ortools.sat.LinearArgumentProto.Builder getIntModBuilder() {
4439 return getIntModFieldBuilder().getBuilder();
4440 }
4450 @java.lang.Override
4451 public com.google.ortools.sat.LinearArgumentProtoOrBuilder getIntModOrBuilder() {
4452 if ((constraintCase_ == 8) && (intModBuilder_ != null)) {
4453 return intModBuilder_.getMessageOrBuilder();
4454 } else {
4455 if (constraintCase_ == 8) {
4456 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
4457 }
4458 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4459 }
4460 }
4470 private com.google.protobuf.SingleFieldBuilderV3<
4471 com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder>
4472 getIntModFieldBuilder() {
4473 if (intModBuilder_ == null) {
4474 if (!(constraintCase_ == 8)) {
4475 constraint_ = com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4476 }
4477 intModBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4478 com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder>(
4479 (com.google.ortools.sat.LinearArgumentProto) constraint_,
4480 getParentForChildren(),
4481 isClean());
4482 constraint_ = null;
4483 }
4484 constraintCase_ = 8;
4485 onChanged();;
4486 return intModBuilder_;
4487 }
4488
4489 private com.google.protobuf.SingleFieldBuilderV3<
4490 com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder> intProdBuilder_;
4505 @java.lang.Override
4506 public boolean hasIntProd() {
4507 return constraintCase_ == 11;
4508 }
4523 @java.lang.Override
4524 public com.google.ortools.sat.LinearArgumentProto getIntProd() {
4525 if (intProdBuilder_ == null) {
4526 if (constraintCase_ == 11) {
4527 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
4528 }
4529 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4530 } else {
4531 if (constraintCase_ == 11) {
4532 return intProdBuilder_.getMessage();
4533 }
4534 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4535 }
4536 }
4550 public Builder setIntProd(com.google.ortools.sat.LinearArgumentProto value) {
4551 if (intProdBuilder_ == null) {
4552 if (value == null) {
4553 throw new NullPointerException();
4554 }
4555 constraint_ = value;
4556 onChanged();
4557 } else {
4558 intProdBuilder_.setMessage(value);
4559 }
4560 constraintCase_ = 11;
4561 return this;
4562 }
4577 com.google.ortools.sat.LinearArgumentProto.Builder builderForValue) {
4578 if (intProdBuilder_ == null) {
4579 constraint_ = builderForValue.build();
4580 onChanged();
4581 } else {
4582 intProdBuilder_.setMessage(builderForValue.build());
4583 }
4584 constraintCase_ = 11;
4585 return this;
4586 }
4600 public Builder mergeIntProd(com.google.ortools.sat.LinearArgumentProto value) {
4601 if (intProdBuilder_ == null) {
4602 if (constraintCase_ == 11 &&
4603 constraint_ != com.google.ortools.sat.LinearArgumentProto.getDefaultInstance()) {
4604 constraint_ = com.google.ortools.sat.LinearArgumentProto.newBuilder((com.google.ortools.sat.LinearArgumentProto) constraint_)
4605 .mergeFrom(value).buildPartial();
4606 } else {
4607 constraint_ = value;
4608 }
4609 onChanged();
4610 } else {
4611 if (constraintCase_ == 11) {
4612 intProdBuilder_.mergeFrom(value);
4613 }
4614 intProdBuilder_.setMessage(value);
4615 }
4616 constraintCase_ = 11;
4617 return this;
4618 }
4633 if (intProdBuilder_ == null) {
4634 if (constraintCase_ == 11) {
4635 constraintCase_ = 0;
4636 constraint_ = null;
4637 onChanged();
4638 }
4639 } else {
4640 if (constraintCase_ == 11) {
4641 constraintCase_ = 0;
4642 constraint_ = null;
4643 }
4644 intProdBuilder_.clear();
4645 }
4646 return this;
4647 }
4661 public com.google.ortools.sat.LinearArgumentProto.Builder getIntProdBuilder() {
4662 return getIntProdFieldBuilder().getBuilder();
4663 }
4677 @java.lang.Override
4678 public com.google.ortools.sat.LinearArgumentProtoOrBuilder getIntProdOrBuilder() {
4679 if ((constraintCase_ == 11) && (intProdBuilder_ != null)) {
4680 return intProdBuilder_.getMessageOrBuilder();
4681 } else {
4682 if (constraintCase_ == 11) {
4683 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
4684 }
4685 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4686 }
4687 }
4701 private com.google.protobuf.SingleFieldBuilderV3<
4702 com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder>
4703 getIntProdFieldBuilder() {
4704 if (intProdBuilder_ == null) {
4705 if (!(constraintCase_ == 11)) {
4706 constraint_ = com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4707 }
4708 intProdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4709 com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder>(
4710 (com.google.ortools.sat.LinearArgumentProto) constraint_,
4711 getParentForChildren(),
4712 isClean());
4713 constraint_ = null;
4714 }
4715 constraintCase_ = 11;
4716 onChanged();;
4717 return intProdBuilder_;
4718 }
4719
4720 private com.google.protobuf.SingleFieldBuilderV3<
4721 com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder> linMaxBuilder_;
4732 @java.lang.Override
4733 public boolean hasLinMax() {
4734 return constraintCase_ == 27;
4735 }
4746 @java.lang.Override
4747 public com.google.ortools.sat.LinearArgumentProto getLinMax() {
4748 if (linMaxBuilder_ == null) {
4749 if (constraintCase_ == 27) {
4750 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
4751 }
4752 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4753 } else {
4754 if (constraintCase_ == 27) {
4755 return linMaxBuilder_.getMessage();
4756 }
4757 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4758 }
4759 }
4769 public Builder setLinMax(com.google.ortools.sat.LinearArgumentProto value) {
4770 if (linMaxBuilder_ == null) {
4771 if (value == null) {
4772 throw new NullPointerException();
4773 }
4774 constraint_ = value;
4775 onChanged();
4776 } else {
4777 linMaxBuilder_.setMessage(value);
4778 }
4779 constraintCase_ = 27;
4780 return this;
4781 }
4792 com.google.ortools.sat.LinearArgumentProto.Builder builderForValue) {
4793 if (linMaxBuilder_ == null) {
4794 constraint_ = builderForValue.build();
4795 onChanged();
4796 } else {
4797 linMaxBuilder_.setMessage(builderForValue.build());
4798 }
4799 constraintCase_ = 27;
4800 return this;
4801 }
4811 public Builder mergeLinMax(com.google.ortools.sat.LinearArgumentProto value) {
4812 if (linMaxBuilder_ == null) {
4813 if (constraintCase_ == 27 &&
4814 constraint_ != com.google.ortools.sat.LinearArgumentProto.getDefaultInstance()) {
4815 constraint_ = com.google.ortools.sat.LinearArgumentProto.newBuilder((com.google.ortools.sat.LinearArgumentProto) constraint_)
4816 .mergeFrom(value).buildPartial();
4817 } else {
4818 constraint_ = value;
4819 }
4820 onChanged();
4821 } else {
4822 if (constraintCase_ == 27) {
4823 linMaxBuilder_.mergeFrom(value);
4824 }
4825 linMaxBuilder_.setMessage(value);
4826 }
4827 constraintCase_ = 27;
4828 return this;
4829 }
4840 if (linMaxBuilder_ == null) {
4841 if (constraintCase_ == 27) {
4842 constraintCase_ = 0;
4843 constraint_ = null;
4844 onChanged();
4845 }
4846 } else {
4847 if (constraintCase_ == 27) {
4848 constraintCase_ = 0;
4849 constraint_ = null;
4850 }
4851 linMaxBuilder_.clear();
4852 }
4853 return this;
4854 }
4864 public com.google.ortools.sat.LinearArgumentProto.Builder getLinMaxBuilder() {
4865 return getLinMaxFieldBuilder().getBuilder();
4866 }
4876 @java.lang.Override
4877 public com.google.ortools.sat.LinearArgumentProtoOrBuilder getLinMaxOrBuilder() {
4878 if ((constraintCase_ == 27) && (linMaxBuilder_ != null)) {
4879 return linMaxBuilder_.getMessageOrBuilder();
4880 } else {
4881 if (constraintCase_ == 27) {
4882 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
4883 }
4884 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4885 }
4886 }
4896 private com.google.protobuf.SingleFieldBuilderV3<
4897 com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder>
4898 getLinMaxFieldBuilder() {
4899 if (linMaxBuilder_ == null) {
4900 if (!(constraintCase_ == 27)) {
4901 constraint_ = com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4902 }
4903 linMaxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4904 com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder>(
4905 (com.google.ortools.sat.LinearArgumentProto) constraint_,
4906 getParentForChildren(),
4907 isClean());
4908 constraint_ = null;
4909 }
4910 constraintCase_ = 27;
4911 onChanged();;
4912 return linMaxBuilder_;
4913 }
4914
4915 private com.google.protobuf.SingleFieldBuilderV3<
4916 com.google.ortools.sat.LinearConstraintProto, com.google.ortools.sat.LinearConstraintProto.Builder, com.google.ortools.sat.LinearConstraintProtoOrBuilder> linearBuilder_;
4926 @java.lang.Override
4927 public boolean hasLinear() {
4928 return constraintCase_ == 12;
4929 }
4939 @java.lang.Override
4940 public com.google.ortools.sat.LinearConstraintProto getLinear() {
4941 if (linearBuilder_ == null) {
4942 if (constraintCase_ == 12) {
4943 return (com.google.ortools.sat.LinearConstraintProto) constraint_;
4944 }
4945 return com.google.ortools.sat.LinearConstraintProto.getDefaultInstance();
4946 } else {
4947 if (constraintCase_ == 12) {
4948 return linearBuilder_.getMessage();
4949 }
4950 return com.google.ortools.sat.LinearConstraintProto.getDefaultInstance();
4951 }
4952 }
4961 public Builder setLinear(com.google.ortools.sat.LinearConstraintProto value) {
4962 if (linearBuilder_ == null) {
4963 if (value == null) {
4964 throw new NullPointerException();
4965 }
4966 constraint_ = value;
4967 onChanged();
4968 } else {
4969 linearBuilder_.setMessage(value);
4970 }
4971 constraintCase_ = 12;
4972 return this;
4973 }
4983 com.google.ortools.sat.LinearConstraintProto.Builder builderForValue) {
4984 if (linearBuilder_ == null) {
4985 constraint_ = builderForValue.build();
4986 onChanged();
4987 } else {
4988 linearBuilder_.setMessage(builderForValue.build());
4989 }
4990 constraintCase_ = 12;
4991 return this;
4992 }
5001 public Builder mergeLinear(com.google.ortools.sat.LinearConstraintProto value) {
5002 if (linearBuilder_ == null) {
5003 if (constraintCase_ == 12 &&
5004 constraint_ != com.google.ortools.sat.LinearConstraintProto.getDefaultInstance()) {
5005 constraint_ = com.google.ortools.sat.LinearConstraintProto.newBuilder((com.google.ortools.sat.LinearConstraintProto) constraint_)
5006 .mergeFrom(value).buildPartial();
5007 } else {
5008 constraint_ = value;
5009 }
5010 onChanged();
5011 } else {
5012 if (constraintCase_ == 12) {
5013 linearBuilder_.mergeFrom(value);
5014 }
5015 linearBuilder_.setMessage(value);
5016 }
5017 constraintCase_ = 12;
5018 return this;
5019 }
5029 if (linearBuilder_ == null) {
5030 if (constraintCase_ == 12) {
5031 constraintCase_ = 0;
5032 constraint_ = null;
5033 onChanged();
5034 }
5035 } else {
5036 if (constraintCase_ == 12) {
5037 constraintCase_ = 0;
5038 constraint_ = null;
5039 }
5040 linearBuilder_.clear();
5041 }
5042 return this;
5043 }
5052 public com.google.ortools.sat.LinearConstraintProto.Builder getLinearBuilder() {
5053 return getLinearFieldBuilder().getBuilder();
5054 }
5063 @java.lang.Override
5064 public com.google.ortools.sat.LinearConstraintProtoOrBuilder getLinearOrBuilder() {
5065 if ((constraintCase_ == 12) && (linearBuilder_ != null)) {
5066 return linearBuilder_.getMessageOrBuilder();
5067 } else {
5068 if (constraintCase_ == 12) {
5069 return (com.google.ortools.sat.LinearConstraintProto) constraint_;
5070 }
5071 return com.google.ortools.sat.LinearConstraintProto.getDefaultInstance();
5072 }
5073 }
5082 private com.google.protobuf.SingleFieldBuilderV3<
5083 com.google.ortools.sat.LinearConstraintProto, com.google.ortools.sat.LinearConstraintProto.Builder, com.google.ortools.sat.LinearConstraintProtoOrBuilder>
5084 getLinearFieldBuilder() {
5085 if (linearBuilder_ == null) {
5086 if (!(constraintCase_ == 12)) {
5087 constraint_ = com.google.ortools.sat.LinearConstraintProto.getDefaultInstance();
5088 }
5089 linearBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5090 com.google.ortools.sat.LinearConstraintProto, com.google.ortools.sat.LinearConstraintProto.Builder, com.google.ortools.sat.LinearConstraintProtoOrBuilder>(
5091 (com.google.ortools.sat.LinearConstraintProto) constraint_,
5092 getParentForChildren(),
5093 isClean());
5094 constraint_ = null;
5095 }
5096 constraintCase_ = 12;
5097 onChanged();;
5098 return linearBuilder_;
5099 }
5100
5101 private com.google.protobuf.SingleFieldBuilderV3<
5102 com.google.ortools.sat.AllDifferentConstraintProto, com.google.ortools.sat.AllDifferentConstraintProto.Builder, com.google.ortools.sat.AllDifferentConstraintProtoOrBuilder> allDiffBuilder_;
5111 @java.lang.Override
5112 public boolean hasAllDiff() {
5113 return constraintCase_ == 13;
5114 }
5123 @java.lang.Override
5124 public com.google.ortools.sat.AllDifferentConstraintProto getAllDiff() {
5125 if (allDiffBuilder_ == null) {
5126 if (constraintCase_ == 13) {
5127 return (com.google.ortools.sat.AllDifferentConstraintProto) constraint_;
5128 }
5129 return com.google.ortools.sat.AllDifferentConstraintProto.getDefaultInstance();
5130 } else {
5131 if (constraintCase_ == 13) {
5132 return allDiffBuilder_.getMessage();
5133 }
5134 return com.google.ortools.sat.AllDifferentConstraintProto.getDefaultInstance();
5135 }
5136 }
5144 public Builder setAllDiff(com.google.ortools.sat.AllDifferentConstraintProto value) {
5145 if (allDiffBuilder_ == null) {
5146 if (value == null) {
5147 throw new NullPointerException();
5148 }
5149 constraint_ = value;
5150 onChanged();
5151 } else {
5152 allDiffBuilder_.setMessage(value);
5153 }
5154 constraintCase_ = 13;
5155 return this;
5156 }
5165 com.google.ortools.sat.AllDifferentConstraintProto.Builder builderForValue) {
5166 if (allDiffBuilder_ == null) {
5167 constraint_ = builderForValue.build();
5168 onChanged();
5169 } else {
5170 allDiffBuilder_.setMessage(builderForValue.build());
5171 }
5172 constraintCase_ = 13;
5173 return this;
5174 }
5182 public Builder mergeAllDiff(com.google.ortools.sat.AllDifferentConstraintProto value) {
5183 if (allDiffBuilder_ == null) {
5184 if (constraintCase_ == 13 &&
5185 constraint_ != com.google.ortools.sat.AllDifferentConstraintProto.getDefaultInstance()) {
5186 constraint_ = com.google.ortools.sat.AllDifferentConstraintProto.newBuilder((com.google.ortools.sat.AllDifferentConstraintProto) constraint_)
5187 .mergeFrom(value).buildPartial();
5188 } else {
5189 constraint_ = value;
5190 }
5191 onChanged();
5192 } else {
5193 if (constraintCase_ == 13) {
5194 allDiffBuilder_.mergeFrom(value);
5195 }
5196 allDiffBuilder_.setMessage(value);
5197 }
5198 constraintCase_ = 13;
5199 return this;
5200 }
5209 if (allDiffBuilder_ == null) {
5210 if (constraintCase_ == 13) {
5211 constraintCase_ = 0;
5212 constraint_ = null;
5213 onChanged();
5214 }
5215 } else {
5216 if (constraintCase_ == 13) {
5217 constraintCase_ = 0;
5218 constraint_ = null;
5219 }
5220 allDiffBuilder_.clear();
5221 }
5222 return this;
5223 }
5231 public com.google.ortools.sat.AllDifferentConstraintProto.Builder getAllDiffBuilder() {
5232 return getAllDiffFieldBuilder().getBuilder();
5233 }
5241 @java.lang.Override
5242 public com.google.ortools.sat.AllDifferentConstraintProtoOrBuilder getAllDiffOrBuilder() {
5243 if ((constraintCase_ == 13) && (allDiffBuilder_ != null)) {
5244 return allDiffBuilder_.getMessageOrBuilder();
5245 } else {
5246 if (constraintCase_ == 13) {
5247 return (com.google.ortools.sat.AllDifferentConstraintProto) constraint_;
5248 }
5249 return com.google.ortools.sat.AllDifferentConstraintProto.getDefaultInstance();
5250 }
5251 }
5259 private com.google.protobuf.SingleFieldBuilderV3<
5260 com.google.ortools.sat.AllDifferentConstraintProto, com.google.ortools.sat.AllDifferentConstraintProto.Builder, com.google.ortools.sat.AllDifferentConstraintProtoOrBuilder>
5261 getAllDiffFieldBuilder() {
5262 if (allDiffBuilder_ == null) {
5263 if (!(constraintCase_ == 13)) {
5264 constraint_ = com.google.ortools.sat.AllDifferentConstraintProto.getDefaultInstance();
5265 }
5266 allDiffBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5267 com.google.ortools.sat.AllDifferentConstraintProto, com.google.ortools.sat.AllDifferentConstraintProto.Builder, com.google.ortools.sat.AllDifferentConstraintProtoOrBuilder>(
5268 (com.google.ortools.sat.AllDifferentConstraintProto) constraint_,
5269 getParentForChildren(),
5270 isClean());
5271 constraint_ = null;
5272 }
5273 constraintCase_ = 13;
5274 onChanged();;
5275 return allDiffBuilder_;
5276 }
5277
5278 private com.google.protobuf.SingleFieldBuilderV3<
5279 com.google.ortools.sat.ElementConstraintProto, com.google.ortools.sat.ElementConstraintProto.Builder, com.google.ortools.sat.ElementConstraintProtoOrBuilder> elementBuilder_;
5289 @java.lang.Override
5290 public boolean hasElement() {
5291 return constraintCase_ == 14;
5292 }
5302 @java.lang.Override
5303 public com.google.ortools.sat.ElementConstraintProto getElement() {
5304 if (elementBuilder_ == null) {
5305 if (constraintCase_ == 14) {
5306 return (com.google.ortools.sat.ElementConstraintProto) constraint_;
5307 }
5308 return com.google.ortools.sat.ElementConstraintProto.getDefaultInstance();
5309 } else {
5310 if (constraintCase_ == 14) {
5311 return elementBuilder_.getMessage();
5312 }
5313 return com.google.ortools.sat.ElementConstraintProto.getDefaultInstance();
5314 }
5315 }
5324 public Builder setElement(com.google.ortools.sat.ElementConstraintProto value) {
5325 if (elementBuilder_ == null) {
5326 if (value == null) {
5327 throw new NullPointerException();
5328 }
5329 constraint_ = value;
5330 onChanged();
5331 } else {
5332 elementBuilder_.setMessage(value);
5333 }
5334 constraintCase_ = 14;
5335 return this;
5336 }
5346 com.google.ortools.sat.ElementConstraintProto.Builder builderForValue) {
5347 if (elementBuilder_ == null) {
5348 constraint_ = builderForValue.build();
5349 onChanged();
5350 } else {
5351 elementBuilder_.setMessage(builderForValue.build());
5352 }
5353 constraintCase_ = 14;
5354 return this;
5355 }
5364 public Builder mergeElement(com.google.ortools.sat.ElementConstraintProto value) {
5365 if (elementBuilder_ == null) {
5366 if (constraintCase_ == 14 &&
5367 constraint_ != com.google.ortools.sat.ElementConstraintProto.getDefaultInstance()) {
5368 constraint_ = com.google.ortools.sat.ElementConstraintProto.newBuilder((com.google.ortools.sat.ElementConstraintProto) constraint_)
5369 .mergeFrom(value).buildPartial();
5370 } else {
5371 constraint_ = value;
5372 }
5373 onChanged();
5374 } else {
5375 if (constraintCase_ == 14) {
5376 elementBuilder_.mergeFrom(value);
5377 }
5378 elementBuilder_.setMessage(value);
5379 }
5380 constraintCase_ = 14;
5381 return this;
5382 }
5392 if (elementBuilder_ == null) {
5393 if (constraintCase_ == 14) {
5394 constraintCase_ = 0;
5395 constraint_ = null;
5396 onChanged();
5397 }
5398 } else {
5399 if (constraintCase_ == 14) {
5400 constraintCase_ = 0;
5401 constraint_ = null;
5402 }
5403 elementBuilder_.clear();
5404 }
5405 return this;
5406 }
5415 public com.google.ortools.sat.ElementConstraintProto.Builder getElementBuilder() {
5416 return getElementFieldBuilder().getBuilder();
5417 }
5426 @java.lang.Override
5427 public com.google.ortools.sat.ElementConstraintProtoOrBuilder getElementOrBuilder() {
5428 if ((constraintCase_ == 14) && (elementBuilder_ != null)) {
5429 return elementBuilder_.getMessageOrBuilder();
5430 } else {
5431 if (constraintCase_ == 14) {
5432 return (com.google.ortools.sat.ElementConstraintProto) constraint_;
5433 }
5434 return com.google.ortools.sat.ElementConstraintProto.getDefaultInstance();
5435 }
5436 }
5445 private com.google.protobuf.SingleFieldBuilderV3<
5446 com.google.ortools.sat.ElementConstraintProto, com.google.ortools.sat.ElementConstraintProto.Builder, com.google.ortools.sat.ElementConstraintProtoOrBuilder>
5447 getElementFieldBuilder() {
5448 if (elementBuilder_ == null) {
5449 if (!(constraintCase_ == 14)) {
5450 constraint_ = com.google.ortools.sat.ElementConstraintProto.getDefaultInstance();
5451 }
5452 elementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5453 com.google.ortools.sat.ElementConstraintProto, com.google.ortools.sat.ElementConstraintProto.Builder, com.google.ortools.sat.ElementConstraintProtoOrBuilder>(
5454 (com.google.ortools.sat.ElementConstraintProto) constraint_,
5455 getParentForChildren(),
5456 isClean());
5457 constraint_ = null;
5458 }
5459 constraintCase_ = 14;
5460 onChanged();;
5461 return elementBuilder_;
5462 }
5463
5464 private com.google.protobuf.SingleFieldBuilderV3<
5465 com.google.ortools.sat.CircuitConstraintProto, com.google.ortools.sat.CircuitConstraintProto.Builder, com.google.ortools.sat.CircuitConstraintProtoOrBuilder> circuitBuilder_;
5475 @java.lang.Override
5476 public boolean hasCircuit() {
5477 return constraintCase_ == 15;
5478 }
5488 @java.lang.Override
5489 public com.google.ortools.sat.CircuitConstraintProto getCircuit() {
5490 if (circuitBuilder_ == null) {
5491 if (constraintCase_ == 15) {
5492 return (com.google.ortools.sat.CircuitConstraintProto) constraint_;
5493 }
5494 return com.google.ortools.sat.CircuitConstraintProto.getDefaultInstance();
5495 } else {
5496 if (constraintCase_ == 15) {
5497 return circuitBuilder_.getMessage();
5498 }
5499 return com.google.ortools.sat.CircuitConstraintProto.getDefaultInstance();
5500 }
5501 }
5510 public Builder setCircuit(com.google.ortools.sat.CircuitConstraintProto value) {
5511 if (circuitBuilder_ == null) {
5512 if (value == null) {
5513 throw new NullPointerException();
5514 }
5515 constraint_ = value;
5516 onChanged();
5517 } else {
5518 circuitBuilder_.setMessage(value);
5519 }
5520 constraintCase_ = 15;
5521 return this;
5522 }
5532 com.google.ortools.sat.CircuitConstraintProto.Builder builderForValue) {
5533 if (circuitBuilder_ == null) {
5534 constraint_ = builderForValue.build();
5535 onChanged();
5536 } else {
5537 circuitBuilder_.setMessage(builderForValue.build());
5538 }
5539 constraintCase_ = 15;
5540 return this;
5541 }
5550 public Builder mergeCircuit(com.google.ortools.sat.CircuitConstraintProto value) {
5551 if (circuitBuilder_ == null) {
5552 if (constraintCase_ == 15 &&
5553 constraint_ != com.google.ortools.sat.CircuitConstraintProto.getDefaultInstance()) {
5554 constraint_ = com.google.ortools.sat.CircuitConstraintProto.newBuilder((com.google.ortools.sat.CircuitConstraintProto) constraint_)
5555 .mergeFrom(value).buildPartial();
5556 } else {
5557 constraint_ = value;
5558 }
5559 onChanged();
5560 } else {
5561 if (constraintCase_ == 15) {
5562 circuitBuilder_.mergeFrom(value);
5563 }
5564 circuitBuilder_.setMessage(value);
5565 }
5566 constraintCase_ = 15;
5567 return this;
5568 }
5578 if (circuitBuilder_ == null) {
5579 if (constraintCase_ == 15) {
5580 constraintCase_ = 0;
5581 constraint_ = null;
5582 onChanged();
5583 }
5584 } else {
5585 if (constraintCase_ == 15) {
5586 constraintCase_ = 0;
5587 constraint_ = null;
5588 }
5589 circuitBuilder_.clear();
5590 }
5591 return this;
5592 }
5601 public com.google.ortools.sat.CircuitConstraintProto.Builder getCircuitBuilder() {
5602 return getCircuitFieldBuilder().getBuilder();
5603 }
5612 @java.lang.Override
5613 public com.google.ortools.sat.CircuitConstraintProtoOrBuilder getCircuitOrBuilder() {
5614 if ((constraintCase_ == 15) && (circuitBuilder_ != null)) {
5615 return circuitBuilder_.getMessageOrBuilder();
5616 } else {
5617 if (constraintCase_ == 15) {
5618 return (com.google.ortools.sat.CircuitConstraintProto) constraint_;
5619 }
5620 return com.google.ortools.sat.CircuitConstraintProto.getDefaultInstance();
5621 }
5622 }
5631 private com.google.protobuf.SingleFieldBuilderV3<
5632 com.google.ortools.sat.CircuitConstraintProto, com.google.ortools.sat.CircuitConstraintProto.Builder, com.google.ortools.sat.CircuitConstraintProtoOrBuilder>
5633 getCircuitFieldBuilder() {
5634 if (circuitBuilder_ == null) {
5635 if (!(constraintCase_ == 15)) {
5636 constraint_ = com.google.ortools.sat.CircuitConstraintProto.getDefaultInstance();
5637 }
5638 circuitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5639 com.google.ortools.sat.CircuitConstraintProto, com.google.ortools.sat.CircuitConstraintProto.Builder, com.google.ortools.sat.CircuitConstraintProtoOrBuilder>(
5640 (com.google.ortools.sat.CircuitConstraintProto) constraint_,
5641 getParentForChildren(),
5642 isClean());
5643 constraint_ = null;
5644 }
5645 constraintCase_ = 15;
5646 onChanged();;
5647 return circuitBuilder_;
5648 }
5649
5650 private com.google.protobuf.SingleFieldBuilderV3<
5651 com.google.ortools.sat.RoutesConstraintProto, com.google.ortools.sat.RoutesConstraintProto.Builder, com.google.ortools.sat.RoutesConstraintProtoOrBuilder> routesBuilder_;
5660 @java.lang.Override
5661 public boolean hasRoutes() {
5662 return constraintCase_ == 23;
5663 }
5672 @java.lang.Override
5673 public com.google.ortools.sat.RoutesConstraintProto getRoutes() {
5674 if (routesBuilder_ == null) {
5675 if (constraintCase_ == 23) {
5676 return (com.google.ortools.sat.RoutesConstraintProto) constraint_;
5677 }
5678 return com.google.ortools.sat.RoutesConstraintProto.getDefaultInstance();
5679 } else {
5680 if (constraintCase_ == 23) {
5681 return routesBuilder_.getMessage();
5682 }
5683 return com.google.ortools.sat.RoutesConstraintProto.getDefaultInstance();
5684 }
5685 }
5693 public Builder setRoutes(com.google.ortools.sat.RoutesConstraintProto value) {
5694 if (routesBuilder_ == null) {
5695 if (value == null) {
5696 throw new NullPointerException();
5697 }
5698 constraint_ = value;
5699 onChanged();
5700 } else {
5701 routesBuilder_.setMessage(value);
5702 }
5703 constraintCase_ = 23;
5704 return this;
5705 }
5714 com.google.ortools.sat.RoutesConstraintProto.Builder builderForValue) {
5715 if (routesBuilder_ == null) {
5716 constraint_ = builderForValue.build();
5717 onChanged();
5718 } else {
5719 routesBuilder_.setMessage(builderForValue.build());
5720 }
5721 constraintCase_ = 23;
5722 return this;
5723 }
5731 public Builder mergeRoutes(com.google.ortools.sat.RoutesConstraintProto value) {
5732 if (routesBuilder_ == null) {
5733 if (constraintCase_ == 23 &&
5734 constraint_ != com.google.ortools.sat.RoutesConstraintProto.getDefaultInstance()) {
5735 constraint_ = com.google.ortools.sat.RoutesConstraintProto.newBuilder((com.google.ortools.sat.RoutesConstraintProto) constraint_)
5736 .mergeFrom(value).buildPartial();
5737 } else {
5738 constraint_ = value;
5739 }
5740 onChanged();
5741 } else {
5742 if (constraintCase_ == 23) {
5743 routesBuilder_.mergeFrom(value);
5744 }
5745 routesBuilder_.setMessage(value);
5746 }
5747 constraintCase_ = 23;
5748 return this;
5749 }
5758 if (routesBuilder_ == null) {
5759 if (constraintCase_ == 23) {
5760 constraintCase_ = 0;
5761 constraint_ = null;
5762 onChanged();
5763 }
5764 } else {
5765 if (constraintCase_ == 23) {
5766 constraintCase_ = 0;
5767 constraint_ = null;
5768 }
5769 routesBuilder_.clear();
5770 }
5771 return this;
5772 }
5780 public com.google.ortools.sat.RoutesConstraintProto.Builder getRoutesBuilder() {
5781 return getRoutesFieldBuilder().getBuilder();
5782 }
5790 @java.lang.Override
5791 public com.google.ortools.sat.RoutesConstraintProtoOrBuilder getRoutesOrBuilder() {
5792 if ((constraintCase_ == 23) && (routesBuilder_ != null)) {
5793 return routesBuilder_.getMessageOrBuilder();
5794 } else {
5795 if (constraintCase_ == 23) {
5796 return (com.google.ortools.sat.RoutesConstraintProto) constraint_;
5797 }
5798 return com.google.ortools.sat.RoutesConstraintProto.getDefaultInstance();
5799 }
5800 }
5808 private com.google.protobuf.SingleFieldBuilderV3<
5809 com.google.ortools.sat.RoutesConstraintProto, com.google.ortools.sat.RoutesConstraintProto.Builder, com.google.ortools.sat.RoutesConstraintProtoOrBuilder>
5810 getRoutesFieldBuilder() {
5811 if (routesBuilder_ == null) {
5812 if (!(constraintCase_ == 23)) {
5813 constraint_ = com.google.ortools.sat.RoutesConstraintProto.getDefaultInstance();
5814 }
5815 routesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5816 com.google.ortools.sat.RoutesConstraintProto, com.google.ortools.sat.RoutesConstraintProto.Builder, com.google.ortools.sat.RoutesConstraintProtoOrBuilder>(
5817 (com.google.ortools.sat.RoutesConstraintProto) constraint_,
5818 getParentForChildren(),
5819 isClean());
5820 constraint_ = null;
5821 }
5822 constraintCase_ = 23;
5823 onChanged();;
5824 return routesBuilder_;
5825 }
5826
5827 private com.google.protobuf.SingleFieldBuilderV3<
5828 com.google.ortools.sat.TableConstraintProto, com.google.ortools.sat.TableConstraintProto.Builder, com.google.ortools.sat.TableConstraintProtoOrBuilder> tableBuilder_;
5838 @java.lang.Override
5839 public boolean hasTable() {
5840 return constraintCase_ == 16;
5841 }
5851 @java.lang.Override
5852 public com.google.ortools.sat.TableConstraintProto getTable() {
5853 if (tableBuilder_ == null) {
5854 if (constraintCase_ == 16) {
5855 return (com.google.ortools.sat.TableConstraintProto) constraint_;
5856 }
5857 return com.google.ortools.sat.TableConstraintProto.getDefaultInstance();
5858 } else {
5859 if (constraintCase_ == 16) {
5860 return tableBuilder_.getMessage();
5861 }
5862 return com.google.ortools.sat.TableConstraintProto.getDefaultInstance();
5863 }
5864 }
5873 public Builder setTable(com.google.ortools.sat.TableConstraintProto value) {
5874 if (tableBuilder_ == null) {
5875 if (value == null) {
5876 throw new NullPointerException();
5877 }
5878 constraint_ = value;
5879 onChanged();
5880 } else {
5881 tableBuilder_.setMessage(value);
5882 }
5883 constraintCase_ = 16;
5884 return this;
5885 }
5895 com.google.ortools.sat.TableConstraintProto.Builder builderForValue) {
5896 if (tableBuilder_ == null) {
5897 constraint_ = builderForValue.build();
5898 onChanged();
5899 } else {
5900 tableBuilder_.setMessage(builderForValue.build());
5901 }
5902 constraintCase_ = 16;
5903 return this;
5904 }
5913 public Builder mergeTable(com.google.ortools.sat.TableConstraintProto value) {
5914 if (tableBuilder_ == null) {
5915 if (constraintCase_ == 16 &&
5916 constraint_ != com.google.ortools.sat.TableConstraintProto.getDefaultInstance()) {
5917 constraint_ = com.google.ortools.sat.TableConstraintProto.newBuilder((com.google.ortools.sat.TableConstraintProto) constraint_)
5918 .mergeFrom(value).buildPartial();
5919 } else {
5920 constraint_ = value;
5921 }
5922 onChanged();
5923 } else {
5924 if (constraintCase_ == 16) {
5925 tableBuilder_.mergeFrom(value);
5926 }
5927 tableBuilder_.setMessage(value);
5928 }
5929 constraintCase_ = 16;
5930 return this;
5931 }
5941 if (tableBuilder_ == null) {
5942 if (constraintCase_ == 16) {
5943 constraintCase_ = 0;
5944 constraint_ = null;
5945 onChanged();
5946 }
5947 } else {
5948 if (constraintCase_ == 16) {
5949 constraintCase_ = 0;
5950 constraint_ = null;
5951 }
5952 tableBuilder_.clear();
5953 }
5954 return this;
5955 }
5964 public com.google.ortools.sat.TableConstraintProto.Builder getTableBuilder() {
5965 return getTableFieldBuilder().getBuilder();
5966 }
5975 @java.lang.Override
5976 public com.google.ortools.sat.TableConstraintProtoOrBuilder getTableOrBuilder() {
5977 if ((constraintCase_ == 16) && (tableBuilder_ != null)) {
5978 return tableBuilder_.getMessageOrBuilder();
5979 } else {
5980 if (constraintCase_ == 16) {
5981 return (com.google.ortools.sat.TableConstraintProto) constraint_;
5982 }
5983 return com.google.ortools.sat.TableConstraintProto.getDefaultInstance();
5984 }
5985 }
5994 private com.google.protobuf.SingleFieldBuilderV3<
5995 com.google.ortools.sat.TableConstraintProto, com.google.ortools.sat.TableConstraintProto.Builder, com.google.ortools.sat.TableConstraintProtoOrBuilder>
5996 getTableFieldBuilder() {
5997 if (tableBuilder_ == null) {
5998 if (!(constraintCase_ == 16)) {
5999 constraint_ = com.google.ortools.sat.TableConstraintProto.getDefaultInstance();
6000 }
6001 tableBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6002 com.google.ortools.sat.TableConstraintProto, com.google.ortools.sat.TableConstraintProto.Builder, com.google.ortools.sat.TableConstraintProtoOrBuilder>(
6003 (com.google.ortools.sat.TableConstraintProto) constraint_,
6004 getParentForChildren(),
6005 isClean());
6006 constraint_ = null;
6007 }
6008 constraintCase_ = 16;
6009 onChanged();;
6010 return tableBuilder_;
6011 }
6012
6013 private com.google.protobuf.SingleFieldBuilderV3<
6014 com.google.ortools.sat.AutomatonConstraintProto, com.google.ortools.sat.AutomatonConstraintProto.Builder, com.google.ortools.sat.AutomatonConstraintProtoOrBuilder> automatonBuilder_;
6024 @java.lang.Override
6025 public boolean hasAutomaton() {
6026 return constraintCase_ == 17;
6027 }
6037 @java.lang.Override
6038 public com.google.ortools.sat.AutomatonConstraintProto getAutomaton() {
6039 if (automatonBuilder_ == null) {
6040 if (constraintCase_ == 17) {
6041 return (com.google.ortools.sat.AutomatonConstraintProto) constraint_;
6042 }
6043 return com.google.ortools.sat.AutomatonConstraintProto.getDefaultInstance();
6044 } else {
6045 if (constraintCase_ == 17) {
6046 return automatonBuilder_.getMessage();
6047 }
6048 return com.google.ortools.sat.AutomatonConstraintProto.getDefaultInstance();
6049 }
6050 }
6059 public Builder setAutomaton(com.google.ortools.sat.AutomatonConstraintProto value) {
6060 if (automatonBuilder_ == null) {
6061 if (value == null) {
6062 throw new NullPointerException();
6063 }
6064 constraint_ = value;
6065 onChanged();
6066 } else {
6067 automatonBuilder_.setMessage(value);
6068 }
6069 constraintCase_ = 17;
6070 return this;
6071 }
6081 com.google.ortools.sat.AutomatonConstraintProto.Builder builderForValue) {
6082 if (automatonBuilder_ == null) {
6083 constraint_ = builderForValue.build();
6084 onChanged();
6085 } else {
6086 automatonBuilder_.setMessage(builderForValue.build());
6087 }
6088 constraintCase_ = 17;
6089 return this;
6090 }
6099 public Builder mergeAutomaton(com.google.ortools.sat.AutomatonConstraintProto value) {
6100 if (automatonBuilder_ == null) {
6101 if (constraintCase_ == 17 &&
6102 constraint_ != com.google.ortools.sat.AutomatonConstraintProto.getDefaultInstance()) {
6103 constraint_ = com.google.ortools.sat.AutomatonConstraintProto.newBuilder((com.google.ortools.sat.AutomatonConstraintProto) constraint_)
6104 .mergeFrom(value).buildPartial();
6105 } else {
6106 constraint_ = value;
6107 }
6108 onChanged();
6109 } else {
6110 if (constraintCase_ == 17) {
6111 automatonBuilder_.mergeFrom(value);
6112 }
6113 automatonBuilder_.setMessage(value);
6114 }
6115 constraintCase_ = 17;
6116 return this;
6117 }
6127 if (automatonBuilder_ == null) {
6128 if (constraintCase_ == 17) {
6129 constraintCase_ = 0;
6130 constraint_ = null;
6131 onChanged();
6132 }
6133 } else {
6134 if (constraintCase_ == 17) {
6135 constraintCase_ = 0;
6136 constraint_ = null;
6137 }
6138 automatonBuilder_.clear();
6139 }
6140 return this;
6141 }
6150 public com.google.ortools.sat.AutomatonConstraintProto.Builder getAutomatonBuilder() {
6151 return getAutomatonFieldBuilder().getBuilder();
6152 }
6161 @java.lang.Override
6162 public com.google.ortools.sat.AutomatonConstraintProtoOrBuilder getAutomatonOrBuilder() {
6163 if ((constraintCase_ == 17) && (automatonBuilder_ != null)) {
6164 return automatonBuilder_.getMessageOrBuilder();
6165 } else {
6166 if (constraintCase_ == 17) {
6167 return (com.google.ortools.sat.AutomatonConstraintProto) constraint_;
6168 }
6169 return com.google.ortools.sat.AutomatonConstraintProto.getDefaultInstance();
6170 }
6171 }
6180 private com.google.protobuf.SingleFieldBuilderV3<
6181 com.google.ortools.sat.AutomatonConstraintProto, com.google.ortools.sat.AutomatonConstraintProto.Builder, com.google.ortools.sat.AutomatonConstraintProtoOrBuilder>
6182 getAutomatonFieldBuilder() {
6183 if (automatonBuilder_ == null) {
6184 if (!(constraintCase_ == 17)) {
6185 constraint_ = com.google.ortools.sat.AutomatonConstraintProto.getDefaultInstance();
6186 }
6187 automatonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6188 com.google.ortools.sat.AutomatonConstraintProto, com.google.ortools.sat.AutomatonConstraintProto.Builder, com.google.ortools.sat.AutomatonConstraintProtoOrBuilder>(
6189 (com.google.ortools.sat.AutomatonConstraintProto) constraint_,
6190 getParentForChildren(),
6191 isClean());
6192 constraint_ = null;
6193 }
6194 constraintCase_ = 17;
6195 onChanged();;
6196 return automatonBuilder_;
6197 }
6198
6199 private com.google.protobuf.SingleFieldBuilderV3<
6200 com.google.ortools.sat.InverseConstraintProto, com.google.ortools.sat.InverseConstraintProto.Builder, com.google.ortools.sat.InverseConstraintProtoOrBuilder> inverseBuilder_;
6210 @java.lang.Override
6211 public boolean hasInverse() {
6212 return constraintCase_ == 18;
6213 }
6223 @java.lang.Override
6224 public com.google.ortools.sat.InverseConstraintProto getInverse() {
6225 if (inverseBuilder_ == null) {
6226 if (constraintCase_ == 18) {
6227 return (com.google.ortools.sat.InverseConstraintProto) constraint_;
6228 }
6229 return com.google.ortools.sat.InverseConstraintProto.getDefaultInstance();
6230 } else {
6231 if (constraintCase_ == 18) {
6232 return inverseBuilder_.getMessage();
6233 }
6234 return com.google.ortools.sat.InverseConstraintProto.getDefaultInstance();
6235 }
6236 }
6245 public Builder setInverse(com.google.ortools.sat.InverseConstraintProto value) {
6246 if (inverseBuilder_ == null) {
6247 if (value == null) {
6248 throw new NullPointerException();
6249 }
6250 constraint_ = value;
6251 onChanged();
6252 } else {
6253 inverseBuilder_.setMessage(value);
6254 }
6255 constraintCase_ = 18;
6256 return this;
6257 }
6267 com.google.ortools.sat.InverseConstraintProto.Builder builderForValue) {
6268 if (inverseBuilder_ == null) {
6269 constraint_ = builderForValue.build();
6270 onChanged();
6271 } else {
6272 inverseBuilder_.setMessage(builderForValue.build());
6273 }
6274 constraintCase_ = 18;
6275 return this;
6276 }
6285 public Builder mergeInverse(com.google.ortools.sat.InverseConstraintProto value) {
6286 if (inverseBuilder_ == null) {
6287 if (constraintCase_ == 18 &&
6288 constraint_ != com.google.ortools.sat.InverseConstraintProto.getDefaultInstance()) {
6289 constraint_ = com.google.ortools.sat.InverseConstraintProto.newBuilder((com.google.ortools.sat.InverseConstraintProto) constraint_)
6290 .mergeFrom(value).buildPartial();
6291 } else {
6292 constraint_ = value;
6293 }
6294 onChanged();
6295 } else {
6296 if (constraintCase_ == 18) {
6297 inverseBuilder_.mergeFrom(value);
6298 }
6299 inverseBuilder_.setMessage(value);
6300 }
6301 constraintCase_ = 18;
6302 return this;
6303 }
6313 if (inverseBuilder_ == null) {
6314 if (constraintCase_ == 18) {
6315 constraintCase_ = 0;
6316 constraint_ = null;
6317 onChanged();
6318 }
6319 } else {
6320 if (constraintCase_ == 18) {
6321 constraintCase_ = 0;
6322 constraint_ = null;
6323 }
6324 inverseBuilder_.clear();
6325 }
6326 return this;
6327 }
6336 public com.google.ortools.sat.InverseConstraintProto.Builder getInverseBuilder() {
6337 return getInverseFieldBuilder().getBuilder();
6338 }
6347 @java.lang.Override
6348 public com.google.ortools.sat.InverseConstraintProtoOrBuilder getInverseOrBuilder() {
6349 if ((constraintCase_ == 18) && (inverseBuilder_ != null)) {
6350 return inverseBuilder_.getMessageOrBuilder();
6351 } else {
6352 if (constraintCase_ == 18) {
6353 return (com.google.ortools.sat.InverseConstraintProto) constraint_;
6354 }
6355 return com.google.ortools.sat.InverseConstraintProto.getDefaultInstance();
6356 }
6357 }
6366 private com.google.protobuf.SingleFieldBuilderV3<
6367 com.google.ortools.sat.InverseConstraintProto, com.google.ortools.sat.InverseConstraintProto.Builder, com.google.ortools.sat.InverseConstraintProtoOrBuilder>
6368 getInverseFieldBuilder() {
6369 if (inverseBuilder_ == null) {
6370 if (!(constraintCase_ == 18)) {
6371 constraint_ = com.google.ortools.sat.InverseConstraintProto.getDefaultInstance();
6372 }
6373 inverseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6374 com.google.ortools.sat.InverseConstraintProto, com.google.ortools.sat.InverseConstraintProto.Builder, com.google.ortools.sat.InverseConstraintProtoOrBuilder>(
6375 (com.google.ortools.sat.InverseConstraintProto) constraint_,
6376 getParentForChildren(),
6377 isClean());
6378 constraint_ = null;
6379 }
6380 constraintCase_ = 18;
6381 onChanged();;
6382 return inverseBuilder_;
6383 }
6384
6385 private com.google.protobuf.SingleFieldBuilderV3<
6386 com.google.ortools.sat.ReservoirConstraintProto, com.google.ortools.sat.ReservoirConstraintProto.Builder, com.google.ortools.sat.ReservoirConstraintProtoOrBuilder> reservoirBuilder_;
6397 @java.lang.Override
6398 public boolean hasReservoir() {
6399 return constraintCase_ == 24;
6400 }
6411 @java.lang.Override
6412 public com.google.ortools.sat.ReservoirConstraintProto getReservoir() {
6413 if (reservoirBuilder_ == null) {
6414 if (constraintCase_ == 24) {
6415 return (com.google.ortools.sat.ReservoirConstraintProto) constraint_;
6416 }
6417 return com.google.ortools.sat.ReservoirConstraintProto.getDefaultInstance();
6418 } else {
6419 if (constraintCase_ == 24) {
6420 return reservoirBuilder_.getMessage();
6421 }
6422 return com.google.ortools.sat.ReservoirConstraintProto.getDefaultInstance();
6423 }
6424 }
6434 public Builder setReservoir(com.google.ortools.sat.ReservoirConstraintProto value) {
6435 if (reservoirBuilder_ == null) {
6436 if (value == null) {
6437 throw new NullPointerException();
6438 }
6439 constraint_ = value;
6440 onChanged();
6441 } else {
6442 reservoirBuilder_.setMessage(value);
6443 }
6444 constraintCase_ = 24;
6445 return this;
6446 }
6457 com.google.ortools.sat.ReservoirConstraintProto.Builder builderForValue) {
6458 if (reservoirBuilder_ == null) {
6459 constraint_ = builderForValue.build();
6460 onChanged();
6461 } else {
6462 reservoirBuilder_.setMessage(builderForValue.build());
6463 }
6464 constraintCase_ = 24;
6465 return this;
6466 }
6476 public Builder mergeReservoir(com.google.ortools.sat.ReservoirConstraintProto value) {
6477 if (reservoirBuilder_ == null) {
6478 if (constraintCase_ == 24 &&
6479 constraint_ != com.google.ortools.sat.ReservoirConstraintProto.getDefaultInstance()) {
6480 constraint_ = com.google.ortools.sat.ReservoirConstraintProto.newBuilder((com.google.ortools.sat.ReservoirConstraintProto) constraint_)
6481 .mergeFrom(value).buildPartial();
6482 } else {
6483 constraint_ = value;
6484 }
6485 onChanged();
6486 } else {
6487 if (constraintCase_ == 24) {
6488 reservoirBuilder_.mergeFrom(value);
6489 }
6490 reservoirBuilder_.setMessage(value);
6491 }
6492 constraintCase_ = 24;
6493 return this;
6494 }
6505 if (reservoirBuilder_ == null) {
6506 if (constraintCase_ == 24) {
6507 constraintCase_ = 0;
6508 constraint_ = null;
6509 onChanged();
6510 }
6511 } else {
6512 if (constraintCase_ == 24) {
6513 constraintCase_ = 0;
6514 constraint_ = null;
6515 }
6516 reservoirBuilder_.clear();
6517 }
6518 return this;
6519 }
6529 public com.google.ortools.sat.ReservoirConstraintProto.Builder getReservoirBuilder() {
6530 return getReservoirFieldBuilder().getBuilder();
6531 }
6541 @java.lang.Override
6542 public com.google.ortools.sat.ReservoirConstraintProtoOrBuilder getReservoirOrBuilder() {
6543 if ((constraintCase_ == 24) && (reservoirBuilder_ != null)) {
6544 return reservoirBuilder_.getMessageOrBuilder();
6545 } else {
6546 if (constraintCase_ == 24) {
6547 return (com.google.ortools.sat.ReservoirConstraintProto) constraint_;
6548 }
6549 return com.google.ortools.sat.ReservoirConstraintProto.getDefaultInstance();
6550 }
6551 }
6561 private com.google.protobuf.SingleFieldBuilderV3<
6562 com.google.ortools.sat.ReservoirConstraintProto, com.google.ortools.sat.ReservoirConstraintProto.Builder, com.google.ortools.sat.ReservoirConstraintProtoOrBuilder>
6563 getReservoirFieldBuilder() {
6564 if (reservoirBuilder_ == null) {
6565 if (!(constraintCase_ == 24)) {
6566 constraint_ = com.google.ortools.sat.ReservoirConstraintProto.getDefaultInstance();
6567 }
6568 reservoirBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6569 com.google.ortools.sat.ReservoirConstraintProto, com.google.ortools.sat.ReservoirConstraintProto.Builder, com.google.ortools.sat.ReservoirConstraintProtoOrBuilder>(
6570 (com.google.ortools.sat.ReservoirConstraintProto) constraint_,
6571 getParentForChildren(),
6572 isClean());
6573 constraint_ = null;
6574 }
6575 constraintCase_ = 24;
6576 onChanged();;
6577 return reservoirBuilder_;
6578 }
6579
6580 private com.google.protobuf.SingleFieldBuilderV3<
6581 com.google.ortools.sat.IntervalConstraintProto, com.google.ortools.sat.IntervalConstraintProto.Builder, com.google.ortools.sat.IntervalConstraintProtoOrBuilder> intervalBuilder_;
6591 @java.lang.Override
6592 public boolean hasInterval() {
6593 return constraintCase_ == 19;
6594 }
6604 @java.lang.Override
6605 public com.google.ortools.sat.IntervalConstraintProto getInterval() {
6606 if (intervalBuilder_ == null) {
6607 if (constraintCase_ == 19) {
6608 return (com.google.ortools.sat.IntervalConstraintProto) constraint_;
6609 }
6610 return com.google.ortools.sat.IntervalConstraintProto.getDefaultInstance();
6611 } else {
6612 if (constraintCase_ == 19) {
6613 return intervalBuilder_.getMessage();
6614 }
6615 return com.google.ortools.sat.IntervalConstraintProto.getDefaultInstance();
6616 }
6617 }
6626 public Builder setInterval(com.google.ortools.sat.IntervalConstraintProto value) {
6627 if (intervalBuilder_ == null) {
6628 if (value == null) {
6629 throw new NullPointerException();
6630 }
6631 constraint_ = value;
6632 onChanged();
6633 } else {
6634 intervalBuilder_.setMessage(value);
6635 }
6636 constraintCase_ = 19;
6637 return this;
6638 }
6648 com.google.ortools.sat.IntervalConstraintProto.Builder builderForValue) {
6649 if (intervalBuilder_ == null) {
6650 constraint_ = builderForValue.build();
6651 onChanged();
6652 } else {
6653 intervalBuilder_.setMessage(builderForValue.build());
6654 }
6655 constraintCase_ = 19;
6656 return this;
6657 }
6666 public Builder mergeInterval(com.google.ortools.sat.IntervalConstraintProto value) {
6667 if (intervalBuilder_ == null) {
6668 if (constraintCase_ == 19 &&
6669 constraint_ != com.google.ortools.sat.IntervalConstraintProto.getDefaultInstance()) {
6670 constraint_ = com.google.ortools.sat.IntervalConstraintProto.newBuilder((com.google.ortools.sat.IntervalConstraintProto) constraint_)
6671 .mergeFrom(value).buildPartial();
6672 } else {
6673 constraint_ = value;
6674 }
6675 onChanged();
6676 } else {
6677 if (constraintCase_ == 19) {
6678 intervalBuilder_.mergeFrom(value);
6679 }
6680 intervalBuilder_.setMessage(value);
6681 }
6682 constraintCase_ = 19;
6683 return this;
6684 }
6694 if (intervalBuilder_ == null) {
6695 if (constraintCase_ == 19) {
6696 constraintCase_ = 0;
6697 constraint_ = null;
6698 onChanged();
6699 }
6700 } else {
6701 if (constraintCase_ == 19) {
6702 constraintCase_ = 0;
6703 constraint_ = null;
6704 }
6705 intervalBuilder_.clear();
6706 }
6707 return this;
6708 }
6717 public com.google.ortools.sat.IntervalConstraintProto.Builder getIntervalBuilder() {
6718 return getIntervalFieldBuilder().getBuilder();
6719 }
6728 @java.lang.Override
6729 public com.google.ortools.sat.IntervalConstraintProtoOrBuilder getIntervalOrBuilder() {
6730 if ((constraintCase_ == 19) && (intervalBuilder_ != null)) {
6731 return intervalBuilder_.getMessageOrBuilder();
6732 } else {
6733 if (constraintCase_ == 19) {
6734 return (com.google.ortools.sat.IntervalConstraintProto) constraint_;
6735 }
6736 return com.google.ortools.sat.IntervalConstraintProto.getDefaultInstance();
6737 }
6738 }
6747 private com.google.protobuf.SingleFieldBuilderV3<
6748 com.google.ortools.sat.IntervalConstraintProto, com.google.ortools.sat.IntervalConstraintProto.Builder, com.google.ortools.sat.IntervalConstraintProtoOrBuilder>
6749 getIntervalFieldBuilder() {
6750 if (intervalBuilder_ == null) {
6751 if (!(constraintCase_ == 19)) {
6752 constraint_ = com.google.ortools.sat.IntervalConstraintProto.getDefaultInstance();
6753 }
6754 intervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6755 com.google.ortools.sat.IntervalConstraintProto, com.google.ortools.sat.IntervalConstraintProto.Builder, com.google.ortools.sat.IntervalConstraintProtoOrBuilder>(
6756 (com.google.ortools.sat.IntervalConstraintProto) constraint_,
6757 getParentForChildren(),
6758 isClean());
6759 constraint_ = null;
6760 }
6761 constraintCase_ = 19;
6762 onChanged();;
6763 return intervalBuilder_;
6764 }
6765
6766 private com.google.protobuf.SingleFieldBuilderV3<
6767 com.google.ortools.sat.NoOverlapConstraintProto, com.google.ortools.sat.NoOverlapConstraintProto.Builder, com.google.ortools.sat.NoOverlapConstraintProtoOrBuilder> noOverlapBuilder_;
6778 @java.lang.Override
6779 public boolean hasNoOverlap() {
6780 return constraintCase_ == 20;
6781 }
6792 @java.lang.Override
6793 public com.google.ortools.sat.NoOverlapConstraintProto getNoOverlap() {
6794 if (noOverlapBuilder_ == null) {
6795 if (constraintCase_ == 20) {
6796 return (com.google.ortools.sat.NoOverlapConstraintProto) constraint_;
6797 }
6798 return com.google.ortools.sat.NoOverlapConstraintProto.getDefaultInstance();
6799 } else {
6800 if (constraintCase_ == 20) {
6801 return noOverlapBuilder_.getMessage();
6802 }
6803 return com.google.ortools.sat.NoOverlapConstraintProto.getDefaultInstance();
6804 }
6805 }
6815 public Builder setNoOverlap(com.google.ortools.sat.NoOverlapConstraintProto value) {
6816 if (noOverlapBuilder_ == null) {
6817 if (value == null) {
6818 throw new NullPointerException();
6819 }
6820 constraint_ = value;
6821 onChanged();
6822 } else {
6823 noOverlapBuilder_.setMessage(value);
6824 }
6825 constraintCase_ = 20;
6826 return this;
6827 }
6838 com.google.ortools.sat.NoOverlapConstraintProto.Builder builderForValue) {
6839 if (noOverlapBuilder_ == null) {
6840 constraint_ = builderForValue.build();
6841 onChanged();
6842 } else {
6843 noOverlapBuilder_.setMessage(builderForValue.build());
6844 }
6845 constraintCase_ = 20;
6846 return this;
6847 }
6857 public Builder mergeNoOverlap(com.google.ortools.sat.NoOverlapConstraintProto value) {
6858 if (noOverlapBuilder_ == null) {
6859 if (constraintCase_ == 20 &&
6860 constraint_ != com.google.ortools.sat.NoOverlapConstraintProto.getDefaultInstance()) {
6861 constraint_ = com.google.ortools.sat.NoOverlapConstraintProto.newBuilder((com.google.ortools.sat.NoOverlapConstraintProto) constraint_)
6862 .mergeFrom(value).buildPartial();
6863 } else {
6864 constraint_ = value;
6865 }
6866 onChanged();
6867 } else {
6868 if (constraintCase_ == 20) {
6869 noOverlapBuilder_.mergeFrom(value);
6870 }
6871 noOverlapBuilder_.setMessage(value);
6872 }
6873 constraintCase_ = 20;
6874 return this;
6875 }
6886 if (noOverlapBuilder_ == null) {
6887 if (constraintCase_ == 20) {
6888 constraintCase_ = 0;
6889 constraint_ = null;
6890 onChanged();
6891 }
6892 } else {
6893 if (constraintCase_ == 20) {
6894 constraintCase_ = 0;
6895 constraint_ = null;
6896 }
6897 noOverlapBuilder_.clear();
6898 }
6899 return this;
6900 }
6910 public com.google.ortools.sat.NoOverlapConstraintProto.Builder getNoOverlapBuilder() {
6911 return getNoOverlapFieldBuilder().getBuilder();
6912 }
6922 @java.lang.Override
6923 public com.google.ortools.sat.NoOverlapConstraintProtoOrBuilder getNoOverlapOrBuilder() {
6924 if ((constraintCase_ == 20) && (noOverlapBuilder_ != null)) {
6925 return noOverlapBuilder_.getMessageOrBuilder();
6926 } else {
6927 if (constraintCase_ == 20) {
6928 return (com.google.ortools.sat.NoOverlapConstraintProto) constraint_;
6929 }
6930 return com.google.ortools.sat.NoOverlapConstraintProto.getDefaultInstance();
6931 }
6932 }
6942 private com.google.protobuf.SingleFieldBuilderV3<
6943 com.google.ortools.sat.NoOverlapConstraintProto, com.google.ortools.sat.NoOverlapConstraintProto.Builder, com.google.ortools.sat.NoOverlapConstraintProtoOrBuilder>
6944 getNoOverlapFieldBuilder() {
6945 if (noOverlapBuilder_ == null) {
6946 if (!(constraintCase_ == 20)) {
6947 constraint_ = com.google.ortools.sat.NoOverlapConstraintProto.getDefaultInstance();
6948 }
6949 noOverlapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6950 com.google.ortools.sat.NoOverlapConstraintProto, com.google.ortools.sat.NoOverlapConstraintProto.Builder, com.google.ortools.sat.NoOverlapConstraintProtoOrBuilder>(
6951 (com.google.ortools.sat.NoOverlapConstraintProto) constraint_,
6952 getParentForChildren(),
6953 isClean());
6954 constraint_ = null;
6955 }
6956 constraintCase_ = 20;
6957 onChanged();;
6958 return noOverlapBuilder_;
6959 }
6960
6961 private com.google.protobuf.SingleFieldBuilderV3<
6962 com.google.ortools.sat.NoOverlap2DConstraintProto, com.google.ortools.sat.NoOverlap2DConstraintProto.Builder, com.google.ortools.sat.NoOverlap2DConstraintProtoOrBuilder> noOverlap2DBuilder_;
6971 @java.lang.Override
6972 public boolean hasNoOverlap2D() {
6973 return constraintCase_ == 21;
6974 }
6983 @java.lang.Override
6984 public com.google.ortools.sat.NoOverlap2DConstraintProto getNoOverlap2D() {
6985 if (noOverlap2DBuilder_ == null) {
6986 if (constraintCase_ == 21) {
6987 return (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_;
6988 }
6989 return com.google.ortools.sat.NoOverlap2DConstraintProto.getDefaultInstance();
6990 } else {
6991 if (constraintCase_ == 21) {
6992 return noOverlap2DBuilder_.getMessage();
6993 }
6994 return com.google.ortools.sat.NoOverlap2DConstraintProto.getDefaultInstance();
6995 }
6996 }
7004 public Builder setNoOverlap2D(com.google.ortools.sat.NoOverlap2DConstraintProto value) {
7005 if (noOverlap2DBuilder_ == null) {
7006 if (value == null) {
7007 throw new NullPointerException();
7008 }
7009 constraint_ = value;
7010 onChanged();
7011 } else {
7012 noOverlap2DBuilder_.setMessage(value);
7013 }
7014 constraintCase_ = 21;
7015 return this;
7016 }
7025 com.google.ortools.sat.NoOverlap2DConstraintProto.Builder builderForValue) {
7026 if (noOverlap2DBuilder_ == null) {
7027 constraint_ = builderForValue.build();
7028 onChanged();
7029 } else {
7030 noOverlap2DBuilder_.setMessage(builderForValue.build());
7031 }
7032 constraintCase_ = 21;
7033 return this;
7034 }
7042 public Builder mergeNoOverlap2D(com.google.ortools.sat.NoOverlap2DConstraintProto value) {
7043 if (noOverlap2DBuilder_ == null) {
7044 if (constraintCase_ == 21 &&
7045 constraint_ != com.google.ortools.sat.NoOverlap2DConstraintProto.getDefaultInstance()) {
7046 constraint_ = com.google.ortools.sat.NoOverlap2DConstraintProto.newBuilder((com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_)
7047 .mergeFrom(value).buildPartial();
7048 } else {
7049 constraint_ = value;
7050 }
7051 onChanged();
7052 } else {
7053 if (constraintCase_ == 21) {
7054 noOverlap2DBuilder_.mergeFrom(value);
7055 }
7056 noOverlap2DBuilder_.setMessage(value);
7057 }
7058 constraintCase_ = 21;
7059 return this;
7060 }
7069 if (noOverlap2DBuilder_ == null) {
7070 if (constraintCase_ == 21) {
7071 constraintCase_ = 0;
7072 constraint_ = null;
7073 onChanged();
7074 }
7075 } else {
7076 if (constraintCase_ == 21) {
7077 constraintCase_ = 0;
7078 constraint_ = null;
7079 }
7080 noOverlap2DBuilder_.clear();
7081 }
7082 return this;
7083 }
7091 public com.google.ortools.sat.NoOverlap2DConstraintProto.Builder getNoOverlap2DBuilder() {
7092 return getNoOverlap2DFieldBuilder().getBuilder();
7093 }
7101 @java.lang.Override
7102 public com.google.ortools.sat.NoOverlap2DConstraintProtoOrBuilder getNoOverlap2DOrBuilder() {
7103 if ((constraintCase_ == 21) && (noOverlap2DBuilder_ != null)) {
7104 return noOverlap2DBuilder_.getMessageOrBuilder();
7105 } else {
7106 if (constraintCase_ == 21) {
7107 return (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_;
7108 }
7109 return com.google.ortools.sat.NoOverlap2DConstraintProto.getDefaultInstance();
7110 }
7111 }
7119 private com.google.protobuf.SingleFieldBuilderV3<
7120 com.google.ortools.sat.NoOverlap2DConstraintProto, com.google.ortools.sat.NoOverlap2DConstraintProto.Builder, com.google.ortools.sat.NoOverlap2DConstraintProtoOrBuilder>
7121 getNoOverlap2DFieldBuilder() {
7122 if (noOverlap2DBuilder_ == null) {
7123 if (!(constraintCase_ == 21)) {
7124 constraint_ = com.google.ortools.sat.NoOverlap2DConstraintProto.getDefaultInstance();
7125 }
7126 noOverlap2DBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
7127 com.google.ortools.sat.NoOverlap2DConstraintProto, com.google.ortools.sat.NoOverlap2DConstraintProto.Builder, com.google.ortools.sat.NoOverlap2DConstraintProtoOrBuilder>(
7128 (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_,
7129 getParentForChildren(),
7130 isClean());
7131 constraint_ = null;
7132 }
7133 constraintCase_ = 21;
7134 onChanged();;
7135 return noOverlap2DBuilder_;
7136 }
7137
7138 private com.google.protobuf.SingleFieldBuilderV3<
7139 com.google.ortools.sat.CumulativeConstraintProto, com.google.ortools.sat.CumulativeConstraintProto.Builder, com.google.ortools.sat.CumulativeConstraintProtoOrBuilder> cumulativeBuilder_;
7150 @java.lang.Override
7151 public boolean hasCumulative() {
7152 return constraintCase_ == 22;
7153 }
7164 @java.lang.Override
7165 public com.google.ortools.sat.CumulativeConstraintProto getCumulative() {
7166 if (cumulativeBuilder_ == null) {
7167 if (constraintCase_ == 22) {
7168 return (com.google.ortools.sat.CumulativeConstraintProto) constraint_;
7169 }
7170 return com.google.ortools.sat.CumulativeConstraintProto.getDefaultInstance();
7171 } else {
7172 if (constraintCase_ == 22) {
7173 return cumulativeBuilder_.getMessage();
7174 }
7175 return com.google.ortools.sat.CumulativeConstraintProto.getDefaultInstance();
7176 }
7177 }
7187 public Builder setCumulative(com.google.ortools.sat.CumulativeConstraintProto value) {
7188 if (cumulativeBuilder_ == null) {
7189 if (value == null) {
7190 throw new NullPointerException();
7191 }
7192 constraint_ = value;
7193 onChanged();
7194 } else {
7195 cumulativeBuilder_.setMessage(value);
7196 }
7197 constraintCase_ = 22;
7198 return this;
7199 }
7210 com.google.ortools.sat.CumulativeConstraintProto.Builder builderForValue) {
7211 if (cumulativeBuilder_ == null) {
7212 constraint_ = builderForValue.build();
7213 onChanged();
7214 } else {
7215 cumulativeBuilder_.setMessage(builderForValue.build());
7216 }
7217 constraintCase_ = 22;
7218 return this;
7219 }
7229 public Builder mergeCumulative(com.google.ortools.sat.CumulativeConstraintProto value) {
7230 if (cumulativeBuilder_ == null) {
7231 if (constraintCase_ == 22 &&
7232 constraint_ != com.google.ortools.sat.CumulativeConstraintProto.getDefaultInstance()) {
7233 constraint_ = com.google.ortools.sat.CumulativeConstraintProto.newBuilder((com.google.ortools.sat.CumulativeConstraintProto) constraint_)
7234 .mergeFrom(value).buildPartial();
7235 } else {
7236 constraint_ = value;
7237 }
7238 onChanged();
7239 } else {
7240 if (constraintCase_ == 22) {
7241 cumulativeBuilder_.mergeFrom(value);
7242 }
7243 cumulativeBuilder_.setMessage(value);
7244 }
7245 constraintCase_ = 22;
7246 return this;
7247 }
7258 if (cumulativeBuilder_ == null) {
7259 if (constraintCase_ == 22) {
7260 constraintCase_ = 0;
7261 constraint_ = null;
7262 onChanged();
7263 }
7264 } else {
7265 if (constraintCase_ == 22) {
7266 constraintCase_ = 0;
7267 constraint_ = null;
7268 }
7269 cumulativeBuilder_.clear();
7270 }
7271 return this;
7272 }
7282 public com.google.ortools.sat.CumulativeConstraintProto.Builder getCumulativeBuilder() {
7283 return getCumulativeFieldBuilder().getBuilder();
7284 }
7294 @java.lang.Override
7295 public com.google.ortools.sat.CumulativeConstraintProtoOrBuilder getCumulativeOrBuilder() {
7296 if ((constraintCase_ == 22) && (cumulativeBuilder_ != null)) {
7297 return cumulativeBuilder_.getMessageOrBuilder();
7298 } else {
7299 if (constraintCase_ == 22) {
7300 return (com.google.ortools.sat.CumulativeConstraintProto) constraint_;
7301 }
7302 return com.google.ortools.sat.CumulativeConstraintProto.getDefaultInstance();
7303 }
7304 }
7314 private com.google.protobuf.SingleFieldBuilderV3<
7315 com.google.ortools.sat.CumulativeConstraintProto, com.google.ortools.sat.CumulativeConstraintProto.Builder, com.google.ortools.sat.CumulativeConstraintProtoOrBuilder>
7316 getCumulativeFieldBuilder() {
7317 if (cumulativeBuilder_ == null) {
7318 if (!(constraintCase_ == 22)) {
7319 constraint_ = com.google.ortools.sat.CumulativeConstraintProto.getDefaultInstance();
7320 }
7321 cumulativeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
7322 com.google.ortools.sat.CumulativeConstraintProto, com.google.ortools.sat.CumulativeConstraintProto.Builder, com.google.ortools.sat.CumulativeConstraintProtoOrBuilder>(
7323 (com.google.ortools.sat.CumulativeConstraintProto) constraint_,
7324 getParentForChildren(),
7325 isClean());
7326 constraint_ = null;
7327 }
7328 constraintCase_ = 22;
7329 onChanged();;
7330 return cumulativeBuilder_;
7331 }
7332
7333 private com.google.protobuf.SingleFieldBuilderV3<
7334 com.google.ortools.sat.ListOfVariablesProto, com.google.ortools.sat.ListOfVariablesProto.Builder, com.google.ortools.sat.ListOfVariablesProtoOrBuilder> dummyConstraintBuilder_;
7344 @java.lang.Override
7345 public boolean hasDummyConstraint() {
7346 return constraintCase_ == 30;
7347 }
7357 @java.lang.Override
7358 public com.google.ortools.sat.ListOfVariablesProto getDummyConstraint() {
7359 if (dummyConstraintBuilder_ == null) {
7360 if (constraintCase_ == 30) {
7361 return (com.google.ortools.sat.ListOfVariablesProto) constraint_;
7362 }
7363 return com.google.ortools.sat.ListOfVariablesProto.getDefaultInstance();
7364 } else {
7365 if (constraintCase_ == 30) {
7366 return dummyConstraintBuilder_.getMessage();
7367 }
7368 return com.google.ortools.sat.ListOfVariablesProto.getDefaultInstance();
7369 }
7370 }
7379 public Builder setDummyConstraint(com.google.ortools.sat.ListOfVariablesProto value) {
7380 if (dummyConstraintBuilder_ == null) {
7381 if (value == null) {
7382 throw new NullPointerException();
7383 }
7384 constraint_ = value;
7385 onChanged();
7386 } else {
7387 dummyConstraintBuilder_.setMessage(value);
7388 }
7389 constraintCase_ = 30;
7390 return this;
7391 }
7401 com.google.ortools.sat.ListOfVariablesProto.Builder builderForValue) {
7402 if (dummyConstraintBuilder_ == null) {
7403 constraint_ = builderForValue.build();
7404 onChanged();
7405 } else {
7406 dummyConstraintBuilder_.setMessage(builderForValue.build());
7407 }
7408 constraintCase_ = 30;
7409 return this;
7410 }
7419 public Builder mergeDummyConstraint(com.google.ortools.sat.ListOfVariablesProto value) {
7420 if (dummyConstraintBuilder_ == null) {
7421 if (constraintCase_ == 30 &&
7422 constraint_ != com.google.ortools.sat.ListOfVariablesProto.getDefaultInstance()) {
7423 constraint_ = com.google.ortools.sat.ListOfVariablesProto.newBuilder((com.google.ortools.sat.ListOfVariablesProto) constraint_)
7424 .mergeFrom(value).buildPartial();
7425 } else {
7426 constraint_ = value;
7427 }
7428 onChanged();
7429 } else {
7430 if (constraintCase_ == 30) {
7431 dummyConstraintBuilder_.mergeFrom(value);
7432 }
7433 dummyConstraintBuilder_.setMessage(value);
7434 }
7435 constraintCase_ = 30;
7436 return this;
7437 }
7447 if (dummyConstraintBuilder_ == null) {
7448 if (constraintCase_ == 30) {
7449 constraintCase_ = 0;
7450 constraint_ = null;
7451 onChanged();
7452 }
7453 } else {
7454 if (constraintCase_ == 30) {
7455 constraintCase_ = 0;
7456 constraint_ = null;
7457 }
7458 dummyConstraintBuilder_.clear();
7459 }
7460 return this;
7461 }
7470 public com.google.ortools.sat.ListOfVariablesProto.Builder getDummyConstraintBuilder() {
7471 return getDummyConstraintFieldBuilder().getBuilder();
7472 }
7481 @java.lang.Override
7482 public com.google.ortools.sat.ListOfVariablesProtoOrBuilder getDummyConstraintOrBuilder() {
7483 if ((constraintCase_ == 30) && (dummyConstraintBuilder_ != null)) {
7484 return dummyConstraintBuilder_.getMessageOrBuilder();
7485 } else {
7486 if (constraintCase_ == 30) {
7487 return (com.google.ortools.sat.ListOfVariablesProto) constraint_;
7488 }
7489 return com.google.ortools.sat.ListOfVariablesProto.getDefaultInstance();
7490 }
7491 }
7500 private com.google.protobuf.SingleFieldBuilderV3<
7501 com.google.ortools.sat.ListOfVariablesProto, com.google.ortools.sat.ListOfVariablesProto.Builder, com.google.ortools.sat.ListOfVariablesProtoOrBuilder>
7502 getDummyConstraintFieldBuilder() {
7503 if (dummyConstraintBuilder_ == null) {
7504 if (!(constraintCase_ == 30)) {
7505 constraint_ = com.google.ortools.sat.ListOfVariablesProto.getDefaultInstance();
7506 }
7507 dummyConstraintBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
7508 com.google.ortools.sat.ListOfVariablesProto, com.google.ortools.sat.ListOfVariablesProto.Builder, com.google.ortools.sat.ListOfVariablesProtoOrBuilder>(
7509 (com.google.ortools.sat.ListOfVariablesProto) constraint_,
7510 getParentForChildren(),
7511 isClean());
7512 constraint_ = null;
7513 }
7514 constraintCase_ = 30;
7515 onChanged();;
7516 return dummyConstraintBuilder_;
7517 }
7518 @java.lang.Override
7520 final com.google.protobuf.UnknownFieldSet unknownFields) {
7521 return super.setUnknownFields(unknownFields);
7522 }
7523
7524 @java.lang.Override
7526 final com.google.protobuf.UnknownFieldSet unknownFields) {
7527 return super.mergeUnknownFields(unknownFields);
7528 }
7529
7530
7531 // @@protoc_insertion_point(builder_scope:operations_research.sat.ConstraintProto)
7532 }
7533
7534 // @@protoc_insertion_point(class_scope:operations_research.sat.ConstraintProto)
7535 private static final com.google.ortools.sat.ConstraintProto DEFAULT_INSTANCE;
7536 static {
7537 DEFAULT_INSTANCE = new com.google.ortools.sat.ConstraintProto();
7538 }
7539
7540 public static com.google.ortools.sat.ConstraintProto getDefaultInstance() {
7541 return DEFAULT_INSTANCE;
7542 }
7543
7544 private static final com.google.protobuf.Parser<ConstraintProto>
7545 PARSER = new com.google.protobuf.AbstractParser<ConstraintProto>() {
7546 @java.lang.Override
7547 public ConstraintProto parsePartialFrom(
7548 com.google.protobuf.CodedInputStream input,
7549 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7550 throws com.google.protobuf.InvalidProtocolBufferException {
7551 return new ConstraintProto(input, extensionRegistry);
7552 }
7553 };
7554
7555 public static com.google.protobuf.Parser<ConstraintProto> parser() {
7556 return PARSER;
7557 }
7558
7559 @java.lang.Override
7560 public com.google.protobuf.Parser<ConstraintProto> getParserForType() {
7561 return PARSER;
7562 }
7563
7564 @java.lang.Override
7565 public com.google.ortools.sat.ConstraintProto getDefaultInstanceForType() {
7566 return DEFAULT_INSTANCE;
7567 }
7568
7569}
7570
boolean equals(final java.lang.Object obj)
Builder setAtMostOne(com.google.ortools.sat.BoolArgumentProto value)
Builder setExactlyOne(com.google.ortools.sat.BoolArgumentProto.Builder builderForValue)
Builder setTable(com.google.ortools.sat.TableConstraintProto.Builder builderForValue)
Builder mergeLinMax(com.google.ortools.sat.LinearArgumentProto value)
Builder setInverse(com.google.ortools.sat.InverseConstraintProto value)
com.google.ortools.sat.NoOverlapConstraintProtoOrBuilder getNoOverlapOrBuilder()
Builder setBoolAnd(com.google.ortools.sat.BoolArgumentProto.Builder builderForValue)
final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
com.google.ortools.sat.AllDifferentConstraintProtoOrBuilder getAllDiffOrBuilder()
com.google.ortools.sat.ConstraintProto buildPartial()
com.google.ortools.sat.LinearArgumentProtoOrBuilder getLinMaxOrBuilder()
Builder setCircuit(com.google.ortools.sat.CircuitConstraintProto value)
com.google.ortools.sat.LinearArgumentProtoOrBuilder getIntProdOrBuilder()
Builder mergeBoolAnd(com.google.ortools.sat.BoolArgumentProto value)
com.google.ortools.sat.InverseConstraintProto getInverse()
Builder setCircuit(com.google.ortools.sat.CircuitConstraintProto.Builder builderForValue)
Builder mergeLinear(com.google.ortools.sat.LinearConstraintProto value)
com.google.ortools.sat.CircuitConstraintProto.Builder getCircuitBuilder()
Builder setNoOverlap2D(com.google.ortools.sat.NoOverlap2DConstraintProto value)
com.google.ortools.sat.AutomatonConstraintProto getAutomaton()
com.google.ortools.sat.BoolArgumentProto.Builder getBoolXorBuilder()
com.google.ortools.sat.ReservoirConstraintProtoOrBuilder getReservoirOrBuilder()
com.google.ortools.sat.BoolArgumentProto getAtMostOne()
Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Builder setNoOverlap(com.google.ortools.sat.NoOverlapConstraintProto.Builder builderForValue)
com.google.ortools.sat.IntervalConstraintProtoOrBuilder getIntervalOrBuilder()
final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
com.google.ortools.sat.LinearArgumentProto getLinMax()
Builder mergeInverse(com.google.ortools.sat.InverseConstraintProto value)
com.google.ortools.sat.LinearArgumentProto getIntDiv()
Builder setIntMod(com.google.ortools.sat.LinearArgumentProto.Builder builderForValue)
com.google.ortools.sat.IntervalConstraintProto.Builder getIntervalBuilder()
Builder mergeExactlyOne(com.google.ortools.sat.BoolArgumentProto value)
com.google.ortools.sat.LinearArgumentProto.Builder getIntModBuilder()
com.google.ortools.sat.ElementConstraintProtoOrBuilder getElementOrBuilder()
Builder setTable(com.google.ortools.sat.TableConstraintProto value)
Builder setIntProd(com.google.ortools.sat.LinearArgumentProto.Builder builderForValue)
com.google.ortools.sat.ListOfVariablesProto.Builder getDummyConstraintBuilder()
com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
Builder setBoolOr(com.google.ortools.sat.BoolArgumentProto.Builder builderForValue)
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Builder mergeBoolXor(com.google.ortools.sat.BoolArgumentProto value)
com.google.ortools.sat.LinearConstraintProto getLinear()
com.google.ortools.sat.TableConstraintProtoOrBuilder getTableOrBuilder()
com.google.ortools.sat.BoolArgumentProto.Builder getExactlyOneBuilder()
Builder setNameBytes(com.google.protobuf.ByteString value)
Builder mergeBoolOr(com.google.ortools.sat.BoolArgumentProto value)
Builder setAutomaton(com.google.ortools.sat.AutomatonConstraintProto value)
com.google.ortools.sat.ReservoirConstraintProto.Builder getReservoirBuilder()
Builder mergeInterval(com.google.ortools.sat.IntervalConstraintProto value)
Builder setDummyConstraint(com.google.ortools.sat.ListOfVariablesProto value)
Builder setLinMax(com.google.ortools.sat.LinearArgumentProto.Builder builderForValue)
com.google.ortools.sat.CircuitConstraintProtoOrBuilder getCircuitOrBuilder()
Builder mergeFrom(com.google.ortools.sat.ConstraintProto other)
Builder setLinear(com.google.ortools.sat.LinearConstraintProto value)
java.util.List< java.lang.Integer > getEnforcementLiteralList()
Builder setLinMax(com.google.ortools.sat.LinearArgumentProto value)
com.google.ortools.sat.AllDifferentConstraintProto getAllDiff()
Builder mergeIntProd(com.google.ortools.sat.LinearArgumentProto value)
com.google.ortools.sat.LinearArgumentProto.Builder getIntDivBuilder()
Builder setAutomaton(com.google.ortools.sat.AutomatonConstraintProto.Builder builderForValue)
Builder mergeFrom(com.google.protobuf.Message other)
Builder setIntDiv(com.google.ortools.sat.LinearArgumentProto.Builder builderForValue)
com.google.ortools.sat.CircuitConstraintProto getCircuit()
com.google.ortools.sat.LinearArgumentProto.Builder getIntProdBuilder()
com.google.ortools.sat.NoOverlap2DConstraintProtoOrBuilder getNoOverlap2DOrBuilder()
Builder mergeCircuit(com.google.ortools.sat.CircuitConstraintProto value)
Builder setNoOverlap2D(com.google.ortools.sat.NoOverlap2DConstraintProto.Builder builderForValue)
com.google.ortools.sat.BoolArgumentProto getExactlyOne()
Builder setBoolXor(com.google.ortools.sat.BoolArgumentProto.Builder builderForValue)
com.google.ortools.sat.LinearConstraintProto.Builder getLinearBuilder()
Builder setRoutes(com.google.ortools.sat.RoutesConstraintProto.Builder builderForValue)
Builder setIntDiv(com.google.ortools.sat.LinearArgumentProto value)
com.google.ortools.sat.ConstraintProto build()
Builder setBoolOr(com.google.ortools.sat.BoolArgumentProto value)
Builder mergeNoOverlap2D(com.google.ortools.sat.NoOverlap2DConstraintProto value)
Builder mergeAtMostOne(com.google.ortools.sat.BoolArgumentProto value)
com.google.ortools.sat.NoOverlap2DConstraintProto getNoOverlap2D()
Builder mergeIntMod(com.google.ortools.sat.LinearArgumentProto value)
Builder setIntMod(com.google.ortools.sat.LinearArgumentProto value)
Builder setIntProd(com.google.ortools.sat.LinearArgumentProto value)
Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
com.google.ortools.sat.ElementConstraintProto getElement()
Builder setAtMostOne(com.google.ortools.sat.BoolArgumentProto.Builder builderForValue)
Builder setExactlyOne(com.google.ortools.sat.BoolArgumentProto value)
com.google.ortools.sat.ElementConstraintProto.Builder getElementBuilder()
com.google.ortools.sat.CumulativeConstraintProtoOrBuilder getCumulativeOrBuilder()
Builder mergeTable(com.google.ortools.sat.TableConstraintProto value)
Builder mergeDummyConstraint(com.google.ortools.sat.ListOfVariablesProto value)
Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
com.google.ortools.sat.RoutesConstraintProtoOrBuilder getRoutesOrBuilder()
com.google.ortools.sat.NoOverlap2DConstraintProto.Builder getNoOverlap2DBuilder()
com.google.ortools.sat.InverseConstraintProtoOrBuilder getInverseOrBuilder()
Builder setCumulative(com.google.ortools.sat.CumulativeConstraintProto.Builder builderForValue)
com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolAndOrBuilder()
Builder setRoutes(com.google.ortools.sat.RoutesConstraintProto value)
com.google.ortools.sat.LinearArgumentProto getIntMod()
Builder setBoolXor(com.google.ortools.sat.BoolArgumentProto value)
com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolXorOrBuilder()
Builder setDummyConstraint(com.google.ortools.sat.ListOfVariablesProto.Builder builderForValue)
Builder setBoolAnd(com.google.ortools.sat.BoolArgumentProto value)
Builder setCumulative(com.google.ortools.sat.CumulativeConstraintProto value)
com.google.ortools.sat.ListOfVariablesProtoOrBuilder getDummyConstraintOrBuilder()
Builder setInverse(com.google.ortools.sat.InverseConstraintProto.Builder builderForValue)
com.google.ortools.sat.TableConstraintProto getTable()
com.google.ortools.sat.LinearArgumentProto getIntProd()
com.google.ortools.sat.RoutesConstraintProto getRoutes()
com.google.ortools.sat.ListOfVariablesProto getDummyConstraint()
com.google.ortools.sat.ConstraintProto getDefaultInstanceForType()
Builder setAllDiff(com.google.ortools.sat.AllDifferentConstraintProto.Builder builderForValue)
Builder setAllDiff(com.google.ortools.sat.AllDifferentConstraintProto value)
Builder mergeNoOverlap(com.google.ortools.sat.NoOverlapConstraintProto value)
Builder mergeCumulative(com.google.ortools.sat.CumulativeConstraintProto value)
Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
com.google.ortools.sat.CumulativeConstraintProto getCumulative()
com.google.ortools.sat.ReservoirConstraintProto getReservoir()
Builder mergeIntDiv(com.google.ortools.sat.LinearArgumentProto value)
com.google.ortools.sat.LinearConstraintProtoOrBuilder getLinearOrBuilder()
com.google.ortools.sat.LinearArgumentProtoOrBuilder getIntDivOrBuilder()
Builder mergeAllDiff(com.google.ortools.sat.AllDifferentConstraintProto value)
com.google.ortools.sat.RoutesConstraintProto.Builder getRoutesBuilder()
Builder setReservoir(com.google.ortools.sat.ReservoirConstraintProto.Builder builderForValue)
com.google.ortools.sat.LinearArgumentProto.Builder getLinMaxBuilder()
Builder setInterval(com.google.ortools.sat.IntervalConstraintProto.Builder builderForValue)
com.google.ortools.sat.BoolArgumentProtoOrBuilder getAtMostOneOrBuilder()
Builder mergeElement(com.google.ortools.sat.ElementConstraintProto value)
com.google.ortools.sat.BoolArgumentProto.Builder getAtMostOneBuilder()
com.google.ortools.sat.IntervalConstraintProto getInterval()
com.google.ortools.sat.BoolArgumentProto getBoolXor()
Builder setNoOverlap(com.google.ortools.sat.NoOverlapConstraintProto value)
com.google.ortools.sat.TableConstraintProto.Builder getTableBuilder()
com.google.ortools.sat.AutomatonConstraintProtoOrBuilder getAutomatonOrBuilder()
Builder setInterval(com.google.ortools.sat.IntervalConstraintProto value)
com.google.ortools.sat.NoOverlapConstraintProto.Builder getNoOverlapBuilder()
Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Builder setReservoir(com.google.ortools.sat.ReservoirConstraintProto value)
com.google.ortools.sat.CumulativeConstraintProto.Builder getCumulativeBuilder()
com.google.ortools.sat.NoOverlapConstraintProto getNoOverlap()
com.google.ortools.sat.BoolArgumentProto.Builder getBoolOrBuilder()
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
com.google.ortools.sat.BoolArgumentProto getBoolOr()
com.google.ortools.sat.AutomatonConstraintProto.Builder getAutomatonBuilder()
Builder mergeAutomaton(com.google.ortools.sat.AutomatonConstraintProto value)
com.google.ortools.sat.InverseConstraintProto.Builder getInverseBuilder()
com.google.ortools.sat.BoolArgumentProto getBoolAnd()
Builder addAllEnforcementLiteral(java.lang.Iterable<? extends java.lang.Integer > values)
com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolOrOrBuilder()
Builder mergeReservoir(com.google.ortools.sat.ReservoirConstraintProto value)
com.google.protobuf.ByteString getNameBytes()
com.google.ortools.sat.LinearArgumentProtoOrBuilder getIntModOrBuilder()
com.google.ortools.sat.BoolArgumentProto.Builder getBoolAndBuilder()
Builder mergeRoutes(com.google.ortools.sat.RoutesConstraintProto value)
Builder setLinear(com.google.ortools.sat.LinearConstraintProto.Builder builderForValue)
com.google.ortools.sat.AllDifferentConstraintProto.Builder getAllDiffBuilder()
Builder setElement(com.google.ortools.sat.ElementConstraintProto.Builder builderForValue)
Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.sat.BoolArgumentProtoOrBuilder getExactlyOneOrBuilder()
Builder setElement(com.google.ortools.sat.ElementConstraintProto value)
Builder setEnforcementLiteral(int index, int value)
com.google.ortools.sat.NoOverlapConstraintProtoOrBuilder getNoOverlapOrBuilder()
com.google.ortools.sat.AllDifferentConstraintProtoOrBuilder getAllDiffOrBuilder()
com.google.ortools.sat.LinearArgumentProtoOrBuilder getLinMaxOrBuilder()
com.google.ortools.sat.LinearArgumentProtoOrBuilder getIntProdOrBuilder()
com.google.ortools.sat.InverseConstraintProto getInverse()
static com.google.ortools.sat.ConstraintProto parseFrom(java.nio.ByteBuffer data)
com.google.ortools.sat.AutomatonConstraintProto getAutomaton()
static com.google.ortools.sat.ConstraintProto parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.sat.ReservoirConstraintProtoOrBuilder getReservoirOrBuilder()
com.google.ortools.sat.BoolArgumentProto getAtMostOne()
com.google.ortools.sat.IntervalConstraintProtoOrBuilder getIntervalOrBuilder()
void writeTo(com.google.protobuf.CodedOutputStream output)
com.google.ortools.sat.LinearArgumentProto getLinMax()
static Builder newBuilder(com.google.ortools.sat.ConstraintProto prototype)
com.google.ortools.sat.LinearArgumentProto getIntDiv()
com.google.protobuf.Parser< ConstraintProto > getParserForType()
static com.google.ortools.sat.ConstraintProto parseFrom(com.google.protobuf.ByteString data)
com.google.ortools.sat.ElementConstraintProtoOrBuilder getElementOrBuilder()
static com.google.ortools.sat.ConstraintProto getDefaultInstance()
static com.google.ortools.sat.ConstraintProto parseDelimitedFrom(java.io.InputStream input)
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
com.google.ortools.sat.LinearConstraintProto getLinear()
com.google.ortools.sat.TableConstraintProtoOrBuilder getTableOrBuilder()
com.google.ortools.sat.CircuitConstraintProtoOrBuilder getCircuitOrBuilder()
static com.google.ortools.sat.ConstraintProto parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
java.util.List< java.lang.Integer > getEnforcementLiteralList()
com.google.ortools.sat.AllDifferentConstraintProto getAllDiff()
com.google.ortools.sat.CircuitConstraintProto getCircuit()
static com.google.ortools.sat.ConstraintProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.sat.NoOverlap2DConstraintProtoOrBuilder getNoOverlap2DOrBuilder()
com.google.ortools.sat.BoolArgumentProto getExactlyOne()
boolean equals(final java.lang.Object obj)
com.google.ortools.sat.NoOverlap2DConstraintProto getNoOverlap2D()
com.google.ortools.sat.ElementConstraintProto getElement()
static com.google.ortools.sat.ConstraintProto parseFrom(com.google.protobuf.CodedInputStream input)
static com.google.ortools.sat.ConstraintProto parseFrom(byte[] data)
com.google.ortools.sat.CumulativeConstraintProtoOrBuilder getCumulativeOrBuilder()
final com.google.protobuf.UnknownFieldSet getUnknownFields()
com.google.ortools.sat.RoutesConstraintProtoOrBuilder getRoutesOrBuilder()
static com.google.protobuf.Parser< ConstraintProto > parser()
com.google.ortools.sat.InverseConstraintProtoOrBuilder getInverseOrBuilder()
com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolAndOrBuilder()
com.google.ortools.sat.LinearArgumentProto getIntMod()
com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolXorOrBuilder()
com.google.ortools.sat.ListOfVariablesProtoOrBuilder getDummyConstraintOrBuilder()
com.google.ortools.sat.TableConstraintProto getTable()
com.google.ortools.sat.LinearArgumentProto getIntProd()
com.google.ortools.sat.RoutesConstraintProto getRoutes()
com.google.ortools.sat.ListOfVariablesProto getDummyConstraint()
com.google.ortools.sat.ConstraintProto getDefaultInstanceForType()
static com.google.ortools.sat.ConstraintProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.sat.CumulativeConstraintProto getCumulative()
com.google.ortools.sat.ReservoirConstraintProto getReservoir()
com.google.ortools.sat.LinearConstraintProtoOrBuilder getLinearOrBuilder()
com.google.ortools.sat.LinearArgumentProtoOrBuilder getIntDivOrBuilder()
static com.google.ortools.sat.ConstraintProto parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.sat.ConstraintProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.sat.BoolArgumentProtoOrBuilder getAtMostOneOrBuilder()
com.google.ortools.sat.IntervalConstraintProto getInterval()
com.google.ortools.sat.BoolArgumentProto getBoolXor()
com.google.ortools.sat.AutomatonConstraintProtoOrBuilder getAutomatonOrBuilder()
com.google.ortools.sat.NoOverlapConstraintProto getNoOverlap()
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
com.google.ortools.sat.BoolArgumentProto getBoolOr()
java.lang.Object newInstance(UnusedPrivateParameter unused)
com.google.ortools.sat.BoolArgumentProto getBoolAnd()
com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolOrOrBuilder()
com.google.protobuf.ByteString getNameBytes()
com.google.ortools.sat.LinearArgumentProtoOrBuilder getIntModOrBuilder()
static com.google.ortools.sat.ConstraintProto parseFrom(java.io.InputStream input)
Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
com.google.ortools.sat.BoolArgumentProtoOrBuilder getExactlyOneOrBuilder()
boolean equals(final java.lang.Object obj)
boolean equals(final java.lang.Object obj)
boolean equals(final java.lang.Object obj)
boolean equals(final java.lang.Object obj)
boolean equals(final java.lang.Object obj)