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  @SuppressWarnings({"unused"})
29  protected java.lang.Object newInstance(
30  UnusedPrivateParameter unused) {
31  return new ConstraintProto();
32  }
33 
34  @java.lang.Override
35  public final com.google.protobuf.UnknownFieldSet
37  return this.unknownFields;
38  }
39  private ConstraintProto(
40  com.google.protobuf.CodedInputStream input,
41  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
42  throws com.google.protobuf.InvalidProtocolBufferException {
43  this();
44  if (extensionRegistry == null) {
45  throw new java.lang.NullPointerException();
46  }
47  int mutable_bitField0_ = 0;
48  com.google.protobuf.UnknownFieldSet.Builder unknownFields =
49  com.google.protobuf.UnknownFieldSet.newBuilder();
50  try {
51  boolean done = false;
52  while (!done) {
53  int tag = input.readTag();
54  switch (tag) {
55  case 0:
56  done = true;
57  break;
58  case 10: {
59  java.lang.String s = input.readStringRequireUtf8();
60 
61  name_ = s;
62  break;
63  }
64  case 16: {
65  if (!((mutable_bitField0_ & 0x00000001) != 0)) {
66  enforcementLiteral_ = newIntList();
67  mutable_bitField0_ |= 0x00000001;
68  }
69  enforcementLiteral_.addInt(input.readInt32());
70  break;
71  }
72  case 18: {
73  int length = input.readRawVarint32();
74  int limit = input.pushLimit(length);
75  if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
76  enforcementLiteral_ = newIntList();
77  mutable_bitField0_ |= 0x00000001;
78  }
79  while (input.getBytesUntilLimit() > 0) {
80  enforcementLiteral_.addInt(input.readInt32());
81  }
82  input.popLimit(limit);
83  break;
84  }
85  case 26: {
86  com.google.ortools.sat.BoolArgumentProto.Builder subBuilder = null;
87  if (constraintCase_ == 3) {
88  subBuilder = ((com.google.ortools.sat.BoolArgumentProto) constraint_).toBuilder();
89  }
90  constraint_ =
91  input.readMessage(com.google.ortools.sat.BoolArgumentProto.parser(), extensionRegistry);
92  if (subBuilder != null) {
93  subBuilder.mergeFrom((com.google.ortools.sat.BoolArgumentProto) constraint_);
94  constraint_ = subBuilder.buildPartial();
95  }
96  constraintCase_ = 3;
97  break;
98  }
99  case 34: {
100  com.google.ortools.sat.BoolArgumentProto.Builder subBuilder = null;
101  if (constraintCase_ == 4) {
102  subBuilder = ((com.google.ortools.sat.BoolArgumentProto) constraint_).toBuilder();
103  }
104  constraint_ =
105  input.readMessage(com.google.ortools.sat.BoolArgumentProto.parser(), extensionRegistry);
106  if (subBuilder != null) {
107  subBuilder.mergeFrom((com.google.ortools.sat.BoolArgumentProto) constraint_);
108  constraint_ = subBuilder.buildPartial();
109  }
110  constraintCase_ = 4;
111  break;
112  }
113  case 42: {
114  com.google.ortools.sat.BoolArgumentProto.Builder subBuilder = null;
115  if (constraintCase_ == 5) {
116  subBuilder = ((com.google.ortools.sat.BoolArgumentProto) constraint_).toBuilder();
117  }
118  constraint_ =
119  input.readMessage(com.google.ortools.sat.BoolArgumentProto.parser(), extensionRegistry);
120  if (subBuilder != null) {
121  subBuilder.mergeFrom((com.google.ortools.sat.BoolArgumentProto) constraint_);
122  constraint_ = subBuilder.buildPartial();
123  }
124  constraintCase_ = 5;
125  break;
126  }
127  case 58: {
128  com.google.ortools.sat.IntegerArgumentProto.Builder subBuilder = null;
129  if (constraintCase_ == 7) {
130  subBuilder = ((com.google.ortools.sat.IntegerArgumentProto) constraint_).toBuilder();
131  }
132  constraint_ =
133  input.readMessage(com.google.ortools.sat.IntegerArgumentProto.parser(), extensionRegistry);
134  if (subBuilder != null) {
135  subBuilder.mergeFrom((com.google.ortools.sat.IntegerArgumentProto) constraint_);
136  constraint_ = subBuilder.buildPartial();
137  }
138  constraintCase_ = 7;
139  break;
140  }
141  case 66: {
142  com.google.ortools.sat.IntegerArgumentProto.Builder subBuilder = null;
143  if (constraintCase_ == 8) {
144  subBuilder = ((com.google.ortools.sat.IntegerArgumentProto) constraint_).toBuilder();
145  }
146  constraint_ =
147  input.readMessage(com.google.ortools.sat.IntegerArgumentProto.parser(), extensionRegistry);
148  if (subBuilder != null) {
149  subBuilder.mergeFrom((com.google.ortools.sat.IntegerArgumentProto) constraint_);
150  constraint_ = subBuilder.buildPartial();
151  }
152  constraintCase_ = 8;
153  break;
154  }
155  case 74: {
156  com.google.ortools.sat.IntegerArgumentProto.Builder subBuilder = null;
157  if (constraintCase_ == 9) {
158  subBuilder = ((com.google.ortools.sat.IntegerArgumentProto) constraint_).toBuilder();
159  }
160  constraint_ =
161  input.readMessage(com.google.ortools.sat.IntegerArgumentProto.parser(), extensionRegistry);
162  if (subBuilder != null) {
163  subBuilder.mergeFrom((com.google.ortools.sat.IntegerArgumentProto) constraint_);
164  constraint_ = subBuilder.buildPartial();
165  }
166  constraintCase_ = 9;
167  break;
168  }
169  case 82: {
170  com.google.ortools.sat.IntegerArgumentProto.Builder subBuilder = null;
171  if (constraintCase_ == 10) {
172  subBuilder = ((com.google.ortools.sat.IntegerArgumentProto) constraint_).toBuilder();
173  }
174  constraint_ =
175  input.readMessage(com.google.ortools.sat.IntegerArgumentProto.parser(), extensionRegistry);
176  if (subBuilder != null) {
177  subBuilder.mergeFrom((com.google.ortools.sat.IntegerArgumentProto) constraint_);
178  constraint_ = subBuilder.buildPartial();
179  }
180  constraintCase_ = 10;
181  break;
182  }
183  case 90: {
184  com.google.ortools.sat.IntegerArgumentProto.Builder subBuilder = null;
185  if (constraintCase_ == 11) {
186  subBuilder = ((com.google.ortools.sat.IntegerArgumentProto) constraint_).toBuilder();
187  }
188  constraint_ =
189  input.readMessage(com.google.ortools.sat.IntegerArgumentProto.parser(), extensionRegistry);
190  if (subBuilder != null) {
191  subBuilder.mergeFrom((com.google.ortools.sat.IntegerArgumentProto) constraint_);
192  constraint_ = subBuilder.buildPartial();
193  }
194  constraintCase_ = 11;
195  break;
196  }
197  case 98: {
199  if (constraintCase_ == 12) {
200  subBuilder = ((com.google.ortools.sat.LinearConstraintProto) constraint_).toBuilder();
201  }
202  constraint_ =
203  input.readMessage(com.google.ortools.sat.LinearConstraintProto.parser(), extensionRegistry);
204  if (subBuilder != null) {
205  subBuilder.mergeFrom((com.google.ortools.sat.LinearConstraintProto) constraint_);
206  constraint_ = subBuilder.buildPartial();
207  }
208  constraintCase_ = 12;
209  break;
210  }
211  case 106: {
213  if (constraintCase_ == 13) {
214  subBuilder = ((com.google.ortools.sat.AllDifferentConstraintProto) constraint_).toBuilder();
215  }
216  constraint_ =
217  input.readMessage(com.google.ortools.sat.AllDifferentConstraintProto.parser(), extensionRegistry);
218  if (subBuilder != null) {
219  subBuilder.mergeFrom((com.google.ortools.sat.AllDifferentConstraintProto) constraint_);
220  constraint_ = subBuilder.buildPartial();
221  }
222  constraintCase_ = 13;
223  break;
224  }
225  case 114: {
227  if (constraintCase_ == 14) {
228  subBuilder = ((com.google.ortools.sat.ElementConstraintProto) constraint_).toBuilder();
229  }
230  constraint_ =
231  input.readMessage(com.google.ortools.sat.ElementConstraintProto.parser(), extensionRegistry);
232  if (subBuilder != null) {
233  subBuilder.mergeFrom((com.google.ortools.sat.ElementConstraintProto) constraint_);
234  constraint_ = subBuilder.buildPartial();
235  }
236  constraintCase_ = 14;
237  break;
238  }
239  case 122: {
241  if (constraintCase_ == 15) {
242  subBuilder = ((com.google.ortools.sat.CircuitConstraintProto) constraint_).toBuilder();
243  }
244  constraint_ =
245  input.readMessage(com.google.ortools.sat.CircuitConstraintProto.parser(), extensionRegistry);
246  if (subBuilder != null) {
247  subBuilder.mergeFrom((com.google.ortools.sat.CircuitConstraintProto) constraint_);
248  constraint_ = subBuilder.buildPartial();
249  }
250  constraintCase_ = 15;
251  break;
252  }
253  case 130: {
254  com.google.ortools.sat.TableConstraintProto.Builder subBuilder = null;
255  if (constraintCase_ == 16) {
256  subBuilder = ((com.google.ortools.sat.TableConstraintProto) constraint_).toBuilder();
257  }
258  constraint_ =
259  input.readMessage(com.google.ortools.sat.TableConstraintProto.parser(), extensionRegistry);
260  if (subBuilder != null) {
261  subBuilder.mergeFrom((com.google.ortools.sat.TableConstraintProto) constraint_);
262  constraint_ = subBuilder.buildPartial();
263  }
264  constraintCase_ = 16;
265  break;
266  }
267  case 138: {
269  if (constraintCase_ == 17) {
270  subBuilder = ((com.google.ortools.sat.AutomatonConstraintProto) constraint_).toBuilder();
271  }
272  constraint_ =
273  input.readMessage(com.google.ortools.sat.AutomatonConstraintProto.parser(), extensionRegistry);
274  if (subBuilder != null) {
275  subBuilder.mergeFrom((com.google.ortools.sat.AutomatonConstraintProto) constraint_);
276  constraint_ = subBuilder.buildPartial();
277  }
278  constraintCase_ = 17;
279  break;
280  }
281  case 146: {
283  if (constraintCase_ == 18) {
284  subBuilder = ((com.google.ortools.sat.InverseConstraintProto) constraint_).toBuilder();
285  }
286  constraint_ =
287  input.readMessage(com.google.ortools.sat.InverseConstraintProto.parser(), extensionRegistry);
288  if (subBuilder != null) {
289  subBuilder.mergeFrom((com.google.ortools.sat.InverseConstraintProto) constraint_);
290  constraint_ = subBuilder.buildPartial();
291  }
292  constraintCase_ = 18;
293  break;
294  }
295  case 154: {
297  if (constraintCase_ == 19) {
298  subBuilder = ((com.google.ortools.sat.IntervalConstraintProto) constraint_).toBuilder();
299  }
300  constraint_ =
301  input.readMessage(com.google.ortools.sat.IntervalConstraintProto.parser(), extensionRegistry);
302  if (subBuilder != null) {
303  subBuilder.mergeFrom((com.google.ortools.sat.IntervalConstraintProto) constraint_);
304  constraint_ = subBuilder.buildPartial();
305  }
306  constraintCase_ = 19;
307  break;
308  }
309  case 162: {
311  if (constraintCase_ == 20) {
312  subBuilder = ((com.google.ortools.sat.NoOverlapConstraintProto) constraint_).toBuilder();
313  }
314  constraint_ =
315  input.readMessage(com.google.ortools.sat.NoOverlapConstraintProto.parser(), extensionRegistry);
316  if (subBuilder != null) {
317  subBuilder.mergeFrom((com.google.ortools.sat.NoOverlapConstraintProto) constraint_);
318  constraint_ = subBuilder.buildPartial();
319  }
320  constraintCase_ = 20;
321  break;
322  }
323  case 170: {
325  if (constraintCase_ == 21) {
326  subBuilder = ((com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_).toBuilder();
327  }
328  constraint_ =
329  input.readMessage(com.google.ortools.sat.NoOverlap2DConstraintProto.parser(), extensionRegistry);
330  if (subBuilder != null) {
331  subBuilder.mergeFrom((com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_);
332  constraint_ = subBuilder.buildPartial();
333  }
334  constraintCase_ = 21;
335  break;
336  }
337  case 178: {
339  if (constraintCase_ == 22) {
340  subBuilder = ((com.google.ortools.sat.CumulativeConstraintProto) constraint_).toBuilder();
341  }
342  constraint_ =
343  input.readMessage(com.google.ortools.sat.CumulativeConstraintProto.parser(), extensionRegistry);
344  if (subBuilder != null) {
345  subBuilder.mergeFrom((com.google.ortools.sat.CumulativeConstraintProto) constraint_);
346  constraint_ = subBuilder.buildPartial();
347  }
348  constraintCase_ = 22;
349  break;
350  }
351  case 186: {
353  if (constraintCase_ == 23) {
354  subBuilder = ((com.google.ortools.sat.RoutesConstraintProto) constraint_).toBuilder();
355  }
356  constraint_ =
357  input.readMessage(com.google.ortools.sat.RoutesConstraintProto.parser(), extensionRegistry);
358  if (subBuilder != null) {
359  subBuilder.mergeFrom((com.google.ortools.sat.RoutesConstraintProto) constraint_);
360  constraint_ = subBuilder.buildPartial();
361  }
362  constraintCase_ = 23;
363  break;
364  }
365  case 194: {
367  if (constraintCase_ == 24) {
368  subBuilder = ((com.google.ortools.sat.ReservoirConstraintProto) constraint_).toBuilder();
369  }
370  constraint_ =
371  input.readMessage(com.google.ortools.sat.ReservoirConstraintProto.parser(), extensionRegistry);
372  if (subBuilder != null) {
373  subBuilder.mergeFrom((com.google.ortools.sat.ReservoirConstraintProto) constraint_);
374  constraint_ = subBuilder.buildPartial();
375  }
376  constraintCase_ = 24;
377  break;
378  }
379  case 202: {
381  if (constraintCase_ == 25) {
382  subBuilder = ((com.google.ortools.sat.CircuitCoveringConstraintProto) constraint_).toBuilder();
383  }
384  constraint_ =
385  input.readMessage(com.google.ortools.sat.CircuitCoveringConstraintProto.parser(), extensionRegistry);
386  if (subBuilder != null) {
387  subBuilder.mergeFrom((com.google.ortools.sat.CircuitCoveringConstraintProto) constraint_);
388  constraint_ = subBuilder.buildPartial();
389  }
390  constraintCase_ = 25;
391  break;
392  }
393  case 210: {
394  com.google.ortools.sat.BoolArgumentProto.Builder subBuilder = null;
395  if (constraintCase_ == 26) {
396  subBuilder = ((com.google.ortools.sat.BoolArgumentProto) constraint_).toBuilder();
397  }
398  constraint_ =
399  input.readMessage(com.google.ortools.sat.BoolArgumentProto.parser(), extensionRegistry);
400  if (subBuilder != null) {
401  subBuilder.mergeFrom((com.google.ortools.sat.BoolArgumentProto) constraint_);
402  constraint_ = subBuilder.buildPartial();
403  }
404  constraintCase_ = 26;
405  break;
406  }
407  default: {
408  if (!parseUnknownField(
409  input, unknownFields, extensionRegistry, tag)) {
410  done = true;
411  }
412  break;
413  }
414  }
415  }
416  } catch (com.google.protobuf.InvalidProtocolBufferException e) {
417  throw e.setUnfinishedMessage(this);
418  } catch (java.io.IOException e) {
419  throw new com.google.protobuf.InvalidProtocolBufferException(
420  e).setUnfinishedMessage(this);
421  } finally {
422  if (((mutable_bitField0_ & 0x00000001) != 0)) {
423  enforcementLiteral_.makeImmutable(); // C
424  }
425  this.unknownFields = unknownFields.build();
426  makeExtensionsImmutable();
427  }
428  }
429  public static final com.google.protobuf.Descriptors.Descriptor
431  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_descriptor;
432  }
433 
434  @java.lang.Override
435  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
437  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_fieldAccessorTable
438  .ensureFieldAccessorsInitialized(
440  }
441 
442  private int constraintCase_ = 0;
443  private java.lang.Object constraint_;
444  public enum ConstraintCase
445  implements com.google.protobuf.Internal.EnumLite {
453  INT_MIN(10),
454  INT_PROD(11),
455  LINEAR(12),
456  ALL_DIFF(13),
457  ELEMENT(14),
458  CIRCUIT(15),
459  ROUTES(23),
461  TABLE(16),
463  INVERSE(18),
465  INTERVAL(19),
470  private final int value;
471  private ConstraintCase(int value) {
472  this.value = value;
473  }
477  @java.lang.Deprecated
478  public static ConstraintCase valueOf(int value) {
479  return forNumber(value);
480  }
481 
482  public static ConstraintCase forNumber(int value) {
483  switch (value) {
484  case 3: return BOOL_OR;
485  case 4: return BOOL_AND;
486  case 26: return AT_MOST_ONE;
487  case 5: return BOOL_XOR;
488  case 7: return INT_DIV;
489  case 8: return INT_MOD;
490  case 9: return INT_MAX;
491  case 10: return INT_MIN;
492  case 11: return INT_PROD;
493  case 12: return LINEAR;
494  case 13: return ALL_DIFF;
495  case 14: return ELEMENT;
496  case 15: return CIRCUIT;
497  case 23: return ROUTES;
498  case 25: return CIRCUIT_COVERING;
499  case 16: return TABLE;
500  case 17: return AUTOMATON;
501  case 18: return INVERSE;
502  case 24: return RESERVOIR;
503  case 19: return INTERVAL;
504  case 20: return NO_OVERLAP;
505  case 21: return NO_OVERLAP_2D;
506  case 22: return CUMULATIVE;
507  case 0: return CONSTRAINT_NOT_SET;
508  default: return null;
509  }
510  }
511  public int getNumber() {
512  return this.value;
513  }
514  };
515 
516  public ConstraintCase
518  return ConstraintCase.forNumber(
519  constraintCase_);
520  }
521 
522  public static final int NAME_FIELD_NUMBER = 1;
523  private volatile java.lang.Object name_;
531  public java.lang.String getName() {
532  java.lang.Object ref = name_;
533  if (ref instanceof java.lang.String) {
534  return (java.lang.String) ref;
535  } else {
536  com.google.protobuf.ByteString bs =
537  (com.google.protobuf.ByteString) ref;
538  java.lang.String s = bs.toStringUtf8();
539  name_ = s;
540  return s;
541  }
542  }
550  public com.google.protobuf.ByteString
552  java.lang.Object ref = name_;
553  if (ref instanceof java.lang.String) {
554  com.google.protobuf.ByteString b =
555  com.google.protobuf.ByteString.copyFromUtf8(
556  (java.lang.String) ref);
557  name_ = b;
558  return b;
559  } else {
560  return (com.google.protobuf.ByteString) ref;
561  }
562  }
563 
564  public static final int ENFORCEMENT_LITERAL_FIELD_NUMBER = 2;
565  private com.google.protobuf.Internal.IntList enforcementLiteral_;
584  public java.util.List<java.lang.Integer>
586  return enforcementLiteral_;
587  }
607  return enforcementLiteral_.size();
608  }
627  public int getEnforcementLiteral(int index) {
628  return enforcementLiteral_.getInt(index);
629  }
630  private int enforcementLiteralMemoizedSerializedSize = -1;
631 
632  public static final int BOOL_OR_FIELD_NUMBER = 3;
640  public boolean hasBoolOr() {
641  return constraintCase_ == 3;
642  }
651  if (constraintCase_ == 3) {
652  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
653  }
655  }
664  if (constraintCase_ == 3) {
665  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
666  }
668  }
669 
670  public static final int BOOL_AND_FIELD_NUMBER = 4;
681  public boolean hasBoolAnd() {
682  return constraintCase_ == 4;
683  }
695  if (constraintCase_ == 4) {
696  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
697  }
699  }
711  if (constraintCase_ == 4) {
712  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
713  }
715  }
716 
717  public static final int AT_MOST_ONE_FIELD_NUMBER = 26;
729  public boolean hasAtMostOne() {
730  return constraintCase_ == 26;
731  }
744  if (constraintCase_ == 26) {
745  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
746  }
748  }
761  if (constraintCase_ == 26) {
762  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
763  }
765  }
766 
767  public static final int BOOL_XOR_FIELD_NUMBER = 5;
775  public boolean hasBoolXor() {
776  return constraintCase_ == 5;
777  }
786  if (constraintCase_ == 5) {
787  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
788  }
790  }
799  if (constraintCase_ == 5) {
800  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
801  }
803  }
804 
805  public static final int INT_DIV_FIELD_NUMBER = 7;
813  public boolean hasIntDiv() {
814  return constraintCase_ == 7;
815  }
824  if (constraintCase_ == 7) {
825  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
826  }
828  }
837  if (constraintCase_ == 7) {
838  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
839  }
841  }
842 
843  public static final int INT_MOD_FIELD_NUMBER = 8;
851  public boolean hasIntMod() {
852  return constraintCase_ == 8;
853  }
862  if (constraintCase_ == 8) {
863  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
864  }
866  }
875  if (constraintCase_ == 8) {
876  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
877  }
879  }
880 
881  public static final int INT_MAX_FIELD_NUMBER = 9;
890  public boolean hasIntMax() {
891  return constraintCase_ == 9;
892  }
902  if (constraintCase_ == 9) {
903  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
904  }
906  }
916  if (constraintCase_ == 9) {
917  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
918  }
920  }
921 
922  public static final int INT_MIN_FIELD_NUMBER = 10;
931  public boolean hasIntMin() {
932  return constraintCase_ == 10;
933  }
943  if (constraintCase_ == 10) {
944  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
945  }
947  }
957  if (constraintCase_ == 10) {
958  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
959  }
961  }
962 
963  public static final int INT_PROD_FIELD_NUMBER = 11;
972  public boolean hasIntProd() {
973  return constraintCase_ == 11;
974  }
984  if (constraintCase_ == 11) {
985  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
986  }
988  }
998  if (constraintCase_ == 11) {
999  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
1000  }
1002  }
1003 
1004  public static final int LINEAR_FIELD_NUMBER = 12;
1013  public boolean hasLinear() {
1014  return constraintCase_ == 12;
1015  }
1025  if (constraintCase_ == 12) {
1026  return (com.google.ortools.sat.LinearConstraintProto) constraint_;
1027  }
1029  }
1039  if (constraintCase_ == 12) {
1040  return (com.google.ortools.sat.LinearConstraintProto) constraint_;
1041  }
1043  }
1044 
1045  public static final int ALL_DIFF_FIELD_NUMBER = 13;
1053  public boolean hasAllDiff() {
1054  return constraintCase_ == 13;
1055  }
1064  if (constraintCase_ == 13) {
1065  return (com.google.ortools.sat.AllDifferentConstraintProto) constraint_;
1066  }
1068  }
1077  if (constraintCase_ == 13) {
1078  return (com.google.ortools.sat.AllDifferentConstraintProto) constraint_;
1079  }
1081  }
1082 
1083  public static final int ELEMENT_FIELD_NUMBER = 14;
1092  public boolean hasElement() {
1093  return constraintCase_ == 14;
1094  }
1104  if (constraintCase_ == 14) {
1105  return (com.google.ortools.sat.ElementConstraintProto) constraint_;
1106  }
1108  }
1118  if (constraintCase_ == 14) {
1119  return (com.google.ortools.sat.ElementConstraintProto) constraint_;
1120  }
1122  }
1123 
1124  public static final int CIRCUIT_FIELD_NUMBER = 15;
1133  public boolean hasCircuit() {
1134  return constraintCase_ == 15;
1135  }
1145  if (constraintCase_ == 15) {
1146  return (com.google.ortools.sat.CircuitConstraintProto) constraint_;
1147  }
1149  }
1159  if (constraintCase_ == 15) {
1160  return (com.google.ortools.sat.CircuitConstraintProto) constraint_;
1161  }
1163  }
1164 
1165  public static final int ROUTES_FIELD_NUMBER = 23;
1173  public boolean hasRoutes() {
1174  return constraintCase_ == 23;
1175  }
1184  if (constraintCase_ == 23) {
1185  return (com.google.ortools.sat.RoutesConstraintProto) constraint_;
1186  }
1188  }
1197  if (constraintCase_ == 23) {
1198  return (com.google.ortools.sat.RoutesConstraintProto) constraint_;
1199  }
1201  }
1202 
1203  public static final int CIRCUIT_COVERING_FIELD_NUMBER = 25;
1212  public boolean hasCircuitCovering() {
1213  return constraintCase_ == 25;
1214  }
1224  if (constraintCase_ == 25) {
1225  return (com.google.ortools.sat.CircuitCoveringConstraintProto) constraint_;
1226  }
1228  }
1238  if (constraintCase_ == 25) {
1239  return (com.google.ortools.sat.CircuitCoveringConstraintProto) constraint_;
1240  }
1242  }
1243 
1244  public static final int TABLE_FIELD_NUMBER = 16;
1253  public boolean hasTable() {
1254  return constraintCase_ == 16;
1255  }
1265  if (constraintCase_ == 16) {
1266  return (com.google.ortools.sat.TableConstraintProto) constraint_;
1267  }
1269  }
1279  if (constraintCase_ == 16) {
1280  return (com.google.ortools.sat.TableConstraintProto) constraint_;
1281  }
1283  }
1284 
1285  public static final int AUTOMATON_FIELD_NUMBER = 17;
1294  public boolean hasAutomaton() {
1295  return constraintCase_ == 17;
1296  }
1306  if (constraintCase_ == 17) {
1307  return (com.google.ortools.sat.AutomatonConstraintProto) constraint_;
1308  }
1310  }
1320  if (constraintCase_ == 17) {
1321  return (com.google.ortools.sat.AutomatonConstraintProto) constraint_;
1322  }
1324  }
1325 
1326  public static final int INVERSE_FIELD_NUMBER = 18;
1335  public boolean hasInverse() {
1336  return constraintCase_ == 18;
1337  }
1347  if (constraintCase_ == 18) {
1348  return (com.google.ortools.sat.InverseConstraintProto) constraint_;
1349  }
1351  }
1361  if (constraintCase_ == 18) {
1362  return (com.google.ortools.sat.InverseConstraintProto) constraint_;
1363  }
1365  }
1366 
1367  public static final int RESERVOIR_FIELD_NUMBER = 24;
1377  public boolean hasReservoir() {
1378  return constraintCase_ == 24;
1379  }
1390  if (constraintCase_ == 24) {
1391  return (com.google.ortools.sat.ReservoirConstraintProto) constraint_;
1392  }
1394  }
1405  if (constraintCase_ == 24) {
1406  return (com.google.ortools.sat.ReservoirConstraintProto) constraint_;
1407  }
1409  }
1410 
1411  public static final int INTERVAL_FIELD_NUMBER = 19;
1420  public boolean hasInterval() {
1421  return constraintCase_ == 19;
1422  }
1432  if (constraintCase_ == 19) {
1433  return (com.google.ortools.sat.IntervalConstraintProto) constraint_;
1434  }
1436  }
1446  if (constraintCase_ == 19) {
1447  return (com.google.ortools.sat.IntervalConstraintProto) constraint_;
1448  }
1450  }
1451 
1452  public static final int NO_OVERLAP_FIELD_NUMBER = 20;
1462  public boolean hasNoOverlap() {
1463  return constraintCase_ == 20;
1464  }
1475  if (constraintCase_ == 20) {
1476  return (com.google.ortools.sat.NoOverlapConstraintProto) constraint_;
1477  }
1479  }
1490  if (constraintCase_ == 20) {
1491  return (com.google.ortools.sat.NoOverlapConstraintProto) constraint_;
1492  }
1494  }
1495 
1496  public static final int NO_OVERLAP_2D_FIELD_NUMBER = 21;
1504  public boolean hasNoOverlap2D() {
1505  return constraintCase_ == 21;
1506  }
1515  if (constraintCase_ == 21) {
1516  return (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_;
1517  }
1519  }
1528  if (constraintCase_ == 21) {
1529  return (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_;
1530  }
1532  }
1533 
1534  public static final int CUMULATIVE_FIELD_NUMBER = 22;
1544  public boolean hasCumulative() {
1545  return constraintCase_ == 22;
1546  }
1557  if (constraintCase_ == 22) {
1558  return (com.google.ortools.sat.CumulativeConstraintProto) constraint_;
1559  }
1561  }
1572  if (constraintCase_ == 22) {
1573  return (com.google.ortools.sat.CumulativeConstraintProto) constraint_;
1574  }
1576  }
1577 
1578  private byte memoizedIsInitialized = -1;
1579  @java.lang.Override
1580  public final boolean isInitialized() {
1581  byte isInitialized = memoizedIsInitialized;
1582  if (isInitialized == 1) return true;
1583  if (isInitialized == 0) return false;
1584 
1585  memoizedIsInitialized = 1;
1586  return true;
1587  }
1588 
1589  @java.lang.Override
1590  public void writeTo(com.google.protobuf.CodedOutputStream output)
1591  throws java.io.IOException {
1593  if (!getNameBytes().isEmpty()) {
1594  com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
1595  }
1596  if (getEnforcementLiteralList().size() > 0) {
1597  output.writeUInt32NoTag(18);
1598  output.writeUInt32NoTag(enforcementLiteralMemoizedSerializedSize);
1599  }
1600  for (int i = 0; i < enforcementLiteral_.size(); i++) {
1601  output.writeInt32NoTag(enforcementLiteral_.getInt(i));
1602  }
1603  if (constraintCase_ == 3) {
1604  output.writeMessage(3, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1605  }
1606  if (constraintCase_ == 4) {
1607  output.writeMessage(4, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1608  }
1609  if (constraintCase_ == 5) {
1610  output.writeMessage(5, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1611  }
1612  if (constraintCase_ == 7) {
1613  output.writeMessage(7, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1614  }
1615  if (constraintCase_ == 8) {
1616  output.writeMessage(8, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1617  }
1618  if (constraintCase_ == 9) {
1619  output.writeMessage(9, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1620  }
1621  if (constraintCase_ == 10) {
1622  output.writeMessage(10, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1623  }
1624  if (constraintCase_ == 11) {
1625  output.writeMessage(11, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1626  }
1627  if (constraintCase_ == 12) {
1628  output.writeMessage(12, (com.google.ortools.sat.LinearConstraintProto) constraint_);
1629  }
1630  if (constraintCase_ == 13) {
1631  output.writeMessage(13, (com.google.ortools.sat.AllDifferentConstraintProto) constraint_);
1632  }
1633  if (constraintCase_ == 14) {
1634  output.writeMessage(14, (com.google.ortools.sat.ElementConstraintProto) constraint_);
1635  }
1636  if (constraintCase_ == 15) {
1637  output.writeMessage(15, (com.google.ortools.sat.CircuitConstraintProto) constraint_);
1638  }
1639  if (constraintCase_ == 16) {
1640  output.writeMessage(16, (com.google.ortools.sat.TableConstraintProto) constraint_);
1641  }
1642  if (constraintCase_ == 17) {
1643  output.writeMessage(17, (com.google.ortools.sat.AutomatonConstraintProto) constraint_);
1644  }
1645  if (constraintCase_ == 18) {
1646  output.writeMessage(18, (com.google.ortools.sat.InverseConstraintProto) constraint_);
1647  }
1648  if (constraintCase_ == 19) {
1649  output.writeMessage(19, (com.google.ortools.sat.IntervalConstraintProto) constraint_);
1650  }
1651  if (constraintCase_ == 20) {
1652  output.writeMessage(20, (com.google.ortools.sat.NoOverlapConstraintProto) constraint_);
1653  }
1654  if (constraintCase_ == 21) {
1655  output.writeMessage(21, (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_);
1656  }
1657  if (constraintCase_ == 22) {
1658  output.writeMessage(22, (com.google.ortools.sat.CumulativeConstraintProto) constraint_);
1659  }
1660  if (constraintCase_ == 23) {
1661  output.writeMessage(23, (com.google.ortools.sat.RoutesConstraintProto) constraint_);
1662  }
1663  if (constraintCase_ == 24) {
1664  output.writeMessage(24, (com.google.ortools.sat.ReservoirConstraintProto) constraint_);
1665  }
1666  if (constraintCase_ == 25) {
1667  output.writeMessage(25, (com.google.ortools.sat.CircuitCoveringConstraintProto) constraint_);
1668  }
1669  if (constraintCase_ == 26) {
1670  output.writeMessage(26, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1671  }
1672  unknownFields.writeTo(output);
1673  }
1674 
1675  @java.lang.Override
1676  public int getSerializedSize() {
1677  int size = memoizedSize;
1678  if (size != -1) return size;
1679 
1680  size = 0;
1681  if (!getNameBytes().isEmpty()) {
1682  size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
1683  }
1684  {
1685  int dataSize = 0;
1686  for (int i = 0; i < enforcementLiteral_.size(); i++) {
1687  dataSize += com.google.protobuf.CodedOutputStream
1688  .computeInt32SizeNoTag(enforcementLiteral_.getInt(i));
1689  }
1690  size += dataSize;
1691  if (!getEnforcementLiteralList().isEmpty()) {
1692  size += 1;
1693  size += com.google.protobuf.CodedOutputStream
1694  .computeInt32SizeNoTag(dataSize);
1695  }
1696  enforcementLiteralMemoizedSerializedSize = dataSize;
1697  }
1698  if (constraintCase_ == 3) {
1699  size += com.google.protobuf.CodedOutputStream
1700  .computeMessageSize(3, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1701  }
1702  if (constraintCase_ == 4) {
1703  size += com.google.protobuf.CodedOutputStream
1704  .computeMessageSize(4, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1705  }
1706  if (constraintCase_ == 5) {
1707  size += com.google.protobuf.CodedOutputStream
1708  .computeMessageSize(5, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1709  }
1710  if (constraintCase_ == 7) {
1711  size += com.google.protobuf.CodedOutputStream
1712  .computeMessageSize(7, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1713  }
1714  if (constraintCase_ == 8) {
1715  size += com.google.protobuf.CodedOutputStream
1716  .computeMessageSize(8, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1717  }
1718  if (constraintCase_ == 9) {
1719  size += com.google.protobuf.CodedOutputStream
1720  .computeMessageSize(9, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1721  }
1722  if (constraintCase_ == 10) {
1723  size += com.google.protobuf.CodedOutputStream
1724  .computeMessageSize(10, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1725  }
1726  if (constraintCase_ == 11) {
1727  size += com.google.protobuf.CodedOutputStream
1728  .computeMessageSize(11, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1729  }
1730  if (constraintCase_ == 12) {
1731  size += com.google.protobuf.CodedOutputStream
1732  .computeMessageSize(12, (com.google.ortools.sat.LinearConstraintProto) constraint_);
1733  }
1734  if (constraintCase_ == 13) {
1735  size += com.google.protobuf.CodedOutputStream
1736  .computeMessageSize(13, (com.google.ortools.sat.AllDifferentConstraintProto) constraint_);
1737  }
1738  if (constraintCase_ == 14) {
1739  size += com.google.protobuf.CodedOutputStream
1740  .computeMessageSize(14, (com.google.ortools.sat.ElementConstraintProto) constraint_);
1741  }
1742  if (constraintCase_ == 15) {
1743  size += com.google.protobuf.CodedOutputStream
1744  .computeMessageSize(15, (com.google.ortools.sat.CircuitConstraintProto) constraint_);
1745  }
1746  if (constraintCase_ == 16) {
1747  size += com.google.protobuf.CodedOutputStream
1748  .computeMessageSize(16, (com.google.ortools.sat.TableConstraintProto) constraint_);
1749  }
1750  if (constraintCase_ == 17) {
1751  size += com.google.protobuf.CodedOutputStream
1752  .computeMessageSize(17, (com.google.ortools.sat.AutomatonConstraintProto) constraint_);
1753  }
1754  if (constraintCase_ == 18) {
1755  size += com.google.protobuf.CodedOutputStream
1756  .computeMessageSize(18, (com.google.ortools.sat.InverseConstraintProto) constraint_);
1757  }
1758  if (constraintCase_ == 19) {
1759  size += com.google.protobuf.CodedOutputStream
1760  .computeMessageSize(19, (com.google.ortools.sat.IntervalConstraintProto) constraint_);
1761  }
1762  if (constraintCase_ == 20) {
1763  size += com.google.protobuf.CodedOutputStream
1764  .computeMessageSize(20, (com.google.ortools.sat.NoOverlapConstraintProto) constraint_);
1765  }
1766  if (constraintCase_ == 21) {
1767  size += com.google.protobuf.CodedOutputStream
1768  .computeMessageSize(21, (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_);
1769  }
1770  if (constraintCase_ == 22) {
1771  size += com.google.protobuf.CodedOutputStream
1772  .computeMessageSize(22, (com.google.ortools.sat.CumulativeConstraintProto) constraint_);
1773  }
1774  if (constraintCase_ == 23) {
1775  size += com.google.protobuf.CodedOutputStream
1776  .computeMessageSize(23, (com.google.ortools.sat.RoutesConstraintProto) constraint_);
1777  }
1778  if (constraintCase_ == 24) {
1779  size += com.google.protobuf.CodedOutputStream
1780  .computeMessageSize(24, (com.google.ortools.sat.ReservoirConstraintProto) constraint_);
1781  }
1782  if (constraintCase_ == 25) {
1783  size += com.google.protobuf.CodedOutputStream
1784  .computeMessageSize(25, (com.google.ortools.sat.CircuitCoveringConstraintProto) constraint_);
1785  }
1786  if (constraintCase_ == 26) {
1787  size += com.google.protobuf.CodedOutputStream
1788  .computeMessageSize(26, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1789  }
1790  size += unknownFields.getSerializedSize();
1791  memoizedSize = size;
1792  return size;
1793  }
1794 
1795  @java.lang.Override
1796  public boolean equals(final java.lang.Object obj) {
1797  if (obj == this) {
1798  return true;
1799  }
1800  if (!(obj instanceof com.google.ortools.sat.ConstraintProto)) {
1801  return super.equals(obj);
1802  }
1804 
1805  if (!getName()
1806  .equals(other.getName())) return false;
1808  .equals(other.getEnforcementLiteralList())) return false;
1809  if (!getConstraintCase().equals(other.getConstraintCase())) return false;
1810  switch (constraintCase_) {
1811  case 3:
1812  if (!getBoolOr()
1813  .equals(other.getBoolOr())) return false;
1814  break;
1815  case 4:
1816  if (!getBoolAnd()
1817  .equals(other.getBoolAnd())) return false;
1818  break;
1819  case 26:
1820  if (!getAtMostOne()
1821  .equals(other.getAtMostOne())) return false;
1822  break;
1823  case 5:
1824  if (!getBoolXor()
1825  .equals(other.getBoolXor())) return false;
1826  break;
1827  case 7:
1828  if (!getIntDiv()
1829  .equals(other.getIntDiv())) return false;
1830  break;
1831  case 8:
1832  if (!getIntMod()
1833  .equals(other.getIntMod())) return false;
1834  break;
1835  case 9:
1836  if (!getIntMax()
1837  .equals(other.getIntMax())) return false;
1838  break;
1839  case 10:
1840  if (!getIntMin()
1841  .equals(other.getIntMin())) return false;
1842  break;
1843  case 11:
1844  if (!getIntProd()
1845  .equals(other.getIntProd())) return false;
1846  break;
1847  case 12:
1848  if (!getLinear()
1849  .equals(other.getLinear())) return false;
1850  break;
1851  case 13:
1852  if (!getAllDiff()
1853  .equals(other.getAllDiff())) return false;
1854  break;
1855  case 14:
1856  if (!getElement()
1857  .equals(other.getElement())) return false;
1858  break;
1859  case 15:
1860  if (!getCircuit()
1861  .equals(other.getCircuit())) return false;
1862  break;
1863  case 23:
1864  if (!getRoutes()
1865  .equals(other.getRoutes())) return false;
1866  break;
1867  case 25:
1868  if (!getCircuitCovering()
1869  .equals(other.getCircuitCovering())) return false;
1870  break;
1871  case 16:
1872  if (!getTable()
1873  .equals(other.getTable())) return false;
1874  break;
1875  case 17:
1876  if (!getAutomaton()
1877  .equals(other.getAutomaton())) return false;
1878  break;
1879  case 18:
1880  if (!getInverse()
1881  .equals(other.getInverse())) return false;
1882  break;
1883  case 24:
1884  if (!getReservoir()
1885  .equals(other.getReservoir())) return false;
1886  break;
1887  case 19:
1888  if (!getInterval()
1889  .equals(other.getInterval())) return false;
1890  break;
1891  case 20:
1892  if (!getNoOverlap()
1893  .equals(other.getNoOverlap())) return false;
1894  break;
1895  case 21:
1896  if (!getNoOverlap2D()
1897  .equals(other.getNoOverlap2D())) return false;
1898  break;
1899  case 22:
1900  if (!getCumulative()
1901  .equals(other.getCumulative())) return false;
1902  break;
1903  case 0:
1904  default:
1905  }
1906  if (!unknownFields.equals(other.unknownFields)) return false;
1907  return true;
1908  }
1909 
1910  @java.lang.Override
1911  public int hashCode() {
1912  if (memoizedHashCode != 0) {
1913  return memoizedHashCode;
1914  }
1915  int hash = 41;
1916  hash = (19 * hash) + getDescriptor().hashCode();
1917  hash = (37 * hash) + NAME_FIELD_NUMBER;
1918  hash = (53 * hash) + getName().hashCode();
1919  if (getEnforcementLiteralCount() > 0) {
1920  hash = (37 * hash) + ENFORCEMENT_LITERAL_FIELD_NUMBER;
1921  hash = (53 * hash) + getEnforcementLiteralList().hashCode();
1922  }
1923  switch (constraintCase_) {
1924  case 3:
1925  hash = (37 * hash) + BOOL_OR_FIELD_NUMBER;
1926  hash = (53 * hash) + getBoolOr().hashCode();
1927  break;
1928  case 4:
1929  hash = (37 * hash) + BOOL_AND_FIELD_NUMBER;
1930  hash = (53 * hash) + getBoolAnd().hashCode();
1931  break;
1932  case 26:
1933  hash = (37 * hash) + AT_MOST_ONE_FIELD_NUMBER;
1934  hash = (53 * hash) + getAtMostOne().hashCode();
1935  break;
1936  case 5:
1937  hash = (37 * hash) + BOOL_XOR_FIELD_NUMBER;
1938  hash = (53 * hash) + getBoolXor().hashCode();
1939  break;
1940  case 7:
1941  hash = (37 * hash) + INT_DIV_FIELD_NUMBER;
1942  hash = (53 * hash) + getIntDiv().hashCode();
1943  break;
1944  case 8:
1945  hash = (37 * hash) + INT_MOD_FIELD_NUMBER;
1946  hash = (53 * hash) + getIntMod().hashCode();
1947  break;
1948  case 9:
1949  hash = (37 * hash) + INT_MAX_FIELD_NUMBER;
1950  hash = (53 * hash) + getIntMax().hashCode();
1951  break;
1952  case 10:
1953  hash = (37 * hash) + INT_MIN_FIELD_NUMBER;
1954  hash = (53 * hash) + getIntMin().hashCode();
1955  break;
1956  case 11:
1957  hash = (37 * hash) + INT_PROD_FIELD_NUMBER;
1958  hash = (53 * hash) + getIntProd().hashCode();
1959  break;
1960  case 12:
1961  hash = (37 * hash) + LINEAR_FIELD_NUMBER;
1962  hash = (53 * hash) + getLinear().hashCode();
1963  break;
1964  case 13:
1965  hash = (37 * hash) + ALL_DIFF_FIELD_NUMBER;
1966  hash = (53 * hash) + getAllDiff().hashCode();
1967  break;
1968  case 14:
1969  hash = (37 * hash) + ELEMENT_FIELD_NUMBER;
1970  hash = (53 * hash) + getElement().hashCode();
1971  break;
1972  case 15:
1973  hash = (37 * hash) + CIRCUIT_FIELD_NUMBER;
1974  hash = (53 * hash) + getCircuit().hashCode();
1975  break;
1976  case 23:
1977  hash = (37 * hash) + ROUTES_FIELD_NUMBER;
1978  hash = (53 * hash) + getRoutes().hashCode();
1979  break;
1980  case 25:
1981  hash = (37 * hash) + CIRCUIT_COVERING_FIELD_NUMBER;
1982  hash = (53 * hash) + getCircuitCovering().hashCode();
1983  break;
1984  case 16:
1985  hash = (37 * hash) + TABLE_FIELD_NUMBER;
1986  hash = (53 * hash) + getTable().hashCode();
1987  break;
1988  case 17:
1989  hash = (37 * hash) + AUTOMATON_FIELD_NUMBER;
1990  hash = (53 * hash) + getAutomaton().hashCode();
1991  break;
1992  case 18:
1993  hash = (37 * hash) + INVERSE_FIELD_NUMBER;
1994  hash = (53 * hash) + getInverse().hashCode();
1995  break;
1996  case 24:
1997  hash = (37 * hash) + RESERVOIR_FIELD_NUMBER;
1998  hash = (53 * hash) + getReservoir().hashCode();
1999  break;
2000  case 19:
2001  hash = (37 * hash) + INTERVAL_FIELD_NUMBER;
2002  hash = (53 * hash) + getInterval().hashCode();
2003  break;
2004  case 20:
2005  hash = (37 * hash) + NO_OVERLAP_FIELD_NUMBER;
2006  hash = (53 * hash) + getNoOverlap().hashCode();
2007  break;
2008  case 21:
2009  hash = (37 * hash) + NO_OVERLAP_2D_FIELD_NUMBER;
2010  hash = (53 * hash) + getNoOverlap2D().hashCode();
2011  break;
2012  case 22:
2013  hash = (37 * hash) + CUMULATIVE_FIELD_NUMBER;
2014  hash = (53 * hash) + getCumulative().hashCode();
2015  break;
2016  case 0:
2017  default:
2018  }
2019  hash = (29 * hash) + unknownFields.hashCode();
2020  memoizedHashCode = hash;
2021  return hash;
2022  }
2023 
2025  java.nio.ByteBuffer data)
2026  throws com.google.protobuf.InvalidProtocolBufferException {
2027  return PARSER.parseFrom(data);
2028  }
2030  java.nio.ByteBuffer data,
2031  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2032  throws com.google.protobuf.InvalidProtocolBufferException {
2033  return PARSER.parseFrom(data, extensionRegistry);
2034  }
2036  com.google.protobuf.ByteString data)
2037  throws com.google.protobuf.InvalidProtocolBufferException {
2038  return PARSER.parseFrom(data);
2039  }
2041  com.google.protobuf.ByteString data,
2042  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2043  throws com.google.protobuf.InvalidProtocolBufferException {
2044  return PARSER.parseFrom(data, extensionRegistry);
2045  }
2046  public static com.google.ortools.sat.ConstraintProto parseFrom(byte[] data)
2047  throws com.google.protobuf.InvalidProtocolBufferException {
2048  return PARSER.parseFrom(data);
2049  }
2051  byte[] data,
2052  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2053  throws com.google.protobuf.InvalidProtocolBufferException {
2054  return PARSER.parseFrom(data, extensionRegistry);
2055  }
2056  public static com.google.ortools.sat.ConstraintProto parseFrom(java.io.InputStream input)
2057  throws java.io.IOException {
2058  return com.google.protobuf.GeneratedMessageV3
2059  .parseWithIOException(PARSER, input);
2060  }
2062  java.io.InputStream input,
2063  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2064  throws java.io.IOException {
2065  return com.google.protobuf.GeneratedMessageV3
2066  .parseWithIOException(PARSER, input, extensionRegistry);
2067  }
2068  public static com.google.ortools.sat.ConstraintProto parseDelimitedFrom(java.io.InputStream input)
2069  throws java.io.IOException {
2070  return com.google.protobuf.GeneratedMessageV3
2071  .parseDelimitedWithIOException(PARSER, input);
2072  }
2074  java.io.InputStream input,
2075  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2076  throws java.io.IOException {
2077  return com.google.protobuf.GeneratedMessageV3
2078  .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
2079  }
2081  com.google.protobuf.CodedInputStream input)
2082  throws java.io.IOException {
2083  return com.google.protobuf.GeneratedMessageV3
2084  .parseWithIOException(PARSER, input);
2085  }
2087  com.google.protobuf.CodedInputStream input,
2088  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2089  throws java.io.IOException {
2090  return com.google.protobuf.GeneratedMessageV3
2091  .parseWithIOException(PARSER, input, extensionRegistry);
2092  }
2093 
2094  @java.lang.Override
2095  public Builder newBuilderForType() { return newBuilder(); }
2096  public static Builder newBuilder() {
2097  return DEFAULT_INSTANCE.toBuilder();
2098  }
2100  return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
2101  }
2102  @java.lang.Override
2103  public Builder toBuilder() {
2104  return this == DEFAULT_INSTANCE
2105  ? new Builder() : new Builder().mergeFrom(this);
2106  }
2107 
2108  @java.lang.Override
2110  com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
2111  Builder builder = new Builder(parent);
2112  return builder;
2113  }
2121  public static final class Builder extends
2122  com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
2123  // @@protoc_insertion_point(builder_implements:operations_research.sat.ConstraintProto)
2124  com.google.ortools.sat.ConstraintProtoOrBuilder {
2125  public static final com.google.protobuf.Descriptors.Descriptor
2127  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_descriptor;
2128  }
2129 
2130  @java.lang.Override
2131  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
2133  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_fieldAccessorTable
2134  .ensureFieldAccessorsInitialized(
2136  }
2137 
2138  // Construct using com.google.ortools.sat.ConstraintProto.newBuilder()
2139  private Builder() {
2140  maybeForceBuilderInitialization();
2141  }
2142 
2143  private Builder(
2144  com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
2145  super(parent);
2146  maybeForceBuilderInitialization();
2147  }
2148  private void maybeForceBuilderInitialization() {
2149  if (com.google.protobuf.GeneratedMessageV3
2150  .alwaysUseFieldBuilders) {
2151  }
2152  }
2153  @java.lang.Override
2154  public Builder clear() {
2155  super.clear();
2156  name_ = "";
2157 
2158  enforcementLiteral_ = emptyIntList();
2159  bitField0_ = (bitField0_ & ~0x00000001);
2160  constraintCase_ = 0;
2161  constraint_ = null;
2162  return this;
2163  }
2164 
2165  @java.lang.Override
2166  public com.google.protobuf.Descriptors.Descriptor
2168  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_descriptor;
2169  }
2170 
2171  @java.lang.Override
2174  }
2175 
2176  @java.lang.Override
2179  if (!result.isInitialized()) {
2180  throw newUninitializedMessageException(result);
2181  }
2182  return result;
2183  }
2184 
2185  @java.lang.Override
2188  int from_bitField0_ = bitField0_;
2189  result.name_ = name_;
2190  if (((bitField0_ & 0x00000001) != 0)) {
2191  enforcementLiteral_.makeImmutable();
2192  bitField0_ = (bitField0_ & ~0x00000001);
2193  }
2194  result.enforcementLiteral_ = enforcementLiteral_;
2195  if (constraintCase_ == 3) {
2196  if (boolOrBuilder_ == null) {
2197  result.constraint_ = constraint_;
2198  } else {
2199  result.constraint_ = boolOrBuilder_.build();
2200  }
2201  }
2202  if (constraintCase_ == 4) {
2203  if (boolAndBuilder_ == null) {
2204  result.constraint_ = constraint_;
2205  } else {
2206  result.constraint_ = boolAndBuilder_.build();
2207  }
2208  }
2209  if (constraintCase_ == 26) {
2210  if (atMostOneBuilder_ == null) {
2211  result.constraint_ = constraint_;
2212  } else {
2213  result.constraint_ = atMostOneBuilder_.build();
2214  }
2215  }
2216  if (constraintCase_ == 5) {
2217  if (boolXorBuilder_ == null) {
2218  result.constraint_ = constraint_;
2219  } else {
2220  result.constraint_ = boolXorBuilder_.build();
2221  }
2222  }
2223  if (constraintCase_ == 7) {
2224  if (intDivBuilder_ == null) {
2225  result.constraint_ = constraint_;
2226  } else {
2227  result.constraint_ = intDivBuilder_.build();
2228  }
2229  }
2230  if (constraintCase_ == 8) {
2231  if (intModBuilder_ == null) {
2232  result.constraint_ = constraint_;
2233  } else {
2234  result.constraint_ = intModBuilder_.build();
2235  }
2236  }
2237  if (constraintCase_ == 9) {
2238  if (intMaxBuilder_ == null) {
2239  result.constraint_ = constraint_;
2240  } else {
2241  result.constraint_ = intMaxBuilder_.build();
2242  }
2243  }
2244  if (constraintCase_ == 10) {
2245  if (intMinBuilder_ == null) {
2246  result.constraint_ = constraint_;
2247  } else {
2248  result.constraint_ = intMinBuilder_.build();
2249  }
2250  }
2251  if (constraintCase_ == 11) {
2252  if (intProdBuilder_ == null) {
2253  result.constraint_ = constraint_;
2254  } else {
2255  result.constraint_ = intProdBuilder_.build();
2256  }
2257  }
2258  if (constraintCase_ == 12) {
2259  if (linearBuilder_ == null) {
2260  result.constraint_ = constraint_;
2261  } else {
2262  result.constraint_ = linearBuilder_.build();
2263  }
2264  }
2265  if (constraintCase_ == 13) {
2266  if (allDiffBuilder_ == null) {
2267  result.constraint_ = constraint_;
2268  } else {
2269  result.constraint_ = allDiffBuilder_.build();
2270  }
2271  }
2272  if (constraintCase_ == 14) {
2273  if (elementBuilder_ == null) {
2274  result.constraint_ = constraint_;
2275  } else {
2276  result.constraint_ = elementBuilder_.build();
2277  }
2278  }
2279  if (constraintCase_ == 15) {
2280  if (circuitBuilder_ == null) {
2281  result.constraint_ = constraint_;
2282  } else {
2283  result.constraint_ = circuitBuilder_.build();
2284  }
2285  }
2286  if (constraintCase_ == 23) {
2287  if (routesBuilder_ == null) {
2288  result.constraint_ = constraint_;
2289  } else {
2290  result.constraint_ = routesBuilder_.build();
2291  }
2292  }
2293  if (constraintCase_ == 25) {
2294  if (circuitCoveringBuilder_ == null) {
2295  result.constraint_ = constraint_;
2296  } else {
2297  result.constraint_ = circuitCoveringBuilder_.build();
2298  }
2299  }
2300  if (constraintCase_ == 16) {
2301  if (tableBuilder_ == null) {
2302  result.constraint_ = constraint_;
2303  } else {
2304  result.constraint_ = tableBuilder_.build();
2305  }
2306  }
2307  if (constraintCase_ == 17) {
2308  if (automatonBuilder_ == null) {
2309  result.constraint_ = constraint_;
2310  } else {
2311  result.constraint_ = automatonBuilder_.build();
2312  }
2313  }
2314  if (constraintCase_ == 18) {
2315  if (inverseBuilder_ == null) {
2316  result.constraint_ = constraint_;
2317  } else {
2318  result.constraint_ = inverseBuilder_.build();
2319  }
2320  }
2321  if (constraintCase_ == 24) {
2322  if (reservoirBuilder_ == null) {
2323  result.constraint_ = constraint_;
2324  } else {
2325  result.constraint_ = reservoirBuilder_.build();
2326  }
2327  }
2328  if (constraintCase_ == 19) {
2329  if (intervalBuilder_ == null) {
2330  result.constraint_ = constraint_;
2331  } else {
2332  result.constraint_ = intervalBuilder_.build();
2333  }
2334  }
2335  if (constraintCase_ == 20) {
2336  if (noOverlapBuilder_ == null) {
2337  result.constraint_ = constraint_;
2338  } else {
2339  result.constraint_ = noOverlapBuilder_.build();
2340  }
2341  }
2342  if (constraintCase_ == 21) {
2343  if (noOverlap2DBuilder_ == null) {
2344  result.constraint_ = constraint_;
2345  } else {
2346  result.constraint_ = noOverlap2DBuilder_.build();
2347  }
2348  }
2349  if (constraintCase_ == 22) {
2350  if (cumulativeBuilder_ == null) {
2351  result.constraint_ = constraint_;
2352  } else {
2353  result.constraint_ = cumulativeBuilder_.build();
2354  }
2355  }
2356  result.constraintCase_ = constraintCase_;
2357  onBuilt();
2358  return result;
2359  }
2360 
2361  @java.lang.Override
2362  public Builder clone() {
2363  return super.clone();
2364  }
2365  @java.lang.Override
2367  com.google.protobuf.Descriptors.FieldDescriptor field,
2368  java.lang.Object value) {
2369  return super.setField(field, value);
2370  }
2371  @java.lang.Override
2373  com.google.protobuf.Descriptors.FieldDescriptor field) {
2374  return super.clearField(field);
2375  }
2376  @java.lang.Override
2378  com.google.protobuf.Descriptors.OneofDescriptor oneof) {
2379  return super.clearOneof(oneof);
2380  }
2381  @java.lang.Override
2383  com.google.protobuf.Descriptors.FieldDescriptor field,
2384  int index, java.lang.Object value) {
2385  return super.setRepeatedField(field, index, value);
2386  }
2387  @java.lang.Override
2389  com.google.protobuf.Descriptors.FieldDescriptor field,
2390  java.lang.Object value) {
2391  return super.addRepeatedField(field, value);
2392  }
2393  @java.lang.Override
2394  public Builder mergeFrom(com.google.protobuf.Message other) {
2395  if (other instanceof com.google.ortools.sat.ConstraintProto) {
2396  return mergeFrom((com.google.ortools.sat.ConstraintProto)other);
2397  } else {
2398  super.mergeFrom(other);
2399  return this;
2400  }
2401  }
2402 
2404  if (other == com.google.ortools.sat.ConstraintProto.getDefaultInstance()) return this;
2405  if (!other.getName().isEmpty()) {
2406  name_ = other.name_;
2407  onChanged();
2408  }
2409  if (!other.enforcementLiteral_.isEmpty()) {
2410  if (enforcementLiteral_.isEmpty()) {
2411  enforcementLiteral_ = other.enforcementLiteral_;
2412  bitField0_ = (bitField0_ & ~0x00000001);
2413  } else {
2414  ensureEnforcementLiteralIsMutable();
2415  enforcementLiteral_.addAll(other.enforcementLiteral_);
2416  }
2417  onChanged();
2418  }
2419  switch (other.getConstraintCase()) {
2420  case BOOL_OR: {
2421  mergeBoolOr(other.getBoolOr());
2422  break;
2423  }
2424  case BOOL_AND: {
2425  mergeBoolAnd(other.getBoolAnd());
2426  break;
2427  }
2428  case AT_MOST_ONE: {
2429  mergeAtMostOne(other.getAtMostOne());
2430  break;
2431  }
2432  case BOOL_XOR: {
2433  mergeBoolXor(other.getBoolXor());
2434  break;
2435  }
2436  case INT_DIV: {
2437  mergeIntDiv(other.getIntDiv());
2438  break;
2439  }
2440  case INT_MOD: {
2441  mergeIntMod(other.getIntMod());
2442  break;
2443  }
2444  case INT_MAX: {
2445  mergeIntMax(other.getIntMax());
2446  break;
2447  }
2448  case INT_MIN: {
2449  mergeIntMin(other.getIntMin());
2450  break;
2451  }
2452  case INT_PROD: {
2453  mergeIntProd(other.getIntProd());
2454  break;
2455  }
2456  case LINEAR: {
2457  mergeLinear(other.getLinear());
2458  break;
2459  }
2460  case ALL_DIFF: {
2461  mergeAllDiff(other.getAllDiff());
2462  break;
2463  }
2464  case ELEMENT: {
2465  mergeElement(other.getElement());
2466  break;
2467  }
2468  case CIRCUIT: {
2469  mergeCircuit(other.getCircuit());
2470  break;
2471  }
2472  case ROUTES: {
2473  mergeRoutes(other.getRoutes());
2474  break;
2475  }
2476  case CIRCUIT_COVERING: {
2477  mergeCircuitCovering(other.getCircuitCovering());
2478  break;
2479  }
2480  case TABLE: {
2481  mergeTable(other.getTable());
2482  break;
2483  }
2484  case AUTOMATON: {
2485  mergeAutomaton(other.getAutomaton());
2486  break;
2487  }
2488  case INVERSE: {
2489  mergeInverse(other.getInverse());
2490  break;
2491  }
2492  case RESERVOIR: {
2493  mergeReservoir(other.getReservoir());
2494  break;
2495  }
2496  case INTERVAL: {
2497  mergeInterval(other.getInterval());
2498  break;
2499  }
2500  case NO_OVERLAP: {
2501  mergeNoOverlap(other.getNoOverlap());
2502  break;
2503  }
2504  case NO_OVERLAP_2D: {
2505  mergeNoOverlap2D(other.getNoOverlap2D());
2506  break;
2507  }
2508  case CUMULATIVE: {
2509  mergeCumulative(other.getCumulative());
2510  break;
2511  }
2512  case CONSTRAINT_NOT_SET: {
2513  break;
2514  }
2515  }
2516  this.mergeUnknownFields(other.unknownFields);
2517  onChanged();
2518  return this;
2519  }
2520 
2521  @java.lang.Override
2522  public final boolean isInitialized() {
2523  return true;
2524  }
2525 
2526  @java.lang.Override
2528  com.google.protobuf.CodedInputStream input,
2529  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2530  throws java.io.IOException {
2531  com.google.ortools.sat.ConstraintProto parsedMessage = null;
2532  try {
2533  parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
2534  } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2535  parsedMessage = (com.google.ortools.sat.ConstraintProto) e.getUnfinishedMessage();
2536  throw e.unwrapIOException();
2537  } finally {
2538  if (parsedMessage != null) {
2539  mergeFrom(parsedMessage);
2540  }
2541  }
2542  return this;
2543  }
2544  private int constraintCase_ = 0;
2545  private java.lang.Object constraint_;
2546  public ConstraintCase
2548  return ConstraintCase.forNumber(
2549  constraintCase_);
2550  }
2551 
2553  constraintCase_ = 0;
2554  constraint_ = null;
2555  onChanged();
2556  return this;
2557  }
2558 
2559  private int bitField0_;
2560 
2561  private java.lang.Object name_ = "";
2569  public java.lang.String getName() {
2570  java.lang.Object ref = name_;
2571  if (!(ref instanceof java.lang.String)) {
2572  com.google.protobuf.ByteString bs =
2573  (com.google.protobuf.ByteString) ref;
2574  java.lang.String s = bs.toStringUtf8();
2575  name_ = s;
2576  return s;
2577  } else {
2578  return (java.lang.String) ref;
2579  }
2580  }
2588  public com.google.protobuf.ByteString
2590  java.lang.Object ref = name_;
2591  if (ref instanceof String) {
2592  com.google.protobuf.ByteString b =
2593  com.google.protobuf.ByteString.copyFromUtf8(
2594  (java.lang.String) ref);
2595  name_ = b;
2596  return b;
2597  } else {
2598  return (com.google.protobuf.ByteString) ref;
2599  }
2600  }
2609  java.lang.String value) {
2610  if (value == null) {
2611  throw new NullPointerException();
2612  }
2613 
2614  name_ = value;
2615  onChanged();
2616  return this;
2617  }
2625  public Builder clearName() {
2626 
2627  name_ = getDefaultInstance().getName();
2628  onChanged();
2629  return this;
2630  }
2639  com.google.protobuf.ByteString value) {
2640  if (value == null) {
2641  throw new NullPointerException();
2642  }
2643  checkByteStringIsUtf8(value);
2644 
2645  name_ = value;
2646  onChanged();
2647  return this;
2648  }
2649 
2650  private com.google.protobuf.Internal.IntList enforcementLiteral_ = emptyIntList();
2651  private void ensureEnforcementLiteralIsMutable() {
2652  if (!((bitField0_ & 0x00000001) != 0)) {
2653  enforcementLiteral_ = mutableCopy(enforcementLiteral_);
2654  bitField0_ |= 0x00000001;
2655  }
2656  }
2675  public java.util.List<java.lang.Integer>
2677  return ((bitField0_ & 0x00000001) != 0) ?
2678  java.util.Collections.unmodifiableList(enforcementLiteral_) : enforcementLiteral_;
2679  }
2699  return enforcementLiteral_.size();
2700  }
2719  public int getEnforcementLiteral(int index) {
2720  return enforcementLiteral_.getInt(index);
2721  }
2741  int index, int value) {
2742  ensureEnforcementLiteralIsMutable();
2743  enforcementLiteral_.setInt(index, value);
2744  onChanged();
2745  return this;
2746  }
2765  public Builder addEnforcementLiteral(int value) {
2766  ensureEnforcementLiteralIsMutable();
2767  enforcementLiteral_.addInt(value);
2768  onChanged();
2769  return this;
2770  }
2790  java.lang.Iterable<? extends java.lang.Integer> values) {
2791  ensureEnforcementLiteralIsMutable();
2792  com.google.protobuf.AbstractMessageLite.Builder.addAll(
2793  values, enforcementLiteral_);
2794  onChanged();
2795  return this;
2796  }
2816  enforcementLiteral_ = emptyIntList();
2817  bitField0_ = (bitField0_ & ~0x00000001);
2818  onChanged();
2819  return this;
2820  }
2821 
2822  private com.google.protobuf.SingleFieldBuilderV3<
2831  public boolean hasBoolOr() {
2832  return constraintCase_ == 3;
2833  }
2842  if (boolOrBuilder_ == null) {
2843  if (constraintCase_ == 3) {
2844  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
2845  }
2847  } else {
2848  if (constraintCase_ == 3) {
2849  return boolOrBuilder_.getMessage();
2850  }
2852  }
2853  }
2862  if (boolOrBuilder_ == null) {
2863  if (value == null) {
2864  throw new NullPointerException();
2865  }
2866  constraint_ = value;
2867  onChanged();
2868  } else {
2869  boolOrBuilder_.setMessage(value);
2870  }
2871  constraintCase_ = 3;
2872  return this;
2873  }
2882  com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
2883  if (boolOrBuilder_ == null) {
2884  constraint_ = builderForValue.build();
2885  onChanged();
2886  } else {
2887  boolOrBuilder_.setMessage(builderForValue.build());
2888  }
2889  constraintCase_ = 3;
2890  return this;
2891  }
2900  if (boolOrBuilder_ == null) {
2901  if (constraintCase_ == 3 &&
2904  .mergeFrom(value).buildPartial();
2905  } else {
2906  constraint_ = value;
2907  }
2908  onChanged();
2909  } else {
2910  if (constraintCase_ == 3) {
2911  boolOrBuilder_.mergeFrom(value);
2912  }
2913  boolOrBuilder_.setMessage(value);
2914  }
2915  constraintCase_ = 3;
2916  return this;
2917  }
2926  if (boolOrBuilder_ == null) {
2927  if (constraintCase_ == 3) {
2928  constraintCase_ = 0;
2929  constraint_ = null;
2930  onChanged();
2931  }
2932  } else {
2933  if (constraintCase_ == 3) {
2934  constraintCase_ = 0;
2935  constraint_ = null;
2936  }
2937  boolOrBuilder_.clear();
2938  }
2939  return this;
2940  }
2949  return getBoolOrFieldBuilder().getBuilder();
2950  }
2959  if ((constraintCase_ == 3) && (boolOrBuilder_ != null)) {
2960  return boolOrBuilder_.getMessageOrBuilder();
2961  } else {
2962  if (constraintCase_ == 3) {
2963  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
2964  }
2966  }
2967  }
2975  private com.google.protobuf.SingleFieldBuilderV3<
2977  getBoolOrFieldBuilder() {
2978  if (boolOrBuilder_ == null) {
2979  if (!(constraintCase_ == 3)) {
2981  }
2982  boolOrBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
2984  (com.google.ortools.sat.BoolArgumentProto) constraint_,
2985  getParentForChildren(),
2986  isClean());
2987  constraint_ = null;
2988  }
2989  constraintCase_ = 3;
2990  onChanged();;
2991  return boolOrBuilder_;
2992  }
2993 
2994  private com.google.protobuf.SingleFieldBuilderV3<
3006  public boolean hasBoolAnd() {
3007  return constraintCase_ == 4;
3008  }
3020  if (boolAndBuilder_ == null) {
3021  if (constraintCase_ == 4) {
3022  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3023  }
3025  } else {
3026  if (constraintCase_ == 4) {
3027  return boolAndBuilder_.getMessage();
3028  }
3030  }
3031  }
3043  if (boolAndBuilder_ == null) {
3044  if (value == null) {
3045  throw new NullPointerException();
3046  }
3047  constraint_ = value;
3048  onChanged();
3049  } else {
3050  boolAndBuilder_.setMessage(value);
3051  }
3052  constraintCase_ = 4;
3053  return this;
3054  }
3066  com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
3067  if (boolAndBuilder_ == null) {
3068  constraint_ = builderForValue.build();
3069  onChanged();
3070  } else {
3071  boolAndBuilder_.setMessage(builderForValue.build());
3072  }
3073  constraintCase_ = 4;
3074  return this;
3075  }
3087  if (boolAndBuilder_ == null) {
3088  if (constraintCase_ == 4 &&
3091  .mergeFrom(value).buildPartial();
3092  } else {
3093  constraint_ = value;
3094  }
3095  onChanged();
3096  } else {
3097  if (constraintCase_ == 4) {
3098  boolAndBuilder_.mergeFrom(value);
3099  }
3100  boolAndBuilder_.setMessage(value);
3101  }
3102  constraintCase_ = 4;
3103  return this;
3104  }
3116  if (boolAndBuilder_ == null) {
3117  if (constraintCase_ == 4) {
3118  constraintCase_ = 0;
3119  constraint_ = null;
3120  onChanged();
3121  }
3122  } else {
3123  if (constraintCase_ == 4) {
3124  constraintCase_ = 0;
3125  constraint_ = null;
3126  }
3127  boolAndBuilder_.clear();
3128  }
3129  return this;
3130  }
3142  return getBoolAndFieldBuilder().getBuilder();
3143  }
3155  if ((constraintCase_ == 4) && (boolAndBuilder_ != null)) {
3156  return boolAndBuilder_.getMessageOrBuilder();
3157  } else {
3158  if (constraintCase_ == 4) {
3159  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3160  }
3162  }
3163  }
3174  private com.google.protobuf.SingleFieldBuilderV3<
3176  getBoolAndFieldBuilder() {
3177  if (boolAndBuilder_ == null) {
3178  if (!(constraintCase_ == 4)) {
3180  }
3181  boolAndBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
3183  (com.google.ortools.sat.BoolArgumentProto) constraint_,
3184  getParentForChildren(),
3185  isClean());
3186  constraint_ = null;
3187  }
3188  constraintCase_ = 4;
3189  onChanged();;
3190  return boolAndBuilder_;
3191  }
3192 
3193  private com.google.protobuf.SingleFieldBuilderV3<
3206  public boolean hasAtMostOne() {
3207  return constraintCase_ == 26;
3208  }
3221  if (atMostOneBuilder_ == null) {
3222  if (constraintCase_ == 26) {
3223  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3224  }
3226  } else {
3227  if (constraintCase_ == 26) {
3228  return atMostOneBuilder_.getMessage();
3229  }
3231  }
3232  }
3245  if (atMostOneBuilder_ == null) {
3246  if (value == null) {
3247  throw new NullPointerException();
3248  }
3249  constraint_ = value;
3250  onChanged();
3251  } else {
3252  atMostOneBuilder_.setMessage(value);
3253  }
3254  constraintCase_ = 26;
3255  return this;
3256  }
3269  com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
3270  if (atMostOneBuilder_ == null) {
3271  constraint_ = builderForValue.build();
3272  onChanged();
3273  } else {
3274  atMostOneBuilder_.setMessage(builderForValue.build());
3275  }
3276  constraintCase_ = 26;
3277  return this;
3278  }
3291  if (atMostOneBuilder_ == null) {
3292  if (constraintCase_ == 26 &&
3295  .mergeFrom(value).buildPartial();
3296  } else {
3297  constraint_ = value;
3298  }
3299  onChanged();
3300  } else {
3301  if (constraintCase_ == 26) {
3302  atMostOneBuilder_.mergeFrom(value);
3303  }
3304  atMostOneBuilder_.setMessage(value);
3305  }
3306  constraintCase_ = 26;
3307  return this;
3308  }
3321  if (atMostOneBuilder_ == null) {
3322  if (constraintCase_ == 26) {
3323  constraintCase_ = 0;
3324  constraint_ = null;
3325  onChanged();
3326  }
3327  } else {
3328  if (constraintCase_ == 26) {
3329  constraintCase_ = 0;
3330  constraint_ = null;
3331  }
3332  atMostOneBuilder_.clear();
3333  }
3334  return this;
3335  }
3348  return getAtMostOneFieldBuilder().getBuilder();
3349  }
3362  if ((constraintCase_ == 26) && (atMostOneBuilder_ != null)) {
3363  return atMostOneBuilder_.getMessageOrBuilder();
3364  } else {
3365  if (constraintCase_ == 26) {
3366  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3367  }
3369  }
3370  }
3382  private com.google.protobuf.SingleFieldBuilderV3<
3384  getAtMostOneFieldBuilder() {
3385  if (atMostOneBuilder_ == null) {
3386  if (!(constraintCase_ == 26)) {
3388  }
3389  atMostOneBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
3391  (com.google.ortools.sat.BoolArgumentProto) constraint_,
3392  getParentForChildren(),
3393  isClean());
3394  constraint_ = null;
3395  }
3396  constraintCase_ = 26;
3397  onChanged();;
3398  return atMostOneBuilder_;
3399  }
3400 
3401  private com.google.protobuf.SingleFieldBuilderV3<
3410  public boolean hasBoolXor() {
3411  return constraintCase_ == 5;
3412  }
3421  if (boolXorBuilder_ == null) {
3422  if (constraintCase_ == 5) {
3423  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3424  }
3426  } else {
3427  if (constraintCase_ == 5) {
3428  return boolXorBuilder_.getMessage();
3429  }
3431  }
3432  }
3441  if (boolXorBuilder_ == null) {
3442  if (value == null) {
3443  throw new NullPointerException();
3444  }
3445  constraint_ = value;
3446  onChanged();
3447  } else {
3448  boolXorBuilder_.setMessage(value);
3449  }
3450  constraintCase_ = 5;
3451  return this;
3452  }
3461  com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
3462  if (boolXorBuilder_ == null) {
3463  constraint_ = builderForValue.build();
3464  onChanged();
3465  } else {
3466  boolXorBuilder_.setMessage(builderForValue.build());
3467  }
3468  constraintCase_ = 5;
3469  return this;
3470  }
3479  if (boolXorBuilder_ == null) {
3480  if (constraintCase_ == 5 &&
3483  .mergeFrom(value).buildPartial();
3484  } else {
3485  constraint_ = value;
3486  }
3487  onChanged();
3488  } else {
3489  if (constraintCase_ == 5) {
3490  boolXorBuilder_.mergeFrom(value);
3491  }
3492  boolXorBuilder_.setMessage(value);
3493  }
3494  constraintCase_ = 5;
3495  return this;
3496  }
3505  if (boolXorBuilder_ == null) {
3506  if (constraintCase_ == 5) {
3507  constraintCase_ = 0;
3508  constraint_ = null;
3509  onChanged();
3510  }
3511  } else {
3512  if (constraintCase_ == 5) {
3513  constraintCase_ = 0;
3514  constraint_ = null;
3515  }
3516  boolXorBuilder_.clear();
3517  }
3518  return this;
3519  }
3528  return getBoolXorFieldBuilder().getBuilder();
3529  }
3538  if ((constraintCase_ == 5) && (boolXorBuilder_ != null)) {
3539  return boolXorBuilder_.getMessageOrBuilder();
3540  } else {
3541  if (constraintCase_ == 5) {
3542  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3543  }
3545  }
3546  }
3554  private com.google.protobuf.SingleFieldBuilderV3<
3556  getBoolXorFieldBuilder() {
3557  if (boolXorBuilder_ == null) {
3558  if (!(constraintCase_ == 5)) {
3560  }
3561  boolXorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
3563  (com.google.ortools.sat.BoolArgumentProto) constraint_,
3564  getParentForChildren(),
3565  isClean());
3566  constraint_ = null;
3567  }
3568  constraintCase_ = 5;
3569  onChanged();;
3570  return boolXorBuilder_;
3571  }
3572 
3573  private com.google.protobuf.SingleFieldBuilderV3<
3582  public boolean hasIntDiv() {
3583  return constraintCase_ == 7;
3584  }
3593  if (intDivBuilder_ == null) {
3594  if (constraintCase_ == 7) {
3595  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
3596  }
3598  } else {
3599  if (constraintCase_ == 7) {
3600  return intDivBuilder_.getMessage();
3601  }
3603  }
3604  }
3613  if (intDivBuilder_ == null) {
3614  if (value == null) {
3615  throw new NullPointerException();
3616  }
3617  constraint_ = value;
3618  onChanged();
3619  } else {
3620  intDivBuilder_.setMessage(value);
3621  }
3622  constraintCase_ = 7;
3623  return this;
3624  }
3633  com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue) {
3634  if (intDivBuilder_ == null) {
3635  constraint_ = builderForValue.build();
3636  onChanged();
3637  } else {
3638  intDivBuilder_.setMessage(builderForValue.build());
3639  }
3640  constraintCase_ = 7;
3641  return this;
3642  }
3651  if (intDivBuilder_ == null) {
3652  if (constraintCase_ == 7 &&
3655  .mergeFrom(value).buildPartial();
3656  } else {
3657  constraint_ = value;
3658  }
3659  onChanged();
3660  } else {
3661  if (constraintCase_ == 7) {
3662  intDivBuilder_.mergeFrom(value);
3663  }
3664  intDivBuilder_.setMessage(value);
3665  }
3666  constraintCase_ = 7;
3667  return this;
3668  }
3677  if (intDivBuilder_ == null) {
3678  if (constraintCase_ == 7) {
3679  constraintCase_ = 0;
3680  constraint_ = null;
3681  onChanged();
3682  }
3683  } else {
3684  if (constraintCase_ == 7) {
3685  constraintCase_ = 0;
3686  constraint_ = null;
3687  }
3688  intDivBuilder_.clear();
3689  }
3690  return this;
3691  }
3700  return getIntDivFieldBuilder().getBuilder();
3701  }
3710  if ((constraintCase_ == 7) && (intDivBuilder_ != null)) {
3711  return intDivBuilder_.getMessageOrBuilder();
3712  } else {
3713  if (constraintCase_ == 7) {
3714  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
3715  }
3717  }
3718  }
3726  private com.google.protobuf.SingleFieldBuilderV3<
3728  getIntDivFieldBuilder() {
3729  if (intDivBuilder_ == null) {
3730  if (!(constraintCase_ == 7)) {
3732  }
3733  intDivBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
3735  (com.google.ortools.sat.IntegerArgumentProto) constraint_,
3736  getParentForChildren(),
3737  isClean());
3738  constraint_ = null;
3739  }
3740  constraintCase_ = 7;
3741  onChanged();;
3742  return intDivBuilder_;
3743  }
3744 
3745  private com.google.protobuf.SingleFieldBuilderV3<
3754  public boolean hasIntMod() {
3755  return constraintCase_ == 8;
3756  }
3765  if (intModBuilder_ == null) {
3766  if (constraintCase_ == 8) {
3767  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
3768  }
3770  } else {
3771  if (constraintCase_ == 8) {
3772  return intModBuilder_.getMessage();
3773  }
3775  }
3776  }
3785  if (intModBuilder_ == null) {
3786  if (value == null) {
3787  throw new NullPointerException();
3788  }
3789  constraint_ = value;
3790  onChanged();
3791  } else {
3792  intModBuilder_.setMessage(value);
3793  }
3794  constraintCase_ = 8;
3795  return this;
3796  }
3805  com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue) {
3806  if (intModBuilder_ == null) {
3807  constraint_ = builderForValue.build();
3808  onChanged();
3809  } else {
3810  intModBuilder_.setMessage(builderForValue.build());
3811  }
3812  constraintCase_ = 8;
3813  return this;
3814  }
3823  if (intModBuilder_ == null) {
3824  if (constraintCase_ == 8 &&
3827  .mergeFrom(value).buildPartial();
3828  } else {
3829  constraint_ = value;
3830  }
3831  onChanged();
3832  } else {
3833  if (constraintCase_ == 8) {
3834  intModBuilder_.mergeFrom(value);
3835  }
3836  intModBuilder_.setMessage(value);
3837  }
3838  constraintCase_ = 8;
3839  return this;
3840  }
3849  if (intModBuilder_ == null) {
3850  if (constraintCase_ == 8) {
3851  constraintCase_ = 0;
3852  constraint_ = null;
3853  onChanged();
3854  }
3855  } else {
3856  if (constraintCase_ == 8) {
3857  constraintCase_ = 0;
3858  constraint_ = null;
3859  }
3860  intModBuilder_.clear();
3861  }
3862  return this;
3863  }
3872  return getIntModFieldBuilder().getBuilder();
3873  }
3882  if ((constraintCase_ == 8) && (intModBuilder_ != null)) {
3883  return intModBuilder_.getMessageOrBuilder();
3884  } else {
3885  if (constraintCase_ == 8) {
3886  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
3887  }
3889  }
3890  }
3898  private com.google.protobuf.SingleFieldBuilderV3<
3900  getIntModFieldBuilder() {
3901  if (intModBuilder_ == null) {
3902  if (!(constraintCase_ == 8)) {
3904  }
3905  intModBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
3907  (com.google.ortools.sat.IntegerArgumentProto) constraint_,
3908  getParentForChildren(),
3909  isClean());
3910  constraint_ = null;
3911  }
3912  constraintCase_ = 8;
3913  onChanged();;
3914  return intModBuilder_;
3915  }
3916 
3917  private com.google.protobuf.SingleFieldBuilderV3<
3927  public boolean hasIntMax() {
3928  return constraintCase_ == 9;
3929  }
3939  if (intMaxBuilder_ == null) {
3940  if (constraintCase_ == 9) {
3941  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
3942  }
3944  } else {
3945  if (constraintCase_ == 9) {
3946  return intMaxBuilder_.getMessage();
3947  }
3949  }
3950  }
3960  if (intMaxBuilder_ == null) {
3961  if (value == null) {
3962  throw new NullPointerException();
3963  }
3964  constraint_ = value;
3965  onChanged();
3966  } else {
3967  intMaxBuilder_.setMessage(value);
3968  }
3969  constraintCase_ = 9;
3970  return this;
3971  }
3981  com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue) {
3982  if (intMaxBuilder_ == null) {
3983  constraint_ = builderForValue.build();
3984  onChanged();
3985  } else {
3986  intMaxBuilder_.setMessage(builderForValue.build());
3987  }
3988  constraintCase_ = 9;
3989  return this;
3990  }
4000  if (intMaxBuilder_ == null) {
4001  if (constraintCase_ == 9 &&
4004  .mergeFrom(value).buildPartial();
4005  } else {
4006  constraint_ = value;
4007  }
4008  onChanged();
4009  } else {
4010  if (constraintCase_ == 9) {
4011  intMaxBuilder_.mergeFrom(value);
4012  }
4013  intMaxBuilder_.setMessage(value);
4014  }
4015  constraintCase_ = 9;
4016  return this;
4017  }
4027  if (intMaxBuilder_ == null) {
4028  if (constraintCase_ == 9) {
4029  constraintCase_ = 0;
4030  constraint_ = null;
4031  onChanged();
4032  }
4033  } else {
4034  if (constraintCase_ == 9) {
4035  constraintCase_ = 0;
4036  constraint_ = null;
4037  }
4038  intMaxBuilder_.clear();
4039  }
4040  return this;
4041  }
4051  return getIntMaxFieldBuilder().getBuilder();
4052  }
4062  if ((constraintCase_ == 9) && (intMaxBuilder_ != null)) {
4063  return intMaxBuilder_.getMessageOrBuilder();
4064  } else {
4065  if (constraintCase_ == 9) {
4066  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
4067  }
4069  }
4070  }
4079  private com.google.protobuf.SingleFieldBuilderV3<
4081  getIntMaxFieldBuilder() {
4082  if (intMaxBuilder_ == null) {
4083  if (!(constraintCase_ == 9)) {
4085  }
4086  intMaxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4088  (com.google.ortools.sat.IntegerArgumentProto) constraint_,
4089  getParentForChildren(),
4090  isClean());
4091  constraint_ = null;
4092  }
4093  constraintCase_ = 9;
4094  onChanged();;
4095  return intMaxBuilder_;
4096  }
4097 
4098  private com.google.protobuf.SingleFieldBuilderV3<
4108  public boolean hasIntMin() {
4109  return constraintCase_ == 10;
4110  }
4120  if (intMinBuilder_ == null) {
4121  if (constraintCase_ == 10) {
4122  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
4123  }
4125  } else {
4126  if (constraintCase_ == 10) {
4127  return intMinBuilder_.getMessage();
4128  }
4130  }
4131  }
4141  if (intMinBuilder_ == null) {
4142  if (value == null) {
4143  throw new NullPointerException();
4144  }
4145  constraint_ = value;
4146  onChanged();
4147  } else {
4148  intMinBuilder_.setMessage(value);
4149  }
4150  constraintCase_ = 10;
4151  return this;
4152  }
4162  com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue) {
4163  if (intMinBuilder_ == null) {
4164  constraint_ = builderForValue.build();
4165  onChanged();
4166  } else {
4167  intMinBuilder_.setMessage(builderForValue.build());
4168  }
4169  constraintCase_ = 10;
4170  return this;
4171  }
4181  if (intMinBuilder_ == null) {
4182  if (constraintCase_ == 10 &&
4185  .mergeFrom(value).buildPartial();
4186  } else {
4187  constraint_ = value;
4188  }
4189  onChanged();
4190  } else {
4191  if (constraintCase_ == 10) {
4192  intMinBuilder_.mergeFrom(value);
4193  }
4194  intMinBuilder_.setMessage(value);
4195  }
4196  constraintCase_ = 10;
4197  return this;
4198  }
4208  if (intMinBuilder_ == null) {
4209  if (constraintCase_ == 10) {
4210  constraintCase_ = 0;
4211  constraint_ = null;
4212  onChanged();
4213  }
4214  } else {
4215  if (constraintCase_ == 10) {
4216  constraintCase_ = 0;
4217  constraint_ = null;
4218  }
4219  intMinBuilder_.clear();
4220  }
4221  return this;
4222  }
4232  return getIntMinFieldBuilder().getBuilder();
4233  }
4243  if ((constraintCase_ == 10) && (intMinBuilder_ != null)) {
4244  return intMinBuilder_.getMessageOrBuilder();
4245  } else {
4246  if (constraintCase_ == 10) {
4247  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
4248  }
4250  }
4251  }
4260  private com.google.protobuf.SingleFieldBuilderV3<
4262  getIntMinFieldBuilder() {
4263  if (intMinBuilder_ == null) {
4264  if (!(constraintCase_ == 10)) {
4266  }
4267  intMinBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4269  (com.google.ortools.sat.IntegerArgumentProto) constraint_,
4270  getParentForChildren(),
4271  isClean());
4272  constraint_ = null;
4273  }
4274  constraintCase_ = 10;
4275  onChanged();;
4276  return intMinBuilder_;
4277  }
4278 
4279  private com.google.protobuf.SingleFieldBuilderV3<
4289  public boolean hasIntProd() {
4290  return constraintCase_ == 11;
4291  }
4301  if (intProdBuilder_ == null) {
4302  if (constraintCase_ == 11) {
4303  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
4304  }
4306  } else {
4307  if (constraintCase_ == 11) {
4308  return intProdBuilder_.getMessage();
4309  }
4311  }
4312  }
4322  if (intProdBuilder_ == null) {
4323  if (value == null) {
4324  throw new NullPointerException();
4325  }
4326  constraint_ = value;
4327  onChanged();
4328  } else {
4329  intProdBuilder_.setMessage(value);
4330  }
4331  constraintCase_ = 11;
4332  return this;
4333  }
4343  com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue) {
4344  if (intProdBuilder_ == null) {
4345  constraint_ = builderForValue.build();
4346  onChanged();
4347  } else {
4348  intProdBuilder_.setMessage(builderForValue.build());
4349  }
4350  constraintCase_ = 11;
4351  return this;
4352  }
4362  if (intProdBuilder_ == null) {
4363  if (constraintCase_ == 11 &&
4366  .mergeFrom(value).buildPartial();
4367  } else {
4368  constraint_ = value;
4369  }
4370  onChanged();
4371  } else {
4372  if (constraintCase_ == 11) {
4373  intProdBuilder_.mergeFrom(value);
4374  }
4375  intProdBuilder_.setMessage(value);
4376  }
4377  constraintCase_ = 11;
4378  return this;
4379  }
4389  if (intProdBuilder_ == null) {
4390  if (constraintCase_ == 11) {
4391  constraintCase_ = 0;
4392  constraint_ = null;
4393  onChanged();
4394  }
4395  } else {
4396  if (constraintCase_ == 11) {
4397  constraintCase_ = 0;
4398  constraint_ = null;
4399  }
4400  intProdBuilder_.clear();
4401  }
4402  return this;
4403  }
4413  return getIntProdFieldBuilder().getBuilder();
4414  }
4424  if ((constraintCase_ == 11) && (intProdBuilder_ != null)) {
4425  return intProdBuilder_.getMessageOrBuilder();
4426  } else {
4427  if (constraintCase_ == 11) {
4428  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
4429  }
4431  }
4432  }
4441  private com.google.protobuf.SingleFieldBuilderV3<
4443  getIntProdFieldBuilder() {
4444  if (intProdBuilder_ == null) {
4445  if (!(constraintCase_ == 11)) {
4447  }
4448  intProdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4450  (com.google.ortools.sat.IntegerArgumentProto) constraint_,
4451  getParentForChildren(),
4452  isClean());
4453  constraint_ = null;
4454  }
4455  constraintCase_ = 11;
4456  onChanged();;
4457  return intProdBuilder_;
4458  }
4459 
4460  private com.google.protobuf.SingleFieldBuilderV3<
4470  public boolean hasLinear() {
4471  return constraintCase_ == 12;
4472  }
4482  if (linearBuilder_ == null) {
4483  if (constraintCase_ == 12) {
4484  return (com.google.ortools.sat.LinearConstraintProto) constraint_;
4485  }
4487  } else {
4488  if (constraintCase_ == 12) {
4489  return linearBuilder_.getMessage();
4490  }
4492  }
4493  }
4503  if (linearBuilder_ == null) {
4504  if (value == null) {
4505  throw new NullPointerException();
4506  }
4507  constraint_ = value;
4508  onChanged();
4509  } else {
4510  linearBuilder_.setMessage(value);
4511  }
4512  constraintCase_ = 12;
4513  return this;
4514  }
4524  com.google.ortools.sat.LinearConstraintProto.Builder builderForValue) {
4525  if (linearBuilder_ == null) {
4526  constraint_ = builderForValue.build();
4527  onChanged();
4528  } else {
4529  linearBuilder_.setMessage(builderForValue.build());
4530  }
4531  constraintCase_ = 12;
4532  return this;
4533  }
4543  if (linearBuilder_ == null) {
4544  if (constraintCase_ == 12 &&
4547  .mergeFrom(value).buildPartial();
4548  } else {
4549  constraint_ = value;
4550  }
4551  onChanged();
4552  } else {
4553  if (constraintCase_ == 12) {
4554  linearBuilder_.mergeFrom(value);
4555  }
4556  linearBuilder_.setMessage(value);
4557  }
4558  constraintCase_ = 12;
4559  return this;
4560  }
4570  if (linearBuilder_ == null) {
4571  if (constraintCase_ == 12) {
4572  constraintCase_ = 0;
4573  constraint_ = null;
4574  onChanged();
4575  }
4576  } else {
4577  if (constraintCase_ == 12) {
4578  constraintCase_ = 0;
4579  constraint_ = null;
4580  }
4581  linearBuilder_.clear();
4582  }
4583  return this;
4584  }
4594  return getLinearFieldBuilder().getBuilder();
4595  }
4605  if ((constraintCase_ == 12) && (linearBuilder_ != null)) {
4606  return linearBuilder_.getMessageOrBuilder();
4607  } else {
4608  if (constraintCase_ == 12) {
4609  return (com.google.ortools.sat.LinearConstraintProto) constraint_;
4610  }
4612  }
4613  }
4622  private com.google.protobuf.SingleFieldBuilderV3<
4624  getLinearFieldBuilder() {
4625  if (linearBuilder_ == null) {
4626  if (!(constraintCase_ == 12)) {
4628  }
4629  linearBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4631  (com.google.ortools.sat.LinearConstraintProto) constraint_,
4632  getParentForChildren(),
4633  isClean());
4634  constraint_ = null;
4635  }
4636  constraintCase_ = 12;
4637  onChanged();;
4638  return linearBuilder_;
4639  }
4640 
4641  private com.google.protobuf.SingleFieldBuilderV3<
4650  public boolean hasAllDiff() {
4651  return constraintCase_ == 13;
4652  }
4661  if (allDiffBuilder_ == null) {
4662  if (constraintCase_ == 13) {
4663  return (com.google.ortools.sat.AllDifferentConstraintProto) constraint_;
4664  }
4666  } else {
4667  if (constraintCase_ == 13) {
4668  return allDiffBuilder_.getMessage();
4669  }
4671  }
4672  }
4681  if (allDiffBuilder_ == null) {
4682  if (value == null) {
4683  throw new NullPointerException();
4684  }
4685  constraint_ = value;
4686  onChanged();
4687  } else {
4688  allDiffBuilder_.setMessage(value);
4689  }
4690  constraintCase_ = 13;
4691  return this;
4692  }
4702  if (allDiffBuilder_ == null) {
4703  constraint_ = builderForValue.build();
4704  onChanged();
4705  } else {
4706  allDiffBuilder_.setMessage(builderForValue.build());
4707  }
4708  constraintCase_ = 13;
4709  return this;
4710  }
4719  if (allDiffBuilder_ == null) {
4720  if (constraintCase_ == 13 &&
4723  .mergeFrom(value).buildPartial();
4724  } else {
4725  constraint_ = value;
4726  }
4727  onChanged();
4728  } else {
4729  if (constraintCase_ == 13) {
4730  allDiffBuilder_.mergeFrom(value);
4731  }
4732  allDiffBuilder_.setMessage(value);
4733  }
4734  constraintCase_ = 13;
4735  return this;
4736  }
4745  if (allDiffBuilder_ == null) {
4746  if (constraintCase_ == 13) {
4747  constraintCase_ = 0;
4748  constraint_ = null;
4749  onChanged();
4750  }
4751  } else {
4752  if (constraintCase_ == 13) {
4753  constraintCase_ = 0;
4754  constraint_ = null;
4755  }
4756  allDiffBuilder_.clear();
4757  }
4758  return this;
4759  }
4768  return getAllDiffFieldBuilder().getBuilder();
4769  }
4778  if ((constraintCase_ == 13) && (allDiffBuilder_ != null)) {
4779  return allDiffBuilder_.getMessageOrBuilder();
4780  } else {
4781  if (constraintCase_ == 13) {
4782  return (com.google.ortools.sat.AllDifferentConstraintProto) constraint_;
4783  }
4785  }
4786  }
4794  private com.google.protobuf.SingleFieldBuilderV3<
4796  getAllDiffFieldBuilder() {
4797  if (allDiffBuilder_ == null) {
4798  if (!(constraintCase_ == 13)) {
4800  }
4801  allDiffBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4804  getParentForChildren(),
4805  isClean());
4806  constraint_ = null;
4807  }
4808  constraintCase_ = 13;
4809  onChanged();;
4810  return allDiffBuilder_;
4811  }
4812 
4813  private com.google.protobuf.SingleFieldBuilderV3<
4823  public boolean hasElement() {
4824  return constraintCase_ == 14;
4825  }
4835  if (elementBuilder_ == null) {
4836  if (constraintCase_ == 14) {
4837  return (com.google.ortools.sat.ElementConstraintProto) constraint_;
4838  }
4840  } else {
4841  if (constraintCase_ == 14) {
4842  return elementBuilder_.getMessage();
4843  }
4845  }
4846  }
4856  if (elementBuilder_ == null) {
4857  if (value == null) {
4858  throw new NullPointerException();
4859  }
4860  constraint_ = value;
4861  onChanged();
4862  } else {
4863  elementBuilder_.setMessage(value);
4864  }
4865  constraintCase_ = 14;
4866  return this;
4867  }
4877  com.google.ortools.sat.ElementConstraintProto.Builder builderForValue) {
4878  if (elementBuilder_ == null) {
4879  constraint_ = builderForValue.build();
4880  onChanged();
4881  } else {
4882  elementBuilder_.setMessage(builderForValue.build());
4883  }
4884  constraintCase_ = 14;
4885  return this;
4886  }
4896  if (elementBuilder_ == null) {
4897  if (constraintCase_ == 14 &&
4900  .mergeFrom(value).buildPartial();
4901  } else {
4902  constraint_ = value;
4903  }
4904  onChanged();
4905  } else {
4906  if (constraintCase_ == 14) {
4907  elementBuilder_.mergeFrom(value);
4908  }
4909  elementBuilder_.setMessage(value);
4910  }
4911  constraintCase_ = 14;
4912  return this;
4913  }
4923  if (elementBuilder_ == null) {
4924  if (constraintCase_ == 14) {
4925  constraintCase_ = 0;
4926  constraint_ = null;
4927  onChanged();
4928  }
4929  } else {
4930  if (constraintCase_ == 14) {
4931  constraintCase_ = 0;
4932  constraint_ = null;
4933  }
4934  elementBuilder_.clear();
4935  }
4936  return this;
4937  }
4947  return getElementFieldBuilder().getBuilder();
4948  }
4958  if ((constraintCase_ == 14) && (elementBuilder_ != null)) {
4959  return elementBuilder_.getMessageOrBuilder();
4960  } else {
4961  if (constraintCase_ == 14) {
4962  return (com.google.ortools.sat.ElementConstraintProto) constraint_;
4963  }
4965  }
4966  }
4975  private com.google.protobuf.SingleFieldBuilderV3<
4977  getElementFieldBuilder() {
4978  if (elementBuilder_ == null) {
4979  if (!(constraintCase_ == 14)) {
4981  }
4982  elementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4985  getParentForChildren(),
4986  isClean());
4987  constraint_ = null;
4988  }
4989  constraintCase_ = 14;
4990  onChanged();;
4991  return elementBuilder_;
4992  }
4993 
4994  private com.google.protobuf.SingleFieldBuilderV3<
5004  public boolean hasCircuit() {
5005  return constraintCase_ == 15;
5006  }
5016  if (circuitBuilder_ == null) {
5017  if (constraintCase_ == 15) {
5018  return (com.google.ortools.sat.CircuitConstraintProto) constraint_;
5019  }
5021  } else {
5022  if (constraintCase_ == 15) {
5023  return circuitBuilder_.getMessage();
5024  }
5026  }
5027  }
5037  if (circuitBuilder_ == null) {
5038  if (value == null) {
5039  throw new NullPointerException();
5040  }
5041  constraint_ = value;
5042  onChanged();
5043  } else {
5044  circuitBuilder_.setMessage(value);
5045  }
5046  constraintCase_ = 15;
5047  return this;
5048  }
5058  com.google.ortools.sat.CircuitConstraintProto.Builder builderForValue) {
5059  if (circuitBuilder_ == null) {
5060  constraint_ = builderForValue.build();
5061  onChanged();
5062  } else {
5063  circuitBuilder_.setMessage(builderForValue.build());
5064  }
5065  constraintCase_ = 15;
5066  return this;
5067  }
5077  if (circuitBuilder_ == null) {
5078  if (constraintCase_ == 15 &&
5081  .mergeFrom(value).buildPartial();
5082  } else {
5083  constraint_ = value;
5084  }
5085  onChanged();
5086  } else {
5087  if (constraintCase_ == 15) {
5088  circuitBuilder_.mergeFrom(value);
5089  }
5090  circuitBuilder_.setMessage(value);
5091  }
5092  constraintCase_ = 15;
5093  return this;
5094  }
5104  if (circuitBuilder_ == null) {
5105  if (constraintCase_ == 15) {
5106  constraintCase_ = 0;
5107  constraint_ = null;
5108  onChanged();
5109  }
5110  } else {
5111  if (constraintCase_ == 15) {
5112  constraintCase_ = 0;
5113  constraint_ = null;
5114  }
5115  circuitBuilder_.clear();
5116  }
5117  return this;
5118  }
5128  return getCircuitFieldBuilder().getBuilder();
5129  }
5139  if ((constraintCase_ == 15) && (circuitBuilder_ != null)) {
5140  return circuitBuilder_.getMessageOrBuilder();
5141  } else {
5142  if (constraintCase_ == 15) {
5143  return (com.google.ortools.sat.CircuitConstraintProto) constraint_;
5144  }
5146  }
5147  }
5156  private com.google.protobuf.SingleFieldBuilderV3<
5158  getCircuitFieldBuilder() {
5159  if (circuitBuilder_ == null) {
5160  if (!(constraintCase_ == 15)) {
5162  }
5163  circuitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5166  getParentForChildren(),
5167  isClean());
5168  constraint_ = null;
5169  }
5170  constraintCase_ = 15;
5171  onChanged();;
5172  return circuitBuilder_;
5173  }
5174 
5175  private com.google.protobuf.SingleFieldBuilderV3<
5184  public boolean hasRoutes() {
5185  return constraintCase_ == 23;
5186  }
5195  if (routesBuilder_ == null) {
5196  if (constraintCase_ == 23) {
5197  return (com.google.ortools.sat.RoutesConstraintProto) constraint_;
5198  }
5200  } else {
5201  if (constraintCase_ == 23) {
5202  return routesBuilder_.getMessage();
5203  }
5205  }
5206  }
5215  if (routesBuilder_ == null) {
5216  if (value == null) {
5217  throw new NullPointerException();
5218  }
5219  constraint_ = value;
5220  onChanged();
5221  } else {
5222  routesBuilder_.setMessage(value);
5223  }
5224  constraintCase_ = 23;
5225  return this;
5226  }
5235  com.google.ortools.sat.RoutesConstraintProto.Builder builderForValue) {
5236  if (routesBuilder_ == null) {
5237  constraint_ = builderForValue.build();
5238  onChanged();
5239  } else {
5240  routesBuilder_.setMessage(builderForValue.build());
5241  }
5242  constraintCase_ = 23;
5243  return this;
5244  }
5253  if (routesBuilder_ == null) {
5254  if (constraintCase_ == 23 &&
5257  .mergeFrom(value).buildPartial();
5258  } else {
5259  constraint_ = value;
5260  }
5261  onChanged();
5262  } else {
5263  if (constraintCase_ == 23) {
5264  routesBuilder_.mergeFrom(value);
5265  }
5266  routesBuilder_.setMessage(value);
5267  }
5268  constraintCase_ = 23;
5269  return this;
5270  }
5279  if (routesBuilder_ == null) {
5280  if (constraintCase_ == 23) {
5281  constraintCase_ = 0;
5282  constraint_ = null;
5283  onChanged();
5284  }
5285  } else {
5286  if (constraintCase_ == 23) {
5287  constraintCase_ = 0;
5288  constraint_ = null;
5289  }
5290  routesBuilder_.clear();
5291  }
5292  return this;
5293  }
5302  return getRoutesFieldBuilder().getBuilder();
5303  }
5312  if ((constraintCase_ == 23) && (routesBuilder_ != null)) {
5313  return routesBuilder_.getMessageOrBuilder();
5314  } else {
5315  if (constraintCase_ == 23) {
5316  return (com.google.ortools.sat.RoutesConstraintProto) constraint_;
5317  }
5319  }
5320  }
5328  private com.google.protobuf.SingleFieldBuilderV3<
5330  getRoutesFieldBuilder() {
5331  if (routesBuilder_ == null) {
5332  if (!(constraintCase_ == 23)) {
5334  }
5335  routesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5337  (com.google.ortools.sat.RoutesConstraintProto) constraint_,
5338  getParentForChildren(),
5339  isClean());
5340  constraint_ = null;
5341  }
5342  constraintCase_ = 23;
5343  onChanged();;
5344  return routesBuilder_;
5345  }
5346 
5347  private com.google.protobuf.SingleFieldBuilderV3<
5357  public boolean hasCircuitCovering() {
5358  return constraintCase_ == 25;
5359  }
5369  if (circuitCoveringBuilder_ == null) {
5370  if (constraintCase_ == 25) {
5371  return (com.google.ortools.sat.CircuitCoveringConstraintProto) constraint_;
5372  }
5374  } else {
5375  if (constraintCase_ == 25) {
5376  return circuitCoveringBuilder_.getMessage();
5377  }
5379  }
5380  }
5390  if (circuitCoveringBuilder_ == null) {
5391  if (value == null) {
5392  throw new NullPointerException();
5393  }
5394  constraint_ = value;
5395  onChanged();
5396  } else {
5397  circuitCoveringBuilder_.setMessage(value);
5398  }
5399  constraintCase_ = 25;
5400  return this;
5401  }
5412  if (circuitCoveringBuilder_ == null) {
5413  constraint_ = builderForValue.build();
5414  onChanged();
5415  } else {
5416  circuitCoveringBuilder_.setMessage(builderForValue.build());
5417  }
5418  constraintCase_ = 25;
5419  return this;
5420  }
5430  if (circuitCoveringBuilder_ == null) {
5431  if (constraintCase_ == 25 &&
5434  .mergeFrom(value).buildPartial();
5435  } else {
5436  constraint_ = value;
5437  }
5438  onChanged();
5439  } else {
5440  if (constraintCase_ == 25) {
5441  circuitCoveringBuilder_.mergeFrom(value);
5442  }
5443  circuitCoveringBuilder_.setMessage(value);
5444  }
5445  constraintCase_ = 25;
5446  return this;
5447  }
5457  if (circuitCoveringBuilder_ == null) {
5458  if (constraintCase_ == 25) {
5459  constraintCase_ = 0;
5460  constraint_ = null;
5461  onChanged();
5462  }
5463  } else {
5464  if (constraintCase_ == 25) {
5465  constraintCase_ = 0;
5466  constraint_ = null;
5467  }
5468  circuitCoveringBuilder_.clear();
5469  }
5470  return this;
5471  }
5481  return getCircuitCoveringFieldBuilder().getBuilder();
5482  }
5492  if ((constraintCase_ == 25) && (circuitCoveringBuilder_ != null)) {
5493  return circuitCoveringBuilder_.getMessageOrBuilder();
5494  } else {
5495  if (constraintCase_ == 25) {
5496  return (com.google.ortools.sat.CircuitCoveringConstraintProto) constraint_;
5497  }
5499  }
5500  }
5509  private com.google.protobuf.SingleFieldBuilderV3<
5511  getCircuitCoveringFieldBuilder() {
5512  if (circuitCoveringBuilder_ == null) {
5513  if (!(constraintCase_ == 25)) {
5515  }
5516  circuitCoveringBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5519  getParentForChildren(),
5520  isClean());
5521  constraint_ = null;
5522  }
5523  constraintCase_ = 25;
5524  onChanged();;
5525  return circuitCoveringBuilder_;
5526  }
5527 
5528  private com.google.protobuf.SingleFieldBuilderV3<
5538  public boolean hasTable() {
5539  return constraintCase_ == 16;
5540  }
5550  if (tableBuilder_ == null) {
5551  if (constraintCase_ == 16) {
5552  return (com.google.ortools.sat.TableConstraintProto) constraint_;
5553  }
5555  } else {
5556  if (constraintCase_ == 16) {
5557  return tableBuilder_.getMessage();
5558  }
5560  }
5561  }
5571  if (tableBuilder_ == null) {
5572  if (value == null) {
5573  throw new NullPointerException();
5574  }
5575  constraint_ = value;
5576  onChanged();
5577  } else {
5578  tableBuilder_.setMessage(value);
5579  }
5580  constraintCase_ = 16;
5581  return this;
5582  }
5592  com.google.ortools.sat.TableConstraintProto.Builder builderForValue) {
5593  if (tableBuilder_ == null) {
5594  constraint_ = builderForValue.build();
5595  onChanged();
5596  } else {
5597  tableBuilder_.setMessage(builderForValue.build());
5598  }
5599  constraintCase_ = 16;
5600  return this;
5601  }
5611  if (tableBuilder_ == null) {
5612  if (constraintCase_ == 16 &&
5615  .mergeFrom(value).buildPartial();
5616  } else {
5617  constraint_ = value;
5618  }
5619  onChanged();
5620  } else {
5621  if (constraintCase_ == 16) {
5622  tableBuilder_.mergeFrom(value);
5623  }
5624  tableBuilder_.setMessage(value);
5625  }
5626  constraintCase_ = 16;
5627  return this;
5628  }
5637  public Builder clearTable() {
5638  if (tableBuilder_ == null) {
5639  if (constraintCase_ == 16) {
5640  constraintCase_ = 0;
5641  constraint_ = null;
5642  onChanged();
5643  }
5644  } else {
5645  if (constraintCase_ == 16) {
5646  constraintCase_ = 0;
5647  constraint_ = null;
5648  }
5649  tableBuilder_.clear();
5650  }
5651  return this;
5652  }
5662  return getTableFieldBuilder().getBuilder();
5663  }
5673  if ((constraintCase_ == 16) && (tableBuilder_ != null)) {
5674  return tableBuilder_.getMessageOrBuilder();
5675  } else {
5676  if (constraintCase_ == 16) {
5677  return (com.google.ortools.sat.TableConstraintProto) constraint_;
5678  }
5680  }
5681  }
5690  private com.google.protobuf.SingleFieldBuilderV3<
5692  getTableFieldBuilder() {
5693  if (tableBuilder_ == null) {
5694  if (!(constraintCase_ == 16)) {
5696  }
5697  tableBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5699  (com.google.ortools.sat.TableConstraintProto) constraint_,
5700  getParentForChildren(),
5701  isClean());
5702  constraint_ = null;
5703  }
5704  constraintCase_ = 16;
5705  onChanged();;
5706  return tableBuilder_;
5707  }
5708 
5709  private com.google.protobuf.SingleFieldBuilderV3<
5719  public boolean hasAutomaton() {
5720  return constraintCase_ == 17;
5721  }
5731  if (automatonBuilder_ == null) {
5732  if (constraintCase_ == 17) {
5733  return (com.google.ortools.sat.AutomatonConstraintProto) constraint_;
5734  }
5736  } else {
5737  if (constraintCase_ == 17) {
5738  return automatonBuilder_.getMessage();
5739  }
5741  }
5742  }
5752  if (automatonBuilder_ == null) {
5753  if (value == null) {
5754  throw new NullPointerException();
5755  }
5756  constraint_ = value;
5757  onChanged();
5758  } else {
5759  automatonBuilder_.setMessage(value);
5760  }
5761  constraintCase_ = 17;
5762  return this;
5763  }
5774  if (automatonBuilder_ == null) {
5775  constraint_ = builderForValue.build();
5776  onChanged();
5777  } else {
5778  automatonBuilder_.setMessage(builderForValue.build());
5779  }
5780  constraintCase_ = 17;
5781  return this;
5782  }
5792  if (automatonBuilder_ == null) {
5793  if (constraintCase_ == 17 &&
5796  .mergeFrom(value).buildPartial();
5797  } else {
5798  constraint_ = value;
5799  }
5800  onChanged();
5801  } else {
5802  if (constraintCase_ == 17) {
5803  automatonBuilder_.mergeFrom(value);
5804  }
5805  automatonBuilder_.setMessage(value);
5806  }
5807  constraintCase_ = 17;
5808  return this;
5809  }
5819  if (automatonBuilder_ == null) {
5820  if (constraintCase_ == 17) {
5821  constraintCase_ = 0;
5822  constraint_ = null;
5823  onChanged();
5824  }
5825  } else {
5826  if (constraintCase_ == 17) {
5827  constraintCase_ = 0;
5828  constraint_ = null;
5829  }
5830  automatonBuilder_.clear();
5831  }
5832  return this;
5833  }
5843  return getAutomatonFieldBuilder().getBuilder();
5844  }
5854  if ((constraintCase_ == 17) && (automatonBuilder_ != null)) {
5855  return automatonBuilder_.getMessageOrBuilder();
5856  } else {
5857  if (constraintCase_ == 17) {
5858  return (com.google.ortools.sat.AutomatonConstraintProto) constraint_;
5859  }
5861  }
5862  }
5871  private com.google.protobuf.SingleFieldBuilderV3<
5873  getAutomatonFieldBuilder() {
5874  if (automatonBuilder_ == null) {
5875  if (!(constraintCase_ == 17)) {
5877  }
5878  automatonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5881  getParentForChildren(),
5882  isClean());
5883  constraint_ = null;
5884  }
5885  constraintCase_ = 17;
5886  onChanged();;
5887  return automatonBuilder_;
5888  }
5889 
5890  private com.google.protobuf.SingleFieldBuilderV3<
5900  public boolean hasInverse() {
5901  return constraintCase_ == 18;
5902  }
5912  if (inverseBuilder_ == null) {
5913  if (constraintCase_ == 18) {
5914  return (com.google.ortools.sat.InverseConstraintProto) constraint_;
5915  }
5917  } else {
5918  if (constraintCase_ == 18) {
5919  return inverseBuilder_.getMessage();
5920  }
5922  }
5923  }
5933  if (inverseBuilder_ == null) {
5934  if (value == null) {
5935  throw new NullPointerException();
5936  }
5937  constraint_ = value;
5938  onChanged();
5939  } else {
5940  inverseBuilder_.setMessage(value);
5941  }
5942  constraintCase_ = 18;
5943  return this;
5944  }
5954  com.google.ortools.sat.InverseConstraintProto.Builder builderForValue) {
5955  if (inverseBuilder_ == null) {
5956  constraint_ = builderForValue.build();
5957  onChanged();
5958  } else {
5959  inverseBuilder_.setMessage(builderForValue.build());
5960  }
5961  constraintCase_ = 18;
5962  return this;
5963  }
5973  if (inverseBuilder_ == null) {
5974  if (constraintCase_ == 18 &&
5977  .mergeFrom(value).buildPartial();
5978  } else {
5979  constraint_ = value;
5980  }
5981  onChanged();
5982  } else {
5983  if (constraintCase_ == 18) {
5984  inverseBuilder_.mergeFrom(value);
5985  }
5986  inverseBuilder_.setMessage(value);
5987  }
5988  constraintCase_ = 18;
5989  return this;
5990  }
6000  if (inverseBuilder_ == null) {
6001  if (constraintCase_ == 18) {
6002  constraintCase_ = 0;
6003  constraint_ = null;
6004  onChanged();
6005  }
6006  } else {
6007  if (constraintCase_ == 18) {
6008  constraintCase_ = 0;
6009  constraint_ = null;
6010  }
6011  inverseBuilder_.clear();
6012  }
6013  return this;
6014  }
6024  return getInverseFieldBuilder().getBuilder();
6025  }
6035  if ((constraintCase_ == 18) && (inverseBuilder_ != null)) {
6036  return inverseBuilder_.getMessageOrBuilder();
6037  } else {
6038  if (constraintCase_ == 18) {
6039  return (com.google.ortools.sat.InverseConstraintProto) constraint_;
6040  }
6042  }
6043  }
6052  private com.google.protobuf.SingleFieldBuilderV3<
6054  getInverseFieldBuilder() {
6055  if (inverseBuilder_ == null) {
6056  if (!(constraintCase_ == 18)) {
6058  }
6059  inverseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6062  getParentForChildren(),
6063  isClean());
6064  constraint_ = null;
6065  }
6066  constraintCase_ = 18;
6067  onChanged();;
6068  return inverseBuilder_;
6069  }
6070 
6071  private com.google.protobuf.SingleFieldBuilderV3<
6082  public boolean hasReservoir() {
6083  return constraintCase_ == 24;
6084  }
6095  if (reservoirBuilder_ == null) {
6096  if (constraintCase_ == 24) {
6097  return (com.google.ortools.sat.ReservoirConstraintProto) constraint_;
6098  }
6100  } else {
6101  if (constraintCase_ == 24) {
6102  return reservoirBuilder_.getMessage();
6103  }
6105  }
6106  }
6117  if (reservoirBuilder_ == null) {
6118  if (value == null) {
6119  throw new NullPointerException();
6120  }
6121  constraint_ = value;
6122  onChanged();
6123  } else {
6124  reservoirBuilder_.setMessage(value);
6125  }
6126  constraintCase_ = 24;
6127  return this;
6128  }
6140  if (reservoirBuilder_ == null) {
6141  constraint_ = builderForValue.build();
6142  onChanged();
6143  } else {
6144  reservoirBuilder_.setMessage(builderForValue.build());
6145  }
6146  constraintCase_ = 24;
6147  return this;
6148  }
6159  if (reservoirBuilder_ == null) {
6160  if (constraintCase_ == 24 &&
6163  .mergeFrom(value).buildPartial();
6164  } else {
6165  constraint_ = value;
6166  }
6167  onChanged();
6168  } else {
6169  if (constraintCase_ == 24) {
6170  reservoirBuilder_.mergeFrom(value);
6171  }
6172  reservoirBuilder_.setMessage(value);
6173  }
6174  constraintCase_ = 24;
6175  return this;
6176  }
6187  if (reservoirBuilder_ == null) {
6188  if (constraintCase_ == 24) {
6189  constraintCase_ = 0;
6190  constraint_ = null;
6191  onChanged();
6192  }
6193  } else {
6194  if (constraintCase_ == 24) {
6195  constraintCase_ = 0;
6196  constraint_ = null;
6197  }
6198  reservoirBuilder_.clear();
6199  }
6200  return this;
6201  }
6212  return getReservoirFieldBuilder().getBuilder();
6213  }
6224  if ((constraintCase_ == 24) && (reservoirBuilder_ != null)) {
6225  return reservoirBuilder_.getMessageOrBuilder();
6226  } else {
6227  if (constraintCase_ == 24) {
6228  return (com.google.ortools.sat.ReservoirConstraintProto) constraint_;
6229  }
6231  }
6232  }
6242  private com.google.protobuf.SingleFieldBuilderV3<
6244  getReservoirFieldBuilder() {
6245  if (reservoirBuilder_ == null) {
6246  if (!(constraintCase_ == 24)) {
6248  }
6249  reservoirBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6252  getParentForChildren(),
6253  isClean());
6254  constraint_ = null;
6255  }
6256  constraintCase_ = 24;
6257  onChanged();;
6258  return reservoirBuilder_;
6259  }
6260 
6261  private com.google.protobuf.SingleFieldBuilderV3<
6271  public boolean hasInterval() {
6272  return constraintCase_ == 19;
6273  }
6283  if (intervalBuilder_ == null) {
6284  if (constraintCase_ == 19) {
6285  return (com.google.ortools.sat.IntervalConstraintProto) constraint_;
6286  }
6288  } else {
6289  if (constraintCase_ == 19) {
6290  return intervalBuilder_.getMessage();
6291  }
6293  }
6294  }
6304  if (intervalBuilder_ == null) {
6305  if (value == null) {
6306  throw new NullPointerException();
6307  }
6308  constraint_ = value;
6309  onChanged();
6310  } else {
6311  intervalBuilder_.setMessage(value);
6312  }
6313  constraintCase_ = 19;
6314  return this;
6315  }
6326  if (intervalBuilder_ == null) {
6327  constraint_ = builderForValue.build();
6328  onChanged();
6329  } else {
6330  intervalBuilder_.setMessage(builderForValue.build());
6331  }
6332  constraintCase_ = 19;
6333  return this;
6334  }
6344  if (intervalBuilder_ == null) {
6345  if (constraintCase_ == 19 &&
6348  .mergeFrom(value).buildPartial();
6349  } else {
6350  constraint_ = value;
6351  }
6352  onChanged();
6353  } else {
6354  if (constraintCase_ == 19) {
6355  intervalBuilder_.mergeFrom(value);
6356  }
6357  intervalBuilder_.setMessage(value);
6358  }
6359  constraintCase_ = 19;
6360  return this;
6361  }
6371  if (intervalBuilder_ == null) {
6372  if (constraintCase_ == 19) {
6373  constraintCase_ = 0;
6374  constraint_ = null;
6375  onChanged();
6376  }
6377  } else {
6378  if (constraintCase_ == 19) {
6379  constraintCase_ = 0;
6380  constraint_ = null;
6381  }
6382  intervalBuilder_.clear();
6383  }
6384  return this;
6385  }
6395  return getIntervalFieldBuilder().getBuilder();
6396  }
6406  if ((constraintCase_ == 19) && (intervalBuilder_ != null)) {
6407  return intervalBuilder_.getMessageOrBuilder();
6408  } else {
6409  if (constraintCase_ == 19) {
6410  return (com.google.ortools.sat.IntervalConstraintProto) constraint_;
6411  }
6413  }
6414  }
6423  private com.google.protobuf.SingleFieldBuilderV3<
6425  getIntervalFieldBuilder() {
6426  if (intervalBuilder_ == null) {
6427  if (!(constraintCase_ == 19)) {
6429  }
6430  intervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6433  getParentForChildren(),
6434  isClean());
6435  constraint_ = null;
6436  }
6437  constraintCase_ = 19;
6438  onChanged();;
6439  return intervalBuilder_;
6440  }
6441 
6442  private com.google.protobuf.SingleFieldBuilderV3<
6453  public boolean hasNoOverlap() {
6454  return constraintCase_ == 20;
6455  }
6466  if (noOverlapBuilder_ == null) {
6467  if (constraintCase_ == 20) {
6468  return (com.google.ortools.sat.NoOverlapConstraintProto) constraint_;
6469  }
6471  } else {
6472  if (constraintCase_ == 20) {
6473  return noOverlapBuilder_.getMessage();
6474  }
6476  }
6477  }
6488  if (noOverlapBuilder_ == null) {
6489  if (value == null) {
6490  throw new NullPointerException();
6491  }
6492  constraint_ = value;
6493  onChanged();
6494  } else {
6495  noOverlapBuilder_.setMessage(value);
6496  }
6497  constraintCase_ = 20;
6498  return this;
6499  }
6511  if (noOverlapBuilder_ == null) {
6512  constraint_ = builderForValue.build();
6513  onChanged();
6514  } else {
6515  noOverlapBuilder_.setMessage(builderForValue.build());
6516  }
6517  constraintCase_ = 20;
6518  return this;
6519  }
6530  if (noOverlapBuilder_ == null) {
6531  if (constraintCase_ == 20 &&
6534  .mergeFrom(value).buildPartial();
6535  } else {
6536  constraint_ = value;
6537  }
6538  onChanged();
6539  } else {
6540  if (constraintCase_ == 20) {
6541  noOverlapBuilder_.mergeFrom(value);
6542  }
6543  noOverlapBuilder_.setMessage(value);
6544  }
6545  constraintCase_ = 20;
6546  return this;
6547  }
6558  if (noOverlapBuilder_ == null) {
6559  if (constraintCase_ == 20) {
6560  constraintCase_ = 0;
6561  constraint_ = null;
6562  onChanged();
6563  }
6564  } else {
6565  if (constraintCase_ == 20) {
6566  constraintCase_ = 0;
6567  constraint_ = null;
6568  }
6569  noOverlapBuilder_.clear();
6570  }
6571  return this;
6572  }
6583  return getNoOverlapFieldBuilder().getBuilder();
6584  }
6595  if ((constraintCase_ == 20) && (noOverlapBuilder_ != null)) {
6596  return noOverlapBuilder_.getMessageOrBuilder();
6597  } else {
6598  if (constraintCase_ == 20) {
6599  return (com.google.ortools.sat.NoOverlapConstraintProto) constraint_;
6600  }
6602  }
6603  }
6613  private com.google.protobuf.SingleFieldBuilderV3<
6615  getNoOverlapFieldBuilder() {
6616  if (noOverlapBuilder_ == null) {
6617  if (!(constraintCase_ == 20)) {
6619  }
6620  noOverlapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6623  getParentForChildren(),
6624  isClean());
6625  constraint_ = null;
6626  }
6627  constraintCase_ = 20;
6628  onChanged();;
6629  return noOverlapBuilder_;
6630  }
6631 
6632  private com.google.protobuf.SingleFieldBuilderV3<
6641  public boolean hasNoOverlap2D() {
6642  return constraintCase_ == 21;
6643  }
6652  if (noOverlap2DBuilder_ == null) {
6653  if (constraintCase_ == 21) {
6654  return (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_;
6655  }
6657  } else {
6658  if (constraintCase_ == 21) {
6659  return noOverlap2DBuilder_.getMessage();
6660  }
6662  }
6663  }
6672  if (noOverlap2DBuilder_ == null) {
6673  if (value == null) {
6674  throw new NullPointerException();
6675  }
6676  constraint_ = value;
6677  onChanged();
6678  } else {
6679  noOverlap2DBuilder_.setMessage(value);
6680  }
6681  constraintCase_ = 21;
6682  return this;
6683  }
6693  if (noOverlap2DBuilder_ == null) {
6694  constraint_ = builderForValue.build();
6695  onChanged();
6696  } else {
6697  noOverlap2DBuilder_.setMessage(builderForValue.build());
6698  }
6699  constraintCase_ = 21;
6700  return this;
6701  }
6710  if (noOverlap2DBuilder_ == null) {
6711  if (constraintCase_ == 21 &&
6714  .mergeFrom(value).buildPartial();
6715  } else {
6716  constraint_ = value;
6717  }
6718  onChanged();
6719  } else {
6720  if (constraintCase_ == 21) {
6721  noOverlap2DBuilder_.mergeFrom(value);
6722  }
6723  noOverlap2DBuilder_.setMessage(value);
6724  }
6725  constraintCase_ = 21;
6726  return this;
6727  }
6736  if (noOverlap2DBuilder_ == null) {
6737  if (constraintCase_ == 21) {
6738  constraintCase_ = 0;
6739  constraint_ = null;
6740  onChanged();
6741  }
6742  } else {
6743  if (constraintCase_ == 21) {
6744  constraintCase_ = 0;
6745  constraint_ = null;
6746  }
6747  noOverlap2DBuilder_.clear();
6748  }
6749  return this;
6750  }
6759  return getNoOverlap2DFieldBuilder().getBuilder();
6760  }
6769  if ((constraintCase_ == 21) && (noOverlap2DBuilder_ != null)) {
6770  return noOverlap2DBuilder_.getMessageOrBuilder();
6771  } else {
6772  if (constraintCase_ == 21) {
6773  return (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_;
6774  }
6776  }
6777  }
6785  private com.google.protobuf.SingleFieldBuilderV3<
6787  getNoOverlap2DFieldBuilder() {
6788  if (noOverlap2DBuilder_ == null) {
6789  if (!(constraintCase_ == 21)) {
6791  }
6792  noOverlap2DBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6795  getParentForChildren(),
6796  isClean());
6797  constraint_ = null;
6798  }
6799  constraintCase_ = 21;
6800  onChanged();;
6801  return noOverlap2DBuilder_;
6802  }
6803 
6804  private com.google.protobuf.SingleFieldBuilderV3<
6815  public boolean hasCumulative() {
6816  return constraintCase_ == 22;
6817  }
6828  if (cumulativeBuilder_ == null) {
6829  if (constraintCase_ == 22) {
6830  return (com.google.ortools.sat.CumulativeConstraintProto) constraint_;
6831  }
6833  } else {
6834  if (constraintCase_ == 22) {
6835  return cumulativeBuilder_.getMessage();
6836  }
6838  }
6839  }
6850  if (cumulativeBuilder_ == null) {
6851  if (value == null) {
6852  throw new NullPointerException();
6853  }
6854  constraint_ = value;
6855  onChanged();
6856  } else {
6857  cumulativeBuilder_.setMessage(value);
6858  }
6859  constraintCase_ = 22;
6860  return this;
6861  }
6873  if (cumulativeBuilder_ == null) {
6874  constraint_ = builderForValue.build();
6875  onChanged();
6876  } else {
6877  cumulativeBuilder_.setMessage(builderForValue.build());
6878  }
6879  constraintCase_ = 22;
6880  return this;
6881  }
6892  if (cumulativeBuilder_ == null) {
6893  if (constraintCase_ == 22 &&
6896  .mergeFrom(value).buildPartial();
6897  } else {
6898  constraint_ = value;
6899  }
6900  onChanged();
6901  } else {
6902  if (constraintCase_ == 22) {
6903  cumulativeBuilder_.mergeFrom(value);
6904  }
6905  cumulativeBuilder_.setMessage(value);
6906  }
6907  constraintCase_ = 22;
6908  return this;
6909  }
6920  if (cumulativeBuilder_ == null) {
6921  if (constraintCase_ == 22) {
6922  constraintCase_ = 0;
6923  constraint_ = null;
6924  onChanged();
6925  }
6926  } else {
6927  if (constraintCase_ == 22) {
6928  constraintCase_ = 0;
6929  constraint_ = null;
6930  }
6931  cumulativeBuilder_.clear();
6932  }
6933  return this;
6934  }
6945  return getCumulativeFieldBuilder().getBuilder();
6946  }
6957  if ((constraintCase_ == 22) && (cumulativeBuilder_ != null)) {
6958  return cumulativeBuilder_.getMessageOrBuilder();
6959  } else {
6960  if (constraintCase_ == 22) {
6961  return (com.google.ortools.sat.CumulativeConstraintProto) constraint_;
6962  }
6964  }
6965  }
6975  private com.google.protobuf.SingleFieldBuilderV3<
6977  getCumulativeFieldBuilder() {
6978  if (cumulativeBuilder_ == null) {
6979  if (!(constraintCase_ == 22)) {
6981  }
6982  cumulativeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6985  getParentForChildren(),
6986  isClean());
6987  constraint_ = null;
6988  }
6989  constraintCase_ = 22;
6990  onChanged();;
6991  return cumulativeBuilder_;
6992  }
6993  @java.lang.Override
6995  final com.google.protobuf.UnknownFieldSet unknownFields) {
6996  return super.setUnknownFields(unknownFields);
6997  }
6998 
6999  @java.lang.Override
7001  final com.google.protobuf.UnknownFieldSet unknownFields) {
7002  return super.mergeUnknownFields(unknownFields);
7003  }
7004 
7005 
7006  // @@protoc_insertion_point(builder_scope:operations_research.sat.ConstraintProto)
7007  }
7008 
7009  // @@protoc_insertion_point(class_scope:operations_research.sat.ConstraintProto)
7010  private static final com.google.ortools.sat.ConstraintProto DEFAULT_INSTANCE;
7011  static {
7012  DEFAULT_INSTANCE = new com.google.ortools.sat.ConstraintProto();
7013  }
7014 
7016  return DEFAULT_INSTANCE;
7017  }
7018 
7019  private static final com.google.protobuf.Parser<ConstraintProto>
7020  PARSER = new com.google.protobuf.AbstractParser<ConstraintProto>() {
7021  @java.lang.Override
7022  public ConstraintProto parsePartialFrom(
7023  com.google.protobuf.CodedInputStream input,
7024  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7025  throws com.google.protobuf.InvalidProtocolBufferException {
7026  return new ConstraintProto(input, extensionRegistry);
7027  }
7028  };
7029 
7030  public static com.google.protobuf.Parser<ConstraintProto> parser() {
7031  return PARSER;
7032  }
7033 
7034  @java.lang.Override
7035  public com.google.protobuf.Parser<ConstraintProto> getParserForType() {
7036  return PARSER;
7037  }
7038 
7039  @java.lang.Override
7041  return DEFAULT_INSTANCE;
7042  }
7043 
7044 }
7045 
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()
.lang.Override java.lang.Object newInstance(UnusedPrivateParameter unused)
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()