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: {
199  if (constraintCase_ == 12) {
200  subBuilder = ((com.google.ortools.sat.LinearConstraintProto) constraint_).toBuilder();
201  }
202  constraint_ =
203  input.readMessage(com.google.ortools.sat.LinearConstraintProto.parser(), extensionRegistry);
204  if (subBuilder != null) {
205  subBuilder.mergeFrom((com.google.ortools.sat.LinearConstraintProto) constraint_);
206  constraint_ = subBuilder.buildPartial();
207  }
208  constraintCase_ = 12;
209  break;
210  }
211  case 106: {
213  if (constraintCase_ == 13) {
214  subBuilder = ((com.google.ortools.sat.AllDifferentConstraintProto) constraint_).toBuilder();
215  }
216  constraint_ =
217  input.readMessage(com.google.ortools.sat.AllDifferentConstraintProto.parser(), extensionRegistry);
218  if (subBuilder != null) {
219  subBuilder.mergeFrom((com.google.ortools.sat.AllDifferentConstraintProto) constraint_);
220  constraint_ = subBuilder.buildPartial();
221  }
222  constraintCase_ = 13;
223  break;
224  }
225  case 114: {
227  if (constraintCase_ == 14) {
228  subBuilder = ((com.google.ortools.sat.ElementConstraintProto) constraint_).toBuilder();
229  }
230  constraint_ =
231  input.readMessage(com.google.ortools.sat.ElementConstraintProto.parser(), extensionRegistry);
232  if (subBuilder != null) {
233  subBuilder.mergeFrom((com.google.ortools.sat.ElementConstraintProto) constraint_);
234  constraint_ = subBuilder.buildPartial();
235  }
236  constraintCase_ = 14;
237  break;
238  }
239  case 122: {
241  if (constraintCase_ == 15) {
242  subBuilder = ((com.google.ortools.sat.CircuitConstraintProto) constraint_).toBuilder();
243  }
244  constraint_ =
245  input.readMessage(com.google.ortools.sat.CircuitConstraintProto.parser(), extensionRegistry);
246  if (subBuilder != null) {
247  subBuilder.mergeFrom((com.google.ortools.sat.CircuitConstraintProto) constraint_);
248  constraint_ = subBuilder.buildPartial();
249  }
250  constraintCase_ = 15;
251  break;
252  }
253  case 130: {
254  com.google.ortools.sat.TableConstraintProto.Builder subBuilder = null;
255  if (constraintCase_ == 16) {
256  subBuilder = ((com.google.ortools.sat.TableConstraintProto) constraint_).toBuilder();
257  }
258  constraint_ =
259  input.readMessage(com.google.ortools.sat.TableConstraintProto.parser(), extensionRegistry);
260  if (subBuilder != null) {
261  subBuilder.mergeFrom((com.google.ortools.sat.TableConstraintProto) constraint_);
262  constraint_ = subBuilder.buildPartial();
263  }
264  constraintCase_ = 16;
265  break;
266  }
267  case 138: {
269  if (constraintCase_ == 17) {
270  subBuilder = ((com.google.ortools.sat.AutomatonConstraintProto) constraint_).toBuilder();
271  }
272  constraint_ =
273  input.readMessage(com.google.ortools.sat.AutomatonConstraintProto.parser(), extensionRegistry);
274  if (subBuilder != null) {
275  subBuilder.mergeFrom((com.google.ortools.sat.AutomatonConstraintProto) constraint_);
276  constraint_ = subBuilder.buildPartial();
277  }
278  constraintCase_ = 17;
279  break;
280  }
281  case 146: {
283  if (constraintCase_ == 18) {
284  subBuilder = ((com.google.ortools.sat.InverseConstraintProto) constraint_).toBuilder();
285  }
286  constraint_ =
287  input.readMessage(com.google.ortools.sat.InverseConstraintProto.parser(), extensionRegistry);
288  if (subBuilder != null) {
289  subBuilder.mergeFrom((com.google.ortools.sat.InverseConstraintProto) constraint_);
290  constraint_ = subBuilder.buildPartial();
291  }
292  constraintCase_ = 18;
293  break;
294  }
295  case 154: {
297  if (constraintCase_ == 19) {
298  subBuilder = ((com.google.ortools.sat.IntervalConstraintProto) constraint_).toBuilder();
299  }
300  constraint_ =
301  input.readMessage(com.google.ortools.sat.IntervalConstraintProto.parser(), extensionRegistry);
302  if (subBuilder != null) {
303  subBuilder.mergeFrom((com.google.ortools.sat.IntervalConstraintProto) constraint_);
304  constraint_ = subBuilder.buildPartial();
305  }
306  constraintCase_ = 19;
307  break;
308  }
309  case 162: {
311  if (constraintCase_ == 20) {
312  subBuilder = ((com.google.ortools.sat.NoOverlapConstraintProto) constraint_).toBuilder();
313  }
314  constraint_ =
315  input.readMessage(com.google.ortools.sat.NoOverlapConstraintProto.parser(), extensionRegistry);
316  if (subBuilder != null) {
317  subBuilder.mergeFrom((com.google.ortools.sat.NoOverlapConstraintProto) constraint_);
318  constraint_ = subBuilder.buildPartial();
319  }
320  constraintCase_ = 20;
321  break;
322  }
323  case 170: {
325  if (constraintCase_ == 21) {
326  subBuilder = ((com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_).toBuilder();
327  }
328  constraint_ =
329  input.readMessage(com.google.ortools.sat.NoOverlap2DConstraintProto.parser(), extensionRegistry);
330  if (subBuilder != null) {
331  subBuilder.mergeFrom((com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_);
332  constraint_ = subBuilder.buildPartial();
333  }
334  constraintCase_ = 21;
335  break;
336  }
337  case 178: {
339  if (constraintCase_ == 22) {
340  subBuilder = ((com.google.ortools.sat.CumulativeConstraintProto) constraint_).toBuilder();
341  }
342  constraint_ =
343  input.readMessage(com.google.ortools.sat.CumulativeConstraintProto.parser(), extensionRegistry);
344  if (subBuilder != null) {
345  subBuilder.mergeFrom((com.google.ortools.sat.CumulativeConstraintProto) constraint_);
346  constraint_ = subBuilder.buildPartial();
347  }
348  constraintCase_ = 22;
349  break;
350  }
351  case 186: {
353  if (constraintCase_ == 23) {
354  subBuilder = ((com.google.ortools.sat.RoutesConstraintProto) constraint_).toBuilder();
355  }
356  constraint_ =
357  input.readMessage(com.google.ortools.sat.RoutesConstraintProto.parser(), extensionRegistry);
358  if (subBuilder != null) {
359  subBuilder.mergeFrom((com.google.ortools.sat.RoutesConstraintProto) constraint_);
360  constraint_ = subBuilder.buildPartial();
361  }
362  constraintCase_ = 23;
363  break;
364  }
365  case 194: {
367  if (constraintCase_ == 24) {
368  subBuilder = ((com.google.ortools.sat.ReservoirConstraintProto) constraint_).toBuilder();
369  }
370  constraint_ =
371  input.readMessage(com.google.ortools.sat.ReservoirConstraintProto.parser(), extensionRegistry);
372  if (subBuilder != null) {
373  subBuilder.mergeFrom((com.google.ortools.sat.ReservoirConstraintProto) constraint_);
374  constraint_ = subBuilder.buildPartial();
375  }
376  constraintCase_ = 24;
377  break;
378  }
379  case 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  case 242: {
436  com.google.ortools.sat.ListOfVariablesProto.Builder subBuilder = null;
437  if (constraintCase_ == 30) {
438  subBuilder = ((com.google.ortools.sat.ListOfVariablesProto) constraint_).toBuilder();
439  }
440  constraint_ =
441  input.readMessage(com.google.ortools.sat.ListOfVariablesProto.parser(), extensionRegistry);
442  if (subBuilder != null) {
443  subBuilder.mergeFrom((com.google.ortools.sat.ListOfVariablesProto) constraint_);
444  constraint_ = subBuilder.buildPartial();
445  }
446  constraintCase_ = 30;
447  break;
448  }
449  default: {
450  if (!parseUnknownField(
451  input, unknownFields, extensionRegistry, tag)) {
452  done = true;
453  }
454  break;
455  }
456  }
457  }
458  } catch (com.google.protobuf.InvalidProtocolBufferException e) {
459  throw e.setUnfinishedMessage(this);
460  } catch (java.io.IOException e) {
461  throw new com.google.protobuf.InvalidProtocolBufferException(
462  e).setUnfinishedMessage(this);
463  } finally {
464  if (((mutable_bitField0_ & 0x00000001) != 0)) {
465  enforcementLiteral_.makeImmutable(); // C
466  }
467  this.unknownFields = unknownFields.build();
468  makeExtensionsImmutable();
469  }
470  }
471  public static final com.google.protobuf.Descriptors.Descriptor
473  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_descriptor;
474  }
475 
476  @java.lang.Override
477  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
479  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_fieldAccessorTable
480  .ensureFieldAccessorsInitialized(
482  }
483 
484  private int constraintCase_ = 0;
485  private java.lang.Object constraint_;
486  public enum ConstraintCase
487  implements com.google.protobuf.Internal.EnumLite,
488  com.google.protobuf.AbstractMessage.InternalOneOfEnum {
497  LIN_MAX(27),
498  INT_MIN(10),
499  LIN_MIN(28),
500  INT_PROD(11),
501  LINEAR(12),
502  ALL_DIFF(13),
503  ELEMENT(14),
504  CIRCUIT(15),
505  ROUTES(23),
506  TABLE(16),
508  INVERSE(18),
510  INTERVAL(19),
516  private final int value;
517  private ConstraintCase(int value) {
518  this.value = value;
519  }
525  @java.lang.Deprecated
526  public static ConstraintCase valueOf(int value) {
527  return forNumber(value);
528  }
529 
530  public static ConstraintCase forNumber(int value) {
531  switch (value) {
532  case 3: return BOOL_OR;
533  case 4: return BOOL_AND;
534  case 26: return AT_MOST_ONE;
535  case 29: return EXACTLY_ONE;
536  case 5: return BOOL_XOR;
537  case 7: return INT_DIV;
538  case 8: return INT_MOD;
539  case 9: return INT_MAX;
540  case 27: return LIN_MAX;
541  case 10: return INT_MIN;
542  case 28: return LIN_MIN;
543  case 11: return INT_PROD;
544  case 12: return LINEAR;
545  case 13: return ALL_DIFF;
546  case 14: return ELEMENT;
547  case 15: return CIRCUIT;
548  case 23: return ROUTES;
549  case 16: return TABLE;
550  case 17: return AUTOMATON;
551  case 18: return INVERSE;
552  case 24: return RESERVOIR;
553  case 19: return INTERVAL;
554  case 20: return NO_OVERLAP;
555  case 21: return NO_OVERLAP_2D;
556  case 22: return CUMULATIVE;
557  case 30: return DUMMY_CONSTRAINT;
558  case 0: return CONSTRAINT_NOT_SET;
559  default: return null;
560  }
561  }
562  public int getNumber() {
563  return this.value;
564  }
565  };
566 
567  public ConstraintCase
569  return ConstraintCase.forNumber(
570  constraintCase_);
571  }
572 
573  public static final int NAME_FIELD_NUMBER = 1;
574  private volatile java.lang.Object name_;
583  @java.lang.Override
584  public java.lang.String getName() {
585  java.lang.Object ref = name_;
586  if (ref instanceof java.lang.String) {
587  return (java.lang.String) ref;
588  } else {
589  com.google.protobuf.ByteString bs =
590  (com.google.protobuf.ByteString) ref;
591  java.lang.String s = bs.toStringUtf8();
592  name_ = s;
593  return s;
594  }
595  }
604  @java.lang.Override
605  public com.google.protobuf.ByteString
607  java.lang.Object ref = name_;
608  if (ref instanceof java.lang.String) {
609  com.google.protobuf.ByteString b =
610  com.google.protobuf.ByteString.copyFromUtf8(
611  (java.lang.String) ref);
612  name_ = b;
613  return b;
614  } else {
615  return (com.google.protobuf.ByteString) ref;
616  }
617  }
618 
619  public static final int ENFORCEMENT_LITERAL_FIELD_NUMBER = 2;
620  private com.google.protobuf.Internal.IntList enforcementLiteral_;
640  @java.lang.Override
641  public java.util.List<java.lang.Integer>
643  return enforcementLiteral_;
644  }
665  return enforcementLiteral_.size();
666  }
687  public int getEnforcementLiteral(int index) {
688  return enforcementLiteral_.getInt(index);
689  }
690  private int enforcementLiteralMemoizedSerializedSize = -1;
691 
692  public static final int BOOL_OR_FIELD_NUMBER = 3;
701  @java.lang.Override
702  public boolean hasBoolOr() {
703  return constraintCase_ == 3;
704  }
713  @java.lang.Override
715  if (constraintCase_ == 3) {
716  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
717  }
719  }
727  @java.lang.Override
729  if (constraintCase_ == 3) {
730  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
731  }
733  }
734 
735  public static final int BOOL_AND_FIELD_NUMBER = 4;
747  @java.lang.Override
748  public boolean hasBoolAnd() {
749  return constraintCase_ == 4;
750  }
762  @java.lang.Override
764  if (constraintCase_ == 4) {
765  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
766  }
768  }
779  @java.lang.Override
781  if (constraintCase_ == 4) {
782  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
783  }
785  }
786 
787  public static final int AT_MOST_ONE_FIELD_NUMBER = 26;
804  @java.lang.Override
805  public boolean hasAtMostOne() {
806  return constraintCase_ == 26;
807  }
824  @java.lang.Override
826  if (constraintCase_ == 26) {
827  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
828  }
830  }
846  @java.lang.Override
848  if (constraintCase_ == 26) {
849  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
850  }
852  }
853 
854  public static final int EXACTLY_ONE_FIELD_NUMBER = 29;
872  @java.lang.Override
873  public boolean hasExactlyOne() {
874  return constraintCase_ == 29;
875  }
893  @java.lang.Override
895  if (constraintCase_ == 29) {
896  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
897  }
899  }
916  @java.lang.Override
918  if (constraintCase_ == 29) {
919  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
920  }
922  }
923 
924  public static final int BOOL_XOR_FIELD_NUMBER = 5;
933  @java.lang.Override
934  public boolean hasBoolXor() {
935  return constraintCase_ == 5;
936  }
945  @java.lang.Override
947  if (constraintCase_ == 5) {
948  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
949  }
951  }
959  @java.lang.Override
961  if (constraintCase_ == 5) {
962  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
963  }
965  }
966 
967  public static final int INT_DIV_FIELD_NUMBER = 7;
978  @java.lang.Override
979  public boolean hasIntDiv() {
980  return constraintCase_ == 7;
981  }
992  @java.lang.Override
994  if (constraintCase_ == 7) {
995  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
996  }
998  }
1008  @java.lang.Override
1010  if (constraintCase_ == 7) {
1011  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
1012  }
1014  }
1015 
1016  public static final int INT_MOD_FIELD_NUMBER = 8;
1027  @java.lang.Override
1028  public boolean hasIntMod() {
1029  return constraintCase_ == 8;
1030  }
1041  @java.lang.Override
1043  if (constraintCase_ == 8) {
1044  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
1045  }
1047  }
1057  @java.lang.Override
1059  if (constraintCase_ == 8) {
1060  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
1061  }
1063  }
1064 
1065  public static final int INT_MAX_FIELD_NUMBER = 9;
1078  @java.lang.Override
1079  public boolean hasIntMax() {
1080  return constraintCase_ == 9;
1081  }
1094  @java.lang.Override
1096  if (constraintCase_ == 9) {
1097  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
1098  }
1100  }
1112  @java.lang.Override
1114  if (constraintCase_ == 9) {
1115  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
1116  }
1118  }
1119 
1120  public static final int LIN_MAX_FIELD_NUMBER = 27;
1125  @java.lang.Override
1126  public boolean hasLinMax() {
1127  return constraintCase_ == 27;
1128  }
1133  @java.lang.Override
1135  if (constraintCase_ == 27) {
1136  return (com.google.ortools.sat.LinearArgumentProto) constraint_;
1137  }
1139  }
1143  @java.lang.Override
1145  if (constraintCase_ == 27) {
1146  return (com.google.ortools.sat.LinearArgumentProto) constraint_;
1147  }
1149  }
1150 
1151  public static final int INT_MIN_FIELD_NUMBER = 10;
1164  @java.lang.Override
1165  public boolean hasIntMin() {
1166  return constraintCase_ == 10;
1167  }
1180  @java.lang.Override
1182  if (constraintCase_ == 10) {
1183  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
1184  }
1186  }
1198  @java.lang.Override
1200  if (constraintCase_ == 10) {
1201  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
1202  }
1204  }
1205 
1206  public static final int LIN_MIN_FIELD_NUMBER = 28;
1211  @java.lang.Override
1212  public boolean hasLinMin() {
1213  return constraintCase_ == 28;
1214  }
1219  @java.lang.Override
1221  if (constraintCase_ == 28) {
1222  return (com.google.ortools.sat.LinearArgumentProto) constraint_;
1223  }
1225  }
1229  @java.lang.Override
1231  if (constraintCase_ == 28) {
1232  return (com.google.ortools.sat.LinearArgumentProto) constraint_;
1233  }
1235  }
1236 
1237  public static final int INT_PROD_FIELD_NUMBER = 11;
1252  @java.lang.Override
1253  public boolean hasIntProd() {
1254  return constraintCase_ == 11;
1255  }
1270  @java.lang.Override
1272  if (constraintCase_ == 11) {
1273  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
1274  }
1276  }
1290  @java.lang.Override
1292  if (constraintCase_ == 11) {
1293  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
1294  }
1296  }
1297 
1298  public static final int LINEAR_FIELD_NUMBER = 12;
1308  @java.lang.Override
1309  public boolean hasLinear() {
1310  return constraintCase_ == 12;
1311  }
1321  @java.lang.Override
1323  if (constraintCase_ == 12) {
1324  return (com.google.ortools.sat.LinearConstraintProto) constraint_;
1325  }
1327  }
1336  @java.lang.Override
1338  if (constraintCase_ == 12) {
1339  return (com.google.ortools.sat.LinearConstraintProto) constraint_;
1340  }
1342  }
1343 
1344  public static final int ALL_DIFF_FIELD_NUMBER = 13;
1353  @java.lang.Override
1354  public boolean hasAllDiff() {
1355  return constraintCase_ == 13;
1356  }
1365  @java.lang.Override
1367  if (constraintCase_ == 13) {
1368  return (com.google.ortools.sat.AllDifferentConstraintProto) constraint_;
1369  }
1371  }
1379  @java.lang.Override
1381  if (constraintCase_ == 13) {
1382  return (com.google.ortools.sat.AllDifferentConstraintProto) constraint_;
1383  }
1385  }
1386 
1387  public static final int ELEMENT_FIELD_NUMBER = 14;
1397  @java.lang.Override
1398  public boolean hasElement() {
1399  return constraintCase_ == 14;
1400  }
1410  @java.lang.Override
1412  if (constraintCase_ == 14) {
1413  return (com.google.ortools.sat.ElementConstraintProto) constraint_;
1414  }
1416  }
1425  @java.lang.Override
1427  if (constraintCase_ == 14) {
1428  return (com.google.ortools.sat.ElementConstraintProto) constraint_;
1429  }
1431  }
1432 
1433  public static final int CIRCUIT_FIELD_NUMBER = 15;
1443  @java.lang.Override
1444  public boolean hasCircuit() {
1445  return constraintCase_ == 15;
1446  }
1456  @java.lang.Override
1458  if (constraintCase_ == 15) {
1459  return (com.google.ortools.sat.CircuitConstraintProto) constraint_;
1460  }
1462  }
1471  @java.lang.Override
1473  if (constraintCase_ == 15) {
1474  return (com.google.ortools.sat.CircuitConstraintProto) constraint_;
1475  }
1477  }
1478 
1479  public static final int ROUTES_FIELD_NUMBER = 23;
1488  @java.lang.Override
1489  public boolean hasRoutes() {
1490  return constraintCase_ == 23;
1491  }
1500  @java.lang.Override
1502  if (constraintCase_ == 23) {
1503  return (com.google.ortools.sat.RoutesConstraintProto) constraint_;
1504  }
1506  }
1514  @java.lang.Override
1516  if (constraintCase_ == 23) {
1517  return (com.google.ortools.sat.RoutesConstraintProto) constraint_;
1518  }
1520  }
1521 
1522  public static final int TABLE_FIELD_NUMBER = 16;
1532  @java.lang.Override
1533  public boolean hasTable() {
1534  return constraintCase_ == 16;
1535  }
1545  @java.lang.Override
1547  if (constraintCase_ == 16) {
1548  return (com.google.ortools.sat.TableConstraintProto) constraint_;
1549  }
1551  }
1560  @java.lang.Override
1562  if (constraintCase_ == 16) {
1563  return (com.google.ortools.sat.TableConstraintProto) constraint_;
1564  }
1566  }
1567 
1568  public static final int AUTOMATON_FIELD_NUMBER = 17;
1578  @java.lang.Override
1579  public boolean hasAutomaton() {
1580  return constraintCase_ == 17;
1581  }
1591  @java.lang.Override
1593  if (constraintCase_ == 17) {
1594  return (com.google.ortools.sat.AutomatonConstraintProto) constraint_;
1595  }
1597  }
1606  @java.lang.Override
1608  if (constraintCase_ == 17) {
1609  return (com.google.ortools.sat.AutomatonConstraintProto) constraint_;
1610  }
1612  }
1613 
1614  public static final int INVERSE_FIELD_NUMBER = 18;
1624  @java.lang.Override
1625  public boolean hasInverse() {
1626  return constraintCase_ == 18;
1627  }
1637  @java.lang.Override
1639  if (constraintCase_ == 18) {
1640  return (com.google.ortools.sat.InverseConstraintProto) constraint_;
1641  }
1643  }
1652  @java.lang.Override
1654  if (constraintCase_ == 18) {
1655  return (com.google.ortools.sat.InverseConstraintProto) constraint_;
1656  }
1658  }
1659 
1660  public static final int RESERVOIR_FIELD_NUMBER = 24;
1671  @java.lang.Override
1672  public boolean hasReservoir() {
1673  return constraintCase_ == 24;
1674  }
1685  @java.lang.Override
1687  if (constraintCase_ == 24) {
1688  return (com.google.ortools.sat.ReservoirConstraintProto) constraint_;
1689  }
1691  }
1701  @java.lang.Override
1703  if (constraintCase_ == 24) {
1704  return (com.google.ortools.sat.ReservoirConstraintProto) constraint_;
1705  }
1707  }
1708 
1709  public static final int INTERVAL_FIELD_NUMBER = 19;
1719  @java.lang.Override
1720  public boolean hasInterval() {
1721  return constraintCase_ == 19;
1722  }
1732  @java.lang.Override
1734  if (constraintCase_ == 19) {
1735  return (com.google.ortools.sat.IntervalConstraintProto) constraint_;
1736  }
1738  }
1747  @java.lang.Override
1749  if (constraintCase_ == 19) {
1750  return (com.google.ortools.sat.IntervalConstraintProto) constraint_;
1751  }
1753  }
1754 
1755  public static final int NO_OVERLAP_FIELD_NUMBER = 20;
1766  @java.lang.Override
1767  public boolean hasNoOverlap() {
1768  return constraintCase_ == 20;
1769  }
1780  @java.lang.Override
1782  if (constraintCase_ == 20) {
1783  return (com.google.ortools.sat.NoOverlapConstraintProto) constraint_;
1784  }
1786  }
1796  @java.lang.Override
1798  if (constraintCase_ == 20) {
1799  return (com.google.ortools.sat.NoOverlapConstraintProto) constraint_;
1800  }
1802  }
1803 
1804  public static final int NO_OVERLAP_2D_FIELD_NUMBER = 21;
1813  @java.lang.Override
1814  public boolean hasNoOverlap2D() {
1815  return constraintCase_ == 21;
1816  }
1825  @java.lang.Override
1827  if (constraintCase_ == 21) {
1828  return (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_;
1829  }
1831  }
1839  @java.lang.Override
1841  if (constraintCase_ == 21) {
1842  return (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_;
1843  }
1845  }
1846 
1847  public static final int CUMULATIVE_FIELD_NUMBER = 22;
1858  @java.lang.Override
1859  public boolean hasCumulative() {
1860  return constraintCase_ == 22;
1861  }
1872  @java.lang.Override
1874  if (constraintCase_ == 22) {
1875  return (com.google.ortools.sat.CumulativeConstraintProto) constraint_;
1876  }
1878  }
1888  @java.lang.Override
1890  if (constraintCase_ == 22) {
1891  return (com.google.ortools.sat.CumulativeConstraintProto) constraint_;
1892  }
1894  }
1895 
1896  public static final int DUMMY_CONSTRAINT_FIELD_NUMBER = 30;
1906  @java.lang.Override
1907  public boolean hasDummyConstraint() {
1908  return constraintCase_ == 30;
1909  }
1919  @java.lang.Override
1921  if (constraintCase_ == 30) {
1922  return (com.google.ortools.sat.ListOfVariablesProto) constraint_;
1923  }
1925  }
1934  @java.lang.Override
1936  if (constraintCase_ == 30) {
1937  return (com.google.ortools.sat.ListOfVariablesProto) constraint_;
1938  }
1940  }
1941 
1942  private byte memoizedIsInitialized = -1;
1943  @java.lang.Override
1944  public final boolean isInitialized() {
1945  byte isInitialized = memoizedIsInitialized;
1946  if (isInitialized == 1) return true;
1947  if (isInitialized == 0) return false;
1948 
1949  memoizedIsInitialized = 1;
1950  return true;
1951  }
1952 
1953  @java.lang.Override
1954  public void writeTo(com.google.protobuf.CodedOutputStream output)
1955  throws java.io.IOException {
1957  if (!getNameBytes().isEmpty()) {
1958  com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
1959  }
1960  if (getEnforcementLiteralList().size() > 0) {
1961  output.writeUInt32NoTag(18);
1962  output.writeUInt32NoTag(enforcementLiteralMemoizedSerializedSize);
1963  }
1964  for (int i = 0; i < enforcementLiteral_.size(); i++) {
1965  output.writeInt32NoTag(enforcementLiteral_.getInt(i));
1966  }
1967  if (constraintCase_ == 3) {
1968  output.writeMessage(3, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1969  }
1970  if (constraintCase_ == 4) {
1971  output.writeMessage(4, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1972  }
1973  if (constraintCase_ == 5) {
1974  output.writeMessage(5, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1975  }
1976  if (constraintCase_ == 7) {
1977  output.writeMessage(7, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1978  }
1979  if (constraintCase_ == 8) {
1980  output.writeMessage(8, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1981  }
1982  if (constraintCase_ == 9) {
1983  output.writeMessage(9, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1984  }
1985  if (constraintCase_ == 10) {
1986  output.writeMessage(10, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1987  }
1988  if (constraintCase_ == 11) {
1989  output.writeMessage(11, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1990  }
1991  if (constraintCase_ == 12) {
1992  output.writeMessage(12, (com.google.ortools.sat.LinearConstraintProto) constraint_);
1993  }
1994  if (constraintCase_ == 13) {
1995  output.writeMessage(13, (com.google.ortools.sat.AllDifferentConstraintProto) constraint_);
1996  }
1997  if (constraintCase_ == 14) {
1998  output.writeMessage(14, (com.google.ortools.sat.ElementConstraintProto) constraint_);
1999  }
2000  if (constraintCase_ == 15) {
2001  output.writeMessage(15, (com.google.ortools.sat.CircuitConstraintProto) constraint_);
2002  }
2003  if (constraintCase_ == 16) {
2004  output.writeMessage(16, (com.google.ortools.sat.TableConstraintProto) constraint_);
2005  }
2006  if (constraintCase_ == 17) {
2007  output.writeMessage(17, (com.google.ortools.sat.AutomatonConstraintProto) constraint_);
2008  }
2009  if (constraintCase_ == 18) {
2010  output.writeMessage(18, (com.google.ortools.sat.InverseConstraintProto) constraint_);
2011  }
2012  if (constraintCase_ == 19) {
2013  output.writeMessage(19, (com.google.ortools.sat.IntervalConstraintProto) constraint_);
2014  }
2015  if (constraintCase_ == 20) {
2016  output.writeMessage(20, (com.google.ortools.sat.NoOverlapConstraintProto) constraint_);
2017  }
2018  if (constraintCase_ == 21) {
2019  output.writeMessage(21, (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_);
2020  }
2021  if (constraintCase_ == 22) {
2022  output.writeMessage(22, (com.google.ortools.sat.CumulativeConstraintProto) constraint_);
2023  }
2024  if (constraintCase_ == 23) {
2025  output.writeMessage(23, (com.google.ortools.sat.RoutesConstraintProto) constraint_);
2026  }
2027  if (constraintCase_ == 24) {
2028  output.writeMessage(24, (com.google.ortools.sat.ReservoirConstraintProto) constraint_);
2029  }
2030  if (constraintCase_ == 26) {
2031  output.writeMessage(26, (com.google.ortools.sat.BoolArgumentProto) constraint_);
2032  }
2033  if (constraintCase_ == 27) {
2034  output.writeMessage(27, (com.google.ortools.sat.LinearArgumentProto) constraint_);
2035  }
2036  if (constraintCase_ == 28) {
2037  output.writeMessage(28, (com.google.ortools.sat.LinearArgumentProto) constraint_);
2038  }
2039  if (constraintCase_ == 29) {
2040  output.writeMessage(29, (com.google.ortools.sat.BoolArgumentProto) constraint_);
2041  }
2042  if (constraintCase_ == 30) {
2043  output.writeMessage(30, (com.google.ortools.sat.ListOfVariablesProto) constraint_);
2044  }
2045  unknownFields.writeTo(output);
2046  }
2047 
2048  @java.lang.Override
2049  public int getSerializedSize() {
2050  int size = memoizedSize;
2051  if (size != -1) return size;
2052 
2053  size = 0;
2054  if (!getNameBytes().isEmpty()) {
2055  size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
2056  }
2057  {
2058  int dataSize = 0;
2059  for (int i = 0; i < enforcementLiteral_.size(); i++) {
2060  dataSize += com.google.protobuf.CodedOutputStream
2061  .computeInt32SizeNoTag(enforcementLiteral_.getInt(i));
2062  }
2063  size += dataSize;
2064  if (!getEnforcementLiteralList().isEmpty()) {
2065  size += 1;
2066  size += com.google.protobuf.CodedOutputStream
2067  .computeInt32SizeNoTag(dataSize);
2068  }
2069  enforcementLiteralMemoizedSerializedSize = dataSize;
2070  }
2071  if (constraintCase_ == 3) {
2072  size += com.google.protobuf.CodedOutputStream
2073  .computeMessageSize(3, (com.google.ortools.sat.BoolArgumentProto) constraint_);
2074  }
2075  if (constraintCase_ == 4) {
2076  size += com.google.protobuf.CodedOutputStream
2077  .computeMessageSize(4, (com.google.ortools.sat.BoolArgumentProto) constraint_);
2078  }
2079  if (constraintCase_ == 5) {
2080  size += com.google.protobuf.CodedOutputStream
2081  .computeMessageSize(5, (com.google.ortools.sat.BoolArgumentProto) constraint_);
2082  }
2083  if (constraintCase_ == 7) {
2084  size += com.google.protobuf.CodedOutputStream
2085  .computeMessageSize(7, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
2086  }
2087  if (constraintCase_ == 8) {
2088  size += com.google.protobuf.CodedOutputStream
2089  .computeMessageSize(8, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
2090  }
2091  if (constraintCase_ == 9) {
2092  size += com.google.protobuf.CodedOutputStream
2093  .computeMessageSize(9, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
2094  }
2095  if (constraintCase_ == 10) {
2096  size += com.google.protobuf.CodedOutputStream
2097  .computeMessageSize(10, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
2098  }
2099  if (constraintCase_ == 11) {
2100  size += com.google.protobuf.CodedOutputStream
2101  .computeMessageSize(11, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
2102  }
2103  if (constraintCase_ == 12) {
2104  size += com.google.protobuf.CodedOutputStream
2105  .computeMessageSize(12, (com.google.ortools.sat.LinearConstraintProto) constraint_);
2106  }
2107  if (constraintCase_ == 13) {
2108  size += com.google.protobuf.CodedOutputStream
2109  .computeMessageSize(13, (com.google.ortools.sat.AllDifferentConstraintProto) constraint_);
2110  }
2111  if (constraintCase_ == 14) {
2112  size += com.google.protobuf.CodedOutputStream
2113  .computeMessageSize(14, (com.google.ortools.sat.ElementConstraintProto) constraint_);
2114  }
2115  if (constraintCase_ == 15) {
2116  size += com.google.protobuf.CodedOutputStream
2117  .computeMessageSize(15, (com.google.ortools.sat.CircuitConstraintProto) constraint_);
2118  }
2119  if (constraintCase_ == 16) {
2120  size += com.google.protobuf.CodedOutputStream
2121  .computeMessageSize(16, (com.google.ortools.sat.TableConstraintProto) constraint_);
2122  }
2123  if (constraintCase_ == 17) {
2124  size += com.google.protobuf.CodedOutputStream
2125  .computeMessageSize(17, (com.google.ortools.sat.AutomatonConstraintProto) constraint_);
2126  }
2127  if (constraintCase_ == 18) {
2128  size += com.google.protobuf.CodedOutputStream
2129  .computeMessageSize(18, (com.google.ortools.sat.InverseConstraintProto) constraint_);
2130  }
2131  if (constraintCase_ == 19) {
2132  size += com.google.protobuf.CodedOutputStream
2133  .computeMessageSize(19, (com.google.ortools.sat.IntervalConstraintProto) constraint_);
2134  }
2135  if (constraintCase_ == 20) {
2136  size += com.google.protobuf.CodedOutputStream
2137  .computeMessageSize(20, (com.google.ortools.sat.NoOverlapConstraintProto) constraint_);
2138  }
2139  if (constraintCase_ == 21) {
2140  size += com.google.protobuf.CodedOutputStream
2141  .computeMessageSize(21, (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_);
2142  }
2143  if (constraintCase_ == 22) {
2144  size += com.google.protobuf.CodedOutputStream
2145  .computeMessageSize(22, (com.google.ortools.sat.CumulativeConstraintProto) constraint_);
2146  }
2147  if (constraintCase_ == 23) {
2148  size += com.google.protobuf.CodedOutputStream
2149  .computeMessageSize(23, (com.google.ortools.sat.RoutesConstraintProto) constraint_);
2150  }
2151  if (constraintCase_ == 24) {
2152  size += com.google.protobuf.CodedOutputStream
2153  .computeMessageSize(24, (com.google.ortools.sat.ReservoirConstraintProto) constraint_);
2154  }
2155  if (constraintCase_ == 26) {
2156  size += com.google.protobuf.CodedOutputStream
2157  .computeMessageSize(26, (com.google.ortools.sat.BoolArgumentProto) constraint_);
2158  }
2159  if (constraintCase_ == 27) {
2160  size += com.google.protobuf.CodedOutputStream
2161  .computeMessageSize(27, (com.google.ortools.sat.LinearArgumentProto) constraint_);
2162  }
2163  if (constraintCase_ == 28) {
2164  size += com.google.protobuf.CodedOutputStream
2165  .computeMessageSize(28, (com.google.ortools.sat.LinearArgumentProto) constraint_);
2166  }
2167  if (constraintCase_ == 29) {
2168  size += com.google.protobuf.CodedOutputStream
2169  .computeMessageSize(29, (com.google.ortools.sat.BoolArgumentProto) constraint_);
2170  }
2171  if (constraintCase_ == 30) {
2172  size += com.google.protobuf.CodedOutputStream
2173  .computeMessageSize(30, (com.google.ortools.sat.ListOfVariablesProto) constraint_);
2174  }
2175  size += unknownFields.getSerializedSize();
2176  memoizedSize = size;
2177  return size;
2178  }
2179 
2180  @java.lang.Override
2181  public boolean equals(final java.lang.Object obj) {
2182  if (obj == this) {
2183  return true;
2184  }
2185  if (!(obj instanceof com.google.ortools.sat.ConstraintProto)) {
2186  return super.equals(obj);
2187  }
2189 
2190  if (!getName()
2191  .equals(other.getName())) return false;
2193  .equals(other.getEnforcementLiteralList())) return false;
2194  if (!getConstraintCase().equals(other.getConstraintCase())) return false;
2195  switch (constraintCase_) {
2196  case 3:
2197  if (!getBoolOr()
2198  .equals(other.getBoolOr())) return false;
2199  break;
2200  case 4:
2201  if (!getBoolAnd()
2202  .equals(other.getBoolAnd())) return false;
2203  break;
2204  case 26:
2205  if (!getAtMostOne()
2206  .equals(other.getAtMostOne())) return false;
2207  break;
2208  case 29:
2209  if (!getExactlyOne()
2210  .equals(other.getExactlyOne())) return false;
2211  break;
2212  case 5:
2213  if (!getBoolXor()
2214  .equals(other.getBoolXor())) return false;
2215  break;
2216  case 7:
2217  if (!getIntDiv()
2218  .equals(other.getIntDiv())) return false;
2219  break;
2220  case 8:
2221  if (!getIntMod()
2222  .equals(other.getIntMod())) return false;
2223  break;
2224  case 9:
2225  if (!getIntMax()
2226  .equals(other.getIntMax())) return false;
2227  break;
2228  case 27:
2229  if (!getLinMax()
2230  .equals(other.getLinMax())) return false;
2231  break;
2232  case 10:
2233  if (!getIntMin()
2234  .equals(other.getIntMin())) return false;
2235  break;
2236  case 28:
2237  if (!getLinMin()
2238  .equals(other.getLinMin())) return false;
2239  break;
2240  case 11:
2241  if (!getIntProd()
2242  .equals(other.getIntProd())) return false;
2243  break;
2244  case 12:
2245  if (!getLinear()
2246  .equals(other.getLinear())) return false;
2247  break;
2248  case 13:
2249  if (!getAllDiff()
2250  .equals(other.getAllDiff())) return false;
2251  break;
2252  case 14:
2253  if (!getElement()
2254  .equals(other.getElement())) return false;
2255  break;
2256  case 15:
2257  if (!getCircuit()
2258  .equals(other.getCircuit())) return false;
2259  break;
2260  case 23:
2261  if (!getRoutes()
2262  .equals(other.getRoutes())) return false;
2263  break;
2264  case 16:
2265  if (!getTable()
2266  .equals(other.getTable())) return false;
2267  break;
2268  case 17:
2269  if (!getAutomaton()
2270  .equals(other.getAutomaton())) return false;
2271  break;
2272  case 18:
2273  if (!getInverse()
2274  .equals(other.getInverse())) return false;
2275  break;
2276  case 24:
2277  if (!getReservoir()
2278  .equals(other.getReservoir())) return false;
2279  break;
2280  case 19:
2281  if (!getInterval()
2282  .equals(other.getInterval())) return false;
2283  break;
2284  case 20:
2285  if (!getNoOverlap()
2286  .equals(other.getNoOverlap())) return false;
2287  break;
2288  case 21:
2289  if (!getNoOverlap2D()
2290  .equals(other.getNoOverlap2D())) return false;
2291  break;
2292  case 22:
2293  if (!getCumulative()
2294  .equals(other.getCumulative())) return false;
2295  break;
2296  case 30:
2297  if (!getDummyConstraint()
2298  .equals(other.getDummyConstraint())) return false;
2299  break;
2300  case 0:
2301  default:
2302  }
2303  if (!unknownFields.equals(other.unknownFields)) return false;
2304  return true;
2305  }
2306 
2307  @java.lang.Override
2308  public int hashCode() {
2309  if (memoizedHashCode != 0) {
2310  return memoizedHashCode;
2311  }
2312  int hash = 41;
2313  hash = (19 * hash) + getDescriptor().hashCode();
2314  hash = (37 * hash) + NAME_FIELD_NUMBER;
2315  hash = (53 * hash) + getName().hashCode();
2316  if (getEnforcementLiteralCount() > 0) {
2317  hash = (37 * hash) + ENFORCEMENT_LITERAL_FIELD_NUMBER;
2318  hash = (53 * hash) + getEnforcementLiteralList().hashCode();
2319  }
2320  switch (constraintCase_) {
2321  case 3:
2322  hash = (37 * hash) + BOOL_OR_FIELD_NUMBER;
2323  hash = (53 * hash) + getBoolOr().hashCode();
2324  break;
2325  case 4:
2326  hash = (37 * hash) + BOOL_AND_FIELD_NUMBER;
2327  hash = (53 * hash) + getBoolAnd().hashCode();
2328  break;
2329  case 26:
2330  hash = (37 * hash) + AT_MOST_ONE_FIELD_NUMBER;
2331  hash = (53 * hash) + getAtMostOne().hashCode();
2332  break;
2333  case 29:
2334  hash = (37 * hash) + EXACTLY_ONE_FIELD_NUMBER;
2335  hash = (53 * hash) + getExactlyOne().hashCode();
2336  break;
2337  case 5:
2338  hash = (37 * hash) + BOOL_XOR_FIELD_NUMBER;
2339  hash = (53 * hash) + getBoolXor().hashCode();
2340  break;
2341  case 7:
2342  hash = (37 * hash) + INT_DIV_FIELD_NUMBER;
2343  hash = (53 * hash) + getIntDiv().hashCode();
2344  break;
2345  case 8:
2346  hash = (37 * hash) + INT_MOD_FIELD_NUMBER;
2347  hash = (53 * hash) + getIntMod().hashCode();
2348  break;
2349  case 9:
2350  hash = (37 * hash) + INT_MAX_FIELD_NUMBER;
2351  hash = (53 * hash) + getIntMax().hashCode();
2352  break;
2353  case 27:
2354  hash = (37 * hash) + LIN_MAX_FIELD_NUMBER;
2355  hash = (53 * hash) + getLinMax().hashCode();
2356  break;
2357  case 10:
2358  hash = (37 * hash) + INT_MIN_FIELD_NUMBER;
2359  hash = (53 * hash) + getIntMin().hashCode();
2360  break;
2361  case 28:
2362  hash = (37 * hash) + LIN_MIN_FIELD_NUMBER;
2363  hash = (53 * hash) + getLinMin().hashCode();
2364  break;
2365  case 11:
2366  hash = (37 * hash) + INT_PROD_FIELD_NUMBER;
2367  hash = (53 * hash) + getIntProd().hashCode();
2368  break;
2369  case 12:
2370  hash = (37 * hash) + LINEAR_FIELD_NUMBER;
2371  hash = (53 * hash) + getLinear().hashCode();
2372  break;
2373  case 13:
2374  hash = (37 * hash) + ALL_DIFF_FIELD_NUMBER;
2375  hash = (53 * hash) + getAllDiff().hashCode();
2376  break;
2377  case 14:
2378  hash = (37 * hash) + ELEMENT_FIELD_NUMBER;
2379  hash = (53 * hash) + getElement().hashCode();
2380  break;
2381  case 15:
2382  hash = (37 * hash) + CIRCUIT_FIELD_NUMBER;
2383  hash = (53 * hash) + getCircuit().hashCode();
2384  break;
2385  case 23:
2386  hash = (37 * hash) + ROUTES_FIELD_NUMBER;
2387  hash = (53 * hash) + getRoutes().hashCode();
2388  break;
2389  case 16:
2390  hash = (37 * hash) + TABLE_FIELD_NUMBER;
2391  hash = (53 * hash) + getTable().hashCode();
2392  break;
2393  case 17:
2394  hash = (37 * hash) + AUTOMATON_FIELD_NUMBER;
2395  hash = (53 * hash) + getAutomaton().hashCode();
2396  break;
2397  case 18:
2398  hash = (37 * hash) + INVERSE_FIELD_NUMBER;
2399  hash = (53 * hash) + getInverse().hashCode();
2400  break;
2401  case 24:
2402  hash = (37 * hash) + RESERVOIR_FIELD_NUMBER;
2403  hash = (53 * hash) + getReservoir().hashCode();
2404  break;
2405  case 19:
2406  hash = (37 * hash) + INTERVAL_FIELD_NUMBER;
2407  hash = (53 * hash) + getInterval().hashCode();
2408  break;
2409  case 20:
2410  hash = (37 * hash) + NO_OVERLAP_FIELD_NUMBER;
2411  hash = (53 * hash) + getNoOverlap().hashCode();
2412  break;
2413  case 21:
2414  hash = (37 * hash) + NO_OVERLAP_2D_FIELD_NUMBER;
2415  hash = (53 * hash) + getNoOverlap2D().hashCode();
2416  break;
2417  case 22:
2418  hash = (37 * hash) + CUMULATIVE_FIELD_NUMBER;
2419  hash = (53 * hash) + getCumulative().hashCode();
2420  break;
2421  case 30:
2422  hash = (37 * hash) + DUMMY_CONSTRAINT_FIELD_NUMBER;
2423  hash = (53 * hash) + getDummyConstraint().hashCode();
2424  break;
2425  case 0:
2426  default:
2427  }
2428  hash = (29 * hash) + unknownFields.hashCode();
2429  memoizedHashCode = hash;
2430  return hash;
2431  }
2432 
2434  java.nio.ByteBuffer data)
2435  throws com.google.protobuf.InvalidProtocolBufferException {
2436  return PARSER.parseFrom(data);
2437  }
2439  java.nio.ByteBuffer data,
2440  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2441  throws com.google.protobuf.InvalidProtocolBufferException {
2442  return PARSER.parseFrom(data, extensionRegistry);
2443  }
2445  com.google.protobuf.ByteString data)
2446  throws com.google.protobuf.InvalidProtocolBufferException {
2447  return PARSER.parseFrom(data);
2448  }
2450  com.google.protobuf.ByteString data,
2451  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2452  throws com.google.protobuf.InvalidProtocolBufferException {
2453  return PARSER.parseFrom(data, extensionRegistry);
2454  }
2455  public static com.google.ortools.sat.ConstraintProto parseFrom(byte[] data)
2456  throws com.google.protobuf.InvalidProtocolBufferException {
2457  return PARSER.parseFrom(data);
2458  }
2460  byte[] data,
2461  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2462  throws com.google.protobuf.InvalidProtocolBufferException {
2463  return PARSER.parseFrom(data, extensionRegistry);
2464  }
2465  public static com.google.ortools.sat.ConstraintProto parseFrom(java.io.InputStream input)
2466  throws java.io.IOException {
2467  return com.google.protobuf.GeneratedMessageV3
2468  .parseWithIOException(PARSER, input);
2469  }
2471  java.io.InputStream input,
2472  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2473  throws java.io.IOException {
2474  return com.google.protobuf.GeneratedMessageV3
2475  .parseWithIOException(PARSER, input, extensionRegistry);
2476  }
2477  public static com.google.ortools.sat.ConstraintProto parseDelimitedFrom(java.io.InputStream input)
2478  throws java.io.IOException {
2479  return com.google.protobuf.GeneratedMessageV3
2480  .parseDelimitedWithIOException(PARSER, input);
2481  }
2483  java.io.InputStream input,
2484  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2485  throws java.io.IOException {
2486  return com.google.protobuf.GeneratedMessageV3
2487  .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
2488  }
2490  com.google.protobuf.CodedInputStream input)
2491  throws java.io.IOException {
2492  return com.google.protobuf.GeneratedMessageV3
2493  .parseWithIOException(PARSER, input);
2494  }
2496  com.google.protobuf.CodedInputStream input,
2497  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2498  throws java.io.IOException {
2499  return com.google.protobuf.GeneratedMessageV3
2500  .parseWithIOException(PARSER, input, extensionRegistry);
2501  }
2502 
2503  @java.lang.Override
2504  public Builder newBuilderForType() { return newBuilder(); }
2505  public static Builder newBuilder() {
2506  return DEFAULT_INSTANCE.toBuilder();
2507  }
2509  return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
2510  }
2511  @java.lang.Override
2512  public Builder toBuilder() {
2513  return this == DEFAULT_INSTANCE
2514  ? new Builder() : new Builder().mergeFrom(this);
2515  }
2516 
2517  @java.lang.Override
2519  com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
2520  Builder builder = new Builder(parent);
2521  return builder;
2522  }
2530  public static final class Builder extends
2531  com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
2532  // @@protoc_insertion_point(builder_implements:operations_research.sat.ConstraintProto)
2533  com.google.ortools.sat.ConstraintProtoOrBuilder {
2534  public static final com.google.protobuf.Descriptors.Descriptor
2536  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_descriptor;
2537  }
2538 
2539  @java.lang.Override
2540  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
2542  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_fieldAccessorTable
2543  .ensureFieldAccessorsInitialized(
2545  }
2546 
2547  // Construct using com.google.ortools.sat.ConstraintProto.newBuilder()
2548  private Builder() {
2549  maybeForceBuilderInitialization();
2550  }
2551 
2552  private Builder(
2553  com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
2554  super(parent);
2555  maybeForceBuilderInitialization();
2556  }
2557  private void maybeForceBuilderInitialization() {
2558  if (com.google.protobuf.GeneratedMessageV3
2559  .alwaysUseFieldBuilders) {
2560  }
2561  }
2562  @java.lang.Override
2563  public Builder clear() {
2564  super.clear();
2565  name_ = "";
2566 
2567  enforcementLiteral_ = emptyIntList();
2568  bitField0_ = (bitField0_ & ~0x00000001);
2569  constraintCase_ = 0;
2570  constraint_ = null;
2571  return this;
2572  }
2573 
2574  @java.lang.Override
2575  public com.google.protobuf.Descriptors.Descriptor
2577  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_descriptor;
2578  }
2579 
2580  @java.lang.Override
2583  }
2584 
2585  @java.lang.Override
2588  if (!result.isInitialized()) {
2589  throw newUninitializedMessageException(result);
2590  }
2591  return result;
2592  }
2593 
2594  @java.lang.Override
2597  int from_bitField0_ = bitField0_;
2598  result.name_ = name_;
2599  if (((bitField0_ & 0x00000001) != 0)) {
2600  enforcementLiteral_.makeImmutable();
2601  bitField0_ = (bitField0_ & ~0x00000001);
2602  }
2603  result.enforcementLiteral_ = enforcementLiteral_;
2604  if (constraintCase_ == 3) {
2605  if (boolOrBuilder_ == null) {
2606  result.constraint_ = constraint_;
2607  } else {
2608  result.constraint_ = boolOrBuilder_.build();
2609  }
2610  }
2611  if (constraintCase_ == 4) {
2612  if (boolAndBuilder_ == null) {
2613  result.constraint_ = constraint_;
2614  } else {
2615  result.constraint_ = boolAndBuilder_.build();
2616  }
2617  }
2618  if (constraintCase_ == 26) {
2619  if (atMostOneBuilder_ == null) {
2620  result.constraint_ = constraint_;
2621  } else {
2622  result.constraint_ = atMostOneBuilder_.build();
2623  }
2624  }
2625  if (constraintCase_ == 29) {
2626  if (exactlyOneBuilder_ == null) {
2627  result.constraint_ = constraint_;
2628  } else {
2629  result.constraint_ = exactlyOneBuilder_.build();
2630  }
2631  }
2632  if (constraintCase_ == 5) {
2633  if (boolXorBuilder_ == null) {
2634  result.constraint_ = constraint_;
2635  } else {
2636  result.constraint_ = boolXorBuilder_.build();
2637  }
2638  }
2639  if (constraintCase_ == 7) {
2640  if (intDivBuilder_ == null) {
2641  result.constraint_ = constraint_;
2642  } else {
2643  result.constraint_ = intDivBuilder_.build();
2644  }
2645  }
2646  if (constraintCase_ == 8) {
2647  if (intModBuilder_ == null) {
2648  result.constraint_ = constraint_;
2649  } else {
2650  result.constraint_ = intModBuilder_.build();
2651  }
2652  }
2653  if (constraintCase_ == 9) {
2654  if (intMaxBuilder_ == null) {
2655  result.constraint_ = constraint_;
2656  } else {
2657  result.constraint_ = intMaxBuilder_.build();
2658  }
2659  }
2660  if (constraintCase_ == 27) {
2661  if (linMaxBuilder_ == null) {
2662  result.constraint_ = constraint_;
2663  } else {
2664  result.constraint_ = linMaxBuilder_.build();
2665  }
2666  }
2667  if (constraintCase_ == 10) {
2668  if (intMinBuilder_ == null) {
2669  result.constraint_ = constraint_;
2670  } else {
2671  result.constraint_ = intMinBuilder_.build();
2672  }
2673  }
2674  if (constraintCase_ == 28) {
2675  if (linMinBuilder_ == null) {
2676  result.constraint_ = constraint_;
2677  } else {
2678  result.constraint_ = linMinBuilder_.build();
2679  }
2680  }
2681  if (constraintCase_ == 11) {
2682  if (intProdBuilder_ == null) {
2683  result.constraint_ = constraint_;
2684  } else {
2685  result.constraint_ = intProdBuilder_.build();
2686  }
2687  }
2688  if (constraintCase_ == 12) {
2689  if (linearBuilder_ == null) {
2690  result.constraint_ = constraint_;
2691  } else {
2692  result.constraint_ = linearBuilder_.build();
2693  }
2694  }
2695  if (constraintCase_ == 13) {
2696  if (allDiffBuilder_ == null) {
2697  result.constraint_ = constraint_;
2698  } else {
2699  result.constraint_ = allDiffBuilder_.build();
2700  }
2701  }
2702  if (constraintCase_ == 14) {
2703  if (elementBuilder_ == null) {
2704  result.constraint_ = constraint_;
2705  } else {
2706  result.constraint_ = elementBuilder_.build();
2707  }
2708  }
2709  if (constraintCase_ == 15) {
2710  if (circuitBuilder_ == null) {
2711  result.constraint_ = constraint_;
2712  } else {
2713  result.constraint_ = circuitBuilder_.build();
2714  }
2715  }
2716  if (constraintCase_ == 23) {
2717  if (routesBuilder_ == null) {
2718  result.constraint_ = constraint_;
2719  } else {
2720  result.constraint_ = routesBuilder_.build();
2721  }
2722  }
2723  if (constraintCase_ == 16) {
2724  if (tableBuilder_ == null) {
2725  result.constraint_ = constraint_;
2726  } else {
2727  result.constraint_ = tableBuilder_.build();
2728  }
2729  }
2730  if (constraintCase_ == 17) {
2731  if (automatonBuilder_ == null) {
2732  result.constraint_ = constraint_;
2733  } else {
2734  result.constraint_ = automatonBuilder_.build();
2735  }
2736  }
2737  if (constraintCase_ == 18) {
2738  if (inverseBuilder_ == null) {
2739  result.constraint_ = constraint_;
2740  } else {
2741  result.constraint_ = inverseBuilder_.build();
2742  }
2743  }
2744  if (constraintCase_ == 24) {
2745  if (reservoirBuilder_ == null) {
2746  result.constraint_ = constraint_;
2747  } else {
2748  result.constraint_ = reservoirBuilder_.build();
2749  }
2750  }
2751  if (constraintCase_ == 19) {
2752  if (intervalBuilder_ == null) {
2753  result.constraint_ = constraint_;
2754  } else {
2755  result.constraint_ = intervalBuilder_.build();
2756  }
2757  }
2758  if (constraintCase_ == 20) {
2759  if (noOverlapBuilder_ == null) {
2760  result.constraint_ = constraint_;
2761  } else {
2762  result.constraint_ = noOverlapBuilder_.build();
2763  }
2764  }
2765  if (constraintCase_ == 21) {
2766  if (noOverlap2DBuilder_ == null) {
2767  result.constraint_ = constraint_;
2768  } else {
2769  result.constraint_ = noOverlap2DBuilder_.build();
2770  }
2771  }
2772  if (constraintCase_ == 22) {
2773  if (cumulativeBuilder_ == null) {
2774  result.constraint_ = constraint_;
2775  } else {
2776  result.constraint_ = cumulativeBuilder_.build();
2777  }
2778  }
2779  if (constraintCase_ == 30) {
2780  if (dummyConstraintBuilder_ == null) {
2781  result.constraint_ = constraint_;
2782  } else {
2783  result.constraint_ = dummyConstraintBuilder_.build();
2784  }
2785  }
2786  result.constraintCase_ = constraintCase_;
2787  onBuilt();
2788  return result;
2789  }
2790 
2791  @java.lang.Override
2792  public Builder clone() {
2793  return super.clone();
2794  }
2795  @java.lang.Override
2797  com.google.protobuf.Descriptors.FieldDescriptor field,
2798  java.lang.Object value) {
2799  return super.setField(field, value);
2800  }
2801  @java.lang.Override
2803  com.google.protobuf.Descriptors.FieldDescriptor field) {
2804  return super.clearField(field);
2805  }
2806  @java.lang.Override
2808  com.google.protobuf.Descriptors.OneofDescriptor oneof) {
2809  return super.clearOneof(oneof);
2810  }
2811  @java.lang.Override
2813  com.google.protobuf.Descriptors.FieldDescriptor field,
2814  int index, java.lang.Object value) {
2815  return super.setRepeatedField(field, index, value);
2816  }
2817  @java.lang.Override
2819  com.google.protobuf.Descriptors.FieldDescriptor field,
2820  java.lang.Object value) {
2821  return super.addRepeatedField(field, value);
2822  }
2823  @java.lang.Override
2824  public Builder mergeFrom(com.google.protobuf.Message other) {
2825  if (other instanceof com.google.ortools.sat.ConstraintProto) {
2826  return mergeFrom((com.google.ortools.sat.ConstraintProto)other);
2827  } else {
2828  super.mergeFrom(other);
2829  return this;
2830  }
2831  }
2832 
2834  if (other == com.google.ortools.sat.ConstraintProto.getDefaultInstance()) return this;
2835  if (!other.getName().isEmpty()) {
2836  name_ = other.name_;
2837  onChanged();
2838  }
2839  if (!other.enforcementLiteral_.isEmpty()) {
2840  if (enforcementLiteral_.isEmpty()) {
2841  enforcementLiteral_ = other.enforcementLiteral_;
2842  bitField0_ = (bitField0_ & ~0x00000001);
2843  } else {
2844  ensureEnforcementLiteralIsMutable();
2845  enforcementLiteral_.addAll(other.enforcementLiteral_);
2846  }
2847  onChanged();
2848  }
2849  switch (other.getConstraintCase()) {
2850  case BOOL_OR: {
2851  mergeBoolOr(other.getBoolOr());
2852  break;
2853  }
2854  case BOOL_AND: {
2855  mergeBoolAnd(other.getBoolAnd());
2856  break;
2857  }
2858  case AT_MOST_ONE: {
2859  mergeAtMostOne(other.getAtMostOne());
2860  break;
2861  }
2862  case EXACTLY_ONE: {
2863  mergeExactlyOne(other.getExactlyOne());
2864  break;
2865  }
2866  case BOOL_XOR: {
2867  mergeBoolXor(other.getBoolXor());
2868  break;
2869  }
2870  case INT_DIV: {
2871  mergeIntDiv(other.getIntDiv());
2872  break;
2873  }
2874  case INT_MOD: {
2875  mergeIntMod(other.getIntMod());
2876  break;
2877  }
2878  case INT_MAX: {
2879  mergeIntMax(other.getIntMax());
2880  break;
2881  }
2882  case LIN_MAX: {
2883  mergeLinMax(other.getLinMax());
2884  break;
2885  }
2886  case INT_MIN: {
2887  mergeIntMin(other.getIntMin());
2888  break;
2889  }
2890  case LIN_MIN: {
2891  mergeLinMin(other.getLinMin());
2892  break;
2893  }
2894  case INT_PROD: {
2895  mergeIntProd(other.getIntProd());
2896  break;
2897  }
2898  case LINEAR: {
2899  mergeLinear(other.getLinear());
2900  break;
2901  }
2902  case ALL_DIFF: {
2903  mergeAllDiff(other.getAllDiff());
2904  break;
2905  }
2906  case ELEMENT: {
2907  mergeElement(other.getElement());
2908  break;
2909  }
2910  case CIRCUIT: {
2911  mergeCircuit(other.getCircuit());
2912  break;
2913  }
2914  case ROUTES: {
2915  mergeRoutes(other.getRoutes());
2916  break;
2917  }
2918  case TABLE: {
2919  mergeTable(other.getTable());
2920  break;
2921  }
2922  case AUTOMATON: {
2923  mergeAutomaton(other.getAutomaton());
2924  break;
2925  }
2926  case INVERSE: {
2927  mergeInverse(other.getInverse());
2928  break;
2929  }
2930  case RESERVOIR: {
2931  mergeReservoir(other.getReservoir());
2932  break;
2933  }
2934  case INTERVAL: {
2935  mergeInterval(other.getInterval());
2936  break;
2937  }
2938  case NO_OVERLAP: {
2939  mergeNoOverlap(other.getNoOverlap());
2940  break;
2941  }
2942  case NO_OVERLAP_2D: {
2943  mergeNoOverlap2D(other.getNoOverlap2D());
2944  break;
2945  }
2946  case CUMULATIVE: {
2947  mergeCumulative(other.getCumulative());
2948  break;
2949  }
2950  case DUMMY_CONSTRAINT: {
2951  mergeDummyConstraint(other.getDummyConstraint());
2952  break;
2953  }
2954  case CONSTRAINT_NOT_SET: {
2955  break;
2956  }
2957  }
2958  this.mergeUnknownFields(other.unknownFields);
2959  onChanged();
2960  return this;
2961  }
2962 
2963  @java.lang.Override
2964  public final boolean isInitialized() {
2965  return true;
2966  }
2967 
2968  @java.lang.Override
2970  com.google.protobuf.CodedInputStream input,
2971  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2972  throws java.io.IOException {
2973  com.google.ortools.sat.ConstraintProto parsedMessage = null;
2974  try {
2975  parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
2976  } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2977  parsedMessage = (com.google.ortools.sat.ConstraintProto) e.getUnfinishedMessage();
2978  throw e.unwrapIOException();
2979  } finally {
2980  if (parsedMessage != null) {
2981  mergeFrom(parsedMessage);
2982  }
2983  }
2984  return this;
2985  }
2986  private int constraintCase_ = 0;
2987  private java.lang.Object constraint_;
2988  public ConstraintCase
2990  return ConstraintCase.forNumber(
2991  constraintCase_);
2992  }
2993 
2995  constraintCase_ = 0;
2996  constraint_ = null;
2997  onChanged();
2998  return this;
2999  }
3000 
3001  private int bitField0_;
3002 
3003  private java.lang.Object name_ = "";
3012  public java.lang.String getName() {
3013  java.lang.Object ref = name_;
3014  if (!(ref instanceof java.lang.String)) {
3015  com.google.protobuf.ByteString bs =
3016  (com.google.protobuf.ByteString) ref;
3017  java.lang.String s = bs.toStringUtf8();
3018  name_ = s;
3019  return s;
3020  } else {
3021  return (java.lang.String) ref;
3022  }
3023  }
3032  public com.google.protobuf.ByteString
3034  java.lang.Object ref = name_;
3035  if (ref instanceof String) {
3036  com.google.protobuf.ByteString b =
3037  com.google.protobuf.ByteString.copyFromUtf8(
3038  (java.lang.String) ref);
3039  name_ = b;
3040  return b;
3041  } else {
3042  return (com.google.protobuf.ByteString) ref;
3043  }
3044  }
3055  java.lang.String value) {
3056  if (value == null) {
3057  throw new NullPointerException();
3058  }
3059 
3060  name_ = value;
3061  onChanged();
3062  return this;
3063  }
3072  public Builder clearName() {
3073 
3074  name_ = getDefaultInstance().getName();
3075  onChanged();
3076  return this;
3077  }
3088  com.google.protobuf.ByteString value) {
3089  if (value == null) {
3090  throw new NullPointerException();
3091  }
3092  checkByteStringIsUtf8(value);
3093 
3094  name_ = value;
3095  onChanged();
3096  return this;
3097  }
3098 
3099  private com.google.protobuf.Internal.IntList enforcementLiteral_ = emptyIntList();
3100  private void ensureEnforcementLiteralIsMutable() {
3101  if (!((bitField0_ & 0x00000001) != 0)) {
3102  enforcementLiteral_ = mutableCopy(enforcementLiteral_);
3103  bitField0_ |= 0x00000001;
3104  }
3105  }
3125  public java.util.List<java.lang.Integer>
3127  return ((bitField0_ & 0x00000001) != 0) ?
3128  java.util.Collections.unmodifiableList(enforcementLiteral_) : enforcementLiteral_;
3129  }
3150  return enforcementLiteral_.size();
3151  }
3172  public int getEnforcementLiteral(int index) {
3173  return enforcementLiteral_.getInt(index);
3174  }
3197  int index, int value) {
3198  ensureEnforcementLiteralIsMutable();
3199  enforcementLiteral_.setInt(index, value);
3200  onChanged();
3201  return this;
3202  }
3223  public Builder addEnforcementLiteral(int value) {
3224  ensureEnforcementLiteralIsMutable();
3225  enforcementLiteral_.addInt(value);
3226  onChanged();
3227  return this;
3228  }
3250  java.lang.Iterable<? extends java.lang.Integer> values) {
3251  ensureEnforcementLiteralIsMutable();
3252  com.google.protobuf.AbstractMessageLite.Builder.addAll(
3253  values, enforcementLiteral_);
3254  onChanged();
3255  return this;
3256  }
3277  enforcementLiteral_ = emptyIntList();
3278  bitField0_ = (bitField0_ & ~0x00000001);
3279  onChanged();
3280  return this;
3281  }
3282 
3283  private com.google.protobuf.SingleFieldBuilderV3<
3293  @java.lang.Override
3294  public boolean hasBoolOr() {
3295  return constraintCase_ == 3;
3296  }
3305  @java.lang.Override
3307  if (boolOrBuilder_ == null) {
3308  if (constraintCase_ == 3) {
3309  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3310  }
3312  } else {
3313  if (constraintCase_ == 3) {
3314  return boolOrBuilder_.getMessage();
3315  }
3317  }
3318  }
3327  if (boolOrBuilder_ == null) {
3328  if (value == null) {
3329  throw new NullPointerException();
3330  }
3331  constraint_ = value;
3332  onChanged();
3333  } else {
3334  boolOrBuilder_.setMessage(value);
3335  }
3336  constraintCase_ = 3;
3337  return this;
3338  }
3347  com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
3348  if (boolOrBuilder_ == null) {
3349  constraint_ = builderForValue.build();
3350  onChanged();
3351  } else {
3352  boolOrBuilder_.setMessage(builderForValue.build());
3353  }
3354  constraintCase_ = 3;
3355  return this;
3356  }
3365  if (boolOrBuilder_ == null) {
3366  if (constraintCase_ == 3 &&
3369  .mergeFrom(value).buildPartial();
3370  } else {
3371  constraint_ = value;
3372  }
3373  onChanged();
3374  } else {
3375  if (constraintCase_ == 3) {
3376  boolOrBuilder_.mergeFrom(value);
3377  }
3378  boolOrBuilder_.setMessage(value);
3379  }
3380  constraintCase_ = 3;
3381  return this;
3382  }
3391  if (boolOrBuilder_ == null) {
3392  if (constraintCase_ == 3) {
3393  constraintCase_ = 0;
3394  constraint_ = null;
3395  onChanged();
3396  }
3397  } else {
3398  if (constraintCase_ == 3) {
3399  constraintCase_ = 0;
3400  constraint_ = null;
3401  }
3402  boolOrBuilder_.clear();
3403  }
3404  return this;
3405  }
3414  return getBoolOrFieldBuilder().getBuilder();
3415  }
3423  @java.lang.Override
3425  if ((constraintCase_ == 3) && (boolOrBuilder_ != null)) {
3426  return boolOrBuilder_.getMessageOrBuilder();
3427  } else {
3428  if (constraintCase_ == 3) {
3429  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3430  }
3432  }
3433  }
3441  private com.google.protobuf.SingleFieldBuilderV3<
3443  getBoolOrFieldBuilder() {
3444  if (boolOrBuilder_ == null) {
3445  if (!(constraintCase_ == 3)) {
3447  }
3448  boolOrBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
3450  (com.google.ortools.sat.BoolArgumentProto) constraint_,
3451  getParentForChildren(),
3452  isClean());
3453  constraint_ = null;
3454  }
3455  constraintCase_ = 3;
3456  onChanged();;
3457  return boolOrBuilder_;
3458  }
3459 
3460  private com.google.protobuf.SingleFieldBuilderV3<
3473  @java.lang.Override
3474  public boolean hasBoolAnd() {
3475  return constraintCase_ == 4;
3476  }
3488  @java.lang.Override
3490  if (boolAndBuilder_ == null) {
3491  if (constraintCase_ == 4) {
3492  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3493  }
3495  } else {
3496  if (constraintCase_ == 4) {
3497  return boolAndBuilder_.getMessage();
3498  }
3500  }
3501  }
3513  if (boolAndBuilder_ == null) {
3514  if (value == null) {
3515  throw new NullPointerException();
3516  }
3517  constraint_ = value;
3518  onChanged();
3519  } else {
3520  boolAndBuilder_.setMessage(value);
3521  }
3522  constraintCase_ = 4;
3523  return this;
3524  }
3536  com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
3537  if (boolAndBuilder_ == null) {
3538  constraint_ = builderForValue.build();
3539  onChanged();
3540  } else {
3541  boolAndBuilder_.setMessage(builderForValue.build());
3542  }
3543  constraintCase_ = 4;
3544  return this;
3545  }
3557  if (boolAndBuilder_ == null) {
3558  if (constraintCase_ == 4 &&
3561  .mergeFrom(value).buildPartial();
3562  } else {
3563  constraint_ = value;
3564  }
3565  onChanged();
3566  } else {
3567  if (constraintCase_ == 4) {
3568  boolAndBuilder_.mergeFrom(value);
3569  }
3570  boolAndBuilder_.setMessage(value);
3571  }
3572  constraintCase_ = 4;
3573  return this;
3574  }
3586  if (boolAndBuilder_ == null) {
3587  if (constraintCase_ == 4) {
3588  constraintCase_ = 0;
3589  constraint_ = null;
3590  onChanged();
3591  }
3592  } else {
3593  if (constraintCase_ == 4) {
3594  constraintCase_ = 0;
3595  constraint_ = null;
3596  }
3597  boolAndBuilder_.clear();
3598  }
3599  return this;
3600  }
3612  return getBoolAndFieldBuilder().getBuilder();
3613  }
3624  @java.lang.Override
3626  if ((constraintCase_ == 4) && (boolAndBuilder_ != null)) {
3627  return boolAndBuilder_.getMessageOrBuilder();
3628  } else {
3629  if (constraintCase_ == 4) {
3630  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3631  }
3633  }
3634  }
3645  private com.google.protobuf.SingleFieldBuilderV3<
3647  getBoolAndFieldBuilder() {
3648  if (boolAndBuilder_ == null) {
3649  if (!(constraintCase_ == 4)) {
3651  }
3652  boolAndBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
3654  (com.google.ortools.sat.BoolArgumentProto) constraint_,
3655  getParentForChildren(),
3656  isClean());
3657  constraint_ = null;
3658  }
3659  constraintCase_ = 4;
3660  onChanged();;
3661  return boolAndBuilder_;
3662  }
3663 
3664  private com.google.protobuf.SingleFieldBuilderV3<
3682  @java.lang.Override
3683  public boolean hasAtMostOne() {
3684  return constraintCase_ == 26;
3685  }
3702  @java.lang.Override
3704  if (atMostOneBuilder_ == null) {
3705  if (constraintCase_ == 26) {
3706  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3707  }
3709  } else {
3710  if (constraintCase_ == 26) {
3711  return atMostOneBuilder_.getMessage();
3712  }
3714  }
3715  }
3732  if (atMostOneBuilder_ == null) {
3733  if (value == null) {
3734  throw new NullPointerException();
3735  }
3736  constraint_ = value;
3737  onChanged();
3738  } else {
3739  atMostOneBuilder_.setMessage(value);
3740  }
3741  constraintCase_ = 26;
3742  return this;
3743  }
3760  com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
3761  if (atMostOneBuilder_ == null) {
3762  constraint_ = builderForValue.build();
3763  onChanged();
3764  } else {
3765  atMostOneBuilder_.setMessage(builderForValue.build());
3766  }
3767  constraintCase_ = 26;
3768  return this;
3769  }
3786  if (atMostOneBuilder_ == null) {
3787  if (constraintCase_ == 26 &&
3790  .mergeFrom(value).buildPartial();
3791  } else {
3792  constraint_ = value;
3793  }
3794  onChanged();
3795  } else {
3796  if (constraintCase_ == 26) {
3797  atMostOneBuilder_.mergeFrom(value);
3798  }
3799  atMostOneBuilder_.setMessage(value);
3800  }
3801  constraintCase_ = 26;
3802  return this;
3803  }
3820  if (atMostOneBuilder_ == null) {
3821  if (constraintCase_ == 26) {
3822  constraintCase_ = 0;
3823  constraint_ = null;
3824  onChanged();
3825  }
3826  } else {
3827  if (constraintCase_ == 26) {
3828  constraintCase_ = 0;
3829  constraint_ = null;
3830  }
3831  atMostOneBuilder_.clear();
3832  }
3833  return this;
3834  }
3851  return getAtMostOneFieldBuilder().getBuilder();
3852  }
3868  @java.lang.Override
3870  if ((constraintCase_ == 26) && (atMostOneBuilder_ != null)) {
3871  return atMostOneBuilder_.getMessageOrBuilder();
3872  } else {
3873  if (constraintCase_ == 26) {
3874  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3875  }
3877  }
3878  }
3894  private com.google.protobuf.SingleFieldBuilderV3<
3896  getAtMostOneFieldBuilder() {
3897  if (atMostOneBuilder_ == null) {
3898  if (!(constraintCase_ == 26)) {
3900  }
3901  atMostOneBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
3903  (com.google.ortools.sat.BoolArgumentProto) constraint_,
3904  getParentForChildren(),
3905  isClean());
3906  constraint_ = null;
3907  }
3908  constraintCase_ = 26;
3909  onChanged();;
3910  return atMostOneBuilder_;
3911  }
3912 
3913  private com.google.protobuf.SingleFieldBuilderV3<
3932  @java.lang.Override
3933  public boolean hasExactlyOne() {
3934  return constraintCase_ == 29;
3935  }
3953  @java.lang.Override
3955  if (exactlyOneBuilder_ == null) {
3956  if (constraintCase_ == 29) {
3957  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3958  }
3960  } else {
3961  if (constraintCase_ == 29) {
3962  return exactlyOneBuilder_.getMessage();
3963  }
3965  }
3966  }
3984  if (exactlyOneBuilder_ == null) {
3985  if (value == null) {
3986  throw new NullPointerException();
3987  }
3988  constraint_ = value;
3989  onChanged();
3990  } else {
3991  exactlyOneBuilder_.setMessage(value);
3992  }
3993  constraintCase_ = 29;
3994  return this;
3995  }
4013  com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
4014  if (exactlyOneBuilder_ == null) {
4015  constraint_ = builderForValue.build();
4016  onChanged();
4017  } else {
4018  exactlyOneBuilder_.setMessage(builderForValue.build());
4019  }
4020  constraintCase_ = 29;
4021  return this;
4022  }
4040  if (exactlyOneBuilder_ == null) {
4041  if (constraintCase_ == 29 &&
4044  .mergeFrom(value).buildPartial();
4045  } else {
4046  constraint_ = value;
4047  }
4048  onChanged();
4049  } else {
4050  if (constraintCase_ == 29) {
4051  exactlyOneBuilder_.mergeFrom(value);
4052  }
4053  exactlyOneBuilder_.setMessage(value);
4054  }
4055  constraintCase_ = 29;
4056  return this;
4057  }
4075  if (exactlyOneBuilder_ == null) {
4076  if (constraintCase_ == 29) {
4077  constraintCase_ = 0;
4078  constraint_ = null;
4079  onChanged();
4080  }
4081  } else {
4082  if (constraintCase_ == 29) {
4083  constraintCase_ = 0;
4084  constraint_ = null;
4085  }
4086  exactlyOneBuilder_.clear();
4087  }
4088  return this;
4089  }
4107  return getExactlyOneFieldBuilder().getBuilder();
4108  }
4125  @java.lang.Override
4127  if ((constraintCase_ == 29) && (exactlyOneBuilder_ != null)) {
4128  return exactlyOneBuilder_.getMessageOrBuilder();
4129  } else {
4130  if (constraintCase_ == 29) {
4131  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
4132  }
4134  }
4135  }
4152  private com.google.protobuf.SingleFieldBuilderV3<
4154  getExactlyOneFieldBuilder() {
4155  if (exactlyOneBuilder_ == null) {
4156  if (!(constraintCase_ == 29)) {
4158  }
4159  exactlyOneBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4161  (com.google.ortools.sat.BoolArgumentProto) constraint_,
4162  getParentForChildren(),
4163  isClean());
4164  constraint_ = null;
4165  }
4166  constraintCase_ = 29;
4167  onChanged();;
4168  return exactlyOneBuilder_;
4169  }
4170 
4171  private com.google.protobuf.SingleFieldBuilderV3<
4181  @java.lang.Override
4182  public boolean hasBoolXor() {
4183  return constraintCase_ == 5;
4184  }
4193  @java.lang.Override
4195  if (boolXorBuilder_ == null) {
4196  if (constraintCase_ == 5) {
4197  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
4198  }
4200  } else {
4201  if (constraintCase_ == 5) {
4202  return boolXorBuilder_.getMessage();
4203  }
4205  }
4206  }
4215  if (boolXorBuilder_ == null) {
4216  if (value == null) {
4217  throw new NullPointerException();
4218  }
4219  constraint_ = value;
4220  onChanged();
4221  } else {
4222  boolXorBuilder_.setMessage(value);
4223  }
4224  constraintCase_ = 5;
4225  return this;
4226  }
4235  com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
4236  if (boolXorBuilder_ == null) {
4237  constraint_ = builderForValue.build();
4238  onChanged();
4239  } else {
4240  boolXorBuilder_.setMessage(builderForValue.build());
4241  }
4242  constraintCase_ = 5;
4243  return this;
4244  }
4253  if (boolXorBuilder_ == null) {
4254  if (constraintCase_ == 5 &&
4257  .mergeFrom(value).buildPartial();
4258  } else {
4259  constraint_ = value;
4260  }
4261  onChanged();
4262  } else {
4263  if (constraintCase_ == 5) {
4264  boolXorBuilder_.mergeFrom(value);
4265  }
4266  boolXorBuilder_.setMessage(value);
4267  }
4268  constraintCase_ = 5;
4269  return this;
4270  }
4279  if (boolXorBuilder_ == null) {
4280  if (constraintCase_ == 5) {
4281  constraintCase_ = 0;
4282  constraint_ = null;
4283  onChanged();
4284  }
4285  } else {
4286  if (constraintCase_ == 5) {
4287  constraintCase_ = 0;
4288  constraint_ = null;
4289  }
4290  boolXorBuilder_.clear();
4291  }
4292  return this;
4293  }
4302  return getBoolXorFieldBuilder().getBuilder();
4303  }
4311  @java.lang.Override
4313  if ((constraintCase_ == 5) && (boolXorBuilder_ != null)) {
4314  return boolXorBuilder_.getMessageOrBuilder();
4315  } else {
4316  if (constraintCase_ == 5) {
4317  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
4318  }
4320  }
4321  }
4329  private com.google.protobuf.SingleFieldBuilderV3<
4331  getBoolXorFieldBuilder() {
4332  if (boolXorBuilder_ == null) {
4333  if (!(constraintCase_ == 5)) {
4335  }
4336  boolXorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4338  (com.google.ortools.sat.BoolArgumentProto) constraint_,
4339  getParentForChildren(),
4340  isClean());
4341  constraint_ = null;
4342  }
4343  constraintCase_ = 5;
4344  onChanged();;
4345  return boolXorBuilder_;
4346  }
4347 
4348  private com.google.protobuf.SingleFieldBuilderV3<
4360  @java.lang.Override
4361  public boolean hasIntDiv() {
4362  return constraintCase_ == 7;
4363  }
4374  @java.lang.Override
4376  if (intDivBuilder_ == null) {
4377  if (constraintCase_ == 7) {
4378  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
4379  }
4381  } else {
4382  if (constraintCase_ == 7) {
4383  return intDivBuilder_.getMessage();
4384  }
4386  }
4387  }
4398  if (intDivBuilder_ == null) {
4399  if (value == null) {
4400  throw new NullPointerException();
4401  }
4402  constraint_ = value;
4403  onChanged();
4404  } else {
4405  intDivBuilder_.setMessage(value);
4406  }
4407  constraintCase_ = 7;
4408  return this;
4409  }
4420  com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue) {
4421  if (intDivBuilder_ == null) {
4422  constraint_ = builderForValue.build();
4423  onChanged();
4424  } else {
4425  intDivBuilder_.setMessage(builderForValue.build());
4426  }
4427  constraintCase_ = 7;
4428  return this;
4429  }
4440  if (intDivBuilder_ == null) {
4441  if (constraintCase_ == 7 &&
4444  .mergeFrom(value).buildPartial();
4445  } else {
4446  constraint_ = value;
4447  }
4448  onChanged();
4449  } else {
4450  if (constraintCase_ == 7) {
4451  intDivBuilder_.mergeFrom(value);
4452  }
4453  intDivBuilder_.setMessage(value);
4454  }
4455  constraintCase_ = 7;
4456  return this;
4457  }
4468  if (intDivBuilder_ == null) {
4469  if (constraintCase_ == 7) {
4470  constraintCase_ = 0;
4471  constraint_ = null;
4472  onChanged();
4473  }
4474  } else {
4475  if (constraintCase_ == 7) {
4476  constraintCase_ = 0;
4477  constraint_ = null;
4478  }
4479  intDivBuilder_.clear();
4480  }
4481  return this;
4482  }
4493  return getIntDivFieldBuilder().getBuilder();
4494  }
4504  @java.lang.Override
4506  if ((constraintCase_ == 7) && (intDivBuilder_ != null)) {
4507  return intDivBuilder_.getMessageOrBuilder();
4508  } else {
4509  if (constraintCase_ == 7) {
4510  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
4511  }
4513  }
4514  }
4524  private com.google.protobuf.SingleFieldBuilderV3<
4526  getIntDivFieldBuilder() {
4527  if (intDivBuilder_ == null) {
4528  if (!(constraintCase_ == 7)) {
4530  }
4531  intDivBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4533  (com.google.ortools.sat.IntegerArgumentProto) constraint_,
4534  getParentForChildren(),
4535  isClean());
4536  constraint_ = null;
4537  }
4538  constraintCase_ = 7;
4539  onChanged();;
4540  return intDivBuilder_;
4541  }
4542 
4543  private com.google.protobuf.SingleFieldBuilderV3<
4555  @java.lang.Override
4556  public boolean hasIntMod() {
4557  return constraintCase_ == 8;
4558  }
4569  @java.lang.Override
4571  if (intModBuilder_ == null) {
4572  if (constraintCase_ == 8) {
4573  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
4574  }
4576  } else {
4577  if (constraintCase_ == 8) {
4578  return intModBuilder_.getMessage();
4579  }
4581  }
4582  }
4593  if (intModBuilder_ == null) {
4594  if (value == null) {
4595  throw new NullPointerException();
4596  }
4597  constraint_ = value;
4598  onChanged();
4599  } else {
4600  intModBuilder_.setMessage(value);
4601  }
4602  constraintCase_ = 8;
4603  return this;
4604  }
4615  com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue) {
4616  if (intModBuilder_ == null) {
4617  constraint_ = builderForValue.build();
4618  onChanged();
4619  } else {
4620  intModBuilder_.setMessage(builderForValue.build());
4621  }
4622  constraintCase_ = 8;
4623  return this;
4624  }
4635  if (intModBuilder_ == null) {
4636  if (constraintCase_ == 8 &&
4639  .mergeFrom(value).buildPartial();
4640  } else {
4641  constraint_ = value;
4642  }
4643  onChanged();
4644  } else {
4645  if (constraintCase_ == 8) {
4646  intModBuilder_.mergeFrom(value);
4647  }
4648  intModBuilder_.setMessage(value);
4649  }
4650  constraintCase_ = 8;
4651  return this;
4652  }
4663  if (intModBuilder_ == null) {
4664  if (constraintCase_ == 8) {
4665  constraintCase_ = 0;
4666  constraint_ = null;
4667  onChanged();
4668  }
4669  } else {
4670  if (constraintCase_ == 8) {
4671  constraintCase_ = 0;
4672  constraint_ = null;
4673  }
4674  intModBuilder_.clear();
4675  }
4676  return this;
4677  }
4688  return getIntModFieldBuilder().getBuilder();
4689  }
4699  @java.lang.Override
4701  if ((constraintCase_ == 8) && (intModBuilder_ != null)) {
4702  return intModBuilder_.getMessageOrBuilder();
4703  } else {
4704  if (constraintCase_ == 8) {
4705  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
4706  }
4708  }
4709  }
4719  private com.google.protobuf.SingleFieldBuilderV3<
4721  getIntModFieldBuilder() {
4722  if (intModBuilder_ == null) {
4723  if (!(constraintCase_ == 8)) {
4725  }
4726  intModBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4728  (com.google.ortools.sat.IntegerArgumentProto) constraint_,
4729  getParentForChildren(),
4730  isClean());
4731  constraint_ = null;
4732  }
4733  constraintCase_ = 8;
4734  onChanged();;
4735  return intModBuilder_;
4736  }
4737 
4738  private com.google.protobuf.SingleFieldBuilderV3<
4752  @java.lang.Override
4753  public boolean hasIntMax() {
4754  return constraintCase_ == 9;
4755  }
4768  @java.lang.Override
4770  if (intMaxBuilder_ == null) {
4771  if (constraintCase_ == 9) {
4772  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
4773  }
4775  } else {
4776  if (constraintCase_ == 9) {
4777  return intMaxBuilder_.getMessage();
4778  }
4780  }
4781  }
4794  if (intMaxBuilder_ == null) {
4795  if (value == null) {
4796  throw new NullPointerException();
4797  }
4798  constraint_ = value;
4799  onChanged();
4800  } else {
4801  intMaxBuilder_.setMessage(value);
4802  }
4803  constraintCase_ = 9;
4804  return this;
4805  }
4818  com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue) {
4819  if (intMaxBuilder_ == null) {
4820  constraint_ = builderForValue.build();
4821  onChanged();
4822  } else {
4823  intMaxBuilder_.setMessage(builderForValue.build());
4824  }
4825  constraintCase_ = 9;
4826  return this;
4827  }
4840  if (intMaxBuilder_ == null) {
4841  if (constraintCase_ == 9 &&
4844  .mergeFrom(value).buildPartial();
4845  } else {
4846  constraint_ = value;
4847  }
4848  onChanged();
4849  } else {
4850  if (constraintCase_ == 9) {
4851  intMaxBuilder_.mergeFrom(value);
4852  }
4853  intMaxBuilder_.setMessage(value);
4854  }
4855  constraintCase_ = 9;
4856  return this;
4857  }
4870  if (intMaxBuilder_ == null) {
4871  if (constraintCase_ == 9) {
4872  constraintCase_ = 0;
4873  constraint_ = null;
4874  onChanged();
4875  }
4876  } else {
4877  if (constraintCase_ == 9) {
4878  constraintCase_ = 0;
4879  constraint_ = null;
4880  }
4881  intMaxBuilder_.clear();
4882  }
4883  return this;
4884  }
4897  return getIntMaxFieldBuilder().getBuilder();
4898  }
4910  @java.lang.Override
4912  if ((constraintCase_ == 9) && (intMaxBuilder_ != null)) {
4913  return intMaxBuilder_.getMessageOrBuilder();
4914  } else {
4915  if (constraintCase_ == 9) {
4916  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
4917  }
4919  }
4920  }
4932  private com.google.protobuf.SingleFieldBuilderV3<
4934  getIntMaxFieldBuilder() {
4935  if (intMaxBuilder_ == null) {
4936  if (!(constraintCase_ == 9)) {
4938  }
4939  intMaxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4941  (com.google.ortools.sat.IntegerArgumentProto) constraint_,
4942  getParentForChildren(),
4943  isClean());
4944  constraint_ = null;
4945  }
4946  constraintCase_ = 9;
4947  onChanged();;
4948  return intMaxBuilder_;
4949  }
4950 
4951  private com.google.protobuf.SingleFieldBuilderV3<
4957  @java.lang.Override
4958  public boolean hasLinMax() {
4959  return constraintCase_ == 27;
4960  }
4965  @java.lang.Override
4967  if (linMaxBuilder_ == null) {
4968  if (constraintCase_ == 27) {
4969  return (com.google.ortools.sat.LinearArgumentProto) constraint_;
4970  }
4972  } else {
4973  if (constraintCase_ == 27) {
4974  return linMaxBuilder_.getMessage();
4975  }
4977  }
4978  }
4983  if (linMaxBuilder_ == null) {
4984  if (value == null) {
4985  throw new NullPointerException();
4986  }
4987  constraint_ = value;
4988  onChanged();
4989  } else {
4990  linMaxBuilder_.setMessage(value);
4991  }
4992  constraintCase_ = 27;
4993  return this;
4994  }
4999  com.google.ortools.sat.LinearArgumentProto.Builder builderForValue) {
5000  if (linMaxBuilder_ == null) {
5001  constraint_ = builderForValue.build();
5002  onChanged();
5003  } else {
5004  linMaxBuilder_.setMessage(builderForValue.build());
5005  }
5006  constraintCase_ = 27;
5007  return this;
5008  }
5013  if (linMaxBuilder_ == null) {
5014  if (constraintCase_ == 27 &&
5017  .mergeFrom(value).buildPartial();
5018  } else {
5019  constraint_ = value;
5020  }
5021  onChanged();
5022  } else {
5023  if (constraintCase_ == 27) {
5024  linMaxBuilder_.mergeFrom(value);
5025  }
5026  linMaxBuilder_.setMessage(value);
5027  }
5028  constraintCase_ = 27;
5029  return this;
5030  }
5035  if (linMaxBuilder_ == null) {
5036  if (constraintCase_ == 27) {
5037  constraintCase_ = 0;
5038  constraint_ = null;
5039  onChanged();
5040  }
5041  } else {
5042  if (constraintCase_ == 27) {
5043  constraintCase_ = 0;
5044  constraint_ = null;
5045  }
5046  linMaxBuilder_.clear();
5047  }
5048  return this;
5049  }
5054  return getLinMaxFieldBuilder().getBuilder();
5055  }
5059  @java.lang.Override
5061  if ((constraintCase_ == 27) && (linMaxBuilder_ != null)) {
5062  return linMaxBuilder_.getMessageOrBuilder();
5063  } else {
5064  if (constraintCase_ == 27) {
5065  return (com.google.ortools.sat.LinearArgumentProto) constraint_;
5066  }
5068  }
5069  }
5073  private com.google.protobuf.SingleFieldBuilderV3<
5075  getLinMaxFieldBuilder() {
5076  if (linMaxBuilder_ == null) {
5077  if (!(constraintCase_ == 27)) {
5079  }
5080  linMaxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5082  (com.google.ortools.sat.LinearArgumentProto) constraint_,
5083  getParentForChildren(),
5084  isClean());
5085  constraint_ = null;
5086  }
5087  constraintCase_ = 27;
5088  onChanged();;
5089  return linMaxBuilder_;
5090  }
5091 
5092  private com.google.protobuf.SingleFieldBuilderV3<
5106  @java.lang.Override
5107  public boolean hasIntMin() {
5108  return constraintCase_ == 10;
5109  }
5122  @java.lang.Override
5124  if (intMinBuilder_ == null) {
5125  if (constraintCase_ == 10) {
5126  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
5127  }
5129  } else {
5130  if (constraintCase_ == 10) {
5131  return intMinBuilder_.getMessage();
5132  }
5134  }
5135  }
5148  if (intMinBuilder_ == null) {
5149  if (value == null) {
5150  throw new NullPointerException();
5151  }
5152  constraint_ = value;
5153  onChanged();
5154  } else {
5155  intMinBuilder_.setMessage(value);
5156  }
5157  constraintCase_ = 10;
5158  return this;
5159  }
5172  com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue) {
5173  if (intMinBuilder_ == null) {
5174  constraint_ = builderForValue.build();
5175  onChanged();
5176  } else {
5177  intMinBuilder_.setMessage(builderForValue.build());
5178  }
5179  constraintCase_ = 10;
5180  return this;
5181  }
5194  if (intMinBuilder_ == null) {
5195  if (constraintCase_ == 10 &&
5198  .mergeFrom(value).buildPartial();
5199  } else {
5200  constraint_ = value;
5201  }
5202  onChanged();
5203  } else {
5204  if (constraintCase_ == 10) {
5205  intMinBuilder_.mergeFrom(value);
5206  }
5207  intMinBuilder_.setMessage(value);
5208  }
5209  constraintCase_ = 10;
5210  return this;
5211  }
5224  if (intMinBuilder_ == null) {
5225  if (constraintCase_ == 10) {
5226  constraintCase_ = 0;
5227  constraint_ = null;
5228  onChanged();
5229  }
5230  } else {
5231  if (constraintCase_ == 10) {
5232  constraintCase_ = 0;
5233  constraint_ = null;
5234  }
5235  intMinBuilder_.clear();
5236  }
5237  return this;
5238  }
5251  return getIntMinFieldBuilder().getBuilder();
5252  }
5264  @java.lang.Override
5266  if ((constraintCase_ == 10) && (intMinBuilder_ != null)) {
5267  return intMinBuilder_.getMessageOrBuilder();
5268  } else {
5269  if (constraintCase_ == 10) {
5270  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
5271  }
5273  }
5274  }
5286  private com.google.protobuf.SingleFieldBuilderV3<
5288  getIntMinFieldBuilder() {
5289  if (intMinBuilder_ == null) {
5290  if (!(constraintCase_ == 10)) {
5292  }
5293  intMinBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5295  (com.google.ortools.sat.IntegerArgumentProto) constraint_,
5296  getParentForChildren(),
5297  isClean());
5298  constraint_ = null;
5299  }
5300  constraintCase_ = 10;
5301  onChanged();;
5302  return intMinBuilder_;
5303  }
5304 
5305  private com.google.protobuf.SingleFieldBuilderV3<
5311  @java.lang.Override
5312  public boolean hasLinMin() {
5313  return constraintCase_ == 28;
5314  }
5319  @java.lang.Override
5321  if (linMinBuilder_ == null) {
5322  if (constraintCase_ == 28) {
5323  return (com.google.ortools.sat.LinearArgumentProto) constraint_;
5324  }
5326  } else {
5327  if (constraintCase_ == 28) {
5328  return linMinBuilder_.getMessage();
5329  }
5331  }
5332  }
5337  if (linMinBuilder_ == null) {
5338  if (value == null) {
5339  throw new NullPointerException();
5340  }
5341  constraint_ = value;
5342  onChanged();
5343  } else {
5344  linMinBuilder_.setMessage(value);
5345  }
5346  constraintCase_ = 28;
5347  return this;
5348  }
5353  com.google.ortools.sat.LinearArgumentProto.Builder builderForValue) {
5354  if (linMinBuilder_ == null) {
5355  constraint_ = builderForValue.build();
5356  onChanged();
5357  } else {
5358  linMinBuilder_.setMessage(builderForValue.build());
5359  }
5360  constraintCase_ = 28;
5361  return this;
5362  }
5367  if (linMinBuilder_ == null) {
5368  if (constraintCase_ == 28 &&
5371  .mergeFrom(value).buildPartial();
5372  } else {
5373  constraint_ = value;
5374  }
5375  onChanged();
5376  } else {
5377  if (constraintCase_ == 28) {
5378  linMinBuilder_.mergeFrom(value);
5379  }
5380  linMinBuilder_.setMessage(value);
5381  }
5382  constraintCase_ = 28;
5383  return this;
5384  }
5389  if (linMinBuilder_ == null) {
5390  if (constraintCase_ == 28) {
5391  constraintCase_ = 0;
5392  constraint_ = null;
5393  onChanged();
5394  }
5395  } else {
5396  if (constraintCase_ == 28) {
5397  constraintCase_ = 0;
5398  constraint_ = null;
5399  }
5400  linMinBuilder_.clear();
5401  }
5402  return this;
5403  }
5408  return getLinMinFieldBuilder().getBuilder();
5409  }
5413  @java.lang.Override
5415  if ((constraintCase_ == 28) && (linMinBuilder_ != null)) {
5416  return linMinBuilder_.getMessageOrBuilder();
5417  } else {
5418  if (constraintCase_ == 28) {
5419  return (com.google.ortools.sat.LinearArgumentProto) constraint_;
5420  }
5422  }
5423  }
5427  private com.google.protobuf.SingleFieldBuilderV3<
5429  getLinMinFieldBuilder() {
5430  if (linMinBuilder_ == null) {
5431  if (!(constraintCase_ == 28)) {
5433  }
5434  linMinBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5436  (com.google.ortools.sat.LinearArgumentProto) constraint_,
5437  getParentForChildren(),
5438  isClean());
5439  constraint_ = null;
5440  }
5441  constraintCase_ = 28;
5442  onChanged();;
5443  return linMinBuilder_;
5444  }
5445 
5446  private com.google.protobuf.SingleFieldBuilderV3<
5462  @java.lang.Override
5463  public boolean hasIntProd() {
5464  return constraintCase_ == 11;
5465  }
5480  @java.lang.Override
5482  if (intProdBuilder_ == null) {
5483  if (constraintCase_ == 11) {
5484  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
5485  }
5487  } else {
5488  if (constraintCase_ == 11) {
5489  return intProdBuilder_.getMessage();
5490  }
5492  }
5493  }
5508  if (intProdBuilder_ == null) {
5509  if (value == null) {
5510  throw new NullPointerException();
5511  }
5512  constraint_ = value;
5513  onChanged();
5514  } else {
5515  intProdBuilder_.setMessage(value);
5516  }
5517  constraintCase_ = 11;
5518  return this;
5519  }
5534  com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue) {
5535  if (intProdBuilder_ == null) {
5536  constraint_ = builderForValue.build();
5537  onChanged();
5538  } else {
5539  intProdBuilder_.setMessage(builderForValue.build());
5540  }
5541  constraintCase_ = 11;
5542  return this;
5543  }
5558  if (intProdBuilder_ == null) {
5559  if (constraintCase_ == 11 &&
5562  .mergeFrom(value).buildPartial();
5563  } else {
5564  constraint_ = value;
5565  }
5566  onChanged();
5567  } else {
5568  if (constraintCase_ == 11) {
5569  intProdBuilder_.mergeFrom(value);
5570  }
5571  intProdBuilder_.setMessage(value);
5572  }
5573  constraintCase_ = 11;
5574  return this;
5575  }
5590  if (intProdBuilder_ == null) {
5591  if (constraintCase_ == 11) {
5592  constraintCase_ = 0;
5593  constraint_ = null;
5594  onChanged();
5595  }
5596  } else {
5597  if (constraintCase_ == 11) {
5598  constraintCase_ = 0;
5599  constraint_ = null;
5600  }
5601  intProdBuilder_.clear();
5602  }
5603  return this;
5604  }
5619  return getIntProdFieldBuilder().getBuilder();
5620  }
5634  @java.lang.Override
5636  if ((constraintCase_ == 11) && (intProdBuilder_ != null)) {
5637  return intProdBuilder_.getMessageOrBuilder();
5638  } else {
5639  if (constraintCase_ == 11) {
5640  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
5641  }
5643  }
5644  }
5658  private com.google.protobuf.SingleFieldBuilderV3<
5660  getIntProdFieldBuilder() {
5661  if (intProdBuilder_ == null) {
5662  if (!(constraintCase_ == 11)) {
5664  }
5665  intProdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5667  (com.google.ortools.sat.IntegerArgumentProto) constraint_,
5668  getParentForChildren(),
5669  isClean());
5670  constraint_ = null;
5671  }
5672  constraintCase_ = 11;
5673  onChanged();;
5674  return intProdBuilder_;
5675  }
5676 
5677  private com.google.protobuf.SingleFieldBuilderV3<
5688  @java.lang.Override
5689  public boolean hasLinear() {
5690  return constraintCase_ == 12;
5691  }
5701  @java.lang.Override
5703  if (linearBuilder_ == null) {
5704  if (constraintCase_ == 12) {
5705  return (com.google.ortools.sat.LinearConstraintProto) constraint_;
5706  }
5708  } else {
5709  if (constraintCase_ == 12) {
5710  return linearBuilder_.getMessage();
5711  }
5713  }
5714  }
5724  if (linearBuilder_ == null) {
5725  if (value == null) {
5726  throw new NullPointerException();
5727  }
5728  constraint_ = value;
5729  onChanged();
5730  } else {
5731  linearBuilder_.setMessage(value);
5732  }
5733  constraintCase_ = 12;
5734  return this;
5735  }
5745  com.google.ortools.sat.LinearConstraintProto.Builder builderForValue) {
5746  if (linearBuilder_ == null) {
5747  constraint_ = builderForValue.build();
5748  onChanged();
5749  } else {
5750  linearBuilder_.setMessage(builderForValue.build());
5751  }
5752  constraintCase_ = 12;
5753  return this;
5754  }
5764  if (linearBuilder_ == null) {
5765  if (constraintCase_ == 12 &&
5768  .mergeFrom(value).buildPartial();
5769  } else {
5770  constraint_ = value;
5771  }
5772  onChanged();
5773  } else {
5774  if (constraintCase_ == 12) {
5775  linearBuilder_.mergeFrom(value);
5776  }
5777  linearBuilder_.setMessage(value);
5778  }
5779  constraintCase_ = 12;
5780  return this;
5781  }
5791  if (linearBuilder_ == null) {
5792  if (constraintCase_ == 12) {
5793  constraintCase_ = 0;
5794  constraint_ = null;
5795  onChanged();
5796  }
5797  } else {
5798  if (constraintCase_ == 12) {
5799  constraintCase_ = 0;
5800  constraint_ = null;
5801  }
5802  linearBuilder_.clear();
5803  }
5804  return this;
5805  }
5815  return getLinearFieldBuilder().getBuilder();
5816  }
5825  @java.lang.Override
5827  if ((constraintCase_ == 12) && (linearBuilder_ != null)) {
5828  return linearBuilder_.getMessageOrBuilder();
5829  } else {
5830  if (constraintCase_ == 12) {
5831  return (com.google.ortools.sat.LinearConstraintProto) constraint_;
5832  }
5834  }
5835  }
5844  private com.google.protobuf.SingleFieldBuilderV3<
5846  getLinearFieldBuilder() {
5847  if (linearBuilder_ == null) {
5848  if (!(constraintCase_ == 12)) {
5850  }
5851  linearBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5853  (com.google.ortools.sat.LinearConstraintProto) constraint_,
5854  getParentForChildren(),
5855  isClean());
5856  constraint_ = null;
5857  }
5858  constraintCase_ = 12;
5859  onChanged();;
5860  return linearBuilder_;
5861  }
5862 
5863  private com.google.protobuf.SingleFieldBuilderV3<
5873  @java.lang.Override
5874  public boolean hasAllDiff() {
5875  return constraintCase_ == 13;
5876  }
5885  @java.lang.Override
5887  if (allDiffBuilder_ == null) {
5888  if (constraintCase_ == 13) {
5889  return (com.google.ortools.sat.AllDifferentConstraintProto) constraint_;
5890  }
5892  } else {
5893  if (constraintCase_ == 13) {
5894  return allDiffBuilder_.getMessage();
5895  }
5897  }
5898  }
5907  if (allDiffBuilder_ == null) {
5908  if (value == null) {
5909  throw new NullPointerException();
5910  }
5911  constraint_ = value;
5912  onChanged();
5913  } else {
5914  allDiffBuilder_.setMessage(value);
5915  }
5916  constraintCase_ = 13;
5917  return this;
5918  }
5928  if (allDiffBuilder_ == null) {
5929  constraint_ = builderForValue.build();
5930  onChanged();
5931  } else {
5932  allDiffBuilder_.setMessage(builderForValue.build());
5933  }
5934  constraintCase_ = 13;
5935  return this;
5936  }
5945  if (allDiffBuilder_ == null) {
5946  if (constraintCase_ == 13 &&
5949  .mergeFrom(value).buildPartial();
5950  } else {
5951  constraint_ = value;
5952  }
5953  onChanged();
5954  } else {
5955  if (constraintCase_ == 13) {
5956  allDiffBuilder_.mergeFrom(value);
5957  }
5958  allDiffBuilder_.setMessage(value);
5959  }
5960  constraintCase_ = 13;
5961  return this;
5962  }
5971  if (allDiffBuilder_ == null) {
5972  if (constraintCase_ == 13) {
5973  constraintCase_ = 0;
5974  constraint_ = null;
5975  onChanged();
5976  }
5977  } else {
5978  if (constraintCase_ == 13) {
5979  constraintCase_ = 0;
5980  constraint_ = null;
5981  }
5982  allDiffBuilder_.clear();
5983  }
5984  return this;
5985  }
5994  return getAllDiffFieldBuilder().getBuilder();
5995  }
6003  @java.lang.Override
6005  if ((constraintCase_ == 13) && (allDiffBuilder_ != null)) {
6006  return allDiffBuilder_.getMessageOrBuilder();
6007  } else {
6008  if (constraintCase_ == 13) {
6009  return (com.google.ortools.sat.AllDifferentConstraintProto) constraint_;
6010  }
6012  }
6013  }
6021  private com.google.protobuf.SingleFieldBuilderV3<
6023  getAllDiffFieldBuilder() {
6024  if (allDiffBuilder_ == null) {
6025  if (!(constraintCase_ == 13)) {
6027  }
6028  allDiffBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6031  getParentForChildren(),
6032  isClean());
6033  constraint_ = null;
6034  }
6035  constraintCase_ = 13;
6036  onChanged();;
6037  return allDiffBuilder_;
6038  }
6039 
6040  private com.google.protobuf.SingleFieldBuilderV3<
6051  @java.lang.Override
6052  public boolean hasElement() {
6053  return constraintCase_ == 14;
6054  }
6064  @java.lang.Override
6066  if (elementBuilder_ == null) {
6067  if (constraintCase_ == 14) {
6068  return (com.google.ortools.sat.ElementConstraintProto) constraint_;
6069  }
6071  } else {
6072  if (constraintCase_ == 14) {
6073  return elementBuilder_.getMessage();
6074  }
6076  }
6077  }
6087  if (elementBuilder_ == null) {
6088  if (value == null) {
6089  throw new NullPointerException();
6090  }
6091  constraint_ = value;
6092  onChanged();
6093  } else {
6094  elementBuilder_.setMessage(value);
6095  }
6096  constraintCase_ = 14;
6097  return this;
6098  }
6108  com.google.ortools.sat.ElementConstraintProto.Builder builderForValue) {
6109  if (elementBuilder_ == null) {
6110  constraint_ = builderForValue.build();
6111  onChanged();
6112  } else {
6113  elementBuilder_.setMessage(builderForValue.build());
6114  }
6115  constraintCase_ = 14;
6116  return this;
6117  }
6127  if (elementBuilder_ == null) {
6128  if (constraintCase_ == 14 &&
6131  .mergeFrom(value).buildPartial();
6132  } else {
6133  constraint_ = value;
6134  }
6135  onChanged();
6136  } else {
6137  if (constraintCase_ == 14) {
6138  elementBuilder_.mergeFrom(value);
6139  }
6140  elementBuilder_.setMessage(value);
6141  }
6142  constraintCase_ = 14;
6143  return this;
6144  }
6154  if (elementBuilder_ == null) {
6155  if (constraintCase_ == 14) {
6156  constraintCase_ = 0;
6157  constraint_ = null;
6158  onChanged();
6159  }
6160  } else {
6161  if (constraintCase_ == 14) {
6162  constraintCase_ = 0;
6163  constraint_ = null;
6164  }
6165  elementBuilder_.clear();
6166  }
6167  return this;
6168  }
6178  return getElementFieldBuilder().getBuilder();
6179  }
6188  @java.lang.Override
6190  if ((constraintCase_ == 14) && (elementBuilder_ != null)) {
6191  return elementBuilder_.getMessageOrBuilder();
6192  } else {
6193  if (constraintCase_ == 14) {
6194  return (com.google.ortools.sat.ElementConstraintProto) constraint_;
6195  }
6197  }
6198  }
6207  private com.google.protobuf.SingleFieldBuilderV3<
6209  getElementFieldBuilder() {
6210  if (elementBuilder_ == null) {
6211  if (!(constraintCase_ == 14)) {
6213  }
6214  elementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6217  getParentForChildren(),
6218  isClean());
6219  constraint_ = null;
6220  }
6221  constraintCase_ = 14;
6222  onChanged();;
6223  return elementBuilder_;
6224  }
6225 
6226  private com.google.protobuf.SingleFieldBuilderV3<
6237  @java.lang.Override
6238  public boolean hasCircuit() {
6239  return constraintCase_ == 15;
6240  }
6250  @java.lang.Override
6252  if (circuitBuilder_ == null) {
6253  if (constraintCase_ == 15) {
6254  return (com.google.ortools.sat.CircuitConstraintProto) constraint_;
6255  }
6257  } else {
6258  if (constraintCase_ == 15) {
6259  return circuitBuilder_.getMessage();
6260  }
6262  }
6263  }
6273  if (circuitBuilder_ == null) {
6274  if (value == null) {
6275  throw new NullPointerException();
6276  }
6277  constraint_ = value;
6278  onChanged();
6279  } else {
6280  circuitBuilder_.setMessage(value);
6281  }
6282  constraintCase_ = 15;
6283  return this;
6284  }
6294  com.google.ortools.sat.CircuitConstraintProto.Builder builderForValue) {
6295  if (circuitBuilder_ == null) {
6296  constraint_ = builderForValue.build();
6297  onChanged();
6298  } else {
6299  circuitBuilder_.setMessage(builderForValue.build());
6300  }
6301  constraintCase_ = 15;
6302  return this;
6303  }
6313  if (circuitBuilder_ == null) {
6314  if (constraintCase_ == 15 &&
6317  .mergeFrom(value).buildPartial();
6318  } else {
6319  constraint_ = value;
6320  }
6321  onChanged();
6322  } else {
6323  if (constraintCase_ == 15) {
6324  circuitBuilder_.mergeFrom(value);
6325  }
6326  circuitBuilder_.setMessage(value);
6327  }
6328  constraintCase_ = 15;
6329  return this;
6330  }
6340  if (circuitBuilder_ == null) {
6341  if (constraintCase_ == 15) {
6342  constraintCase_ = 0;
6343  constraint_ = null;
6344  onChanged();
6345  }
6346  } else {
6347  if (constraintCase_ == 15) {
6348  constraintCase_ = 0;
6349  constraint_ = null;
6350  }
6351  circuitBuilder_.clear();
6352  }
6353  return this;
6354  }
6364  return getCircuitFieldBuilder().getBuilder();
6365  }
6374  @java.lang.Override
6376  if ((constraintCase_ == 15) && (circuitBuilder_ != null)) {
6377  return circuitBuilder_.getMessageOrBuilder();
6378  } else {
6379  if (constraintCase_ == 15) {
6380  return (com.google.ortools.sat.CircuitConstraintProto) constraint_;
6381  }
6383  }
6384  }
6393  private com.google.protobuf.SingleFieldBuilderV3<
6395  getCircuitFieldBuilder() {
6396  if (circuitBuilder_ == null) {
6397  if (!(constraintCase_ == 15)) {
6399  }
6400  circuitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6403  getParentForChildren(),
6404  isClean());
6405  constraint_ = null;
6406  }
6407  constraintCase_ = 15;
6408  onChanged();;
6409  return circuitBuilder_;
6410  }
6411 
6412  private com.google.protobuf.SingleFieldBuilderV3<
6422  @java.lang.Override
6423  public boolean hasRoutes() {
6424  return constraintCase_ == 23;
6425  }
6434  @java.lang.Override
6436  if (routesBuilder_ == null) {
6437  if (constraintCase_ == 23) {
6438  return (com.google.ortools.sat.RoutesConstraintProto) constraint_;
6439  }
6441  } else {
6442  if (constraintCase_ == 23) {
6443  return routesBuilder_.getMessage();
6444  }
6446  }
6447  }
6456  if (routesBuilder_ == null) {
6457  if (value == null) {
6458  throw new NullPointerException();
6459  }
6460  constraint_ = value;
6461  onChanged();
6462  } else {
6463  routesBuilder_.setMessage(value);
6464  }
6465  constraintCase_ = 23;
6466  return this;
6467  }
6476  com.google.ortools.sat.RoutesConstraintProto.Builder builderForValue) {
6477  if (routesBuilder_ == null) {
6478  constraint_ = builderForValue.build();
6479  onChanged();
6480  } else {
6481  routesBuilder_.setMessage(builderForValue.build());
6482  }
6483  constraintCase_ = 23;
6484  return this;
6485  }
6494  if (routesBuilder_ == null) {
6495  if (constraintCase_ == 23 &&
6498  .mergeFrom(value).buildPartial();
6499  } else {
6500  constraint_ = value;
6501  }
6502  onChanged();
6503  } else {
6504  if (constraintCase_ == 23) {
6505  routesBuilder_.mergeFrom(value);
6506  }
6507  routesBuilder_.setMessage(value);
6508  }
6509  constraintCase_ = 23;
6510  return this;
6511  }
6520  if (routesBuilder_ == null) {
6521  if (constraintCase_ == 23) {
6522  constraintCase_ = 0;
6523  constraint_ = null;
6524  onChanged();
6525  }
6526  } else {
6527  if (constraintCase_ == 23) {
6528  constraintCase_ = 0;
6529  constraint_ = null;
6530  }
6531  routesBuilder_.clear();
6532  }
6533  return this;
6534  }
6543  return getRoutesFieldBuilder().getBuilder();
6544  }
6552  @java.lang.Override
6554  if ((constraintCase_ == 23) && (routesBuilder_ != null)) {
6555  return routesBuilder_.getMessageOrBuilder();
6556  } else {
6557  if (constraintCase_ == 23) {
6558  return (com.google.ortools.sat.RoutesConstraintProto) constraint_;
6559  }
6561  }
6562  }
6570  private com.google.protobuf.SingleFieldBuilderV3<
6572  getRoutesFieldBuilder() {
6573  if (routesBuilder_ == null) {
6574  if (!(constraintCase_ == 23)) {
6576  }
6577  routesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6579  (com.google.ortools.sat.RoutesConstraintProto) constraint_,
6580  getParentForChildren(),
6581  isClean());
6582  constraint_ = null;
6583  }
6584  constraintCase_ = 23;
6585  onChanged();;
6586  return routesBuilder_;
6587  }
6588 
6589  private com.google.protobuf.SingleFieldBuilderV3<
6600  @java.lang.Override
6601  public boolean hasTable() {
6602  return constraintCase_ == 16;
6603  }
6613  @java.lang.Override
6615  if (tableBuilder_ == null) {
6616  if (constraintCase_ == 16) {
6617  return (com.google.ortools.sat.TableConstraintProto) constraint_;
6618  }
6620  } else {
6621  if (constraintCase_ == 16) {
6622  return tableBuilder_.getMessage();
6623  }
6625  }
6626  }
6636  if (tableBuilder_ == null) {
6637  if (value == null) {
6638  throw new NullPointerException();
6639  }
6640  constraint_ = value;
6641  onChanged();
6642  } else {
6643  tableBuilder_.setMessage(value);
6644  }
6645  constraintCase_ = 16;
6646  return this;
6647  }
6657  com.google.ortools.sat.TableConstraintProto.Builder builderForValue) {
6658  if (tableBuilder_ == null) {
6659  constraint_ = builderForValue.build();
6660  onChanged();
6661  } else {
6662  tableBuilder_.setMessage(builderForValue.build());
6663  }
6664  constraintCase_ = 16;
6665  return this;
6666  }
6676  if (tableBuilder_ == null) {
6677  if (constraintCase_ == 16 &&
6680  .mergeFrom(value).buildPartial();
6681  } else {
6682  constraint_ = value;
6683  }
6684  onChanged();
6685  } else {
6686  if (constraintCase_ == 16) {
6687  tableBuilder_.mergeFrom(value);
6688  }
6689  tableBuilder_.setMessage(value);
6690  }
6691  constraintCase_ = 16;
6692  return this;
6693  }
6702  public Builder clearTable() {
6703  if (tableBuilder_ == null) {
6704  if (constraintCase_ == 16) {
6705  constraintCase_ = 0;
6706  constraint_ = null;
6707  onChanged();
6708  }
6709  } else {
6710  if (constraintCase_ == 16) {
6711  constraintCase_ = 0;
6712  constraint_ = null;
6713  }
6714  tableBuilder_.clear();
6715  }
6716  return this;
6717  }
6727  return getTableFieldBuilder().getBuilder();
6728  }
6737  @java.lang.Override
6739  if ((constraintCase_ == 16) && (tableBuilder_ != null)) {
6740  return tableBuilder_.getMessageOrBuilder();
6741  } else {
6742  if (constraintCase_ == 16) {
6743  return (com.google.ortools.sat.TableConstraintProto) constraint_;
6744  }
6746  }
6747  }
6756  private com.google.protobuf.SingleFieldBuilderV3<
6758  getTableFieldBuilder() {
6759  if (tableBuilder_ == null) {
6760  if (!(constraintCase_ == 16)) {
6762  }
6763  tableBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6765  (com.google.ortools.sat.TableConstraintProto) constraint_,
6766  getParentForChildren(),
6767  isClean());
6768  constraint_ = null;
6769  }
6770  constraintCase_ = 16;
6771  onChanged();;
6772  return tableBuilder_;
6773  }
6774 
6775  private com.google.protobuf.SingleFieldBuilderV3<
6786  @java.lang.Override
6787  public boolean hasAutomaton() {
6788  return constraintCase_ == 17;
6789  }
6799  @java.lang.Override
6801  if (automatonBuilder_ == null) {
6802  if (constraintCase_ == 17) {
6803  return (com.google.ortools.sat.AutomatonConstraintProto) constraint_;
6804  }
6806  } else {
6807  if (constraintCase_ == 17) {
6808  return automatonBuilder_.getMessage();
6809  }
6811  }
6812  }
6822  if (automatonBuilder_ == null) {
6823  if (value == null) {
6824  throw new NullPointerException();
6825  }
6826  constraint_ = value;
6827  onChanged();
6828  } else {
6829  automatonBuilder_.setMessage(value);
6830  }
6831  constraintCase_ = 17;
6832  return this;
6833  }
6844  if (automatonBuilder_ == null) {
6845  constraint_ = builderForValue.build();
6846  onChanged();
6847  } else {
6848  automatonBuilder_.setMessage(builderForValue.build());
6849  }
6850  constraintCase_ = 17;
6851  return this;
6852  }
6862  if (automatonBuilder_ == null) {
6863  if (constraintCase_ == 17 &&
6866  .mergeFrom(value).buildPartial();
6867  } else {
6868  constraint_ = value;
6869  }
6870  onChanged();
6871  } else {
6872  if (constraintCase_ == 17) {
6873  automatonBuilder_.mergeFrom(value);
6874  }
6875  automatonBuilder_.setMessage(value);
6876  }
6877  constraintCase_ = 17;
6878  return this;
6879  }
6889  if (automatonBuilder_ == null) {
6890  if (constraintCase_ == 17) {
6891  constraintCase_ = 0;
6892  constraint_ = null;
6893  onChanged();
6894  }
6895  } else {
6896  if (constraintCase_ == 17) {
6897  constraintCase_ = 0;
6898  constraint_ = null;
6899  }
6900  automatonBuilder_.clear();
6901  }
6902  return this;
6903  }
6913  return getAutomatonFieldBuilder().getBuilder();
6914  }
6923  @java.lang.Override
6925  if ((constraintCase_ == 17) && (automatonBuilder_ != null)) {
6926  return automatonBuilder_.getMessageOrBuilder();
6927  } else {
6928  if (constraintCase_ == 17) {
6929  return (com.google.ortools.sat.AutomatonConstraintProto) constraint_;
6930  }
6932  }
6933  }
6942  private com.google.protobuf.SingleFieldBuilderV3<
6944  getAutomatonFieldBuilder() {
6945  if (automatonBuilder_ == null) {
6946  if (!(constraintCase_ == 17)) {
6948  }
6949  automatonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6952  getParentForChildren(),
6953  isClean());
6954  constraint_ = null;
6955  }
6956  constraintCase_ = 17;
6957  onChanged();;
6958  return automatonBuilder_;
6959  }
6960 
6961  private com.google.protobuf.SingleFieldBuilderV3<
6972  @java.lang.Override
6973  public boolean hasInverse() {
6974  return constraintCase_ == 18;
6975  }
6985  @java.lang.Override
6987  if (inverseBuilder_ == null) {
6988  if (constraintCase_ == 18) {
6989  return (com.google.ortools.sat.InverseConstraintProto) constraint_;
6990  }
6992  } else {
6993  if (constraintCase_ == 18) {
6994  return inverseBuilder_.getMessage();
6995  }
6997  }
6998  }
7008  if (inverseBuilder_ == null) {
7009  if (value == null) {
7010  throw new NullPointerException();
7011  }
7012  constraint_ = value;
7013  onChanged();
7014  } else {
7015  inverseBuilder_.setMessage(value);
7016  }
7017  constraintCase_ = 18;
7018  return this;
7019  }
7029  com.google.ortools.sat.InverseConstraintProto.Builder builderForValue) {
7030  if (inverseBuilder_ == null) {
7031  constraint_ = builderForValue.build();
7032  onChanged();
7033  } else {
7034  inverseBuilder_.setMessage(builderForValue.build());
7035  }
7036  constraintCase_ = 18;
7037  return this;
7038  }
7048  if (inverseBuilder_ == null) {
7049  if (constraintCase_ == 18 &&
7052  .mergeFrom(value).buildPartial();
7053  } else {
7054  constraint_ = value;
7055  }
7056  onChanged();
7057  } else {
7058  if (constraintCase_ == 18) {
7059  inverseBuilder_.mergeFrom(value);
7060  }
7061  inverseBuilder_.setMessage(value);
7062  }
7063  constraintCase_ = 18;
7064  return this;
7065  }
7075  if (inverseBuilder_ == null) {
7076  if (constraintCase_ == 18) {
7077  constraintCase_ = 0;
7078  constraint_ = null;
7079  onChanged();
7080  }
7081  } else {
7082  if (constraintCase_ == 18) {
7083  constraintCase_ = 0;
7084  constraint_ = null;
7085  }
7086  inverseBuilder_.clear();
7087  }
7088  return this;
7089  }
7099  return getInverseFieldBuilder().getBuilder();
7100  }
7109  @java.lang.Override
7111  if ((constraintCase_ == 18) && (inverseBuilder_ != null)) {
7112  return inverseBuilder_.getMessageOrBuilder();
7113  } else {
7114  if (constraintCase_ == 18) {
7115  return (com.google.ortools.sat.InverseConstraintProto) constraint_;
7116  }
7118  }
7119  }
7128  private com.google.protobuf.SingleFieldBuilderV3<
7130  getInverseFieldBuilder() {
7131  if (inverseBuilder_ == null) {
7132  if (!(constraintCase_ == 18)) {
7134  }
7135  inverseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
7138  getParentForChildren(),
7139  isClean());
7140  constraint_ = null;
7141  }
7142  constraintCase_ = 18;
7143  onChanged();;
7144  return inverseBuilder_;
7145  }
7146 
7147  private com.google.protobuf.SingleFieldBuilderV3<
7159  @java.lang.Override
7160  public boolean hasReservoir() {
7161  return constraintCase_ == 24;
7162  }
7173  @java.lang.Override
7175  if (reservoirBuilder_ == null) {
7176  if (constraintCase_ == 24) {
7177  return (com.google.ortools.sat.ReservoirConstraintProto) constraint_;
7178  }
7180  } else {
7181  if (constraintCase_ == 24) {
7182  return reservoirBuilder_.getMessage();
7183  }
7185  }
7186  }
7197  if (reservoirBuilder_ == null) {
7198  if (value == null) {
7199  throw new NullPointerException();
7200  }
7201  constraint_ = value;
7202  onChanged();
7203  } else {
7204  reservoirBuilder_.setMessage(value);
7205  }
7206  constraintCase_ = 24;
7207  return this;
7208  }
7220  if (reservoirBuilder_ == null) {
7221  constraint_ = builderForValue.build();
7222  onChanged();
7223  } else {
7224  reservoirBuilder_.setMessage(builderForValue.build());
7225  }
7226  constraintCase_ = 24;
7227  return this;
7228  }
7239  if (reservoirBuilder_ == null) {
7240  if (constraintCase_ == 24 &&
7243  .mergeFrom(value).buildPartial();
7244  } else {
7245  constraint_ = value;
7246  }
7247  onChanged();
7248  } else {
7249  if (constraintCase_ == 24) {
7250  reservoirBuilder_.mergeFrom(value);
7251  }
7252  reservoirBuilder_.setMessage(value);
7253  }
7254  constraintCase_ = 24;
7255  return this;
7256  }
7267  if (reservoirBuilder_ == null) {
7268  if (constraintCase_ == 24) {
7269  constraintCase_ = 0;
7270  constraint_ = null;
7271  onChanged();
7272  }
7273  } else {
7274  if (constraintCase_ == 24) {
7275  constraintCase_ = 0;
7276  constraint_ = null;
7277  }
7278  reservoirBuilder_.clear();
7279  }
7280  return this;
7281  }
7292  return getReservoirFieldBuilder().getBuilder();
7293  }
7303  @java.lang.Override
7305  if ((constraintCase_ == 24) && (reservoirBuilder_ != null)) {
7306  return reservoirBuilder_.getMessageOrBuilder();
7307  } else {
7308  if (constraintCase_ == 24) {
7309  return (com.google.ortools.sat.ReservoirConstraintProto) constraint_;
7310  }
7312  }
7313  }
7323  private com.google.protobuf.SingleFieldBuilderV3<
7325  getReservoirFieldBuilder() {
7326  if (reservoirBuilder_ == null) {
7327  if (!(constraintCase_ == 24)) {
7329  }
7330  reservoirBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
7333  getParentForChildren(),
7334  isClean());
7335  constraint_ = null;
7336  }
7337  constraintCase_ = 24;
7338  onChanged();;
7339  return reservoirBuilder_;
7340  }
7341 
7342  private com.google.protobuf.SingleFieldBuilderV3<
7353  @java.lang.Override
7354  public boolean hasInterval() {
7355  return constraintCase_ == 19;
7356  }
7366  @java.lang.Override
7368  if (intervalBuilder_ == null) {
7369  if (constraintCase_ == 19) {
7370  return (com.google.ortools.sat.IntervalConstraintProto) constraint_;
7371  }
7373  } else {
7374  if (constraintCase_ == 19) {
7375  return intervalBuilder_.getMessage();
7376  }
7378  }
7379  }
7389  if (intervalBuilder_ == null) {
7390  if (value == null) {
7391  throw new NullPointerException();
7392  }
7393  constraint_ = value;
7394  onChanged();
7395  } else {
7396  intervalBuilder_.setMessage(value);
7397  }
7398  constraintCase_ = 19;
7399  return this;
7400  }
7411  if (intervalBuilder_ == null) {
7412  constraint_ = builderForValue.build();
7413  onChanged();
7414  } else {
7415  intervalBuilder_.setMessage(builderForValue.build());
7416  }
7417  constraintCase_ = 19;
7418  return this;
7419  }
7429  if (intervalBuilder_ == null) {
7430  if (constraintCase_ == 19 &&
7433  .mergeFrom(value).buildPartial();
7434  } else {
7435  constraint_ = value;
7436  }
7437  onChanged();
7438  } else {
7439  if (constraintCase_ == 19) {
7440  intervalBuilder_.mergeFrom(value);
7441  }
7442  intervalBuilder_.setMessage(value);
7443  }
7444  constraintCase_ = 19;
7445  return this;
7446  }
7456  if (intervalBuilder_ == null) {
7457  if (constraintCase_ == 19) {
7458  constraintCase_ = 0;
7459  constraint_ = null;
7460  onChanged();
7461  }
7462  } else {
7463  if (constraintCase_ == 19) {
7464  constraintCase_ = 0;
7465  constraint_ = null;
7466  }
7467  intervalBuilder_.clear();
7468  }
7469  return this;
7470  }
7480  return getIntervalFieldBuilder().getBuilder();
7481  }
7490  @java.lang.Override
7492  if ((constraintCase_ == 19) && (intervalBuilder_ != null)) {
7493  return intervalBuilder_.getMessageOrBuilder();
7494  } else {
7495  if (constraintCase_ == 19) {
7496  return (com.google.ortools.sat.IntervalConstraintProto) constraint_;
7497  }
7499  }
7500  }
7509  private com.google.protobuf.SingleFieldBuilderV3<
7511  getIntervalFieldBuilder() {
7512  if (intervalBuilder_ == null) {
7513  if (!(constraintCase_ == 19)) {
7515  }
7516  intervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
7519  getParentForChildren(),
7520  isClean());
7521  constraint_ = null;
7522  }
7523  constraintCase_ = 19;
7524  onChanged();;
7525  return intervalBuilder_;
7526  }
7527 
7528  private com.google.protobuf.SingleFieldBuilderV3<
7540  @java.lang.Override
7541  public boolean hasNoOverlap() {
7542  return constraintCase_ == 20;
7543  }
7554  @java.lang.Override
7556  if (noOverlapBuilder_ == null) {
7557  if (constraintCase_ == 20) {
7558  return (com.google.ortools.sat.NoOverlapConstraintProto) constraint_;
7559  }
7561  } else {
7562  if (constraintCase_ == 20) {
7563  return noOverlapBuilder_.getMessage();
7564  }
7566  }
7567  }
7578  if (noOverlapBuilder_ == null) {
7579  if (value == null) {
7580  throw new NullPointerException();
7581  }
7582  constraint_ = value;
7583  onChanged();
7584  } else {
7585  noOverlapBuilder_.setMessage(value);
7586  }
7587  constraintCase_ = 20;
7588  return this;
7589  }
7601  if (noOverlapBuilder_ == null) {
7602  constraint_ = builderForValue.build();
7603  onChanged();
7604  } else {
7605  noOverlapBuilder_.setMessage(builderForValue.build());
7606  }
7607  constraintCase_ = 20;
7608  return this;
7609  }
7620  if (noOverlapBuilder_ == null) {
7621  if (constraintCase_ == 20 &&
7624  .mergeFrom(value).buildPartial();
7625  } else {
7626  constraint_ = value;
7627  }
7628  onChanged();
7629  } else {
7630  if (constraintCase_ == 20) {
7631  noOverlapBuilder_.mergeFrom(value);
7632  }
7633  noOverlapBuilder_.setMessage(value);
7634  }
7635  constraintCase_ = 20;
7636  return this;
7637  }
7648  if (noOverlapBuilder_ == null) {
7649  if (constraintCase_ == 20) {
7650  constraintCase_ = 0;
7651  constraint_ = null;
7652  onChanged();
7653  }
7654  } else {
7655  if (constraintCase_ == 20) {
7656  constraintCase_ = 0;
7657  constraint_ = null;
7658  }
7659  noOverlapBuilder_.clear();
7660  }
7661  return this;
7662  }
7673  return getNoOverlapFieldBuilder().getBuilder();
7674  }
7684  @java.lang.Override
7686  if ((constraintCase_ == 20) && (noOverlapBuilder_ != null)) {
7687  return noOverlapBuilder_.getMessageOrBuilder();
7688  } else {
7689  if (constraintCase_ == 20) {
7690  return (com.google.ortools.sat.NoOverlapConstraintProto) constraint_;
7691  }
7693  }
7694  }
7704  private com.google.protobuf.SingleFieldBuilderV3<
7706  getNoOverlapFieldBuilder() {
7707  if (noOverlapBuilder_ == null) {
7708  if (!(constraintCase_ == 20)) {
7710  }
7711  noOverlapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
7714  getParentForChildren(),
7715  isClean());
7716  constraint_ = null;
7717  }
7718  constraintCase_ = 20;
7719  onChanged();;
7720  return noOverlapBuilder_;
7721  }
7722 
7723  private com.google.protobuf.SingleFieldBuilderV3<
7733  @java.lang.Override
7734  public boolean hasNoOverlap2D() {
7735  return constraintCase_ == 21;
7736  }
7745  @java.lang.Override
7747  if (noOverlap2DBuilder_ == null) {
7748  if (constraintCase_ == 21) {
7749  return (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_;
7750  }
7752  } else {
7753  if (constraintCase_ == 21) {
7754  return noOverlap2DBuilder_.getMessage();
7755  }
7757  }
7758  }
7767  if (noOverlap2DBuilder_ == null) {
7768  if (value == null) {
7769  throw new NullPointerException();
7770  }
7771  constraint_ = value;
7772  onChanged();
7773  } else {
7774  noOverlap2DBuilder_.setMessage(value);
7775  }
7776  constraintCase_ = 21;
7777  return this;
7778  }
7788  if (noOverlap2DBuilder_ == null) {
7789  constraint_ = builderForValue.build();
7790  onChanged();
7791  } else {
7792  noOverlap2DBuilder_.setMessage(builderForValue.build());
7793  }
7794  constraintCase_ = 21;
7795  return this;
7796  }
7805  if (noOverlap2DBuilder_ == null) {
7806  if (constraintCase_ == 21 &&
7809  .mergeFrom(value).buildPartial();
7810  } else {
7811  constraint_ = value;
7812  }
7813  onChanged();
7814  } else {
7815  if (constraintCase_ == 21) {
7816  noOverlap2DBuilder_.mergeFrom(value);
7817  }
7818  noOverlap2DBuilder_.setMessage(value);
7819  }
7820  constraintCase_ = 21;
7821  return this;
7822  }
7831  if (noOverlap2DBuilder_ == null) {
7832  if (constraintCase_ == 21) {
7833  constraintCase_ = 0;
7834  constraint_ = null;
7835  onChanged();
7836  }
7837  } else {
7838  if (constraintCase_ == 21) {
7839  constraintCase_ = 0;
7840  constraint_ = null;
7841  }
7842  noOverlap2DBuilder_.clear();
7843  }
7844  return this;
7845  }
7854  return getNoOverlap2DFieldBuilder().getBuilder();
7855  }
7863  @java.lang.Override
7865  if ((constraintCase_ == 21) && (noOverlap2DBuilder_ != null)) {
7866  return noOverlap2DBuilder_.getMessageOrBuilder();
7867  } else {
7868  if (constraintCase_ == 21) {
7869  return (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_;
7870  }
7872  }
7873  }
7881  private com.google.protobuf.SingleFieldBuilderV3<
7883  getNoOverlap2DFieldBuilder() {
7884  if (noOverlap2DBuilder_ == null) {
7885  if (!(constraintCase_ == 21)) {
7887  }
7888  noOverlap2DBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
7891  getParentForChildren(),
7892  isClean());
7893  constraint_ = null;
7894  }
7895  constraintCase_ = 21;
7896  onChanged();;
7897  return noOverlap2DBuilder_;
7898  }
7899 
7900  private com.google.protobuf.SingleFieldBuilderV3<
7912  @java.lang.Override
7913  public boolean hasCumulative() {
7914  return constraintCase_ == 22;
7915  }
7926  @java.lang.Override
7928  if (cumulativeBuilder_ == null) {
7929  if (constraintCase_ == 22) {
7930  return (com.google.ortools.sat.CumulativeConstraintProto) constraint_;
7931  }
7933  } else {
7934  if (constraintCase_ == 22) {
7935  return cumulativeBuilder_.getMessage();
7936  }
7938  }
7939  }
7950  if (cumulativeBuilder_ == null) {
7951  if (value == null) {
7952  throw new NullPointerException();
7953  }
7954  constraint_ = value;
7955  onChanged();
7956  } else {
7957  cumulativeBuilder_.setMessage(value);
7958  }
7959  constraintCase_ = 22;
7960  return this;
7961  }
7973  if (cumulativeBuilder_ == null) {
7974  constraint_ = builderForValue.build();
7975  onChanged();
7976  } else {
7977  cumulativeBuilder_.setMessage(builderForValue.build());
7978  }
7979  constraintCase_ = 22;
7980  return this;
7981  }
7992  if (cumulativeBuilder_ == null) {
7993  if (constraintCase_ == 22 &&
7996  .mergeFrom(value).buildPartial();
7997  } else {
7998  constraint_ = value;
7999  }
8000  onChanged();
8001  } else {
8002  if (constraintCase_ == 22) {
8003  cumulativeBuilder_.mergeFrom(value);
8004  }
8005  cumulativeBuilder_.setMessage(value);
8006  }
8007  constraintCase_ = 22;
8008  return this;
8009  }
8020  if (cumulativeBuilder_ == null) {
8021  if (constraintCase_ == 22) {
8022  constraintCase_ = 0;
8023  constraint_ = null;
8024  onChanged();
8025  }
8026  } else {
8027  if (constraintCase_ == 22) {
8028  constraintCase_ = 0;
8029  constraint_ = null;
8030  }
8031  cumulativeBuilder_.clear();
8032  }
8033  return this;
8034  }
8045  return getCumulativeFieldBuilder().getBuilder();
8046  }
8056  @java.lang.Override
8058  if ((constraintCase_ == 22) && (cumulativeBuilder_ != null)) {
8059  return cumulativeBuilder_.getMessageOrBuilder();
8060  } else {
8061  if (constraintCase_ == 22) {
8062  return (com.google.ortools.sat.CumulativeConstraintProto) constraint_;
8063  }
8065  }
8066  }
8076  private com.google.protobuf.SingleFieldBuilderV3<
8078  getCumulativeFieldBuilder() {
8079  if (cumulativeBuilder_ == null) {
8080  if (!(constraintCase_ == 22)) {
8082  }
8083  cumulativeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
8086  getParentForChildren(),
8087  isClean());
8088  constraint_ = null;
8089  }
8090  constraintCase_ = 22;
8091  onChanged();;
8092  return cumulativeBuilder_;
8093  }
8094 
8095  private com.google.protobuf.SingleFieldBuilderV3<
8106  @java.lang.Override
8107  public boolean hasDummyConstraint() {
8108  return constraintCase_ == 30;
8109  }
8119  @java.lang.Override
8121  if (dummyConstraintBuilder_ == null) {
8122  if (constraintCase_ == 30) {
8123  return (com.google.ortools.sat.ListOfVariablesProto) constraint_;
8124  }
8126  } else {
8127  if (constraintCase_ == 30) {
8128  return dummyConstraintBuilder_.getMessage();
8129  }
8131  }
8132  }
8142  if (dummyConstraintBuilder_ == null) {
8143  if (value == null) {
8144  throw new NullPointerException();
8145  }
8146  constraint_ = value;
8147  onChanged();
8148  } else {
8149  dummyConstraintBuilder_.setMessage(value);
8150  }
8151  constraintCase_ = 30;
8152  return this;
8153  }
8163  com.google.ortools.sat.ListOfVariablesProto.Builder builderForValue) {
8164  if (dummyConstraintBuilder_ == null) {
8165  constraint_ = builderForValue.build();
8166  onChanged();
8167  } else {
8168  dummyConstraintBuilder_.setMessage(builderForValue.build());
8169  }
8170  constraintCase_ = 30;
8171  return this;
8172  }
8182  if (dummyConstraintBuilder_ == null) {
8183  if (constraintCase_ == 30 &&
8186  .mergeFrom(value).buildPartial();
8187  } else {
8188  constraint_ = value;
8189  }
8190  onChanged();
8191  } else {
8192  if (constraintCase_ == 30) {
8193  dummyConstraintBuilder_.mergeFrom(value);
8194  }
8195  dummyConstraintBuilder_.setMessage(value);
8196  }
8197  constraintCase_ = 30;
8198  return this;
8199  }
8209  if (dummyConstraintBuilder_ == null) {
8210  if (constraintCase_ == 30) {
8211  constraintCase_ = 0;
8212  constraint_ = null;
8213  onChanged();
8214  }
8215  } else {
8216  if (constraintCase_ == 30) {
8217  constraintCase_ = 0;
8218  constraint_ = null;
8219  }
8220  dummyConstraintBuilder_.clear();
8221  }
8222  return this;
8223  }
8233  return getDummyConstraintFieldBuilder().getBuilder();
8234  }
8243  @java.lang.Override
8245  if ((constraintCase_ == 30) && (dummyConstraintBuilder_ != null)) {
8246  return dummyConstraintBuilder_.getMessageOrBuilder();
8247  } else {
8248  if (constraintCase_ == 30) {
8249  return (com.google.ortools.sat.ListOfVariablesProto) constraint_;
8250  }
8252  }
8253  }
8262  private com.google.protobuf.SingleFieldBuilderV3<
8264  getDummyConstraintFieldBuilder() {
8265  if (dummyConstraintBuilder_ == null) {
8266  if (!(constraintCase_ == 30)) {
8268  }
8269  dummyConstraintBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
8271  (com.google.ortools.sat.ListOfVariablesProto) constraint_,
8272  getParentForChildren(),
8273  isClean());
8274  constraint_ = null;
8275  }
8276  constraintCase_ = 30;
8277  onChanged();;
8278  return dummyConstraintBuilder_;
8279  }
8280  @java.lang.Override
8282  final com.google.protobuf.UnknownFieldSet unknownFields) {
8283  return super.setUnknownFields(unknownFields);
8284  }
8285 
8286  @java.lang.Override
8288  final com.google.protobuf.UnknownFieldSet unknownFields) {
8289  return super.mergeUnknownFields(unknownFields);
8290  }
8291 
8292 
8293  // @@protoc_insertion_point(builder_scope:operations_research.sat.ConstraintProto)
8294  }
8295 
8296  // @@protoc_insertion_point(class_scope:operations_research.sat.ConstraintProto)
8297  private static final com.google.ortools.sat.ConstraintProto DEFAULT_INSTANCE;
8298  static {
8299  DEFAULT_INSTANCE = new com.google.ortools.sat.ConstraintProto();
8300  }
8301 
8303  return DEFAULT_INSTANCE;
8304  }
8305 
8306  private static final com.google.protobuf.Parser<ConstraintProto>
8307  PARSER = new com.google.protobuf.AbstractParser<ConstraintProto>() {
8308  @java.lang.Override
8309  public ConstraintProto parsePartialFrom(
8310  com.google.protobuf.CodedInputStream input,
8311  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8312  throws com.google.protobuf.InvalidProtocolBufferException {
8313  return new ConstraintProto(input, extensionRegistry);
8314  }
8315  };
8316 
8317  public static com.google.protobuf.Parser<ConstraintProto> parser() {
8318  return PARSER;
8319  }
8320 
8321  @java.lang.Override
8322  public com.google.protobuf.Parser<ConstraintProto> getParserForType() {
8323  return PARSER;
8324  }
8325 
8326  @java.lang.Override
8328  return DEFAULT_INSTANCE;
8329  }
8330 
8331 }
8332 
.lang.Override com.google.ortools.sat.LinearConstraintProto getLinear()
.lang.Override com.google.ortools.sat.LinearArgumentProto buildPartial()
Builder setIntProd(com.google.ortools.sat.IntegerArgumentProto value)
static com.google.ortools.sat.NoOverlap2DConstraintProto getDefaultInstance()
.lang.Override boolean hasLinMin()
.operations_research.sat.LinearArgumentProto lin_min = 28;
static Builder newBuilder(com.google.ortools.sat.ConstraintProto prototype)
.lang.Override com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolXorOrBuilder()
.lang.Override com.google.ortools.sat.CumulativeConstraintProtoOrBuilder getCumulativeOrBuilder()
static com.google.ortools.sat.ConstraintProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Builder setLinMin(com.google.ortools.sat.LinearArgumentProto value)
.operations_research.sat.LinearArgumentProto lin_min = 28;
Builder setLinMax(com.google.ortools.sat.LinearArgumentProto value)
.operations_research.sat.LinearArgumentProto lin_max = 27;
.lang.Override com.google.ortools.sat.IntervalConstraintProto getInterval()
.lang.Override com.google.ortools.sat.BoolArgumentProtoOrBuilder getAtMostOneOrBuilder()
com.google.ortools.sat.IntervalConstraintProto.Builder getIntervalBuilder()
Builder mergeIntMin(com.google.ortools.sat.IntegerArgumentProto value)
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
.lang.Override boolean equals(final java.lang.Object obj)
static com.google.ortools.sat.IntervalConstraintProto getDefaultInstance()
com.google.ortools.sat.LinearConstraintProto.Builder getLinearBuilder()
.lang.Override com.google.ortools.sat.ElementConstraintProtoOrBuilder getElementOrBuilder()
com.google.ortools.sat.RoutesConstraintProto.Builder getRoutesBuilder()
.lang.Override com.google.ortools.sat.TableConstraintProtoOrBuilder getTableOrBuilder()
.lang.Override com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolOrOrBuilder()
static com.google.ortools.sat.ConstraintProto parseFrom(java.nio.ByteBuffer data)
.lang.Override com.google.ortools.sat.IntervalConstraintProtoOrBuilder getIntervalOrBuilder()
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
Builder mergeCircuit(com.google.ortools.sat.CircuitConstraintProto value)
Builder setLinear(com.google.ortools.sat.LinearConstraintProto.Builder builderForValue)
.lang.Override com.google.ortools.sat.ListOfVariablesProto buildPartial()
Builder setIntMin(com.google.ortools.sat.IntegerArgumentProto value)
Builder setIntMod(com.google.ortools.sat.IntegerArgumentProto value)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
.lang.Override com.google.ortools.sat.RoutesConstraintProto getRoutes()
.lang.Override com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolOrOrBuilder()
Builder mergeInterval(com.google.ortools.sat.IntervalConstraintProto value)
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
.lang.Override java.util.List< java.lang.Integer > getEnforcementLiteralList()
Builder setAutomaton(com.google.ortools.sat.AutomatonConstraintProto.Builder builderForValue)
.lang.Override com.google.ortools.sat.LinearConstraintProtoOrBuilder getLinearOrBuilder()
com.google.ortools.sat.AllDifferentConstraintProto.Builder getAllDiffBuilder()
.lang.Override com.google.ortools.sat.LinearConstraintProto buildPartial()
.lang.Override com.google.ortools.sat.BoolArgumentProto getAtMostOne()
.lang.Override com.google.ortools.sat.ElementConstraintProto buildPartial()
.lang.Override com.google.protobuf.Parser< ConstraintProto > getParserForType()
.lang.Override com.google.ortools.sat.ReservoirConstraintProtoOrBuilder getReservoirOrBuilder()
.lang.Override com.google.ortools.sat.AllDifferentConstraintProto getAllDiff()
static com.google.protobuf.Parser< ListOfVariablesProto > parser()
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
.lang.Override com.google.ortools.sat.IntervalConstraintProto buildPartial()
.lang.Override com.google.ortools.sat.NoOverlap2DConstraintProtoOrBuilder getNoOverlap2DOrBuilder()
.lang.Override com.google.ortools.sat.InverseConstraintProto getInverse()
Builder setExactlyOne(com.google.ortools.sat.BoolArgumentProto value)
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
.lang.Override com.google.ortools.sat.BoolArgumentProtoOrBuilder getExactlyOneOrBuilder()
.lang.Override com.google.ortools.sat.LinearArgumentProto getLinMax()
.operations_research.sat.LinearArgumentProto lin_max = 27;
.lang.Override com.google.ortools.sat.CircuitConstraintProto getCircuit()
.lang.Override com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntProdOrBuilder()
.lang.Override boolean hasLinMax()
.operations_research.sat.LinearArgumentProto lin_max = 27;
.lang.Override boolean equals(final java.lang.Object obj)
Builder setLinMax(com.google.ortools.sat.LinearArgumentProto.Builder builderForValue)
.operations_research.sat.LinearArgumentProto lin_max = 27;
Builder mergeIntDiv(com.google.ortools.sat.IntegerArgumentProto value)
.lang.Override com.google.ortools.sat.CumulativeConstraintProto getCumulative()
.lang.Override boolean equals(final java.lang.Object obj)
Builder setAtMostOne(com.google.ortools.sat.BoolArgumentProto.Builder builderForValue)
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
.lang.Override com.google.ortools.sat.BoolArgumentProto getExactlyOne()
Builder mergeBoolOr(com.google.ortools.sat.BoolArgumentProto value)
.lang.Override Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
.lang.Override com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolAndOrBuilder()
.lang.Override com.google.ortools.sat.NoOverlapConstraintProto getNoOverlap()
Builder setIntDiv(com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue)
.lang.Override com.google.ortools.sat.CircuitConstraintProtoOrBuilder getCircuitOrBuilder()
Builder setNoOverlap(com.google.ortools.sat.NoOverlapConstraintProto.Builder builderForValue)
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
.lang.Override com.google.ortools.sat.AllDifferentConstraintProto buildPartial()
Builder setEnforcementLiteral(int index, int value)
.lang.Override com.google.ortools.sat.AllDifferentConstraintProto getAllDiff()
.lang.Override final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
.lang.Override com.google.ortools.sat.TableConstraintProto buildPartial()
Builder setNameBytes(com.google.protobuf.ByteString value)
com.google.ortools.sat.BoolArgumentProto.Builder getBoolXorBuilder()
static com.google.protobuf.Parser< NoOverlapConstraintProto > parser()
Builder clearLinMax()
.operations_research.sat.LinearArgumentProto lin_max = 27;
.lang.Override com.google.ortools.sat.LinearArgumentProtoOrBuilder getLinMinOrBuilder()
.operations_research.sat.LinearArgumentProto lin_min = 28;
static com.google.ortools.sat.InverseConstraintProto getDefaultInstance()
static com.google.ortools.sat.ConstraintProto parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Builder mergeInverse(com.google.ortools.sat.InverseConstraintProto value)
.lang.Override com.google.ortools.sat.ReservoirConstraintProto getReservoir()
static com.google.protobuf.Parser< TableConstraintProto > parser()
.lang.Override com.google.ortools.sat.AutomatonConstraintProtoOrBuilder getAutomatonOrBuilder()
.lang.Override com.google.ortools.sat.RoutesConstraintProtoOrBuilder getRoutesOrBuilder()
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
.lang.Override com.google.protobuf.ByteString getNameBytes()
.lang.Override com.google.ortools.sat.IntegerArgumentProto getIntMin()
Builder setLinear(com.google.ortools.sat.LinearConstraintProto value)
.lang.Override com.google.ortools.sat.AutomatonConstraintProto buildPartial()
static com.google.ortools.sat.RoutesConstraintProto getDefaultInstance()
.lang.Override com.google.ortools.sat.IntegerArgumentProto getIntProd()
Builder setReservoir(com.google.ortools.sat.ReservoirConstraintProto.Builder builderForValue)
.lang.Override com.google.ortools.sat.ReservoirConstraintProto buildPartial()
.lang.Override com.google.ortools.sat.IntegerArgumentProto getIntMod()
Builder setIntMod(com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue)
Builder mergeElement(com.google.ortools.sat.ElementConstraintProto value)
Builder mergeLinear(com.google.ortools.sat.LinearConstraintProto value)
.lang.Override com.google.ortools.sat.InverseConstraintProto buildPartial()
Builder setInterval(com.google.ortools.sat.IntervalConstraintProto.Builder builderForValue)
Builder setTable(com.google.ortools.sat.TableConstraintProto.Builder builderForValue)
static com.google.ortools.sat.IntegerArgumentProto getDefaultInstance()
.lang.Override com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntProdOrBuilder()
Builder setBoolXor(com.google.ortools.sat.BoolArgumentProto value)
static com.google.protobuf.Parser< ElementConstraintProto > parser()
.lang.Override com.google.ortools.sat.IntegerArgumentProto getIntMin()
Builder setElement(com.google.ortools.sat.ElementConstraintProto.Builder builderForValue)
.lang.Override boolean equals(final java.lang.Object obj)
.lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Builder setAllDiff(com.google.ortools.sat.AllDifferentConstraintProto.Builder builderForValue)
static com.google.ortools.sat.LinearArgumentProto getDefaultInstance()
.lang.Override com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntDivOrBuilder()
Builder setDummyConstraint(com.google.ortools.sat.ListOfVariablesProto.Builder builderForValue)
static com.google.protobuf.Parser< CumulativeConstraintProto > parser()
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
.lang.Override com.google.ortools.sat.ElementConstraintProtoOrBuilder getElementOrBuilder()
static com.google.ortools.sat.ConstraintProto parseFrom(com.google.protobuf.ByteString data)
static com.google.protobuf.Parser< CircuitConstraintProto > parser()
static com.google.protobuf.Parser< NoOverlap2DConstraintProto > parser()
Builder setNoOverlap2D(com.google.ortools.sat.NoOverlap2DConstraintProto.Builder builderForValue)
.lang.Override com.google.ortools.sat.BoolArgumentProto buildPartial()
Builder setIntProd(com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue)
com.google.ortools.sat.BoolArgumentProto.Builder getExactlyOneBuilder()
.lang.Override com.google.ortools.sat.ElementConstraintProto getElement()
static com.google.ortools.sat.ConstraintProto parseFrom(com.google.protobuf.CodedInputStream input)
com.google.ortools.sat.AutomatonConstraintProto.Builder getAutomatonBuilder()
.lang.Override com.google.ortools.sat.ConstraintProto buildPartial()
Builder setExactlyOne(com.google.ortools.sat.BoolArgumentProto.Builder builderForValue)
static com.google.protobuf.Parser< RoutesConstraintProto > parser()
Builder setBoolAnd(com.google.ortools.sat.BoolArgumentProto.Builder builderForValue)
.lang.Override com.google.ortools.sat.CircuitConstraintProto buildPartial()
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
static com.google.protobuf.Parser< BoolArgumentProto > parser()
.lang.Override com.google.ortools.sat.AllDifferentConstraintProtoOrBuilder getAllDiffOrBuilder()
.lang.Override com.google.ortools.sat.ReservoirConstraintProtoOrBuilder getReservoirOrBuilder()
Builder clearLinMin()
.operations_research.sat.LinearArgumentProto lin_min = 28;
static com.google.ortools.sat.BoolArgumentProto getDefaultInstance()
.lang.Override com.google.ortools.sat.NoOverlap2DConstraintProto buildPartial()
com.google.ortools.sat.BoolArgumentProto.Builder getBoolAndBuilder()
com.google.ortools.sat.ElementConstraintProto.Builder getElementBuilder()
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
Builder mergeDummyConstraint(com.google.ortools.sat.ListOfVariablesProto value)
static com.google.protobuf.Parser< ReservoirConstraintProto > parser()
.lang.Override java.lang.String getName()
.lang.Override java.lang.Object newInstance(UnusedPrivateParameter unused)
Builder setBoolOr(com.google.ortools.sat.BoolArgumentProto.Builder builderForValue)
.lang.Override Builder newBuilderForType()
Builder setBoolXor(com.google.ortools.sat.BoolArgumentProto.Builder builderForValue)
static com.google.protobuf.Parser< AutomatonConstraintProto > parser()
Builder mergeNoOverlap2D(com.google.ortools.sat.NoOverlap2DConstraintProto value)
com.google.ortools.sat.IntegerArgumentProto.Builder getIntMinBuilder()
.lang.Override com.google.ortools.sat.AutomatonConstraintProto getAutomaton()
Builder mergeAtMostOne(com.google.ortools.sat.BoolArgumentProto value)
.lang.Override com.google.ortools.sat.NoOverlapConstraintProto buildPartial()
.lang.Override com.google.ortools.sat.ReservoirConstraintProto getReservoir()
Builder setIntDiv(com.google.ortools.sat.IntegerArgumentProto value)
com.google.ortools.sat.IntegerArgumentProto.Builder getIntModBuilder()
.lang.Override com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntDivOrBuilder()
.lang.Override com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntModOrBuilder()
.lang.Override Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
.lang.Override boolean equals(final java.lang.Object obj)
.lang.Override com.google.ortools.sat.IntegerArgumentProto getIntMax()
.lang.Override com.google.ortools.sat.BoolArgumentProto getBoolOr()
static com.google.protobuf.Parser< IntegerArgumentProto > parser()
static com.google.ortools.sat.ConstraintProto parseFrom(byte[] data)
.lang.Override boolean equals(final java.lang.Object obj)
.lang.Override com.google.ortools.sat.LinearArgumentProtoOrBuilder getLinMinOrBuilder()
.operations_research.sat.LinearArgumentProto lin_min = 28;
.lang.Override com.google.ortools.sat.InverseConstraintProto getInverse()
Builder setInterval(com.google.ortools.sat.IntervalConstraintProto value)
static com.google.ortools.sat.TableConstraintProto getDefaultInstance()
static com.google.ortools.sat.ReservoirConstraintProto getDefaultInstance()
Builder setCircuit(com.google.ortools.sat.CircuitConstraintProto value)
.lang.Override com.google.ortools.sat.IntegerArgumentProto getIntMod()
.lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Builder mergeIntMax(com.google.ortools.sat.IntegerArgumentProto value)
.lang.Override com.google.ortools.sat.IntegerArgumentProto getIntDiv()
.lang.Override Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
static com.google.ortools.sat.ConstraintProto parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntMaxOrBuilder()
.lang.Override boolean equals(final java.lang.Object obj)
Builder setIntMax(com.google.ortools.sat.IntegerArgumentProto value)
com.google.ortools.sat.InverseConstraintProto.Builder getInverseBuilder()
.lang.Override com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntMaxOrBuilder()
.lang.Override boolean equals(final java.lang.Object obj)
static com.google.protobuf.Parser< LinearConstraintProto > parser()
.lang.Override com.google.ortools.sat.LinearConstraintProto getLinear()
java.util.List< java.lang.Integer > getEnforcementLiteralList()
.lang.Override void writeTo(com.google.protobuf.CodedOutputStream output)
com.google.ortools.sat.CumulativeConstraintProto.Builder getCumulativeBuilder()
static com.google.ortools.sat.AutomatonConstraintProto getDefaultInstance()
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
.lang.Override final boolean isInitialized()
.lang.Override boolean equals(final java.lang.Object obj)
Builder setLinMin(com.google.ortools.sat.LinearArgumentProto.Builder builderForValue)
.operations_research.sat.LinearArgumentProto lin_min = 28;
Builder mergeFrom(com.google.ortools.sat.ConstraintProto other)
static com.google.ortools.sat.ConstraintProto parseFrom(java.io.InputStream input)
.lang.Override com.google.ortools.sat.BoolArgumentProtoOrBuilder getExactlyOneOrBuilder()
.lang.Override com.google.ortools.sat.CumulativeConstraintProto buildPartial()
com.google.ortools.sat.ListOfVariablesProto.Builder getDummyConstraintBuilder()
.lang.Override com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntModOrBuilder()
.lang.Override com.google.ortools.sat.LinearConstraintProtoOrBuilder getLinearOrBuilder()
.lang.Override com.google.ortools.sat.IntegerArgumentProto getIntMax()
.lang.Override com.google.ortools.sat.IntegerArgumentProto getIntDiv()
Builder setIntMin(com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue)
.lang.Override boolean hasLinMax()
.operations_research.sat.LinearArgumentProto lin_max = 27;
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
Builder mergeCumulative(com.google.ortools.sat.CumulativeConstraintProto value)
static com.google.ortools.sat.CircuitConstraintProto getDefaultInstance()
Builder mergeNoOverlap(com.google.ortools.sat.NoOverlapConstraintProto value)
.lang.Override com.google.ortools.sat.AllDifferentConstraintProtoOrBuilder getAllDiffOrBuilder()
Builder mergeLinMin(com.google.ortools.sat.LinearArgumentProto value)
.operations_research.sat.LinearArgumentProto lin_min = 28;
.lang.Override boolean equals(final java.lang.Object obj)
.lang.Override Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
.lang.Override Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
.lang.Override com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolXorOrBuilder()
.lang.Override com.google.ortools.sat.ConstraintProto getDefaultInstanceForType()
.lang.Override com.google.ortools.sat.BoolArgumentProto getExactlyOne()
Builder setTable(com.google.ortools.sat.TableConstraintProto value)
static com.google.ortools.sat.ElementConstraintProto getDefaultInstance()
.lang.Override com.google.ortools.sat.NoOverlap2DConstraintProtoOrBuilder getNoOverlap2DOrBuilder()
Builder setBoolOr(com.google.ortools.sat.BoolArgumentProto value)
com.google.ortools.sat.BoolArgumentProto.Builder getBoolOrBuilder()
Builder mergeTable(com.google.ortools.sat.TableConstraintProto value)
.lang.Override com.google.ortools.sat.ConstraintProto getDefaultInstanceForType()
com.google.ortools.sat.IntegerArgumentProto.Builder getIntDivBuilder()
static com.google.ortools.sat.ConstraintProto parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override boolean equals(final java.lang.Object obj)
.lang.Override com.google.ortools.sat.BoolArgumentProto getBoolOr()
.lang.Override com.google.ortools.sat.LinearArgumentProtoOrBuilder getLinMaxOrBuilder()
.operations_research.sat.LinearArgumentProto lin_max = 27;
com.google.ortools.sat.LinearArgumentProto.Builder getLinMaxBuilder()
.operations_research.sat.LinearArgumentProto lin_max = 27;
.lang.Override com.google.ortools.sat.TableConstraintProtoOrBuilder getTableOrBuilder()
.lang.Override boolean hasDummyConstraint()
static com.google.ortools.sat.ConstraintProto getDefaultInstance()
.lang.Override com.google.ortools.sat.ElementConstraintProto getElement()
Builder mergeIntProd(com.google.ortools.sat.IntegerArgumentProto value)
.lang.Override com.google.ortools.sat.InverseConstraintProtoOrBuilder getInverseOrBuilder()
com.google.ortools.sat.NoOverlap2DConstraintProto.Builder getNoOverlap2DBuilder()
.lang.Override com.google.ortools.sat.NoOverlap2DConstraintProto getNoOverlap2D()
static com.google.ortools.sat.CumulativeConstraintProto getDefaultInstance()
.lang.Override com.google.ortools.sat.ListOfVariablesProto getDummyConstraint()
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
.lang.Override com.google.ortools.sat.AutomatonConstraintProtoOrBuilder getAutomatonOrBuilder()
.lang.Override boolean hasLinMin()
.operations_research.sat.LinearArgumentProto lin_min = 28;
.lang.Override boolean equals(final java.lang.Object obj)
.lang.Override com.google.ortools.sat.IntegerArgumentProto getIntProd()
Builder mergeIntMod(com.google.ortools.sat.IntegerArgumentProto value)
.lang.Override boolean equals(final java.lang.Object obj)
Builder setInverse(com.google.ortools.sat.InverseConstraintProto value)
Builder setNoOverlap(com.google.ortools.sat.NoOverlapConstraintProto value)
Builder setCircuit(com.google.ortools.sat.CircuitConstraintProto.Builder builderForValue)
.lang.Override com.google.ortools.sat.RoutesConstraintProtoOrBuilder getRoutesOrBuilder()
Builder setIntMax(com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue)
Builder mergeAllDiff(com.google.ortools.sat.AllDifferentConstraintProto value)
.lang.Override com.google.ortools.sat.ListOfVariablesProtoOrBuilder getDummyConstraintOrBuilder()
Builder mergeLinMax(com.google.ortools.sat.LinearArgumentProto value)
.operations_research.sat.LinearArgumentProto lin_max = 27;
Builder mergeBoolAnd(com.google.ortools.sat.BoolArgumentProto value)
.lang.Override com.google.ortools.sat.BoolArgumentProto getBoolAnd()
Builder setCumulative(com.google.ortools.sat.CumulativeConstraintProto value)
.lang.Override com.google.ortools.sat.BoolArgumentProto getBoolXor()
Builder mergeAutomaton(com.google.ortools.sat.AutomatonConstraintProto value)
Builder mergeExactlyOne(com.google.ortools.sat.BoolArgumentProto value)
Builder mergeReservoir(com.google.ortools.sat.ReservoirConstraintProto value)
Builder setInverse(com.google.ortools.sat.InverseConstraintProto.Builder builderForValue)
Builder setRoutes(com.google.ortools.sat.RoutesConstraintProto value)
com.google.ortools.sat.IntegerArgumentProto.Builder getIntProdBuilder()
.lang.Override final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
.lang.Deprecated static ConstraintCase valueOf(int value)
Builder setBoolAnd(com.google.ortools.sat.BoolArgumentProto value)
Builder addAllEnforcementLiteral(java.lang.Iterable<? extends java.lang.Integer > values)
.lang.Override com.google.ortools.sat.LinearArgumentProto getLinMax()
.operations_research.sat.LinearArgumentProto lin_max = 27;
.lang.Override com.google.ortools.sat.BoolArgumentProto getBoolXor()
static com.google.ortools.sat.ConstraintProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override boolean equals(final java.lang.Object obj)
static com.google.protobuf.Parser< LinearArgumentProto > parser()
.lang.Override com.google.ortools.sat.InverseConstraintProtoOrBuilder getInverseOrBuilder()
.lang.Override com.google.ortools.sat.BoolArgumentProto getBoolAnd()
Builder mergeBoolXor(com.google.ortools.sat.BoolArgumentProto value)
.lang.Override com.google.ortools.sat.CircuitConstraintProto getCircuit()
Builder setDummyConstraint(com.google.ortools.sat.ListOfVariablesProto value)
.lang.Override com.google.ortools.sat.IntegerArgumentProto buildPartial()
.lang.Override com.google.ortools.sat.LinearArgumentProto getLinMin()
.operations_research.sat.LinearArgumentProto lin_min = 28;
Builder setNoOverlap2D(com.google.ortools.sat.NoOverlap2DConstraintProto value)
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
.lang.Override com.google.ortools.sat.RoutesConstraintProto getRoutes()
static com.google.ortools.sat.AllDifferentConstraintProto getDefaultInstance()
.lang.Override final com.google.protobuf.UnknownFieldSet getUnknownFields()
.lang.Override com.google.ortools.sat.TableConstraintProto getTable()
.lang.Override com.google.ortools.sat.LinearArgumentProto getLinMin()
.operations_research.sat.LinearArgumentProto lin_min = 28;
.lang.Override com.google.ortools.sat.IntervalConstraintProtoOrBuilder getIntervalOrBuilder()
com.google.ortools.sat.ReservoirConstraintProto.Builder getReservoirBuilder()
.lang.Override boolean equals(final java.lang.Object obj)
Builder setElement(com.google.ortools.sat.ElementConstraintProto value)
Builder setAllDiff(com.google.ortools.sat.AllDifferentConstraintProto value)
Builder setCumulative(com.google.ortools.sat.CumulativeConstraintProto.Builder builderForValue)
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
.lang.Override com.google.ortools.sat.NoOverlap2DConstraintProto getNoOverlap2D()
.lang.Override boolean equals(final java.lang.Object obj)
Builder setReservoir(com.google.ortools.sat.ReservoirConstraintProto value)
.lang.Override com.google.ortools.sat.NoOverlapConstraintProto getNoOverlap()
.lang.Override com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
.lang.Override com.google.ortools.sat.AutomatonConstraintProto getAutomaton()
.lang.Override com.google.ortools.sat.CircuitConstraintProtoOrBuilder getCircuitOrBuilder()
Builder setRoutes(com.google.ortools.sat.RoutesConstraintProto.Builder builderForValue)
.lang.Override com.google.ortools.sat.NoOverlapConstraintProtoOrBuilder getNoOverlapOrBuilder()
com.google.protobuf.ByteString getNameBytes()
com.google.ortools.sat.NoOverlapConstraintProto.Builder getNoOverlapBuilder()
.lang.Override com.google.ortools.sat.ConstraintProto build()
.lang.Override com.google.ortools.sat.LinearArgumentProtoOrBuilder getLinMaxOrBuilder()
.operations_research.sat.LinearArgumentProto lin_max = 27;
Builder setAtMostOne(com.google.ortools.sat.BoolArgumentProto value)
static com.google.ortools.sat.ConstraintProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override com.google.ortools.sat.ListOfVariablesProto getDummyConstraint()
static com.google.ortools.sat.LinearConstraintProto getDefaultInstance()
.lang.Override com.google.ortools.sat.RoutesConstraintProto buildPartial()
.lang.Override boolean equals(final java.lang.Object obj)
.lang.Override com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolAndOrBuilder()
com.google.ortools.sat.CircuitConstraintProto.Builder getCircuitBuilder()
static com.google.ortools.sat.NoOverlapConstraintProto getDefaultInstance()
.lang.Override com.google.ortools.sat.TableConstraintProto getTable()
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
.lang.Override com.google.ortools.sat.IntervalConstraintProto getInterval()
static com.google.protobuf.Parser< InverseConstraintProto > parser()
.lang.Override com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntMinOrBuilder()
static com.google.ortools.sat.ConstraintProto parseDelimitedFrom(java.io.InputStream input)
com.google.ortools.sat.IntegerArgumentProto.Builder getIntMaxBuilder()
com.google.ortools.sat.LinearArgumentProto.Builder getLinMinBuilder()
.operations_research.sat.LinearArgumentProto lin_min = 28;
.lang.Override com.google.ortools.sat.BoolArgumentProtoOrBuilder getAtMostOneOrBuilder()
com.google.ortools.sat.BoolArgumentProto.Builder getAtMostOneBuilder()
.lang.Override Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.sat.ListOfVariablesProto getDefaultInstance()
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
Builder mergeRoutes(com.google.ortools.sat.RoutesConstraintProto value)
Builder setAutomaton(com.google.ortools.sat.AutomatonConstraintProto value)
.lang.Override boolean equals(final java.lang.Object obj)
.lang.Override com.google.ortools.sat.BoolArgumentProto getAtMostOne()
.lang.Override com.google.ortools.sat.ListOfVariablesProtoOrBuilder getDummyConstraintOrBuilder()
.lang.Override Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
.lang.Override com.google.ortools.sat.NoOverlapConstraintProtoOrBuilder getNoOverlapOrBuilder()
.lang.Override com.google.ortools.sat.CumulativeConstraintProto getCumulative()
com.google.ortools.sat.TableConstraintProto.Builder getTableBuilder()
static com.google.protobuf.Parser< AllDifferentConstraintProto > parser()
static com.google.protobuf.Parser< IntervalConstraintProto > parser()
static com.google.protobuf.Parser< ConstraintProto > parser()
.lang.Override com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntMinOrBuilder()
.lang.Override com.google.ortools.sat.CumulativeConstraintProtoOrBuilder getCumulativeOrBuilder()