ConstraintProto.java
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ortools/sat/cp_model.proto
3 
4 package com.google.ortools.sat;
5 
13 public final class ConstraintProto extends
14  com.google.protobuf.GeneratedMessageV3 implements
15  // @@protoc_insertion_point(message_implements:operations_research.sat.ConstraintProto)
17 private 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  public final com.google.protobuf.UnknownFieldSet
30  return this.unknownFields;
31  }
32  private ConstraintProto(
33  com.google.protobuf.CodedInputStream input,
34  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
35  throws com.google.protobuf.InvalidProtocolBufferException {
36  this();
37  if (extensionRegistry == null) {
38  throw new java.lang.NullPointerException();
39  }
40  int mutable_bitField0_ = 0;
41  com.google.protobuf.UnknownFieldSet.Builder unknownFields =
42  com.google.protobuf.UnknownFieldSet.newBuilder();
43  try {
44  boolean done = false;
45  while (!done) {
46  int tag = input.readTag();
47  switch (tag) {
48  case 0:
49  done = true;
50  break;
51  case 10: {
52  java.lang.String s = input.readStringRequireUtf8();
53 
54  name_ = s;
55  break;
56  }
57  case 16: {
58  if (!((mutable_bitField0_ & 0x00000002) != 0)) {
59  enforcementLiteral_ = newIntList();
60  mutable_bitField0_ |= 0x00000002;
61  }
62  enforcementLiteral_.addInt(input.readInt32());
63  break;
64  }
65  case 18: {
66  int length = input.readRawVarint32();
67  int limit = input.pushLimit(length);
68  if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
69  enforcementLiteral_ = newIntList();
70  mutable_bitField0_ |= 0x00000002;
71  }
72  while (input.getBytesUntilLimit() > 0) {
73  enforcementLiteral_.addInt(input.readInt32());
74  }
75  input.popLimit(limit);
76  break;
77  }
78  case 26: {
79  com.google.ortools.sat.BoolArgumentProto.Builder subBuilder = null;
80  if (constraintCase_ == 3) {
81  subBuilder = ((com.google.ortools.sat.BoolArgumentProto) constraint_).toBuilder();
82  }
83  constraint_ =
84  input.readMessage(com.google.ortools.sat.BoolArgumentProto.parser(), extensionRegistry);
85  if (subBuilder != null) {
86  subBuilder.mergeFrom((com.google.ortools.sat.BoolArgumentProto) constraint_);
87  constraint_ = subBuilder.buildPartial();
88  }
89  constraintCase_ = 3;
90  break;
91  }
92  case 34: {
93  com.google.ortools.sat.BoolArgumentProto.Builder subBuilder = null;
94  if (constraintCase_ == 4) {
95  subBuilder = ((com.google.ortools.sat.BoolArgumentProto) constraint_).toBuilder();
96  }
97  constraint_ =
98  input.readMessage(com.google.ortools.sat.BoolArgumentProto.parser(), extensionRegistry);
99  if (subBuilder != null) {
100  subBuilder.mergeFrom((com.google.ortools.sat.BoolArgumentProto) constraint_);
101  constraint_ = subBuilder.buildPartial();
102  }
103  constraintCase_ = 4;
104  break;
105  }
106  case 42: {
107  com.google.ortools.sat.BoolArgumentProto.Builder subBuilder = null;
108  if (constraintCase_ == 5) {
109  subBuilder = ((com.google.ortools.sat.BoolArgumentProto) constraint_).toBuilder();
110  }
111  constraint_ =
112  input.readMessage(com.google.ortools.sat.BoolArgumentProto.parser(), extensionRegistry);
113  if (subBuilder != null) {
114  subBuilder.mergeFrom((com.google.ortools.sat.BoolArgumentProto) constraint_);
115  constraint_ = subBuilder.buildPartial();
116  }
117  constraintCase_ = 5;
118  break;
119  }
120  case 58: {
121  com.google.ortools.sat.IntegerArgumentProto.Builder subBuilder = null;
122  if (constraintCase_ == 7) {
123  subBuilder = ((com.google.ortools.sat.IntegerArgumentProto) constraint_).toBuilder();
124  }
125  constraint_ =
126  input.readMessage(com.google.ortools.sat.IntegerArgumentProto.parser(), extensionRegistry);
127  if (subBuilder != null) {
128  subBuilder.mergeFrom((com.google.ortools.sat.IntegerArgumentProto) constraint_);
129  constraint_ = subBuilder.buildPartial();
130  }
131  constraintCase_ = 7;
132  break;
133  }
134  case 66: {
135  com.google.ortools.sat.IntegerArgumentProto.Builder subBuilder = null;
136  if (constraintCase_ == 8) {
137  subBuilder = ((com.google.ortools.sat.IntegerArgumentProto) constraint_).toBuilder();
138  }
139  constraint_ =
140  input.readMessage(com.google.ortools.sat.IntegerArgumentProto.parser(), extensionRegistry);
141  if (subBuilder != null) {
142  subBuilder.mergeFrom((com.google.ortools.sat.IntegerArgumentProto) constraint_);
143  constraint_ = subBuilder.buildPartial();
144  }
145  constraintCase_ = 8;
146  break;
147  }
148  case 74: {
149  com.google.ortools.sat.IntegerArgumentProto.Builder subBuilder = null;
150  if (constraintCase_ == 9) {
151  subBuilder = ((com.google.ortools.sat.IntegerArgumentProto) constraint_).toBuilder();
152  }
153  constraint_ =
154  input.readMessage(com.google.ortools.sat.IntegerArgumentProto.parser(), extensionRegistry);
155  if (subBuilder != null) {
156  subBuilder.mergeFrom((com.google.ortools.sat.IntegerArgumentProto) constraint_);
157  constraint_ = subBuilder.buildPartial();
158  }
159  constraintCase_ = 9;
160  break;
161  }
162  case 82: {
163  com.google.ortools.sat.IntegerArgumentProto.Builder subBuilder = null;
164  if (constraintCase_ == 10) {
165  subBuilder = ((com.google.ortools.sat.IntegerArgumentProto) constraint_).toBuilder();
166  }
167  constraint_ =
168  input.readMessage(com.google.ortools.sat.IntegerArgumentProto.parser(), extensionRegistry);
169  if (subBuilder != null) {
170  subBuilder.mergeFrom((com.google.ortools.sat.IntegerArgumentProto) constraint_);
171  constraint_ = subBuilder.buildPartial();
172  }
173  constraintCase_ = 10;
174  break;
175  }
176  case 90: {
177  com.google.ortools.sat.IntegerArgumentProto.Builder subBuilder = null;
178  if (constraintCase_ == 11) {
179  subBuilder = ((com.google.ortools.sat.IntegerArgumentProto) constraint_).toBuilder();
180  }
181  constraint_ =
182  input.readMessage(com.google.ortools.sat.IntegerArgumentProto.parser(), extensionRegistry);
183  if (subBuilder != null) {
184  subBuilder.mergeFrom((com.google.ortools.sat.IntegerArgumentProto) constraint_);
185  constraint_ = subBuilder.buildPartial();
186  }
187  constraintCase_ = 11;
188  break;
189  }
190  case 98: {
192  if (constraintCase_ == 12) {
193  subBuilder = ((com.google.ortools.sat.LinearConstraintProto) constraint_).toBuilder();
194  }
195  constraint_ =
196  input.readMessage(com.google.ortools.sat.LinearConstraintProto.parser(), extensionRegistry);
197  if (subBuilder != null) {
198  subBuilder.mergeFrom((com.google.ortools.sat.LinearConstraintProto) constraint_);
199  constraint_ = subBuilder.buildPartial();
200  }
201  constraintCase_ = 12;
202  break;
203  }
204  case 106: {
206  if (constraintCase_ == 13) {
207  subBuilder = ((com.google.ortools.sat.AllDifferentConstraintProto) constraint_).toBuilder();
208  }
209  constraint_ =
210  input.readMessage(com.google.ortools.sat.AllDifferentConstraintProto.parser(), extensionRegistry);
211  if (subBuilder != null) {
212  subBuilder.mergeFrom((com.google.ortools.sat.AllDifferentConstraintProto) constraint_);
213  constraint_ = subBuilder.buildPartial();
214  }
215  constraintCase_ = 13;
216  break;
217  }
218  case 114: {
220  if (constraintCase_ == 14) {
221  subBuilder = ((com.google.ortools.sat.ElementConstraintProto) constraint_).toBuilder();
222  }
223  constraint_ =
224  input.readMessage(com.google.ortools.sat.ElementConstraintProto.parser(), extensionRegistry);
225  if (subBuilder != null) {
226  subBuilder.mergeFrom((com.google.ortools.sat.ElementConstraintProto) constraint_);
227  constraint_ = subBuilder.buildPartial();
228  }
229  constraintCase_ = 14;
230  break;
231  }
232  case 122: {
234  if (constraintCase_ == 15) {
235  subBuilder = ((com.google.ortools.sat.CircuitConstraintProto) constraint_).toBuilder();
236  }
237  constraint_ =
238  input.readMessage(com.google.ortools.sat.CircuitConstraintProto.parser(), extensionRegistry);
239  if (subBuilder != null) {
240  subBuilder.mergeFrom((com.google.ortools.sat.CircuitConstraintProto) constraint_);
241  constraint_ = subBuilder.buildPartial();
242  }
243  constraintCase_ = 15;
244  break;
245  }
246  case 130: {
247  com.google.ortools.sat.TableConstraintProto.Builder subBuilder = null;
248  if (constraintCase_ == 16) {
249  subBuilder = ((com.google.ortools.sat.TableConstraintProto) constraint_).toBuilder();
250  }
251  constraint_ =
252  input.readMessage(com.google.ortools.sat.TableConstraintProto.parser(), extensionRegistry);
253  if (subBuilder != null) {
254  subBuilder.mergeFrom((com.google.ortools.sat.TableConstraintProto) constraint_);
255  constraint_ = subBuilder.buildPartial();
256  }
257  constraintCase_ = 16;
258  break;
259  }
260  case 138: {
262  if (constraintCase_ == 17) {
263  subBuilder = ((com.google.ortools.sat.AutomatonConstraintProto) constraint_).toBuilder();
264  }
265  constraint_ =
266  input.readMessage(com.google.ortools.sat.AutomatonConstraintProto.parser(), extensionRegistry);
267  if (subBuilder != null) {
268  subBuilder.mergeFrom((com.google.ortools.sat.AutomatonConstraintProto) constraint_);
269  constraint_ = subBuilder.buildPartial();
270  }
271  constraintCase_ = 17;
272  break;
273  }
274  case 146: {
276  if (constraintCase_ == 18) {
277  subBuilder = ((com.google.ortools.sat.InverseConstraintProto) constraint_).toBuilder();
278  }
279  constraint_ =
280  input.readMessage(com.google.ortools.sat.InverseConstraintProto.parser(), extensionRegistry);
281  if (subBuilder != null) {
282  subBuilder.mergeFrom((com.google.ortools.sat.InverseConstraintProto) constraint_);
283  constraint_ = subBuilder.buildPartial();
284  }
285  constraintCase_ = 18;
286  break;
287  }
288  case 154: {
290  if (constraintCase_ == 19) {
291  subBuilder = ((com.google.ortools.sat.IntervalConstraintProto) constraint_).toBuilder();
292  }
293  constraint_ =
294  input.readMessage(com.google.ortools.sat.IntervalConstraintProto.parser(), extensionRegistry);
295  if (subBuilder != null) {
296  subBuilder.mergeFrom((com.google.ortools.sat.IntervalConstraintProto) constraint_);
297  constraint_ = subBuilder.buildPartial();
298  }
299  constraintCase_ = 19;
300  break;
301  }
302  case 162: {
304  if (constraintCase_ == 20) {
305  subBuilder = ((com.google.ortools.sat.NoOverlapConstraintProto) constraint_).toBuilder();
306  }
307  constraint_ =
308  input.readMessage(com.google.ortools.sat.NoOverlapConstraintProto.parser(), extensionRegistry);
309  if (subBuilder != null) {
310  subBuilder.mergeFrom((com.google.ortools.sat.NoOverlapConstraintProto) constraint_);
311  constraint_ = subBuilder.buildPartial();
312  }
313  constraintCase_ = 20;
314  break;
315  }
316  case 170: {
318  if (constraintCase_ == 21) {
319  subBuilder = ((com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_).toBuilder();
320  }
321  constraint_ =
322  input.readMessage(com.google.ortools.sat.NoOverlap2DConstraintProto.parser(), extensionRegistry);
323  if (subBuilder != null) {
324  subBuilder.mergeFrom((com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_);
325  constraint_ = subBuilder.buildPartial();
326  }
327  constraintCase_ = 21;
328  break;
329  }
330  case 178: {
332  if (constraintCase_ == 22) {
333  subBuilder = ((com.google.ortools.sat.CumulativeConstraintProto) constraint_).toBuilder();
334  }
335  constraint_ =
336  input.readMessage(com.google.ortools.sat.CumulativeConstraintProto.parser(), extensionRegistry);
337  if (subBuilder != null) {
338  subBuilder.mergeFrom((com.google.ortools.sat.CumulativeConstraintProto) constraint_);
339  constraint_ = subBuilder.buildPartial();
340  }
341  constraintCase_ = 22;
342  break;
343  }
344  case 186: {
346  if (constraintCase_ == 23) {
347  subBuilder = ((com.google.ortools.sat.RoutesConstraintProto) constraint_).toBuilder();
348  }
349  constraint_ =
350  input.readMessage(com.google.ortools.sat.RoutesConstraintProto.parser(), extensionRegistry);
351  if (subBuilder != null) {
352  subBuilder.mergeFrom((com.google.ortools.sat.RoutesConstraintProto) constraint_);
353  constraint_ = subBuilder.buildPartial();
354  }
355  constraintCase_ = 23;
356  break;
357  }
358  case 194: {
360  if (constraintCase_ == 24) {
361  subBuilder = ((com.google.ortools.sat.ReservoirConstraintProto) constraint_).toBuilder();
362  }
363  constraint_ =
364  input.readMessage(com.google.ortools.sat.ReservoirConstraintProto.parser(), extensionRegistry);
365  if (subBuilder != null) {
366  subBuilder.mergeFrom((com.google.ortools.sat.ReservoirConstraintProto) constraint_);
367  constraint_ = subBuilder.buildPartial();
368  }
369  constraintCase_ = 24;
370  break;
371  }
372  case 202: {
374  if (constraintCase_ == 25) {
375  subBuilder = ((com.google.ortools.sat.CircuitCoveringConstraintProto) constraint_).toBuilder();
376  }
377  constraint_ =
378  input.readMessage(com.google.ortools.sat.CircuitCoveringConstraintProto.parser(), extensionRegistry);
379  if (subBuilder != null) {
380  subBuilder.mergeFrom((com.google.ortools.sat.CircuitCoveringConstraintProto) constraint_);
381  constraint_ = subBuilder.buildPartial();
382  }
383  constraintCase_ = 25;
384  break;
385  }
386  case 210: {
387  com.google.ortools.sat.BoolArgumentProto.Builder subBuilder = null;
388  if (constraintCase_ == 26) {
389  subBuilder = ((com.google.ortools.sat.BoolArgumentProto) constraint_).toBuilder();
390  }
391  constraint_ =
392  input.readMessage(com.google.ortools.sat.BoolArgumentProto.parser(), extensionRegistry);
393  if (subBuilder != null) {
394  subBuilder.mergeFrom((com.google.ortools.sat.BoolArgumentProto) constraint_);
395  constraint_ = subBuilder.buildPartial();
396  }
397  constraintCase_ = 26;
398  break;
399  }
400  default: {
401  if (!parseUnknownField(
402  input, unknownFields, extensionRegistry, tag)) {
403  done = true;
404  }
405  break;
406  }
407  }
408  }
409  } catch (com.google.protobuf.InvalidProtocolBufferException e) {
410  throw e.setUnfinishedMessage(this);
411  } catch (java.io.IOException e) {
412  throw new com.google.protobuf.InvalidProtocolBufferException(
413  e).setUnfinishedMessage(this);
414  } finally {
415  if (((mutable_bitField0_ & 0x00000002) != 0)) {
416  enforcementLiteral_.makeImmutable(); // C
417  }
418  this.unknownFields = unknownFields.build();
419  makeExtensionsImmutable();
420  }
421  }
422  public static final com.google.protobuf.Descriptors.Descriptor
424  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_descriptor;
425  }
426 
427  @java.lang.Override
428  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
430  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_fieldAccessorTable
431  .ensureFieldAccessorsInitialized(
433  }
434 
435  private int bitField0_;
436  private int constraintCase_ = 0;
437  private java.lang.Object constraint_;
438  public enum ConstraintCase
439  implements com.google.protobuf.Internal.EnumLite {
447  INT_MIN(10),
448  INT_PROD(11),
449  LINEAR(12),
450  ALL_DIFF(13),
451  ELEMENT(14),
452  CIRCUIT(15),
453  ROUTES(23),
455  TABLE(16),
457  INVERSE(18),
459  INTERVAL(19),
464  private final int value;
465  private ConstraintCase(int value) {
466  this.value = value;
467  }
471  @java.lang.Deprecated
472  public static ConstraintCase valueOf(int value) {
473  return forNumber(value);
474  }
475 
476  public static ConstraintCase forNumber(int value) {
477  switch (value) {
478  case 3: return BOOL_OR;
479  case 4: return BOOL_AND;
480  case 26: return AT_MOST_ONE;
481  case 5: return BOOL_XOR;
482  case 7: return INT_DIV;
483  case 8: return INT_MOD;
484  case 9: return INT_MAX;
485  case 10: return INT_MIN;
486  case 11: return INT_PROD;
487  case 12: return LINEAR;
488  case 13: return ALL_DIFF;
489  case 14: return ELEMENT;
490  case 15: return CIRCUIT;
491  case 23: return ROUTES;
492  case 25: return CIRCUIT_COVERING;
493  case 16: return TABLE;
494  case 17: return AUTOMATON;
495  case 18: return INVERSE;
496  case 24: return RESERVOIR;
497  case 19: return INTERVAL;
498  case 20: return NO_OVERLAP;
499  case 21: return NO_OVERLAP_2D;
500  case 22: return CUMULATIVE;
501  case 0: return CONSTRAINT_NOT_SET;
502  default: return null;
503  }
504  }
505  public int getNumber() {
506  return this.value;
507  }
508  };
509 
510  public ConstraintCase
512  return ConstraintCase.forNumber(
513  constraintCase_);
514  }
515 
516  public static final int NAME_FIELD_NUMBER = 1;
517  private volatile java.lang.Object name_;
525  public java.lang.String getName() {
526  java.lang.Object ref = name_;
527  if (ref instanceof java.lang.String) {
528  return (java.lang.String) ref;
529  } else {
530  com.google.protobuf.ByteString bs =
531  (com.google.protobuf.ByteString) ref;
532  java.lang.String s = bs.toStringUtf8();
533  name_ = s;
534  return s;
535  }
536  }
544  public com.google.protobuf.ByteString
546  java.lang.Object ref = name_;
547  if (ref instanceof java.lang.String) {
548  com.google.protobuf.ByteString b =
549  com.google.protobuf.ByteString.copyFromUtf8(
550  (java.lang.String) ref);
551  name_ = b;
552  return b;
553  } else {
554  return (com.google.protobuf.ByteString) ref;
555  }
556  }
557 
558  public static final int ENFORCEMENT_LITERAL_FIELD_NUMBER = 2;
559  private com.google.protobuf.Internal.IntList enforcementLiteral_;
578  public java.util.List<java.lang.Integer>
580  return enforcementLiteral_;
581  }
601  return enforcementLiteral_.size();
602  }
621  public int getEnforcementLiteral(int index) {
622  return enforcementLiteral_.getInt(index);
623  }
624  private int enforcementLiteralMemoizedSerializedSize = -1;
625 
626  public static final int BOOL_OR_FIELD_NUMBER = 3;
634  public boolean hasBoolOr() {
635  return constraintCase_ == 3;
636  }
645  if (constraintCase_ == 3) {
646  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
647  }
649  }
658  if (constraintCase_ == 3) {
659  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
660  }
662  }
663 
664  public static final int BOOL_AND_FIELD_NUMBER = 4;
675  public boolean hasBoolAnd() {
676  return constraintCase_ == 4;
677  }
689  if (constraintCase_ == 4) {
690  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
691  }
693  }
705  if (constraintCase_ == 4) {
706  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
707  }
709  }
710 
711  public static final int AT_MOST_ONE_FIELD_NUMBER = 26;
723  public boolean hasAtMostOne() {
724  return constraintCase_ == 26;
725  }
738  if (constraintCase_ == 26) {
739  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
740  }
742  }
755  if (constraintCase_ == 26) {
756  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
757  }
759  }
760 
761  public static final int BOOL_XOR_FIELD_NUMBER = 5;
769  public boolean hasBoolXor() {
770  return constraintCase_ == 5;
771  }
780  if (constraintCase_ == 5) {
781  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
782  }
784  }
793  if (constraintCase_ == 5) {
794  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
795  }
797  }
798 
799  public static final int INT_DIV_FIELD_NUMBER = 7;
807  public boolean hasIntDiv() {
808  return constraintCase_ == 7;
809  }
818  if (constraintCase_ == 7) {
819  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
820  }
822  }
831  if (constraintCase_ == 7) {
832  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
833  }
835  }
836 
837  public static final int INT_MOD_FIELD_NUMBER = 8;
845  public boolean hasIntMod() {
846  return constraintCase_ == 8;
847  }
856  if (constraintCase_ == 8) {
857  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
858  }
860  }
869  if (constraintCase_ == 8) {
870  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
871  }
873  }
874 
875  public static final int INT_MAX_FIELD_NUMBER = 9;
884  public boolean hasIntMax() {
885  return constraintCase_ == 9;
886  }
896  if (constraintCase_ == 9) {
897  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
898  }
900  }
910  if (constraintCase_ == 9) {
911  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
912  }
914  }
915 
916  public static final int INT_MIN_FIELD_NUMBER = 10;
925  public boolean hasIntMin() {
926  return constraintCase_ == 10;
927  }
937  if (constraintCase_ == 10) {
938  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
939  }
941  }
951  if (constraintCase_ == 10) {
952  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
953  }
955  }
956 
957  public static final int INT_PROD_FIELD_NUMBER = 11;
966  public boolean hasIntProd() {
967  return constraintCase_ == 11;
968  }
978  if (constraintCase_ == 11) {
979  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
980  }
982  }
992  if (constraintCase_ == 11) {
993  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
994  }
996  }
997 
998  public static final int LINEAR_FIELD_NUMBER = 12;
1007  public boolean hasLinear() {
1008  return constraintCase_ == 12;
1009  }
1019  if (constraintCase_ == 12) {
1020  return (com.google.ortools.sat.LinearConstraintProto) constraint_;
1021  }
1023  }
1033  if (constraintCase_ == 12) {
1034  return (com.google.ortools.sat.LinearConstraintProto) constraint_;
1035  }
1037  }
1038 
1039  public static final int ALL_DIFF_FIELD_NUMBER = 13;
1047  public boolean hasAllDiff() {
1048  return constraintCase_ == 13;
1049  }
1058  if (constraintCase_ == 13) {
1059  return (com.google.ortools.sat.AllDifferentConstraintProto) constraint_;
1060  }
1062  }
1071  if (constraintCase_ == 13) {
1072  return (com.google.ortools.sat.AllDifferentConstraintProto) constraint_;
1073  }
1075  }
1076 
1077  public static final int ELEMENT_FIELD_NUMBER = 14;
1086  public boolean hasElement() {
1087  return constraintCase_ == 14;
1088  }
1098  if (constraintCase_ == 14) {
1099  return (com.google.ortools.sat.ElementConstraintProto) constraint_;
1100  }
1102  }
1112  if (constraintCase_ == 14) {
1113  return (com.google.ortools.sat.ElementConstraintProto) constraint_;
1114  }
1116  }
1117 
1118  public static final int CIRCUIT_FIELD_NUMBER = 15;
1127  public boolean hasCircuit() {
1128  return constraintCase_ == 15;
1129  }
1139  if (constraintCase_ == 15) {
1140  return (com.google.ortools.sat.CircuitConstraintProto) constraint_;
1141  }
1143  }
1153  if (constraintCase_ == 15) {
1154  return (com.google.ortools.sat.CircuitConstraintProto) constraint_;
1155  }
1157  }
1158 
1159  public static final int ROUTES_FIELD_NUMBER = 23;
1167  public boolean hasRoutes() {
1168  return constraintCase_ == 23;
1169  }
1178  if (constraintCase_ == 23) {
1179  return (com.google.ortools.sat.RoutesConstraintProto) constraint_;
1180  }
1182  }
1191  if (constraintCase_ == 23) {
1192  return (com.google.ortools.sat.RoutesConstraintProto) constraint_;
1193  }
1195  }
1196 
1197  public static final int CIRCUIT_COVERING_FIELD_NUMBER = 25;
1206  public boolean hasCircuitCovering() {
1207  return constraintCase_ == 25;
1208  }
1218  if (constraintCase_ == 25) {
1219  return (com.google.ortools.sat.CircuitCoveringConstraintProto) constraint_;
1220  }
1222  }
1232  if (constraintCase_ == 25) {
1233  return (com.google.ortools.sat.CircuitCoveringConstraintProto) constraint_;
1234  }
1236  }
1237 
1238  public static final int TABLE_FIELD_NUMBER = 16;
1247  public boolean hasTable() {
1248  return constraintCase_ == 16;
1249  }
1259  if (constraintCase_ == 16) {
1260  return (com.google.ortools.sat.TableConstraintProto) constraint_;
1261  }
1263  }
1273  if (constraintCase_ == 16) {
1274  return (com.google.ortools.sat.TableConstraintProto) constraint_;
1275  }
1277  }
1278 
1279  public static final int AUTOMATON_FIELD_NUMBER = 17;
1288  public boolean hasAutomaton() {
1289  return constraintCase_ == 17;
1290  }
1300  if (constraintCase_ == 17) {
1301  return (com.google.ortools.sat.AutomatonConstraintProto) constraint_;
1302  }
1304  }
1314  if (constraintCase_ == 17) {
1315  return (com.google.ortools.sat.AutomatonConstraintProto) constraint_;
1316  }
1318  }
1319 
1320  public static final int INVERSE_FIELD_NUMBER = 18;
1329  public boolean hasInverse() {
1330  return constraintCase_ == 18;
1331  }
1341  if (constraintCase_ == 18) {
1342  return (com.google.ortools.sat.InverseConstraintProto) constraint_;
1343  }
1345  }
1355  if (constraintCase_ == 18) {
1356  return (com.google.ortools.sat.InverseConstraintProto) constraint_;
1357  }
1359  }
1360 
1361  public static final int RESERVOIR_FIELD_NUMBER = 24;
1371  public boolean hasReservoir() {
1372  return constraintCase_ == 24;
1373  }
1384  if (constraintCase_ == 24) {
1385  return (com.google.ortools.sat.ReservoirConstraintProto) constraint_;
1386  }
1388  }
1399  if (constraintCase_ == 24) {
1400  return (com.google.ortools.sat.ReservoirConstraintProto) constraint_;
1401  }
1403  }
1404 
1405  public static final int INTERVAL_FIELD_NUMBER = 19;
1414  public boolean hasInterval() {
1415  return constraintCase_ == 19;
1416  }
1426  if (constraintCase_ == 19) {
1427  return (com.google.ortools.sat.IntervalConstraintProto) constraint_;
1428  }
1430  }
1440  if (constraintCase_ == 19) {
1441  return (com.google.ortools.sat.IntervalConstraintProto) constraint_;
1442  }
1444  }
1445 
1446  public static final int NO_OVERLAP_FIELD_NUMBER = 20;
1456  public boolean hasNoOverlap() {
1457  return constraintCase_ == 20;
1458  }
1469  if (constraintCase_ == 20) {
1470  return (com.google.ortools.sat.NoOverlapConstraintProto) constraint_;
1471  }
1473  }
1484  if (constraintCase_ == 20) {
1485  return (com.google.ortools.sat.NoOverlapConstraintProto) constraint_;
1486  }
1488  }
1489 
1490  public static final int NO_OVERLAP_2D_FIELD_NUMBER = 21;
1498  public boolean hasNoOverlap2D() {
1499  return constraintCase_ == 21;
1500  }
1509  if (constraintCase_ == 21) {
1510  return (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_;
1511  }
1513  }
1522  if (constraintCase_ == 21) {
1523  return (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_;
1524  }
1526  }
1527 
1528  public static final int CUMULATIVE_FIELD_NUMBER = 22;
1538  public boolean hasCumulative() {
1539  return constraintCase_ == 22;
1540  }
1551  if (constraintCase_ == 22) {
1552  return (com.google.ortools.sat.CumulativeConstraintProto) constraint_;
1553  }
1555  }
1566  if (constraintCase_ == 22) {
1567  return (com.google.ortools.sat.CumulativeConstraintProto) constraint_;
1568  }
1570  }
1571 
1572  private byte memoizedIsInitialized = -1;
1573  @java.lang.Override
1574  public final boolean isInitialized() {
1575  byte isInitialized = memoizedIsInitialized;
1576  if (isInitialized == 1) return true;
1577  if (isInitialized == 0) return false;
1578 
1579  memoizedIsInitialized = 1;
1580  return true;
1581  }
1582 
1583  @java.lang.Override
1584  public void writeTo(com.google.protobuf.CodedOutputStream output)
1585  throws java.io.IOException {
1587  if (!getNameBytes().isEmpty()) {
1588  com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
1589  }
1590  if (getEnforcementLiteralList().size() > 0) {
1591  output.writeUInt32NoTag(18);
1592  output.writeUInt32NoTag(enforcementLiteralMemoizedSerializedSize);
1593  }
1594  for (int i = 0; i < enforcementLiteral_.size(); i++) {
1595  output.writeInt32NoTag(enforcementLiteral_.getInt(i));
1596  }
1597  if (constraintCase_ == 3) {
1598  output.writeMessage(3, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1599  }
1600  if (constraintCase_ == 4) {
1601  output.writeMessage(4, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1602  }
1603  if (constraintCase_ == 5) {
1604  output.writeMessage(5, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1605  }
1606  if (constraintCase_ == 7) {
1607  output.writeMessage(7, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1608  }
1609  if (constraintCase_ == 8) {
1610  output.writeMessage(8, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1611  }
1612  if (constraintCase_ == 9) {
1613  output.writeMessage(9, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1614  }
1615  if (constraintCase_ == 10) {
1616  output.writeMessage(10, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1617  }
1618  if (constraintCase_ == 11) {
1619  output.writeMessage(11, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1620  }
1621  if (constraintCase_ == 12) {
1622  output.writeMessage(12, (com.google.ortools.sat.LinearConstraintProto) constraint_);
1623  }
1624  if (constraintCase_ == 13) {
1625  output.writeMessage(13, (com.google.ortools.sat.AllDifferentConstraintProto) constraint_);
1626  }
1627  if (constraintCase_ == 14) {
1628  output.writeMessage(14, (com.google.ortools.sat.ElementConstraintProto) constraint_);
1629  }
1630  if (constraintCase_ == 15) {
1631  output.writeMessage(15, (com.google.ortools.sat.CircuitConstraintProto) constraint_);
1632  }
1633  if (constraintCase_ == 16) {
1634  output.writeMessage(16, (com.google.ortools.sat.TableConstraintProto) constraint_);
1635  }
1636  if (constraintCase_ == 17) {
1637  output.writeMessage(17, (com.google.ortools.sat.AutomatonConstraintProto) constraint_);
1638  }
1639  if (constraintCase_ == 18) {
1640  output.writeMessage(18, (com.google.ortools.sat.InverseConstraintProto) constraint_);
1641  }
1642  if (constraintCase_ == 19) {
1643  output.writeMessage(19, (com.google.ortools.sat.IntervalConstraintProto) constraint_);
1644  }
1645  if (constraintCase_ == 20) {
1646  output.writeMessage(20, (com.google.ortools.sat.NoOverlapConstraintProto) constraint_);
1647  }
1648  if (constraintCase_ == 21) {
1649  output.writeMessage(21, (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_);
1650  }
1651  if (constraintCase_ == 22) {
1652  output.writeMessage(22, (com.google.ortools.sat.CumulativeConstraintProto) constraint_);
1653  }
1654  if (constraintCase_ == 23) {
1655  output.writeMessage(23, (com.google.ortools.sat.RoutesConstraintProto) constraint_);
1656  }
1657  if (constraintCase_ == 24) {
1658  output.writeMessage(24, (com.google.ortools.sat.ReservoirConstraintProto) constraint_);
1659  }
1660  if (constraintCase_ == 25) {
1661  output.writeMessage(25, (com.google.ortools.sat.CircuitCoveringConstraintProto) constraint_);
1662  }
1663  if (constraintCase_ == 26) {
1664  output.writeMessage(26, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1665  }
1666  unknownFields.writeTo(output);
1667  }
1668 
1669  @java.lang.Override
1670  public int getSerializedSize() {
1671  int size = memoizedSize;
1672  if (size != -1) return size;
1673 
1674  size = 0;
1675  if (!getNameBytes().isEmpty()) {
1676  size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
1677  }
1678  {
1679  int dataSize = 0;
1680  for (int i = 0; i < enforcementLiteral_.size(); i++) {
1681  dataSize += com.google.protobuf.CodedOutputStream
1682  .computeInt32SizeNoTag(enforcementLiteral_.getInt(i));
1683  }
1684  size += dataSize;
1685  if (!getEnforcementLiteralList().isEmpty()) {
1686  size += 1;
1687  size += com.google.protobuf.CodedOutputStream
1688  .computeInt32SizeNoTag(dataSize);
1689  }
1690  enforcementLiteralMemoizedSerializedSize = dataSize;
1691  }
1692  if (constraintCase_ == 3) {
1693  size += com.google.protobuf.CodedOutputStream
1694  .computeMessageSize(3, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1695  }
1696  if (constraintCase_ == 4) {
1697  size += com.google.protobuf.CodedOutputStream
1698  .computeMessageSize(4, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1699  }
1700  if (constraintCase_ == 5) {
1701  size += com.google.protobuf.CodedOutputStream
1702  .computeMessageSize(5, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1703  }
1704  if (constraintCase_ == 7) {
1705  size += com.google.protobuf.CodedOutputStream
1706  .computeMessageSize(7, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1707  }
1708  if (constraintCase_ == 8) {
1709  size += com.google.protobuf.CodedOutputStream
1710  .computeMessageSize(8, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1711  }
1712  if (constraintCase_ == 9) {
1713  size += com.google.protobuf.CodedOutputStream
1714  .computeMessageSize(9, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1715  }
1716  if (constraintCase_ == 10) {
1717  size += com.google.protobuf.CodedOutputStream
1718  .computeMessageSize(10, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1719  }
1720  if (constraintCase_ == 11) {
1721  size += com.google.protobuf.CodedOutputStream
1722  .computeMessageSize(11, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1723  }
1724  if (constraintCase_ == 12) {
1725  size += com.google.protobuf.CodedOutputStream
1726  .computeMessageSize(12, (com.google.ortools.sat.LinearConstraintProto) constraint_);
1727  }
1728  if (constraintCase_ == 13) {
1729  size += com.google.protobuf.CodedOutputStream
1730  .computeMessageSize(13, (com.google.ortools.sat.AllDifferentConstraintProto) constraint_);
1731  }
1732  if (constraintCase_ == 14) {
1733  size += com.google.protobuf.CodedOutputStream
1734  .computeMessageSize(14, (com.google.ortools.sat.ElementConstraintProto) constraint_);
1735  }
1736  if (constraintCase_ == 15) {
1737  size += com.google.protobuf.CodedOutputStream
1738  .computeMessageSize(15, (com.google.ortools.sat.CircuitConstraintProto) constraint_);
1739  }
1740  if (constraintCase_ == 16) {
1741  size += com.google.protobuf.CodedOutputStream
1742  .computeMessageSize(16, (com.google.ortools.sat.TableConstraintProto) constraint_);
1743  }
1744  if (constraintCase_ == 17) {
1745  size += com.google.protobuf.CodedOutputStream
1746  .computeMessageSize(17, (com.google.ortools.sat.AutomatonConstraintProto) constraint_);
1747  }
1748  if (constraintCase_ == 18) {
1749  size += com.google.protobuf.CodedOutputStream
1750  .computeMessageSize(18, (com.google.ortools.sat.InverseConstraintProto) constraint_);
1751  }
1752  if (constraintCase_ == 19) {
1753  size += com.google.protobuf.CodedOutputStream
1754  .computeMessageSize(19, (com.google.ortools.sat.IntervalConstraintProto) constraint_);
1755  }
1756  if (constraintCase_ == 20) {
1757  size += com.google.protobuf.CodedOutputStream
1758  .computeMessageSize(20, (com.google.ortools.sat.NoOverlapConstraintProto) constraint_);
1759  }
1760  if (constraintCase_ == 21) {
1761  size += com.google.protobuf.CodedOutputStream
1762  .computeMessageSize(21, (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_);
1763  }
1764  if (constraintCase_ == 22) {
1765  size += com.google.protobuf.CodedOutputStream
1766  .computeMessageSize(22, (com.google.ortools.sat.CumulativeConstraintProto) constraint_);
1767  }
1768  if (constraintCase_ == 23) {
1769  size += com.google.protobuf.CodedOutputStream
1770  .computeMessageSize(23, (com.google.ortools.sat.RoutesConstraintProto) constraint_);
1771  }
1772  if (constraintCase_ == 24) {
1773  size += com.google.protobuf.CodedOutputStream
1774  .computeMessageSize(24, (com.google.ortools.sat.ReservoirConstraintProto) constraint_);
1775  }
1776  if (constraintCase_ == 25) {
1777  size += com.google.protobuf.CodedOutputStream
1778  .computeMessageSize(25, (com.google.ortools.sat.CircuitCoveringConstraintProto) constraint_);
1779  }
1780  if (constraintCase_ == 26) {
1781  size += com.google.protobuf.CodedOutputStream
1782  .computeMessageSize(26, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1783  }
1784  size += unknownFields.getSerializedSize();
1785  memoizedSize = size;
1786  return size;
1787  }
1788 
1789  @java.lang.Override
1790  public boolean equals(final java.lang.Object obj) {
1791  if (obj == this) {
1792  return true;
1793  }
1794  if (!(obj instanceof com.google.ortools.sat.ConstraintProto)) {
1795  return super.equals(obj);
1796  }
1798 
1799  if (!getName()
1800  .equals(other.getName())) return false;
1802  .equals(other.getEnforcementLiteralList())) return false;
1803  if (!getConstraintCase().equals(other.getConstraintCase())) return false;
1804  switch (constraintCase_) {
1805  case 3:
1806  if (!getBoolOr()
1807  .equals(other.getBoolOr())) return false;
1808  break;
1809  case 4:
1810  if (!getBoolAnd()
1811  .equals(other.getBoolAnd())) return false;
1812  break;
1813  case 26:
1814  if (!getAtMostOne()
1815  .equals(other.getAtMostOne())) return false;
1816  break;
1817  case 5:
1818  if (!getBoolXor()
1819  .equals(other.getBoolXor())) return false;
1820  break;
1821  case 7:
1822  if (!getIntDiv()
1823  .equals(other.getIntDiv())) return false;
1824  break;
1825  case 8:
1826  if (!getIntMod()
1827  .equals(other.getIntMod())) return false;
1828  break;
1829  case 9:
1830  if (!getIntMax()
1831  .equals(other.getIntMax())) return false;
1832  break;
1833  case 10:
1834  if (!getIntMin()
1835  .equals(other.getIntMin())) return false;
1836  break;
1837  case 11:
1838  if (!getIntProd()
1839  .equals(other.getIntProd())) return false;
1840  break;
1841  case 12:
1842  if (!getLinear()
1843  .equals(other.getLinear())) return false;
1844  break;
1845  case 13:
1846  if (!getAllDiff()
1847  .equals(other.getAllDiff())) return false;
1848  break;
1849  case 14:
1850  if (!getElement()
1851  .equals(other.getElement())) return false;
1852  break;
1853  case 15:
1854  if (!getCircuit()
1855  .equals(other.getCircuit())) return false;
1856  break;
1857  case 23:
1858  if (!getRoutes()
1859  .equals(other.getRoutes())) return false;
1860  break;
1861  case 25:
1862  if (!getCircuitCovering()
1863  .equals(other.getCircuitCovering())) return false;
1864  break;
1865  case 16:
1866  if (!getTable()
1867  .equals(other.getTable())) return false;
1868  break;
1869  case 17:
1870  if (!getAutomaton()
1871  .equals(other.getAutomaton())) return false;
1872  break;
1873  case 18:
1874  if (!getInverse()
1875  .equals(other.getInverse())) return false;
1876  break;
1877  case 24:
1878  if (!getReservoir()
1879  .equals(other.getReservoir())) return false;
1880  break;
1881  case 19:
1882  if (!getInterval()
1883  .equals(other.getInterval())) return false;
1884  break;
1885  case 20:
1886  if (!getNoOverlap()
1887  .equals(other.getNoOverlap())) return false;
1888  break;
1889  case 21:
1890  if (!getNoOverlap2D()
1891  .equals(other.getNoOverlap2D())) return false;
1892  break;
1893  case 22:
1894  if (!getCumulative()
1895  .equals(other.getCumulative())) return false;
1896  break;
1897  case 0:
1898  default:
1899  }
1900  if (!unknownFields.equals(other.unknownFields)) return false;
1901  return true;
1902  }
1903 
1904  @java.lang.Override
1905  public int hashCode() {
1906  if (memoizedHashCode != 0) {
1907  return memoizedHashCode;
1908  }
1909  int hash = 41;
1910  hash = (19 * hash) + getDescriptor().hashCode();
1911  hash = (37 * hash) + NAME_FIELD_NUMBER;
1912  hash = (53 * hash) + getName().hashCode();
1913  if (getEnforcementLiteralCount() > 0) {
1914  hash = (37 * hash) + ENFORCEMENT_LITERAL_FIELD_NUMBER;
1915  hash = (53 * hash) + getEnforcementLiteralList().hashCode();
1916  }
1917  switch (constraintCase_) {
1918  case 3:
1919  hash = (37 * hash) + BOOL_OR_FIELD_NUMBER;
1920  hash = (53 * hash) + getBoolOr().hashCode();
1921  break;
1922  case 4:
1923  hash = (37 * hash) + BOOL_AND_FIELD_NUMBER;
1924  hash = (53 * hash) + getBoolAnd().hashCode();
1925  break;
1926  case 26:
1927  hash = (37 * hash) + AT_MOST_ONE_FIELD_NUMBER;
1928  hash = (53 * hash) + getAtMostOne().hashCode();
1929  break;
1930  case 5:
1931  hash = (37 * hash) + BOOL_XOR_FIELD_NUMBER;
1932  hash = (53 * hash) + getBoolXor().hashCode();
1933  break;
1934  case 7:
1935  hash = (37 * hash) + INT_DIV_FIELD_NUMBER;
1936  hash = (53 * hash) + getIntDiv().hashCode();
1937  break;
1938  case 8:
1939  hash = (37 * hash) + INT_MOD_FIELD_NUMBER;
1940  hash = (53 * hash) + getIntMod().hashCode();
1941  break;
1942  case 9:
1943  hash = (37 * hash) + INT_MAX_FIELD_NUMBER;
1944  hash = (53 * hash) + getIntMax().hashCode();
1945  break;
1946  case 10:
1947  hash = (37 * hash) + INT_MIN_FIELD_NUMBER;
1948  hash = (53 * hash) + getIntMin().hashCode();
1949  break;
1950  case 11:
1951  hash = (37 * hash) + INT_PROD_FIELD_NUMBER;
1952  hash = (53 * hash) + getIntProd().hashCode();
1953  break;
1954  case 12:
1955  hash = (37 * hash) + LINEAR_FIELD_NUMBER;
1956  hash = (53 * hash) + getLinear().hashCode();
1957  break;
1958  case 13:
1959  hash = (37 * hash) + ALL_DIFF_FIELD_NUMBER;
1960  hash = (53 * hash) + getAllDiff().hashCode();
1961  break;
1962  case 14:
1963  hash = (37 * hash) + ELEMENT_FIELD_NUMBER;
1964  hash = (53 * hash) + getElement().hashCode();
1965  break;
1966  case 15:
1967  hash = (37 * hash) + CIRCUIT_FIELD_NUMBER;
1968  hash = (53 * hash) + getCircuit().hashCode();
1969  break;
1970  case 23:
1971  hash = (37 * hash) + ROUTES_FIELD_NUMBER;
1972  hash = (53 * hash) + getRoutes().hashCode();
1973  break;
1974  case 25:
1975  hash = (37 * hash) + CIRCUIT_COVERING_FIELD_NUMBER;
1976  hash = (53 * hash) + getCircuitCovering().hashCode();
1977  break;
1978  case 16:
1979  hash = (37 * hash) + TABLE_FIELD_NUMBER;
1980  hash = (53 * hash) + getTable().hashCode();
1981  break;
1982  case 17:
1983  hash = (37 * hash) + AUTOMATON_FIELD_NUMBER;
1984  hash = (53 * hash) + getAutomaton().hashCode();
1985  break;
1986  case 18:
1987  hash = (37 * hash) + INVERSE_FIELD_NUMBER;
1988  hash = (53 * hash) + getInverse().hashCode();
1989  break;
1990  case 24:
1991  hash = (37 * hash) + RESERVOIR_FIELD_NUMBER;
1992  hash = (53 * hash) + getReservoir().hashCode();
1993  break;
1994  case 19:
1995  hash = (37 * hash) + INTERVAL_FIELD_NUMBER;
1996  hash = (53 * hash) + getInterval().hashCode();
1997  break;
1998  case 20:
1999  hash = (37 * hash) + NO_OVERLAP_FIELD_NUMBER;
2000  hash = (53 * hash) + getNoOverlap().hashCode();
2001  break;
2002  case 21:
2003  hash = (37 * hash) + NO_OVERLAP_2D_FIELD_NUMBER;
2004  hash = (53 * hash) + getNoOverlap2D().hashCode();
2005  break;
2006  case 22:
2007  hash = (37 * hash) + CUMULATIVE_FIELD_NUMBER;
2008  hash = (53 * hash) + getCumulative().hashCode();
2009  break;
2010  case 0:
2011  default:
2012  }
2013  hash = (29 * hash) + unknownFields.hashCode();
2014  memoizedHashCode = hash;
2015  return hash;
2016  }
2017 
2019  java.nio.ByteBuffer data)
2020  throws com.google.protobuf.InvalidProtocolBufferException {
2021  return PARSER.parseFrom(data);
2022  }
2024  java.nio.ByteBuffer data,
2025  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2026  throws com.google.protobuf.InvalidProtocolBufferException {
2027  return PARSER.parseFrom(data, extensionRegistry);
2028  }
2030  com.google.protobuf.ByteString data)
2031  throws com.google.protobuf.InvalidProtocolBufferException {
2032  return PARSER.parseFrom(data);
2033  }
2035  com.google.protobuf.ByteString data,
2036  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2037  throws com.google.protobuf.InvalidProtocolBufferException {
2038  return PARSER.parseFrom(data, extensionRegistry);
2039  }
2040  public static com.google.ortools.sat.ConstraintProto parseFrom(byte[] data)
2041  throws com.google.protobuf.InvalidProtocolBufferException {
2042  return PARSER.parseFrom(data);
2043  }
2045  byte[] data,
2046  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2047  throws com.google.protobuf.InvalidProtocolBufferException {
2048  return PARSER.parseFrom(data, extensionRegistry);
2049  }
2050  public static com.google.ortools.sat.ConstraintProto parseFrom(java.io.InputStream input)
2051  throws java.io.IOException {
2052  return com.google.protobuf.GeneratedMessageV3
2053  .parseWithIOException(PARSER, input);
2054  }
2056  java.io.InputStream input,
2057  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2058  throws java.io.IOException {
2059  return com.google.protobuf.GeneratedMessageV3
2060  .parseWithIOException(PARSER, input, extensionRegistry);
2061  }
2062  public static com.google.ortools.sat.ConstraintProto parseDelimitedFrom(java.io.InputStream input)
2063  throws java.io.IOException {
2064  return com.google.protobuf.GeneratedMessageV3
2065  .parseDelimitedWithIOException(PARSER, input);
2066  }
2068  java.io.InputStream input,
2069  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2070  throws java.io.IOException {
2071  return com.google.protobuf.GeneratedMessageV3
2072  .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
2073  }
2075  com.google.protobuf.CodedInputStream input)
2076  throws java.io.IOException {
2077  return com.google.protobuf.GeneratedMessageV3
2078  .parseWithIOException(PARSER, input);
2079  }
2081  com.google.protobuf.CodedInputStream input,
2082  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2083  throws java.io.IOException {
2084  return com.google.protobuf.GeneratedMessageV3
2085  .parseWithIOException(PARSER, input, extensionRegistry);
2086  }
2087 
2088  @java.lang.Override
2089  public Builder newBuilderForType() { return newBuilder(); }
2090  public static Builder newBuilder() {
2091  return DEFAULT_INSTANCE.toBuilder();
2092  }
2094  return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
2095  }
2096  @java.lang.Override
2097  public Builder toBuilder() {
2098  return this == DEFAULT_INSTANCE
2099  ? new Builder() : new Builder().mergeFrom(this);
2100  }
2101 
2102  @java.lang.Override
2104  com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
2105  Builder builder = new Builder(parent);
2106  return builder;
2107  }
2115  public static final class Builder extends
2116  com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
2117  // @@protoc_insertion_point(builder_implements:operations_research.sat.ConstraintProto)
2118  com.google.ortools.sat.ConstraintProtoOrBuilder {
2119  public static final com.google.protobuf.Descriptors.Descriptor
2121  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_descriptor;
2122  }
2123 
2124  @java.lang.Override
2125  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
2127  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_fieldAccessorTable
2128  .ensureFieldAccessorsInitialized(
2130  }
2131 
2132  // Construct using com.google.ortools.sat.ConstraintProto.newBuilder()
2133  private Builder() {
2134  maybeForceBuilderInitialization();
2135  }
2136 
2137  private Builder(
2138  com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
2139  super(parent);
2140  maybeForceBuilderInitialization();
2141  }
2142  private void maybeForceBuilderInitialization() {
2143  if (com.google.protobuf.GeneratedMessageV3
2144  .alwaysUseFieldBuilders) {
2145  }
2146  }
2147  @java.lang.Override
2148  public Builder clear() {
2149  super.clear();
2150  name_ = "";
2151 
2152  enforcementLiteral_ = emptyIntList();
2153  bitField0_ = (bitField0_ & ~0x00000002);
2154  constraintCase_ = 0;
2155  constraint_ = null;
2156  return this;
2157  }
2158 
2159  @java.lang.Override
2160  public com.google.protobuf.Descriptors.Descriptor
2162  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_descriptor;
2163  }
2164 
2165  @java.lang.Override
2168  }
2169 
2170  @java.lang.Override
2173  if (!result.isInitialized()) {
2174  throw newUninitializedMessageException(result);
2175  }
2176  return result;
2177  }
2178 
2179  @java.lang.Override
2182  int from_bitField0_ = bitField0_;
2183  int to_bitField0_ = 0;
2184  result.name_ = name_;
2185  if (((bitField0_ & 0x00000002) != 0)) {
2186  enforcementLiteral_.makeImmutable();
2187  bitField0_ = (bitField0_ & ~0x00000002);
2188  }
2189  result.enforcementLiteral_ = enforcementLiteral_;
2190  if (constraintCase_ == 3) {
2191  if (boolOrBuilder_ == null) {
2192  result.constraint_ = constraint_;
2193  } else {
2194  result.constraint_ = boolOrBuilder_.build();
2195  }
2196  }
2197  if (constraintCase_ == 4) {
2198  if (boolAndBuilder_ == null) {
2199  result.constraint_ = constraint_;
2200  } else {
2201  result.constraint_ = boolAndBuilder_.build();
2202  }
2203  }
2204  if (constraintCase_ == 26) {
2205  if (atMostOneBuilder_ == null) {
2206  result.constraint_ = constraint_;
2207  } else {
2208  result.constraint_ = atMostOneBuilder_.build();
2209  }
2210  }
2211  if (constraintCase_ == 5) {
2212  if (boolXorBuilder_ == null) {
2213  result.constraint_ = constraint_;
2214  } else {
2215  result.constraint_ = boolXorBuilder_.build();
2216  }
2217  }
2218  if (constraintCase_ == 7) {
2219  if (intDivBuilder_ == null) {
2220  result.constraint_ = constraint_;
2221  } else {
2222  result.constraint_ = intDivBuilder_.build();
2223  }
2224  }
2225  if (constraintCase_ == 8) {
2226  if (intModBuilder_ == null) {
2227  result.constraint_ = constraint_;
2228  } else {
2229  result.constraint_ = intModBuilder_.build();
2230  }
2231  }
2232  if (constraintCase_ == 9) {
2233  if (intMaxBuilder_ == null) {
2234  result.constraint_ = constraint_;
2235  } else {
2236  result.constraint_ = intMaxBuilder_.build();
2237  }
2238  }
2239  if (constraintCase_ == 10) {
2240  if (intMinBuilder_ == null) {
2241  result.constraint_ = constraint_;
2242  } else {
2243  result.constraint_ = intMinBuilder_.build();
2244  }
2245  }
2246  if (constraintCase_ == 11) {
2247  if (intProdBuilder_ == null) {
2248  result.constraint_ = constraint_;
2249  } else {
2250  result.constraint_ = intProdBuilder_.build();
2251  }
2252  }
2253  if (constraintCase_ == 12) {
2254  if (linearBuilder_ == null) {
2255  result.constraint_ = constraint_;
2256  } else {
2257  result.constraint_ = linearBuilder_.build();
2258  }
2259  }
2260  if (constraintCase_ == 13) {
2261  if (allDiffBuilder_ == null) {
2262  result.constraint_ = constraint_;
2263  } else {
2264  result.constraint_ = allDiffBuilder_.build();
2265  }
2266  }
2267  if (constraintCase_ == 14) {
2268  if (elementBuilder_ == null) {
2269  result.constraint_ = constraint_;
2270  } else {
2271  result.constraint_ = elementBuilder_.build();
2272  }
2273  }
2274  if (constraintCase_ == 15) {
2275  if (circuitBuilder_ == null) {
2276  result.constraint_ = constraint_;
2277  } else {
2278  result.constraint_ = circuitBuilder_.build();
2279  }
2280  }
2281  if (constraintCase_ == 23) {
2282  if (routesBuilder_ == null) {
2283  result.constraint_ = constraint_;
2284  } else {
2285  result.constraint_ = routesBuilder_.build();
2286  }
2287  }
2288  if (constraintCase_ == 25) {
2289  if (circuitCoveringBuilder_ == null) {
2290  result.constraint_ = constraint_;
2291  } else {
2292  result.constraint_ = circuitCoveringBuilder_.build();
2293  }
2294  }
2295  if (constraintCase_ == 16) {
2296  if (tableBuilder_ == null) {
2297  result.constraint_ = constraint_;
2298  } else {
2299  result.constraint_ = tableBuilder_.build();
2300  }
2301  }
2302  if (constraintCase_ == 17) {
2303  if (automatonBuilder_ == null) {
2304  result.constraint_ = constraint_;
2305  } else {
2306  result.constraint_ = automatonBuilder_.build();
2307  }
2308  }
2309  if (constraintCase_ == 18) {
2310  if (inverseBuilder_ == null) {
2311  result.constraint_ = constraint_;
2312  } else {
2313  result.constraint_ = inverseBuilder_.build();
2314  }
2315  }
2316  if (constraintCase_ == 24) {
2317  if (reservoirBuilder_ == null) {
2318  result.constraint_ = constraint_;
2319  } else {
2320  result.constraint_ = reservoirBuilder_.build();
2321  }
2322  }
2323  if (constraintCase_ == 19) {
2324  if (intervalBuilder_ == null) {
2325  result.constraint_ = constraint_;
2326  } else {
2327  result.constraint_ = intervalBuilder_.build();
2328  }
2329  }
2330  if (constraintCase_ == 20) {
2331  if (noOverlapBuilder_ == null) {
2332  result.constraint_ = constraint_;
2333  } else {
2334  result.constraint_ = noOverlapBuilder_.build();
2335  }
2336  }
2337  if (constraintCase_ == 21) {
2338  if (noOverlap2DBuilder_ == null) {
2339  result.constraint_ = constraint_;
2340  } else {
2341  result.constraint_ = noOverlap2DBuilder_.build();
2342  }
2343  }
2344  if (constraintCase_ == 22) {
2345  if (cumulativeBuilder_ == null) {
2346  result.constraint_ = constraint_;
2347  } else {
2348  result.constraint_ = cumulativeBuilder_.build();
2349  }
2350  }
2351  result.bitField0_ = to_bitField0_;
2352  result.constraintCase_ = constraintCase_;
2353  onBuilt();
2354  return result;
2355  }
2356 
2357  @java.lang.Override
2358  public Builder clone() {
2359  return super.clone();
2360  }
2361  @java.lang.Override
2363  com.google.protobuf.Descriptors.FieldDescriptor field,
2364  java.lang.Object value) {
2365  return super.setField(field, value);
2366  }
2367  @java.lang.Override
2369  com.google.protobuf.Descriptors.FieldDescriptor field) {
2370  return super.clearField(field);
2371  }
2372  @java.lang.Override
2374  com.google.protobuf.Descriptors.OneofDescriptor oneof) {
2375  return super.clearOneof(oneof);
2376  }
2377  @java.lang.Override
2379  com.google.protobuf.Descriptors.FieldDescriptor field,
2380  int index, java.lang.Object value) {
2381  return super.setRepeatedField(field, index, value);
2382  }
2383  @java.lang.Override
2385  com.google.protobuf.Descriptors.FieldDescriptor field,
2386  java.lang.Object value) {
2387  return super.addRepeatedField(field, value);
2388  }
2389  @java.lang.Override
2390  public Builder mergeFrom(com.google.protobuf.Message other) {
2391  if (other instanceof com.google.ortools.sat.ConstraintProto) {
2392  return mergeFrom((com.google.ortools.sat.ConstraintProto)other);
2393  } else {
2394  super.mergeFrom(other);
2395  return this;
2396  }
2397  }
2398 
2400  if (other == com.google.ortools.sat.ConstraintProto.getDefaultInstance()) return this;
2401  if (!other.getName().isEmpty()) {
2402  name_ = other.name_;
2403  onChanged();
2404  }
2405  if (!other.enforcementLiteral_.isEmpty()) {
2406  if (enforcementLiteral_.isEmpty()) {
2407  enforcementLiteral_ = other.enforcementLiteral_;
2408  bitField0_ = (bitField0_ & ~0x00000002);
2409  } else {
2410  ensureEnforcementLiteralIsMutable();
2411  enforcementLiteral_.addAll(other.enforcementLiteral_);
2412  }
2413  onChanged();
2414  }
2415  switch (other.getConstraintCase()) {
2416  case BOOL_OR: {
2417  mergeBoolOr(other.getBoolOr());
2418  break;
2419  }
2420  case BOOL_AND: {
2421  mergeBoolAnd(other.getBoolAnd());
2422  break;
2423  }
2424  case AT_MOST_ONE: {
2425  mergeAtMostOne(other.getAtMostOne());
2426  break;
2427  }
2428  case BOOL_XOR: {
2429  mergeBoolXor(other.getBoolXor());
2430  break;
2431  }
2432  case INT_DIV: {
2433  mergeIntDiv(other.getIntDiv());
2434  break;
2435  }
2436  case INT_MOD: {
2437  mergeIntMod(other.getIntMod());
2438  break;
2439  }
2440  case INT_MAX: {
2441  mergeIntMax(other.getIntMax());
2442  break;
2443  }
2444  case INT_MIN: {
2445  mergeIntMin(other.getIntMin());
2446  break;
2447  }
2448  case INT_PROD: {
2449  mergeIntProd(other.getIntProd());
2450  break;
2451  }
2452  case LINEAR: {
2453  mergeLinear(other.getLinear());
2454  break;
2455  }
2456  case ALL_DIFF: {
2457  mergeAllDiff(other.getAllDiff());
2458  break;
2459  }
2460  case ELEMENT: {
2461  mergeElement(other.getElement());
2462  break;
2463  }
2464  case CIRCUIT: {
2465  mergeCircuit(other.getCircuit());
2466  break;
2467  }
2468  case ROUTES: {
2469  mergeRoutes(other.getRoutes());
2470  break;
2471  }
2472  case CIRCUIT_COVERING: {
2473  mergeCircuitCovering(other.getCircuitCovering());
2474  break;
2475  }
2476  case TABLE: {
2477  mergeTable(other.getTable());
2478  break;
2479  }
2480  case AUTOMATON: {
2481  mergeAutomaton(other.getAutomaton());
2482  break;
2483  }
2484  case INVERSE: {
2485  mergeInverse(other.getInverse());
2486  break;
2487  }
2488  case RESERVOIR: {
2489  mergeReservoir(other.getReservoir());
2490  break;
2491  }
2492  case INTERVAL: {
2493  mergeInterval(other.getInterval());
2494  break;
2495  }
2496  case NO_OVERLAP: {
2497  mergeNoOverlap(other.getNoOverlap());
2498  break;
2499  }
2500  case NO_OVERLAP_2D: {
2501  mergeNoOverlap2D(other.getNoOverlap2D());
2502  break;
2503  }
2504  case CUMULATIVE: {
2505  mergeCumulative(other.getCumulative());
2506  break;
2507  }
2508  case CONSTRAINT_NOT_SET: {
2509  break;
2510  }
2511  }
2512  this.mergeUnknownFields(other.unknownFields);
2513  onChanged();
2514  return this;
2515  }
2516 
2517  @java.lang.Override
2518  public final boolean isInitialized() {
2519  return true;
2520  }
2521 
2522  @java.lang.Override
2524  com.google.protobuf.CodedInputStream input,
2525  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2526  throws java.io.IOException {
2527  com.google.ortools.sat.ConstraintProto parsedMessage = null;
2528  try {
2529  parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
2530  } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2531  parsedMessage = (com.google.ortools.sat.ConstraintProto) e.getUnfinishedMessage();
2532  throw e.unwrapIOException();
2533  } finally {
2534  if (parsedMessage != null) {
2535  mergeFrom(parsedMessage);
2536  }
2537  }
2538  return this;
2539  }
2540  private int constraintCase_ = 0;
2541  private java.lang.Object constraint_;
2542  public ConstraintCase
2544  return ConstraintCase.forNumber(
2545  constraintCase_);
2546  }
2547 
2549  constraintCase_ = 0;
2550  constraint_ = null;
2551  onChanged();
2552  return this;
2553  }
2554 
2555  private int bitField0_;
2556 
2557  private java.lang.Object name_ = "";
2565  public java.lang.String getName() {
2566  java.lang.Object ref = name_;
2567  if (!(ref instanceof java.lang.String)) {
2568  com.google.protobuf.ByteString bs =
2569  (com.google.protobuf.ByteString) ref;
2570  java.lang.String s = bs.toStringUtf8();
2571  name_ = s;
2572  return s;
2573  } else {
2574  return (java.lang.String) ref;
2575  }
2576  }
2584  public com.google.protobuf.ByteString
2586  java.lang.Object ref = name_;
2587  if (ref instanceof String) {
2588  com.google.protobuf.ByteString b =
2589  com.google.protobuf.ByteString.copyFromUtf8(
2590  (java.lang.String) ref);
2591  name_ = b;
2592  return b;
2593  } else {
2594  return (com.google.protobuf.ByteString) ref;
2595  }
2596  }
2605  java.lang.String value) {
2606  if (value == null) {
2607  throw new NullPointerException();
2608  }
2609 
2610  name_ = value;
2611  onChanged();
2612  return this;
2613  }
2621  public Builder clearName() {
2622 
2623  name_ = getDefaultInstance().getName();
2624  onChanged();
2625  return this;
2626  }
2635  com.google.protobuf.ByteString value) {
2636  if (value == null) {
2637  throw new NullPointerException();
2638  }
2639  checkByteStringIsUtf8(value);
2640 
2641  name_ = value;
2642  onChanged();
2643  return this;
2644  }
2645 
2646  private com.google.protobuf.Internal.IntList enforcementLiteral_ = emptyIntList();
2647  private void ensureEnforcementLiteralIsMutable() {
2648  if (!((bitField0_ & 0x00000002) != 0)) {
2649  enforcementLiteral_ = mutableCopy(enforcementLiteral_);
2650  bitField0_ |= 0x00000002;
2651  }
2652  }
2671  public java.util.List<java.lang.Integer>
2673  return ((bitField0_ & 0x00000002) != 0) ?
2674  java.util.Collections.unmodifiableList(enforcementLiteral_) : enforcementLiteral_;
2675  }
2695  return enforcementLiteral_.size();
2696  }
2715  public int getEnforcementLiteral(int index) {
2716  return enforcementLiteral_.getInt(index);
2717  }
2737  int index, int value) {
2738  ensureEnforcementLiteralIsMutable();
2739  enforcementLiteral_.setInt(index, value);
2740  onChanged();
2741  return this;
2742  }
2761  public Builder addEnforcementLiteral(int value) {
2762  ensureEnforcementLiteralIsMutable();
2763  enforcementLiteral_.addInt(value);
2764  onChanged();
2765  return this;
2766  }
2786  java.lang.Iterable<? extends java.lang.Integer> values) {
2787  ensureEnforcementLiteralIsMutable();
2788  com.google.protobuf.AbstractMessageLite.Builder.addAll(
2789  values, enforcementLiteral_);
2790  onChanged();
2791  return this;
2792  }
2812  enforcementLiteral_ = emptyIntList();
2813  bitField0_ = (bitField0_ & ~0x00000002);
2814  onChanged();
2815  return this;
2816  }
2817 
2818  private com.google.protobuf.SingleFieldBuilderV3<
2827  public boolean hasBoolOr() {
2828  return constraintCase_ == 3;
2829  }
2838  if (boolOrBuilder_ == null) {
2839  if (constraintCase_ == 3) {
2840  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
2841  }
2843  } else {
2844  if (constraintCase_ == 3) {
2845  return boolOrBuilder_.getMessage();
2846  }
2848  }
2849  }
2858  if (boolOrBuilder_ == null) {
2859  if (value == null) {
2860  throw new NullPointerException();
2861  }
2862  constraint_ = value;
2863  onChanged();
2864  } else {
2865  boolOrBuilder_.setMessage(value);
2866  }
2867  constraintCase_ = 3;
2868  return this;
2869  }
2878  com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
2879  if (boolOrBuilder_ == null) {
2880  constraint_ = builderForValue.build();
2881  onChanged();
2882  } else {
2883  boolOrBuilder_.setMessage(builderForValue.build());
2884  }
2885  constraintCase_ = 3;
2886  return this;
2887  }
2896  if (boolOrBuilder_ == null) {
2897  if (constraintCase_ == 3 &&
2900  .mergeFrom(value).buildPartial();
2901  } else {
2902  constraint_ = value;
2903  }
2904  onChanged();
2905  } else {
2906  if (constraintCase_ == 3) {
2907  boolOrBuilder_.mergeFrom(value);
2908  }
2909  boolOrBuilder_.setMessage(value);
2910  }
2911  constraintCase_ = 3;
2912  return this;
2913  }
2922  if (boolOrBuilder_ == null) {
2923  if (constraintCase_ == 3) {
2924  constraintCase_ = 0;
2925  constraint_ = null;
2926  onChanged();
2927  }
2928  } else {
2929  if (constraintCase_ == 3) {
2930  constraintCase_ = 0;
2931  constraint_ = null;
2932  }
2933  boolOrBuilder_.clear();
2934  }
2935  return this;
2936  }
2945  return getBoolOrFieldBuilder().getBuilder();
2946  }
2955  if ((constraintCase_ == 3) && (boolOrBuilder_ != null)) {
2956  return boolOrBuilder_.getMessageOrBuilder();
2957  } else {
2958  if (constraintCase_ == 3) {
2959  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
2960  }
2962  }
2963  }
2971  private com.google.protobuf.SingleFieldBuilderV3<
2973  getBoolOrFieldBuilder() {
2974  if (boolOrBuilder_ == null) {
2975  if (!(constraintCase_ == 3)) {
2977  }
2978  boolOrBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
2980  (com.google.ortools.sat.BoolArgumentProto) constraint_,
2981  getParentForChildren(),
2982  isClean());
2983  constraint_ = null;
2984  }
2985  constraintCase_ = 3;
2986  onChanged();;
2987  return boolOrBuilder_;
2988  }
2989 
2990  private com.google.protobuf.SingleFieldBuilderV3<
3002  public boolean hasBoolAnd() {
3003  return constraintCase_ == 4;
3004  }
3016  if (boolAndBuilder_ == null) {
3017  if (constraintCase_ == 4) {
3018  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3019  }
3021  } else {
3022  if (constraintCase_ == 4) {
3023  return boolAndBuilder_.getMessage();
3024  }
3026  }
3027  }
3039  if (boolAndBuilder_ == null) {
3040  if (value == null) {
3041  throw new NullPointerException();
3042  }
3043  constraint_ = value;
3044  onChanged();
3045  } else {
3046  boolAndBuilder_.setMessage(value);
3047  }
3048  constraintCase_ = 4;
3049  return this;
3050  }
3062  com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
3063  if (boolAndBuilder_ == null) {
3064  constraint_ = builderForValue.build();
3065  onChanged();
3066  } else {
3067  boolAndBuilder_.setMessage(builderForValue.build());
3068  }
3069  constraintCase_ = 4;
3070  return this;
3071  }
3083  if (boolAndBuilder_ == null) {
3084  if (constraintCase_ == 4 &&
3087  .mergeFrom(value).buildPartial();
3088  } else {
3089  constraint_ = value;
3090  }
3091  onChanged();
3092  } else {
3093  if (constraintCase_ == 4) {
3094  boolAndBuilder_.mergeFrom(value);
3095  }
3096  boolAndBuilder_.setMessage(value);
3097  }
3098  constraintCase_ = 4;
3099  return this;
3100  }
3112  if (boolAndBuilder_ == null) {
3113  if (constraintCase_ == 4) {
3114  constraintCase_ = 0;
3115  constraint_ = null;
3116  onChanged();
3117  }
3118  } else {
3119  if (constraintCase_ == 4) {
3120  constraintCase_ = 0;
3121  constraint_ = null;
3122  }
3123  boolAndBuilder_.clear();
3124  }
3125  return this;
3126  }
3138  return getBoolAndFieldBuilder().getBuilder();
3139  }
3151  if ((constraintCase_ == 4) && (boolAndBuilder_ != null)) {
3152  return boolAndBuilder_.getMessageOrBuilder();
3153  } else {
3154  if (constraintCase_ == 4) {
3155  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3156  }
3158  }
3159  }
3170  private com.google.protobuf.SingleFieldBuilderV3<
3172  getBoolAndFieldBuilder() {
3173  if (boolAndBuilder_ == null) {
3174  if (!(constraintCase_ == 4)) {
3176  }
3177  boolAndBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
3179  (com.google.ortools.sat.BoolArgumentProto) constraint_,
3180  getParentForChildren(),
3181  isClean());
3182  constraint_ = null;
3183  }
3184  constraintCase_ = 4;
3185  onChanged();;
3186  return boolAndBuilder_;
3187  }
3188 
3189  private com.google.protobuf.SingleFieldBuilderV3<
3202  public boolean hasAtMostOne() {
3203  return constraintCase_ == 26;
3204  }
3217  if (atMostOneBuilder_ == null) {
3218  if (constraintCase_ == 26) {
3219  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3220  }
3222  } else {
3223  if (constraintCase_ == 26) {
3224  return atMostOneBuilder_.getMessage();
3225  }
3227  }
3228  }
3241  if (atMostOneBuilder_ == null) {
3242  if (value == null) {
3243  throw new NullPointerException();
3244  }
3245  constraint_ = value;
3246  onChanged();
3247  } else {
3248  atMostOneBuilder_.setMessage(value);
3249  }
3250  constraintCase_ = 26;
3251  return this;
3252  }
3265  com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
3266  if (atMostOneBuilder_ == null) {
3267  constraint_ = builderForValue.build();
3268  onChanged();
3269  } else {
3270  atMostOneBuilder_.setMessage(builderForValue.build());
3271  }
3272  constraintCase_ = 26;
3273  return this;
3274  }
3287  if (atMostOneBuilder_ == null) {
3288  if (constraintCase_ == 26 &&
3291  .mergeFrom(value).buildPartial();
3292  } else {
3293  constraint_ = value;
3294  }
3295  onChanged();
3296  } else {
3297  if (constraintCase_ == 26) {
3298  atMostOneBuilder_.mergeFrom(value);
3299  }
3300  atMostOneBuilder_.setMessage(value);
3301  }
3302  constraintCase_ = 26;
3303  return this;
3304  }
3317  if (atMostOneBuilder_ == null) {
3318  if (constraintCase_ == 26) {
3319  constraintCase_ = 0;
3320  constraint_ = null;
3321  onChanged();
3322  }
3323  } else {
3324  if (constraintCase_ == 26) {
3325  constraintCase_ = 0;
3326  constraint_ = null;
3327  }
3328  atMostOneBuilder_.clear();
3329  }
3330  return this;
3331  }
3344  return getAtMostOneFieldBuilder().getBuilder();
3345  }
3358  if ((constraintCase_ == 26) && (atMostOneBuilder_ != null)) {
3359  return atMostOneBuilder_.getMessageOrBuilder();
3360  } else {
3361  if (constraintCase_ == 26) {
3362  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3363  }
3365  }
3366  }
3378  private com.google.protobuf.SingleFieldBuilderV3<
3380  getAtMostOneFieldBuilder() {
3381  if (atMostOneBuilder_ == null) {
3382  if (!(constraintCase_ == 26)) {
3384  }
3385  atMostOneBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
3387  (com.google.ortools.sat.BoolArgumentProto) constraint_,
3388  getParentForChildren(),
3389  isClean());
3390  constraint_ = null;
3391  }
3392  constraintCase_ = 26;
3393  onChanged();;
3394  return atMostOneBuilder_;
3395  }
3396 
3397  private com.google.protobuf.SingleFieldBuilderV3<
3406  public boolean hasBoolXor() {
3407  return constraintCase_ == 5;
3408  }
3417  if (boolXorBuilder_ == null) {
3418  if (constraintCase_ == 5) {
3419  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3420  }
3422  } else {
3423  if (constraintCase_ == 5) {
3424  return boolXorBuilder_.getMessage();
3425  }
3427  }
3428  }
3437  if (boolXorBuilder_ == null) {
3438  if (value == null) {
3439  throw new NullPointerException();
3440  }
3441  constraint_ = value;
3442  onChanged();
3443  } else {
3444  boolXorBuilder_.setMessage(value);
3445  }
3446  constraintCase_ = 5;
3447  return this;
3448  }
3457  com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
3458  if (boolXorBuilder_ == null) {
3459  constraint_ = builderForValue.build();
3460  onChanged();
3461  } else {
3462  boolXorBuilder_.setMessage(builderForValue.build());
3463  }
3464  constraintCase_ = 5;
3465  return this;
3466  }
3475  if (boolXorBuilder_ == null) {
3476  if (constraintCase_ == 5 &&
3479  .mergeFrom(value).buildPartial();
3480  } else {
3481  constraint_ = value;
3482  }
3483  onChanged();
3484  } else {
3485  if (constraintCase_ == 5) {
3486  boolXorBuilder_.mergeFrom(value);
3487  }
3488  boolXorBuilder_.setMessage(value);
3489  }
3490  constraintCase_ = 5;
3491  return this;
3492  }
3501  if (boolXorBuilder_ == null) {
3502  if (constraintCase_ == 5) {
3503  constraintCase_ = 0;
3504  constraint_ = null;
3505  onChanged();
3506  }
3507  } else {
3508  if (constraintCase_ == 5) {
3509  constraintCase_ = 0;
3510  constraint_ = null;
3511  }
3512  boolXorBuilder_.clear();
3513  }
3514  return this;
3515  }
3524  return getBoolXorFieldBuilder().getBuilder();
3525  }
3534  if ((constraintCase_ == 5) && (boolXorBuilder_ != null)) {
3535  return boolXorBuilder_.getMessageOrBuilder();
3536  } else {
3537  if (constraintCase_ == 5) {
3538  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3539  }
3541  }
3542  }
3550  private com.google.protobuf.SingleFieldBuilderV3<
3552  getBoolXorFieldBuilder() {
3553  if (boolXorBuilder_ == null) {
3554  if (!(constraintCase_ == 5)) {
3556  }
3557  boolXorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
3559  (com.google.ortools.sat.BoolArgumentProto) constraint_,
3560  getParentForChildren(),
3561  isClean());
3562  constraint_ = null;
3563  }
3564  constraintCase_ = 5;
3565  onChanged();;
3566  return boolXorBuilder_;
3567  }
3568 
3569  private com.google.protobuf.SingleFieldBuilderV3<
3578  public boolean hasIntDiv() {
3579  return constraintCase_ == 7;
3580  }
3589  if (intDivBuilder_ == null) {
3590  if (constraintCase_ == 7) {
3591  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
3592  }
3594  } else {
3595  if (constraintCase_ == 7) {
3596  return intDivBuilder_.getMessage();
3597  }
3599  }
3600  }
3609  if (intDivBuilder_ == null) {
3610  if (value == null) {
3611  throw new NullPointerException();
3612  }
3613  constraint_ = value;
3614  onChanged();
3615  } else {
3616  intDivBuilder_.setMessage(value);
3617  }
3618  constraintCase_ = 7;
3619  return this;
3620  }
3629  com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue) {
3630  if (intDivBuilder_ == null) {
3631  constraint_ = builderForValue.build();
3632  onChanged();
3633  } else {
3634  intDivBuilder_.setMessage(builderForValue.build());
3635  }
3636  constraintCase_ = 7;
3637  return this;
3638  }
3647  if (intDivBuilder_ == null) {
3648  if (constraintCase_ == 7 &&
3651  .mergeFrom(value).buildPartial();
3652  } else {
3653  constraint_ = value;
3654  }
3655  onChanged();
3656  } else {
3657  if (constraintCase_ == 7) {
3658  intDivBuilder_.mergeFrom(value);
3659  }
3660  intDivBuilder_.setMessage(value);
3661  }
3662  constraintCase_ = 7;
3663  return this;
3664  }
3673  if (intDivBuilder_ == null) {
3674  if (constraintCase_ == 7) {
3675  constraintCase_ = 0;
3676  constraint_ = null;
3677  onChanged();
3678  }
3679  } else {
3680  if (constraintCase_ == 7) {
3681  constraintCase_ = 0;
3682  constraint_ = null;
3683  }
3684  intDivBuilder_.clear();
3685  }
3686  return this;
3687  }
3696  return getIntDivFieldBuilder().getBuilder();
3697  }
3706  if ((constraintCase_ == 7) && (intDivBuilder_ != null)) {
3707  return intDivBuilder_.getMessageOrBuilder();
3708  } else {
3709  if (constraintCase_ == 7) {
3710  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
3711  }
3713  }
3714  }
3722  private com.google.protobuf.SingleFieldBuilderV3<
3724  getIntDivFieldBuilder() {
3725  if (intDivBuilder_ == null) {
3726  if (!(constraintCase_ == 7)) {
3728  }
3729  intDivBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
3731  (com.google.ortools.sat.IntegerArgumentProto) constraint_,
3732  getParentForChildren(),
3733  isClean());
3734  constraint_ = null;
3735  }
3736  constraintCase_ = 7;
3737  onChanged();;
3738  return intDivBuilder_;
3739  }
3740 
3741  private com.google.protobuf.SingleFieldBuilderV3<
3750  public boolean hasIntMod() {
3751  return constraintCase_ == 8;
3752  }
3761  if (intModBuilder_ == null) {
3762  if (constraintCase_ == 8) {
3763  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
3764  }
3766  } else {
3767  if (constraintCase_ == 8) {
3768  return intModBuilder_.getMessage();
3769  }
3771  }
3772  }
3781  if (intModBuilder_ == null) {
3782  if (value == null) {
3783  throw new NullPointerException();
3784  }
3785  constraint_ = value;
3786  onChanged();
3787  } else {
3788  intModBuilder_.setMessage(value);
3789  }
3790  constraintCase_ = 8;
3791  return this;
3792  }
3801  com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue) {
3802  if (intModBuilder_ == null) {
3803  constraint_ = builderForValue.build();
3804  onChanged();
3805  } else {
3806  intModBuilder_.setMessage(builderForValue.build());
3807  }
3808  constraintCase_ = 8;
3809  return this;
3810  }
3819  if (intModBuilder_ == null) {
3820  if (constraintCase_ == 8 &&
3823  .mergeFrom(value).buildPartial();
3824  } else {
3825  constraint_ = value;
3826  }
3827  onChanged();
3828  } else {
3829  if (constraintCase_ == 8) {
3830  intModBuilder_.mergeFrom(value);
3831  }
3832  intModBuilder_.setMessage(value);
3833  }
3834  constraintCase_ = 8;
3835  return this;
3836  }
3845  if (intModBuilder_ == null) {
3846  if (constraintCase_ == 8) {
3847  constraintCase_ = 0;
3848  constraint_ = null;
3849  onChanged();
3850  }
3851  } else {
3852  if (constraintCase_ == 8) {
3853  constraintCase_ = 0;
3854  constraint_ = null;
3855  }
3856  intModBuilder_.clear();
3857  }
3858  return this;
3859  }
3868  return getIntModFieldBuilder().getBuilder();
3869  }
3878  if ((constraintCase_ == 8) && (intModBuilder_ != null)) {
3879  return intModBuilder_.getMessageOrBuilder();
3880  } else {
3881  if (constraintCase_ == 8) {
3882  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
3883  }
3885  }
3886  }
3894  private com.google.protobuf.SingleFieldBuilderV3<
3896  getIntModFieldBuilder() {
3897  if (intModBuilder_ == null) {
3898  if (!(constraintCase_ == 8)) {
3900  }
3901  intModBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
3903  (com.google.ortools.sat.IntegerArgumentProto) constraint_,
3904  getParentForChildren(),
3905  isClean());
3906  constraint_ = null;
3907  }
3908  constraintCase_ = 8;
3909  onChanged();;
3910  return intModBuilder_;
3911  }
3912 
3913  private com.google.protobuf.SingleFieldBuilderV3<
3923  public boolean hasIntMax() {
3924  return constraintCase_ == 9;
3925  }
3935  if (intMaxBuilder_ == null) {
3936  if (constraintCase_ == 9) {
3937  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
3938  }
3940  } else {
3941  if (constraintCase_ == 9) {
3942  return intMaxBuilder_.getMessage();
3943  }
3945  }
3946  }
3956  if (intMaxBuilder_ == null) {
3957  if (value == null) {
3958  throw new NullPointerException();
3959  }
3960  constraint_ = value;
3961  onChanged();
3962  } else {
3963  intMaxBuilder_.setMessage(value);
3964  }
3965  constraintCase_ = 9;
3966  return this;
3967  }
3977  com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue) {
3978  if (intMaxBuilder_ == null) {
3979  constraint_ = builderForValue.build();
3980  onChanged();
3981  } else {
3982  intMaxBuilder_.setMessage(builderForValue.build());
3983  }
3984  constraintCase_ = 9;
3985  return this;
3986  }
3996  if (intMaxBuilder_ == null) {
3997  if (constraintCase_ == 9 &&
4000  .mergeFrom(value).buildPartial();
4001  } else {
4002  constraint_ = value;
4003  }
4004  onChanged();
4005  } else {
4006  if (constraintCase_ == 9) {
4007  intMaxBuilder_.mergeFrom(value);
4008  }
4009  intMaxBuilder_.setMessage(value);
4010  }
4011  constraintCase_ = 9;
4012  return this;
4013  }
4023  if (intMaxBuilder_ == null) {
4024  if (constraintCase_ == 9) {
4025  constraintCase_ = 0;
4026  constraint_ = null;
4027  onChanged();
4028  }
4029  } else {
4030  if (constraintCase_ == 9) {
4031  constraintCase_ = 0;
4032  constraint_ = null;
4033  }
4034  intMaxBuilder_.clear();
4035  }
4036  return this;
4037  }
4047  return getIntMaxFieldBuilder().getBuilder();
4048  }
4058  if ((constraintCase_ == 9) && (intMaxBuilder_ != null)) {
4059  return intMaxBuilder_.getMessageOrBuilder();
4060  } else {
4061  if (constraintCase_ == 9) {
4062  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
4063  }
4065  }
4066  }
4075  private com.google.protobuf.SingleFieldBuilderV3<
4077  getIntMaxFieldBuilder() {
4078  if (intMaxBuilder_ == null) {
4079  if (!(constraintCase_ == 9)) {
4081  }
4082  intMaxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4084  (com.google.ortools.sat.IntegerArgumentProto) constraint_,
4085  getParentForChildren(),
4086  isClean());
4087  constraint_ = null;
4088  }
4089  constraintCase_ = 9;
4090  onChanged();;
4091  return intMaxBuilder_;
4092  }
4093 
4094  private com.google.protobuf.SingleFieldBuilderV3<
4104  public boolean hasIntMin() {
4105  return constraintCase_ == 10;
4106  }
4116  if (intMinBuilder_ == null) {
4117  if (constraintCase_ == 10) {
4118  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
4119  }
4121  } else {
4122  if (constraintCase_ == 10) {
4123  return intMinBuilder_.getMessage();
4124  }
4126  }
4127  }
4137  if (intMinBuilder_ == null) {
4138  if (value == null) {
4139  throw new NullPointerException();
4140  }
4141  constraint_ = value;
4142  onChanged();
4143  } else {
4144  intMinBuilder_.setMessage(value);
4145  }
4146  constraintCase_ = 10;
4147  return this;
4148  }
4158  com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue) {
4159  if (intMinBuilder_ == null) {
4160  constraint_ = builderForValue.build();
4161  onChanged();
4162  } else {
4163  intMinBuilder_.setMessage(builderForValue.build());
4164  }
4165  constraintCase_ = 10;
4166  return this;
4167  }
4177  if (intMinBuilder_ == null) {
4178  if (constraintCase_ == 10 &&
4181  .mergeFrom(value).buildPartial();
4182  } else {
4183  constraint_ = value;
4184  }
4185  onChanged();
4186  } else {
4187  if (constraintCase_ == 10) {
4188  intMinBuilder_.mergeFrom(value);
4189  }
4190  intMinBuilder_.setMessage(value);
4191  }
4192  constraintCase_ = 10;
4193  return this;
4194  }
4204  if (intMinBuilder_ == null) {
4205  if (constraintCase_ == 10) {
4206  constraintCase_ = 0;
4207  constraint_ = null;
4208  onChanged();
4209  }
4210  } else {
4211  if (constraintCase_ == 10) {
4212  constraintCase_ = 0;
4213  constraint_ = null;
4214  }
4215  intMinBuilder_.clear();
4216  }
4217  return this;
4218  }
4228  return getIntMinFieldBuilder().getBuilder();
4229  }
4239  if ((constraintCase_ == 10) && (intMinBuilder_ != null)) {
4240  return intMinBuilder_.getMessageOrBuilder();
4241  } else {
4242  if (constraintCase_ == 10) {
4243  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
4244  }
4246  }
4247  }
4256  private com.google.protobuf.SingleFieldBuilderV3<
4258  getIntMinFieldBuilder() {
4259  if (intMinBuilder_ == null) {
4260  if (!(constraintCase_ == 10)) {
4262  }
4263  intMinBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4265  (com.google.ortools.sat.IntegerArgumentProto) constraint_,
4266  getParentForChildren(),
4267  isClean());
4268  constraint_ = null;
4269  }
4270  constraintCase_ = 10;
4271  onChanged();;
4272  return intMinBuilder_;
4273  }
4274 
4275  private com.google.protobuf.SingleFieldBuilderV3<
4285  public boolean hasIntProd() {
4286  return constraintCase_ == 11;
4287  }
4297  if (intProdBuilder_ == null) {
4298  if (constraintCase_ == 11) {
4299  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
4300  }
4302  } else {
4303  if (constraintCase_ == 11) {
4304  return intProdBuilder_.getMessage();
4305  }
4307  }
4308  }
4318  if (intProdBuilder_ == null) {
4319  if (value == null) {
4320  throw new NullPointerException();
4321  }
4322  constraint_ = value;
4323  onChanged();
4324  } else {
4325  intProdBuilder_.setMessage(value);
4326  }
4327  constraintCase_ = 11;
4328  return this;
4329  }
4339  com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue) {
4340  if (intProdBuilder_ == null) {
4341  constraint_ = builderForValue.build();
4342  onChanged();
4343  } else {
4344  intProdBuilder_.setMessage(builderForValue.build());
4345  }
4346  constraintCase_ = 11;
4347  return this;
4348  }
4358  if (intProdBuilder_ == null) {
4359  if (constraintCase_ == 11 &&
4362  .mergeFrom(value).buildPartial();
4363  } else {
4364  constraint_ = value;
4365  }
4366  onChanged();
4367  } else {
4368  if (constraintCase_ == 11) {
4369  intProdBuilder_.mergeFrom(value);
4370  }
4371  intProdBuilder_.setMessage(value);
4372  }
4373  constraintCase_ = 11;
4374  return this;
4375  }
4385  if (intProdBuilder_ == null) {
4386  if (constraintCase_ == 11) {
4387  constraintCase_ = 0;
4388  constraint_ = null;
4389  onChanged();
4390  }
4391  } else {
4392  if (constraintCase_ == 11) {
4393  constraintCase_ = 0;
4394  constraint_ = null;
4395  }
4396  intProdBuilder_.clear();
4397  }
4398  return this;
4399  }
4409  return getIntProdFieldBuilder().getBuilder();
4410  }
4420  if ((constraintCase_ == 11) && (intProdBuilder_ != null)) {
4421  return intProdBuilder_.getMessageOrBuilder();
4422  } else {
4423  if (constraintCase_ == 11) {
4424  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
4425  }
4427  }
4428  }
4437  private com.google.protobuf.SingleFieldBuilderV3<
4439  getIntProdFieldBuilder() {
4440  if (intProdBuilder_ == null) {
4441  if (!(constraintCase_ == 11)) {
4443  }
4444  intProdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4446  (com.google.ortools.sat.IntegerArgumentProto) constraint_,
4447  getParentForChildren(),
4448  isClean());
4449  constraint_ = null;
4450  }
4451  constraintCase_ = 11;
4452  onChanged();;
4453  return intProdBuilder_;
4454  }
4455 
4456  private com.google.protobuf.SingleFieldBuilderV3<
4466  public boolean hasLinear() {
4467  return constraintCase_ == 12;
4468  }
4478  if (linearBuilder_ == null) {
4479  if (constraintCase_ == 12) {
4480  return (com.google.ortools.sat.LinearConstraintProto) constraint_;
4481  }
4483  } else {
4484  if (constraintCase_ == 12) {
4485  return linearBuilder_.getMessage();
4486  }
4488  }
4489  }
4499  if (linearBuilder_ == null) {
4500  if (value == null) {
4501  throw new NullPointerException();
4502  }
4503  constraint_ = value;
4504  onChanged();
4505  } else {
4506  linearBuilder_.setMessage(value);
4507  }
4508  constraintCase_ = 12;
4509  return this;
4510  }
4520  com.google.ortools.sat.LinearConstraintProto.Builder builderForValue) {
4521  if (linearBuilder_ == null) {
4522  constraint_ = builderForValue.build();
4523  onChanged();
4524  } else {
4525  linearBuilder_.setMessage(builderForValue.build());
4526  }
4527  constraintCase_ = 12;
4528  return this;
4529  }
4539  if (linearBuilder_ == null) {
4540  if (constraintCase_ == 12 &&
4543  .mergeFrom(value).buildPartial();
4544  } else {
4545  constraint_ = value;
4546  }
4547  onChanged();
4548  } else {
4549  if (constraintCase_ == 12) {
4550  linearBuilder_.mergeFrom(value);
4551  }
4552  linearBuilder_.setMessage(value);
4553  }
4554  constraintCase_ = 12;
4555  return this;
4556  }
4566  if (linearBuilder_ == null) {
4567  if (constraintCase_ == 12) {
4568  constraintCase_ = 0;
4569  constraint_ = null;
4570  onChanged();
4571  }
4572  } else {
4573  if (constraintCase_ == 12) {
4574  constraintCase_ = 0;
4575  constraint_ = null;
4576  }
4577  linearBuilder_.clear();
4578  }
4579  return this;
4580  }
4590  return getLinearFieldBuilder().getBuilder();
4591  }
4601  if ((constraintCase_ == 12) && (linearBuilder_ != null)) {
4602  return linearBuilder_.getMessageOrBuilder();
4603  } else {
4604  if (constraintCase_ == 12) {
4605  return (com.google.ortools.sat.LinearConstraintProto) constraint_;
4606  }
4608  }
4609  }
4618  private com.google.protobuf.SingleFieldBuilderV3<
4620  getLinearFieldBuilder() {
4621  if (linearBuilder_ == null) {
4622  if (!(constraintCase_ == 12)) {
4624  }
4625  linearBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4627  (com.google.ortools.sat.LinearConstraintProto) constraint_,
4628  getParentForChildren(),
4629  isClean());
4630  constraint_ = null;
4631  }
4632  constraintCase_ = 12;
4633  onChanged();;
4634  return linearBuilder_;
4635  }
4636 
4637  private com.google.protobuf.SingleFieldBuilderV3<
4646  public boolean hasAllDiff() {
4647  return constraintCase_ == 13;
4648  }
4657  if (allDiffBuilder_ == null) {
4658  if (constraintCase_ == 13) {
4659  return (com.google.ortools.sat.AllDifferentConstraintProto) constraint_;
4660  }
4662  } else {
4663  if (constraintCase_ == 13) {
4664  return allDiffBuilder_.getMessage();
4665  }
4667  }
4668  }
4677  if (allDiffBuilder_ == null) {
4678  if (value == null) {
4679  throw new NullPointerException();
4680  }
4681  constraint_ = value;
4682  onChanged();
4683  } else {
4684  allDiffBuilder_.setMessage(value);
4685  }
4686  constraintCase_ = 13;
4687  return this;
4688  }
4698  if (allDiffBuilder_ == null) {
4699  constraint_ = builderForValue.build();
4700  onChanged();
4701  } else {
4702  allDiffBuilder_.setMessage(builderForValue.build());
4703  }
4704  constraintCase_ = 13;
4705  return this;
4706  }
4715  if (allDiffBuilder_ == null) {
4716  if (constraintCase_ == 13 &&
4719  .mergeFrom(value).buildPartial();
4720  } else {
4721  constraint_ = value;
4722  }
4723  onChanged();
4724  } else {
4725  if (constraintCase_ == 13) {
4726  allDiffBuilder_.mergeFrom(value);
4727  }
4728  allDiffBuilder_.setMessage(value);
4729  }
4730  constraintCase_ = 13;
4731  return this;
4732  }
4741  if (allDiffBuilder_ == null) {
4742  if (constraintCase_ == 13) {
4743  constraintCase_ = 0;
4744  constraint_ = null;
4745  onChanged();
4746  }
4747  } else {
4748  if (constraintCase_ == 13) {
4749  constraintCase_ = 0;
4750  constraint_ = null;
4751  }
4752  allDiffBuilder_.clear();
4753  }
4754  return this;
4755  }
4764  return getAllDiffFieldBuilder().getBuilder();
4765  }
4774  if ((constraintCase_ == 13) && (allDiffBuilder_ != null)) {
4775  return allDiffBuilder_.getMessageOrBuilder();
4776  } else {
4777  if (constraintCase_ == 13) {
4778  return (com.google.ortools.sat.AllDifferentConstraintProto) constraint_;
4779  }
4781  }
4782  }
4790  private com.google.protobuf.SingleFieldBuilderV3<
4792  getAllDiffFieldBuilder() {
4793  if (allDiffBuilder_ == null) {
4794  if (!(constraintCase_ == 13)) {
4796  }
4797  allDiffBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4800  getParentForChildren(),
4801  isClean());
4802  constraint_ = null;
4803  }
4804  constraintCase_ = 13;
4805  onChanged();;
4806  return allDiffBuilder_;
4807  }
4808 
4809  private com.google.protobuf.SingleFieldBuilderV3<
4819  public boolean hasElement() {
4820  return constraintCase_ == 14;
4821  }
4831  if (elementBuilder_ == null) {
4832  if (constraintCase_ == 14) {
4833  return (com.google.ortools.sat.ElementConstraintProto) constraint_;
4834  }
4836  } else {
4837  if (constraintCase_ == 14) {
4838  return elementBuilder_.getMessage();
4839  }
4841  }
4842  }
4852  if (elementBuilder_ == null) {
4853  if (value == null) {
4854  throw new NullPointerException();
4855  }
4856  constraint_ = value;
4857  onChanged();
4858  } else {
4859  elementBuilder_.setMessage(value);
4860  }
4861  constraintCase_ = 14;
4862  return this;
4863  }
4873  com.google.ortools.sat.ElementConstraintProto.Builder builderForValue) {
4874  if (elementBuilder_ == null) {
4875  constraint_ = builderForValue.build();
4876  onChanged();
4877  } else {
4878  elementBuilder_.setMessage(builderForValue.build());
4879  }
4880  constraintCase_ = 14;
4881  return this;
4882  }
4892  if (elementBuilder_ == null) {
4893  if (constraintCase_ == 14 &&
4896  .mergeFrom(value).buildPartial();
4897  } else {
4898  constraint_ = value;
4899  }
4900  onChanged();
4901  } else {
4902  if (constraintCase_ == 14) {
4903  elementBuilder_.mergeFrom(value);
4904  }
4905  elementBuilder_.setMessage(value);
4906  }
4907  constraintCase_ = 14;
4908  return this;
4909  }
4919  if (elementBuilder_ == null) {
4920  if (constraintCase_ == 14) {
4921  constraintCase_ = 0;
4922  constraint_ = null;
4923  onChanged();
4924  }
4925  } else {
4926  if (constraintCase_ == 14) {
4927  constraintCase_ = 0;
4928  constraint_ = null;
4929  }
4930  elementBuilder_.clear();
4931  }
4932  return this;
4933  }
4943  return getElementFieldBuilder().getBuilder();
4944  }
4954  if ((constraintCase_ == 14) && (elementBuilder_ != null)) {
4955  return elementBuilder_.getMessageOrBuilder();
4956  } else {
4957  if (constraintCase_ == 14) {
4958  return (com.google.ortools.sat.ElementConstraintProto) constraint_;
4959  }
4961  }
4962  }
4971  private com.google.protobuf.SingleFieldBuilderV3<
4973  getElementFieldBuilder() {
4974  if (elementBuilder_ == null) {
4975  if (!(constraintCase_ == 14)) {
4977  }
4978  elementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4981  getParentForChildren(),
4982  isClean());
4983  constraint_ = null;
4984  }
4985  constraintCase_ = 14;
4986  onChanged();;
4987  return elementBuilder_;
4988  }
4989 
4990  private com.google.protobuf.SingleFieldBuilderV3<
5000  public boolean hasCircuit() {
5001  return constraintCase_ == 15;
5002  }
5012  if (circuitBuilder_ == null) {
5013  if (constraintCase_ == 15) {
5014  return (com.google.ortools.sat.CircuitConstraintProto) constraint_;
5015  }
5017  } else {
5018  if (constraintCase_ == 15) {
5019  return circuitBuilder_.getMessage();
5020  }
5022  }
5023  }
5033  if (circuitBuilder_ == null) {
5034  if (value == null) {
5035  throw new NullPointerException();
5036  }
5037  constraint_ = value;
5038  onChanged();
5039  } else {
5040  circuitBuilder_.setMessage(value);
5041  }
5042  constraintCase_ = 15;
5043  return this;
5044  }
5054  com.google.ortools.sat.CircuitConstraintProto.Builder builderForValue) {
5055  if (circuitBuilder_ == null) {
5056  constraint_ = builderForValue.build();
5057  onChanged();
5058  } else {
5059  circuitBuilder_.setMessage(builderForValue.build());
5060  }
5061  constraintCase_ = 15;
5062  return this;
5063  }
5073  if (circuitBuilder_ == null) {
5074  if (constraintCase_ == 15 &&
5077  .mergeFrom(value).buildPartial();
5078  } else {
5079  constraint_ = value;
5080  }
5081  onChanged();
5082  } else {
5083  if (constraintCase_ == 15) {
5084  circuitBuilder_.mergeFrom(value);
5085  }
5086  circuitBuilder_.setMessage(value);
5087  }
5088  constraintCase_ = 15;
5089  return this;
5090  }
5100  if (circuitBuilder_ == null) {
5101  if (constraintCase_ == 15) {
5102  constraintCase_ = 0;
5103  constraint_ = null;
5104  onChanged();
5105  }
5106  } else {
5107  if (constraintCase_ == 15) {
5108  constraintCase_ = 0;
5109  constraint_ = null;
5110  }
5111  circuitBuilder_.clear();
5112  }
5113  return this;
5114  }
5124  return getCircuitFieldBuilder().getBuilder();
5125  }
5135  if ((constraintCase_ == 15) && (circuitBuilder_ != null)) {
5136  return circuitBuilder_.getMessageOrBuilder();
5137  } else {
5138  if (constraintCase_ == 15) {
5139  return (com.google.ortools.sat.CircuitConstraintProto) constraint_;
5140  }
5142  }
5143  }
5152  private com.google.protobuf.SingleFieldBuilderV3<
5154  getCircuitFieldBuilder() {
5155  if (circuitBuilder_ == null) {
5156  if (!(constraintCase_ == 15)) {
5158  }
5159  circuitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5162  getParentForChildren(),
5163  isClean());
5164  constraint_ = null;
5165  }
5166  constraintCase_ = 15;
5167  onChanged();;
5168  return circuitBuilder_;
5169  }
5170 
5171  private com.google.protobuf.SingleFieldBuilderV3<
5180  public boolean hasRoutes() {
5181  return constraintCase_ == 23;
5182  }
5191  if (routesBuilder_ == null) {
5192  if (constraintCase_ == 23) {
5193  return (com.google.ortools.sat.RoutesConstraintProto) constraint_;
5194  }
5196  } else {
5197  if (constraintCase_ == 23) {
5198  return routesBuilder_.getMessage();
5199  }
5201  }
5202  }
5211  if (routesBuilder_ == null) {
5212  if (value == null) {
5213  throw new NullPointerException();
5214  }
5215  constraint_ = value;
5216  onChanged();
5217  } else {
5218  routesBuilder_.setMessage(value);
5219  }
5220  constraintCase_ = 23;
5221  return this;
5222  }
5231  com.google.ortools.sat.RoutesConstraintProto.Builder builderForValue) {
5232  if (routesBuilder_ == null) {
5233  constraint_ = builderForValue.build();
5234  onChanged();
5235  } else {
5236  routesBuilder_.setMessage(builderForValue.build());
5237  }
5238  constraintCase_ = 23;
5239  return this;
5240  }
5249  if (routesBuilder_ == null) {
5250  if (constraintCase_ == 23 &&
5253  .mergeFrom(value).buildPartial();
5254  } else {
5255  constraint_ = value;
5256  }
5257  onChanged();
5258  } else {
5259  if (constraintCase_ == 23) {
5260  routesBuilder_.mergeFrom(value);
5261  }
5262  routesBuilder_.setMessage(value);
5263  }
5264  constraintCase_ = 23;
5265  return this;
5266  }
5275  if (routesBuilder_ == null) {
5276  if (constraintCase_ == 23) {
5277  constraintCase_ = 0;
5278  constraint_ = null;
5279  onChanged();
5280  }
5281  } else {
5282  if (constraintCase_ == 23) {
5283  constraintCase_ = 0;
5284  constraint_ = null;
5285  }
5286  routesBuilder_.clear();
5287  }
5288  return this;
5289  }
5298  return getRoutesFieldBuilder().getBuilder();
5299  }
5308  if ((constraintCase_ == 23) && (routesBuilder_ != null)) {
5309  return routesBuilder_.getMessageOrBuilder();
5310  } else {
5311  if (constraintCase_ == 23) {
5312  return (com.google.ortools.sat.RoutesConstraintProto) constraint_;
5313  }
5315  }
5316  }
5324  private com.google.protobuf.SingleFieldBuilderV3<
5326  getRoutesFieldBuilder() {
5327  if (routesBuilder_ == null) {
5328  if (!(constraintCase_ == 23)) {
5330  }
5331  routesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5333  (com.google.ortools.sat.RoutesConstraintProto) constraint_,
5334  getParentForChildren(),
5335  isClean());
5336  constraint_ = null;
5337  }
5338  constraintCase_ = 23;
5339  onChanged();;
5340  return routesBuilder_;
5341  }
5342 
5343  private com.google.protobuf.SingleFieldBuilderV3<
5353  public boolean hasCircuitCovering() {
5354  return constraintCase_ == 25;
5355  }
5365  if (circuitCoveringBuilder_ == null) {
5366  if (constraintCase_ == 25) {
5367  return (com.google.ortools.sat.CircuitCoveringConstraintProto) constraint_;
5368  }
5370  } else {
5371  if (constraintCase_ == 25) {
5372  return circuitCoveringBuilder_.getMessage();
5373  }
5375  }
5376  }
5386  if (circuitCoveringBuilder_ == null) {
5387  if (value == null) {
5388  throw new NullPointerException();
5389  }
5390  constraint_ = value;
5391  onChanged();
5392  } else {
5393  circuitCoveringBuilder_.setMessage(value);
5394  }
5395  constraintCase_ = 25;
5396  return this;
5397  }
5408  if (circuitCoveringBuilder_ == null) {
5409  constraint_ = builderForValue.build();
5410  onChanged();
5411  } else {
5412  circuitCoveringBuilder_.setMessage(builderForValue.build());
5413  }
5414  constraintCase_ = 25;
5415  return this;
5416  }
5426  if (circuitCoveringBuilder_ == null) {
5427  if (constraintCase_ == 25 &&
5430  .mergeFrom(value).buildPartial();
5431  } else {
5432  constraint_ = value;
5433  }
5434  onChanged();
5435  } else {
5436  if (constraintCase_ == 25) {
5437  circuitCoveringBuilder_.mergeFrom(value);
5438  }
5439  circuitCoveringBuilder_.setMessage(value);
5440  }
5441  constraintCase_ = 25;
5442  return this;
5443  }
5453  if (circuitCoveringBuilder_ == null) {
5454  if (constraintCase_ == 25) {
5455  constraintCase_ = 0;
5456  constraint_ = null;
5457  onChanged();
5458  }
5459  } else {
5460  if (constraintCase_ == 25) {
5461  constraintCase_ = 0;
5462  constraint_ = null;
5463  }
5464  circuitCoveringBuilder_.clear();
5465  }
5466  return this;
5467  }
5477  return getCircuitCoveringFieldBuilder().getBuilder();
5478  }
5488  if ((constraintCase_ == 25) && (circuitCoveringBuilder_ != null)) {
5489  return circuitCoveringBuilder_.getMessageOrBuilder();
5490  } else {
5491  if (constraintCase_ == 25) {
5492  return (com.google.ortools.sat.CircuitCoveringConstraintProto) constraint_;
5493  }
5495  }
5496  }
5505  private com.google.protobuf.SingleFieldBuilderV3<
5507  getCircuitCoveringFieldBuilder() {
5508  if (circuitCoveringBuilder_ == null) {
5509  if (!(constraintCase_ == 25)) {
5511  }
5512  circuitCoveringBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5515  getParentForChildren(),
5516  isClean());
5517  constraint_ = null;
5518  }
5519  constraintCase_ = 25;
5520  onChanged();;
5521  return circuitCoveringBuilder_;
5522  }
5523 
5524  private com.google.protobuf.SingleFieldBuilderV3<
5534  public boolean hasTable() {
5535  return constraintCase_ == 16;
5536  }
5546  if (tableBuilder_ == null) {
5547  if (constraintCase_ == 16) {
5548  return (com.google.ortools.sat.TableConstraintProto) constraint_;
5549  }
5551  } else {
5552  if (constraintCase_ == 16) {
5553  return tableBuilder_.getMessage();
5554  }
5556  }
5557  }
5567  if (tableBuilder_ == null) {
5568  if (value == null) {
5569  throw new NullPointerException();
5570  }
5571  constraint_ = value;
5572  onChanged();
5573  } else {
5574  tableBuilder_.setMessage(value);
5575  }
5576  constraintCase_ = 16;
5577  return this;
5578  }
5588  com.google.ortools.sat.TableConstraintProto.Builder builderForValue) {
5589  if (tableBuilder_ == null) {
5590  constraint_ = builderForValue.build();
5591  onChanged();
5592  } else {
5593  tableBuilder_.setMessage(builderForValue.build());
5594  }
5595  constraintCase_ = 16;
5596  return this;
5597  }
5607  if (tableBuilder_ == null) {
5608  if (constraintCase_ == 16 &&
5611  .mergeFrom(value).buildPartial();
5612  } else {
5613  constraint_ = value;
5614  }
5615  onChanged();
5616  } else {
5617  if (constraintCase_ == 16) {
5618  tableBuilder_.mergeFrom(value);
5619  }
5620  tableBuilder_.setMessage(value);
5621  }
5622  constraintCase_ = 16;
5623  return this;
5624  }
5633  public Builder clearTable() {
5634  if (tableBuilder_ == null) {
5635  if (constraintCase_ == 16) {
5636  constraintCase_ = 0;
5637  constraint_ = null;
5638  onChanged();
5639  }
5640  } else {
5641  if (constraintCase_ == 16) {
5642  constraintCase_ = 0;
5643  constraint_ = null;
5644  }
5645  tableBuilder_.clear();
5646  }
5647  return this;
5648  }
5658  return getTableFieldBuilder().getBuilder();
5659  }
5669  if ((constraintCase_ == 16) && (tableBuilder_ != null)) {
5670  return tableBuilder_.getMessageOrBuilder();
5671  } else {
5672  if (constraintCase_ == 16) {
5673  return (com.google.ortools.sat.TableConstraintProto) constraint_;
5674  }
5676  }
5677  }
5686  private com.google.protobuf.SingleFieldBuilderV3<
5688  getTableFieldBuilder() {
5689  if (tableBuilder_ == null) {
5690  if (!(constraintCase_ == 16)) {
5692  }
5693  tableBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5695  (com.google.ortools.sat.TableConstraintProto) constraint_,
5696  getParentForChildren(),
5697  isClean());
5698  constraint_ = null;
5699  }
5700  constraintCase_ = 16;
5701  onChanged();;
5702  return tableBuilder_;
5703  }
5704 
5705  private com.google.protobuf.SingleFieldBuilderV3<
5715  public boolean hasAutomaton() {
5716  return constraintCase_ == 17;
5717  }
5727  if (automatonBuilder_ == null) {
5728  if (constraintCase_ == 17) {
5729  return (com.google.ortools.sat.AutomatonConstraintProto) constraint_;
5730  }
5732  } else {
5733  if (constraintCase_ == 17) {
5734  return automatonBuilder_.getMessage();
5735  }
5737  }
5738  }
5748  if (automatonBuilder_ == null) {
5749  if (value == null) {
5750  throw new NullPointerException();
5751  }
5752  constraint_ = value;
5753  onChanged();
5754  } else {
5755  automatonBuilder_.setMessage(value);
5756  }
5757  constraintCase_ = 17;
5758  return this;
5759  }
5770  if (automatonBuilder_ == null) {
5771  constraint_ = builderForValue.build();
5772  onChanged();
5773  } else {
5774  automatonBuilder_.setMessage(builderForValue.build());
5775  }
5776  constraintCase_ = 17;
5777  return this;
5778  }
5788  if (automatonBuilder_ == null) {
5789  if (constraintCase_ == 17 &&
5792  .mergeFrom(value).buildPartial();
5793  } else {
5794  constraint_ = value;
5795  }
5796  onChanged();
5797  } else {
5798  if (constraintCase_ == 17) {
5799  automatonBuilder_.mergeFrom(value);
5800  }
5801  automatonBuilder_.setMessage(value);
5802  }
5803  constraintCase_ = 17;
5804  return this;
5805  }
5815  if (automatonBuilder_ == null) {
5816  if (constraintCase_ == 17) {
5817  constraintCase_ = 0;
5818  constraint_ = null;
5819  onChanged();
5820  }
5821  } else {
5822  if (constraintCase_ == 17) {
5823  constraintCase_ = 0;
5824  constraint_ = null;
5825  }
5826  automatonBuilder_.clear();
5827  }
5828  return this;
5829  }
5839  return getAutomatonFieldBuilder().getBuilder();
5840  }
5850  if ((constraintCase_ == 17) && (automatonBuilder_ != null)) {
5851  return automatonBuilder_.getMessageOrBuilder();
5852  } else {
5853  if (constraintCase_ == 17) {
5854  return (com.google.ortools.sat.AutomatonConstraintProto) constraint_;
5855  }
5857  }
5858  }
5867  private com.google.protobuf.SingleFieldBuilderV3<
5869  getAutomatonFieldBuilder() {
5870  if (automatonBuilder_ == null) {
5871  if (!(constraintCase_ == 17)) {
5873  }
5874  automatonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5877  getParentForChildren(),
5878  isClean());
5879  constraint_ = null;
5880  }
5881  constraintCase_ = 17;
5882  onChanged();;
5883  return automatonBuilder_;
5884  }
5885 
5886  private com.google.protobuf.SingleFieldBuilderV3<
5896  public boolean hasInverse() {
5897  return constraintCase_ == 18;
5898  }
5908  if (inverseBuilder_ == null) {
5909  if (constraintCase_ == 18) {
5910  return (com.google.ortools.sat.InverseConstraintProto) constraint_;
5911  }
5913  } else {
5914  if (constraintCase_ == 18) {
5915  return inverseBuilder_.getMessage();
5916  }
5918  }
5919  }
5929  if (inverseBuilder_ == null) {
5930  if (value == null) {
5931  throw new NullPointerException();
5932  }
5933  constraint_ = value;
5934  onChanged();
5935  } else {
5936  inverseBuilder_.setMessage(value);
5937  }
5938  constraintCase_ = 18;
5939  return this;
5940  }
5950  com.google.ortools.sat.InverseConstraintProto.Builder builderForValue) {
5951  if (inverseBuilder_ == null) {
5952  constraint_ = builderForValue.build();
5953  onChanged();
5954  } else {
5955  inverseBuilder_.setMessage(builderForValue.build());
5956  }
5957  constraintCase_ = 18;
5958  return this;
5959  }
5969  if (inverseBuilder_ == null) {
5970  if (constraintCase_ == 18 &&
5973  .mergeFrom(value).buildPartial();
5974  } else {
5975  constraint_ = value;
5976  }
5977  onChanged();
5978  } else {
5979  if (constraintCase_ == 18) {
5980  inverseBuilder_.mergeFrom(value);
5981  }
5982  inverseBuilder_.setMessage(value);
5983  }
5984  constraintCase_ = 18;
5985  return this;
5986  }
5996  if (inverseBuilder_ == null) {
5997  if (constraintCase_ == 18) {
5998  constraintCase_ = 0;
5999  constraint_ = null;
6000  onChanged();
6001  }
6002  } else {
6003  if (constraintCase_ == 18) {
6004  constraintCase_ = 0;
6005  constraint_ = null;
6006  }
6007  inverseBuilder_.clear();
6008  }
6009  return this;
6010  }
6020  return getInverseFieldBuilder().getBuilder();
6021  }
6031  if ((constraintCase_ == 18) && (inverseBuilder_ != null)) {
6032  return inverseBuilder_.getMessageOrBuilder();
6033  } else {
6034  if (constraintCase_ == 18) {
6035  return (com.google.ortools.sat.InverseConstraintProto) constraint_;
6036  }
6038  }
6039  }
6048  private com.google.protobuf.SingleFieldBuilderV3<
6050  getInverseFieldBuilder() {
6051  if (inverseBuilder_ == null) {
6052  if (!(constraintCase_ == 18)) {
6054  }
6055  inverseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6058  getParentForChildren(),
6059  isClean());
6060  constraint_ = null;
6061  }
6062  constraintCase_ = 18;
6063  onChanged();;
6064  return inverseBuilder_;
6065  }
6066 
6067  private com.google.protobuf.SingleFieldBuilderV3<
6078  public boolean hasReservoir() {
6079  return constraintCase_ == 24;
6080  }
6091  if (reservoirBuilder_ == null) {
6092  if (constraintCase_ == 24) {
6093  return (com.google.ortools.sat.ReservoirConstraintProto) constraint_;
6094  }
6096  } else {
6097  if (constraintCase_ == 24) {
6098  return reservoirBuilder_.getMessage();
6099  }
6101  }
6102  }
6113  if (reservoirBuilder_ == null) {
6114  if (value == null) {
6115  throw new NullPointerException();
6116  }
6117  constraint_ = value;
6118  onChanged();
6119  } else {
6120  reservoirBuilder_.setMessage(value);
6121  }
6122  constraintCase_ = 24;
6123  return this;
6124  }
6136  if (reservoirBuilder_ == null) {
6137  constraint_ = builderForValue.build();
6138  onChanged();
6139  } else {
6140  reservoirBuilder_.setMessage(builderForValue.build());
6141  }
6142  constraintCase_ = 24;
6143  return this;
6144  }
6155  if (reservoirBuilder_ == null) {
6156  if (constraintCase_ == 24 &&
6159  .mergeFrom(value).buildPartial();
6160  } else {
6161  constraint_ = value;
6162  }
6163  onChanged();
6164  } else {
6165  if (constraintCase_ == 24) {
6166  reservoirBuilder_.mergeFrom(value);
6167  }
6168  reservoirBuilder_.setMessage(value);
6169  }
6170  constraintCase_ = 24;
6171  return this;
6172  }
6183  if (reservoirBuilder_ == null) {
6184  if (constraintCase_ == 24) {
6185  constraintCase_ = 0;
6186  constraint_ = null;
6187  onChanged();
6188  }
6189  } else {
6190  if (constraintCase_ == 24) {
6191  constraintCase_ = 0;
6192  constraint_ = null;
6193  }
6194  reservoirBuilder_.clear();
6195  }
6196  return this;
6197  }
6208  return getReservoirFieldBuilder().getBuilder();
6209  }
6220  if ((constraintCase_ == 24) && (reservoirBuilder_ != null)) {
6221  return reservoirBuilder_.getMessageOrBuilder();
6222  } else {
6223  if (constraintCase_ == 24) {
6224  return (com.google.ortools.sat.ReservoirConstraintProto) constraint_;
6225  }
6227  }
6228  }
6238  private com.google.protobuf.SingleFieldBuilderV3<
6240  getReservoirFieldBuilder() {
6241  if (reservoirBuilder_ == null) {
6242  if (!(constraintCase_ == 24)) {
6244  }
6245  reservoirBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6248  getParentForChildren(),
6249  isClean());
6250  constraint_ = null;
6251  }
6252  constraintCase_ = 24;
6253  onChanged();;
6254  return reservoirBuilder_;
6255  }
6256 
6257  private com.google.protobuf.SingleFieldBuilderV3<
6267  public boolean hasInterval() {
6268  return constraintCase_ == 19;
6269  }
6279  if (intervalBuilder_ == null) {
6280  if (constraintCase_ == 19) {
6281  return (com.google.ortools.sat.IntervalConstraintProto) constraint_;
6282  }
6284  } else {
6285  if (constraintCase_ == 19) {
6286  return intervalBuilder_.getMessage();
6287  }
6289  }
6290  }
6300  if (intervalBuilder_ == null) {
6301  if (value == null) {
6302  throw new NullPointerException();
6303  }
6304  constraint_ = value;
6305  onChanged();
6306  } else {
6307  intervalBuilder_.setMessage(value);
6308  }
6309  constraintCase_ = 19;
6310  return this;
6311  }
6322  if (intervalBuilder_ == null) {
6323  constraint_ = builderForValue.build();
6324  onChanged();
6325  } else {
6326  intervalBuilder_.setMessage(builderForValue.build());
6327  }
6328  constraintCase_ = 19;
6329  return this;
6330  }
6340  if (intervalBuilder_ == null) {
6341  if (constraintCase_ == 19 &&
6344  .mergeFrom(value).buildPartial();
6345  } else {
6346  constraint_ = value;
6347  }
6348  onChanged();
6349  } else {
6350  if (constraintCase_ == 19) {
6351  intervalBuilder_.mergeFrom(value);
6352  }
6353  intervalBuilder_.setMessage(value);
6354  }
6355  constraintCase_ = 19;
6356  return this;
6357  }
6367  if (intervalBuilder_ == null) {
6368  if (constraintCase_ == 19) {
6369  constraintCase_ = 0;
6370  constraint_ = null;
6371  onChanged();
6372  }
6373  } else {
6374  if (constraintCase_ == 19) {
6375  constraintCase_ = 0;
6376  constraint_ = null;
6377  }
6378  intervalBuilder_.clear();
6379  }
6380  return this;
6381  }
6391  return getIntervalFieldBuilder().getBuilder();
6392  }
6402  if ((constraintCase_ == 19) && (intervalBuilder_ != null)) {
6403  return intervalBuilder_.getMessageOrBuilder();
6404  } else {
6405  if (constraintCase_ == 19) {
6406  return (com.google.ortools.sat.IntervalConstraintProto) constraint_;
6407  }
6409  }
6410  }
6419  private com.google.protobuf.SingleFieldBuilderV3<
6421  getIntervalFieldBuilder() {
6422  if (intervalBuilder_ == null) {
6423  if (!(constraintCase_ == 19)) {
6425  }
6426  intervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6429  getParentForChildren(),
6430  isClean());
6431  constraint_ = null;
6432  }
6433  constraintCase_ = 19;
6434  onChanged();;
6435  return intervalBuilder_;
6436  }
6437 
6438  private com.google.protobuf.SingleFieldBuilderV3<
6449  public boolean hasNoOverlap() {
6450  return constraintCase_ == 20;
6451  }
6462  if (noOverlapBuilder_ == null) {
6463  if (constraintCase_ == 20) {
6464  return (com.google.ortools.sat.NoOverlapConstraintProto) constraint_;
6465  }
6467  } else {
6468  if (constraintCase_ == 20) {
6469  return noOverlapBuilder_.getMessage();
6470  }
6472  }
6473  }
6484  if (noOverlapBuilder_ == null) {
6485  if (value == null) {
6486  throw new NullPointerException();
6487  }
6488  constraint_ = value;
6489  onChanged();
6490  } else {
6491  noOverlapBuilder_.setMessage(value);
6492  }
6493  constraintCase_ = 20;
6494  return this;
6495  }
6507  if (noOverlapBuilder_ == null) {
6508  constraint_ = builderForValue.build();
6509  onChanged();
6510  } else {
6511  noOverlapBuilder_.setMessage(builderForValue.build());
6512  }
6513  constraintCase_ = 20;
6514  return this;
6515  }
6526  if (noOverlapBuilder_ == null) {
6527  if (constraintCase_ == 20 &&
6530  .mergeFrom(value).buildPartial();
6531  } else {
6532  constraint_ = value;
6533  }
6534  onChanged();
6535  } else {
6536  if (constraintCase_ == 20) {
6537  noOverlapBuilder_.mergeFrom(value);
6538  }
6539  noOverlapBuilder_.setMessage(value);
6540  }
6541  constraintCase_ = 20;
6542  return this;
6543  }
6554  if (noOverlapBuilder_ == null) {
6555  if (constraintCase_ == 20) {
6556  constraintCase_ = 0;
6557  constraint_ = null;
6558  onChanged();
6559  }
6560  } else {
6561  if (constraintCase_ == 20) {
6562  constraintCase_ = 0;
6563  constraint_ = null;
6564  }
6565  noOverlapBuilder_.clear();
6566  }
6567  return this;
6568  }
6579  return getNoOverlapFieldBuilder().getBuilder();
6580  }
6591  if ((constraintCase_ == 20) && (noOverlapBuilder_ != null)) {
6592  return noOverlapBuilder_.getMessageOrBuilder();
6593  } else {
6594  if (constraintCase_ == 20) {
6595  return (com.google.ortools.sat.NoOverlapConstraintProto) constraint_;
6596  }
6598  }
6599  }
6609  private com.google.protobuf.SingleFieldBuilderV3<
6611  getNoOverlapFieldBuilder() {
6612  if (noOverlapBuilder_ == null) {
6613  if (!(constraintCase_ == 20)) {
6615  }
6616  noOverlapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6619  getParentForChildren(),
6620  isClean());
6621  constraint_ = null;
6622  }
6623  constraintCase_ = 20;
6624  onChanged();;
6625  return noOverlapBuilder_;
6626  }
6627 
6628  private com.google.protobuf.SingleFieldBuilderV3<
6637  public boolean hasNoOverlap2D() {
6638  return constraintCase_ == 21;
6639  }
6648  if (noOverlap2DBuilder_ == null) {
6649  if (constraintCase_ == 21) {
6650  return (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_;
6651  }
6653  } else {
6654  if (constraintCase_ == 21) {
6655  return noOverlap2DBuilder_.getMessage();
6656  }
6658  }
6659  }
6668  if (noOverlap2DBuilder_ == null) {
6669  if (value == null) {
6670  throw new NullPointerException();
6671  }
6672  constraint_ = value;
6673  onChanged();
6674  } else {
6675  noOverlap2DBuilder_.setMessage(value);
6676  }
6677  constraintCase_ = 21;
6678  return this;
6679  }
6689  if (noOverlap2DBuilder_ == null) {
6690  constraint_ = builderForValue.build();
6691  onChanged();
6692  } else {
6693  noOverlap2DBuilder_.setMessage(builderForValue.build());
6694  }
6695  constraintCase_ = 21;
6696  return this;
6697  }
6706  if (noOverlap2DBuilder_ == null) {
6707  if (constraintCase_ == 21 &&
6710  .mergeFrom(value).buildPartial();
6711  } else {
6712  constraint_ = value;
6713  }
6714  onChanged();
6715  } else {
6716  if (constraintCase_ == 21) {
6717  noOverlap2DBuilder_.mergeFrom(value);
6718  }
6719  noOverlap2DBuilder_.setMessage(value);
6720  }
6721  constraintCase_ = 21;
6722  return this;
6723  }
6732  if (noOverlap2DBuilder_ == null) {
6733  if (constraintCase_ == 21) {
6734  constraintCase_ = 0;
6735  constraint_ = null;
6736  onChanged();
6737  }
6738  } else {
6739  if (constraintCase_ == 21) {
6740  constraintCase_ = 0;
6741  constraint_ = null;
6742  }
6743  noOverlap2DBuilder_.clear();
6744  }
6745  return this;
6746  }
6755  return getNoOverlap2DFieldBuilder().getBuilder();
6756  }
6765  if ((constraintCase_ == 21) && (noOverlap2DBuilder_ != null)) {
6766  return noOverlap2DBuilder_.getMessageOrBuilder();
6767  } else {
6768  if (constraintCase_ == 21) {
6769  return (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_;
6770  }
6772  }
6773  }
6781  private com.google.protobuf.SingleFieldBuilderV3<
6783  getNoOverlap2DFieldBuilder() {
6784  if (noOverlap2DBuilder_ == null) {
6785  if (!(constraintCase_ == 21)) {
6787  }
6788  noOverlap2DBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6791  getParentForChildren(),
6792  isClean());
6793  constraint_ = null;
6794  }
6795  constraintCase_ = 21;
6796  onChanged();;
6797  return noOverlap2DBuilder_;
6798  }
6799 
6800  private com.google.protobuf.SingleFieldBuilderV3<
6811  public boolean hasCumulative() {
6812  return constraintCase_ == 22;
6813  }
6824  if (cumulativeBuilder_ == null) {
6825  if (constraintCase_ == 22) {
6826  return (com.google.ortools.sat.CumulativeConstraintProto) constraint_;
6827  }
6829  } else {
6830  if (constraintCase_ == 22) {
6831  return cumulativeBuilder_.getMessage();
6832  }
6834  }
6835  }
6846  if (cumulativeBuilder_ == null) {
6847  if (value == null) {
6848  throw new NullPointerException();
6849  }
6850  constraint_ = value;
6851  onChanged();
6852  } else {
6853  cumulativeBuilder_.setMessage(value);
6854  }
6855  constraintCase_ = 22;
6856  return this;
6857  }
6869  if (cumulativeBuilder_ == null) {
6870  constraint_ = builderForValue.build();
6871  onChanged();
6872  } else {
6873  cumulativeBuilder_.setMessage(builderForValue.build());
6874  }
6875  constraintCase_ = 22;
6876  return this;
6877  }
6888  if (cumulativeBuilder_ == null) {
6889  if (constraintCase_ == 22 &&
6892  .mergeFrom(value).buildPartial();
6893  } else {
6894  constraint_ = value;
6895  }
6896  onChanged();
6897  } else {
6898  if (constraintCase_ == 22) {
6899  cumulativeBuilder_.mergeFrom(value);
6900  }
6901  cumulativeBuilder_.setMessage(value);
6902  }
6903  constraintCase_ = 22;
6904  return this;
6905  }
6916  if (cumulativeBuilder_ == null) {
6917  if (constraintCase_ == 22) {
6918  constraintCase_ = 0;
6919  constraint_ = null;
6920  onChanged();
6921  }
6922  } else {
6923  if (constraintCase_ == 22) {
6924  constraintCase_ = 0;
6925  constraint_ = null;
6926  }
6927  cumulativeBuilder_.clear();
6928  }
6929  return this;
6930  }
6941  return getCumulativeFieldBuilder().getBuilder();
6942  }
6953  if ((constraintCase_ == 22) && (cumulativeBuilder_ != null)) {
6954  return cumulativeBuilder_.getMessageOrBuilder();
6955  } else {
6956  if (constraintCase_ == 22) {
6957  return (com.google.ortools.sat.CumulativeConstraintProto) constraint_;
6958  }
6960  }
6961  }
6971  private com.google.protobuf.SingleFieldBuilderV3<
6973  getCumulativeFieldBuilder() {
6974  if (cumulativeBuilder_ == null) {
6975  if (!(constraintCase_ == 22)) {
6977  }
6978  cumulativeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6981  getParentForChildren(),
6982  isClean());
6983  constraint_ = null;
6984  }
6985  constraintCase_ = 22;
6986  onChanged();;
6987  return cumulativeBuilder_;
6988  }
6989  @java.lang.Override
6991  final com.google.protobuf.UnknownFieldSet unknownFields) {
6992  return super.setUnknownFields(unknownFields);
6993  }
6994 
6995  @java.lang.Override
6997  final com.google.protobuf.UnknownFieldSet unknownFields) {
6998  return super.mergeUnknownFields(unknownFields);
6999  }
7000 
7001 
7002  // @@protoc_insertion_point(builder_scope:operations_research.sat.ConstraintProto)
7003  }
7004 
7005  // @@protoc_insertion_point(class_scope:operations_research.sat.ConstraintProto)
7006  private static final com.google.ortools.sat.ConstraintProto DEFAULT_INSTANCE;
7007  static {
7008  DEFAULT_INSTANCE = new com.google.ortools.sat.ConstraintProto();
7009  }
7010 
7012  return DEFAULT_INSTANCE;
7013  }
7014 
7015  private static final com.google.protobuf.Parser<ConstraintProto>
7016  PARSER = new com.google.protobuf.AbstractParser<ConstraintProto>() {
7017  @java.lang.Override
7018  public ConstraintProto parsePartialFrom(
7019  com.google.protobuf.CodedInputStream input,
7020  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7021  throws com.google.protobuf.InvalidProtocolBufferException {
7022  return new ConstraintProto(input, extensionRegistry);
7023  }
7024  };
7025 
7026  public static com.google.protobuf.Parser<ConstraintProto> parser() {
7027  return PARSER;
7028  }
7029 
7030  @java.lang.Override
7031  public com.google.protobuf.Parser<ConstraintProto> getParserForType() {
7032  return PARSER;
7033  }
7034 
7035  @java.lang.Override
7037  return DEFAULT_INSTANCE;
7038  }
7039 
7040 }
7041 
Builder setAtMostOne(com.google.ortools.sat.BoolArgumentProto value)
com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntMaxOrBuilder()
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
.lang.Override com.google.ortools.sat.InverseConstraintProto buildPartial()
com.google.ortools.sat.ReservoirConstraintProto getReservoir()
Builder setBoolOr(com.google.ortools.sat.BoolArgumentProto value)
com.google.ortools.sat.CircuitCoveringConstraintProtoOrBuilder getCircuitCoveringOrBuilder()
static com.google.ortools.sat.TableConstraintProto getDefaultInstance()
com.google.ortools.sat.IntegerArgumentProto getIntProd()
com.google.ortools.sat.NoOverlapConstraintProtoOrBuilder getNoOverlapOrBuilder()
com.google.ortools.sat.IntegerArgumentProto getIntMod()
com.google.ortools.sat.CircuitConstraintProtoOrBuilder getCircuitOrBuilder()
Builder mergeRoutes(com.google.ortools.sat.RoutesConstraintProto value)
com.google.ortools.sat.NoOverlapConstraintProto getNoOverlap()
com.google.ortools.sat.IntegerArgumentProto getIntMin()
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
.lang.Override com.google.ortools.sat.CircuitConstraintProto buildPartial()
static com.google.protobuf.Parser< IntervalConstraintProto > parser()
static com.google.ortools.sat.ConstraintProto parseFrom(com.google.protobuf.ByteString data)
com.google.ortools.sat.LinearConstraintProto getLinear()
Builder setIntDiv(com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue)
Builder setElement(com.google.ortools.sat.ElementConstraintProto.Builder builderForValue)
.lang.Override com.google.ortools.sat.ConstraintProto getDefaultInstanceForType()
static com.google.ortools.sat.ConstraintProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.sat.LinearConstraintProto getDefaultInstance()
static Builder newBuilder(com.google.ortools.sat.ConstraintProto prototype)
static com.google.ortools.sat.ReservoirConstraintProto getDefaultInstance()
com.google.ortools.sat.AllDifferentConstraintProtoOrBuilder getAllDiffOrBuilder()
com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntDivOrBuilder()
.lang.Override com.google.ortools.sat.NoOverlap2DConstraintProto buildPartial()
static com.google.protobuf.Parser< CircuitCoveringConstraintProto > parser()
static com.google.protobuf.Parser< CumulativeConstraintProto > parser()
static com.google.ortools.sat.ConstraintProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.sat.NoOverlap2DConstraintProto.Builder getNoOverlap2DBuilder()
com.google.ortools.sat.TableConstraintProtoOrBuilder getTableOrBuilder()
Builder setBoolOr(com.google.ortools.sat.BoolArgumentProto.Builder builderForValue)
com.google.ortools.sat.IntervalConstraintProto getInterval()
com.google.ortools.sat.BoolArgumentProtoOrBuilder getAtMostOneOrBuilder()
Builder setAllDiff(com.google.ortools.sat.AllDifferentConstraintProto.Builder builderForValue)
com.google.ortools.sat.InverseConstraintProto getInverse()
static com.google.protobuf.Parser< InverseConstraintProto > parser()
static com.google.protobuf.Parser< CircuitConstraintProto > parser()
static com.google.ortools.sat.ConstraintProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Builder setIntProd(com.google.ortools.sat.IntegerArgumentProto value)
.lang.Override com.google.ortools.sat.AllDifferentConstraintProto buildPartial()
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
com.google.ortools.sat.BoolArgumentProto.Builder getBoolOrBuilder()
Builder mergeBoolOr(com.google.ortools.sat.BoolArgumentProto value)
.lang.Override com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
Builder mergeTable(com.google.ortools.sat.TableConstraintProto value)
.lang.Override com.google.ortools.sat.LinearConstraintProto buildPartial()
Builder setLinear(com.google.ortools.sat.LinearConstraintProto.Builder builderForValue)
com.google.ortools.sat.IntegerArgumentProto.Builder getIntDivBuilder()
Builder setBoolXor(com.google.ortools.sat.BoolArgumentProto value)
com.google.ortools.sat.LinearConstraintProto.Builder getLinearBuilder()
com.google.ortools.sat.AllDifferentConstraintProto getAllDiff()
com.google.ortools.sat.NoOverlap2DConstraintProtoOrBuilder getNoOverlap2DOrBuilder()
.lang.Override final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
Builder mergeLinear(com.google.ortools.sat.LinearConstraintProto value)
static com.google.protobuf.Parser< ConstraintProto > parser()
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
Builder setReservoir(com.google.ortools.sat.ReservoirConstraintProto value)
.lang.Override Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.sat.BoolArgumentProto getBoolXor()
.lang.Override boolean equals(final java.lang.Object obj)
java.util.List< java.lang.Integer > getEnforcementLiteralList()
static com.google.ortools.sat.ConstraintProto parseFrom(byte[] data)
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
.lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
Builder setAutomaton(com.google.ortools.sat.AutomatonConstraintProto value)
com.google.ortools.sat.InverseConstraintProtoOrBuilder getInverseOrBuilder()
Builder mergeAtMostOne(com.google.ortools.sat.BoolArgumentProto value)
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
static com.google.ortools.sat.InverseConstraintProto getDefaultInstance()
com.google.ortools.sat.CumulativeConstraintProtoOrBuilder getCumulativeOrBuilder()
.lang.Override com.google.ortools.sat.CumulativeConstraintProto buildPartial()
Builder setAllDiff(com.google.ortools.sat.AllDifferentConstraintProto value)
static com.google.ortools.sat.ElementConstraintProto getDefaultInstance()
.lang.Override final boolean isInitialized()
com.google.ortools.sat.TableConstraintProtoOrBuilder getTableOrBuilder()
.lang.Override com.google.ortools.sat.CircuitCoveringConstraintProto buildPartial()
static com.google.ortools.sat.NoOverlapConstraintProto getDefaultInstance()
.lang.Override boolean equals(final java.lang.Object obj)
static com.google.protobuf.Parser< AllDifferentConstraintProto > parser()
com.google.ortools.sat.IntervalConstraintProto getInterval()
Builder setCumulative(com.google.ortools.sat.CumulativeConstraintProto value)
com.google.ortools.sat.ElementConstraintProtoOrBuilder getElementOrBuilder()
Builder setBoolAnd(com.google.ortools.sat.BoolArgumentProto.Builder builderForValue)
.lang.Override final com.google.protobuf.UnknownFieldSet getUnknownFields()
static com.google.protobuf.Parser< BoolArgumentProto > parser()
static com.google.ortools.sat.NoOverlap2DConstraintProto getDefaultInstance()
Builder mergeBoolAnd(com.google.ortools.sat.BoolArgumentProto value)
com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntDivOrBuilder()
com.google.protobuf.ByteString getNameBytes()
com.google.ortools.sat.CircuitConstraintProtoOrBuilder getCircuitOrBuilder()
com.google.ortools.sat.ElementConstraintProtoOrBuilder getElementOrBuilder()
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
static com.google.ortools.sat.ConstraintProto parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.sat.RoutesConstraintProtoOrBuilder getRoutesOrBuilder()
static com.google.ortools.sat.AllDifferentConstraintProto getDefaultInstance()
Builder addAllEnforcementLiteral(java.lang.Iterable<? extends java.lang.Integer > values)
static com.google.protobuf.Parser< LinearConstraintProto > parser()
Builder setNoOverlap(com.google.ortools.sat.NoOverlapConstraintProto.Builder builderForValue)
.lang.Override boolean equals(final java.lang.Object obj)
Builder setIntMax(com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue)
com.google.ortools.sat.NoOverlap2DConstraintProtoOrBuilder getNoOverlap2DOrBuilder()
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
static com.google.protobuf.Parser< ReservoirConstraintProto > parser()
static com.google.ortools.sat.ConstraintProto parseFrom(java.io.InputStream input)
static com.google.ortools.sat.AutomatonConstraintProto getDefaultInstance()
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
com.google.ortools.sat.CumulativeConstraintProto getCumulative()
static com.google.ortools.sat.CumulativeConstraintProto getDefaultInstance()
Builder setCircuitCovering(com.google.ortools.sat.CircuitCoveringConstraintProto value)
com.google.ortools.sat.NoOverlap2DConstraintProto getNoOverlap2D()
com.google.ortools.sat.BoolArgumentProto getBoolOr()
com.google.ortools.sat.InverseConstraintProto.Builder getInverseBuilder()
.lang.Override boolean equals(final java.lang.Object obj)
Builder mergeElement(com.google.ortools.sat.ElementConstraintProto value)
com.google.ortools.sat.ElementConstraintProto.Builder getElementBuilder()
com.google.ortools.sat.AllDifferentConstraintProto getAllDiff()
com.google.ortools.sat.AutomatonConstraintProto getAutomaton()
.lang.Override Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolAndOrBuilder()
com.google.ortools.sat.BoolArgumentProto getBoolAnd()
com.google.ortools.sat.ReservoirConstraintProtoOrBuilder getReservoirOrBuilder()
.lang.Override com.google.ortools.sat.ElementConstraintProto buildPartial()
Builder mergeIntDiv(com.google.ortools.sat.IntegerArgumentProto value)
static com.google.protobuf.Parser< RoutesConstraintProto > parser()
.lang.Override Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
.lang.Override boolean equals(final java.lang.Object obj)
com.google.ortools.sat.IntegerArgumentProto.Builder getIntMinBuilder()
.lang.Override boolean equals(final java.lang.Object obj)
Builder mergeAutomaton(com.google.ortools.sat.AutomatonConstraintProto value)
com.google.ortools.sat.LinearConstraintProtoOrBuilder getLinearOrBuilder()
.lang.Override boolean equals(final java.lang.Object obj)
com.google.ortools.sat.AutomatonConstraintProto.Builder getAutomatonBuilder()
com.google.ortools.sat.IntegerArgumentProto.Builder getIntModBuilder()
com.google.ortools.sat.NoOverlapConstraintProto.Builder getNoOverlapBuilder()
Builder setAutomaton(com.google.ortools.sat.AutomatonConstraintProto.Builder builderForValue)
static com.google.ortools.sat.RoutesConstraintProto getDefaultInstance()
.lang.Override com.google.protobuf.Parser< ConstraintProto > getParserForType()
com.google.ortools.sat.CircuitConstraintProto getCircuit()
com.google.ortools.sat.LinearConstraintProtoOrBuilder getLinearOrBuilder()
com.google.ortools.sat.IntegerArgumentProto.Builder getIntProdBuilder()
com.google.ortools.sat.CircuitConstraintProto getCircuit()
static com.google.protobuf.Parser< TableConstraintProto > parser()
com.google.ortools.sat.AllDifferentConstraintProtoOrBuilder getAllDiffOrBuilder()
Builder mergeNoOverlap(com.google.ortools.sat.NoOverlapConstraintProto value)
com.google.ortools.sat.TableConstraintProto getTable()
com.google.ortools.sat.IntegerArgumentProto getIntMin()
Builder setEnforcementLiteral(int index, int value)
com.google.ortools.sat.IntervalConstraintProtoOrBuilder getIntervalOrBuilder()
com.google.ortools.sat.ReservoirConstraintProto.Builder getReservoirBuilder()
com.google.ortools.sat.CircuitCoveringConstraintProtoOrBuilder getCircuitCoveringOrBuilder()
com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntProdOrBuilder()
static com.google.ortools.sat.ConstraintProto parseFrom(java.nio.ByteBuffer data)
com.google.ortools.sat.IntegerArgumentProto getIntProd()
com.google.ortools.sat.BoolArgumentProto getAtMostOne()
.lang.Override com.google.ortools.sat.TableConstraintProto buildPartial()
com.google.ortools.sat.AutomatonConstraintProtoOrBuilder getAutomatonOrBuilder()
Builder mergeInverse(com.google.ortools.sat.InverseConstraintProto value)
com.google.ortools.sat.ElementConstraintProto getElement()
Builder mergeFrom(com.google.ortools.sat.ConstraintProto other)
com.google.ortools.sat.RoutesConstraintProto.Builder getRoutesBuilder()
Builder setCircuit(com.google.ortools.sat.CircuitConstraintProto.Builder builderForValue)
com.google.ortools.sat.ElementConstraintProto getElement()
Builder setInverse(com.google.ortools.sat.InverseConstraintProto value)
.lang.Override Builder newBuilderForType()
static com.google.ortools.sat.ConstraintProto parseDelimitedFrom(java.io.InputStream input)
com.google.ortools.sat.InverseConstraintProto getInverse()
com.google.ortools.sat.BoolArgumentProto getAtMostOne()
Builder setRoutes(com.google.ortools.sat.RoutesConstraintProto.Builder builderForValue)
java.util.List< java.lang.Integer > getEnforcementLiteralList()
com.google.ortools.sat.RoutesConstraintProto getRoutes()
.lang.Override boolean equals(final java.lang.Object obj)
.lang.Override boolean equals(final java.lang.Object obj)
.lang.Override boolean equals(final java.lang.Object obj)
.lang.Override boolean equals(final java.lang.Object obj)
Builder mergeNoOverlap2D(com.google.ortools.sat.NoOverlap2DConstraintProto value)
.lang.Override boolean equals(final java.lang.Object obj)
com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntMaxOrBuilder()
Builder setNoOverlap2D(com.google.ortools.sat.NoOverlap2DConstraintProto.Builder builderForValue)
Builder setIntMin(com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue)
Builder setCumulative(com.google.ortools.sat.CumulativeConstraintProto.Builder builderForValue)
com.google.ortools.sat.LinearConstraintProto getLinear()
Builder setElement(com.google.ortools.sat.ElementConstraintProto value)
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
com.google.ortools.sat.AutomatonConstraintProtoOrBuilder getAutomatonOrBuilder()
.lang.Override com.google.ortools.sat.AutomatonConstraintProto buildPartial()
com.google.ortools.sat.IntegerArgumentProto.Builder getIntMaxBuilder()
static com.google.ortools.sat.ConstraintProto parseFrom(com.google.protobuf.CodedInputStream input)
com.google.ortools.sat.CircuitConstraintProto.Builder getCircuitBuilder()
Builder setTable(com.google.ortools.sat.TableConstraintProto value)
com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolOrOrBuilder()
com.google.ortools.sat.NoOverlap2DConstraintProto getNoOverlap2D()
com.google.ortools.sat.BoolArgumentProto.Builder getBoolXorBuilder()
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
com.google.ortools.sat.RoutesConstraintProtoOrBuilder getRoutesOrBuilder()
Builder mergeAllDiff(com.google.ortools.sat.AllDifferentConstraintProto value)
.lang.Deprecated static ConstraintCase valueOf(int value)
Builder mergeCircuitCovering(com.google.ortools.sat.CircuitCoveringConstraintProto value)
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
com.google.ortools.sat.ReservoirConstraintProtoOrBuilder getReservoirOrBuilder()
com.google.ortools.sat.CircuitCoveringConstraintProto getCircuitCovering()
Builder setNameBytes(com.google.protobuf.ByteString value)
.lang.Override com.google.ortools.sat.BoolArgumentProto buildPartial()
Builder mergeIntMod(com.google.ortools.sat.IntegerArgumentProto value)
com.google.ortools.sat.ReservoirConstraintProto getReservoir()
.lang.Override Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Builder setBoolAnd(com.google.ortools.sat.BoolArgumentProto value)
.lang.Override boolean equals(final java.lang.Object obj)
Builder mergeBoolXor(com.google.ortools.sat.BoolArgumentProto value)
.lang.Override boolean equals(final java.lang.Object obj)
com.google.ortools.sat.IntegerArgumentProto getIntDiv()
Builder setIntMod(com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue)
com.google.ortools.sat.InverseConstraintProtoOrBuilder getInverseOrBuilder()
static com.google.ortools.sat.CircuitCoveringConstraintProto getDefaultInstance()
Builder mergeCumulative(com.google.ortools.sat.CumulativeConstraintProto value)
com.google.ortools.sat.IntervalConstraintProto.Builder getIntervalBuilder()
.lang.Override final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
static com.google.ortools.sat.ConstraintProto getDefaultInstance()
static com.google.protobuf.Parser< IntegerArgumentProto > parser()
Builder setIntMod(com.google.ortools.sat.IntegerArgumentProto value)
.lang.Override Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
Builder setNoOverlap(com.google.ortools.sat.NoOverlapConstraintProto value)
Builder setRoutes(com.google.ortools.sat.RoutesConstraintProto value)
static com.google.ortools.sat.IntervalConstraintProto getDefaultInstance()
Builder setIntMax(com.google.ortools.sat.IntegerArgumentProto value)
com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolAndOrBuilder()
com.google.ortools.sat.CumulativeConstraintProto getCumulative()
com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntProdOrBuilder()
Builder setReservoir(com.google.ortools.sat.ReservoirConstraintProto.Builder builderForValue)
.lang.Override com.google.ortools.sat.NoOverlapConstraintProto buildPartial()
Builder setLinear(com.google.ortools.sat.LinearConstraintProto value)
com.google.ortools.sat.RoutesConstraintProto getRoutes()
.lang.Override com.google.ortools.sat.IntervalConstraintProto buildPartial()
com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntMinOrBuilder()
com.google.ortools.sat.IntegerArgumentProto getIntMod()
static com.google.protobuf.Parser< ElementConstraintProto > parser()
Builder mergeIntProd(com.google.ortools.sat.IntegerArgumentProto value)
.lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Builder setCircuit(com.google.ortools.sat.CircuitConstraintProto value)
Builder setIntMin(com.google.ortools.sat.IntegerArgumentProto value)
com.google.ortools.sat.AutomatonConstraintProto getAutomaton()
Builder mergeCircuit(com.google.ortools.sat.CircuitConstraintProto value)
com.google.ortools.sat.NoOverlapConstraintProtoOrBuilder getNoOverlapOrBuilder()
com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntMinOrBuilder()
.lang.Override com.google.ortools.sat.IntegerArgumentProto buildPartial()
com.google.ortools.sat.BoolArgumentProto.Builder getBoolAndBuilder()
static com.google.ortools.sat.CircuitConstraintProto getDefaultInstance()
.lang.Override void writeTo(com.google.protobuf.CodedOutputStream output)
com.google.ortools.sat.CumulativeConstraintProtoOrBuilder getCumulativeOrBuilder()
static com.google.protobuf.Parser< NoOverlapConstraintProto > parser()
Builder mergeReservoir(com.google.ortools.sat.ReservoirConstraintProto value)
Builder setTable(com.google.ortools.sat.TableConstraintProto.Builder builderForValue)
com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolOrOrBuilder()
com.google.ortools.sat.CircuitCoveringConstraintProto.Builder getCircuitCoveringBuilder()
.lang.Override boolean equals(final java.lang.Object obj)
com.google.protobuf.ByteString getNameBytes()
.lang.Override Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
com.google.ortools.sat.NoOverlapConstraintProto getNoOverlap()
com.google.ortools.sat.BoolArgumentProto getBoolXor()
.lang.Override com.google.ortools.sat.ConstraintProto getDefaultInstanceForType()
com.google.ortools.sat.BoolArgumentProtoOrBuilder getAtMostOneOrBuilder()
Builder setNoOverlap2D(com.google.ortools.sat.NoOverlap2DConstraintProto value)
.lang.Override com.google.ortools.sat.RoutesConstraintProto buildPartial()
static com.google.protobuf.Parser< NoOverlap2DConstraintProto > parser()
.lang.Override com.google.ortools.sat.ConstraintProto build()
static com.google.ortools.sat.ConstraintProto parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.sat.IntegerArgumentProto getIntDiv()
Builder setInterval(com.google.ortools.sat.IntervalConstraintProto.Builder builderForValue)
com.google.ortools.sat.AllDifferentConstraintProto.Builder getAllDiffBuilder()
com.google.ortools.sat.IntervalConstraintProtoOrBuilder getIntervalOrBuilder()
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
Builder setInverse(com.google.ortools.sat.InverseConstraintProto.Builder builderForValue)
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
Builder setBoolXor(com.google.ortools.sat.BoolArgumentProto.Builder builderForValue)
Builder setInterval(com.google.ortools.sat.IntervalConstraintProto value)
Builder setIntDiv(com.google.ortools.sat.IntegerArgumentProto value)
Builder mergeInterval(com.google.ortools.sat.IntervalConstraintProto value)
static com.google.ortools.sat.ConstraintProto parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.sat.BoolArgumentProto.Builder getAtMostOneBuilder()
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
com.google.ortools.sat.CumulativeConstraintProto.Builder getCumulativeBuilder()
.lang.Override com.google.ortools.sat.ReservoirConstraintProto buildPartial()
com.google.ortools.sat.IntegerArgumentProto getIntMax()
static com.google.ortools.sat.IntegerArgumentProto getDefaultInstance()
.lang.Override Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
com.google.ortools.sat.CircuitCoveringConstraintProto getCircuitCovering()
com.google.ortools.sat.BoolArgumentProto getBoolAnd()
Builder mergeIntMin(com.google.ortools.sat.IntegerArgumentProto value)
com.google.ortools.sat.TableConstraintProto getTable()
Builder setIntProd(com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue)
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
Builder setCircuitCovering(com.google.ortools.sat.CircuitCoveringConstraintProto.Builder builderForValue)
static com.google.protobuf.Parser< AutomatonConstraintProto > parser()
com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntModOrBuilder()
com.google.ortools.sat.BoolArgumentProto getBoolOr()
Builder setAtMostOne(com.google.ortools.sat.BoolArgumentProto.Builder builderForValue)
.lang.Override com.google.ortools.sat.ConstraintProto buildPartial()
com.google.ortools.sat.TableConstraintProto.Builder getTableBuilder()
static com.google.ortools.sat.BoolArgumentProto getDefaultInstance()
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
com.google.ortools.sat.IntegerArgumentProto getIntMax()
Builder mergeIntMax(com.google.ortools.sat.IntegerArgumentProto value)
com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolXorOrBuilder()
.lang.Override boolean equals(final java.lang.Object obj)
.lang.Override boolean equals(final java.lang.Object obj)
com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolXorOrBuilder()
com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntModOrBuilder()