Java Reference

Java Reference

ConstraintProto.java
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ortools/sat/cp_model.proto
3 
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: {
198  com.google.ortools.sat.LinearConstraintProto.Builder subBuilder = null;
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: {
212  com.google.ortools.sat.AllDifferentConstraintProto.Builder subBuilder = null;
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: {
226  com.google.ortools.sat.ElementConstraintProto.Builder subBuilder = null;
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: {
240  com.google.ortools.sat.CircuitConstraintProto.Builder subBuilder = null;
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: {
268  com.google.ortools.sat.AutomatonConstraintProto.Builder subBuilder = null;
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: {
282  com.google.ortools.sat.InverseConstraintProto.Builder subBuilder = null;
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: {
296  com.google.ortools.sat.IntervalConstraintProto.Builder subBuilder = null;
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: {
310  com.google.ortools.sat.NoOverlapConstraintProto.Builder subBuilder = null;
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: {
324  com.google.ortools.sat.NoOverlap2DConstraintProto.Builder subBuilder = null;
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: {
338  com.google.ortools.sat.CumulativeConstraintProto.Builder subBuilder = null;
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: {
352  com.google.ortools.sat.RoutesConstraintProto.Builder subBuilder = null;
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: {
366  com.google.ortools.sat.ReservoirConstraintProto.Builder subBuilder = null;
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 210: {
380  com.google.ortools.sat.BoolArgumentProto.Builder subBuilder = null;
381  if (constraintCase_ == 26) {
382  subBuilder = ((com.google.ortools.sat.BoolArgumentProto) constraint_).toBuilder();
383  }
384  constraint_ =
385  input.readMessage(com.google.ortools.sat.BoolArgumentProto.parser(), extensionRegistry);
386  if (subBuilder != null) {
387  subBuilder.mergeFrom((com.google.ortools.sat.BoolArgumentProto) constraint_);
388  constraint_ = subBuilder.buildPartial();
389  }
390  constraintCase_ = 26;
391  break;
392  }
393  case 218: {
394  com.google.ortools.sat.LinearArgumentProto.Builder subBuilder = null;
395  if (constraintCase_ == 27) {
396  subBuilder = ((com.google.ortools.sat.LinearArgumentProto) constraint_).toBuilder();
397  }
398  constraint_ =
399  input.readMessage(com.google.ortools.sat.LinearArgumentProto.parser(), extensionRegistry);
400  if (subBuilder != null) {
401  subBuilder.mergeFrom((com.google.ortools.sat.LinearArgumentProto) constraint_);
402  constraint_ = subBuilder.buildPartial();
403  }
404  constraintCase_ = 27;
405  break;
406  }
407  case 226: {
408  com.google.ortools.sat.LinearArgumentProto.Builder subBuilder = null;
409  if (constraintCase_ == 28) {
410  subBuilder = ((com.google.ortools.sat.LinearArgumentProto) constraint_).toBuilder();
411  }
412  constraint_ =
413  input.readMessage(com.google.ortools.sat.LinearArgumentProto.parser(), extensionRegistry);
414  if (subBuilder != null) {
415  subBuilder.mergeFrom((com.google.ortools.sat.LinearArgumentProto) constraint_);
416  constraint_ = subBuilder.buildPartial();
417  }
418  constraintCase_ = 28;
419  break;
420  }
421  case 234: {
422  com.google.ortools.sat.BoolArgumentProto.Builder subBuilder = null;
423  if (constraintCase_ == 29) {
424  subBuilder = ((com.google.ortools.sat.BoolArgumentProto) constraint_).toBuilder();
425  }
426  constraint_ =
427  input.readMessage(com.google.ortools.sat.BoolArgumentProto.parser(), extensionRegistry);
428  if (subBuilder != null) {
429  subBuilder.mergeFrom((com.google.ortools.sat.BoolArgumentProto) constraint_);
430  constraint_ = subBuilder.buildPartial();
431  }
432  constraintCase_ = 29;
433  break;
434  }
435  default: {
436  if (!parseUnknownField(
437  input, unknownFields, extensionRegistry, tag)) {
438  done = true;
439  }
440  break;
441  }
442  }
443  }
444  } catch (com.google.protobuf.InvalidProtocolBufferException e) {
445  throw e.setUnfinishedMessage(this);
446  } catch (java.io.IOException e) {
447  throw new com.google.protobuf.InvalidProtocolBufferException(
448  e).setUnfinishedMessage(this);
449  } finally {
450  if (((mutable_bitField0_ & 0x00000001) != 0)) {
451  enforcementLiteral_.makeImmutable(); // C
452  }
453  this.unknownFields = unknownFields.build();
454  makeExtensionsImmutable();
455  }
456  }
457  public static final com.google.protobuf.Descriptors.Descriptor
459  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_descriptor;
460  }
461 
462  @java.lang.Override
463  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
465  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_fieldAccessorTable
466  .ensureFieldAccessorsInitialized(
467  com.google.ortools.sat.ConstraintProto.class, com.google.ortools.sat.ConstraintProto.Builder.class);
468  }
469 
470  private int constraintCase_ = 0;
471  private java.lang.Object constraint_;
472  public enum ConstraintCase
473  implements com.google.protobuf.Internal.EnumLite,
474  com.google.protobuf.AbstractMessage.InternalOneOfEnum {
483  LIN_MAX(27),
484  INT_MIN(10),
485  LIN_MIN(28),
486  INT_PROD(11),
487  LINEAR(12),
488  ALL_DIFF(13),
489  ELEMENT(14),
490  CIRCUIT(15),
491  ROUTES(23),
492  TABLE(16),
494  INVERSE(18),
496  INTERVAL(19),
501  private final int value;
502  private ConstraintCase(int value) {
503  this.value = value;
504  }
510  @java.lang.Deprecated
511  public static ConstraintCase valueOf(int value) {
512  return forNumber(value);
513  }
514 
515  public static ConstraintCase forNumber(int value) {
516  switch (value) {
517  case 3: return BOOL_OR;
518  case 4: return BOOL_AND;
519  case 26: return AT_MOST_ONE;
520  case 29: return EXACTLY_ONE;
521  case 5: return BOOL_XOR;
522  case 7: return INT_DIV;
523  case 8: return INT_MOD;
524  case 9: return INT_MAX;
525  case 27: return LIN_MAX;
526  case 10: return INT_MIN;
527  case 28: return LIN_MIN;
528  case 11: return INT_PROD;
529  case 12: return LINEAR;
530  case 13: return ALL_DIFF;
531  case 14: return ELEMENT;
532  case 15: return CIRCUIT;
533  case 23: return ROUTES;
534  case 16: return TABLE;
535  case 17: return AUTOMATON;
536  case 18: return INVERSE;
537  case 24: return RESERVOIR;
538  case 19: return INTERVAL;
539  case 20: return NO_OVERLAP;
540  case 21: return NO_OVERLAP_2D;
541  case 22: return CUMULATIVE;
542  case 0: return CONSTRAINT_NOT_SET;
543  default: return null;
544  }
545  }
546  public int getNumber() {
547  return this.value;
548  }
549  };
550 
551  public ConstraintCase
553  return ConstraintCase.forNumber(
554  constraintCase_);
555  }
556 
557  public static final int NAME_FIELD_NUMBER = 1;
558  private volatile java.lang.Object name_;
567  @java.lang.Override
568  public java.lang.String getName() {
569  java.lang.Object ref = name_;
570  if (ref instanceof java.lang.String) {
571  return (java.lang.String) ref;
572  } else {
573  com.google.protobuf.ByteString bs =
574  (com.google.protobuf.ByteString) ref;
575  java.lang.String s = bs.toStringUtf8();
576  name_ = s;
577  return s;
578  }
579  }
588  @java.lang.Override
589  public com.google.protobuf.ByteString
591  java.lang.Object ref = name_;
592  if (ref instanceof java.lang.String) {
593  com.google.protobuf.ByteString b =
594  com.google.protobuf.ByteString.copyFromUtf8(
595  (java.lang.String) ref);
596  name_ = b;
597  return b;
598  } else {
599  return (com.google.protobuf.ByteString) ref;
600  }
601  }
602 
603  public static final int ENFORCEMENT_LITERAL_FIELD_NUMBER = 2;
604  private com.google.protobuf.Internal.IntList enforcementLiteral_;
624  @java.lang.Override
625  public java.util.List<java.lang.Integer>
627  return enforcementLiteral_;
628  }
649  return enforcementLiteral_.size();
650  }
671  public int getEnforcementLiteral(int index) {
672  return enforcementLiteral_.getInt(index);
673  }
674  private int enforcementLiteralMemoizedSerializedSize = -1;
675 
676  public static final int BOOL_OR_FIELD_NUMBER = 3;
685  @java.lang.Override
686  public boolean hasBoolOr() {
687  return constraintCase_ == 3;
688  }
697  @java.lang.Override
698  public com.google.ortools.sat.BoolArgumentProto getBoolOr() {
699  if (constraintCase_ == 3) {
700  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
701  }
702  return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
703  }
711  @java.lang.Override
712  public com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolOrOrBuilder() {
713  if (constraintCase_ == 3) {
714  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
715  }
716  return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
717  }
718 
719  public static final int BOOL_AND_FIELD_NUMBER = 4;
731  @java.lang.Override
732  public boolean hasBoolAnd() {
733  return constraintCase_ == 4;
734  }
746  @java.lang.Override
747  public com.google.ortools.sat.BoolArgumentProto getBoolAnd() {
748  if (constraintCase_ == 4) {
749  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
750  }
751  return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
752  }
763  @java.lang.Override
764  public com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolAndOrBuilder() {
765  if (constraintCase_ == 4) {
766  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
767  }
768  return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
769  }
770 
771  public static final int AT_MOST_ONE_FIELD_NUMBER = 26;
788  @java.lang.Override
789  public boolean hasAtMostOne() {
790  return constraintCase_ == 26;
791  }
808  @java.lang.Override
809  public com.google.ortools.sat.BoolArgumentProto getAtMostOne() {
810  if (constraintCase_ == 26) {
811  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
812  }
813  return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
814  }
830  @java.lang.Override
831  public com.google.ortools.sat.BoolArgumentProtoOrBuilder getAtMostOneOrBuilder() {
832  if (constraintCase_ == 26) {
833  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
834  }
835  return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
836  }
837 
838  public static final int EXACTLY_ONE_FIELD_NUMBER = 29;
856  @java.lang.Override
857  public boolean hasExactlyOne() {
858  return constraintCase_ == 29;
859  }
877  @java.lang.Override
878  public com.google.ortools.sat.BoolArgumentProto getExactlyOne() {
879  if (constraintCase_ == 29) {
880  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
881  }
882  return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
883  }
900  @java.lang.Override
901  public com.google.ortools.sat.BoolArgumentProtoOrBuilder getExactlyOneOrBuilder() {
902  if (constraintCase_ == 29) {
903  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
904  }
905  return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
906  }
907 
908  public static final int BOOL_XOR_FIELD_NUMBER = 5;
917  @java.lang.Override
918  public boolean hasBoolXor() {
919  return constraintCase_ == 5;
920  }
929  @java.lang.Override
930  public com.google.ortools.sat.BoolArgumentProto getBoolXor() {
931  if (constraintCase_ == 5) {
932  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
933  }
934  return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
935  }
943  @java.lang.Override
944  public com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolXorOrBuilder() {
945  if (constraintCase_ == 5) {
946  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
947  }
948  return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
949  }
950 
951  public static final int INT_DIV_FIELD_NUMBER = 7;
961  @java.lang.Override
962  public boolean hasIntDiv() {
963  return constraintCase_ == 7;
964  }
974  @java.lang.Override
975  public com.google.ortools.sat.IntegerArgumentProto getIntDiv() {
976  if (constraintCase_ == 7) {
977  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
978  }
979  return com.google.ortools.sat.IntegerArgumentProto.getDefaultInstance();
980  }
989  @java.lang.Override
990  public com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntDivOrBuilder() {
991  if (constraintCase_ == 7) {
992  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
993  }
994  return com.google.ortools.sat.IntegerArgumentProto.getDefaultInstance();
995  }
996 
997  public static final int INT_MOD_FIELD_NUMBER = 8;
1007  @java.lang.Override
1008  public boolean hasIntMod() {
1009  return constraintCase_ == 8;
1010  }
1020  @java.lang.Override
1021  public com.google.ortools.sat.IntegerArgumentProto getIntMod() {
1022  if (constraintCase_ == 8) {
1023  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
1024  }
1025  return com.google.ortools.sat.IntegerArgumentProto.getDefaultInstance();
1026  }
1035  @java.lang.Override
1036  public com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntModOrBuilder() {
1037  if (constraintCase_ == 8) {
1038  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
1039  }
1040  return com.google.ortools.sat.IntegerArgumentProto.getDefaultInstance();
1041  }
1042 
1043  public static final int INT_MAX_FIELD_NUMBER = 9;
1056  @java.lang.Override
1057  public boolean hasIntMax() {
1058  return constraintCase_ == 9;
1059  }
1072  @java.lang.Override
1073  public com.google.ortools.sat.IntegerArgumentProto getIntMax() {
1074  if (constraintCase_ == 9) {
1075  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
1076  }
1077  return com.google.ortools.sat.IntegerArgumentProto.getDefaultInstance();
1078  }
1090  @java.lang.Override
1091  public com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntMaxOrBuilder() {
1092  if (constraintCase_ == 9) {
1093  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
1094  }
1095  return com.google.ortools.sat.IntegerArgumentProto.getDefaultInstance();
1096  }
1097 
1098  public static final int LIN_MAX_FIELD_NUMBER = 27;
1103  @java.lang.Override
1104  public boolean hasLinMax() {
1105  return constraintCase_ == 27;
1106  }
1111  @java.lang.Override
1112  public com.google.ortools.sat.LinearArgumentProto getLinMax() {
1113  if (constraintCase_ == 27) {
1114  return (com.google.ortools.sat.LinearArgumentProto) constraint_;
1115  }
1116  return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
1117  }
1121  @java.lang.Override
1122  public com.google.ortools.sat.LinearArgumentProtoOrBuilder getLinMaxOrBuilder() {
1123  if (constraintCase_ == 27) {
1124  return (com.google.ortools.sat.LinearArgumentProto) constraint_;
1125  }
1126  return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
1127  }
1128 
1129  public static final int INT_MIN_FIELD_NUMBER = 10;
1142  @java.lang.Override
1143  public boolean hasIntMin() {
1144  return constraintCase_ == 10;
1145  }
1158  @java.lang.Override
1159  public com.google.ortools.sat.IntegerArgumentProto getIntMin() {
1160  if (constraintCase_ == 10) {
1161  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
1162  }
1163  return com.google.ortools.sat.IntegerArgumentProto.getDefaultInstance();
1164  }
1176  @java.lang.Override
1177  public com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntMinOrBuilder() {
1178  if (constraintCase_ == 10) {
1179  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
1180  }
1181  return com.google.ortools.sat.IntegerArgumentProto.getDefaultInstance();
1182  }
1183 
1184  public static final int LIN_MIN_FIELD_NUMBER = 28;
1189  @java.lang.Override
1190  public boolean hasLinMin() {
1191  return constraintCase_ == 28;
1192  }
1197  @java.lang.Override
1198  public com.google.ortools.sat.LinearArgumentProto getLinMin() {
1199  if (constraintCase_ == 28) {
1200  return (com.google.ortools.sat.LinearArgumentProto) constraint_;
1201  }
1202  return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
1203  }
1207  @java.lang.Override
1208  public com.google.ortools.sat.LinearArgumentProtoOrBuilder getLinMinOrBuilder() {
1209  if (constraintCase_ == 28) {
1210  return (com.google.ortools.sat.LinearArgumentProto) constraint_;
1211  }
1212  return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
1213  }
1214 
1215  public static final int INT_PROD_FIELD_NUMBER = 11;
1227  @java.lang.Override
1228  public boolean hasIntProd() {
1229  return constraintCase_ == 11;
1230  }
1242  @java.lang.Override
1243  public com.google.ortools.sat.IntegerArgumentProto getIntProd() {
1244  if (constraintCase_ == 11) {
1245  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
1246  }
1247  return com.google.ortools.sat.IntegerArgumentProto.getDefaultInstance();
1248  }
1259  @java.lang.Override
1260  public com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntProdOrBuilder() {
1261  if (constraintCase_ == 11) {
1262  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
1263  }
1264  return com.google.ortools.sat.IntegerArgumentProto.getDefaultInstance();
1265  }
1266 
1267  public static final int LINEAR_FIELD_NUMBER = 12;
1277  @java.lang.Override
1278  public boolean hasLinear() {
1279  return constraintCase_ == 12;
1280  }
1290  @java.lang.Override
1291  public com.google.ortools.sat.LinearConstraintProto getLinear() {
1292  if (constraintCase_ == 12) {
1293  return (com.google.ortools.sat.LinearConstraintProto) constraint_;
1294  }
1295  return com.google.ortools.sat.LinearConstraintProto.getDefaultInstance();
1296  }
1305  @java.lang.Override
1306  public com.google.ortools.sat.LinearConstraintProtoOrBuilder getLinearOrBuilder() {
1307  if (constraintCase_ == 12) {
1308  return (com.google.ortools.sat.LinearConstraintProto) constraint_;
1309  }
1310  return com.google.ortools.sat.LinearConstraintProto.getDefaultInstance();
1311  }
1312 
1313  public static final int ALL_DIFF_FIELD_NUMBER = 13;
1322  @java.lang.Override
1323  public boolean hasAllDiff() {
1324  return constraintCase_ == 13;
1325  }
1334  @java.lang.Override
1335  public com.google.ortools.sat.AllDifferentConstraintProto getAllDiff() {
1336  if (constraintCase_ == 13) {
1337  return (com.google.ortools.sat.AllDifferentConstraintProto) constraint_;
1338  }
1339  return com.google.ortools.sat.AllDifferentConstraintProto.getDefaultInstance();
1340  }
1348  @java.lang.Override
1349  public com.google.ortools.sat.AllDifferentConstraintProtoOrBuilder getAllDiffOrBuilder() {
1350  if (constraintCase_ == 13) {
1351  return (com.google.ortools.sat.AllDifferentConstraintProto) constraint_;
1352  }
1353  return com.google.ortools.sat.AllDifferentConstraintProto.getDefaultInstance();
1354  }
1355 
1356  public static final int ELEMENT_FIELD_NUMBER = 14;
1366  @java.lang.Override
1367  public boolean hasElement() {
1368  return constraintCase_ == 14;
1369  }
1379  @java.lang.Override
1380  public com.google.ortools.sat.ElementConstraintProto getElement() {
1381  if (constraintCase_ == 14) {
1382  return (com.google.ortools.sat.ElementConstraintProto) constraint_;
1383  }
1384  return com.google.ortools.sat.ElementConstraintProto.getDefaultInstance();
1385  }
1394  @java.lang.Override
1395  public com.google.ortools.sat.ElementConstraintProtoOrBuilder getElementOrBuilder() {
1396  if (constraintCase_ == 14) {
1397  return (com.google.ortools.sat.ElementConstraintProto) constraint_;
1398  }
1399  return com.google.ortools.sat.ElementConstraintProto.getDefaultInstance();
1400  }
1401 
1402  public static final int CIRCUIT_FIELD_NUMBER = 15;
1412  @java.lang.Override
1413  public boolean hasCircuit() {
1414  return constraintCase_ == 15;
1415  }
1425  @java.lang.Override
1426  public com.google.ortools.sat.CircuitConstraintProto getCircuit() {
1427  if (constraintCase_ == 15) {
1428  return (com.google.ortools.sat.CircuitConstraintProto) constraint_;
1429  }
1430  return com.google.ortools.sat.CircuitConstraintProto.getDefaultInstance();
1431  }
1440  @java.lang.Override
1441  public com.google.ortools.sat.CircuitConstraintProtoOrBuilder getCircuitOrBuilder() {
1442  if (constraintCase_ == 15) {
1443  return (com.google.ortools.sat.CircuitConstraintProto) constraint_;
1444  }
1445  return com.google.ortools.sat.CircuitConstraintProto.getDefaultInstance();
1446  }
1447 
1448  public static final int ROUTES_FIELD_NUMBER = 23;
1457  @java.lang.Override
1458  public boolean hasRoutes() {
1459  return constraintCase_ == 23;
1460  }
1469  @java.lang.Override
1470  public com.google.ortools.sat.RoutesConstraintProto getRoutes() {
1471  if (constraintCase_ == 23) {
1472  return (com.google.ortools.sat.RoutesConstraintProto) constraint_;
1473  }
1474  return com.google.ortools.sat.RoutesConstraintProto.getDefaultInstance();
1475  }
1483  @java.lang.Override
1484  public com.google.ortools.sat.RoutesConstraintProtoOrBuilder getRoutesOrBuilder() {
1485  if (constraintCase_ == 23) {
1486  return (com.google.ortools.sat.RoutesConstraintProto) constraint_;
1487  }
1488  return com.google.ortools.sat.RoutesConstraintProto.getDefaultInstance();
1489  }
1490 
1491  public static final int TABLE_FIELD_NUMBER = 16;
1501  @java.lang.Override
1502  public boolean hasTable() {
1503  return constraintCase_ == 16;
1504  }
1514  @java.lang.Override
1515  public com.google.ortools.sat.TableConstraintProto getTable() {
1516  if (constraintCase_ == 16) {
1517  return (com.google.ortools.sat.TableConstraintProto) constraint_;
1518  }
1519  return com.google.ortools.sat.TableConstraintProto.getDefaultInstance();
1520  }
1529  @java.lang.Override
1530  public com.google.ortools.sat.TableConstraintProtoOrBuilder getTableOrBuilder() {
1531  if (constraintCase_ == 16) {
1532  return (com.google.ortools.sat.TableConstraintProto) constraint_;
1533  }
1534  return com.google.ortools.sat.TableConstraintProto.getDefaultInstance();
1535  }
1536 
1537  public static final int AUTOMATON_FIELD_NUMBER = 17;
1547  @java.lang.Override
1548  public boolean hasAutomaton() {
1549  return constraintCase_ == 17;
1550  }
1560  @java.lang.Override
1561  public com.google.ortools.sat.AutomatonConstraintProto getAutomaton() {
1562  if (constraintCase_ == 17) {
1563  return (com.google.ortools.sat.AutomatonConstraintProto) constraint_;
1564  }
1565  return com.google.ortools.sat.AutomatonConstraintProto.getDefaultInstance();
1566  }
1575  @java.lang.Override
1576  public com.google.ortools.sat.AutomatonConstraintProtoOrBuilder getAutomatonOrBuilder() {
1577  if (constraintCase_ == 17) {
1578  return (com.google.ortools.sat.AutomatonConstraintProto) constraint_;
1579  }
1580  return com.google.ortools.sat.AutomatonConstraintProto.getDefaultInstance();
1581  }
1582 
1583  public static final int INVERSE_FIELD_NUMBER = 18;
1593  @java.lang.Override
1594  public boolean hasInverse() {
1595  return constraintCase_ == 18;
1596  }
1606  @java.lang.Override
1607  public com.google.ortools.sat.InverseConstraintProto getInverse() {
1608  if (constraintCase_ == 18) {
1609  return (com.google.ortools.sat.InverseConstraintProto) constraint_;
1610  }
1611  return com.google.ortools.sat.InverseConstraintProto.getDefaultInstance();
1612  }
1621  @java.lang.Override
1622  public com.google.ortools.sat.InverseConstraintProtoOrBuilder getInverseOrBuilder() {
1623  if (constraintCase_ == 18) {
1624  return (com.google.ortools.sat.InverseConstraintProto) constraint_;
1625  }
1626  return com.google.ortools.sat.InverseConstraintProto.getDefaultInstance();
1627  }
1628 
1629  public static final int RESERVOIR_FIELD_NUMBER = 24;
1640  @java.lang.Override
1641  public boolean hasReservoir() {
1642  return constraintCase_ == 24;
1643  }
1654  @java.lang.Override
1655  public com.google.ortools.sat.ReservoirConstraintProto getReservoir() {
1656  if (constraintCase_ == 24) {
1657  return (com.google.ortools.sat.ReservoirConstraintProto) constraint_;
1658  }
1659  return com.google.ortools.sat.ReservoirConstraintProto.getDefaultInstance();
1660  }
1670  @java.lang.Override
1671  public com.google.ortools.sat.ReservoirConstraintProtoOrBuilder getReservoirOrBuilder() {
1672  if (constraintCase_ == 24) {
1673  return (com.google.ortools.sat.ReservoirConstraintProto) constraint_;
1674  }
1675  return com.google.ortools.sat.ReservoirConstraintProto.getDefaultInstance();
1676  }
1677 
1678  public static final int INTERVAL_FIELD_NUMBER = 19;
1688  @java.lang.Override
1689  public boolean hasInterval() {
1690  return constraintCase_ == 19;
1691  }
1701  @java.lang.Override
1702  public com.google.ortools.sat.IntervalConstraintProto getInterval() {
1703  if (constraintCase_ == 19) {
1704  return (com.google.ortools.sat.IntervalConstraintProto) constraint_;
1705  }
1706  return com.google.ortools.sat.IntervalConstraintProto.getDefaultInstance();
1707  }
1716  @java.lang.Override
1717  public com.google.ortools.sat.IntervalConstraintProtoOrBuilder getIntervalOrBuilder() {
1718  if (constraintCase_ == 19) {
1719  return (com.google.ortools.sat.IntervalConstraintProto) constraint_;
1720  }
1721  return com.google.ortools.sat.IntervalConstraintProto.getDefaultInstance();
1722  }
1723 
1724  public static final int NO_OVERLAP_FIELD_NUMBER = 20;
1735  @java.lang.Override
1736  public boolean hasNoOverlap() {
1737  return constraintCase_ == 20;
1738  }
1749  @java.lang.Override
1750  public com.google.ortools.sat.NoOverlapConstraintProto getNoOverlap() {
1751  if (constraintCase_ == 20) {
1752  return (com.google.ortools.sat.NoOverlapConstraintProto) constraint_;
1753  }
1754  return com.google.ortools.sat.NoOverlapConstraintProto.getDefaultInstance();
1755  }
1765  @java.lang.Override
1766  public com.google.ortools.sat.NoOverlapConstraintProtoOrBuilder getNoOverlapOrBuilder() {
1767  if (constraintCase_ == 20) {
1768  return (com.google.ortools.sat.NoOverlapConstraintProto) constraint_;
1769  }
1770  return com.google.ortools.sat.NoOverlapConstraintProto.getDefaultInstance();
1771  }
1772 
1773  public static final int NO_OVERLAP_2D_FIELD_NUMBER = 21;
1782  @java.lang.Override
1783  public boolean hasNoOverlap2D() {
1784  return constraintCase_ == 21;
1785  }
1794  @java.lang.Override
1795  public com.google.ortools.sat.NoOverlap2DConstraintProto getNoOverlap2D() {
1796  if (constraintCase_ == 21) {
1797  return (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_;
1798  }
1799  return com.google.ortools.sat.NoOverlap2DConstraintProto.getDefaultInstance();
1800  }
1808  @java.lang.Override
1809  public com.google.ortools.sat.NoOverlap2DConstraintProtoOrBuilder getNoOverlap2DOrBuilder() {
1810  if (constraintCase_ == 21) {
1811  return (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_;
1812  }
1813  return com.google.ortools.sat.NoOverlap2DConstraintProto.getDefaultInstance();
1814  }
1815 
1816  public static final int CUMULATIVE_FIELD_NUMBER = 22;
1827  @java.lang.Override
1828  public boolean hasCumulative() {
1829  return constraintCase_ == 22;
1830  }
1841  @java.lang.Override
1842  public com.google.ortools.sat.CumulativeConstraintProto getCumulative() {
1843  if (constraintCase_ == 22) {
1844  return (com.google.ortools.sat.CumulativeConstraintProto) constraint_;
1845  }
1846  return com.google.ortools.sat.CumulativeConstraintProto.getDefaultInstance();
1847  }
1857  @java.lang.Override
1858  public com.google.ortools.sat.CumulativeConstraintProtoOrBuilder getCumulativeOrBuilder() {
1859  if (constraintCase_ == 22) {
1860  return (com.google.ortools.sat.CumulativeConstraintProto) constraint_;
1861  }
1862  return com.google.ortools.sat.CumulativeConstraintProto.getDefaultInstance();
1863  }
1864 
1865  private byte memoizedIsInitialized = -1;
1866  @java.lang.Override
1867  public final boolean isInitialized() {
1868  byte isInitialized = memoizedIsInitialized;
1869  if (isInitialized == 1) return true;
1870  if (isInitialized == 0) return false;
1871 
1872  memoizedIsInitialized = 1;
1873  return true;
1874  }
1875 
1876  @java.lang.Override
1877  public void writeTo(com.google.protobuf.CodedOutputStream output)
1878  throws java.io.IOException {
1880  if (!getNameBytes().isEmpty()) {
1881  com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
1882  }
1883  if (getEnforcementLiteralList().size() > 0) {
1884  output.writeUInt32NoTag(18);
1885  output.writeUInt32NoTag(enforcementLiteralMemoizedSerializedSize);
1886  }
1887  for (int i = 0; i < enforcementLiteral_.size(); i++) {
1888  output.writeInt32NoTag(enforcementLiteral_.getInt(i));
1889  }
1890  if (constraintCase_ == 3) {
1891  output.writeMessage(3, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1892  }
1893  if (constraintCase_ == 4) {
1894  output.writeMessage(4, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1895  }
1896  if (constraintCase_ == 5) {
1897  output.writeMessage(5, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1898  }
1899  if (constraintCase_ == 7) {
1900  output.writeMessage(7, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1901  }
1902  if (constraintCase_ == 8) {
1903  output.writeMessage(8, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1904  }
1905  if (constraintCase_ == 9) {
1906  output.writeMessage(9, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1907  }
1908  if (constraintCase_ == 10) {
1909  output.writeMessage(10, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1910  }
1911  if (constraintCase_ == 11) {
1912  output.writeMessage(11, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1913  }
1914  if (constraintCase_ == 12) {
1915  output.writeMessage(12, (com.google.ortools.sat.LinearConstraintProto) constraint_);
1916  }
1917  if (constraintCase_ == 13) {
1918  output.writeMessage(13, (com.google.ortools.sat.AllDifferentConstraintProto) constraint_);
1919  }
1920  if (constraintCase_ == 14) {
1921  output.writeMessage(14, (com.google.ortools.sat.ElementConstraintProto) constraint_);
1922  }
1923  if (constraintCase_ == 15) {
1924  output.writeMessage(15, (com.google.ortools.sat.CircuitConstraintProto) constraint_);
1925  }
1926  if (constraintCase_ == 16) {
1927  output.writeMessage(16, (com.google.ortools.sat.TableConstraintProto) constraint_);
1928  }
1929  if (constraintCase_ == 17) {
1930  output.writeMessage(17, (com.google.ortools.sat.AutomatonConstraintProto) constraint_);
1931  }
1932  if (constraintCase_ == 18) {
1933  output.writeMessage(18, (com.google.ortools.sat.InverseConstraintProto) constraint_);
1934  }
1935  if (constraintCase_ == 19) {
1936  output.writeMessage(19, (com.google.ortools.sat.IntervalConstraintProto) constraint_);
1937  }
1938  if (constraintCase_ == 20) {
1939  output.writeMessage(20, (com.google.ortools.sat.NoOverlapConstraintProto) constraint_);
1940  }
1941  if (constraintCase_ == 21) {
1942  output.writeMessage(21, (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_);
1943  }
1944  if (constraintCase_ == 22) {
1945  output.writeMessage(22, (com.google.ortools.sat.CumulativeConstraintProto) constraint_);
1946  }
1947  if (constraintCase_ == 23) {
1948  output.writeMessage(23, (com.google.ortools.sat.RoutesConstraintProto) constraint_);
1949  }
1950  if (constraintCase_ == 24) {
1951  output.writeMessage(24, (com.google.ortools.sat.ReservoirConstraintProto) constraint_);
1952  }
1953  if (constraintCase_ == 26) {
1954  output.writeMessage(26, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1955  }
1956  if (constraintCase_ == 27) {
1957  output.writeMessage(27, (com.google.ortools.sat.LinearArgumentProto) constraint_);
1958  }
1959  if (constraintCase_ == 28) {
1960  output.writeMessage(28, (com.google.ortools.sat.LinearArgumentProto) constraint_);
1961  }
1962  if (constraintCase_ == 29) {
1963  output.writeMessage(29, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1964  }
1965  unknownFields.writeTo(output);
1966  }
1967 
1968  @java.lang.Override
1969  public int getSerializedSize() {
1970  int size = memoizedSize;
1971  if (size != -1) return size;
1972 
1973  size = 0;
1974  if (!getNameBytes().isEmpty()) {
1975  size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
1976  }
1977  {
1978  int dataSize = 0;
1979  for (int i = 0; i < enforcementLiteral_.size(); i++) {
1980  dataSize += com.google.protobuf.CodedOutputStream
1981  .computeInt32SizeNoTag(enforcementLiteral_.getInt(i));
1982  }
1983  size += dataSize;
1984  if (!getEnforcementLiteralList().isEmpty()) {
1985  size += 1;
1986  size += com.google.protobuf.CodedOutputStream
1987  .computeInt32SizeNoTag(dataSize);
1988  }
1989  enforcementLiteralMemoizedSerializedSize = dataSize;
1990  }
1991  if (constraintCase_ == 3) {
1992  size += com.google.protobuf.CodedOutputStream
1993  .computeMessageSize(3, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1994  }
1995  if (constraintCase_ == 4) {
1996  size += com.google.protobuf.CodedOutputStream
1997  .computeMessageSize(4, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1998  }
1999  if (constraintCase_ == 5) {
2000  size += com.google.protobuf.CodedOutputStream
2001  .computeMessageSize(5, (com.google.ortools.sat.BoolArgumentProto) constraint_);
2002  }
2003  if (constraintCase_ == 7) {
2004  size += com.google.protobuf.CodedOutputStream
2005  .computeMessageSize(7, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
2006  }
2007  if (constraintCase_ == 8) {
2008  size += com.google.protobuf.CodedOutputStream
2009  .computeMessageSize(8, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
2010  }
2011  if (constraintCase_ == 9) {
2012  size += com.google.protobuf.CodedOutputStream
2013  .computeMessageSize(9, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
2014  }
2015  if (constraintCase_ == 10) {
2016  size += com.google.protobuf.CodedOutputStream
2017  .computeMessageSize(10, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
2018  }
2019  if (constraintCase_ == 11) {
2020  size += com.google.protobuf.CodedOutputStream
2021  .computeMessageSize(11, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
2022  }
2023  if (constraintCase_ == 12) {
2024  size += com.google.protobuf.CodedOutputStream
2025  .computeMessageSize(12, (com.google.ortools.sat.LinearConstraintProto) constraint_);
2026  }
2027  if (constraintCase_ == 13) {
2028  size += com.google.protobuf.CodedOutputStream
2029  .computeMessageSize(13, (com.google.ortools.sat.AllDifferentConstraintProto) constraint_);
2030  }
2031  if (constraintCase_ == 14) {
2032  size += com.google.protobuf.CodedOutputStream
2033  .computeMessageSize(14, (com.google.ortools.sat.ElementConstraintProto) constraint_);
2034  }
2035  if (constraintCase_ == 15) {
2036  size += com.google.protobuf.CodedOutputStream
2037  .computeMessageSize(15, (com.google.ortools.sat.CircuitConstraintProto) constraint_);
2038  }
2039  if (constraintCase_ == 16) {
2040  size += com.google.protobuf.CodedOutputStream
2041  .computeMessageSize(16, (com.google.ortools.sat.TableConstraintProto) constraint_);
2042  }
2043  if (constraintCase_ == 17) {
2044  size += com.google.protobuf.CodedOutputStream
2045  .computeMessageSize(17, (com.google.ortools.sat.AutomatonConstraintProto) constraint_);
2046  }
2047  if (constraintCase_ == 18) {
2048  size += com.google.protobuf.CodedOutputStream
2049  .computeMessageSize(18, (com.google.ortools.sat.InverseConstraintProto) constraint_);
2050  }
2051  if (constraintCase_ == 19) {
2052  size += com.google.protobuf.CodedOutputStream
2053  .computeMessageSize(19, (com.google.ortools.sat.IntervalConstraintProto) constraint_);
2054  }
2055  if (constraintCase_ == 20) {
2056  size += com.google.protobuf.CodedOutputStream
2057  .computeMessageSize(20, (com.google.ortools.sat.NoOverlapConstraintProto) constraint_);
2058  }
2059  if (constraintCase_ == 21) {
2060  size += com.google.protobuf.CodedOutputStream
2061  .computeMessageSize(21, (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_);
2062  }
2063  if (constraintCase_ == 22) {
2064  size += com.google.protobuf.CodedOutputStream
2065  .computeMessageSize(22, (com.google.ortools.sat.CumulativeConstraintProto) constraint_);
2066  }
2067  if (constraintCase_ == 23) {
2068  size += com.google.protobuf.CodedOutputStream
2069  .computeMessageSize(23, (com.google.ortools.sat.RoutesConstraintProto) constraint_);
2070  }
2071  if (constraintCase_ == 24) {
2072  size += com.google.protobuf.CodedOutputStream
2073  .computeMessageSize(24, (com.google.ortools.sat.ReservoirConstraintProto) constraint_);
2074  }
2075  if (constraintCase_ == 26) {
2076  size += com.google.protobuf.CodedOutputStream
2077  .computeMessageSize(26, (com.google.ortools.sat.BoolArgumentProto) constraint_);
2078  }
2079  if (constraintCase_ == 27) {
2080  size += com.google.protobuf.CodedOutputStream
2081  .computeMessageSize(27, (com.google.ortools.sat.LinearArgumentProto) constraint_);
2082  }
2083  if (constraintCase_ == 28) {
2084  size += com.google.protobuf.CodedOutputStream
2085  .computeMessageSize(28, (com.google.ortools.sat.LinearArgumentProto) constraint_);
2086  }
2087  if (constraintCase_ == 29) {
2088  size += com.google.protobuf.CodedOutputStream
2089  .computeMessageSize(29, (com.google.ortools.sat.BoolArgumentProto) constraint_);
2090  }
2091  size += unknownFields.getSerializedSize();
2092  memoizedSize = size;
2093  return size;
2094  }
2095 
2096  @java.lang.Override
2097  public boolean equals(final java.lang.Object obj) {
2098  if (obj == this) {
2099  return true;
2100  }
2101  if (!(obj instanceof com.google.ortools.sat.ConstraintProto)) {
2102  return super.equals(obj);
2103  }
2104  com.google.ortools.sat.ConstraintProto other = (com.google.ortools.sat.ConstraintProto) obj;
2105 
2106  if (!getName()
2107  .equals(other.getName())) return false;
2109  .equals(other.getEnforcementLiteralList())) return false;
2110  if (!getConstraintCase().equals(other.getConstraintCase())) return false;
2111  switch (constraintCase_) {
2112  case 3:
2113  if (!getBoolOr()
2114  .equals(other.getBoolOr())) return false;
2115  break;
2116  case 4:
2117  if (!getBoolAnd()
2118  .equals(other.getBoolAnd())) return false;
2119  break;
2120  case 26:
2121  if (!getAtMostOne()
2122  .equals(other.getAtMostOne())) return false;
2123  break;
2124  case 29:
2125  if (!getExactlyOne()
2126  .equals(other.getExactlyOne())) return false;
2127  break;
2128  case 5:
2129  if (!getBoolXor()
2130  .equals(other.getBoolXor())) return false;
2131  break;
2132  case 7:
2133  if (!getIntDiv()
2134  .equals(other.getIntDiv())) return false;
2135  break;
2136  case 8:
2137  if (!getIntMod()
2138  .equals(other.getIntMod())) return false;
2139  break;
2140  case 9:
2141  if (!getIntMax()
2142  .equals(other.getIntMax())) return false;
2143  break;
2144  case 27:
2145  if (!getLinMax()
2146  .equals(other.getLinMax())) return false;
2147  break;
2148  case 10:
2149  if (!getIntMin()
2150  .equals(other.getIntMin())) return false;
2151  break;
2152  case 28:
2153  if (!getLinMin()
2154  .equals(other.getLinMin())) return false;
2155  break;
2156  case 11:
2157  if (!getIntProd()
2158  .equals(other.getIntProd())) return false;
2159  break;
2160  case 12:
2161  if (!getLinear()
2162  .equals(other.getLinear())) return false;
2163  break;
2164  case 13:
2165  if (!getAllDiff()
2166  .equals(other.getAllDiff())) return false;
2167  break;
2168  case 14:
2169  if (!getElement()
2170  .equals(other.getElement())) return false;
2171  break;
2172  case 15:
2173  if (!getCircuit()
2174  .equals(other.getCircuit())) return false;
2175  break;
2176  case 23:
2177  if (!getRoutes()
2178  .equals(other.getRoutes())) return false;
2179  break;
2180  case 16:
2181  if (!getTable()
2182  .equals(other.getTable())) return false;
2183  break;
2184  case 17:
2185  if (!getAutomaton()
2186  .equals(other.getAutomaton())) return false;
2187  break;
2188  case 18:
2189  if (!getInverse()
2190  .equals(other.getInverse())) return false;
2191  break;
2192  case 24:
2193  if (!getReservoir()
2194  .equals(other.getReservoir())) return false;
2195  break;
2196  case 19:
2197  if (!getInterval()
2198  .equals(other.getInterval())) return false;
2199  break;
2200  case 20:
2201  if (!getNoOverlap()
2202  .equals(other.getNoOverlap())) return false;
2203  break;
2204  case 21:
2205  if (!getNoOverlap2D()
2206  .equals(other.getNoOverlap2D())) return false;
2207  break;
2208  case 22:
2209  if (!getCumulative()
2210  .equals(other.getCumulative())) return false;
2211  break;
2212  case 0:
2213  default:
2214  }
2215  if (!unknownFields.equals(other.unknownFields)) return false;
2216  return true;
2217  }
2218 
2219  @java.lang.Override
2220  public int hashCode() {
2221  if (memoizedHashCode != 0) {
2222  return memoizedHashCode;
2223  }
2224  int hash = 41;
2225  hash = (19 * hash) + getDescriptor().hashCode();
2226  hash = (37 * hash) + NAME_FIELD_NUMBER;
2227  hash = (53 * hash) + getName().hashCode();
2228  if (getEnforcementLiteralCount() > 0) {
2229  hash = (37 * hash) + ENFORCEMENT_LITERAL_FIELD_NUMBER;
2230  hash = (53 * hash) + getEnforcementLiteralList().hashCode();
2231  }
2232  switch (constraintCase_) {
2233  case 3:
2234  hash = (37 * hash) + BOOL_OR_FIELD_NUMBER;
2235  hash = (53 * hash) + getBoolOr().hashCode();
2236  break;
2237  case 4:
2238  hash = (37 * hash) + BOOL_AND_FIELD_NUMBER;
2239  hash = (53 * hash) + getBoolAnd().hashCode();
2240  break;
2241  case 26:
2242  hash = (37 * hash) + AT_MOST_ONE_FIELD_NUMBER;
2243  hash = (53 * hash) + getAtMostOne().hashCode();
2244  break;
2245  case 29:
2246  hash = (37 * hash) + EXACTLY_ONE_FIELD_NUMBER;
2247  hash = (53 * hash) + getExactlyOne().hashCode();
2248  break;
2249  case 5:
2250  hash = (37 * hash) + BOOL_XOR_FIELD_NUMBER;
2251  hash = (53 * hash) + getBoolXor().hashCode();
2252  break;
2253  case 7:
2254  hash = (37 * hash) + INT_DIV_FIELD_NUMBER;
2255  hash = (53 * hash) + getIntDiv().hashCode();
2256  break;
2257  case 8:
2258  hash = (37 * hash) + INT_MOD_FIELD_NUMBER;
2259  hash = (53 * hash) + getIntMod().hashCode();
2260  break;
2261  case 9:
2262  hash = (37 * hash) + INT_MAX_FIELD_NUMBER;
2263  hash = (53 * hash) + getIntMax().hashCode();
2264  break;
2265  case 27:
2266  hash = (37 * hash) + LIN_MAX_FIELD_NUMBER;
2267  hash = (53 * hash) + getLinMax().hashCode();
2268  break;
2269  case 10:
2270  hash = (37 * hash) + INT_MIN_FIELD_NUMBER;
2271  hash = (53 * hash) + getIntMin().hashCode();
2272  break;
2273  case 28:
2274  hash = (37 * hash) + LIN_MIN_FIELD_NUMBER;
2275  hash = (53 * hash) + getLinMin().hashCode();
2276  break;
2277  case 11:
2278  hash = (37 * hash) + INT_PROD_FIELD_NUMBER;
2279  hash = (53 * hash) + getIntProd().hashCode();
2280  break;
2281  case 12:
2282  hash = (37 * hash) + LINEAR_FIELD_NUMBER;
2283  hash = (53 * hash) + getLinear().hashCode();
2284  break;
2285  case 13:
2286  hash = (37 * hash) + ALL_DIFF_FIELD_NUMBER;
2287  hash = (53 * hash) + getAllDiff().hashCode();
2288  break;
2289  case 14:
2290  hash = (37 * hash) + ELEMENT_FIELD_NUMBER;
2291  hash = (53 * hash) + getElement().hashCode();
2292  break;
2293  case 15:
2294  hash = (37 * hash) + CIRCUIT_FIELD_NUMBER;
2295  hash = (53 * hash) + getCircuit().hashCode();
2296  break;
2297  case 23:
2298  hash = (37 * hash) + ROUTES_FIELD_NUMBER;
2299  hash = (53 * hash) + getRoutes().hashCode();
2300  break;
2301  case 16:
2302  hash = (37 * hash) + TABLE_FIELD_NUMBER;
2303  hash = (53 * hash) + getTable().hashCode();
2304  break;
2305  case 17:
2306  hash = (37 * hash) + AUTOMATON_FIELD_NUMBER;
2307  hash = (53 * hash) + getAutomaton().hashCode();
2308  break;
2309  case 18:
2310  hash = (37 * hash) + INVERSE_FIELD_NUMBER;
2311  hash = (53 * hash) + getInverse().hashCode();
2312  break;
2313  case 24:
2314  hash = (37 * hash) + RESERVOIR_FIELD_NUMBER;
2315  hash = (53 * hash) + getReservoir().hashCode();
2316  break;
2317  case 19:
2318  hash = (37 * hash) + INTERVAL_FIELD_NUMBER;
2319  hash = (53 * hash) + getInterval().hashCode();
2320  break;
2321  case 20:
2322  hash = (37 * hash) + NO_OVERLAP_FIELD_NUMBER;
2323  hash = (53 * hash) + getNoOverlap().hashCode();
2324  break;
2325  case 21:
2326  hash = (37 * hash) + NO_OVERLAP_2D_FIELD_NUMBER;
2327  hash = (53 * hash) + getNoOverlap2D().hashCode();
2328  break;
2329  case 22:
2330  hash = (37 * hash) + CUMULATIVE_FIELD_NUMBER;
2331  hash = (53 * hash) + getCumulative().hashCode();
2332  break;
2333  case 0:
2334  default:
2335  }
2336  hash = (29 * hash) + unknownFields.hashCode();
2337  memoizedHashCode = hash;
2338  return hash;
2339  }
2340 
2341  public static com.google.ortools.sat.ConstraintProto parseFrom(
2342  java.nio.ByteBuffer data)
2343  throws com.google.protobuf.InvalidProtocolBufferException {
2344  return PARSER.parseFrom(data);
2345  }
2346  public static com.google.ortools.sat.ConstraintProto parseFrom(
2347  java.nio.ByteBuffer data,
2348  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2349  throws com.google.protobuf.InvalidProtocolBufferException {
2350  return PARSER.parseFrom(data, extensionRegistry);
2351  }
2352  public static com.google.ortools.sat.ConstraintProto parseFrom(
2353  com.google.protobuf.ByteString data)
2354  throws com.google.protobuf.InvalidProtocolBufferException {
2355  return PARSER.parseFrom(data);
2356  }
2357  public static com.google.ortools.sat.ConstraintProto parseFrom(
2358  com.google.protobuf.ByteString data,
2359  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2360  throws com.google.protobuf.InvalidProtocolBufferException {
2361  return PARSER.parseFrom(data, extensionRegistry);
2362  }
2363  public static com.google.ortools.sat.ConstraintProto parseFrom(byte[] data)
2364  throws com.google.protobuf.InvalidProtocolBufferException {
2365  return PARSER.parseFrom(data);
2366  }
2367  public static com.google.ortools.sat.ConstraintProto parseFrom(
2368  byte[] data,
2369  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2370  throws com.google.protobuf.InvalidProtocolBufferException {
2371  return PARSER.parseFrom(data, extensionRegistry);
2372  }
2373  public static com.google.ortools.sat.ConstraintProto parseFrom(java.io.InputStream input)
2374  throws java.io.IOException {
2375  return com.google.protobuf.GeneratedMessageV3
2376  .parseWithIOException(PARSER, input);
2377  }
2378  public static com.google.ortools.sat.ConstraintProto parseFrom(
2379  java.io.InputStream input,
2380  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2381  throws java.io.IOException {
2382  return com.google.protobuf.GeneratedMessageV3
2383  .parseWithIOException(PARSER, input, extensionRegistry);
2384  }
2385  public static com.google.ortools.sat.ConstraintProto parseDelimitedFrom(java.io.InputStream input)
2386  throws java.io.IOException {
2387  return com.google.protobuf.GeneratedMessageV3
2388  .parseDelimitedWithIOException(PARSER, input);
2389  }
2390  public static com.google.ortools.sat.ConstraintProto parseDelimitedFrom(
2391  java.io.InputStream input,
2392  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2393  throws java.io.IOException {
2394  return com.google.protobuf.GeneratedMessageV3
2395  .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
2396  }
2397  public static com.google.ortools.sat.ConstraintProto parseFrom(
2398  com.google.protobuf.CodedInputStream input)
2399  throws java.io.IOException {
2400  return com.google.protobuf.GeneratedMessageV3
2401  .parseWithIOException(PARSER, input);
2402  }
2403  public static com.google.ortools.sat.ConstraintProto parseFrom(
2404  com.google.protobuf.CodedInputStream input,
2405  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2406  throws java.io.IOException {
2407  return com.google.protobuf.GeneratedMessageV3
2408  .parseWithIOException(PARSER, input, extensionRegistry);
2409  }
2410 
2411  @java.lang.Override
2412  public Builder newBuilderForType() { return newBuilder(); }
2413  public static Builder newBuilder() {
2414  return DEFAULT_INSTANCE.toBuilder();
2415  }
2416  public static Builder newBuilder(com.google.ortools.sat.ConstraintProto prototype) {
2417  return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
2418  }
2419  @java.lang.Override
2420  public Builder toBuilder() {
2421  return this == DEFAULT_INSTANCE
2422  ? new Builder() : new Builder().mergeFrom(this);
2423  }
2424 
2425  @java.lang.Override
2427  com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
2428  Builder builder = new Builder(parent);
2429  return builder;
2430  }
2438  public static final class Builder extends
2439  com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
2440  // @@protoc_insertion_point(builder_implements:operations_research.sat.ConstraintProto)
2441  com.google.ortools.sat.ConstraintProtoOrBuilder {
2442  public static final com.google.protobuf.Descriptors.Descriptor
2444  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_descriptor;
2445  }
2446 
2447  @java.lang.Override
2448  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
2450  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_fieldAccessorTable
2451  .ensureFieldAccessorsInitialized(
2452  com.google.ortools.sat.ConstraintProto.class, com.google.ortools.sat.ConstraintProto.Builder.class);
2453  }
2454 
2455  // Construct using com.google.ortools.sat.ConstraintProto.newBuilder()
2456  private Builder() {
2457  maybeForceBuilderInitialization();
2458  }
2459 
2460  private Builder(
2461  com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
2462  super(parent);
2463  maybeForceBuilderInitialization();
2464  }
2465  private void maybeForceBuilderInitialization() {
2466  if (com.google.protobuf.GeneratedMessageV3
2467  .alwaysUseFieldBuilders) {
2468  }
2469  }
2470  @java.lang.Override
2471  public Builder clear() {
2472  super.clear();
2473  name_ = "";
2474 
2475  enforcementLiteral_ = emptyIntList();
2476  bitField0_ = (bitField0_ & ~0x00000001);
2477  constraintCase_ = 0;
2478  constraint_ = null;
2479  return this;
2480  }
2481 
2482  @java.lang.Override
2483  public com.google.protobuf.Descriptors.Descriptor
2485  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_descriptor;
2486  }
2487 
2488  @java.lang.Override
2489  public com.google.ortools.sat.ConstraintProto getDefaultInstanceForType() {
2490  return com.google.ortools.sat.ConstraintProto.getDefaultInstance();
2491  }
2492 
2493  @java.lang.Override
2494  public com.google.ortools.sat.ConstraintProto build() {
2495  com.google.ortools.sat.ConstraintProto result = buildPartial();
2496  if (!result.isInitialized()) {
2497  throw newUninitializedMessageException(result);
2498  }
2499  return result;
2500  }
2501 
2502  @java.lang.Override
2503  public com.google.ortools.sat.ConstraintProto buildPartial() {
2504  com.google.ortools.sat.ConstraintProto result = new com.google.ortools.sat.ConstraintProto(this);
2505  int from_bitField0_ = bitField0_;
2506  result.name_ = name_;
2507  if (((bitField0_ & 0x00000001) != 0)) {
2508  enforcementLiteral_.makeImmutable();
2509  bitField0_ = (bitField0_ & ~0x00000001);
2510  }
2511  result.enforcementLiteral_ = enforcementLiteral_;
2512  if (constraintCase_ == 3) {
2513  if (boolOrBuilder_ == null) {
2514  result.constraint_ = constraint_;
2515  } else {
2516  result.constraint_ = boolOrBuilder_.build();
2517  }
2518  }
2519  if (constraintCase_ == 4) {
2520  if (boolAndBuilder_ == null) {
2521  result.constraint_ = constraint_;
2522  } else {
2523  result.constraint_ = boolAndBuilder_.build();
2524  }
2525  }
2526  if (constraintCase_ == 26) {
2527  if (atMostOneBuilder_ == null) {
2528  result.constraint_ = constraint_;
2529  } else {
2530  result.constraint_ = atMostOneBuilder_.build();
2531  }
2532  }
2533  if (constraintCase_ == 29) {
2534  if (exactlyOneBuilder_ == null) {
2535  result.constraint_ = constraint_;
2536  } else {
2537  result.constraint_ = exactlyOneBuilder_.build();
2538  }
2539  }
2540  if (constraintCase_ == 5) {
2541  if (boolXorBuilder_ == null) {
2542  result.constraint_ = constraint_;
2543  } else {
2544  result.constraint_ = boolXorBuilder_.build();
2545  }
2546  }
2547  if (constraintCase_ == 7) {
2548  if (intDivBuilder_ == null) {
2549  result.constraint_ = constraint_;
2550  } else {
2551  result.constraint_ = intDivBuilder_.build();
2552  }
2553  }
2554  if (constraintCase_ == 8) {
2555  if (intModBuilder_ == null) {
2556  result.constraint_ = constraint_;
2557  } else {
2558  result.constraint_ = intModBuilder_.build();
2559  }
2560  }
2561  if (constraintCase_ == 9) {
2562  if (intMaxBuilder_ == null) {
2563  result.constraint_ = constraint_;
2564  } else {
2565  result.constraint_ = intMaxBuilder_.build();
2566  }
2567  }
2568  if (constraintCase_ == 27) {
2569  if (linMaxBuilder_ == null) {
2570  result.constraint_ = constraint_;
2571  } else {
2572  result.constraint_ = linMaxBuilder_.build();
2573  }
2574  }
2575  if (constraintCase_ == 10) {
2576  if (intMinBuilder_ == null) {
2577  result.constraint_ = constraint_;
2578  } else {
2579  result.constraint_ = intMinBuilder_.build();
2580  }
2581  }
2582  if (constraintCase_ == 28) {
2583  if (linMinBuilder_ == null) {
2584  result.constraint_ = constraint_;
2585  } else {
2586  result.constraint_ = linMinBuilder_.build();
2587  }
2588  }
2589  if (constraintCase_ == 11) {
2590  if (intProdBuilder_ == null) {
2591  result.constraint_ = constraint_;
2592  } else {
2593  result.constraint_ = intProdBuilder_.build();
2594  }
2595  }
2596  if (constraintCase_ == 12) {
2597  if (linearBuilder_ == null) {
2598  result.constraint_ = constraint_;
2599  } else {
2600  result.constraint_ = linearBuilder_.build();
2601  }
2602  }
2603  if (constraintCase_ == 13) {
2604  if (allDiffBuilder_ == null) {
2605  result.constraint_ = constraint_;
2606  } else {
2607  result.constraint_ = allDiffBuilder_.build();
2608  }
2609  }
2610  if (constraintCase_ == 14) {
2611  if (elementBuilder_ == null) {
2612  result.constraint_ = constraint_;
2613  } else {
2614  result.constraint_ = elementBuilder_.build();
2615  }
2616  }
2617  if (constraintCase_ == 15) {
2618  if (circuitBuilder_ == null) {
2619  result.constraint_ = constraint_;
2620  } else {
2621  result.constraint_ = circuitBuilder_.build();
2622  }
2623  }
2624  if (constraintCase_ == 23) {
2625  if (routesBuilder_ == null) {
2626  result.constraint_ = constraint_;
2627  } else {
2628  result.constraint_ = routesBuilder_.build();
2629  }
2630  }
2631  if (constraintCase_ == 16) {
2632  if (tableBuilder_ == null) {
2633  result.constraint_ = constraint_;
2634  } else {
2635  result.constraint_ = tableBuilder_.build();
2636  }
2637  }
2638  if (constraintCase_ == 17) {
2639  if (automatonBuilder_ == null) {
2640  result.constraint_ = constraint_;
2641  } else {
2642  result.constraint_ = automatonBuilder_.build();
2643  }
2644  }
2645  if (constraintCase_ == 18) {
2646  if (inverseBuilder_ == null) {
2647  result.constraint_ = constraint_;
2648  } else {
2649  result.constraint_ = inverseBuilder_.build();
2650  }
2651  }
2652  if (constraintCase_ == 24) {
2653  if (reservoirBuilder_ == null) {
2654  result.constraint_ = constraint_;
2655  } else {
2656  result.constraint_ = reservoirBuilder_.build();
2657  }
2658  }
2659  if (constraintCase_ == 19) {
2660  if (intervalBuilder_ == null) {
2661  result.constraint_ = constraint_;
2662  } else {
2663  result.constraint_ = intervalBuilder_.build();
2664  }
2665  }
2666  if (constraintCase_ == 20) {
2667  if (noOverlapBuilder_ == null) {
2668  result.constraint_ = constraint_;
2669  } else {
2670  result.constraint_ = noOverlapBuilder_.build();
2671  }
2672  }
2673  if (constraintCase_ == 21) {
2674  if (noOverlap2DBuilder_ == null) {
2675  result.constraint_ = constraint_;
2676  } else {
2677  result.constraint_ = noOverlap2DBuilder_.build();
2678  }
2679  }
2680  if (constraintCase_ == 22) {
2681  if (cumulativeBuilder_ == null) {
2682  result.constraint_ = constraint_;
2683  } else {
2684  result.constraint_ = cumulativeBuilder_.build();
2685  }
2686  }
2687  result.constraintCase_ = constraintCase_;
2688  onBuilt();
2689  return result;
2690  }
2691 
2692  @java.lang.Override
2693  public Builder clone() {
2694  return super.clone();
2695  }
2696  @java.lang.Override
2698  com.google.protobuf.Descriptors.FieldDescriptor field,
2699  java.lang.Object value) {
2700  return super.setField(field, value);
2701  }
2702  @java.lang.Override
2704  com.google.protobuf.Descriptors.FieldDescriptor field) {
2705  return super.clearField(field);
2706  }
2707  @java.lang.Override
2709  com.google.protobuf.Descriptors.OneofDescriptor oneof) {
2710  return super.clearOneof(oneof);
2711  }
2712  @java.lang.Override
2714  com.google.protobuf.Descriptors.FieldDescriptor field,
2715  int index, java.lang.Object value) {
2716  return super.setRepeatedField(field, index, value);
2717  }
2718  @java.lang.Override
2720  com.google.protobuf.Descriptors.FieldDescriptor field,
2721  java.lang.Object value) {
2722  return super.addRepeatedField(field, value);
2723  }
2724  @java.lang.Override
2725  public Builder mergeFrom(com.google.protobuf.Message other) {
2726  if (other instanceof com.google.ortools.sat.ConstraintProto) {
2727  return mergeFrom((com.google.ortools.sat.ConstraintProto)other);
2728  } else {
2729  super.mergeFrom(other);
2730  return this;
2731  }
2732  }
2733 
2734  public Builder mergeFrom(com.google.ortools.sat.ConstraintProto other) {
2735  if (other == com.google.ortools.sat.ConstraintProto.getDefaultInstance()) return this;
2736  if (!other.getName().isEmpty()) {
2737  name_ = other.name_;
2738  onChanged();
2739  }
2740  if (!other.enforcementLiteral_.isEmpty()) {
2741  if (enforcementLiteral_.isEmpty()) {
2742  enforcementLiteral_ = other.enforcementLiteral_;
2743  bitField0_ = (bitField0_ & ~0x00000001);
2744  } else {
2745  ensureEnforcementLiteralIsMutable();
2746  enforcementLiteral_.addAll(other.enforcementLiteral_);
2747  }
2748  onChanged();
2749  }
2750  switch (other.getConstraintCase()) {
2751  case BOOL_OR: {
2752  mergeBoolOr(other.getBoolOr());
2753  break;
2754  }
2755  case BOOL_AND: {
2756  mergeBoolAnd(other.getBoolAnd());
2757  break;
2758  }
2759  case AT_MOST_ONE: {
2760  mergeAtMostOne(other.getAtMostOne());
2761  break;
2762  }
2763  case EXACTLY_ONE: {
2764  mergeExactlyOne(other.getExactlyOne());
2765  break;
2766  }
2767  case BOOL_XOR: {
2768  mergeBoolXor(other.getBoolXor());
2769  break;
2770  }
2771  case INT_DIV: {
2772  mergeIntDiv(other.getIntDiv());
2773  break;
2774  }
2775  case INT_MOD: {
2776  mergeIntMod(other.getIntMod());
2777  break;
2778  }
2779  case INT_MAX: {
2780  mergeIntMax(other.getIntMax());
2781  break;
2782  }
2783  case LIN_MAX: {
2784  mergeLinMax(other.getLinMax());
2785  break;
2786  }
2787  case INT_MIN: {
2788  mergeIntMin(other.getIntMin());
2789  break;
2790  }
2791  case LIN_MIN: {
2792  mergeLinMin(other.getLinMin());
2793  break;
2794  }
2795  case INT_PROD: {
2796  mergeIntProd(other.getIntProd());
2797  break;
2798  }
2799  case LINEAR: {
2800  mergeLinear(other.getLinear());
2801  break;
2802  }
2803  case ALL_DIFF: {
2804  mergeAllDiff(other.getAllDiff());
2805  break;
2806  }
2807  case ELEMENT: {
2808  mergeElement(other.getElement());
2809  break;
2810  }
2811  case CIRCUIT: {
2812  mergeCircuit(other.getCircuit());
2813  break;
2814  }
2815  case ROUTES: {
2816  mergeRoutes(other.getRoutes());
2817  break;
2818  }
2819  case TABLE: {
2820  mergeTable(other.getTable());
2821  break;
2822  }
2823  case AUTOMATON: {
2824  mergeAutomaton(other.getAutomaton());
2825  break;
2826  }
2827  case INVERSE: {
2828  mergeInverse(other.getInverse());
2829  break;
2830  }
2831  case RESERVOIR: {
2832  mergeReservoir(other.getReservoir());
2833  break;
2834  }
2835  case INTERVAL: {
2836  mergeInterval(other.getInterval());
2837  break;
2838  }
2839  case NO_OVERLAP: {
2840  mergeNoOverlap(other.getNoOverlap());
2841  break;
2842  }
2843  case NO_OVERLAP_2D: {
2844  mergeNoOverlap2D(other.getNoOverlap2D());
2845  break;
2846  }
2847  case CUMULATIVE: {
2848  mergeCumulative(other.getCumulative());
2849  break;
2850  }
2851  case CONSTRAINT_NOT_SET: {
2852  break;
2853  }
2854  }
2855  this.mergeUnknownFields(other.unknownFields);
2856  onChanged();
2857  return this;
2858  }
2859 
2860  @java.lang.Override
2861  public final boolean isInitialized() {
2862  return true;
2863  }
2864 
2865  @java.lang.Override
2867  com.google.protobuf.CodedInputStream input,
2868  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2869  throws java.io.IOException {
2870  com.google.ortools.sat.ConstraintProto parsedMessage = null;
2871  try {
2872  parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
2873  } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2874  parsedMessage = (com.google.ortools.sat.ConstraintProto) e.getUnfinishedMessage();
2875  throw e.unwrapIOException();
2876  } finally {
2877  if (parsedMessage != null) {
2878  mergeFrom(parsedMessage);
2879  }
2880  }
2881  return this;
2882  }
2883  private int constraintCase_ = 0;
2884  private java.lang.Object constraint_;
2885  public ConstraintCase
2887  return ConstraintCase.forNumber(
2888  constraintCase_);
2889  }
2890 
2892  constraintCase_ = 0;
2893  constraint_ = null;
2894  onChanged();
2895  return this;
2896  }
2897 
2898  private int bitField0_;
2899 
2900  private java.lang.Object name_ = "";
2909  public java.lang.String getName() {
2910  java.lang.Object ref = name_;
2911  if (!(ref instanceof java.lang.String)) {
2912  com.google.protobuf.ByteString bs =
2913  (com.google.protobuf.ByteString) ref;
2914  java.lang.String s = bs.toStringUtf8();
2915  name_ = s;
2916  return s;
2917  } else {
2918  return (java.lang.String) ref;
2919  }
2920  }
2929  public com.google.protobuf.ByteString
2931  java.lang.Object ref = name_;
2932  if (ref instanceof String) {
2933  com.google.protobuf.ByteString b =
2934  com.google.protobuf.ByteString.copyFromUtf8(
2935  (java.lang.String) ref);
2936  name_ = b;
2937  return b;
2938  } else {
2939  return (com.google.protobuf.ByteString) ref;
2940  }
2941  }
2952  java.lang.String value) {
2953  if (value == null) {
2954  throw new NullPointerException();
2955  }
2956 
2957  name_ = value;
2958  onChanged();
2959  return this;
2960  }
2969  public Builder clearName() {
2970 
2971  name_ = getDefaultInstance().getName();
2972  onChanged();
2973  return this;
2974  }
2985  com.google.protobuf.ByteString value) {
2986  if (value == null) {
2987  throw new NullPointerException();
2988  }
2989  checkByteStringIsUtf8(value);
2990 
2991  name_ = value;
2992  onChanged();
2993  return this;
2994  }
2995 
2996  private com.google.protobuf.Internal.IntList enforcementLiteral_ = emptyIntList();
2997  private void ensureEnforcementLiteralIsMutable() {
2998  if (!((bitField0_ & 0x00000001) != 0)) {
2999  enforcementLiteral_ = mutableCopy(enforcementLiteral_);
3000  bitField0_ |= 0x00000001;
3001  }
3002  }
3022  public java.util.List<java.lang.Integer>
3024  return ((bitField0_ & 0x00000001) != 0) ?
3025  java.util.Collections.unmodifiableList(enforcementLiteral_) : enforcementLiteral_;
3026  }
3047  return enforcementLiteral_.size();
3048  }
3069  public int getEnforcementLiteral(int index) {
3070  return enforcementLiteral_.getInt(index);
3071  }
3094  int index, int value) {
3095  ensureEnforcementLiteralIsMutable();
3096  enforcementLiteral_.setInt(index, value);
3097  onChanged();
3098  return this;
3099  }
3120  public Builder addEnforcementLiteral(int value) {
3121  ensureEnforcementLiteralIsMutable();
3122  enforcementLiteral_.addInt(value);
3123  onChanged();
3124  return this;
3125  }
3147  java.lang.Iterable<? extends java.lang.Integer> values) {
3148  ensureEnforcementLiteralIsMutable();
3149  com.google.protobuf.AbstractMessageLite.Builder.addAll(
3150  values, enforcementLiteral_);
3151  onChanged();
3152  return this;
3153  }
3174  enforcementLiteral_ = emptyIntList();
3175  bitField0_ = (bitField0_ & ~0x00000001);
3176  onChanged();
3177  return this;
3178  }
3179 
3180  private com.google.protobuf.SingleFieldBuilderV3<
3181  com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder> boolOrBuilder_;
3190  @java.lang.Override
3191  public boolean hasBoolOr() {
3192  return constraintCase_ == 3;
3193  }
3202  @java.lang.Override
3203  public com.google.ortools.sat.BoolArgumentProto getBoolOr() {
3204  if (boolOrBuilder_ == null) {
3205  if (constraintCase_ == 3) {
3206  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3207  }
3208  return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3209  } else {
3210  if (constraintCase_ == 3) {
3211  return boolOrBuilder_.getMessage();
3212  }
3213  return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3214  }
3215  }
3223  public Builder setBoolOr(com.google.ortools.sat.BoolArgumentProto value) {
3224  if (boolOrBuilder_ == null) {
3225  if (value == null) {
3226  throw new NullPointerException();
3227  }
3228  constraint_ = value;
3229  onChanged();
3230  } else {
3231  boolOrBuilder_.setMessage(value);
3232  }
3233  constraintCase_ = 3;
3234  return this;
3235  }
3244  com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
3245  if (boolOrBuilder_ == null) {
3246  constraint_ = builderForValue.build();
3247  onChanged();
3248  } else {
3249  boolOrBuilder_.setMessage(builderForValue.build());
3250  }
3251  constraintCase_ = 3;
3252  return this;
3253  }
3261  public Builder mergeBoolOr(com.google.ortools.sat.BoolArgumentProto value) {
3262  if (boolOrBuilder_ == null) {
3263  if (constraintCase_ == 3 &&
3264  constraint_ != com.google.ortools.sat.BoolArgumentProto.getDefaultInstance()) {
3265  constraint_ = com.google.ortools.sat.BoolArgumentProto.newBuilder((com.google.ortools.sat.BoolArgumentProto) constraint_)
3266  .mergeFrom(value).buildPartial();
3267  } else {
3268  constraint_ = value;
3269  }
3270  onChanged();
3271  } else {
3272  if (constraintCase_ == 3) {
3273  boolOrBuilder_.mergeFrom(value);
3274  }
3275  boolOrBuilder_.setMessage(value);
3276  }
3277  constraintCase_ = 3;
3278  return this;
3279  }
3288  if (boolOrBuilder_ == null) {
3289  if (constraintCase_ == 3) {
3290  constraintCase_ = 0;
3291  constraint_ = null;
3292  onChanged();
3293  }
3294  } else {
3295  if (constraintCase_ == 3) {
3296  constraintCase_ = 0;
3297  constraint_ = null;
3298  }
3299  boolOrBuilder_.clear();
3300  }
3301  return this;
3302  }
3310  public com.google.ortools.sat.BoolArgumentProto.Builder getBoolOrBuilder() {
3311  return getBoolOrFieldBuilder().getBuilder();
3312  }
3320  @java.lang.Override
3321  public com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolOrOrBuilder() {
3322  if ((constraintCase_ == 3) && (boolOrBuilder_ != null)) {
3323  return boolOrBuilder_.getMessageOrBuilder();
3324  } else {
3325  if (constraintCase_ == 3) {
3326  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3327  }
3328  return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3329  }
3330  }
3338  private com.google.protobuf.SingleFieldBuilderV3<
3339  com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder>
3340  getBoolOrFieldBuilder() {
3341  if (boolOrBuilder_ == null) {
3342  if (!(constraintCase_ == 3)) {
3343  constraint_ = com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3344  }
3345  boolOrBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
3346  com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder>(
3347  (com.google.ortools.sat.BoolArgumentProto) constraint_,
3348  getParentForChildren(),
3349  isClean());
3350  constraint_ = null;
3351  }
3352  constraintCase_ = 3;
3353  onChanged();;
3354  return boolOrBuilder_;
3355  }
3356 
3357  private com.google.protobuf.SingleFieldBuilderV3<
3358  com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder> boolAndBuilder_;
3370  @java.lang.Override
3371  public boolean hasBoolAnd() {
3372  return constraintCase_ == 4;
3373  }
3385  @java.lang.Override
3386  public com.google.ortools.sat.BoolArgumentProto getBoolAnd() {
3387  if (boolAndBuilder_ == null) {
3388  if (constraintCase_ == 4) {
3389  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3390  }
3391  return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3392  } else {
3393  if (constraintCase_ == 4) {
3394  return boolAndBuilder_.getMessage();
3395  }
3396  return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3397  }
3398  }
3409  public Builder setBoolAnd(com.google.ortools.sat.BoolArgumentProto value) {
3410  if (boolAndBuilder_ == null) {
3411  if (value == null) {
3412  throw new NullPointerException();
3413  }
3414  constraint_ = value;
3415  onChanged();
3416  } else {
3417  boolAndBuilder_.setMessage(value);
3418  }
3419  constraintCase_ = 4;
3420  return this;
3421  }
3433  com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
3434  if (boolAndBuilder_ == null) {
3435  constraint_ = builderForValue.build();
3436  onChanged();
3437  } else {
3438  boolAndBuilder_.setMessage(builderForValue.build());
3439  }
3440  constraintCase_ = 4;
3441  return this;
3442  }
3453  public Builder mergeBoolAnd(com.google.ortools.sat.BoolArgumentProto value) {
3454  if (boolAndBuilder_ == null) {
3455  if (constraintCase_ == 4 &&
3456  constraint_ != com.google.ortools.sat.BoolArgumentProto.getDefaultInstance()) {
3457  constraint_ = com.google.ortools.sat.BoolArgumentProto.newBuilder((com.google.ortools.sat.BoolArgumentProto) constraint_)
3458  .mergeFrom(value).buildPartial();
3459  } else {
3460  constraint_ = value;
3461  }
3462  onChanged();
3463  } else {
3464  if (constraintCase_ == 4) {
3465  boolAndBuilder_.mergeFrom(value);
3466  }
3467  boolAndBuilder_.setMessage(value);
3468  }
3469  constraintCase_ = 4;
3470  return this;
3471  }
3483  if (boolAndBuilder_ == null) {
3484  if (constraintCase_ == 4) {
3485  constraintCase_ = 0;
3486  constraint_ = null;
3487  onChanged();
3488  }
3489  } else {
3490  if (constraintCase_ == 4) {
3491  constraintCase_ = 0;
3492  constraint_ = null;
3493  }
3494  boolAndBuilder_.clear();
3495  }
3496  return this;
3497  }
3508  public com.google.ortools.sat.BoolArgumentProto.Builder getBoolAndBuilder() {
3509  return getBoolAndFieldBuilder().getBuilder();
3510  }
3521  @java.lang.Override
3522  public com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolAndOrBuilder() {
3523  if ((constraintCase_ == 4) && (boolAndBuilder_ != null)) {
3524  return boolAndBuilder_.getMessageOrBuilder();
3525  } else {
3526  if (constraintCase_ == 4) {
3527  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3528  }
3529  return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3530  }
3531  }
3542  private com.google.protobuf.SingleFieldBuilderV3<
3543  com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder>
3544  getBoolAndFieldBuilder() {
3545  if (boolAndBuilder_ == null) {
3546  if (!(constraintCase_ == 4)) {
3547  constraint_ = com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3548  }
3549  boolAndBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
3550  com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder>(
3551  (com.google.ortools.sat.BoolArgumentProto) constraint_,
3552  getParentForChildren(),
3553  isClean());
3554  constraint_ = null;
3555  }
3556  constraintCase_ = 4;
3557  onChanged();;
3558  return boolAndBuilder_;
3559  }
3560 
3561  private com.google.protobuf.SingleFieldBuilderV3<
3562  com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder> atMostOneBuilder_;
3579  @java.lang.Override
3580  public boolean hasAtMostOne() {
3581  return constraintCase_ == 26;
3582  }
3599  @java.lang.Override
3600  public com.google.ortools.sat.BoolArgumentProto getAtMostOne() {
3601  if (atMostOneBuilder_ == null) {
3602  if (constraintCase_ == 26) {
3603  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3604  }
3605  return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3606  } else {
3607  if (constraintCase_ == 26) {
3608  return atMostOneBuilder_.getMessage();
3609  }
3610  return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3611  }
3612  }
3628  public Builder setAtMostOne(com.google.ortools.sat.BoolArgumentProto value) {
3629  if (atMostOneBuilder_ == null) {
3630  if (value == null) {
3631  throw new NullPointerException();
3632  }
3633  constraint_ = value;
3634  onChanged();
3635  } else {
3636  atMostOneBuilder_.setMessage(value);
3637  }
3638  constraintCase_ = 26;
3639  return this;
3640  }
3657  com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
3658  if (atMostOneBuilder_ == null) {
3659  constraint_ = builderForValue.build();
3660  onChanged();
3661  } else {
3662  atMostOneBuilder_.setMessage(builderForValue.build());
3663  }
3664  constraintCase_ = 26;
3665  return this;
3666  }
3682  public Builder mergeAtMostOne(com.google.ortools.sat.BoolArgumentProto value) {
3683  if (atMostOneBuilder_ == null) {
3684  if (constraintCase_ == 26 &&
3685  constraint_ != com.google.ortools.sat.BoolArgumentProto.getDefaultInstance()) {
3686  constraint_ = com.google.ortools.sat.BoolArgumentProto.newBuilder((com.google.ortools.sat.BoolArgumentProto) constraint_)
3687  .mergeFrom(value).buildPartial();
3688  } else {
3689  constraint_ = value;
3690  }
3691  onChanged();
3692  } else {
3693  if (constraintCase_ == 26) {
3694  atMostOneBuilder_.mergeFrom(value);
3695  }
3696  atMostOneBuilder_.setMessage(value);
3697  }
3698  constraintCase_ = 26;
3699  return this;
3700  }
3717  if (atMostOneBuilder_ == null) {
3718  if (constraintCase_ == 26) {
3719  constraintCase_ = 0;
3720  constraint_ = null;
3721  onChanged();
3722  }
3723  } else {
3724  if (constraintCase_ == 26) {
3725  constraintCase_ = 0;
3726  constraint_ = null;
3727  }
3728  atMostOneBuilder_.clear();
3729  }
3730  return this;
3731  }
3747  public com.google.ortools.sat.BoolArgumentProto.Builder getAtMostOneBuilder() {
3748  return getAtMostOneFieldBuilder().getBuilder();
3749  }
3765  @java.lang.Override
3766  public com.google.ortools.sat.BoolArgumentProtoOrBuilder getAtMostOneOrBuilder() {
3767  if ((constraintCase_ == 26) && (atMostOneBuilder_ != null)) {
3768  return atMostOneBuilder_.getMessageOrBuilder();
3769  } else {
3770  if (constraintCase_ == 26) {
3771  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3772  }
3773  return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3774  }
3775  }
3791  private com.google.protobuf.SingleFieldBuilderV3<
3792  com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder>
3793  getAtMostOneFieldBuilder() {
3794  if (atMostOneBuilder_ == null) {
3795  if (!(constraintCase_ == 26)) {
3796  constraint_ = com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3797  }
3798  atMostOneBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
3799  com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder>(
3800  (com.google.ortools.sat.BoolArgumentProto) constraint_,
3801  getParentForChildren(),
3802  isClean());
3803  constraint_ = null;
3804  }
3805  constraintCase_ = 26;
3806  onChanged();;
3807  return atMostOneBuilder_;
3808  }
3809 
3810  private com.google.protobuf.SingleFieldBuilderV3<
3811  com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder> exactlyOneBuilder_;
3829  @java.lang.Override
3830  public boolean hasExactlyOne() {
3831  return constraintCase_ == 29;
3832  }
3850  @java.lang.Override
3851  public com.google.ortools.sat.BoolArgumentProto getExactlyOne() {
3852  if (exactlyOneBuilder_ == null) {
3853  if (constraintCase_ == 29) {
3854  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3855  }
3856  return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3857  } else {
3858  if (constraintCase_ == 29) {
3859  return exactlyOneBuilder_.getMessage();
3860  }
3861  return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3862  }
3863  }
3880  public Builder setExactlyOne(com.google.ortools.sat.BoolArgumentProto value) {
3881  if (exactlyOneBuilder_ == null) {
3882  if (value == null) {
3883  throw new NullPointerException();
3884  }
3885  constraint_ = value;
3886  onChanged();
3887  } else {
3888  exactlyOneBuilder_.setMessage(value);
3889  }
3890  constraintCase_ = 29;
3891  return this;
3892  }
3910  com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
3911  if (exactlyOneBuilder_ == null) {
3912  constraint_ = builderForValue.build();
3913  onChanged();
3914  } else {
3915  exactlyOneBuilder_.setMessage(builderForValue.build());
3916  }
3917  constraintCase_ = 29;
3918  return this;
3919  }
3936  public Builder mergeExactlyOne(com.google.ortools.sat.BoolArgumentProto value) {
3937  if (exactlyOneBuilder_ == null) {
3938  if (constraintCase_ == 29 &&
3939  constraint_ != com.google.ortools.sat.BoolArgumentProto.getDefaultInstance()) {
3940  constraint_ = com.google.ortools.sat.BoolArgumentProto.newBuilder((com.google.ortools.sat.BoolArgumentProto) constraint_)
3941  .mergeFrom(value).buildPartial();
3942  } else {
3943  constraint_ = value;
3944  }
3945  onChanged();
3946  } else {
3947  if (constraintCase_ == 29) {
3948  exactlyOneBuilder_.mergeFrom(value);
3949  }
3950  exactlyOneBuilder_.setMessage(value);
3951  }
3952  constraintCase_ = 29;
3953  return this;
3954  }
3972  if (exactlyOneBuilder_ == null) {
3973  if (constraintCase_ == 29) {
3974  constraintCase_ = 0;
3975  constraint_ = null;
3976  onChanged();
3977  }
3978  } else {
3979  if (constraintCase_ == 29) {
3980  constraintCase_ = 0;
3981  constraint_ = null;
3982  }
3983  exactlyOneBuilder_.clear();
3984  }
3985  return this;
3986  }
4003  public com.google.ortools.sat.BoolArgumentProto.Builder getExactlyOneBuilder() {
4004  return getExactlyOneFieldBuilder().getBuilder();
4005  }
4022  @java.lang.Override
4023  public com.google.ortools.sat.BoolArgumentProtoOrBuilder getExactlyOneOrBuilder() {
4024  if ((constraintCase_ == 29) && (exactlyOneBuilder_ != null)) {
4025  return exactlyOneBuilder_.getMessageOrBuilder();
4026  } else {
4027  if (constraintCase_ == 29) {
4028  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
4029  }
4030  return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
4031  }
4032  }
4049  private com.google.protobuf.SingleFieldBuilderV3<
4050  com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder>
4051  getExactlyOneFieldBuilder() {
4052  if (exactlyOneBuilder_ == null) {
4053  if (!(constraintCase_ == 29)) {
4054  constraint_ = com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
4055  }
4056  exactlyOneBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4057  com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder>(
4058  (com.google.ortools.sat.BoolArgumentProto) constraint_,
4059  getParentForChildren(),
4060  isClean());
4061  constraint_ = null;
4062  }
4063  constraintCase_ = 29;
4064  onChanged();;
4065  return exactlyOneBuilder_;
4066  }
4067 
4068  private com.google.protobuf.SingleFieldBuilderV3<
4069  com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder> boolXorBuilder_;
4078  @java.lang.Override
4079  public boolean hasBoolXor() {
4080  return constraintCase_ == 5;
4081  }
4090  @java.lang.Override
4091  public com.google.ortools.sat.BoolArgumentProto getBoolXor() {
4092  if (boolXorBuilder_ == null) {
4093  if (constraintCase_ == 5) {
4094  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
4095  }
4096  return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
4097  } else {
4098  if (constraintCase_ == 5) {
4099  return boolXorBuilder_.getMessage();
4100  }
4101  return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
4102  }
4103  }
4111  public Builder setBoolXor(com.google.ortools.sat.BoolArgumentProto value) {
4112  if (boolXorBuilder_ == null) {
4113  if (value == null) {
4114  throw new NullPointerException();
4115  }
4116  constraint_ = value;
4117  onChanged();
4118  } else {
4119  boolXorBuilder_.setMessage(value);
4120  }
4121  constraintCase_ = 5;
4122  return this;
4123  }
4132  com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
4133  if (boolXorBuilder_ == null) {
4134  constraint_ = builderForValue.build();
4135  onChanged();
4136  } else {
4137  boolXorBuilder_.setMessage(builderForValue.build());
4138  }
4139  constraintCase_ = 5;
4140  return this;
4141  }
4149  public Builder mergeBoolXor(com.google.ortools.sat.BoolArgumentProto value) {
4150  if (boolXorBuilder_ == null) {
4151  if (constraintCase_ == 5 &&
4152  constraint_ != com.google.ortools.sat.BoolArgumentProto.getDefaultInstance()) {
4153  constraint_ = com.google.ortools.sat.BoolArgumentProto.newBuilder((com.google.ortools.sat.BoolArgumentProto) constraint_)
4154  .mergeFrom(value).buildPartial();
4155  } else {
4156  constraint_ = value;
4157  }
4158  onChanged();
4159  } else {
4160  if (constraintCase_ == 5) {
4161  boolXorBuilder_.mergeFrom(value);
4162  }
4163  boolXorBuilder_.setMessage(value);
4164  }
4165  constraintCase_ = 5;
4166  return this;
4167  }
4176  if (boolXorBuilder_ == null) {
4177  if (constraintCase_ == 5) {
4178  constraintCase_ = 0;
4179  constraint_ = null;
4180  onChanged();
4181  }
4182  } else {
4183  if (constraintCase_ == 5) {
4184  constraintCase_ = 0;
4185  constraint_ = null;
4186  }
4187  boolXorBuilder_.clear();
4188  }
4189  return this;
4190  }
4198  public com.google.ortools.sat.BoolArgumentProto.Builder getBoolXorBuilder() {
4199  return getBoolXorFieldBuilder().getBuilder();
4200  }
4208  @java.lang.Override
4209  public com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolXorOrBuilder() {
4210  if ((constraintCase_ == 5) && (boolXorBuilder_ != null)) {
4211  return boolXorBuilder_.getMessageOrBuilder();
4212  } else {
4213  if (constraintCase_ == 5) {
4214  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
4215  }
4216  return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
4217  }
4218  }
4226  private com.google.protobuf.SingleFieldBuilderV3<
4227  com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder>
4228  getBoolXorFieldBuilder() {
4229  if (boolXorBuilder_ == null) {
4230  if (!(constraintCase_ == 5)) {
4231  constraint_ = com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
4232  }
4233  boolXorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4234  com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder>(
4235  (com.google.ortools.sat.BoolArgumentProto) constraint_,
4236  getParentForChildren(),
4237  isClean());
4238  constraint_ = null;
4239  }
4240  constraintCase_ = 5;
4241  onChanged();;
4242  return boolXorBuilder_;
4243  }
4244 
4245  private com.google.protobuf.SingleFieldBuilderV3<
4246  com.google.ortools.sat.IntegerArgumentProto, com.google.ortools.sat.IntegerArgumentProto.Builder, com.google.ortools.sat.IntegerArgumentProtoOrBuilder> intDivBuilder_;
4256  @java.lang.Override
4257  public boolean hasIntDiv() {
4258  return constraintCase_ == 7;
4259  }
4269  @java.lang.Override
4270  public com.google.ortools.sat.IntegerArgumentProto getIntDiv() {
4271  if (intDivBuilder_ == null) {
4272  if (constraintCase_ == 7) {
4273  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
4274  }
4275  return com.google.ortools.sat.IntegerArgumentProto.getDefaultInstance();
4276  } else {
4277  if (constraintCase_ == 7) {
4278  return intDivBuilder_.getMessage();
4279  }
4280  return com.google.ortools.sat.IntegerArgumentProto.getDefaultInstance();
4281  }
4282  }
4291  public Builder setIntDiv(com.google.ortools.sat.IntegerArgumentProto value) {
4292  if (intDivBuilder_ == null) {
4293  if (value == null) {
4294  throw new NullPointerException();
4295  }
4296  constraint_ = value;
4297  onChanged();
4298  } else {
4299  intDivBuilder_.setMessage(value);
4300  }
4301  constraintCase_ = 7;
4302  return this;
4303  }
4313  com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue) {
4314  if (intDivBuilder_ == null) {
4315  constraint_ = builderForValue.build();
4316  onChanged();
4317  } else {
4318  intDivBuilder_.setMessage(builderForValue.build());
4319  }
4320  constraintCase_ = 7;
4321  return this;
4322  }
4331  public Builder mergeIntDiv(com.google.ortools.sat.IntegerArgumentProto value) {
4332  if (intDivBuilder_ == null) {
4333  if (constraintCase_ == 7 &&
4334  constraint_ != com.google.ortools.sat.IntegerArgumentProto.getDefaultInstance()) {
4335  constraint_ = com.google.ortools.sat.IntegerArgumentProto.newBuilder((com.google.ortools.sat.IntegerArgumentProto) constraint_)
4336  .mergeFrom(value).buildPartial();
4337  } else {
4338  constraint_ = value;
4339  }
4340  onChanged();
4341  } else {
4342  if (constraintCase_ == 7) {
4343  intDivBuilder_.mergeFrom(value);
4344  }
4345  intDivBuilder_.setMessage(value);
4346  }
4347  constraintCase_ = 7;
4348  return this;
4349  }
4359  if (intDivBuilder_ == null) {
4360  if (constraintCase_ == 7) {
4361  constraintCase_ = 0;
4362  constraint_ = null;
4363  onChanged();
4364  }
4365  } else {
4366  if (constraintCase_ == 7) {
4367  constraintCase_ = 0;
4368  constraint_ = null;
4369  }
4370  intDivBuilder_.clear();
4371  }
4372  return this;
4373  }
4382  public com.google.ortools.sat.IntegerArgumentProto.Builder getIntDivBuilder() {
4383  return getIntDivFieldBuilder().getBuilder();
4384  }
4393  @java.lang.Override
4394  public com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntDivOrBuilder() {
4395  if ((constraintCase_ == 7) && (intDivBuilder_ != null)) {
4396  return intDivBuilder_.getMessageOrBuilder();
4397  } else {
4398  if (constraintCase_ == 7) {
4399  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
4400  }
4401  return com.google.ortools.sat.IntegerArgumentProto.getDefaultInstance();
4402  }
4403  }
4412  private com.google.protobuf.SingleFieldBuilderV3<
4413  com.google.ortools.sat.IntegerArgumentProto, com.google.ortools.sat.IntegerArgumentProto.Builder, com.google.ortools.sat.IntegerArgumentProtoOrBuilder>
4414  getIntDivFieldBuilder() {
4415  if (intDivBuilder_ == null) {
4416  if (!(constraintCase_ == 7)) {
4417  constraint_ = com.google.ortools.sat.IntegerArgumentProto.getDefaultInstance();
4418  }
4419  intDivBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4420  com.google.ortools.sat.IntegerArgumentProto, com.google.ortools.sat.IntegerArgumentProto.Builder, com.google.ortools.sat.IntegerArgumentProtoOrBuilder>(
4421  (com.google.ortools.sat.IntegerArgumentProto) constraint_,
4422  getParentForChildren(),
4423  isClean());
4424  constraint_ = null;
4425  }
4426  constraintCase_ = 7;
4427  onChanged();;
4428  return intDivBuilder_;
4429  }
4430 
4431  private com.google.protobuf.SingleFieldBuilderV3<
4432  com.google.ortools.sat.IntegerArgumentProto, com.google.ortools.sat.IntegerArgumentProto.Builder, com.google.ortools.sat.IntegerArgumentProtoOrBuilder> intModBuilder_;
4442  @java.lang.Override
4443  public boolean hasIntMod() {
4444  return constraintCase_ == 8;
4445  }
4455  @java.lang.Override
4456  public com.google.ortools.sat.IntegerArgumentProto getIntMod() {
4457  if (intModBuilder_ == null) {
4458  if (constraintCase_ == 8) {
4459  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
4460  }
4461  return com.google.ortools.sat.IntegerArgumentProto.getDefaultInstance();
4462  } else {
4463  if (constraintCase_ == 8) {
4464  return intModBuilder_.getMessage();
4465  }
4466  return com.google.ortools.sat.IntegerArgumentProto.getDefaultInstance();
4467  }
4468  }
4477  public Builder setIntMod(com.google.ortools.sat.IntegerArgumentProto value) {
4478  if (intModBuilder_ == null) {
4479  if (value == null) {
4480  throw new NullPointerException();
4481  }
4482  constraint_ = value;
4483  onChanged();
4484  } else {
4485  intModBuilder_.setMessage(value);
4486  }
4487  constraintCase_ = 8;
4488  return this;
4489  }
4499  com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue) {
4500  if (intModBuilder_ == null) {
4501  constraint_ = builderForValue.build();
4502  onChanged();
4503  } else {
4504  intModBuilder_.setMessage(builderForValue.build());
4505  }
4506  constraintCase_ = 8;
4507  return this;
4508  }
4517  public Builder mergeIntMod(com.google.ortools.sat.IntegerArgumentProto value) {
4518  if (intModBuilder_ == null) {
4519  if (constraintCase_ == 8 &&
4520  constraint_ != com.google.ortools.sat.IntegerArgumentProto.getDefaultInstance()) {
4521  constraint_ = com.google.ortools.sat.IntegerArgumentProto.newBuilder((com.google.ortools.sat.IntegerArgumentProto) constraint_)
4522  .mergeFrom(value).buildPartial();
4523  } else {
4524  constraint_ = value;
4525  }
4526  onChanged();
4527  } else {
4528  if (constraintCase_ == 8) {
4529  intModBuilder_.mergeFrom(value);
4530  }
4531  intModBuilder_.setMessage(value);
4532  }
4533  constraintCase_ = 8;
4534  return this;
4535  }
4545  if (intModBuilder_ == null) {
4546  if (constraintCase_ == 8) {
4547  constraintCase_ = 0;
4548  constraint_ = null;
4549  onChanged();
4550  }
4551  } else {
4552  if (constraintCase_ == 8) {
4553  constraintCase_ = 0;
4554  constraint_ = null;
4555  }
4556  intModBuilder_.clear();
4557  }
4558  return this;
4559  }
4568  public com.google.ortools.sat.IntegerArgumentProto.Builder getIntModBuilder() {
4569  return getIntModFieldBuilder().getBuilder();
4570  }
4579  @java.lang.Override
4580  public com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntModOrBuilder() {
4581  if ((constraintCase_ == 8) && (intModBuilder_ != null)) {
4582  return intModBuilder_.getMessageOrBuilder();
4583  } else {
4584  if (constraintCase_ == 8) {
4585  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
4586  }
4587  return com.google.ortools.sat.IntegerArgumentProto.getDefaultInstance();
4588  }
4589  }
4598  private com.google.protobuf.SingleFieldBuilderV3<
4599  com.google.ortools.sat.IntegerArgumentProto, com.google.ortools.sat.IntegerArgumentProto.Builder, com.google.ortools.sat.IntegerArgumentProtoOrBuilder>
4600  getIntModFieldBuilder() {
4601  if (intModBuilder_ == null) {
4602  if (!(constraintCase_ == 8)) {
4603  constraint_ = com.google.ortools.sat.IntegerArgumentProto.getDefaultInstance();
4604  }
4605  intModBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4606  com.google.ortools.sat.IntegerArgumentProto, com.google.ortools.sat.IntegerArgumentProto.Builder, com.google.ortools.sat.IntegerArgumentProtoOrBuilder>(
4607  (com.google.ortools.sat.IntegerArgumentProto) constraint_,
4608  getParentForChildren(),
4609  isClean());
4610  constraint_ = null;
4611  }
4612  constraintCase_ = 8;
4613  onChanged();;
4614  return intModBuilder_;
4615  }
4616 
4617  private com.google.protobuf.SingleFieldBuilderV3<
4618  com.google.ortools.sat.IntegerArgumentProto, com.google.ortools.sat.IntegerArgumentProto.Builder, com.google.ortools.sat.IntegerArgumentProtoOrBuilder> intMaxBuilder_;
4631  @java.lang.Override
4632  public boolean hasIntMax() {
4633  return constraintCase_ == 9;
4634  }
4647  @java.lang.Override
4648  public com.google.ortools.sat.IntegerArgumentProto getIntMax() {
4649  if (intMaxBuilder_ == null) {
4650  if (constraintCase_ == 9) {
4651  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
4652  }
4653  return com.google.ortools.sat.IntegerArgumentProto.getDefaultInstance();
4654  } else {
4655  if (constraintCase_ == 9) {
4656  return intMaxBuilder_.getMessage();
4657  }
4658  return com.google.ortools.sat.IntegerArgumentProto.getDefaultInstance();
4659  }
4660  }
4672  public Builder setIntMax(com.google.ortools.sat.IntegerArgumentProto value) {
4673  if (intMaxBuilder_ == null) {
4674  if (value == null) {
4675  throw new NullPointerException();
4676  }
4677  constraint_ = value;
4678  onChanged();
4679  } else {
4680  intMaxBuilder_.setMessage(value);
4681  }
4682  constraintCase_ = 9;
4683  return this;
4684  }
4697  com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue) {
4698  if (intMaxBuilder_ == null) {
4699  constraint_ = builderForValue.build();
4700  onChanged();
4701  } else {
4702  intMaxBuilder_.setMessage(builderForValue.build());
4703  }
4704  constraintCase_ = 9;
4705  return this;
4706  }
4718  public Builder mergeIntMax(com.google.ortools.sat.IntegerArgumentProto value) {
4719  if (intMaxBuilder_ == null) {
4720  if (constraintCase_ == 9 &&
4721  constraint_ != com.google.ortools.sat.IntegerArgumentProto.getDefaultInstance()) {
4722  constraint_ = com.google.ortools.sat.IntegerArgumentProto.newBuilder((com.google.ortools.sat.IntegerArgumentProto) constraint_)
4723  .mergeFrom(value).buildPartial();
4724  } else {
4725  constraint_ = value;
4726  }
4727  onChanged();
4728  } else {
4729  if (constraintCase_ == 9) {
4730  intMaxBuilder_.mergeFrom(value);
4731  }
4732  intMaxBuilder_.setMessage(value);
4733  }
4734  constraintCase_ = 9;
4735  return this;
4736  }
4749  if (intMaxBuilder_ == null) {
4750  if (constraintCase_ == 9) {
4751  constraintCase_ = 0;
4752  constraint_ = null;
4753  onChanged();
4754  }
4755  } else {
4756  if (constraintCase_ == 9) {
4757  constraintCase_ = 0;
4758  constraint_ = null;
4759  }
4760  intMaxBuilder_.clear();
4761  }
4762  return this;
4763  }
4775  public com.google.ortools.sat.IntegerArgumentProto.Builder getIntMaxBuilder() {
4776  return getIntMaxFieldBuilder().getBuilder();
4777  }
4789  @java.lang.Override
4790  public com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntMaxOrBuilder() {
4791  if ((constraintCase_ == 9) && (intMaxBuilder_ != null)) {
4792  return intMaxBuilder_.getMessageOrBuilder();
4793  } else {
4794  if (constraintCase_ == 9) {
4795  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
4796  }
4797  return com.google.ortools.sat.IntegerArgumentProto.getDefaultInstance();
4798  }
4799  }
4811  private com.google.protobuf.SingleFieldBuilderV3<
4812  com.google.ortools.sat.IntegerArgumentProto, com.google.ortools.sat.IntegerArgumentProto.Builder, com.google.ortools.sat.IntegerArgumentProtoOrBuilder>
4813  getIntMaxFieldBuilder() {
4814  if (intMaxBuilder_ == null) {
4815  if (!(constraintCase_ == 9)) {
4816  constraint_ = com.google.ortools.sat.IntegerArgumentProto.getDefaultInstance();
4817  }
4818  intMaxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4819  com.google.ortools.sat.IntegerArgumentProto, com.google.ortools.sat.IntegerArgumentProto.Builder, com.google.ortools.sat.IntegerArgumentProtoOrBuilder>(
4820  (com.google.ortools.sat.IntegerArgumentProto) constraint_,
4821  getParentForChildren(),
4822  isClean());
4823  constraint_ = null;
4824  }
4825  constraintCase_ = 9;
4826  onChanged();;
4827  return intMaxBuilder_;
4828  }
4829 
4830  private com.google.protobuf.SingleFieldBuilderV3<
4831  com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder> linMaxBuilder_;
4836  @java.lang.Override
4837  public boolean hasLinMax() {
4838  return constraintCase_ == 27;
4839  }
4844  @java.lang.Override
4845  public com.google.ortools.sat.LinearArgumentProto getLinMax() {
4846  if (linMaxBuilder_ == null) {
4847  if (constraintCase_ == 27) {
4848  return (com.google.ortools.sat.LinearArgumentProto) constraint_;
4849  }
4850  return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4851  } else {
4852  if (constraintCase_ == 27) {
4853  return linMaxBuilder_.getMessage();
4854  }
4855  return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4856  }
4857  }
4861  public Builder setLinMax(com.google.ortools.sat.LinearArgumentProto value) {
4862  if (linMaxBuilder_ == null) {
4863  if (value == null) {
4864  throw new NullPointerException();
4865  }
4866  constraint_ = value;
4867  onChanged();
4868  } else {
4869  linMaxBuilder_.setMessage(value);
4870  }
4871  constraintCase_ = 27;
4872  return this;
4873  }
4878  com.google.ortools.sat.LinearArgumentProto.Builder builderForValue) {
4879  if (linMaxBuilder_ == null) {
4880  constraint_ = builderForValue.build();
4881  onChanged();
4882  } else {
4883  linMaxBuilder_.setMessage(builderForValue.build());
4884  }
4885  constraintCase_ = 27;
4886  return this;
4887  }
4891  public Builder mergeLinMax(com.google.ortools.sat.LinearArgumentProto value) {
4892  if (linMaxBuilder_ == null) {
4893  if (constraintCase_ == 27 &&
4894  constraint_ != com.google.ortools.sat.LinearArgumentProto.getDefaultInstance()) {
4895  constraint_ = com.google.ortools.sat.LinearArgumentProto.newBuilder((com.google.ortools.sat.LinearArgumentProto) constraint_)
4896  .mergeFrom(value).buildPartial();
4897  } else {
4898  constraint_ = value;
4899  }
4900  onChanged();
4901  } else {
4902  if (constraintCase_ == 27) {
4903  linMaxBuilder_.mergeFrom(value);
4904  }
4905  linMaxBuilder_.setMessage(value);
4906  }
4907  constraintCase_ = 27;
4908  return this;
4909  }
4914  if (linMaxBuilder_ == null) {
4915  if (constraintCase_ == 27) {
4916  constraintCase_ = 0;
4917  constraint_ = null;
4918  onChanged();
4919  }
4920  } else {
4921  if (constraintCase_ == 27) {
4922  constraintCase_ = 0;
4923  constraint_ = null;
4924  }
4925  linMaxBuilder_.clear();
4926  }
4927  return this;
4928  }
4932  public com.google.ortools.sat.LinearArgumentProto.Builder getLinMaxBuilder() {
4933  return getLinMaxFieldBuilder().getBuilder();
4934  }
4938  @java.lang.Override
4939  public com.google.ortools.sat.LinearArgumentProtoOrBuilder getLinMaxOrBuilder() {
4940  if ((constraintCase_ == 27) && (linMaxBuilder_ != null)) {
4941  return linMaxBuilder_.getMessageOrBuilder();
4942  } else {
4943  if (constraintCase_ == 27) {
4944  return (com.google.ortools.sat.LinearArgumentProto) constraint_;
4945  }
4946  return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4947  }
4948  }
4952  private com.google.protobuf.SingleFieldBuilderV3<
4953  com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder>
4954  getLinMaxFieldBuilder() {
4955  if (linMaxBuilder_ == null) {
4956  if (!(constraintCase_ == 27)) {
4957  constraint_ = com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4958  }
4959  linMaxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4960  com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder>(
4961  (com.google.ortools.sat.LinearArgumentProto) constraint_,
4962  getParentForChildren(),
4963  isClean());
4964  constraint_ = null;
4965  }
4966  constraintCase_ = 27;
4967  onChanged();;
4968  return linMaxBuilder_;
4969  }
4970 
4971  private com.google.protobuf.SingleFieldBuilderV3<
4972  com.google.ortools.sat.IntegerArgumentProto, com.google.ortools.sat.IntegerArgumentProto.Builder, com.google.ortools.sat.IntegerArgumentProtoOrBuilder> intMinBuilder_;
4985  @java.lang.Override
4986  public boolean hasIntMin() {
4987  return constraintCase_ == 10;
4988  }
5001  @java.lang.Override
5002  public com.google.ortools.sat.IntegerArgumentProto getIntMin() {
5003  if (intMinBuilder_ == null) {
5004  if (constraintCase_ == 10) {
5005  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
5006  }
5007  return com.google.ortools.sat.IntegerArgumentProto.getDefaultInstance();
5008  } else {
5009  if (constraintCase_ == 10) {
5010  return intMinBuilder_.getMessage();
5011  }
5012  return com.google.ortools.sat.IntegerArgumentProto.getDefaultInstance();
5013  }
5014  }
5026  public Builder setIntMin(com.google.ortools.sat.IntegerArgumentProto value) {
5027  if (intMinBuilder_ == null) {
5028  if (value == null) {
5029  throw new NullPointerException();
5030  }
5031  constraint_ = value;
5032  onChanged();
5033  } else {
5034  intMinBuilder_.setMessage(value);
5035  }
5036  constraintCase_ = 10;
5037  return this;
5038  }
5051  com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue) {
5052  if (intMinBuilder_ == null) {
5053  constraint_ = builderForValue.build();
5054  onChanged();
5055  } else {
5056  intMinBuilder_.setMessage(builderForValue.build());
5057  }
5058  constraintCase_ = 10;
5059  return this;
5060  }
5072  public Builder mergeIntMin(com.google.ortools.sat.IntegerArgumentProto value) {
5073  if (intMinBuilder_ == null) {
5074  if (constraintCase_ == 10 &&
5075  constraint_ != com.google.ortools.sat.IntegerArgumentProto.getDefaultInstance()) {
5076  constraint_ = com.google.ortools.sat.IntegerArgumentProto.newBuilder((com.google.ortools.sat.IntegerArgumentProto) constraint_)
5077  .mergeFrom(value).buildPartial();
5078  } else {
5079  constraint_ = value;
5080  }
5081  onChanged();
5082  } else {
5083  if (constraintCase_ == 10) {
5084  intMinBuilder_.mergeFrom(value);
5085  }
5086  intMinBuilder_.setMessage(value);
5087  }
5088  constraintCase_ = 10;
5089  return this;
5090  }
5103  if (intMinBuilder_ == null) {
5104  if (constraintCase_ == 10) {
5105  constraintCase_ = 0;
5106  constraint_ = null;
5107  onChanged();
5108  }
5109  } else {
5110  if (constraintCase_ == 10) {
5111  constraintCase_ = 0;
5112  constraint_ = null;
5113  }
5114  intMinBuilder_.clear();
5115  }
5116  return this;
5117  }
5129  public com.google.ortools.sat.IntegerArgumentProto.Builder getIntMinBuilder() {
5130  return getIntMinFieldBuilder().getBuilder();
5131  }
5143  @java.lang.Override
5144  public com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntMinOrBuilder() {
5145  if ((constraintCase_ == 10) && (intMinBuilder_ != null)) {
5146  return intMinBuilder_.getMessageOrBuilder();
5147  } else {
5148  if (constraintCase_ == 10) {
5149  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
5150  }
5151  return com.google.ortools.sat.IntegerArgumentProto.getDefaultInstance();
5152  }
5153  }
5165  private com.google.protobuf.SingleFieldBuilderV3<
5166  com.google.ortools.sat.IntegerArgumentProto, com.google.ortools.sat.IntegerArgumentProto.Builder, com.google.ortools.sat.IntegerArgumentProtoOrBuilder>
5167  getIntMinFieldBuilder() {
5168  if (intMinBuilder_ == null) {
5169  if (!(constraintCase_ == 10)) {
5170  constraint_ = com.google.ortools.sat.IntegerArgumentProto.getDefaultInstance();
5171  }
5172  intMinBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5173  com.google.ortools.sat.IntegerArgumentProto, com.google.ortools.sat.IntegerArgumentProto.Builder, com.google.ortools.sat.IntegerArgumentProtoOrBuilder>(
5174  (com.google.ortools.sat.IntegerArgumentProto) constraint_,
5175  getParentForChildren(),
5176  isClean());
5177  constraint_ = null;
5178  }
5179  constraintCase_ = 10;
5180  onChanged();;
5181  return intMinBuilder_;
5182  }
5183 
5184  private com.google.protobuf.SingleFieldBuilderV3<
5185  com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder> linMinBuilder_;
5190  @java.lang.Override
5191  public boolean hasLinMin() {
5192  return constraintCase_ == 28;
5193  }
5198  @java.lang.Override
5199  public com.google.ortools.sat.LinearArgumentProto getLinMin() {
5200  if (linMinBuilder_ == null) {
5201  if (constraintCase_ == 28) {
5202  return (com.google.ortools.sat.LinearArgumentProto) constraint_;
5203  }
5204  return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
5205  } else {
5206  if (constraintCase_ == 28) {
5207  return linMinBuilder_.getMessage();
5208  }
5209  return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
5210  }
5211  }
5215  public Builder setLinMin(com.google.ortools.sat.LinearArgumentProto value) {
5216  if (linMinBuilder_ == null) {
5217  if (value == null) {
5218  throw new NullPointerException();
5219  }
5220  constraint_ = value;
5221  onChanged();
5222  } else {
5223  linMinBuilder_.setMessage(value);
5224  }
5225  constraintCase_ = 28;
5226  return this;
5227  }
5232  com.google.ortools.sat.LinearArgumentProto.Builder builderForValue) {
5233  if (linMinBuilder_ == null) {
5234  constraint_ = builderForValue.build();
5235  onChanged();
5236  } else {
5237  linMinBuilder_.setMessage(builderForValue.build());
5238  }
5239  constraintCase_ = 28;
5240  return this;
5241  }
5245  public Builder mergeLinMin(com.google.ortools.sat.LinearArgumentProto value) {
5246  if (linMinBuilder_ == null) {
5247  if (constraintCase_ == 28 &&
5248  constraint_ != com.google.ortools.sat.LinearArgumentProto.getDefaultInstance()) {
5249  constraint_ = com.google.ortools.sat.LinearArgumentProto.newBuilder((com.google.ortools.sat.LinearArgumentProto) constraint_)
5250  .mergeFrom(value).buildPartial();
5251  } else {
5252  constraint_ = value;
5253  }
5254  onChanged();
5255  } else {
5256  if (constraintCase_ == 28) {
5257  linMinBuilder_.mergeFrom(value);
5258  }
5259  linMinBuilder_.setMessage(value);
5260  }
5261  constraintCase_ = 28;
5262  return this;
5263  }
5268  if (linMinBuilder_ == null) {
5269  if (constraintCase_ == 28) {
5270  constraintCase_ = 0;
5271  constraint_ = null;
5272  onChanged();
5273  }
5274  } else {
5275  if (constraintCase_ == 28) {
5276  constraintCase_ = 0;
5277  constraint_ = null;
5278  }
5279  linMinBuilder_.clear();
5280  }
5281  return this;
5282  }
5286  public com.google.ortools.sat.LinearArgumentProto.Builder getLinMinBuilder() {
5287  return getLinMinFieldBuilder().getBuilder();
5288  }
5292  @java.lang.Override
5293  public com.google.ortools.sat.LinearArgumentProtoOrBuilder getLinMinOrBuilder() {
5294  if ((constraintCase_ == 28) && (linMinBuilder_ != null)) {
5295  return linMinBuilder_.getMessageOrBuilder();
5296  } else {
5297  if (constraintCase_ == 28) {
5298  return (com.google.ortools.sat.LinearArgumentProto) constraint_;
5299  }
5300  return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
5301  }
5302  }
5306  private com.google.protobuf.SingleFieldBuilderV3<
5307  com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder>
5308  getLinMinFieldBuilder() {
5309  if (linMinBuilder_ == null) {
5310  if (!(constraintCase_ == 28)) {
5311  constraint_ = com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
5312  }
5313  linMinBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5314  com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder>(
5315  (com.google.ortools.sat.LinearArgumentProto) constraint_,
5316  getParentForChildren(),
5317  isClean());
5318  constraint_ = null;
5319  }
5320  constraintCase_ = 28;
5321  onChanged();;
5322  return linMinBuilder_;
5323  }
5324 
5325  private com.google.protobuf.SingleFieldBuilderV3<
5326  com.google.ortools.sat.IntegerArgumentProto, com.google.ortools.sat.IntegerArgumentProto.Builder, com.google.ortools.sat.IntegerArgumentProtoOrBuilder> intProdBuilder_;
5338  @java.lang.Override
5339  public boolean hasIntProd() {
5340  return constraintCase_ == 11;
5341  }
5353  @java.lang.Override
5354  public com.google.ortools.sat.IntegerArgumentProto getIntProd() {
5355  if (intProdBuilder_ == null) {
5356  if (constraintCase_ == 11) {
5357  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
5358  }
5359  return com.google.ortools.sat.IntegerArgumentProto.getDefaultInstance();
5360  } else {
5361  if (constraintCase_ == 11) {
5362  return intProdBuilder_.getMessage();
5363  }
5364  return com.google.ortools.sat.IntegerArgumentProto.getDefaultInstance();
5365  }
5366  }
5377  public Builder setIntProd(com.google.ortools.sat.IntegerArgumentProto value) {
5378  if (intProdBuilder_ == null) {
5379  if (value == null) {
5380  throw new NullPointerException();
5381  }
5382  constraint_ = value;
5383  onChanged();
5384  } else {
5385  intProdBuilder_.setMessage(value);
5386  }
5387  constraintCase_ = 11;
5388  return this;
5389  }
5401  com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue) {
5402  if (intProdBuilder_ == null) {
5403  constraint_ = builderForValue.build();
5404  onChanged();
5405  } else {
5406  intProdBuilder_.setMessage(builderForValue.build());
5407  }
5408  constraintCase_ = 11;
5409  return this;
5410  }
5421  public Builder mergeIntProd(com.google.ortools.sat.IntegerArgumentProto value) {
5422  if (intProdBuilder_ == null) {
5423  if (constraintCase_ == 11 &&
5424  constraint_ != com.google.ortools.sat.IntegerArgumentProto.getDefaultInstance()) {
5425  constraint_ = com.google.ortools.sat.IntegerArgumentProto.newBuilder((com.google.ortools.sat.IntegerArgumentProto) constraint_)
5426  .mergeFrom(value).buildPartial();
5427  } else {
5428  constraint_ = value;
5429  }
5430  onChanged();
5431  } else {
5432  if (constraintCase_ == 11) {
5433  intProdBuilder_.mergeFrom(value);
5434  }
5435  intProdBuilder_.setMessage(value);
5436  }
5437  constraintCase_ = 11;
5438  return this;
5439  }
5451  if (intProdBuilder_ == null) {
5452  if (constraintCase_ == 11) {
5453  constraintCase_ = 0;
5454  constraint_ = null;
5455  onChanged();
5456  }
5457  } else {
5458  if (constraintCase_ == 11) {
5459  constraintCase_ = 0;
5460  constraint_ = null;
5461  }
5462  intProdBuilder_.clear();
5463  }
5464  return this;
5465  }
5476  public com.google.ortools.sat.IntegerArgumentProto.Builder getIntProdBuilder() {
5477  return getIntProdFieldBuilder().getBuilder();
5478  }
5489  @java.lang.Override
5490  public com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntProdOrBuilder() {
5491  if ((constraintCase_ == 11) && (intProdBuilder_ != null)) {
5492  return intProdBuilder_.getMessageOrBuilder();
5493  } else {
5494  if (constraintCase_ == 11) {
5495  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
5496  }
5497  return com.google.ortools.sat.IntegerArgumentProto.getDefaultInstance();
5498  }
5499  }
5510  private com.google.protobuf.SingleFieldBuilderV3<
5511  com.google.ortools.sat.IntegerArgumentProto, com.google.ortools.sat.IntegerArgumentProto.Builder, com.google.ortools.sat.IntegerArgumentProtoOrBuilder>
5512  getIntProdFieldBuilder() {
5513  if (intProdBuilder_ == null) {
5514  if (!(constraintCase_ == 11)) {
5515  constraint_ = com.google.ortools.sat.IntegerArgumentProto.getDefaultInstance();
5516  }
5517  intProdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5518  com.google.ortools.sat.IntegerArgumentProto, com.google.ortools.sat.IntegerArgumentProto.Builder, com.google.ortools.sat.IntegerArgumentProtoOrBuilder>(
5519  (com.google.ortools.sat.IntegerArgumentProto) constraint_,
5520  getParentForChildren(),
5521  isClean());
5522  constraint_ = null;
5523  }
5524  constraintCase_ = 11;
5525  onChanged();;
5526  return intProdBuilder_;
5527  }
5528 
5529  private com.google.protobuf.SingleFieldBuilderV3<
5530  com.google.ortools.sat.LinearConstraintProto, com.google.ortools.sat.LinearConstraintProto.Builder, com.google.ortools.sat.LinearConstraintProtoOrBuilder> linearBuilder_;
5540  @java.lang.Override
5541  public boolean hasLinear() {
5542  return constraintCase_ == 12;
5543  }
5553  @java.lang.Override
5554  public com.google.ortools.sat.LinearConstraintProto getLinear() {
5555  if (linearBuilder_ == null) {
5556  if (constraintCase_ == 12) {
5557  return (com.google.ortools.sat.LinearConstraintProto) constraint_;
5558  }
5559  return com.google.ortools.sat.LinearConstraintProto.getDefaultInstance();
5560  } else {
5561  if (constraintCase_ == 12) {
5562  return linearBuilder_.getMessage();
5563  }
5564  return com.google.ortools.sat.LinearConstraintProto.getDefaultInstance();
5565  }
5566  }
5575  public Builder setLinear(com.google.ortools.sat.LinearConstraintProto value) {
5576  if (linearBuilder_ == null) {
5577  if (value == null) {
5578  throw new NullPointerException();
5579  }
5580  constraint_ = value;
5581  onChanged();
5582  } else {
5583  linearBuilder_.setMessage(value);
5584  }
5585  constraintCase_ = 12;
5586  return this;
5587  }
5597  com.google.ortools.sat.LinearConstraintProto.Builder builderForValue) {
5598  if (linearBuilder_ == null) {
5599  constraint_ = builderForValue.build();
5600  onChanged();
5601  } else {
5602  linearBuilder_.setMessage(builderForValue.build());
5603  }
5604  constraintCase_ = 12;
5605  return this;
5606  }
5615  public Builder mergeLinear(com.google.ortools.sat.LinearConstraintProto value) {
5616  if (linearBuilder_ == null) {
5617  if (constraintCase_ == 12 &&
5618  constraint_ != com.google.ortools.sat.LinearConstraintProto.getDefaultInstance()) {
5619  constraint_ = com.google.ortools.sat.LinearConstraintProto.newBuilder((com.google.ortools.sat.LinearConstraintProto) constraint_)
5620  .mergeFrom(value).buildPartial();
5621  } else {
5622  constraint_ = value;
5623  }
5624  onChanged();
5625  } else {
5626  if (constraintCase_ == 12) {
5627  linearBuilder_.mergeFrom(value);
5628  }
5629  linearBuilder_.setMessage(value);
5630  }
5631  constraintCase_ = 12;
5632  return this;
5633  }
5643  if (linearBuilder_ == null) {
5644  if (constraintCase_ == 12) {
5645  constraintCase_ = 0;
5646  constraint_ = null;
5647  onChanged();
5648  }
5649  } else {
5650  if (constraintCase_ == 12) {
5651  constraintCase_ = 0;
5652  constraint_ = null;
5653  }
5654  linearBuilder_.clear();
5655  }
5656  return this;
5657  }
5666  public com.google.ortools.sat.LinearConstraintProto.Builder getLinearBuilder() {
5667  return getLinearFieldBuilder().getBuilder();
5668  }
5677  @java.lang.Override
5678  public com.google.ortools.sat.LinearConstraintProtoOrBuilder getLinearOrBuilder() {
5679  if ((constraintCase_ == 12) && (linearBuilder_ != null)) {
5680  return linearBuilder_.getMessageOrBuilder();
5681  } else {
5682  if (constraintCase_ == 12) {
5683  return (com.google.ortools.sat.LinearConstraintProto) constraint_;
5684  }
5685  return com.google.ortools.sat.LinearConstraintProto.getDefaultInstance();
5686  }
5687  }
5696  private com.google.protobuf.SingleFieldBuilderV3<
5697  com.google.ortools.sat.LinearConstraintProto, com.google.ortools.sat.LinearConstraintProto.Builder, com.google.ortools.sat.LinearConstraintProtoOrBuilder>
5698  getLinearFieldBuilder() {
5699  if (linearBuilder_ == null) {
5700  if (!(constraintCase_ == 12)) {
5701  constraint_ = com.google.ortools.sat.LinearConstraintProto.getDefaultInstance();
5702  }
5703  linearBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5704  com.google.ortools.sat.LinearConstraintProto, com.google.ortools.sat.LinearConstraintProto.Builder, com.google.ortools.sat.LinearConstraintProtoOrBuilder>(
5705  (com.google.ortools.sat.LinearConstraintProto) constraint_,
5706  getParentForChildren(),
5707  isClean());
5708  constraint_ = null;
5709  }
5710  constraintCase_ = 12;
5711  onChanged();;
5712  return linearBuilder_;
5713  }
5714 
5715  private com.google.protobuf.SingleFieldBuilderV3<
5716  com.google.ortools.sat.AllDifferentConstraintProto, com.google.ortools.sat.AllDifferentConstraintProto.Builder, com.google.ortools.sat.AllDifferentConstraintProtoOrBuilder> allDiffBuilder_;
5725  @java.lang.Override
5726  public boolean hasAllDiff() {
5727  return constraintCase_ == 13;
5728  }
5737  @java.lang.Override
5738  public com.google.ortools.sat.AllDifferentConstraintProto getAllDiff() {
5739  if (allDiffBuilder_ == null) {
5740  if (constraintCase_ == 13) {
5741  return (com.google.ortools.sat.AllDifferentConstraintProto) constraint_;
5742  }
5743  return com.google.ortools.sat.AllDifferentConstraintProto.getDefaultInstance();
5744  } else {
5745  if (constraintCase_ == 13) {
5746  return allDiffBuilder_.getMessage();
5747  }
5748  return com.google.ortools.sat.AllDifferentConstraintProto.getDefaultInstance();
5749  }
5750  }
5758  public Builder setAllDiff(com.google.ortools.sat.AllDifferentConstraintProto value) {
5759  if (allDiffBuilder_ == null) {
5760  if (value == null) {
5761  throw new NullPointerException();
5762  }
5763  constraint_ = value;
5764  onChanged();
5765  } else {
5766  allDiffBuilder_.setMessage(value);
5767  }
5768  constraintCase_ = 13;
5769  return this;
5770  }
5779  com.google.ortools.sat.AllDifferentConstraintProto.Builder builderForValue) {
5780  if (allDiffBuilder_ == null) {
5781  constraint_ = builderForValue.build();
5782  onChanged();
5783  } else {
5784  allDiffBuilder_.setMessage(builderForValue.build());
5785  }
5786  constraintCase_ = 13;
5787  return this;
5788  }
5796  public Builder mergeAllDiff(com.google.ortools.sat.AllDifferentConstraintProto value) {
5797  if (allDiffBuilder_ == null) {
5798  if (constraintCase_ == 13 &&
5799  constraint_ != com.google.ortools.sat.AllDifferentConstraintProto.getDefaultInstance()) {
5800  constraint_ = com.google.ortools.sat.AllDifferentConstraintProto.newBuilder((com.google.ortools.sat.AllDifferentConstraintProto) constraint_)
5801  .mergeFrom(value).buildPartial();
5802  } else {
5803  constraint_ = value;
5804  }
5805  onChanged();
5806  } else {
5807  if (constraintCase_ == 13) {
5808  allDiffBuilder_.mergeFrom(value);
5809  }
5810  allDiffBuilder_.setMessage(value);
5811  }
5812  constraintCase_ = 13;
5813  return this;
5814  }
5823  if (allDiffBuilder_ == null) {
5824  if (constraintCase_ == 13) {
5825  constraintCase_ = 0;
5826  constraint_ = null;
5827  onChanged();
5828  }
5829  } else {
5830  if (constraintCase_ == 13) {
5831  constraintCase_ = 0;
5832  constraint_ = null;
5833  }
5834  allDiffBuilder_.clear();
5835  }
5836  return this;
5837  }
5845  public com.google.ortools.sat.AllDifferentConstraintProto.Builder getAllDiffBuilder() {
5846  return getAllDiffFieldBuilder().getBuilder();
5847  }
5855  @java.lang.Override
5856  public com.google.ortools.sat.AllDifferentConstraintProtoOrBuilder getAllDiffOrBuilder() {
5857  if ((constraintCase_ == 13) && (allDiffBuilder_ != null)) {
5858  return allDiffBuilder_.getMessageOrBuilder();
5859  } else {
5860  if (constraintCase_ == 13) {
5861  return (com.google.ortools.sat.AllDifferentConstraintProto) constraint_;
5862  }
5863  return com.google.ortools.sat.AllDifferentConstraintProto.getDefaultInstance();
5864  }
5865  }
5873  private com.google.protobuf.SingleFieldBuilderV3<
5874  com.google.ortools.sat.AllDifferentConstraintProto, com.google.ortools.sat.AllDifferentConstraintProto.Builder, com.google.ortools.sat.AllDifferentConstraintProtoOrBuilder>
5875  getAllDiffFieldBuilder() {
5876  if (allDiffBuilder_ == null) {
5877  if (!(constraintCase_ == 13)) {
5878  constraint_ = com.google.ortools.sat.AllDifferentConstraintProto.getDefaultInstance();
5879  }
5880  allDiffBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5881  com.google.ortools.sat.AllDifferentConstraintProto, com.google.ortools.sat.AllDifferentConstraintProto.Builder, com.google.ortools.sat.AllDifferentConstraintProtoOrBuilder>(
5882  (com.google.ortools.sat.AllDifferentConstraintProto) constraint_,
5883  getParentForChildren(),
5884  isClean());
5885  constraint_ = null;
5886  }
5887  constraintCase_ = 13;
5888  onChanged();;
5889  return allDiffBuilder_;
5890  }
5891 
5892  private com.google.protobuf.SingleFieldBuilderV3<
5893  com.google.ortools.sat.ElementConstraintProto, com.google.ortools.sat.ElementConstraintProto.Builder, com.google.ortools.sat.ElementConstraintProtoOrBuilder> elementBuilder_;
5903  @java.lang.Override
5904  public boolean hasElement() {
5905  return constraintCase_ == 14;
5906  }
5916  @java.lang.Override
5917  public com.google.ortools.sat.ElementConstraintProto getElement() {
5918  if (elementBuilder_ == null) {
5919  if (constraintCase_ == 14) {
5920  return (com.google.ortools.sat.ElementConstraintProto) constraint_;
5921  }
5922  return com.google.ortools.sat.ElementConstraintProto.getDefaultInstance();
5923  } else {
5924  if (constraintCase_ == 14) {
5925  return elementBuilder_.getMessage();
5926  }
5927  return com.google.ortools.sat.ElementConstraintProto.getDefaultInstance();
5928  }
5929  }
5938  public Builder setElement(com.google.ortools.sat.ElementConstraintProto value) {
5939  if (elementBuilder_ == null) {
5940  if (value == null) {
5941  throw new NullPointerException();
5942  }
5943  constraint_ = value;
5944  onChanged();
5945  } else {
5946  elementBuilder_.setMessage(value);
5947  }
5948  constraintCase_ = 14;
5949  return this;
5950  }
5960  com.google.ortools.sat.ElementConstraintProto.Builder builderForValue) {
5961  if (elementBuilder_ == null) {
5962  constraint_ = builderForValue.build();
5963  onChanged();
5964  } else {
5965  elementBuilder_.setMessage(builderForValue.build());
5966  }
5967  constraintCase_ = 14;
5968  return this;
5969  }
5978  public Builder mergeElement(com.google.ortools.sat.ElementConstraintProto value) {
5979  if (elementBuilder_ == null) {
5980  if (constraintCase_ == 14 &&
5981  constraint_ != com.google.ortools.sat.ElementConstraintProto.getDefaultInstance()) {
5982  constraint_ = com.google.ortools.sat.ElementConstraintProto.newBuilder((com.google.ortools.sat.ElementConstraintProto) constraint_)
5983  .mergeFrom(value).buildPartial();
5984  } else {
5985  constraint_ = value;
5986  }
5987  onChanged();
5988  } else {
5989  if (constraintCase_ == 14) {
5990  elementBuilder_.mergeFrom(value);
5991  }
5992  elementBuilder_.setMessage(value);
5993  }
5994  constraintCase_ = 14;
5995  return this;
5996  }
6006  if (elementBuilder_ == null) {
6007  if (constraintCase_ == 14) {
6008  constraintCase_ = 0;
6009  constraint_ = null;
6010  onChanged();
6011  }
6012  } else {
6013  if (constraintCase_ == 14) {
6014  constraintCase_ = 0;
6015  constraint_ = null;
6016  }
6017  elementBuilder_.clear();
6018  }
6019  return this;
6020  }
6029  public com.google.ortools.sat.ElementConstraintProto.Builder getElementBuilder() {
6030  return getElementFieldBuilder().getBuilder();
6031  }
6040  @java.lang.Override
6041  public com.google.ortools.sat.ElementConstraintProtoOrBuilder getElementOrBuilder() {
6042  if ((constraintCase_ == 14) && (elementBuilder_ != null)) {
6043  return elementBuilder_.getMessageOrBuilder();
6044  } else {
6045  if (constraintCase_ == 14) {
6046  return (com.google.ortools.sat.ElementConstraintProto) constraint_;
6047  }
6048  return com.google.ortools.sat.ElementConstraintProto.getDefaultInstance();
6049  }
6050  }
6059  private com.google.protobuf.SingleFieldBuilderV3<
6060  com.google.ortools.sat.ElementConstraintProto, com.google.ortools.sat.ElementConstraintProto.Builder, com.google.ortools.sat.ElementConstraintProtoOrBuilder>
6061  getElementFieldBuilder() {
6062  if (elementBuilder_ == null) {
6063  if (!(constraintCase_ == 14)) {
6064  constraint_ = com.google.ortools.sat.ElementConstraintProto.getDefaultInstance();
6065  }
6066  elementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6067  com.google.ortools.sat.ElementConstraintProto, com.google.ortools.sat.ElementConstraintProto.Builder, com.google.ortools.sat.ElementConstraintProtoOrBuilder>(
6068  (com.google.ortools.sat.ElementConstraintProto) constraint_,
6069  getParentForChildren(),
6070  isClean());
6071  constraint_ = null;
6072  }
6073  constraintCase_ = 14;
6074  onChanged();;
6075  return elementBuilder_;
6076  }
6077 
6078  private com.google.protobuf.SingleFieldBuilderV3<
6079  com.google.ortools.sat.CircuitConstraintProto, com.google.ortools.sat.CircuitConstraintProto.Builder, com.google.ortools.sat.CircuitConstraintProtoOrBuilder> circuitBuilder_;
6089  @java.lang.Override
6090  public boolean hasCircuit() {
6091  return constraintCase_ == 15;
6092  }
6102  @java.lang.Override
6103  public com.google.ortools.sat.CircuitConstraintProto getCircuit() {
6104  if (circuitBuilder_ == null) {
6105  if (constraintCase_ == 15) {
6106  return (com.google.ortools.sat.CircuitConstraintProto) constraint_;
6107  }
6108  return com.google.ortools.sat.CircuitConstraintProto.getDefaultInstance();
6109  } else {
6110  if (constraintCase_ == 15) {
6111  return circuitBuilder_.getMessage();
6112  }
6113  return com.google.ortools.sat.CircuitConstraintProto.getDefaultInstance();
6114  }
6115  }
6124  public Builder setCircuit(com.google.ortools.sat.CircuitConstraintProto value) {
6125  if (circuitBuilder_ == null) {
6126  if (value == null) {
6127  throw new NullPointerException();
6128  }
6129  constraint_ = value;
6130  onChanged();
6131  } else {
6132  circuitBuilder_.setMessage(value);
6133  }
6134  constraintCase_ = 15;
6135  return this;
6136  }
6146  com.google.ortools.sat.CircuitConstraintProto.Builder builderForValue) {
6147  if (circuitBuilder_ == null) {
6148  constraint_ = builderForValue.build();
6149  onChanged();
6150  } else {
6151  circuitBuilder_.setMessage(builderForValue.build());
6152  }
6153  constraintCase_ = 15;
6154  return this;
6155  }
6164  public Builder mergeCircuit(com.google.ortools.sat.CircuitConstraintProto value) {
6165  if (circuitBuilder_ == null) {
6166  if (constraintCase_ == 15 &&
6167  constraint_ != com.google.ortools.sat.CircuitConstraintProto.getDefaultInstance()) {
6168  constraint_ = com.google.ortools.sat.CircuitConstraintProto.newBuilder((com.google.ortools.sat.CircuitConstraintProto) constraint_)
6169  .mergeFrom(value).buildPartial();
6170  } else {
6171  constraint_ = value;
6172  }
6173  onChanged();
6174  } else {
6175  if (constraintCase_ == 15) {
6176  circuitBuilder_.mergeFrom(value);
6177  }
6178  circuitBuilder_.setMessage(value);
6179  }
6180  constraintCase_ = 15;
6181  return this;
6182  }
6192  if (circuitBuilder_ == null) {
6193  if (constraintCase_ == 15) {
6194  constraintCase_ = 0;
6195  constraint_ = null;
6196  onChanged();
6197  }
6198  } else {
6199  if (constraintCase_ == 15) {
6200  constraintCase_ = 0;
6201  constraint_ = null;
6202  }
6203  circuitBuilder_.clear();
6204  }
6205  return this;
6206  }
6215  public com.google.ortools.sat.CircuitConstraintProto.Builder getCircuitBuilder() {
6216  return getCircuitFieldBuilder().getBuilder();
6217  }
6226  @java.lang.Override
6227  public com.google.ortools.sat.CircuitConstraintProtoOrBuilder getCircuitOrBuilder() {
6228  if ((constraintCase_ == 15) && (circuitBuilder_ != null)) {
6229  return circuitBuilder_.getMessageOrBuilder();
6230  } else {
6231  if (constraintCase_ == 15) {
6232  return (com.google.ortools.sat.CircuitConstraintProto) constraint_;
6233  }
6234  return com.google.ortools.sat.CircuitConstraintProto.getDefaultInstance();
6235  }
6236  }
6245  private com.google.protobuf.SingleFieldBuilderV3<
6246  com.google.ortools.sat.CircuitConstraintProto, com.google.ortools.sat.CircuitConstraintProto.Builder, com.google.ortools.sat.CircuitConstraintProtoOrBuilder>
6247  getCircuitFieldBuilder() {
6248  if (circuitBuilder_ == null) {
6249  if (!(constraintCase_ == 15)) {
6250  constraint_ = com.google.ortools.sat.CircuitConstraintProto.getDefaultInstance();
6251  }
6252  circuitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6253  com.google.ortools.sat.CircuitConstraintProto, com.google.ortools.sat.CircuitConstraintProto.Builder, com.google.ortools.sat.CircuitConstraintProtoOrBuilder>(
6254  (com.google.ortools.sat.CircuitConstraintProto) constraint_,
6255  getParentForChildren(),
6256  isClean());
6257  constraint_ = null;
6258  }
6259  constraintCase_ = 15;
6260  onChanged();;
6261  return circuitBuilder_;
6262  }
6263 
6264  private com.google.protobuf.SingleFieldBuilderV3<
6265  com.google.ortools.sat.RoutesConstraintProto, com.google.ortools.sat.RoutesConstraintProto.Builder, com.google.ortools.sat.RoutesConstraintProtoOrBuilder> routesBuilder_;
6274  @java.lang.Override
6275  public boolean hasRoutes() {
6276  return constraintCase_ == 23;
6277  }
6286  @java.lang.Override
6287  public com.google.ortools.sat.RoutesConstraintProto getRoutes() {
6288  if (routesBuilder_ == null) {
6289  if (constraintCase_ == 23) {
6290  return (com.google.ortools.sat.RoutesConstraintProto) constraint_;
6291  }
6292  return com.google.ortools.sat.RoutesConstraintProto.getDefaultInstance();
6293  } else {
6294  if (constraintCase_ == 23) {
6295  return routesBuilder_.getMessage();
6296  }
6297  return com.google.ortools.sat.RoutesConstraintProto.getDefaultInstance();
6298  }
6299  }
6307  public Builder setRoutes(com.google.ortools.sat.RoutesConstraintProto value) {
6308  if (routesBuilder_ == null) {
6309  if (value == null) {
6310  throw new NullPointerException();
6311  }
6312  constraint_ = value;
6313  onChanged();
6314  } else {
6315  routesBuilder_.setMessage(value);
6316  }
6317  constraintCase_ = 23;
6318  return this;
6319  }
6328  com.google.ortools.sat.RoutesConstraintProto.Builder builderForValue) {
6329  if (routesBuilder_ == null) {
6330  constraint_ = builderForValue.build();
6331  onChanged();
6332  } else {
6333  routesBuilder_.setMessage(builderForValue.build());
6334  }
6335  constraintCase_ = 23;
6336  return this;
6337  }
6345  public Builder mergeRoutes(com.google.ortools.sat.RoutesConstraintProto value) {
6346  if (routesBuilder_ == null) {
6347  if (constraintCase_ == 23 &&
6348  constraint_ != com.google.ortools.sat.RoutesConstraintProto.getDefaultInstance()) {
6349  constraint_ = com.google.ortools.sat.RoutesConstraintProto.newBuilder((com.google.ortools.sat.RoutesConstraintProto) constraint_)
6350  .mergeFrom(value).buildPartial();
6351  } else {
6352  constraint_ = value;
6353  }
6354  onChanged();
6355  } else {
6356  if (constraintCase_ == 23) {
6357  routesBuilder_.mergeFrom(value);
6358  }
6359  routesBuilder_.setMessage(value);
6360  }
6361  constraintCase_ = 23;
6362  return this;
6363  }
6372  if (routesBuilder_ == null) {
6373  if (constraintCase_ == 23) {
6374  constraintCase_ = 0;
6375  constraint_ = null;
6376  onChanged();
6377  }
6378  } else {
6379  if (constraintCase_ == 23) {
6380  constraintCase_ = 0;
6381  constraint_ = null;
6382  }
6383  routesBuilder_.clear();
6384  }
6385  return this;
6386  }
6394  public com.google.ortools.sat.RoutesConstraintProto.Builder getRoutesBuilder() {
6395  return getRoutesFieldBuilder().getBuilder();
6396  }
6404  @java.lang.Override
6405  public com.google.ortools.sat.RoutesConstraintProtoOrBuilder getRoutesOrBuilder() {
6406  if ((constraintCase_ == 23) && (routesBuilder_ != null)) {
6407  return routesBuilder_.getMessageOrBuilder();
6408  } else {
6409  if (constraintCase_ == 23) {
6410  return (com.google.ortools.sat.RoutesConstraintProto) constraint_;
6411  }
6412  return com.google.ortools.sat.RoutesConstraintProto.getDefaultInstance();
6413  }
6414  }
6422  private com.google.protobuf.SingleFieldBuilderV3<
6423  com.google.ortools.sat.RoutesConstraintProto, com.google.ortools.sat.RoutesConstraintProto.Builder, com.google.ortools.sat.RoutesConstraintProtoOrBuilder>
6424  getRoutesFieldBuilder() {
6425  if (routesBuilder_ == null) {
6426  if (!(constraintCase_ == 23)) {
6427  constraint_ = com.google.ortools.sat.RoutesConstraintProto.getDefaultInstance();
6428  }
6429  routesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6430  com.google.ortools.sat.RoutesConstraintProto, com.google.ortools.sat.RoutesConstraintProto.Builder, com.google.ortools.sat.RoutesConstraintProtoOrBuilder>(
6431  (com.google.ortools.sat.RoutesConstraintProto) constraint_,
6432  getParentForChildren(),
6433  isClean());
6434  constraint_ = null;
6435  }
6436  constraintCase_ = 23;
6437  onChanged();;
6438  return routesBuilder_;
6439  }
6440 
6441  private com.google.protobuf.SingleFieldBuilderV3<
6442  com.google.ortools.sat.TableConstraintProto, com.google.ortools.sat.TableConstraintProto.Builder, com.google.ortools.sat.TableConstraintProtoOrBuilder> tableBuilder_;
6452  @java.lang.Override
6453  public boolean hasTable() {
6454  return constraintCase_ == 16;
6455  }
6465  @java.lang.Override
6466  public com.google.ortools.sat.TableConstraintProto getTable() {
6467  if (tableBuilder_ == null) {
6468  if (constraintCase_ == 16) {
6469  return (com.google.ortools.sat.TableConstraintProto) constraint_;
6470  }
6471  return com.google.ortools.sat.TableConstraintProto.getDefaultInstance();
6472  } else {
6473  if (constraintCase_ == 16) {
6474  return tableBuilder_.getMessage();
6475  }
6476  return com.google.ortools.sat.TableConstraintProto.getDefaultInstance();
6477  }
6478  }
6487  public Builder setTable(com.google.ortools.sat.TableConstraintProto value) {
6488  if (tableBuilder_ == null) {
6489  if (value == null) {
6490  throw new NullPointerException();
6491  }
6492  constraint_ = value;
6493  onChanged();
6494  } else {
6495  tableBuilder_.setMessage(value);
6496  }
6497  constraintCase_ = 16;
6498  return this;
6499  }
6509  com.google.ortools.sat.TableConstraintProto.Builder builderForValue) {
6510  if (tableBuilder_ == null) {
6511  constraint_ = builderForValue.build();
6512  onChanged();
6513  } else {
6514  tableBuilder_.setMessage(builderForValue.build());
6515  }
6516  constraintCase_ = 16;
6517  return this;
6518  }
6527  public Builder mergeTable(com.google.ortools.sat.TableConstraintProto value) {
6528  if (tableBuilder_ == null) {
6529  if (constraintCase_ == 16 &&
6530  constraint_ != com.google.ortools.sat.TableConstraintProto.getDefaultInstance()) {
6531  constraint_ = com.google.ortools.sat.TableConstraintProto.newBuilder((com.google.ortools.sat.TableConstraintProto) constraint_)
6532  .mergeFrom(value).buildPartial();
6533  } else {
6534  constraint_ = value;
6535  }
6536  onChanged();
6537  } else {
6538  if (constraintCase_ == 16) {
6539  tableBuilder_.mergeFrom(value);
6540  }
6541  tableBuilder_.setMessage(value);
6542  }
6543  constraintCase_ = 16;
6544  return this;
6545  }
6554  public Builder clearTable() {
6555  if (tableBuilder_ == null) {
6556  if (constraintCase_ == 16) {
6557  constraintCase_ = 0;
6558  constraint_ = null;
6559  onChanged();
6560  }
6561  } else {
6562  if (constraintCase_ == 16) {
6563  constraintCase_ = 0;
6564  constraint_ = null;
6565  }
6566  tableBuilder_.clear();
6567  }
6568  return this;
6569  }
6578  public com.google.ortools.sat.TableConstraintProto.Builder getTableBuilder() {
6579  return getTableFieldBuilder().getBuilder();
6580  }
6589  @java.lang.Override
6590  public com.google.ortools.sat.TableConstraintProtoOrBuilder getTableOrBuilder() {
6591  if ((constraintCase_ == 16) && (tableBuilder_ != null)) {
6592  return tableBuilder_.getMessageOrBuilder();
6593  } else {
6594  if (constraintCase_ == 16) {
6595  return (com.google.ortools.sat.TableConstraintProto) constraint_;
6596  }
6597  return com.google.ortools.sat.TableConstraintProto.getDefaultInstance();
6598  }
6599  }
6608  private com.google.protobuf.SingleFieldBuilderV3<
6609  com.google.ortools.sat.TableConstraintProto, com.google.ortools.sat.TableConstraintProto.Builder, com.google.ortools.sat.TableConstraintProtoOrBuilder>
6610  getTableFieldBuilder() {
6611  if (tableBuilder_ == null) {
6612  if (!(constraintCase_ == 16)) {
6613  constraint_ = com.google.ortools.sat.TableConstraintProto.getDefaultInstance();
6614  }
6615  tableBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6616  com.google.ortools.sat.TableConstraintProto, com.google.ortools.sat.TableConstraintProto.Builder, com.google.ortools.sat.TableConstraintProtoOrBuilder>(
6617  (com.google.ortools.sat.TableConstraintProto) constraint_,
6618  getParentForChildren(),
6619  isClean());
6620  constraint_ = null;
6621  }
6622  constraintCase_ = 16;
6623  onChanged();;
6624  return tableBuilder_;
6625  }
6626 
6627  private com.google.protobuf.SingleFieldBuilderV3<
6628  com.google.ortools.sat.AutomatonConstraintProto, com.google.ortools.sat.AutomatonConstraintProto.Builder, com.google.ortools.sat.AutomatonConstraintProtoOrBuilder> automatonBuilder_;
6638  @java.lang.Override
6639  public boolean hasAutomaton() {
6640  return constraintCase_ == 17;
6641  }
6651  @java.lang.Override
6652  public com.google.ortools.sat.AutomatonConstraintProto getAutomaton() {
6653  if (automatonBuilder_ == null) {
6654  if (constraintCase_ == 17) {
6655  return (com.google.ortools.sat.AutomatonConstraintProto) constraint_;
6656  }
6657  return com.google.ortools.sat.AutomatonConstraintProto.getDefaultInstance();
6658  } else {
6659  if (constraintCase_ == 17) {
6660  return automatonBuilder_.getMessage();
6661  }
6662  return com.google.ortools.sat.AutomatonConstraintProto.getDefaultInstance();
6663  }
6664  }
6673  public Builder setAutomaton(com.google.ortools.sat.AutomatonConstraintProto value) {
6674  if (automatonBuilder_ == null) {
6675  if (value == null) {
6676  throw new NullPointerException();
6677  }
6678  constraint_ = value;
6679  onChanged();
6680  } else {
6681  automatonBuilder_.setMessage(value);
6682  }
6683  constraintCase_ = 17;
6684  return this;
6685  }
6695  com.google.ortools.sat.AutomatonConstraintProto.Builder builderForValue) {
6696  if (automatonBuilder_ == null) {
6697  constraint_ = builderForValue.build();
6698  onChanged();
6699  } else {
6700  automatonBuilder_.setMessage(builderForValue.build());
6701  }
6702  constraintCase_ = 17;
6703  return this;
6704  }
6713  public Builder mergeAutomaton(com.google.ortools.sat.AutomatonConstraintProto value) {
6714  if (automatonBuilder_ == null) {
6715  if (constraintCase_ == 17 &&
6716  constraint_ != com.google.ortools.sat.AutomatonConstraintProto.getDefaultInstance()) {
6717  constraint_ = com.google.ortools.sat.AutomatonConstraintProto.newBuilder((com.google.ortools.sat.AutomatonConstraintProto) constraint_)
6718  .mergeFrom(value).buildPartial();
6719  } else {
6720  constraint_ = value;
6721  }
6722  onChanged();
6723  } else {
6724  if (constraintCase_ == 17) {
6725  automatonBuilder_.mergeFrom(value);
6726  }
6727  automatonBuilder_.setMessage(value);
6728  }
6729  constraintCase_ = 17;
6730  return this;
6731  }
6741  if (automatonBuilder_ == null) {
6742  if (constraintCase_ == 17) {
6743  constraintCase_ = 0;
6744  constraint_ = null;
6745  onChanged();
6746  }
6747  } else {
6748  if (constraintCase_ == 17) {
6749  constraintCase_ = 0;
6750  constraint_ = null;
6751  }
6752  automatonBuilder_.clear();
6753  }
6754  return this;
6755  }
6764  public com.google.ortools.sat.AutomatonConstraintProto.Builder getAutomatonBuilder() {
6765  return getAutomatonFieldBuilder().getBuilder();
6766  }
6775  @java.lang.Override
6776  public com.google.ortools.sat.AutomatonConstraintProtoOrBuilder getAutomatonOrBuilder() {
6777  if ((constraintCase_ == 17) && (automatonBuilder_ != null)) {
6778  return automatonBuilder_.getMessageOrBuilder();
6779  } else {
6780  if (constraintCase_ == 17) {
6781  return (com.google.ortools.sat.AutomatonConstraintProto) constraint_;
6782  }
6783  return com.google.ortools.sat.AutomatonConstraintProto.getDefaultInstance();
6784  }
6785  }
6794  private com.google.protobuf.SingleFieldBuilderV3<
6795  com.google.ortools.sat.AutomatonConstraintProto, com.google.ortools.sat.AutomatonConstraintProto.Builder, com.google.ortools.sat.AutomatonConstraintProtoOrBuilder>
6796  getAutomatonFieldBuilder() {
6797  if (automatonBuilder_ == null) {
6798  if (!(constraintCase_ == 17)) {
6799  constraint_ = com.google.ortools.sat.AutomatonConstraintProto.getDefaultInstance();
6800  }
6801  automatonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6802  com.google.ortools.sat.AutomatonConstraintProto, com.google.ortools.sat.AutomatonConstraintProto.Builder, com.google.ortools.sat.AutomatonConstraintProtoOrBuilder>(
6803  (com.google.ortools.sat.AutomatonConstraintProto) constraint_,
6804  getParentForChildren(),
6805  isClean());
6806  constraint_ = null;
6807  }
6808  constraintCase_ = 17;
6809  onChanged();;
6810  return automatonBuilder_;
6811  }
6812 
6813  private com.google.protobuf.SingleFieldBuilderV3<
6814  com.google.ortools.sat.InverseConstraintProto, com.google.ortools.sat.InverseConstraintProto.Builder, com.google.ortools.sat.InverseConstraintProtoOrBuilder> inverseBuilder_;
6824  @java.lang.Override
6825  public boolean hasInverse() {
6826  return constraintCase_ == 18;
6827  }
6837  @java.lang.Override
6838  public com.google.ortools.sat.InverseConstraintProto getInverse() {
6839  if (inverseBuilder_ == null) {
6840  if (constraintCase_ == 18) {
6841  return (com.google.ortools.sat.InverseConstraintProto) constraint_;
6842  }
6843  return com.google.ortools.sat.InverseConstraintProto.getDefaultInstance();
6844  } else {
6845  if (constraintCase_ == 18) {
6846  return inverseBuilder_.getMessage();
6847  }
6848  return com.google.ortools.sat.InverseConstraintProto.getDefaultInstance();
6849  }
6850  }
6859  public Builder setInverse(com.google.ortools.sat.InverseConstraintProto value) {
6860  if (inverseBuilder_ == null) {
6861  if (value == null) {
6862  throw new NullPointerException();
6863  }
6864  constraint_ = value;
6865  onChanged();
6866  } else {
6867  inverseBuilder_.setMessage(value);
6868  }
6869  constraintCase_ = 18;
6870  return this;
6871  }
6881  com.google.ortools.sat.InverseConstraintProto.Builder builderForValue) {
6882  if (inverseBuilder_ == null) {
6883  constraint_ = builderForValue.build();
6884  onChanged();
6885  } else {
6886  inverseBuilder_.setMessage(builderForValue.build());
6887  }
6888  constraintCase_ = 18;
6889  return this;
6890  }
6899  public Builder mergeInverse(com.google.ortools.sat.InverseConstraintProto value) {
6900  if (inverseBuilder_ == null) {
6901  if (constraintCase_ == 18 &&
6902  constraint_ != com.google.ortools.sat.InverseConstraintProto.getDefaultInstance()) {
6903  constraint_ = com.google.ortools.sat.InverseConstraintProto.newBuilder((com.google.ortools.sat.InverseConstraintProto) constraint_)
6904  .mergeFrom(value).buildPartial();
6905  } else {
6906  constraint_ = value;
6907  }
6908  onChanged();
6909  } else {
6910  if (constraintCase_ == 18) {
6911  inverseBuilder_.mergeFrom(value);
6912  }
6913  inverseBuilder_.setMessage(value);
6914  }
6915  constraintCase_ = 18;
6916  return this;
6917  }
6927  if (inverseBuilder_ == null) {
6928  if (constraintCase_ == 18) {
6929  constraintCase_ = 0;
6930  constraint_ = null;
6931  onChanged();
6932  }
6933  } else {
6934  if (constraintCase_ == 18) {
6935  constraintCase_ = 0;
6936  constraint_ = null;
6937  }
6938  inverseBuilder_.clear();
6939  }
6940  return this;
6941  }
6950  public com.google.ortools.sat.InverseConstraintProto.Builder getInverseBuilder() {
6951  return getInverseFieldBuilder().getBuilder();
6952  }
6961  @java.lang.Override
6962  public com.google.ortools.sat.InverseConstraintProtoOrBuilder getInverseOrBuilder() {
6963  if ((constraintCase_ == 18) && (inverseBuilder_ != null)) {
6964  return inverseBuilder_.getMessageOrBuilder();
6965  } else {
6966  if (constraintCase_ == 18) {
6967  return (com.google.ortools.sat.InverseConstraintProto) constraint_;
6968  }
6969  return com.google.ortools.sat.InverseConstraintProto.getDefaultInstance();
6970  }
6971  }
6980  private com.google.protobuf.SingleFieldBuilderV3<
6981  com.google.ortools.sat.InverseConstraintProto, com.google.ortools.sat.InverseConstraintProto.Builder, com.google.ortools.sat.InverseConstraintProtoOrBuilder>
6982  getInverseFieldBuilder() {
6983  if (inverseBuilder_ == null) {
6984  if (!(constraintCase_ == 18)) {
6985  constraint_ = com.google.ortools.sat.InverseConstraintProto.getDefaultInstance();
6986  }
6987  inverseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6988  com.google.ortools.sat.InverseConstraintProto, com.google.ortools.sat.InverseConstraintProto.Builder, com.google.ortools.sat.InverseConstraintProtoOrBuilder>(
6989  (com.google.ortools.sat.InverseConstraintProto) constraint_,
6990  getParentForChildren(),
6991  isClean());
6992  constraint_ = null;
6993  }
6994  constraintCase_ = 18;
6995  onChanged();;
6996  return inverseBuilder_;
6997  }
6998 
6999  private com.google.protobuf.SingleFieldBuilderV3<
7000  com.google.ortools.sat.ReservoirConstraintProto, com.google.ortools.sat.ReservoirConstraintProto.Builder, com.google.ortools.sat.ReservoirConstraintProtoOrBuilder> reservoirBuilder_;
7011  @java.lang.Override
7012  public boolean hasReservoir() {
7013  return constraintCase_ == 24;
7014  }
7025  @java.lang.Override
7026  public com.google.ortools.sat.ReservoirConstraintProto getReservoir() {
7027  if (reservoirBuilder_ == null) {
7028  if (constraintCase_ == 24) {
7029  return (com.google.ortools.sat.ReservoirConstraintProto) constraint_;
7030  }
7031  return com.google.ortools.sat.ReservoirConstraintProto.getDefaultInstance();
7032  } else {
7033  if (constraintCase_ == 24) {
7034  return reservoirBuilder_.getMessage();
7035  }
7036  return com.google.ortools.sat.ReservoirConstraintProto.getDefaultInstance();
7037  }
7038  }
7048  public Builder setReservoir(com.google.ortools.sat.ReservoirConstraintProto value) {
7049  if (reservoirBuilder_ == null) {
7050  if (value == null) {
7051  throw new NullPointerException();
7052  }
7053  constraint_ = value;
7054  onChanged();
7055  } else {
7056  reservoirBuilder_.setMessage(value);
7057  }
7058  constraintCase_ = 24;
7059  return this;
7060  }
7071  com.google.ortools.sat.ReservoirConstraintProto.Builder builderForValue) {
7072  if (reservoirBuilder_ == null) {
7073  constraint_ = builderForValue.build();
7074  onChanged();
7075  } else {
7076  reservoirBuilder_.setMessage(builderForValue.build());
7077  }
7078  constraintCase_ = 24;
7079  return this;
7080  }
7090  public Builder mergeReservoir(com.google.ortools.sat.ReservoirConstraintProto value) {
7091  if (reservoirBuilder_ == null) {
7092  if (constraintCase_ == 24 &&
7093  constraint_ != com.google.ortools.sat.ReservoirConstraintProto.getDefaultInstance()) {
7094  constraint_ = com.google.ortools.sat.ReservoirConstraintProto.newBuilder((com.google.ortools.sat.ReservoirConstraintProto) constraint_)
7095  .mergeFrom(value).buildPartial();
7096  } else {
7097  constraint_ = value;
7098  }
7099  onChanged();
7100  } else {
7101  if (constraintCase_ == 24) {
7102  reservoirBuilder_.mergeFrom(value);
7103  }
7104  reservoirBuilder_.setMessage(value);
7105  }
7106  constraintCase_ = 24;
7107  return this;
7108  }
7119  if (reservoirBuilder_ == null) {
7120  if (constraintCase_ == 24) {
7121  constraintCase_ = 0;
7122  constraint_ = null;
7123  onChanged();
7124  }
7125  } else {
7126  if (constraintCase_ == 24) {
7127  constraintCase_ = 0;
7128  constraint_ = null;
7129  }
7130  reservoirBuilder_.clear();
7131  }
7132  return this;
7133  }
7143  public com.google.ortools.sat.ReservoirConstraintProto.Builder getReservoirBuilder() {
7144  return getReservoirFieldBuilder().getBuilder();
7145  }
7155  @java.lang.Override
7156  public com.google.ortools.sat.ReservoirConstraintProtoOrBuilder getReservoirOrBuilder() {
7157  if ((constraintCase_ == 24) && (reservoirBuilder_ != null)) {
7158  return reservoirBuilder_.getMessageOrBuilder();
7159  } else {
7160  if (constraintCase_ == 24) {
7161  return (com.google.ortools.sat.ReservoirConstraintProto) constraint_;
7162  }
7163  return com.google.ortools.sat.ReservoirConstraintProto.getDefaultInstance();
7164  }
7165  }
7175  private com.google.protobuf.SingleFieldBuilderV3<
7176  com.google.ortools.sat.ReservoirConstraintProto, com.google.ortools.sat.ReservoirConstraintProto.Builder, com.google.ortools.sat.ReservoirConstraintProtoOrBuilder>
7177  getReservoirFieldBuilder() {
7178  if (reservoirBuilder_ == null) {
7179  if (!(constraintCase_ == 24)) {
7180  constraint_ = com.google.ortools.sat.ReservoirConstraintProto.getDefaultInstance();
7181  }
7182  reservoirBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
7183  com.google.ortools.sat.ReservoirConstraintProto, com.google.ortools.sat.ReservoirConstraintProto.Builder, com.google.ortools.sat.ReservoirConstraintProtoOrBuilder>(
7184  (com.google.ortools.sat.ReservoirConstraintProto) constraint_,
7185  getParentForChildren(),
7186  isClean());
7187  constraint_ = null;
7188  }
7189  constraintCase_ = 24;
7190  onChanged();;
7191  return reservoirBuilder_;
7192  }
7193 
7194  private com.google.protobuf.SingleFieldBuilderV3<
7195  com.google.ortools.sat.IntervalConstraintProto, com.google.ortools.sat.IntervalConstraintProto.Builder, com.google.ortools.sat.IntervalConstraintProtoOrBuilder> intervalBuilder_;
7205  @java.lang.Override
7206  public boolean hasInterval() {
7207  return constraintCase_ == 19;
7208  }
7218  @java.lang.Override
7219  public com.google.ortools.sat.IntervalConstraintProto getInterval() {
7220  if (intervalBuilder_ == null) {
7221  if (constraintCase_ == 19) {
7222  return (com.google.ortools.sat.IntervalConstraintProto) constraint_;
7223  }
7224  return com.google.ortools.sat.IntervalConstraintProto.getDefaultInstance();
7225  } else {
7226  if (constraintCase_ == 19) {
7227  return intervalBuilder_.getMessage();
7228  }
7229  return com.google.ortools.sat.IntervalConstraintProto.getDefaultInstance();
7230  }
7231  }
7240  public Builder setInterval(com.google.ortools.sat.IntervalConstraintProto value) {
7241  if (intervalBuilder_ == null) {
7242  if (value == null) {
7243  throw new NullPointerException();
7244  }
7245  constraint_ = value;
7246  onChanged();
7247  } else {
7248  intervalBuilder_.setMessage(value);
7249  }
7250  constraintCase_ = 19;
7251  return this;
7252  }
7262  com.google.ortools.sat.IntervalConstraintProto.Builder builderForValue) {
7263  if (intervalBuilder_ == null) {
7264  constraint_ = builderForValue.build();
7265  onChanged();
7266  } else {
7267  intervalBuilder_.setMessage(builderForValue.build());
7268  }
7269  constraintCase_ = 19;
7270  return this;
7271  }
7280  public Builder mergeInterval(com.google.ortools.sat.IntervalConstraintProto value) {
7281  if (intervalBuilder_ == null) {
7282  if (constraintCase_ == 19 &&
7283  constraint_ != com.google.ortools.sat.IntervalConstraintProto.getDefaultInstance()) {
7284  constraint_ = com.google.ortools.sat.IntervalConstraintProto.newBuilder((com.google.ortools.sat.IntervalConstraintProto) constraint_)
7285  .mergeFrom(value).buildPartial();
7286  } else {
7287  constraint_ = value;
7288  }
7289  onChanged();
7290  } else {
7291  if (constraintCase_ == 19) {
7292  intervalBuilder_.mergeFrom(value);
7293  }
7294  intervalBuilder_.setMessage(value);
7295  }
7296  constraintCase_ = 19;
7297  return this;
7298  }
7308  if (intervalBuilder_ == null) {
7309  if (constraintCase_ == 19) {
7310  constraintCase_ = 0;
7311  constraint_ = null;
7312  onChanged();
7313  }
7314  } else {
7315  if (constraintCase_ == 19) {
7316  constraintCase_ = 0;
7317  constraint_ = null;
7318  }
7319  intervalBuilder_.clear();
7320  }
7321  return this;
7322  }
7331  public com.google.ortools.sat.IntervalConstraintProto.Builder getIntervalBuilder() {
7332  return getIntervalFieldBuilder().getBuilder();
7333  }
7342  @java.lang.Override
7343  public com.google.ortools.sat.IntervalConstraintProtoOrBuilder getIntervalOrBuilder() {
7344  if ((constraintCase_ == 19) && (intervalBuilder_ != null)) {
7345  return intervalBuilder_.getMessageOrBuilder();
7346  } else {
7347  if (constraintCase_ == 19) {
7348  return (com.google.ortools.sat.IntervalConstraintProto) constraint_;
7349  }
7350  return com.google.ortools.sat.IntervalConstraintProto.getDefaultInstance();
7351  }
7352  }
7361  private com.google.protobuf.SingleFieldBuilderV3<
7362  com.google.ortools.sat.IntervalConstraintProto, com.google.ortools.sat.IntervalConstraintProto.Builder, com.google.ortools.sat.IntervalConstraintProtoOrBuilder>
7363  getIntervalFieldBuilder() {
7364  if (intervalBuilder_ == null) {
7365  if (!(constraintCase_ == 19)) {
7366  constraint_ = com.google.ortools.sat.IntervalConstraintProto.getDefaultInstance();
7367  }
7368  intervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
7369  com.google.ortools.sat.IntervalConstraintProto, com.google.ortools.sat.IntervalConstraintProto.Builder, com.google.ortools.sat.IntervalConstraintProtoOrBuilder>(
7370  (com.google.ortools.sat.IntervalConstraintProto) constraint_,
7371  getParentForChildren(),
7372  isClean());
7373  constraint_ = null;
7374  }
7375  constraintCase_ = 19;
7376  onChanged();;
7377  return intervalBuilder_;
7378  }
7379 
7380  private com.google.protobuf.SingleFieldBuilderV3<
7381  com.google.ortools.sat.NoOverlapConstraintProto, com.google.ortools.sat.NoOverlapConstraintProto.Builder, com.google.ortools.sat.NoOverlapConstraintProtoOrBuilder> noOverlapBuilder_;
7392  @java.lang.Override
7393  public boolean hasNoOverlap() {
7394  return constraintCase_ == 20;
7395  }
7406  @java.lang.Override
7407  public com.google.ortools.sat.NoOverlapConstraintProto getNoOverlap() {
7408  if (noOverlapBuilder_ == null) {
7409  if (constraintCase_ == 20) {
7410  return (com.google.ortools.sat.NoOverlapConstraintProto) constraint_;
7411  }
7412  return com.google.ortools.sat.NoOverlapConstraintProto.getDefaultInstance();
7413  } else {
7414  if (constraintCase_ == 20) {
7415  return noOverlapBuilder_.getMessage();
7416  }
7417  return com.google.ortools.sat.NoOverlapConstraintProto.getDefaultInstance();
7418  }
7419  }
7429  public Builder setNoOverlap(com.google.ortools.sat.NoOverlapConstraintProto value) {
7430  if (noOverlapBuilder_ == null) {
7431  if (value == null) {
7432  throw new NullPointerException();
7433  }
7434  constraint_ = value;
7435  onChanged();
7436  } else {
7437  noOverlapBuilder_.setMessage(value);
7438  }
7439  constraintCase_ = 20;
7440  return this;
7441  }
7452  com.google.ortools.sat.NoOverlapConstraintProto.Builder builderForValue) {
7453  if (noOverlapBuilder_ == null) {
7454  constraint_ = builderForValue.build();
7455  onChanged();
7456  } else {
7457  noOverlapBuilder_.setMessage(builderForValue.build());
7458  }
7459  constraintCase_ = 20;
7460  return this;
7461  }
7471  public Builder mergeNoOverlap(com.google.ortools.sat.NoOverlapConstraintProto value) {
7472  if (noOverlapBuilder_ == null) {
7473  if (constraintCase_ == 20 &&
7474  constraint_ != com.google.ortools.sat.NoOverlapConstraintProto.getDefaultInstance()) {
7475  constraint_ = com.google.ortools.sat.NoOverlapConstraintProto.newBuilder((com.google.ortools.sat.NoOverlapConstraintProto) constraint_)
7476  .mergeFrom(value).buildPartial();
7477  } else {
7478  constraint_ = value;
7479  }
7480  onChanged();
7481  } else {
7482  if (constraintCase_ == 20) {
7483  noOverlapBuilder_.mergeFrom(value);
7484  }
7485  noOverlapBuilder_.setMessage(value);
7486  }
7487  constraintCase_ = 20;
7488  return this;
7489  }
7500  if (noOverlapBuilder_ == null) {
7501  if (constraintCase_ == 20) {
7502  constraintCase_ = 0;
7503  constraint_ = null;
7504  onChanged();
7505  }
7506  } else {
7507  if (constraintCase_ == 20) {
7508  constraintCase_ = 0;
7509  constraint_ = null;
7510  }
7511  noOverlapBuilder_.clear();
7512  }
7513  return this;
7514  }
7524  public com.google.ortools.sat.NoOverlapConstraintProto.Builder getNoOverlapBuilder() {
7525  return getNoOverlapFieldBuilder().getBuilder();
7526  }
7536  @java.lang.Override
7537  public com.google.ortools.sat.NoOverlapConstraintProtoOrBuilder getNoOverlapOrBuilder() {
7538  if ((constraintCase_ == 20) && (noOverlapBuilder_ != null)) {
7539  return noOverlapBuilder_.getMessageOrBuilder();
7540  } else {
7541  if (constraintCase_ == 20) {
7542  return (com.google.ortools.sat.NoOverlapConstraintProto) constraint_;
7543  }
7544  return com.google.ortools.sat.NoOverlapConstraintProto.getDefaultInstance();
7545  }
7546  }
7556  private com.google.protobuf.SingleFieldBuilderV3<
7557  com.google.ortools.sat.NoOverlapConstraintProto, com.google.ortools.sat.NoOverlapConstraintProto.Builder, com.google.ortools.sat.NoOverlapConstraintProtoOrBuilder>
7558  getNoOverlapFieldBuilder() {
7559  if (noOverlapBuilder_ == null) {
7560  if (!(constraintCase_ == 20)) {
7561  constraint_ = com.google.ortools.sat.NoOverlapConstraintProto.getDefaultInstance();
7562  }
7563  noOverlapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
7564  com.google.ortools.sat.NoOverlapConstraintProto, com.google.ortools.sat.NoOverlapConstraintProto.Builder, com.google.ortools.sat.NoOverlapConstraintProtoOrBuilder>(
7565  (com.google.ortools.sat.NoOverlapConstraintProto) constraint_,
7566  getParentForChildren(),
7567  isClean());
7568  constraint_ = null;
7569  }
7570  constraintCase_ = 20;
7571  onChanged();;
7572  return noOverlapBuilder_;
7573  }
7574 
7575  private com.google.protobuf.SingleFieldBuilderV3<
7576  com.google.ortools.sat.NoOverlap2DConstraintProto, com.google.ortools.sat.NoOverlap2DConstraintProto.Builder, com.google.ortools.sat.NoOverlap2DConstraintProtoOrBuilder> noOverlap2DBuilder_;
7585  @java.lang.Override
7586  public boolean hasNoOverlap2D() {
7587  return constraintCase_ == 21;
7588  }
7597  @java.lang.Override
7598  public com.google.ortools.sat.NoOverlap2DConstraintProto getNoOverlap2D() {
7599  if (noOverlap2DBuilder_ == null) {
7600  if (constraintCase_ == 21) {
7601  return (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_;
7602  }
7603  return com.google.ortools.sat.NoOverlap2DConstraintProto.getDefaultInstance();
7604  } else {
7605  if (constraintCase_ == 21) {
7606  return noOverlap2DBuilder_.getMessage();
7607  }
7608  return com.google.ortools.sat.NoOverlap2DConstraintProto.getDefaultInstance();
7609  }
7610  }
7618  public Builder setNoOverlap2D(com.google.ortools.sat.NoOverlap2DConstraintProto value) {
7619  if (noOverlap2DBuilder_ == null) {
7620  if (value == null) {
7621  throw new NullPointerException();
7622  }
7623  constraint_ = value;
7624  onChanged();
7625  } else {
7626  noOverlap2DBuilder_.setMessage(value);
7627  }
7628  constraintCase_ = 21;
7629  return this;
7630  }
7639  com.google.ortools.sat.NoOverlap2DConstraintProto.Builder builderForValue) {
7640  if (noOverlap2DBuilder_ == null) {
7641  constraint_ = builderForValue.build();
7642  onChanged();
7643  } else {
7644  noOverlap2DBuilder_.setMessage(builderForValue.build());
7645  }
7646  constraintCase_ = 21;
7647  return this;
7648  }
7656  public Builder mergeNoOverlap2D(com.google.ortools.sat.NoOverlap2DConstraintProto value) {
7657  if (noOverlap2DBuilder_ == null) {
7658  if (constraintCase_ == 21 &&
7659  constraint_ != com.google.ortools.sat.NoOverlap2DConstraintProto.getDefaultInstance()) {
7660  constraint_ = com.google.ortools.sat.NoOverlap2DConstraintProto.newBuilder((com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_)
7661  .mergeFrom(value).buildPartial();
7662  } else {
7663  constraint_ = value;
7664  }
7665  onChanged();
7666  } else {
7667  if (constraintCase_ == 21) {
7668  noOverlap2DBuilder_.mergeFrom(value);
7669  }
7670  noOverlap2DBuilder_.setMessage(value);
7671  }
7672  constraintCase_ = 21;
7673  return this;
7674  }
7683  if (noOverlap2DBuilder_ == null) {
7684  if (constraintCase_ == 21) {
7685  constraintCase_ = 0;
7686  constraint_ = null;
7687  onChanged();
7688  }
7689  } else {
7690  if (constraintCase_ == 21) {
7691  constraintCase_ = 0;
7692  constraint_ = null;
7693  }
7694  noOverlap2DBuilder_.clear();
7695  }
7696  return this;
7697  }
7705  public com.google.ortools.sat.NoOverlap2DConstraintProto.Builder getNoOverlap2DBuilder() {
7706  return getNoOverlap2DFieldBuilder().getBuilder();
7707  }
7715  @java.lang.Override
7716  public com.google.ortools.sat.NoOverlap2DConstraintProtoOrBuilder getNoOverlap2DOrBuilder() {
7717  if ((constraintCase_ == 21) && (noOverlap2DBuilder_ != null)) {
7718  return noOverlap2DBuilder_.getMessageOrBuilder();
7719  } else {
7720  if (constraintCase_ == 21) {
7721  return (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_;
7722  }
7723  return com.google.ortools.sat.NoOverlap2DConstraintProto.getDefaultInstance();
7724  }
7725  }
7733  private com.google.protobuf.SingleFieldBuilderV3<
7734  com.google.ortools.sat.NoOverlap2DConstraintProto, com.google.ortools.sat.NoOverlap2DConstraintProto.Builder, com.google.ortools.sat.NoOverlap2DConstraintProtoOrBuilder>
7735  getNoOverlap2DFieldBuilder() {
7736  if (noOverlap2DBuilder_ == null) {
7737  if (!(constraintCase_ == 21)) {
7738  constraint_ = com.google.ortools.sat.NoOverlap2DConstraintProto.getDefaultInstance();
7739  }
7740  noOverlap2DBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
7741  com.google.ortools.sat.NoOverlap2DConstraintProto, com.google.ortools.sat.NoOverlap2DConstraintProto.Builder, com.google.ortools.sat.NoOverlap2DConstraintProtoOrBuilder>(
7742  (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_,
7743  getParentForChildren(),
7744  isClean());
7745  constraint_ = null;
7746  }
7747  constraintCase_ = 21;
7748  onChanged();;
7749  return noOverlap2DBuilder_;
7750  }
7751 
7752  private com.google.protobuf.SingleFieldBuilderV3<
7753  com.google.ortools.sat.CumulativeConstraintProto, com.google.ortools.sat.CumulativeConstraintProto.Builder, com.google.ortools.sat.CumulativeConstraintProtoOrBuilder> cumulativeBuilder_;
7764  @java.lang.Override
7765  public boolean hasCumulative() {
7766  return constraintCase_ == 22;
7767  }
7778  @java.lang.Override
7779  public com.google.ortools.sat.CumulativeConstraintProto getCumulative() {
7780  if (cumulativeBuilder_ == null) {
7781  if (constraintCase_ == 22) {
7782  return (com.google.ortools.sat.CumulativeConstraintProto) constraint_;
7783  }
7784  return com.google.ortools.sat.CumulativeConstraintProto.getDefaultInstance();
7785  } else {
7786  if (constraintCase_ == 22) {
7787  return cumulativeBuilder_.getMessage();
7788  }
7789  return com.google.ortools.sat.CumulativeConstraintProto.getDefaultInstance();
7790  }
7791  }
7801  public Builder setCumulative(com.google.ortools.sat.CumulativeConstraintProto value) {
7802  if (cumulativeBuilder_ == null) {
7803  if (value == null) {
7804  throw new NullPointerException();
7805  }
7806  constraint_ = value;
7807  onChanged();
7808  } else {
7809  cumulativeBuilder_.setMessage(value);
7810  }
7811  constraintCase_ = 22;
7812  return this;
7813  }
7824  com.google.ortools.sat.CumulativeConstraintProto.Builder builderForValue) {
7825  if (cumulativeBuilder_ == null) {
7826  constraint_ = builderForValue.build();
7827  onChanged();
7828  } else {
7829  cumulativeBuilder_.setMessage(builderForValue.build());
7830  }
7831  constraintCase_ = 22;
7832  return this;
7833  }
7843  public Builder mergeCumulative(com.google.ortools.sat.CumulativeConstraintProto value) {
7844  if (cumulativeBuilder_ == null) {
7845  if (constraintCase_ == 22 &&
7846  constraint_ != com.google.ortools.sat.CumulativeConstraintProto.getDefaultInstance()) {
7847  constraint_ = com.google.ortools.sat.CumulativeConstraintProto.newBuilder((com.google.ortools.sat.CumulativeConstraintProto) constraint_)
7848  .mergeFrom(value).buildPartial();
7849  } else {
7850  constraint_ = value;
7851  }
7852  onChanged();
7853  } else {
7854  if (constraintCase_ == 22) {
7855  cumulativeBuilder_.mergeFrom(value);
7856  }
7857  cumulativeBuilder_.setMessage(value);
7858  }
7859  constraintCase_ = 22;
7860  return this;
7861  }
7872  if (cumulativeBuilder_ == null) {
7873  if (constraintCase_ == 22) {
7874  constraintCase_ = 0;
7875  constraint_ = null;
7876  onChanged();
7877  }
7878  } else {
7879  if (constraintCase_ == 22) {
7880  constraintCase_ = 0;
7881  constraint_ = null;
7882  }
7883  cumulativeBuilder_.clear();
7884  }
7885  return this;
7886  }
7896  public com.google.ortools.sat.CumulativeConstraintProto.Builder getCumulativeBuilder() {
7897  return getCumulativeFieldBuilder().getBuilder();
7898  }
7908  @java.lang.Override
7909  public com.google.ortools.sat.CumulativeConstraintProtoOrBuilder getCumulativeOrBuilder() {
7910  if ((constraintCase_ == 22) && (cumulativeBuilder_ != null)) {
7911  return cumulativeBuilder_.getMessageOrBuilder();
7912  } else {
7913  if (constraintCase_ == 22) {
7914  return (com.google.ortools.sat.CumulativeConstraintProto) constraint_;
7915  }
7916  return com.google.ortools.sat.CumulativeConstraintProto.getDefaultInstance();
7917  }
7918  }
7928  private com.google.protobuf.SingleFieldBuilderV3<
7929  com.google.ortools.sat.CumulativeConstraintProto, com.google.ortools.sat.CumulativeConstraintProto.Builder, com.google.ortools.sat.CumulativeConstraintProtoOrBuilder>
7930  getCumulativeFieldBuilder() {
7931  if (cumulativeBuilder_ == null) {
7932  if (!(constraintCase_ == 22)) {
7933  constraint_ = com.google.ortools.sat.CumulativeConstraintProto.getDefaultInstance();
7934  }
7935  cumulativeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
7936  com.google.ortools.sat.CumulativeConstraintProto, com.google.ortools.sat.CumulativeConstraintProto.Builder, com.google.ortools.sat.CumulativeConstraintProtoOrBuilder>(
7937  (com.google.ortools.sat.CumulativeConstraintProto) constraint_,
7938  getParentForChildren(),
7939  isClean());
7940  constraint_ = null;
7941  }
7942  constraintCase_ = 22;
7943  onChanged();;
7944  return cumulativeBuilder_;
7945  }
7946  @java.lang.Override
7948  final com.google.protobuf.UnknownFieldSet unknownFields) {
7949  return super.setUnknownFields(unknownFields);
7950  }
7951 
7952  @java.lang.Override
7954  final com.google.protobuf.UnknownFieldSet unknownFields) {
7955  return super.mergeUnknownFields(unknownFields);
7956  }
7957 
7958 
7959  // @@protoc_insertion_point(builder_scope:operations_research.sat.ConstraintProto)
7960  }
7961 
7962  // @@protoc_insertion_point(class_scope:operations_research.sat.ConstraintProto)
7963  private static final com.google.ortools.sat.ConstraintProto DEFAULT_INSTANCE;
7964  static {
7965  DEFAULT_INSTANCE = new com.google.ortools.sat.ConstraintProto();
7966  }
7967 
7968  public static com.google.ortools.sat.ConstraintProto getDefaultInstance() {
7969  return DEFAULT_INSTANCE;
7970  }
7971 
7972  private static final com.google.protobuf.Parser<ConstraintProto>
7973  PARSER = new com.google.protobuf.AbstractParser<ConstraintProto>() {
7974  @java.lang.Override
7975  public ConstraintProto parsePartialFrom(
7976  com.google.protobuf.CodedInputStream input,
7977  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7978  throws com.google.protobuf.InvalidProtocolBufferException {
7979  return new ConstraintProto(input, extensionRegistry);
7980  }
7981  };
7982 
7983  public static com.google.protobuf.Parser<ConstraintProto> parser() {
7984  return PARSER;
7985  }
7986 
7987  @java.lang.Override
7988  public com.google.protobuf.Parser<ConstraintProto> getParserForType() {
7989  return PARSER;
7990  }
7991 
7992  @java.lang.Override
7993  public com.google.ortools.sat.ConstraintProto getDefaultInstanceForType() {
7994  return DEFAULT_INSTANCE;
7995  }
7996 
7997 }
7998 
.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 setAtMostOne(com.google.ortools.sat.BoolArgumentProto value)
.lang.Override com.google.ortools.sat.BoolArgumentProto getBoolOr()
.lang.Override com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntDivOrBuilder()
.lang.Override com.google.ortools.sat.IntegerArgumentProto getIntMax()
Builder setExactlyOne(com.google.ortools.sat.BoolArgumentProto.Builder builderForValue)
.lang.Override com.google.ortools.sat.BoolArgumentProtoOrBuilder getAtMostOneOrBuilder()
Builder setTable(com.google.ortools.sat.TableConstraintProto.Builder builderForValue)
Builder mergeLinMax(com.google.ortools.sat.LinearArgumentProto value)
.operations_research.sat.LinearArgumentProto lin_max = 27;
Builder setInverse(com.google.ortools.sat.InverseConstraintProto value)
Builder setBoolAnd(com.google.ortools.sat.BoolArgumentProto.Builder builderForValue)
Builder setLinMin(com.google.ortools.sat.LinearArgumentProto.Builder builderForValue)
.operations_research.sat.LinearArgumentProto lin_min = 28;
Builder setCircuit(com.google.ortools.sat.CircuitConstraintProto value)
Builder mergeBoolAnd(com.google.ortools.sat.BoolArgumentProto value)
.lang.Override com.google.ortools.sat.CumulativeConstraintProtoOrBuilder getCumulativeOrBuilder()
Builder setCircuit(com.google.ortools.sat.CircuitConstraintProto.Builder builderForValue)
.lang.Override com.google.ortools.sat.BoolArgumentProto getBoolAnd()
Builder mergeIntMin(com.google.ortools.sat.IntegerArgumentProto value)
Builder mergeLinear(com.google.ortools.sat.LinearConstraintProto value)
com.google.ortools.sat.CircuitConstraintProto.Builder getCircuitBuilder()
.lang.Override com.google.ortools.sat.IntegerArgumentProto getIntDiv()
Builder mergeIntMod(com.google.ortools.sat.IntegerArgumentProto value)
Builder setNoOverlap2D(com.google.ortools.sat.NoOverlap2DConstraintProto value)
.lang.Override com.google.ortools.sat.BoolArgumentProto getExactlyOne()
com.google.ortools.sat.BoolArgumentProto.Builder getBoolXorBuilder()
Builder setNoOverlap(com.google.ortools.sat.NoOverlapConstraintProto.Builder builderForValue)
.lang.Override com.google.ortools.sat.CumulativeConstraintProto getCumulative()
Builder mergeInverse(com.google.ortools.sat.InverseConstraintProto value)
.lang.Override Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override com.google.ortools.sat.AutomatonConstraintProtoOrBuilder getAutomatonOrBuilder()
.lang.Override Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
.lang.Override com.google.ortools.sat.CircuitConstraintProto getCircuit()
.lang.Override com.google.ortools.sat.ConstraintProto build()
com.google.ortools.sat.IntervalConstraintProto.Builder getIntervalBuilder()
.lang.Override Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
.lang.Override com.google.ortools.sat.ConstraintProto getDefaultInstanceForType()
Builder mergeIntDiv(com.google.ortools.sat.IntegerArgumentProto value)
Builder mergeExactlyOne(com.google.ortools.sat.BoolArgumentProto value)
.lang.Override com.google.ortools.sat.IntervalConstraintProto getInterval()
com.google.ortools.sat.IntegerArgumentProto.Builder getIntMinBuilder()
com.google.ortools.sat.IntegerArgumentProto.Builder getIntDivBuilder()
com.google.ortools.sat.IntegerArgumentProto.Builder getIntMaxBuilder()
Builder setTable(com.google.ortools.sat.TableConstraintProto value)
.lang.Override com.google.ortools.sat.LinearArgumentProtoOrBuilder getLinMinOrBuilder()
.operations_research.sat.LinearArgumentProto lin_min = 28;
.lang.Override final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
Builder setBoolOr(com.google.ortools.sat.BoolArgumentProto.Builder builderForValue)
.lang.Override com.google.ortools.sat.NoOverlap2DConstraintProto getNoOverlap2D()
.lang.Override com.google.ortools.sat.TableConstraintProtoOrBuilder getTableOrBuilder()
.lang.Override com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntModOrBuilder()
Builder mergeBoolXor(com.google.ortools.sat.BoolArgumentProto value)
Builder setIntDiv(com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue)
.lang.Override com.google.ortools.sat.ElementConstraintProtoOrBuilder getElementOrBuilder()
com.google.ortools.sat.BoolArgumentProto.Builder getExactlyOneBuilder()
.lang.Override com.google.ortools.sat.InverseConstraintProto getInverse()
Builder setNameBytes(com.google.protobuf.ByteString value)
Builder mergeIntMax(com.google.ortools.sat.IntegerArgumentProto value)
.lang.Override com.google.ortools.sat.TableConstraintProto getTable()
Builder mergeBoolOr(com.google.ortools.sat.BoolArgumentProto value)
Builder setAutomaton(com.google.ortools.sat.AutomatonConstraintProto value)
com.google.ortools.sat.ReservoirConstraintProto.Builder getReservoirBuilder()
.lang.Override Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Builder clearLinMin()
.operations_research.sat.LinearArgumentProto lin_min = 28;
Builder mergeInterval(com.google.ortools.sat.IntervalConstraintProto value)
Builder setLinMax(com.google.ortools.sat.LinearArgumentProto.Builder builderForValue)
.operations_research.sat.LinearArgumentProto lin_max = 27;
.lang.Override com.google.ortools.sat.NoOverlapConstraintProtoOrBuilder getNoOverlapOrBuilder()
.lang.Override com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntProdOrBuilder()
com.google.ortools.sat.IntegerArgumentProto.Builder getIntProdBuilder()
.lang.Override com.google.ortools.sat.ConstraintProto buildPartial()
Builder mergeFrom(com.google.ortools.sat.ConstraintProto other)
Builder setLinear(com.google.ortools.sat.LinearConstraintProto value)
Builder setLinMax(com.google.ortools.sat.LinearArgumentProto value)
.operations_research.sat.LinearArgumentProto lin_max = 27;
java.util.List< java.lang.Integer > getEnforcementLiteralList()
Builder setAutomaton(com.google.ortools.sat.AutomatonConstraintProto.Builder builderForValue)
.lang.Override com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
Builder mergeCircuit(com.google.ortools.sat.CircuitConstraintProto value)
.lang.Override com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntMaxOrBuilder()
Builder setNoOverlap2D(com.google.ortools.sat.NoOverlap2DConstraintProto.Builder builderForValue)
Builder setBoolXor(com.google.ortools.sat.BoolArgumentProto.Builder builderForValue)
.lang.Override com.google.ortools.sat.LinearArgumentProto getLinMin()
.operations_research.sat.LinearArgumentProto lin_min = 28;
com.google.ortools.sat.LinearConstraintProto.Builder getLinearBuilder()
Builder setRoutes(com.google.ortools.sat.RoutesConstraintProto.Builder builderForValue)
.lang.Override com.google.ortools.sat.NoOverlapConstraintProto getNoOverlap()
Builder setBoolOr(com.google.ortools.sat.BoolArgumentProto value)
Builder mergeLinMin(com.google.ortools.sat.LinearArgumentProto value)
.operations_research.sat.LinearArgumentProto lin_min = 28;
Builder mergeNoOverlap2D(com.google.ortools.sat.NoOverlap2DConstraintProto value)
Builder mergeAtMostOne(com.google.ortools.sat.BoolArgumentProto value)
.lang.Override com.google.ortools.sat.AllDifferentConstraintProtoOrBuilder getAllDiffOrBuilder()
com.google.ortools.sat.LinearArgumentProto.Builder getLinMinBuilder()
.operations_research.sat.LinearArgumentProto lin_min = 28;
.lang.Override com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolAndOrBuilder()
.lang.Override com.google.ortools.sat.BoolArgumentProtoOrBuilder getExactlyOneOrBuilder()
Builder setAtMostOne(com.google.ortools.sat.BoolArgumentProto.Builder builderForValue)
Builder setExactlyOne(com.google.ortools.sat.BoolArgumentProto value)
com.google.ortools.sat.ElementConstraintProto.Builder getElementBuilder()
Builder mergeTable(com.google.ortools.sat.TableConstraintProto value)
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
.lang.Override com.google.ortools.sat.LinearConstraintProto getLinear()
.lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
.lang.Override com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolOrOrBuilder()
Builder setIntMod(com.google.ortools.sat.IntegerArgumentProto value)
Builder setIntMin(com.google.ortools.sat.IntegerArgumentProto value)
Builder setIntMax(com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue)
.lang.Override com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolXorOrBuilder()
com.google.ortools.sat.NoOverlap2DConstraintProto.Builder getNoOverlap2DBuilder()
Builder setIntDiv(com.google.ortools.sat.IntegerArgumentProto value)
Builder setCumulative(com.google.ortools.sat.CumulativeConstraintProto.Builder builderForValue)
Builder setRoutes(com.google.ortools.sat.RoutesConstraintProto value)
.lang.Override com.google.ortools.sat.AllDifferentConstraintProto getAllDiff()
Builder setBoolXor(com.google.ortools.sat.BoolArgumentProto value)
Builder setBoolAnd(com.google.ortools.sat.BoolArgumentProto value)
Builder setCumulative(com.google.ortools.sat.CumulativeConstraintProto value)
Builder setLinMin(com.google.ortools.sat.LinearArgumentProto value)
.operations_research.sat.LinearArgumentProto lin_min = 28;
Builder setInverse(com.google.ortools.sat.InverseConstraintProto.Builder builderForValue)
.lang.Override com.google.ortools.sat.IntervalConstraintProtoOrBuilder getIntervalOrBuilder()
.lang.Override com.google.ortools.sat.RoutesConstraintProto getRoutes()
Builder setAllDiff(com.google.ortools.sat.AllDifferentConstraintProto.Builder builderForValue)
Builder setAllDiff(com.google.ortools.sat.AllDifferentConstraintProto value)
.lang.Override boolean hasLinMin()
.operations_research.sat.LinearArgumentProto lin_min = 28;
Builder mergeNoOverlap(com.google.ortools.sat.NoOverlapConstraintProto value)
Builder mergeCumulative(com.google.ortools.sat.CumulativeConstraintProto value)
Builder mergeAllDiff(com.google.ortools.sat.AllDifferentConstraintProto value)
.lang.Override com.google.ortools.sat.ReservoirConstraintProtoOrBuilder getReservoirOrBuilder()
.lang.Override final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
com.google.ortools.sat.RoutesConstraintProto.Builder getRoutesBuilder()
Builder setIntMax(com.google.ortools.sat.IntegerArgumentProto value)
Builder setReservoir(com.google.ortools.sat.ReservoirConstraintProto.Builder builderForValue)
com.google.ortools.sat.LinearArgumentProto.Builder getLinMaxBuilder()
.operations_research.sat.LinearArgumentProto lin_max = 27;
Builder setInterval(com.google.ortools.sat.IntervalConstraintProto.Builder builderForValue)
.lang.Override com.google.ortools.sat.ReservoirConstraintProto getReservoir()
.lang.Override com.google.ortools.sat.IntegerArgumentProto getIntMin()
Builder mergeElement(com.google.ortools.sat.ElementConstraintProto value)
.lang.Override com.google.ortools.sat.RoutesConstraintProtoOrBuilder getRoutesOrBuilder()
.lang.Override com.google.ortools.sat.InverseConstraintProtoOrBuilder getInverseOrBuilder()
.lang.Override com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntMinOrBuilder()
com.google.ortools.sat.BoolArgumentProto.Builder getAtMostOneBuilder()
Builder setIntProd(com.google.ortools.sat.IntegerArgumentProto value)
.lang.Override com.google.ortools.sat.AutomatonConstraintProto getAutomaton()
Builder setNoOverlap(com.google.ortools.sat.NoOverlapConstraintProto value)
com.google.ortools.sat.TableConstraintProto.Builder getTableBuilder()
Builder setInterval(com.google.ortools.sat.IntervalConstraintProto value)
.lang.Override com.google.ortools.sat.LinearArgumentProtoOrBuilder getLinMaxOrBuilder()
.operations_research.sat.LinearArgumentProto lin_max = 27;
com.google.ortools.sat.NoOverlapConstraintProto.Builder getNoOverlapBuilder()
.lang.Override com.google.ortools.sat.IntegerArgumentProto getIntProd()
Builder setReservoir(com.google.ortools.sat.ReservoirConstraintProto value)
com.google.ortools.sat.CumulativeConstraintProto.Builder getCumulativeBuilder()
com.google.ortools.sat.BoolArgumentProto.Builder getBoolOrBuilder()
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
Builder setIntMod(com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue)
com.google.ortools.sat.AutomatonConstraintProto.Builder getAutomatonBuilder()
Builder mergeAutomaton(com.google.ortools.sat.AutomatonConstraintProto value)
com.google.ortools.sat.InverseConstraintProto.Builder getInverseBuilder()
Builder addAllEnforcementLiteral(java.lang.Iterable<? extends java.lang.Integer > values)
Builder mergeReservoir(com.google.ortools.sat.ReservoirConstraintProto value)
Builder clearLinMax()
.operations_research.sat.LinearArgumentProto lin_max = 27;
com.google.ortools.sat.IntegerArgumentProto.Builder getIntModBuilder()
.lang.Override boolean hasLinMax()
.operations_research.sat.LinearArgumentProto lin_max = 27;
Builder setIntProd(com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue)
.lang.Override com.google.ortools.sat.CircuitConstraintProtoOrBuilder getCircuitOrBuilder()
.lang.Override com.google.ortools.sat.ElementConstraintProto getElement()
com.google.protobuf.ByteString getNameBytes()
.lang.Override com.google.ortools.sat.BoolArgumentProto getBoolXor()
com.google.ortools.sat.BoolArgumentProto.Builder getBoolAndBuilder()
Builder mergeRoutes(com.google.ortools.sat.RoutesConstraintProto value)
.lang.Override com.google.ortools.sat.LinearConstraintProtoOrBuilder getLinearOrBuilder()
.lang.Override com.google.ortools.sat.LinearArgumentProto getLinMax()
.operations_research.sat.LinearArgumentProto lin_max = 27;
Builder setLinear(com.google.ortools.sat.LinearConstraintProto.Builder builderForValue)
.lang.Override com.google.ortools.sat.NoOverlap2DConstraintProtoOrBuilder getNoOverlap2DOrBuilder()
Builder setIntMin(com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue)
.lang.Override Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
com.google.ortools.sat.AllDifferentConstraintProto.Builder getAllDiffBuilder()
.lang.Override com.google.ortools.sat.BoolArgumentProto getAtMostOne()
.lang.Override com.google.ortools.sat.IntegerArgumentProto getIntMod()
Builder setElement(com.google.ortools.sat.ElementConstraintProto.Builder builderForValue)
Builder mergeIntProd(com.google.ortools.sat.IntegerArgumentProto value)
Builder setElement(com.google.ortools.sat.ElementConstraintProto value)
.lang.Override Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Builder setEnforcementLiteral(int index, int value)
.lang.Override com.google.ortools.sat.BoolArgumentProto getBoolOr()
.lang.Override com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntDivOrBuilder()
.lang.Override com.google.ortools.sat.IntegerArgumentProto getIntMax()
.lang.Override com.google.ortools.sat.BoolArgumentProtoOrBuilder getAtMostOneOrBuilder()
.lang.Override com.google.ortools.sat.CumulativeConstraintProtoOrBuilder getCumulativeOrBuilder()
.lang.Override com.google.ortools.sat.BoolArgumentProto getBoolAnd()
static com.google.ortools.sat.ConstraintProto parseFrom(java.nio.ByteBuffer data)
.lang.Override com.google.ortools.sat.IntegerArgumentProto getIntDiv()
.lang.Override com.google.ortools.sat.BoolArgumentProto getExactlyOne()
static com.google.ortools.sat.ConstraintProto parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override com.google.ortools.sat.CumulativeConstraintProto getCumulative()
static Builder newBuilder(com.google.ortools.sat.ConstraintProto prototype)
.lang.Override com.google.ortools.sat.AutomatonConstraintProtoOrBuilder getAutomatonOrBuilder()
.lang.Override com.google.ortools.sat.CircuitConstraintProto getCircuit()
static com.google.protobuf.Parser< ConstraintProto > parser()
.lang.Override com.google.ortools.sat.ConstraintProto getDefaultInstanceForType()
.lang.Override com.google.ortools.sat.IntervalConstraintProto getInterval()
static com.google.ortools.sat.ConstraintProto parseFrom(com.google.protobuf.ByteString data)
.lang.Override com.google.ortools.sat.LinearArgumentProtoOrBuilder getLinMinOrBuilder()
.operations_research.sat.LinearArgumentProto lin_min = 28;
static com.google.ortools.sat.ConstraintProto getDefaultInstance()
.lang.Override Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
.lang.Override com.google.ortools.sat.NoOverlap2DConstraintProto getNoOverlap2D()
.lang.Override com.google.ortools.sat.TableConstraintProtoOrBuilder getTableOrBuilder()
static com.google.ortools.sat.ConstraintProto parseDelimitedFrom(java.io.InputStream input)
.lang.Override com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntModOrBuilder()
.lang.Override com.google.ortools.sat.ElementConstraintProtoOrBuilder getElementOrBuilder()
.lang.Override com.google.ortools.sat.InverseConstraintProto getInverse()
.lang.Override com.google.ortools.sat.TableConstraintProto getTable()
.lang.Override com.google.ortools.sat.NoOverlapConstraintProtoOrBuilder getNoOverlapOrBuilder()
.lang.Override com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntProdOrBuilder()
static com.google.ortools.sat.ConstraintProto parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override java.lang.String getName()
static com.google.ortools.sat.ConstraintProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntMaxOrBuilder()
.lang.Override com.google.ortools.sat.LinearArgumentProto getLinMin()
.operations_research.sat.LinearArgumentProto lin_min = 28;
.lang.Override com.google.ortools.sat.NoOverlapConstraintProto getNoOverlap()
.lang.Override com.google.ortools.sat.AllDifferentConstraintProtoOrBuilder getAllDiffOrBuilder()
.lang.Override Builder newBuilderForType()
.lang.Override com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolAndOrBuilder()
static com.google.ortools.sat.ConstraintProto parseFrom(com.google.protobuf.CodedInputStream input)
.lang.Override void writeTo(com.google.protobuf.CodedOutputStream output)
.lang.Override com.google.ortools.sat.BoolArgumentProtoOrBuilder getExactlyOneOrBuilder()
static com.google.ortools.sat.ConstraintProto parseFrom(byte[] data)
.lang.Override com.google.ortools.sat.LinearConstraintProto getLinear()
.lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
.lang.Override final com.google.protobuf.UnknownFieldSet getUnknownFields()
.lang.Override com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolOrOrBuilder()
.lang.Override final boolean isInitialized()
.lang.Override com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolXorOrBuilder()
.lang.Override com.google.ortools.sat.AllDifferentConstraintProto getAllDiff()
.lang.Override com.google.ortools.sat.IntervalConstraintProtoOrBuilder getIntervalOrBuilder()
.lang.Override com.google.ortools.sat.RoutesConstraintProto getRoutes()
.lang.Override java.util.List< java.lang.Integer > getEnforcementLiteralList()
.lang.Override boolean hasLinMin()
.operations_research.sat.LinearArgumentProto lin_min = 28;
static com.google.ortools.sat.ConstraintProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override com.google.protobuf.ByteString getNameBytes()
.lang.Override com.google.ortools.sat.ReservoirConstraintProtoOrBuilder getReservoirOrBuilder()
static com.google.ortools.sat.ConstraintProto parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.sat.ConstraintProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override com.google.ortools.sat.ReservoirConstraintProto getReservoir()
.lang.Override com.google.ortools.sat.IntegerArgumentProto getIntMin()
.lang.Override java.lang.Object newInstance(UnusedPrivateParameter unused)
.lang.Override com.google.ortools.sat.RoutesConstraintProtoOrBuilder getRoutesOrBuilder()
.lang.Override com.google.ortools.sat.InverseConstraintProtoOrBuilder getInverseOrBuilder()
.lang.Override com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntMinOrBuilder()
.lang.Override com.google.ortools.sat.AutomatonConstraintProto getAutomaton()
.lang.Override com.google.protobuf.Parser< ConstraintProto > getParserForType()
.lang.Override com.google.ortools.sat.LinearArgumentProtoOrBuilder getLinMaxOrBuilder()
.operations_research.sat.LinearArgumentProto lin_max = 27;
.lang.Override com.google.ortools.sat.IntegerArgumentProto getIntProd()
.lang.Override boolean equals(final java.lang.Object obj)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
.lang.Override boolean hasLinMax()
.operations_research.sat.LinearArgumentProto lin_max = 27;
.lang.Override com.google.ortools.sat.CircuitConstraintProtoOrBuilder getCircuitOrBuilder()
.lang.Override com.google.ortools.sat.ElementConstraintProto getElement()
static com.google.ortools.sat.ConstraintProto parseFrom(java.io.InputStream input)
.lang.Override com.google.ortools.sat.BoolArgumentProto getBoolXor()
.lang.Override com.google.ortools.sat.LinearConstraintProtoOrBuilder getLinearOrBuilder()
.lang.Override com.google.ortools.sat.LinearArgumentProto getLinMax()
.operations_research.sat.LinearArgumentProto lin_max = 27;
.lang.Override com.google.ortools.sat.NoOverlap2DConstraintProtoOrBuilder getNoOverlap2DOrBuilder()
.lang.Override com.google.ortools.sat.BoolArgumentProto getAtMostOne()
.lang.Override com.google.ortools.sat.IntegerArgumentProto getIntMod()
.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)
.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)
.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)
.lang.Deprecated static ConstraintCase valueOf(int value)