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 202: {
381  if (constraintCase_ == 25) {
382  subBuilder = ((com.google.ortools.sat.CircuitCoveringConstraintProto) constraint_).toBuilder();
383  }
384  constraint_ =
385  input.readMessage(com.google.ortools.sat.CircuitCoveringConstraintProto.parser(), extensionRegistry);
386  if (subBuilder != null) {
387  subBuilder.mergeFrom((com.google.ortools.sat.CircuitCoveringConstraintProto) constraint_);
388  constraint_ = subBuilder.buildPartial();
389  }
390  constraintCase_ = 25;
391  break;
392  }
393  case 210: {
394  com.google.ortools.sat.BoolArgumentProto.Builder subBuilder = null;
395  if (constraintCase_ == 26) {
396  subBuilder = ((com.google.ortools.sat.BoolArgumentProto) constraint_).toBuilder();
397  }
398  constraint_ =
399  input.readMessage(com.google.ortools.sat.BoolArgumentProto.parser(), extensionRegistry);
400  if (subBuilder != null) {
401  subBuilder.mergeFrom((com.google.ortools.sat.BoolArgumentProto) constraint_);
402  constraint_ = subBuilder.buildPartial();
403  }
404  constraintCase_ = 26;
405  break;
406  }
407  case 218: {
408  com.google.ortools.sat.LinearArgumentProto.Builder subBuilder = null;
409  if (constraintCase_ == 27) {
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_ = 27;
419  break;
420  }
421  case 226: {
422  com.google.ortools.sat.LinearArgumentProto.Builder subBuilder = null;
423  if (constraintCase_ == 28) {
424  subBuilder = ((com.google.ortools.sat.LinearArgumentProto) constraint_).toBuilder();
425  }
426  constraint_ =
427  input.readMessage(com.google.ortools.sat.LinearArgumentProto.parser(), extensionRegistry);
428  if (subBuilder != null) {
429  subBuilder.mergeFrom((com.google.ortools.sat.LinearArgumentProto) constraint_);
430  constraint_ = subBuilder.buildPartial();
431  }
432  constraintCase_ = 28;
433  break;
434  }
435  default: {
436  if (!parseUnknownField(
437  input, unknownFields, extensionRegistry, tag)) {
438  done = true;
439  }
440  break;
441  }
442  }
443  }
444  } catch (com.google.protobuf.InvalidProtocolBufferException e) {
445  throw e.setUnfinishedMessage(this);
446  } catch (java.io.IOException e) {
447  throw new com.google.protobuf.InvalidProtocolBufferException(
448  e).setUnfinishedMessage(this);
449  } finally {
450  if (((mutable_bitField0_ & 0x00000001) != 0)) {
451  enforcementLiteral_.makeImmutable(); // C
452  }
453  this.unknownFields = unknownFields.build();
454  makeExtensionsImmutable();
455  }
456  }
457  public static final com.google.protobuf.Descriptors.Descriptor
459  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_descriptor;
460  }
461 
462  @java.lang.Override
463  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
465  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_fieldAccessorTable
466  .ensureFieldAccessorsInitialized(
468  }
469 
470  private int constraintCase_ = 0;
471  private java.lang.Object constraint_;
472  public enum ConstraintCase
473  implements com.google.protobuf.Internal.EnumLite,
474  com.google.protobuf.AbstractMessage.InternalOneOfEnum {
482  LIN_MAX(27),
483  INT_MIN(10),
484  LIN_MIN(28),
485  INT_PROD(11),
486  LINEAR(12),
487  ALL_DIFF(13),
488  ELEMENT(14),
489  CIRCUIT(15),
490  ROUTES(23),
492  TABLE(16),
494  INVERSE(18),
496  INTERVAL(19),
501  private final int value;
502  private ConstraintCase(int value) {
503  this.value = value;
504  }
510  @java.lang.Deprecated
511  public static ConstraintCase valueOf(int value) {
512  return forNumber(value);
513  }
514 
515  public static ConstraintCase forNumber(int value) {
516  switch (value) {
517  case 3: return BOOL_OR;
518  case 4: return BOOL_AND;
519  case 26: return AT_MOST_ONE;
520  case 5: return BOOL_XOR;
521  case 7: return INT_DIV;
522  case 8: return INT_MOD;
523  case 9: return INT_MAX;
524  case 27: return LIN_MAX;
525  case 10: return INT_MIN;
526  case 28: return LIN_MIN;
527  case 11: return INT_PROD;
528  case 12: return LINEAR;
529  case 13: return ALL_DIFF;
530  case 14: return ELEMENT;
531  case 15: return CIRCUIT;
532  case 23: return ROUTES;
533  case 25: return CIRCUIT_COVERING;
534  case 16: return TABLE;
535  case 17: return AUTOMATON;
536  case 18: return INVERSE;
537  case 24: return RESERVOIR;
538  case 19: return INTERVAL;
539  case 20: return NO_OVERLAP;
540  case 21: return NO_OVERLAP_2D;
541  case 22: return CUMULATIVE;
542  case 0: return CONSTRAINT_NOT_SET;
543  default: return null;
544  }
545  }
546  public int getNumber() {
547  return this.value;
548  }
549  };
550 
551  public ConstraintCase
553  return ConstraintCase.forNumber(
554  constraintCase_);
555  }
556 
557  public static final int NAME_FIELD_NUMBER = 1;
558  private volatile java.lang.Object name_;
567  public java.lang.String getName() {
568  java.lang.Object ref = name_;
569  if (ref instanceof java.lang.String) {
570  return (java.lang.String) ref;
571  } else {
572  com.google.protobuf.ByteString bs =
573  (com.google.protobuf.ByteString) ref;
574  java.lang.String s = bs.toStringUtf8();
575  name_ = s;
576  return s;
577  }
578  }
587  public com.google.protobuf.ByteString
589  java.lang.Object ref = name_;
590  if (ref instanceof java.lang.String) {
591  com.google.protobuf.ByteString b =
592  com.google.protobuf.ByteString.copyFromUtf8(
593  (java.lang.String) ref);
594  name_ = b;
595  return b;
596  } else {
597  return (com.google.protobuf.ByteString) ref;
598  }
599  }
600 
601  public static final int ENFORCEMENT_LITERAL_FIELD_NUMBER = 2;
602  private com.google.protobuf.Internal.IntList enforcementLiteral_;
622  public java.util.List<java.lang.Integer>
624  return enforcementLiteral_;
625  }
646  return enforcementLiteral_.size();
647  }
668  public int getEnforcementLiteral(int index) {
669  return enforcementLiteral_.getInt(index);
670  }
671  private int enforcementLiteralMemoizedSerializedSize = -1;
672 
673  public static final int BOOL_OR_FIELD_NUMBER = 3;
682  public boolean hasBoolOr() {
683  return constraintCase_ == 3;
684  }
694  if (constraintCase_ == 3) {
695  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
696  }
698  }
707  if (constraintCase_ == 3) {
708  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
709  }
711  }
712 
713  public static final int BOOL_AND_FIELD_NUMBER = 4;
725  public boolean hasBoolAnd() {
726  return constraintCase_ == 4;
727  }
740  if (constraintCase_ == 4) {
741  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
742  }
744  }
756  if (constraintCase_ == 4) {
757  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
758  }
760  }
761 
762  public static final int AT_MOST_ONE_FIELD_NUMBER = 26;
775  public boolean hasAtMostOne() {
776  return constraintCase_ == 26;
777  }
791  if (constraintCase_ == 26) {
792  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
793  }
795  }
808  if (constraintCase_ == 26) {
809  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
810  }
812  }
813 
814  public static final int BOOL_XOR_FIELD_NUMBER = 5;
823  public boolean hasBoolXor() {
824  return constraintCase_ == 5;
825  }
835  if (constraintCase_ == 5) {
836  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
837  }
839  }
848  if (constraintCase_ == 5) {
849  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
850  }
852  }
853 
854  public static final int INT_DIV_FIELD_NUMBER = 7;
863  public boolean hasIntDiv() {
864  return constraintCase_ == 7;
865  }
875  if (constraintCase_ == 7) {
876  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
877  }
879  }
888  if (constraintCase_ == 7) {
889  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
890  }
892  }
893 
894  public static final int INT_MOD_FIELD_NUMBER = 8;
903  public boolean hasIntMod() {
904  return constraintCase_ == 8;
905  }
915  if (constraintCase_ == 8) {
916  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
917  }
919  }
928  if (constraintCase_ == 8) {
929  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
930  }
932  }
933 
934  public static final int INT_MAX_FIELD_NUMBER = 9;
945  public boolean hasIntMax() {
946  return constraintCase_ == 9;
947  }
959  if (constraintCase_ == 9) {
960  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
961  }
963  }
974  if (constraintCase_ == 9) {
975  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
976  }
978  }
979 
980  public static final int LIN_MAX_FIELD_NUMBER = 27;
990  public boolean hasLinMax() {
991  return constraintCase_ == 27;
992  }
1003  if (constraintCase_ == 27) {
1004  return (com.google.ortools.sat.LinearArgumentProto) constraint_;
1005  }
1007  }
1017  if (constraintCase_ == 27) {
1018  return (com.google.ortools.sat.LinearArgumentProto) constraint_;
1019  }
1021  }
1022 
1023  public static final int INT_MIN_FIELD_NUMBER = 10;
1034  public boolean hasIntMin() {
1035  return constraintCase_ == 10;
1036  }
1048  if (constraintCase_ == 10) {
1049  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
1050  }
1052  }
1063  if (constraintCase_ == 10) {
1064  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
1065  }
1067  }
1068 
1069  public static final int LIN_MIN_FIELD_NUMBER = 28;
1079  public boolean hasLinMin() {
1080  return constraintCase_ == 28;
1081  }
1092  if (constraintCase_ == 28) {
1093  return (com.google.ortools.sat.LinearArgumentProto) constraint_;
1094  }
1096  }
1106  if (constraintCase_ == 28) {
1107  return (com.google.ortools.sat.LinearArgumentProto) constraint_;
1108  }
1110  }
1111 
1112  public static final int INT_PROD_FIELD_NUMBER = 11;
1122  public boolean hasIntProd() {
1123  return constraintCase_ == 11;
1124  }
1135  if (constraintCase_ == 11) {
1136  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
1137  }
1139  }
1149  if (constraintCase_ == 11) {
1150  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
1151  }
1153  }
1154 
1155  public static final int LINEAR_FIELD_NUMBER = 12;
1165  public boolean hasLinear() {
1166  return constraintCase_ == 12;
1167  }
1178  if (constraintCase_ == 12) {
1179  return (com.google.ortools.sat.LinearConstraintProto) constraint_;
1180  }
1182  }
1192  if (constraintCase_ == 12) {
1193  return (com.google.ortools.sat.LinearConstraintProto) constraint_;
1194  }
1196  }
1197 
1198  public static final int ALL_DIFF_FIELD_NUMBER = 13;
1207  public boolean hasAllDiff() {
1208  return constraintCase_ == 13;
1209  }
1219  if (constraintCase_ == 13) {
1220  return (com.google.ortools.sat.AllDifferentConstraintProto) constraint_;
1221  }
1223  }
1232  if (constraintCase_ == 13) {
1233  return (com.google.ortools.sat.AllDifferentConstraintProto) constraint_;
1234  }
1236  }
1237 
1238  public static final int ELEMENT_FIELD_NUMBER = 14;
1248  public boolean hasElement() {
1249  return constraintCase_ == 14;
1250  }
1261  if (constraintCase_ == 14) {
1262  return (com.google.ortools.sat.ElementConstraintProto) constraint_;
1263  }
1265  }
1275  if (constraintCase_ == 14) {
1276  return (com.google.ortools.sat.ElementConstraintProto) constraint_;
1277  }
1279  }
1280 
1281  public static final int CIRCUIT_FIELD_NUMBER = 15;
1291  public boolean hasCircuit() {
1292  return constraintCase_ == 15;
1293  }
1304  if (constraintCase_ == 15) {
1305  return (com.google.ortools.sat.CircuitConstraintProto) constraint_;
1306  }
1308  }
1318  if (constraintCase_ == 15) {
1319  return (com.google.ortools.sat.CircuitConstraintProto) constraint_;
1320  }
1322  }
1323 
1324  public static final int ROUTES_FIELD_NUMBER = 23;
1333  public boolean hasRoutes() {
1334  return constraintCase_ == 23;
1335  }
1345  if (constraintCase_ == 23) {
1346  return (com.google.ortools.sat.RoutesConstraintProto) constraint_;
1347  }
1349  }
1358  if (constraintCase_ == 23) {
1359  return (com.google.ortools.sat.RoutesConstraintProto) constraint_;
1360  }
1362  }
1363 
1364  public static final int CIRCUIT_COVERING_FIELD_NUMBER = 25;
1374  public boolean hasCircuitCovering() {
1375  return constraintCase_ == 25;
1376  }
1387  if (constraintCase_ == 25) {
1388  return (com.google.ortools.sat.CircuitCoveringConstraintProto) constraint_;
1389  }
1391  }
1401  if (constraintCase_ == 25) {
1402  return (com.google.ortools.sat.CircuitCoveringConstraintProto) constraint_;
1403  }
1405  }
1406 
1407  public static final int TABLE_FIELD_NUMBER = 16;
1417  public boolean hasTable() {
1418  return constraintCase_ == 16;
1419  }
1430  if (constraintCase_ == 16) {
1431  return (com.google.ortools.sat.TableConstraintProto) constraint_;
1432  }
1434  }
1444  if (constraintCase_ == 16) {
1445  return (com.google.ortools.sat.TableConstraintProto) constraint_;
1446  }
1448  }
1449 
1450  public static final int AUTOMATON_FIELD_NUMBER = 17;
1460  public boolean hasAutomaton() {
1461  return constraintCase_ == 17;
1462  }
1473  if (constraintCase_ == 17) {
1474  return (com.google.ortools.sat.AutomatonConstraintProto) constraint_;
1475  }
1477  }
1487  if (constraintCase_ == 17) {
1488  return (com.google.ortools.sat.AutomatonConstraintProto) constraint_;
1489  }
1491  }
1492 
1493  public static final int INVERSE_FIELD_NUMBER = 18;
1503  public boolean hasInverse() {
1504  return constraintCase_ == 18;
1505  }
1516  if (constraintCase_ == 18) {
1517  return (com.google.ortools.sat.InverseConstraintProto) constraint_;
1518  }
1520  }
1530  if (constraintCase_ == 18) {
1531  return (com.google.ortools.sat.InverseConstraintProto) constraint_;
1532  }
1534  }
1535 
1536  public static final int RESERVOIR_FIELD_NUMBER = 24;
1547  public boolean hasReservoir() {
1548  return constraintCase_ == 24;
1549  }
1561  if (constraintCase_ == 24) {
1562  return (com.google.ortools.sat.ReservoirConstraintProto) constraint_;
1563  }
1565  }
1576  if (constraintCase_ == 24) {
1577  return (com.google.ortools.sat.ReservoirConstraintProto) constraint_;
1578  }
1580  }
1581 
1582  public static final int INTERVAL_FIELD_NUMBER = 19;
1592  public boolean hasInterval() {
1593  return constraintCase_ == 19;
1594  }
1605  if (constraintCase_ == 19) {
1606  return (com.google.ortools.sat.IntervalConstraintProto) constraint_;
1607  }
1609  }
1619  if (constraintCase_ == 19) {
1620  return (com.google.ortools.sat.IntervalConstraintProto) constraint_;
1621  }
1623  }
1624 
1625  public static final int NO_OVERLAP_FIELD_NUMBER = 20;
1636  public boolean hasNoOverlap() {
1637  return constraintCase_ == 20;
1638  }
1650  if (constraintCase_ == 20) {
1651  return (com.google.ortools.sat.NoOverlapConstraintProto) constraint_;
1652  }
1654  }
1665  if (constraintCase_ == 20) {
1666  return (com.google.ortools.sat.NoOverlapConstraintProto) constraint_;
1667  }
1669  }
1670 
1671  public static final int NO_OVERLAP_2D_FIELD_NUMBER = 21;
1680  public boolean hasNoOverlap2D() {
1681  return constraintCase_ == 21;
1682  }
1692  if (constraintCase_ == 21) {
1693  return (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_;
1694  }
1696  }
1705  if (constraintCase_ == 21) {
1706  return (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_;
1707  }
1709  }
1710 
1711  public static final int CUMULATIVE_FIELD_NUMBER = 22;
1722  public boolean hasCumulative() {
1723  return constraintCase_ == 22;
1724  }
1736  if (constraintCase_ == 22) {
1737  return (com.google.ortools.sat.CumulativeConstraintProto) constraint_;
1738  }
1740  }
1751  if (constraintCase_ == 22) {
1752  return (com.google.ortools.sat.CumulativeConstraintProto) constraint_;
1753  }
1755  }
1756 
1757  private byte memoizedIsInitialized = -1;
1758  @java.lang.Override
1759  public final boolean isInitialized() {
1760  byte isInitialized = memoizedIsInitialized;
1761  if (isInitialized == 1) return true;
1762  if (isInitialized == 0) return false;
1763 
1764  memoizedIsInitialized = 1;
1765  return true;
1766  }
1767 
1768  @java.lang.Override
1769  public void writeTo(com.google.protobuf.CodedOutputStream output)
1770  throws java.io.IOException {
1772  if (!getNameBytes().isEmpty()) {
1773  com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
1774  }
1775  if (getEnforcementLiteralList().size() > 0) {
1776  output.writeUInt32NoTag(18);
1777  output.writeUInt32NoTag(enforcementLiteralMemoizedSerializedSize);
1778  }
1779  for (int i = 0; i < enforcementLiteral_.size(); i++) {
1780  output.writeInt32NoTag(enforcementLiteral_.getInt(i));
1781  }
1782  if (constraintCase_ == 3) {
1783  output.writeMessage(3, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1784  }
1785  if (constraintCase_ == 4) {
1786  output.writeMessage(4, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1787  }
1788  if (constraintCase_ == 5) {
1789  output.writeMessage(5, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1790  }
1791  if (constraintCase_ == 7) {
1792  output.writeMessage(7, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1793  }
1794  if (constraintCase_ == 8) {
1795  output.writeMessage(8, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1796  }
1797  if (constraintCase_ == 9) {
1798  output.writeMessage(9, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1799  }
1800  if (constraintCase_ == 10) {
1801  output.writeMessage(10, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1802  }
1803  if (constraintCase_ == 11) {
1804  output.writeMessage(11, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1805  }
1806  if (constraintCase_ == 12) {
1807  output.writeMessage(12, (com.google.ortools.sat.LinearConstraintProto) constraint_);
1808  }
1809  if (constraintCase_ == 13) {
1810  output.writeMessage(13, (com.google.ortools.sat.AllDifferentConstraintProto) constraint_);
1811  }
1812  if (constraintCase_ == 14) {
1813  output.writeMessage(14, (com.google.ortools.sat.ElementConstraintProto) constraint_);
1814  }
1815  if (constraintCase_ == 15) {
1816  output.writeMessage(15, (com.google.ortools.sat.CircuitConstraintProto) constraint_);
1817  }
1818  if (constraintCase_ == 16) {
1819  output.writeMessage(16, (com.google.ortools.sat.TableConstraintProto) constraint_);
1820  }
1821  if (constraintCase_ == 17) {
1822  output.writeMessage(17, (com.google.ortools.sat.AutomatonConstraintProto) constraint_);
1823  }
1824  if (constraintCase_ == 18) {
1825  output.writeMessage(18, (com.google.ortools.sat.InverseConstraintProto) constraint_);
1826  }
1827  if (constraintCase_ == 19) {
1828  output.writeMessage(19, (com.google.ortools.sat.IntervalConstraintProto) constraint_);
1829  }
1830  if (constraintCase_ == 20) {
1831  output.writeMessage(20, (com.google.ortools.sat.NoOverlapConstraintProto) constraint_);
1832  }
1833  if (constraintCase_ == 21) {
1834  output.writeMessage(21, (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_);
1835  }
1836  if (constraintCase_ == 22) {
1837  output.writeMessage(22, (com.google.ortools.sat.CumulativeConstraintProto) constraint_);
1838  }
1839  if (constraintCase_ == 23) {
1840  output.writeMessage(23, (com.google.ortools.sat.RoutesConstraintProto) constraint_);
1841  }
1842  if (constraintCase_ == 24) {
1843  output.writeMessage(24, (com.google.ortools.sat.ReservoirConstraintProto) constraint_);
1844  }
1845  if (constraintCase_ == 25) {
1846  output.writeMessage(25, (com.google.ortools.sat.CircuitCoveringConstraintProto) constraint_);
1847  }
1848  if (constraintCase_ == 26) {
1849  output.writeMessage(26, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1850  }
1851  if (constraintCase_ == 27) {
1852  output.writeMessage(27, (com.google.ortools.sat.LinearArgumentProto) constraint_);
1853  }
1854  if (constraintCase_ == 28) {
1855  output.writeMessage(28, (com.google.ortools.sat.LinearArgumentProto) constraint_);
1856  }
1857  unknownFields.writeTo(output);
1858  }
1859 
1860  @java.lang.Override
1861  public int getSerializedSize() {
1862  int size = memoizedSize;
1863  if (size != -1) return size;
1864 
1865  size = 0;
1866  if (!getNameBytes().isEmpty()) {
1867  size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
1868  }
1869  {
1870  int dataSize = 0;
1871  for (int i = 0; i < enforcementLiteral_.size(); i++) {
1872  dataSize += com.google.protobuf.CodedOutputStream
1873  .computeInt32SizeNoTag(enforcementLiteral_.getInt(i));
1874  }
1875  size += dataSize;
1876  if (!getEnforcementLiteralList().isEmpty()) {
1877  size += 1;
1878  size += com.google.protobuf.CodedOutputStream
1879  .computeInt32SizeNoTag(dataSize);
1880  }
1881  enforcementLiteralMemoizedSerializedSize = dataSize;
1882  }
1883  if (constraintCase_ == 3) {
1884  size += com.google.protobuf.CodedOutputStream
1885  .computeMessageSize(3, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1886  }
1887  if (constraintCase_ == 4) {
1888  size += com.google.protobuf.CodedOutputStream
1889  .computeMessageSize(4, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1890  }
1891  if (constraintCase_ == 5) {
1892  size += com.google.protobuf.CodedOutputStream
1893  .computeMessageSize(5, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1894  }
1895  if (constraintCase_ == 7) {
1896  size += com.google.protobuf.CodedOutputStream
1897  .computeMessageSize(7, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1898  }
1899  if (constraintCase_ == 8) {
1900  size += com.google.protobuf.CodedOutputStream
1901  .computeMessageSize(8, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1902  }
1903  if (constraintCase_ == 9) {
1904  size += com.google.protobuf.CodedOutputStream
1905  .computeMessageSize(9, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1906  }
1907  if (constraintCase_ == 10) {
1908  size += com.google.protobuf.CodedOutputStream
1909  .computeMessageSize(10, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1910  }
1911  if (constraintCase_ == 11) {
1912  size += com.google.protobuf.CodedOutputStream
1913  .computeMessageSize(11, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1914  }
1915  if (constraintCase_ == 12) {
1916  size += com.google.protobuf.CodedOutputStream
1917  .computeMessageSize(12, (com.google.ortools.sat.LinearConstraintProto) constraint_);
1918  }
1919  if (constraintCase_ == 13) {
1920  size += com.google.protobuf.CodedOutputStream
1921  .computeMessageSize(13, (com.google.ortools.sat.AllDifferentConstraintProto) constraint_);
1922  }
1923  if (constraintCase_ == 14) {
1924  size += com.google.protobuf.CodedOutputStream
1925  .computeMessageSize(14, (com.google.ortools.sat.ElementConstraintProto) constraint_);
1926  }
1927  if (constraintCase_ == 15) {
1928  size += com.google.protobuf.CodedOutputStream
1929  .computeMessageSize(15, (com.google.ortools.sat.CircuitConstraintProto) constraint_);
1930  }
1931  if (constraintCase_ == 16) {
1932  size += com.google.protobuf.CodedOutputStream
1933  .computeMessageSize(16, (com.google.ortools.sat.TableConstraintProto) constraint_);
1934  }
1935  if (constraintCase_ == 17) {
1936  size += com.google.protobuf.CodedOutputStream
1937  .computeMessageSize(17, (com.google.ortools.sat.AutomatonConstraintProto) constraint_);
1938  }
1939  if (constraintCase_ == 18) {
1940  size += com.google.protobuf.CodedOutputStream
1941  .computeMessageSize(18, (com.google.ortools.sat.InverseConstraintProto) constraint_);
1942  }
1943  if (constraintCase_ == 19) {
1944  size += com.google.protobuf.CodedOutputStream
1945  .computeMessageSize(19, (com.google.ortools.sat.IntervalConstraintProto) constraint_);
1946  }
1947  if (constraintCase_ == 20) {
1948  size += com.google.protobuf.CodedOutputStream
1949  .computeMessageSize(20, (com.google.ortools.sat.NoOverlapConstraintProto) constraint_);
1950  }
1951  if (constraintCase_ == 21) {
1952  size += com.google.protobuf.CodedOutputStream
1953  .computeMessageSize(21, (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_);
1954  }
1955  if (constraintCase_ == 22) {
1956  size += com.google.protobuf.CodedOutputStream
1957  .computeMessageSize(22, (com.google.ortools.sat.CumulativeConstraintProto) constraint_);
1958  }
1959  if (constraintCase_ == 23) {
1960  size += com.google.protobuf.CodedOutputStream
1961  .computeMessageSize(23, (com.google.ortools.sat.RoutesConstraintProto) constraint_);
1962  }
1963  if (constraintCase_ == 24) {
1964  size += com.google.protobuf.CodedOutputStream
1965  .computeMessageSize(24, (com.google.ortools.sat.ReservoirConstraintProto) constraint_);
1966  }
1967  if (constraintCase_ == 25) {
1968  size += com.google.protobuf.CodedOutputStream
1969  .computeMessageSize(25, (com.google.ortools.sat.CircuitCoveringConstraintProto) constraint_);
1970  }
1971  if (constraintCase_ == 26) {
1972  size += com.google.protobuf.CodedOutputStream
1973  .computeMessageSize(26, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1974  }
1975  if (constraintCase_ == 27) {
1976  size += com.google.protobuf.CodedOutputStream
1977  .computeMessageSize(27, (com.google.ortools.sat.LinearArgumentProto) constraint_);
1978  }
1979  if (constraintCase_ == 28) {
1980  size += com.google.protobuf.CodedOutputStream
1981  .computeMessageSize(28, (com.google.ortools.sat.LinearArgumentProto) constraint_);
1982  }
1983  size += unknownFields.getSerializedSize();
1984  memoizedSize = size;
1985  return size;
1986  }
1987 
1988  @java.lang.Override
1989  public boolean equals(final java.lang.Object obj) {
1990  if (obj == this) {
1991  return true;
1992  }
1993  if (!(obj instanceof com.google.ortools.sat.ConstraintProto)) {
1994  return super.equals(obj);
1995  }
1997 
1998  if (!getName()
1999  .equals(other.getName())) return false;
2001  .equals(other.getEnforcementLiteralList())) return false;
2002  if (!getConstraintCase().equals(other.getConstraintCase())) return false;
2003  switch (constraintCase_) {
2004  case 3:
2005  if (!getBoolOr()
2006  .equals(other.getBoolOr())) return false;
2007  break;
2008  case 4:
2009  if (!getBoolAnd()
2010  .equals(other.getBoolAnd())) return false;
2011  break;
2012  case 26:
2013  if (!getAtMostOne()
2014  .equals(other.getAtMostOne())) return false;
2015  break;
2016  case 5:
2017  if (!getBoolXor()
2018  .equals(other.getBoolXor())) return false;
2019  break;
2020  case 7:
2021  if (!getIntDiv()
2022  .equals(other.getIntDiv())) return false;
2023  break;
2024  case 8:
2025  if (!getIntMod()
2026  .equals(other.getIntMod())) return false;
2027  break;
2028  case 9:
2029  if (!getIntMax()
2030  .equals(other.getIntMax())) return false;
2031  break;
2032  case 27:
2033  if (!getLinMax()
2034  .equals(other.getLinMax())) return false;
2035  break;
2036  case 10:
2037  if (!getIntMin()
2038  .equals(other.getIntMin())) return false;
2039  break;
2040  case 28:
2041  if (!getLinMin()
2042  .equals(other.getLinMin())) return false;
2043  break;
2044  case 11:
2045  if (!getIntProd()
2046  .equals(other.getIntProd())) return false;
2047  break;
2048  case 12:
2049  if (!getLinear()
2050  .equals(other.getLinear())) return false;
2051  break;
2052  case 13:
2053  if (!getAllDiff()
2054  .equals(other.getAllDiff())) return false;
2055  break;
2056  case 14:
2057  if (!getElement()
2058  .equals(other.getElement())) return false;
2059  break;
2060  case 15:
2061  if (!getCircuit()
2062  .equals(other.getCircuit())) return false;
2063  break;
2064  case 23:
2065  if (!getRoutes()
2066  .equals(other.getRoutes())) return false;
2067  break;
2068  case 25:
2069  if (!getCircuitCovering()
2070  .equals(other.getCircuitCovering())) return false;
2071  break;
2072  case 16:
2073  if (!getTable()
2074  .equals(other.getTable())) return false;
2075  break;
2076  case 17:
2077  if (!getAutomaton()
2078  .equals(other.getAutomaton())) return false;
2079  break;
2080  case 18:
2081  if (!getInverse()
2082  .equals(other.getInverse())) return false;
2083  break;
2084  case 24:
2085  if (!getReservoir()
2086  .equals(other.getReservoir())) return false;
2087  break;
2088  case 19:
2089  if (!getInterval()
2090  .equals(other.getInterval())) return false;
2091  break;
2092  case 20:
2093  if (!getNoOverlap()
2094  .equals(other.getNoOverlap())) return false;
2095  break;
2096  case 21:
2097  if (!getNoOverlap2D()
2098  .equals(other.getNoOverlap2D())) return false;
2099  break;
2100  case 22:
2101  if (!getCumulative()
2102  .equals(other.getCumulative())) return false;
2103  break;
2104  case 0:
2105  default:
2106  }
2107  if (!unknownFields.equals(other.unknownFields)) return false;
2108  return true;
2109  }
2110 
2111  @java.lang.Override
2112  public int hashCode() {
2113  if (memoizedHashCode != 0) {
2114  return memoizedHashCode;
2115  }
2116  int hash = 41;
2117  hash = (19 * hash) + getDescriptor().hashCode();
2118  hash = (37 * hash) + NAME_FIELD_NUMBER;
2119  hash = (53 * hash) + getName().hashCode();
2120  if (getEnforcementLiteralCount() > 0) {
2121  hash = (37 * hash) + ENFORCEMENT_LITERAL_FIELD_NUMBER;
2122  hash = (53 * hash) + getEnforcementLiteralList().hashCode();
2123  }
2124  switch (constraintCase_) {
2125  case 3:
2126  hash = (37 * hash) + BOOL_OR_FIELD_NUMBER;
2127  hash = (53 * hash) + getBoolOr().hashCode();
2128  break;
2129  case 4:
2130  hash = (37 * hash) + BOOL_AND_FIELD_NUMBER;
2131  hash = (53 * hash) + getBoolAnd().hashCode();
2132  break;
2133  case 26:
2134  hash = (37 * hash) + AT_MOST_ONE_FIELD_NUMBER;
2135  hash = (53 * hash) + getAtMostOne().hashCode();
2136  break;
2137  case 5:
2138  hash = (37 * hash) + BOOL_XOR_FIELD_NUMBER;
2139  hash = (53 * hash) + getBoolXor().hashCode();
2140  break;
2141  case 7:
2142  hash = (37 * hash) + INT_DIV_FIELD_NUMBER;
2143  hash = (53 * hash) + getIntDiv().hashCode();
2144  break;
2145  case 8:
2146  hash = (37 * hash) + INT_MOD_FIELD_NUMBER;
2147  hash = (53 * hash) + getIntMod().hashCode();
2148  break;
2149  case 9:
2150  hash = (37 * hash) + INT_MAX_FIELD_NUMBER;
2151  hash = (53 * hash) + getIntMax().hashCode();
2152  break;
2153  case 27:
2154  hash = (37 * hash) + LIN_MAX_FIELD_NUMBER;
2155  hash = (53 * hash) + getLinMax().hashCode();
2156  break;
2157  case 10:
2158  hash = (37 * hash) + INT_MIN_FIELD_NUMBER;
2159  hash = (53 * hash) + getIntMin().hashCode();
2160  break;
2161  case 28:
2162  hash = (37 * hash) + LIN_MIN_FIELD_NUMBER;
2163  hash = (53 * hash) + getLinMin().hashCode();
2164  break;
2165  case 11:
2166  hash = (37 * hash) + INT_PROD_FIELD_NUMBER;
2167  hash = (53 * hash) + getIntProd().hashCode();
2168  break;
2169  case 12:
2170  hash = (37 * hash) + LINEAR_FIELD_NUMBER;
2171  hash = (53 * hash) + getLinear().hashCode();
2172  break;
2173  case 13:
2174  hash = (37 * hash) + ALL_DIFF_FIELD_NUMBER;
2175  hash = (53 * hash) + getAllDiff().hashCode();
2176  break;
2177  case 14:
2178  hash = (37 * hash) + ELEMENT_FIELD_NUMBER;
2179  hash = (53 * hash) + getElement().hashCode();
2180  break;
2181  case 15:
2182  hash = (37 * hash) + CIRCUIT_FIELD_NUMBER;
2183  hash = (53 * hash) + getCircuit().hashCode();
2184  break;
2185  case 23:
2186  hash = (37 * hash) + ROUTES_FIELD_NUMBER;
2187  hash = (53 * hash) + getRoutes().hashCode();
2188  break;
2189  case 25:
2190  hash = (37 * hash) + CIRCUIT_COVERING_FIELD_NUMBER;
2191  hash = (53 * hash) + getCircuitCovering().hashCode();
2192  break;
2193  case 16:
2194  hash = (37 * hash) + TABLE_FIELD_NUMBER;
2195  hash = (53 * hash) + getTable().hashCode();
2196  break;
2197  case 17:
2198  hash = (37 * hash) + AUTOMATON_FIELD_NUMBER;
2199  hash = (53 * hash) + getAutomaton().hashCode();
2200  break;
2201  case 18:
2202  hash = (37 * hash) + INVERSE_FIELD_NUMBER;
2203  hash = (53 * hash) + getInverse().hashCode();
2204  break;
2205  case 24:
2206  hash = (37 * hash) + RESERVOIR_FIELD_NUMBER;
2207  hash = (53 * hash) + getReservoir().hashCode();
2208  break;
2209  case 19:
2210  hash = (37 * hash) + INTERVAL_FIELD_NUMBER;
2211  hash = (53 * hash) + getInterval().hashCode();
2212  break;
2213  case 20:
2214  hash = (37 * hash) + NO_OVERLAP_FIELD_NUMBER;
2215  hash = (53 * hash) + getNoOverlap().hashCode();
2216  break;
2217  case 21:
2218  hash = (37 * hash) + NO_OVERLAP_2D_FIELD_NUMBER;
2219  hash = (53 * hash) + getNoOverlap2D().hashCode();
2220  break;
2221  case 22:
2222  hash = (37 * hash) + CUMULATIVE_FIELD_NUMBER;
2223  hash = (53 * hash) + getCumulative().hashCode();
2224  break;
2225  case 0:
2226  default:
2227  }
2228  hash = (29 * hash) + unknownFields.hashCode();
2229  memoizedHashCode = hash;
2230  return hash;
2231  }
2232 
2234  java.nio.ByteBuffer data)
2235  throws com.google.protobuf.InvalidProtocolBufferException {
2236  return PARSER.parseFrom(data);
2237  }
2239  java.nio.ByteBuffer data,
2240  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2241  throws com.google.protobuf.InvalidProtocolBufferException {
2242  return PARSER.parseFrom(data, extensionRegistry);
2243  }
2245  com.google.protobuf.ByteString data)
2246  throws com.google.protobuf.InvalidProtocolBufferException {
2247  return PARSER.parseFrom(data);
2248  }
2250  com.google.protobuf.ByteString data,
2251  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2252  throws com.google.protobuf.InvalidProtocolBufferException {
2253  return PARSER.parseFrom(data, extensionRegistry);
2254  }
2255  public static com.google.ortools.sat.ConstraintProto parseFrom(byte[] data)
2256  throws com.google.protobuf.InvalidProtocolBufferException {
2257  return PARSER.parseFrom(data);
2258  }
2260  byte[] data,
2261  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2262  throws com.google.protobuf.InvalidProtocolBufferException {
2263  return PARSER.parseFrom(data, extensionRegistry);
2264  }
2265  public static com.google.ortools.sat.ConstraintProto parseFrom(java.io.InputStream input)
2266  throws java.io.IOException {
2267  return com.google.protobuf.GeneratedMessageV3
2268  .parseWithIOException(PARSER, input);
2269  }
2271  java.io.InputStream input,
2272  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2273  throws java.io.IOException {
2274  return com.google.protobuf.GeneratedMessageV3
2275  .parseWithIOException(PARSER, input, extensionRegistry);
2276  }
2277  public static com.google.ortools.sat.ConstraintProto parseDelimitedFrom(java.io.InputStream input)
2278  throws java.io.IOException {
2279  return com.google.protobuf.GeneratedMessageV3
2280  .parseDelimitedWithIOException(PARSER, input);
2281  }
2283  java.io.InputStream input,
2284  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2285  throws java.io.IOException {
2286  return com.google.protobuf.GeneratedMessageV3
2287  .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
2288  }
2290  com.google.protobuf.CodedInputStream input)
2291  throws java.io.IOException {
2292  return com.google.protobuf.GeneratedMessageV3
2293  .parseWithIOException(PARSER, input);
2294  }
2296  com.google.protobuf.CodedInputStream input,
2297  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2298  throws java.io.IOException {
2299  return com.google.protobuf.GeneratedMessageV3
2300  .parseWithIOException(PARSER, input, extensionRegistry);
2301  }
2302 
2303  @java.lang.Override
2304  public Builder newBuilderForType() { return newBuilder(); }
2305  public static Builder newBuilder() {
2306  return DEFAULT_INSTANCE.toBuilder();
2307  }
2309  return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
2310  }
2311  @java.lang.Override
2312  public Builder toBuilder() {
2313  return this == DEFAULT_INSTANCE
2314  ? new Builder() : new Builder().mergeFrom(this);
2315  }
2316 
2317  @java.lang.Override
2319  com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
2320  Builder builder = new Builder(parent);
2321  return builder;
2322  }
2330  public static final class Builder extends
2331  com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
2332  // @@protoc_insertion_point(builder_implements:operations_research.sat.ConstraintProto)
2333  com.google.ortools.sat.ConstraintProtoOrBuilder {
2334  public static final com.google.protobuf.Descriptors.Descriptor
2336  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_descriptor;
2337  }
2338 
2339  @java.lang.Override
2340  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
2342  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_fieldAccessorTable
2343  .ensureFieldAccessorsInitialized(
2345  }
2346 
2347  // Construct using com.google.ortools.sat.ConstraintProto.newBuilder()
2348  private Builder() {
2349  maybeForceBuilderInitialization();
2350  }
2351 
2352  private Builder(
2353  com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
2354  super(parent);
2355  maybeForceBuilderInitialization();
2356  }
2357  private void maybeForceBuilderInitialization() {
2358  if (com.google.protobuf.GeneratedMessageV3
2359  .alwaysUseFieldBuilders) {
2360  }
2361  }
2362  @java.lang.Override
2363  public Builder clear() {
2364  super.clear();
2365  name_ = "";
2366 
2367  enforcementLiteral_ = emptyIntList();
2368  bitField0_ = (bitField0_ & ~0x00000001);
2369  constraintCase_ = 0;
2370  constraint_ = null;
2371  return this;
2372  }
2373 
2374  @java.lang.Override
2375  public com.google.protobuf.Descriptors.Descriptor
2377  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_descriptor;
2378  }
2379 
2380  @java.lang.Override
2383  }
2384 
2385  @java.lang.Override
2388  if (!result.isInitialized()) {
2389  throw newUninitializedMessageException(result);
2390  }
2391  return result;
2392  }
2393 
2394  @java.lang.Override
2397  int from_bitField0_ = bitField0_;
2398  result.name_ = name_;
2399  if (((bitField0_ & 0x00000001) != 0)) {
2400  enforcementLiteral_.makeImmutable();
2401  bitField0_ = (bitField0_ & ~0x00000001);
2402  }
2403  result.enforcementLiteral_ = enforcementLiteral_;
2404  if (constraintCase_ == 3) {
2405  if (boolOrBuilder_ == null) {
2406  result.constraint_ = constraint_;
2407  } else {
2408  result.constraint_ = boolOrBuilder_.build();
2409  }
2410  }
2411  if (constraintCase_ == 4) {
2412  if (boolAndBuilder_ == null) {
2413  result.constraint_ = constraint_;
2414  } else {
2415  result.constraint_ = boolAndBuilder_.build();
2416  }
2417  }
2418  if (constraintCase_ == 26) {
2419  if (atMostOneBuilder_ == null) {
2420  result.constraint_ = constraint_;
2421  } else {
2422  result.constraint_ = atMostOneBuilder_.build();
2423  }
2424  }
2425  if (constraintCase_ == 5) {
2426  if (boolXorBuilder_ == null) {
2427  result.constraint_ = constraint_;
2428  } else {
2429  result.constraint_ = boolXorBuilder_.build();
2430  }
2431  }
2432  if (constraintCase_ == 7) {
2433  if (intDivBuilder_ == null) {
2434  result.constraint_ = constraint_;
2435  } else {
2436  result.constraint_ = intDivBuilder_.build();
2437  }
2438  }
2439  if (constraintCase_ == 8) {
2440  if (intModBuilder_ == null) {
2441  result.constraint_ = constraint_;
2442  } else {
2443  result.constraint_ = intModBuilder_.build();
2444  }
2445  }
2446  if (constraintCase_ == 9) {
2447  if (intMaxBuilder_ == null) {
2448  result.constraint_ = constraint_;
2449  } else {
2450  result.constraint_ = intMaxBuilder_.build();
2451  }
2452  }
2453  if (constraintCase_ == 27) {
2454  if (linMaxBuilder_ == null) {
2455  result.constraint_ = constraint_;
2456  } else {
2457  result.constraint_ = linMaxBuilder_.build();
2458  }
2459  }
2460  if (constraintCase_ == 10) {
2461  if (intMinBuilder_ == null) {
2462  result.constraint_ = constraint_;
2463  } else {
2464  result.constraint_ = intMinBuilder_.build();
2465  }
2466  }
2467  if (constraintCase_ == 28) {
2468  if (linMinBuilder_ == null) {
2469  result.constraint_ = constraint_;
2470  } else {
2471  result.constraint_ = linMinBuilder_.build();
2472  }
2473  }
2474  if (constraintCase_ == 11) {
2475  if (intProdBuilder_ == null) {
2476  result.constraint_ = constraint_;
2477  } else {
2478  result.constraint_ = intProdBuilder_.build();
2479  }
2480  }
2481  if (constraintCase_ == 12) {
2482  if (linearBuilder_ == null) {
2483  result.constraint_ = constraint_;
2484  } else {
2485  result.constraint_ = linearBuilder_.build();
2486  }
2487  }
2488  if (constraintCase_ == 13) {
2489  if (allDiffBuilder_ == null) {
2490  result.constraint_ = constraint_;
2491  } else {
2492  result.constraint_ = allDiffBuilder_.build();
2493  }
2494  }
2495  if (constraintCase_ == 14) {
2496  if (elementBuilder_ == null) {
2497  result.constraint_ = constraint_;
2498  } else {
2499  result.constraint_ = elementBuilder_.build();
2500  }
2501  }
2502  if (constraintCase_ == 15) {
2503  if (circuitBuilder_ == null) {
2504  result.constraint_ = constraint_;
2505  } else {
2506  result.constraint_ = circuitBuilder_.build();
2507  }
2508  }
2509  if (constraintCase_ == 23) {
2510  if (routesBuilder_ == null) {
2511  result.constraint_ = constraint_;
2512  } else {
2513  result.constraint_ = routesBuilder_.build();
2514  }
2515  }
2516  if (constraintCase_ == 25) {
2517  if (circuitCoveringBuilder_ == null) {
2518  result.constraint_ = constraint_;
2519  } else {
2520  result.constraint_ = circuitCoveringBuilder_.build();
2521  }
2522  }
2523  if (constraintCase_ == 16) {
2524  if (tableBuilder_ == null) {
2525  result.constraint_ = constraint_;
2526  } else {
2527  result.constraint_ = tableBuilder_.build();
2528  }
2529  }
2530  if (constraintCase_ == 17) {
2531  if (automatonBuilder_ == null) {
2532  result.constraint_ = constraint_;
2533  } else {
2534  result.constraint_ = automatonBuilder_.build();
2535  }
2536  }
2537  if (constraintCase_ == 18) {
2538  if (inverseBuilder_ == null) {
2539  result.constraint_ = constraint_;
2540  } else {
2541  result.constraint_ = inverseBuilder_.build();
2542  }
2543  }
2544  if (constraintCase_ == 24) {
2545  if (reservoirBuilder_ == null) {
2546  result.constraint_ = constraint_;
2547  } else {
2548  result.constraint_ = reservoirBuilder_.build();
2549  }
2550  }
2551  if (constraintCase_ == 19) {
2552  if (intervalBuilder_ == null) {
2553  result.constraint_ = constraint_;
2554  } else {
2555  result.constraint_ = intervalBuilder_.build();
2556  }
2557  }
2558  if (constraintCase_ == 20) {
2559  if (noOverlapBuilder_ == null) {
2560  result.constraint_ = constraint_;
2561  } else {
2562  result.constraint_ = noOverlapBuilder_.build();
2563  }
2564  }
2565  if (constraintCase_ == 21) {
2566  if (noOverlap2DBuilder_ == null) {
2567  result.constraint_ = constraint_;
2568  } else {
2569  result.constraint_ = noOverlap2DBuilder_.build();
2570  }
2571  }
2572  if (constraintCase_ == 22) {
2573  if (cumulativeBuilder_ == null) {
2574  result.constraint_ = constraint_;
2575  } else {
2576  result.constraint_ = cumulativeBuilder_.build();
2577  }
2578  }
2579  result.constraintCase_ = constraintCase_;
2580  onBuilt();
2581  return result;
2582  }
2583 
2584  @java.lang.Override
2585  public Builder clone() {
2586  return super.clone();
2587  }
2588  @java.lang.Override
2590  com.google.protobuf.Descriptors.FieldDescriptor field,
2591  java.lang.Object value) {
2592  return super.setField(field, value);
2593  }
2594  @java.lang.Override
2596  com.google.protobuf.Descriptors.FieldDescriptor field) {
2597  return super.clearField(field);
2598  }
2599  @java.lang.Override
2601  com.google.protobuf.Descriptors.OneofDescriptor oneof) {
2602  return super.clearOneof(oneof);
2603  }
2604  @java.lang.Override
2606  com.google.protobuf.Descriptors.FieldDescriptor field,
2607  int index, java.lang.Object value) {
2608  return super.setRepeatedField(field, index, value);
2609  }
2610  @java.lang.Override
2612  com.google.protobuf.Descriptors.FieldDescriptor field,
2613  java.lang.Object value) {
2614  return super.addRepeatedField(field, value);
2615  }
2616  @java.lang.Override
2617  public Builder mergeFrom(com.google.protobuf.Message other) {
2618  if (other instanceof com.google.ortools.sat.ConstraintProto) {
2619  return mergeFrom((com.google.ortools.sat.ConstraintProto)other);
2620  } else {
2621  super.mergeFrom(other);
2622  return this;
2623  }
2624  }
2625 
2627  if (other == com.google.ortools.sat.ConstraintProto.getDefaultInstance()) return this;
2628  if (!other.getName().isEmpty()) {
2629  name_ = other.name_;
2630  onChanged();
2631  }
2632  if (!other.enforcementLiteral_.isEmpty()) {
2633  if (enforcementLiteral_.isEmpty()) {
2634  enforcementLiteral_ = other.enforcementLiteral_;
2635  bitField0_ = (bitField0_ & ~0x00000001);
2636  } else {
2637  ensureEnforcementLiteralIsMutable();
2638  enforcementLiteral_.addAll(other.enforcementLiteral_);
2639  }
2640  onChanged();
2641  }
2642  switch (other.getConstraintCase()) {
2643  case BOOL_OR: {
2644  mergeBoolOr(other.getBoolOr());
2645  break;
2646  }
2647  case BOOL_AND: {
2648  mergeBoolAnd(other.getBoolAnd());
2649  break;
2650  }
2651  case AT_MOST_ONE: {
2652  mergeAtMostOne(other.getAtMostOne());
2653  break;
2654  }
2655  case BOOL_XOR: {
2656  mergeBoolXor(other.getBoolXor());
2657  break;
2658  }
2659  case INT_DIV: {
2660  mergeIntDiv(other.getIntDiv());
2661  break;
2662  }
2663  case INT_MOD: {
2664  mergeIntMod(other.getIntMod());
2665  break;
2666  }
2667  case INT_MAX: {
2668  mergeIntMax(other.getIntMax());
2669  break;
2670  }
2671  case LIN_MAX: {
2672  mergeLinMax(other.getLinMax());
2673  break;
2674  }
2675  case INT_MIN: {
2676  mergeIntMin(other.getIntMin());
2677  break;
2678  }
2679  case LIN_MIN: {
2680  mergeLinMin(other.getLinMin());
2681  break;
2682  }
2683  case INT_PROD: {
2684  mergeIntProd(other.getIntProd());
2685  break;
2686  }
2687  case LINEAR: {
2688  mergeLinear(other.getLinear());
2689  break;
2690  }
2691  case ALL_DIFF: {
2692  mergeAllDiff(other.getAllDiff());
2693  break;
2694  }
2695  case ELEMENT: {
2696  mergeElement(other.getElement());
2697  break;
2698  }
2699  case CIRCUIT: {
2700  mergeCircuit(other.getCircuit());
2701  break;
2702  }
2703  case ROUTES: {
2704  mergeRoutes(other.getRoutes());
2705  break;
2706  }
2707  case CIRCUIT_COVERING: {
2708  mergeCircuitCovering(other.getCircuitCovering());
2709  break;
2710  }
2711  case TABLE: {
2712  mergeTable(other.getTable());
2713  break;
2714  }
2715  case AUTOMATON: {
2716  mergeAutomaton(other.getAutomaton());
2717  break;
2718  }
2719  case INVERSE: {
2720  mergeInverse(other.getInverse());
2721  break;
2722  }
2723  case RESERVOIR: {
2724  mergeReservoir(other.getReservoir());
2725  break;
2726  }
2727  case INTERVAL: {
2728  mergeInterval(other.getInterval());
2729  break;
2730  }
2731  case NO_OVERLAP: {
2732  mergeNoOverlap(other.getNoOverlap());
2733  break;
2734  }
2735  case NO_OVERLAP_2D: {
2736  mergeNoOverlap2D(other.getNoOverlap2D());
2737  break;
2738  }
2739  case CUMULATIVE: {
2740  mergeCumulative(other.getCumulative());
2741  break;
2742  }
2743  case CONSTRAINT_NOT_SET: {
2744  break;
2745  }
2746  }
2747  this.mergeUnknownFields(other.unknownFields);
2748  onChanged();
2749  return this;
2750  }
2751 
2752  @java.lang.Override
2753  public final boolean isInitialized() {
2754  return true;
2755  }
2756 
2757  @java.lang.Override
2759  com.google.protobuf.CodedInputStream input,
2760  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2761  throws java.io.IOException {
2762  com.google.ortools.sat.ConstraintProto parsedMessage = null;
2763  try {
2764  parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
2765  } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2766  parsedMessage = (com.google.ortools.sat.ConstraintProto) e.getUnfinishedMessage();
2767  throw e.unwrapIOException();
2768  } finally {
2769  if (parsedMessage != null) {
2770  mergeFrom(parsedMessage);
2771  }
2772  }
2773  return this;
2774  }
2775  private int constraintCase_ = 0;
2776  private java.lang.Object constraint_;
2777  public ConstraintCase
2779  return ConstraintCase.forNumber(
2780  constraintCase_);
2781  }
2782 
2784  constraintCase_ = 0;
2785  constraint_ = null;
2786  onChanged();
2787  return this;
2788  }
2789 
2790  private int bitField0_;
2791 
2792  private java.lang.Object name_ = "";
2801  public java.lang.String getName() {
2802  java.lang.Object ref = name_;
2803  if (!(ref instanceof java.lang.String)) {
2804  com.google.protobuf.ByteString bs =
2805  (com.google.protobuf.ByteString) ref;
2806  java.lang.String s = bs.toStringUtf8();
2807  name_ = s;
2808  return s;
2809  } else {
2810  return (java.lang.String) ref;
2811  }
2812  }
2821  public com.google.protobuf.ByteString
2823  java.lang.Object ref = name_;
2824  if (ref instanceof String) {
2825  com.google.protobuf.ByteString b =
2826  com.google.protobuf.ByteString.copyFromUtf8(
2827  (java.lang.String) ref);
2828  name_ = b;
2829  return b;
2830  } else {
2831  return (com.google.protobuf.ByteString) ref;
2832  }
2833  }
2844  java.lang.String value) {
2845  if (value == null) {
2846  throw new NullPointerException();
2847  }
2848 
2849  name_ = value;
2850  onChanged();
2851  return this;
2852  }
2861  public Builder clearName() {
2862 
2863  name_ = getDefaultInstance().getName();
2864  onChanged();
2865  return this;
2866  }
2877  com.google.protobuf.ByteString value) {
2878  if (value == null) {
2879  throw new NullPointerException();
2880  }
2881  checkByteStringIsUtf8(value);
2882 
2883  name_ = value;
2884  onChanged();
2885  return this;
2886  }
2887 
2888  private com.google.protobuf.Internal.IntList enforcementLiteral_ = emptyIntList();
2889  private void ensureEnforcementLiteralIsMutable() {
2890  if (!((bitField0_ & 0x00000001) != 0)) {
2891  enforcementLiteral_ = mutableCopy(enforcementLiteral_);
2892  bitField0_ |= 0x00000001;
2893  }
2894  }
2914  public java.util.List<java.lang.Integer>
2916  return ((bitField0_ & 0x00000001) != 0) ?
2917  java.util.Collections.unmodifiableList(enforcementLiteral_) : enforcementLiteral_;
2918  }
2939  return enforcementLiteral_.size();
2940  }
2961  public int getEnforcementLiteral(int index) {
2962  return enforcementLiteral_.getInt(index);
2963  }
2986  int index, int value) {
2987  ensureEnforcementLiteralIsMutable();
2988  enforcementLiteral_.setInt(index, value);
2989  onChanged();
2990  return this;
2991  }
3012  public Builder addEnforcementLiteral(int value) {
3013  ensureEnforcementLiteralIsMutable();
3014  enforcementLiteral_.addInt(value);
3015  onChanged();
3016  return this;
3017  }
3039  java.lang.Iterable<? extends java.lang.Integer> values) {
3040  ensureEnforcementLiteralIsMutable();
3041  com.google.protobuf.AbstractMessageLite.Builder.addAll(
3042  values, enforcementLiteral_);
3043  onChanged();
3044  return this;
3045  }
3066  enforcementLiteral_ = emptyIntList();
3067  bitField0_ = (bitField0_ & ~0x00000001);
3068  onChanged();
3069  return this;
3070  }
3071 
3072  private com.google.protobuf.SingleFieldBuilderV3<
3082  public boolean hasBoolOr() {
3083  return constraintCase_ == 3;
3084  }
3094  if (boolOrBuilder_ == null) {
3095  if (constraintCase_ == 3) {
3096  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3097  }
3099  } else {
3100  if (constraintCase_ == 3) {
3101  return boolOrBuilder_.getMessage();
3102  }
3104  }
3105  }
3114  if (boolOrBuilder_ == null) {
3115  if (value == null) {
3116  throw new NullPointerException();
3117  }
3118  constraint_ = value;
3119  onChanged();
3120  } else {
3121  boolOrBuilder_.setMessage(value);
3122  }
3123  constraintCase_ = 3;
3124  return this;
3125  }
3134  com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
3135  if (boolOrBuilder_ == null) {
3136  constraint_ = builderForValue.build();
3137  onChanged();
3138  } else {
3139  boolOrBuilder_.setMessage(builderForValue.build());
3140  }
3141  constraintCase_ = 3;
3142  return this;
3143  }
3152  if (boolOrBuilder_ == null) {
3153  if (constraintCase_ == 3 &&
3156  .mergeFrom(value).buildPartial();
3157  } else {
3158  constraint_ = value;
3159  }
3160  onChanged();
3161  } else {
3162  if (constraintCase_ == 3) {
3163  boolOrBuilder_.mergeFrom(value);
3164  }
3165  boolOrBuilder_.setMessage(value);
3166  }
3167  constraintCase_ = 3;
3168  return this;
3169  }
3178  if (boolOrBuilder_ == null) {
3179  if (constraintCase_ == 3) {
3180  constraintCase_ = 0;
3181  constraint_ = null;
3182  onChanged();
3183  }
3184  } else {
3185  if (constraintCase_ == 3) {
3186  constraintCase_ = 0;
3187  constraint_ = null;
3188  }
3189  boolOrBuilder_.clear();
3190  }
3191  return this;
3192  }
3201  return getBoolOrFieldBuilder().getBuilder();
3202  }
3211  if ((constraintCase_ == 3) && (boolOrBuilder_ != null)) {
3212  return boolOrBuilder_.getMessageOrBuilder();
3213  } else {
3214  if (constraintCase_ == 3) {
3215  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3216  }
3218  }
3219  }
3227  private com.google.protobuf.SingleFieldBuilderV3<
3229  getBoolOrFieldBuilder() {
3230  if (boolOrBuilder_ == null) {
3231  if (!(constraintCase_ == 3)) {
3233  }
3234  boolOrBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
3236  (com.google.ortools.sat.BoolArgumentProto) constraint_,
3237  getParentForChildren(),
3238  isClean());
3239  constraint_ = null;
3240  }
3241  constraintCase_ = 3;
3242  onChanged();;
3243  return boolOrBuilder_;
3244  }
3245 
3246  private com.google.protobuf.SingleFieldBuilderV3<
3259  public boolean hasBoolAnd() {
3260  return constraintCase_ == 4;
3261  }
3274  if (boolAndBuilder_ == null) {
3275  if (constraintCase_ == 4) {
3276  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3277  }
3279  } else {
3280  if (constraintCase_ == 4) {
3281  return boolAndBuilder_.getMessage();
3282  }
3284  }
3285  }
3297  if (boolAndBuilder_ == null) {
3298  if (value == null) {
3299  throw new NullPointerException();
3300  }
3301  constraint_ = value;
3302  onChanged();
3303  } else {
3304  boolAndBuilder_.setMessage(value);
3305  }
3306  constraintCase_ = 4;
3307  return this;
3308  }
3320  com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
3321  if (boolAndBuilder_ == null) {
3322  constraint_ = builderForValue.build();
3323  onChanged();
3324  } else {
3325  boolAndBuilder_.setMessage(builderForValue.build());
3326  }
3327  constraintCase_ = 4;
3328  return this;
3329  }
3341  if (boolAndBuilder_ == null) {
3342  if (constraintCase_ == 4 &&
3345  .mergeFrom(value).buildPartial();
3346  } else {
3347  constraint_ = value;
3348  }
3349  onChanged();
3350  } else {
3351  if (constraintCase_ == 4) {
3352  boolAndBuilder_.mergeFrom(value);
3353  }
3354  boolAndBuilder_.setMessage(value);
3355  }
3356  constraintCase_ = 4;
3357  return this;
3358  }
3370  if (boolAndBuilder_ == null) {
3371  if (constraintCase_ == 4) {
3372  constraintCase_ = 0;
3373  constraint_ = null;
3374  onChanged();
3375  }
3376  } else {
3377  if (constraintCase_ == 4) {
3378  constraintCase_ = 0;
3379  constraint_ = null;
3380  }
3381  boolAndBuilder_.clear();
3382  }
3383  return this;
3384  }
3396  return getBoolAndFieldBuilder().getBuilder();
3397  }
3409  if ((constraintCase_ == 4) && (boolAndBuilder_ != null)) {
3410  return boolAndBuilder_.getMessageOrBuilder();
3411  } else {
3412  if (constraintCase_ == 4) {
3413  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3414  }
3416  }
3417  }
3428  private com.google.protobuf.SingleFieldBuilderV3<
3430  getBoolAndFieldBuilder() {
3431  if (boolAndBuilder_ == null) {
3432  if (!(constraintCase_ == 4)) {
3434  }
3435  boolAndBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
3437  (com.google.ortools.sat.BoolArgumentProto) constraint_,
3438  getParentForChildren(),
3439  isClean());
3440  constraint_ = null;
3441  }
3442  constraintCase_ = 4;
3443  onChanged();;
3444  return boolAndBuilder_;
3445  }
3446 
3447  private com.google.protobuf.SingleFieldBuilderV3<
3461  public boolean hasAtMostOne() {
3462  return constraintCase_ == 26;
3463  }
3477  if (atMostOneBuilder_ == null) {
3478  if (constraintCase_ == 26) {
3479  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3480  }
3482  } else {
3483  if (constraintCase_ == 26) {
3484  return atMostOneBuilder_.getMessage();
3485  }
3487  }
3488  }
3501  if (atMostOneBuilder_ == null) {
3502  if (value == null) {
3503  throw new NullPointerException();
3504  }
3505  constraint_ = value;
3506  onChanged();
3507  } else {
3508  atMostOneBuilder_.setMessage(value);
3509  }
3510  constraintCase_ = 26;
3511  return this;
3512  }
3525  com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
3526  if (atMostOneBuilder_ == null) {
3527  constraint_ = builderForValue.build();
3528  onChanged();
3529  } else {
3530  atMostOneBuilder_.setMessage(builderForValue.build());
3531  }
3532  constraintCase_ = 26;
3533  return this;
3534  }
3547  if (atMostOneBuilder_ == null) {
3548  if (constraintCase_ == 26 &&
3551  .mergeFrom(value).buildPartial();
3552  } else {
3553  constraint_ = value;
3554  }
3555  onChanged();
3556  } else {
3557  if (constraintCase_ == 26) {
3558  atMostOneBuilder_.mergeFrom(value);
3559  }
3560  atMostOneBuilder_.setMessage(value);
3561  }
3562  constraintCase_ = 26;
3563  return this;
3564  }
3577  if (atMostOneBuilder_ == null) {
3578  if (constraintCase_ == 26) {
3579  constraintCase_ = 0;
3580  constraint_ = null;
3581  onChanged();
3582  }
3583  } else {
3584  if (constraintCase_ == 26) {
3585  constraintCase_ = 0;
3586  constraint_ = null;
3587  }
3588  atMostOneBuilder_.clear();
3589  }
3590  return this;
3591  }
3604  return getAtMostOneFieldBuilder().getBuilder();
3605  }
3618  if ((constraintCase_ == 26) && (atMostOneBuilder_ != null)) {
3619  return atMostOneBuilder_.getMessageOrBuilder();
3620  } else {
3621  if (constraintCase_ == 26) {
3622  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3623  }
3625  }
3626  }
3638  private com.google.protobuf.SingleFieldBuilderV3<
3640  getAtMostOneFieldBuilder() {
3641  if (atMostOneBuilder_ == null) {
3642  if (!(constraintCase_ == 26)) {
3644  }
3645  atMostOneBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
3647  (com.google.ortools.sat.BoolArgumentProto) constraint_,
3648  getParentForChildren(),
3649  isClean());
3650  constraint_ = null;
3651  }
3652  constraintCase_ = 26;
3653  onChanged();;
3654  return atMostOneBuilder_;
3655  }
3656 
3657  private com.google.protobuf.SingleFieldBuilderV3<
3667  public boolean hasBoolXor() {
3668  return constraintCase_ == 5;
3669  }
3679  if (boolXorBuilder_ == null) {
3680  if (constraintCase_ == 5) {
3681  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3682  }
3684  } else {
3685  if (constraintCase_ == 5) {
3686  return boolXorBuilder_.getMessage();
3687  }
3689  }
3690  }
3699  if (boolXorBuilder_ == null) {
3700  if (value == null) {
3701  throw new NullPointerException();
3702  }
3703  constraint_ = value;
3704  onChanged();
3705  } else {
3706  boolXorBuilder_.setMessage(value);
3707  }
3708  constraintCase_ = 5;
3709  return this;
3710  }
3719  com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
3720  if (boolXorBuilder_ == null) {
3721  constraint_ = builderForValue.build();
3722  onChanged();
3723  } else {
3724  boolXorBuilder_.setMessage(builderForValue.build());
3725  }
3726  constraintCase_ = 5;
3727  return this;
3728  }
3737  if (boolXorBuilder_ == null) {
3738  if (constraintCase_ == 5 &&
3741  .mergeFrom(value).buildPartial();
3742  } else {
3743  constraint_ = value;
3744  }
3745  onChanged();
3746  } else {
3747  if (constraintCase_ == 5) {
3748  boolXorBuilder_.mergeFrom(value);
3749  }
3750  boolXorBuilder_.setMessage(value);
3751  }
3752  constraintCase_ = 5;
3753  return this;
3754  }
3763  if (boolXorBuilder_ == null) {
3764  if (constraintCase_ == 5) {
3765  constraintCase_ = 0;
3766  constraint_ = null;
3767  onChanged();
3768  }
3769  } else {
3770  if (constraintCase_ == 5) {
3771  constraintCase_ = 0;
3772  constraint_ = null;
3773  }
3774  boolXorBuilder_.clear();
3775  }
3776  return this;
3777  }
3786  return getBoolXorFieldBuilder().getBuilder();
3787  }
3796  if ((constraintCase_ == 5) && (boolXorBuilder_ != null)) {
3797  return boolXorBuilder_.getMessageOrBuilder();
3798  } else {
3799  if (constraintCase_ == 5) {
3800  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3801  }
3803  }
3804  }
3812  private com.google.protobuf.SingleFieldBuilderV3<
3814  getBoolXorFieldBuilder() {
3815  if (boolXorBuilder_ == null) {
3816  if (!(constraintCase_ == 5)) {
3818  }
3819  boolXorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
3821  (com.google.ortools.sat.BoolArgumentProto) constraint_,
3822  getParentForChildren(),
3823  isClean());
3824  constraint_ = null;
3825  }
3826  constraintCase_ = 5;
3827  onChanged();;
3828  return boolXorBuilder_;
3829  }
3830 
3831  private com.google.protobuf.SingleFieldBuilderV3<
3841  public boolean hasIntDiv() {
3842  return constraintCase_ == 7;
3843  }
3853  if (intDivBuilder_ == null) {
3854  if (constraintCase_ == 7) {
3855  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
3856  }
3858  } else {
3859  if (constraintCase_ == 7) {
3860  return intDivBuilder_.getMessage();
3861  }
3863  }
3864  }
3873  if (intDivBuilder_ == null) {
3874  if (value == null) {
3875  throw new NullPointerException();
3876  }
3877  constraint_ = value;
3878  onChanged();
3879  } else {
3880  intDivBuilder_.setMessage(value);
3881  }
3882  constraintCase_ = 7;
3883  return this;
3884  }
3893  com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue) {
3894  if (intDivBuilder_ == null) {
3895  constraint_ = builderForValue.build();
3896  onChanged();
3897  } else {
3898  intDivBuilder_.setMessage(builderForValue.build());
3899  }
3900  constraintCase_ = 7;
3901  return this;
3902  }
3911  if (intDivBuilder_ == null) {
3912  if (constraintCase_ == 7 &&
3915  .mergeFrom(value).buildPartial();
3916  } else {
3917  constraint_ = value;
3918  }
3919  onChanged();
3920  } else {
3921  if (constraintCase_ == 7) {
3922  intDivBuilder_.mergeFrom(value);
3923  }
3924  intDivBuilder_.setMessage(value);
3925  }
3926  constraintCase_ = 7;
3927  return this;
3928  }
3937  if (intDivBuilder_ == null) {
3938  if (constraintCase_ == 7) {
3939  constraintCase_ = 0;
3940  constraint_ = null;
3941  onChanged();
3942  }
3943  } else {
3944  if (constraintCase_ == 7) {
3945  constraintCase_ = 0;
3946  constraint_ = null;
3947  }
3948  intDivBuilder_.clear();
3949  }
3950  return this;
3951  }
3960  return getIntDivFieldBuilder().getBuilder();
3961  }
3970  if ((constraintCase_ == 7) && (intDivBuilder_ != null)) {
3971  return intDivBuilder_.getMessageOrBuilder();
3972  } else {
3973  if (constraintCase_ == 7) {
3974  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
3975  }
3977  }
3978  }
3986  private com.google.protobuf.SingleFieldBuilderV3<
3988  getIntDivFieldBuilder() {
3989  if (intDivBuilder_ == null) {
3990  if (!(constraintCase_ == 7)) {
3992  }
3993  intDivBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
3995  (com.google.ortools.sat.IntegerArgumentProto) constraint_,
3996  getParentForChildren(),
3997  isClean());
3998  constraint_ = null;
3999  }
4000  constraintCase_ = 7;
4001  onChanged();;
4002  return intDivBuilder_;
4003  }
4004 
4005  private com.google.protobuf.SingleFieldBuilderV3<
4015  public boolean hasIntMod() {
4016  return constraintCase_ == 8;
4017  }
4027  if (intModBuilder_ == null) {
4028  if (constraintCase_ == 8) {
4029  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
4030  }
4032  } else {
4033  if (constraintCase_ == 8) {
4034  return intModBuilder_.getMessage();
4035  }
4037  }
4038  }
4047  if (intModBuilder_ == null) {
4048  if (value == null) {
4049  throw new NullPointerException();
4050  }
4051  constraint_ = value;
4052  onChanged();
4053  } else {
4054  intModBuilder_.setMessage(value);
4055  }
4056  constraintCase_ = 8;
4057  return this;
4058  }
4067  com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue) {
4068  if (intModBuilder_ == null) {
4069  constraint_ = builderForValue.build();
4070  onChanged();
4071  } else {
4072  intModBuilder_.setMessage(builderForValue.build());
4073  }
4074  constraintCase_ = 8;
4075  return this;
4076  }
4085  if (intModBuilder_ == null) {
4086  if (constraintCase_ == 8 &&
4089  .mergeFrom(value).buildPartial();
4090  } else {
4091  constraint_ = value;
4092  }
4093  onChanged();
4094  } else {
4095  if (constraintCase_ == 8) {
4096  intModBuilder_.mergeFrom(value);
4097  }
4098  intModBuilder_.setMessage(value);
4099  }
4100  constraintCase_ = 8;
4101  return this;
4102  }
4111  if (intModBuilder_ == null) {
4112  if (constraintCase_ == 8) {
4113  constraintCase_ = 0;
4114  constraint_ = null;
4115  onChanged();
4116  }
4117  } else {
4118  if (constraintCase_ == 8) {
4119  constraintCase_ = 0;
4120  constraint_ = null;
4121  }
4122  intModBuilder_.clear();
4123  }
4124  return this;
4125  }
4134  return getIntModFieldBuilder().getBuilder();
4135  }
4144  if ((constraintCase_ == 8) && (intModBuilder_ != null)) {
4145  return intModBuilder_.getMessageOrBuilder();
4146  } else {
4147  if (constraintCase_ == 8) {
4148  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
4149  }
4151  }
4152  }
4160  private com.google.protobuf.SingleFieldBuilderV3<
4162  getIntModFieldBuilder() {
4163  if (intModBuilder_ == null) {
4164  if (!(constraintCase_ == 8)) {
4166  }
4167  intModBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4169  (com.google.ortools.sat.IntegerArgumentProto) constraint_,
4170  getParentForChildren(),
4171  isClean());
4172  constraint_ = null;
4173  }
4174  constraintCase_ = 8;
4175  onChanged();;
4176  return intModBuilder_;
4177  }
4178 
4179  private com.google.protobuf.SingleFieldBuilderV3<
4191  public boolean hasIntMax() {
4192  return constraintCase_ == 9;
4193  }
4205  if (intMaxBuilder_ == null) {
4206  if (constraintCase_ == 9) {
4207  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
4208  }
4210  } else {
4211  if (constraintCase_ == 9) {
4212  return intMaxBuilder_.getMessage();
4213  }
4215  }
4216  }
4227  if (intMaxBuilder_ == null) {
4228  if (value == null) {
4229  throw new NullPointerException();
4230  }
4231  constraint_ = value;
4232  onChanged();
4233  } else {
4234  intMaxBuilder_.setMessage(value);
4235  }
4236  constraintCase_ = 9;
4237  return this;
4238  }
4249  com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue) {
4250  if (intMaxBuilder_ == null) {
4251  constraint_ = builderForValue.build();
4252  onChanged();
4253  } else {
4254  intMaxBuilder_.setMessage(builderForValue.build());
4255  }
4256  constraintCase_ = 9;
4257  return this;
4258  }
4269  if (intMaxBuilder_ == null) {
4270  if (constraintCase_ == 9 &&
4273  .mergeFrom(value).buildPartial();
4274  } else {
4275  constraint_ = value;
4276  }
4277  onChanged();
4278  } else {
4279  if (constraintCase_ == 9) {
4280  intMaxBuilder_.mergeFrom(value);
4281  }
4282  intMaxBuilder_.setMessage(value);
4283  }
4284  constraintCase_ = 9;
4285  return this;
4286  }
4297  if (intMaxBuilder_ == null) {
4298  if (constraintCase_ == 9) {
4299  constraintCase_ = 0;
4300  constraint_ = null;
4301  onChanged();
4302  }
4303  } else {
4304  if (constraintCase_ == 9) {
4305  constraintCase_ = 0;
4306  constraint_ = null;
4307  }
4308  intMaxBuilder_.clear();
4309  }
4310  return this;
4311  }
4322  return getIntMaxFieldBuilder().getBuilder();
4323  }
4334  if ((constraintCase_ == 9) && (intMaxBuilder_ != null)) {
4335  return intMaxBuilder_.getMessageOrBuilder();
4336  } else {
4337  if (constraintCase_ == 9) {
4338  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
4339  }
4341  }
4342  }
4352  private com.google.protobuf.SingleFieldBuilderV3<
4354  getIntMaxFieldBuilder() {
4355  if (intMaxBuilder_ == null) {
4356  if (!(constraintCase_ == 9)) {
4358  }
4359  intMaxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4361  (com.google.ortools.sat.IntegerArgumentProto) constraint_,
4362  getParentForChildren(),
4363  isClean());
4364  constraint_ = null;
4365  }
4366  constraintCase_ = 9;
4367  onChanged();;
4368  return intMaxBuilder_;
4369  }
4370 
4371  private com.google.protobuf.SingleFieldBuilderV3<
4382  public boolean hasLinMax() {
4383  return constraintCase_ == 27;
4384  }
4395  if (linMaxBuilder_ == null) {
4396  if (constraintCase_ == 27) {
4397  return (com.google.ortools.sat.LinearArgumentProto) constraint_;
4398  }
4400  } else {
4401  if (constraintCase_ == 27) {
4402  return linMaxBuilder_.getMessage();
4403  }
4405  }
4406  }
4416  if (linMaxBuilder_ == null) {
4417  if (value == null) {
4418  throw new NullPointerException();
4419  }
4420  constraint_ = value;
4421  onChanged();
4422  } else {
4423  linMaxBuilder_.setMessage(value);
4424  }
4425  constraintCase_ = 27;
4426  return this;
4427  }
4437  com.google.ortools.sat.LinearArgumentProto.Builder builderForValue) {
4438  if (linMaxBuilder_ == null) {
4439  constraint_ = builderForValue.build();
4440  onChanged();
4441  } else {
4442  linMaxBuilder_.setMessage(builderForValue.build());
4443  }
4444  constraintCase_ = 27;
4445  return this;
4446  }
4456  if (linMaxBuilder_ == null) {
4457  if (constraintCase_ == 27 &&
4460  .mergeFrom(value).buildPartial();
4461  } else {
4462  constraint_ = value;
4463  }
4464  onChanged();
4465  } else {
4466  if (constraintCase_ == 27) {
4467  linMaxBuilder_.mergeFrom(value);
4468  }
4469  linMaxBuilder_.setMessage(value);
4470  }
4471  constraintCase_ = 27;
4472  return this;
4473  }
4483  if (linMaxBuilder_ == null) {
4484  if (constraintCase_ == 27) {
4485  constraintCase_ = 0;
4486  constraint_ = null;
4487  onChanged();
4488  }
4489  } else {
4490  if (constraintCase_ == 27) {
4491  constraintCase_ = 0;
4492  constraint_ = null;
4493  }
4494  linMaxBuilder_.clear();
4495  }
4496  return this;
4497  }
4507  return getLinMaxFieldBuilder().getBuilder();
4508  }
4518  if ((constraintCase_ == 27) && (linMaxBuilder_ != null)) {
4519  return linMaxBuilder_.getMessageOrBuilder();
4520  } else {
4521  if (constraintCase_ == 27) {
4522  return (com.google.ortools.sat.LinearArgumentProto) constraint_;
4523  }
4525  }
4526  }
4535  private com.google.protobuf.SingleFieldBuilderV3<
4537  getLinMaxFieldBuilder() {
4538  if (linMaxBuilder_ == null) {
4539  if (!(constraintCase_ == 27)) {
4541  }
4542  linMaxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4544  (com.google.ortools.sat.LinearArgumentProto) constraint_,
4545  getParentForChildren(),
4546  isClean());
4547  constraint_ = null;
4548  }
4549  constraintCase_ = 27;
4550  onChanged();;
4551  return linMaxBuilder_;
4552  }
4553 
4554  private com.google.protobuf.SingleFieldBuilderV3<
4566  public boolean hasIntMin() {
4567  return constraintCase_ == 10;
4568  }
4580  if (intMinBuilder_ == null) {
4581  if (constraintCase_ == 10) {
4582  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
4583  }
4585  } else {
4586  if (constraintCase_ == 10) {
4587  return intMinBuilder_.getMessage();
4588  }
4590  }
4591  }
4602  if (intMinBuilder_ == null) {
4603  if (value == null) {
4604  throw new NullPointerException();
4605  }
4606  constraint_ = value;
4607  onChanged();
4608  } else {
4609  intMinBuilder_.setMessage(value);
4610  }
4611  constraintCase_ = 10;
4612  return this;
4613  }
4624  com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue) {
4625  if (intMinBuilder_ == null) {
4626  constraint_ = builderForValue.build();
4627  onChanged();
4628  } else {
4629  intMinBuilder_.setMessage(builderForValue.build());
4630  }
4631  constraintCase_ = 10;
4632  return this;
4633  }
4644  if (intMinBuilder_ == null) {
4645  if (constraintCase_ == 10 &&
4648  .mergeFrom(value).buildPartial();
4649  } else {
4650  constraint_ = value;
4651  }
4652  onChanged();
4653  } else {
4654  if (constraintCase_ == 10) {
4655  intMinBuilder_.mergeFrom(value);
4656  }
4657  intMinBuilder_.setMessage(value);
4658  }
4659  constraintCase_ = 10;
4660  return this;
4661  }
4672  if (intMinBuilder_ == null) {
4673  if (constraintCase_ == 10) {
4674  constraintCase_ = 0;
4675  constraint_ = null;
4676  onChanged();
4677  }
4678  } else {
4679  if (constraintCase_ == 10) {
4680  constraintCase_ = 0;
4681  constraint_ = null;
4682  }
4683  intMinBuilder_.clear();
4684  }
4685  return this;
4686  }
4697  return getIntMinFieldBuilder().getBuilder();
4698  }
4709  if ((constraintCase_ == 10) && (intMinBuilder_ != null)) {
4710  return intMinBuilder_.getMessageOrBuilder();
4711  } else {
4712  if (constraintCase_ == 10) {
4713  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
4714  }
4716  }
4717  }
4727  private com.google.protobuf.SingleFieldBuilderV3<
4729  getIntMinFieldBuilder() {
4730  if (intMinBuilder_ == null) {
4731  if (!(constraintCase_ == 10)) {
4733  }
4734  intMinBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4736  (com.google.ortools.sat.IntegerArgumentProto) constraint_,
4737  getParentForChildren(),
4738  isClean());
4739  constraint_ = null;
4740  }
4741  constraintCase_ = 10;
4742  onChanged();;
4743  return intMinBuilder_;
4744  }
4745 
4746  private com.google.protobuf.SingleFieldBuilderV3<
4757  public boolean hasLinMin() {
4758  return constraintCase_ == 28;
4759  }
4770  if (linMinBuilder_ == null) {
4771  if (constraintCase_ == 28) {
4772  return (com.google.ortools.sat.LinearArgumentProto) constraint_;
4773  }
4775  } else {
4776  if (constraintCase_ == 28) {
4777  return linMinBuilder_.getMessage();
4778  }
4780  }
4781  }
4791  if (linMinBuilder_ == null) {
4792  if (value == null) {
4793  throw new NullPointerException();
4794  }
4795  constraint_ = value;
4796  onChanged();
4797  } else {
4798  linMinBuilder_.setMessage(value);
4799  }
4800  constraintCase_ = 28;
4801  return this;
4802  }
4812  com.google.ortools.sat.LinearArgumentProto.Builder builderForValue) {
4813  if (linMinBuilder_ == null) {
4814  constraint_ = builderForValue.build();
4815  onChanged();
4816  } else {
4817  linMinBuilder_.setMessage(builderForValue.build());
4818  }
4819  constraintCase_ = 28;
4820  return this;
4821  }
4831  if (linMinBuilder_ == null) {
4832  if (constraintCase_ == 28 &&
4835  .mergeFrom(value).buildPartial();
4836  } else {
4837  constraint_ = value;
4838  }
4839  onChanged();
4840  } else {
4841  if (constraintCase_ == 28) {
4842  linMinBuilder_.mergeFrom(value);
4843  }
4844  linMinBuilder_.setMessage(value);
4845  }
4846  constraintCase_ = 28;
4847  return this;
4848  }
4858  if (linMinBuilder_ == null) {
4859  if (constraintCase_ == 28) {
4860  constraintCase_ = 0;
4861  constraint_ = null;
4862  onChanged();
4863  }
4864  } else {
4865  if (constraintCase_ == 28) {
4866  constraintCase_ = 0;
4867  constraint_ = null;
4868  }
4869  linMinBuilder_.clear();
4870  }
4871  return this;
4872  }
4882  return getLinMinFieldBuilder().getBuilder();
4883  }
4893  if ((constraintCase_ == 28) && (linMinBuilder_ != null)) {
4894  return linMinBuilder_.getMessageOrBuilder();
4895  } else {
4896  if (constraintCase_ == 28) {
4897  return (com.google.ortools.sat.LinearArgumentProto) constraint_;
4898  }
4900  }
4901  }
4910  private com.google.protobuf.SingleFieldBuilderV3<
4912  getLinMinFieldBuilder() {
4913  if (linMinBuilder_ == null) {
4914  if (!(constraintCase_ == 28)) {
4916  }
4917  linMinBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4919  (com.google.ortools.sat.LinearArgumentProto) constraint_,
4920  getParentForChildren(),
4921  isClean());
4922  constraint_ = null;
4923  }
4924  constraintCase_ = 28;
4925  onChanged();;
4926  return linMinBuilder_;
4927  }
4928 
4929  private com.google.protobuf.SingleFieldBuilderV3<
4940  public boolean hasIntProd() {
4941  return constraintCase_ == 11;
4942  }
4953  if (intProdBuilder_ == null) {
4954  if (constraintCase_ == 11) {
4955  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
4956  }
4958  } else {
4959  if (constraintCase_ == 11) {
4960  return intProdBuilder_.getMessage();
4961  }
4963  }
4964  }
4974  if (intProdBuilder_ == null) {
4975  if (value == null) {
4976  throw new NullPointerException();
4977  }
4978  constraint_ = value;
4979  onChanged();
4980  } else {
4981  intProdBuilder_.setMessage(value);
4982  }
4983  constraintCase_ = 11;
4984  return this;
4985  }
4995  com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue) {
4996  if (intProdBuilder_ == null) {
4997  constraint_ = builderForValue.build();
4998  onChanged();
4999  } else {
5000  intProdBuilder_.setMessage(builderForValue.build());
5001  }
5002  constraintCase_ = 11;
5003  return this;
5004  }
5014  if (intProdBuilder_ == null) {
5015  if (constraintCase_ == 11 &&
5018  .mergeFrom(value).buildPartial();
5019  } else {
5020  constraint_ = value;
5021  }
5022  onChanged();
5023  } else {
5024  if (constraintCase_ == 11) {
5025  intProdBuilder_.mergeFrom(value);
5026  }
5027  intProdBuilder_.setMessage(value);
5028  }
5029  constraintCase_ = 11;
5030  return this;
5031  }
5041  if (intProdBuilder_ == null) {
5042  if (constraintCase_ == 11) {
5043  constraintCase_ = 0;
5044  constraint_ = null;
5045  onChanged();
5046  }
5047  } else {
5048  if (constraintCase_ == 11) {
5049  constraintCase_ = 0;
5050  constraint_ = null;
5051  }
5052  intProdBuilder_.clear();
5053  }
5054  return this;
5055  }
5065  return getIntProdFieldBuilder().getBuilder();
5066  }
5076  if ((constraintCase_ == 11) && (intProdBuilder_ != null)) {
5077  return intProdBuilder_.getMessageOrBuilder();
5078  } else {
5079  if (constraintCase_ == 11) {
5080  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
5081  }
5083  }
5084  }
5093  private com.google.protobuf.SingleFieldBuilderV3<
5095  getIntProdFieldBuilder() {
5096  if (intProdBuilder_ == null) {
5097  if (!(constraintCase_ == 11)) {
5099  }
5100  intProdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5102  (com.google.ortools.sat.IntegerArgumentProto) constraint_,
5103  getParentForChildren(),
5104  isClean());
5105  constraint_ = null;
5106  }
5107  constraintCase_ = 11;
5108  onChanged();;
5109  return intProdBuilder_;
5110  }
5111 
5112  private com.google.protobuf.SingleFieldBuilderV3<
5123  public boolean hasLinear() {
5124  return constraintCase_ == 12;
5125  }
5136  if (linearBuilder_ == null) {
5137  if (constraintCase_ == 12) {
5138  return (com.google.ortools.sat.LinearConstraintProto) constraint_;
5139  }
5141  } else {
5142  if (constraintCase_ == 12) {
5143  return linearBuilder_.getMessage();
5144  }
5146  }
5147  }
5157  if (linearBuilder_ == null) {
5158  if (value == null) {
5159  throw new NullPointerException();
5160  }
5161  constraint_ = value;
5162  onChanged();
5163  } else {
5164  linearBuilder_.setMessage(value);
5165  }
5166  constraintCase_ = 12;
5167  return this;
5168  }
5178  com.google.ortools.sat.LinearConstraintProto.Builder builderForValue) {
5179  if (linearBuilder_ == null) {
5180  constraint_ = builderForValue.build();
5181  onChanged();
5182  } else {
5183  linearBuilder_.setMessage(builderForValue.build());
5184  }
5185  constraintCase_ = 12;
5186  return this;
5187  }
5197  if (linearBuilder_ == null) {
5198  if (constraintCase_ == 12 &&
5201  .mergeFrom(value).buildPartial();
5202  } else {
5203  constraint_ = value;
5204  }
5205  onChanged();
5206  } else {
5207  if (constraintCase_ == 12) {
5208  linearBuilder_.mergeFrom(value);
5209  }
5210  linearBuilder_.setMessage(value);
5211  }
5212  constraintCase_ = 12;
5213  return this;
5214  }
5224  if (linearBuilder_ == null) {
5225  if (constraintCase_ == 12) {
5226  constraintCase_ = 0;
5227  constraint_ = null;
5228  onChanged();
5229  }
5230  } else {
5231  if (constraintCase_ == 12) {
5232  constraintCase_ = 0;
5233  constraint_ = null;
5234  }
5235  linearBuilder_.clear();
5236  }
5237  return this;
5238  }
5248  return getLinearFieldBuilder().getBuilder();
5249  }
5259  if ((constraintCase_ == 12) && (linearBuilder_ != null)) {
5260  return linearBuilder_.getMessageOrBuilder();
5261  } else {
5262  if (constraintCase_ == 12) {
5263  return (com.google.ortools.sat.LinearConstraintProto) constraint_;
5264  }
5266  }
5267  }
5276  private com.google.protobuf.SingleFieldBuilderV3<
5278  getLinearFieldBuilder() {
5279  if (linearBuilder_ == null) {
5280  if (!(constraintCase_ == 12)) {
5282  }
5283  linearBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5285  (com.google.ortools.sat.LinearConstraintProto) constraint_,
5286  getParentForChildren(),
5287  isClean());
5288  constraint_ = null;
5289  }
5290  constraintCase_ = 12;
5291  onChanged();;
5292  return linearBuilder_;
5293  }
5294 
5295  private com.google.protobuf.SingleFieldBuilderV3<
5305  public boolean hasAllDiff() {
5306  return constraintCase_ == 13;
5307  }
5317  if (allDiffBuilder_ == null) {
5318  if (constraintCase_ == 13) {
5319  return (com.google.ortools.sat.AllDifferentConstraintProto) constraint_;
5320  }
5322  } else {
5323  if (constraintCase_ == 13) {
5324  return allDiffBuilder_.getMessage();
5325  }
5327  }
5328  }
5337  if (allDiffBuilder_ == null) {
5338  if (value == null) {
5339  throw new NullPointerException();
5340  }
5341  constraint_ = value;
5342  onChanged();
5343  } else {
5344  allDiffBuilder_.setMessage(value);
5345  }
5346  constraintCase_ = 13;
5347  return this;
5348  }
5358  if (allDiffBuilder_ == null) {
5359  constraint_ = builderForValue.build();
5360  onChanged();
5361  } else {
5362  allDiffBuilder_.setMessage(builderForValue.build());
5363  }
5364  constraintCase_ = 13;
5365  return this;
5366  }
5375  if (allDiffBuilder_ == null) {
5376  if (constraintCase_ == 13 &&
5379  .mergeFrom(value).buildPartial();
5380  } else {
5381  constraint_ = value;
5382  }
5383  onChanged();
5384  } else {
5385  if (constraintCase_ == 13) {
5386  allDiffBuilder_.mergeFrom(value);
5387  }
5388  allDiffBuilder_.setMessage(value);
5389  }
5390  constraintCase_ = 13;
5391  return this;
5392  }
5401  if (allDiffBuilder_ == null) {
5402  if (constraintCase_ == 13) {
5403  constraintCase_ = 0;
5404  constraint_ = null;
5405  onChanged();
5406  }
5407  } else {
5408  if (constraintCase_ == 13) {
5409  constraintCase_ = 0;
5410  constraint_ = null;
5411  }
5412  allDiffBuilder_.clear();
5413  }
5414  return this;
5415  }
5424  return getAllDiffFieldBuilder().getBuilder();
5425  }
5434  if ((constraintCase_ == 13) && (allDiffBuilder_ != null)) {
5435  return allDiffBuilder_.getMessageOrBuilder();
5436  } else {
5437  if (constraintCase_ == 13) {
5438  return (com.google.ortools.sat.AllDifferentConstraintProto) constraint_;
5439  }
5441  }
5442  }
5450  private com.google.protobuf.SingleFieldBuilderV3<
5452  getAllDiffFieldBuilder() {
5453  if (allDiffBuilder_ == null) {
5454  if (!(constraintCase_ == 13)) {
5456  }
5457  allDiffBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5460  getParentForChildren(),
5461  isClean());
5462  constraint_ = null;
5463  }
5464  constraintCase_ = 13;
5465  onChanged();;
5466  return allDiffBuilder_;
5467  }
5468 
5469  private com.google.protobuf.SingleFieldBuilderV3<
5480  public boolean hasElement() {
5481  return constraintCase_ == 14;
5482  }
5493  if (elementBuilder_ == null) {
5494  if (constraintCase_ == 14) {
5495  return (com.google.ortools.sat.ElementConstraintProto) constraint_;
5496  }
5498  } else {
5499  if (constraintCase_ == 14) {
5500  return elementBuilder_.getMessage();
5501  }
5503  }
5504  }
5514  if (elementBuilder_ == null) {
5515  if (value == null) {
5516  throw new NullPointerException();
5517  }
5518  constraint_ = value;
5519  onChanged();
5520  } else {
5521  elementBuilder_.setMessage(value);
5522  }
5523  constraintCase_ = 14;
5524  return this;
5525  }
5535  com.google.ortools.sat.ElementConstraintProto.Builder builderForValue) {
5536  if (elementBuilder_ == null) {
5537  constraint_ = builderForValue.build();
5538  onChanged();
5539  } else {
5540  elementBuilder_.setMessage(builderForValue.build());
5541  }
5542  constraintCase_ = 14;
5543  return this;
5544  }
5554  if (elementBuilder_ == null) {
5555  if (constraintCase_ == 14 &&
5558  .mergeFrom(value).buildPartial();
5559  } else {
5560  constraint_ = value;
5561  }
5562  onChanged();
5563  } else {
5564  if (constraintCase_ == 14) {
5565  elementBuilder_.mergeFrom(value);
5566  }
5567  elementBuilder_.setMessage(value);
5568  }
5569  constraintCase_ = 14;
5570  return this;
5571  }
5581  if (elementBuilder_ == null) {
5582  if (constraintCase_ == 14) {
5583  constraintCase_ = 0;
5584  constraint_ = null;
5585  onChanged();
5586  }
5587  } else {
5588  if (constraintCase_ == 14) {
5589  constraintCase_ = 0;
5590  constraint_ = null;
5591  }
5592  elementBuilder_.clear();
5593  }
5594  return this;
5595  }
5605  return getElementFieldBuilder().getBuilder();
5606  }
5616  if ((constraintCase_ == 14) && (elementBuilder_ != null)) {
5617  return elementBuilder_.getMessageOrBuilder();
5618  } else {
5619  if (constraintCase_ == 14) {
5620  return (com.google.ortools.sat.ElementConstraintProto) constraint_;
5621  }
5623  }
5624  }
5633  private com.google.protobuf.SingleFieldBuilderV3<
5635  getElementFieldBuilder() {
5636  if (elementBuilder_ == null) {
5637  if (!(constraintCase_ == 14)) {
5639  }
5640  elementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5643  getParentForChildren(),
5644  isClean());
5645  constraint_ = null;
5646  }
5647  constraintCase_ = 14;
5648  onChanged();;
5649  return elementBuilder_;
5650  }
5651 
5652  private com.google.protobuf.SingleFieldBuilderV3<
5663  public boolean hasCircuit() {
5664  return constraintCase_ == 15;
5665  }
5676  if (circuitBuilder_ == null) {
5677  if (constraintCase_ == 15) {
5678  return (com.google.ortools.sat.CircuitConstraintProto) constraint_;
5679  }
5681  } else {
5682  if (constraintCase_ == 15) {
5683  return circuitBuilder_.getMessage();
5684  }
5686  }
5687  }
5697  if (circuitBuilder_ == null) {
5698  if (value == null) {
5699  throw new NullPointerException();
5700  }
5701  constraint_ = value;
5702  onChanged();
5703  } else {
5704  circuitBuilder_.setMessage(value);
5705  }
5706  constraintCase_ = 15;
5707  return this;
5708  }
5718  com.google.ortools.sat.CircuitConstraintProto.Builder builderForValue) {
5719  if (circuitBuilder_ == null) {
5720  constraint_ = builderForValue.build();
5721  onChanged();
5722  } else {
5723  circuitBuilder_.setMessage(builderForValue.build());
5724  }
5725  constraintCase_ = 15;
5726  return this;
5727  }
5737  if (circuitBuilder_ == null) {
5738  if (constraintCase_ == 15 &&
5741  .mergeFrom(value).buildPartial();
5742  } else {
5743  constraint_ = value;
5744  }
5745  onChanged();
5746  } else {
5747  if (constraintCase_ == 15) {
5748  circuitBuilder_.mergeFrom(value);
5749  }
5750  circuitBuilder_.setMessage(value);
5751  }
5752  constraintCase_ = 15;
5753  return this;
5754  }
5764  if (circuitBuilder_ == null) {
5765  if (constraintCase_ == 15) {
5766  constraintCase_ = 0;
5767  constraint_ = null;
5768  onChanged();
5769  }
5770  } else {
5771  if (constraintCase_ == 15) {
5772  constraintCase_ = 0;
5773  constraint_ = null;
5774  }
5775  circuitBuilder_.clear();
5776  }
5777  return this;
5778  }
5788  return getCircuitFieldBuilder().getBuilder();
5789  }
5799  if ((constraintCase_ == 15) && (circuitBuilder_ != null)) {
5800  return circuitBuilder_.getMessageOrBuilder();
5801  } else {
5802  if (constraintCase_ == 15) {
5803  return (com.google.ortools.sat.CircuitConstraintProto) constraint_;
5804  }
5806  }
5807  }
5816  private com.google.protobuf.SingleFieldBuilderV3<
5818  getCircuitFieldBuilder() {
5819  if (circuitBuilder_ == null) {
5820  if (!(constraintCase_ == 15)) {
5822  }
5823  circuitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5826  getParentForChildren(),
5827  isClean());
5828  constraint_ = null;
5829  }
5830  constraintCase_ = 15;
5831  onChanged();;
5832  return circuitBuilder_;
5833  }
5834 
5835  private com.google.protobuf.SingleFieldBuilderV3<
5845  public boolean hasRoutes() {
5846  return constraintCase_ == 23;
5847  }
5857  if (routesBuilder_ == null) {
5858  if (constraintCase_ == 23) {
5859  return (com.google.ortools.sat.RoutesConstraintProto) constraint_;
5860  }
5862  } else {
5863  if (constraintCase_ == 23) {
5864  return routesBuilder_.getMessage();
5865  }
5867  }
5868  }
5877  if (routesBuilder_ == null) {
5878  if (value == null) {
5879  throw new NullPointerException();
5880  }
5881  constraint_ = value;
5882  onChanged();
5883  } else {
5884  routesBuilder_.setMessage(value);
5885  }
5886  constraintCase_ = 23;
5887  return this;
5888  }
5897  com.google.ortools.sat.RoutesConstraintProto.Builder builderForValue) {
5898  if (routesBuilder_ == null) {
5899  constraint_ = builderForValue.build();
5900  onChanged();
5901  } else {
5902  routesBuilder_.setMessage(builderForValue.build());
5903  }
5904  constraintCase_ = 23;
5905  return this;
5906  }
5915  if (routesBuilder_ == null) {
5916  if (constraintCase_ == 23 &&
5919  .mergeFrom(value).buildPartial();
5920  } else {
5921  constraint_ = value;
5922  }
5923  onChanged();
5924  } else {
5925  if (constraintCase_ == 23) {
5926  routesBuilder_.mergeFrom(value);
5927  }
5928  routesBuilder_.setMessage(value);
5929  }
5930  constraintCase_ = 23;
5931  return this;
5932  }
5941  if (routesBuilder_ == null) {
5942  if (constraintCase_ == 23) {
5943  constraintCase_ = 0;
5944  constraint_ = null;
5945  onChanged();
5946  }
5947  } else {
5948  if (constraintCase_ == 23) {
5949  constraintCase_ = 0;
5950  constraint_ = null;
5951  }
5952  routesBuilder_.clear();
5953  }
5954  return this;
5955  }
5964  return getRoutesFieldBuilder().getBuilder();
5965  }
5974  if ((constraintCase_ == 23) && (routesBuilder_ != null)) {
5975  return routesBuilder_.getMessageOrBuilder();
5976  } else {
5977  if (constraintCase_ == 23) {
5978  return (com.google.ortools.sat.RoutesConstraintProto) constraint_;
5979  }
5981  }
5982  }
5990  private com.google.protobuf.SingleFieldBuilderV3<
5992  getRoutesFieldBuilder() {
5993  if (routesBuilder_ == null) {
5994  if (!(constraintCase_ == 23)) {
5996  }
5997  routesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5999  (com.google.ortools.sat.RoutesConstraintProto) constraint_,
6000  getParentForChildren(),
6001  isClean());
6002  constraint_ = null;
6003  }
6004  constraintCase_ = 23;
6005  onChanged();;
6006  return routesBuilder_;
6007  }
6008 
6009  private com.google.protobuf.SingleFieldBuilderV3<
6020  public boolean hasCircuitCovering() {
6021  return constraintCase_ == 25;
6022  }
6033  if (circuitCoveringBuilder_ == null) {
6034  if (constraintCase_ == 25) {
6035  return (com.google.ortools.sat.CircuitCoveringConstraintProto) constraint_;
6036  }
6038  } else {
6039  if (constraintCase_ == 25) {
6040  return circuitCoveringBuilder_.getMessage();
6041  }
6043  }
6044  }
6054  if (circuitCoveringBuilder_ == null) {
6055  if (value == null) {
6056  throw new NullPointerException();
6057  }
6058  constraint_ = value;
6059  onChanged();
6060  } else {
6061  circuitCoveringBuilder_.setMessage(value);
6062  }
6063  constraintCase_ = 25;
6064  return this;
6065  }
6076  if (circuitCoveringBuilder_ == null) {
6077  constraint_ = builderForValue.build();
6078  onChanged();
6079  } else {
6080  circuitCoveringBuilder_.setMessage(builderForValue.build());
6081  }
6082  constraintCase_ = 25;
6083  return this;
6084  }
6094  if (circuitCoveringBuilder_ == null) {
6095  if (constraintCase_ == 25 &&
6098  .mergeFrom(value).buildPartial();
6099  } else {
6100  constraint_ = value;
6101  }
6102  onChanged();
6103  } else {
6104  if (constraintCase_ == 25) {
6105  circuitCoveringBuilder_.mergeFrom(value);
6106  }
6107  circuitCoveringBuilder_.setMessage(value);
6108  }
6109  constraintCase_ = 25;
6110  return this;
6111  }
6121  if (circuitCoveringBuilder_ == null) {
6122  if (constraintCase_ == 25) {
6123  constraintCase_ = 0;
6124  constraint_ = null;
6125  onChanged();
6126  }
6127  } else {
6128  if (constraintCase_ == 25) {
6129  constraintCase_ = 0;
6130  constraint_ = null;
6131  }
6132  circuitCoveringBuilder_.clear();
6133  }
6134  return this;
6135  }
6145  return getCircuitCoveringFieldBuilder().getBuilder();
6146  }
6156  if ((constraintCase_ == 25) && (circuitCoveringBuilder_ != null)) {
6157  return circuitCoveringBuilder_.getMessageOrBuilder();
6158  } else {
6159  if (constraintCase_ == 25) {
6160  return (com.google.ortools.sat.CircuitCoveringConstraintProto) constraint_;
6161  }
6163  }
6164  }
6173  private com.google.protobuf.SingleFieldBuilderV3<
6175  getCircuitCoveringFieldBuilder() {
6176  if (circuitCoveringBuilder_ == null) {
6177  if (!(constraintCase_ == 25)) {
6179  }
6180  circuitCoveringBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6183  getParentForChildren(),
6184  isClean());
6185  constraint_ = null;
6186  }
6187  constraintCase_ = 25;
6188  onChanged();;
6189  return circuitCoveringBuilder_;
6190  }
6191 
6192  private com.google.protobuf.SingleFieldBuilderV3<
6203  public boolean hasTable() {
6204  return constraintCase_ == 16;
6205  }
6216  if (tableBuilder_ == null) {
6217  if (constraintCase_ == 16) {
6218  return (com.google.ortools.sat.TableConstraintProto) constraint_;
6219  }
6221  } else {
6222  if (constraintCase_ == 16) {
6223  return tableBuilder_.getMessage();
6224  }
6226  }
6227  }
6237  if (tableBuilder_ == null) {
6238  if (value == null) {
6239  throw new NullPointerException();
6240  }
6241  constraint_ = value;
6242  onChanged();
6243  } else {
6244  tableBuilder_.setMessage(value);
6245  }
6246  constraintCase_ = 16;
6247  return this;
6248  }
6258  com.google.ortools.sat.TableConstraintProto.Builder builderForValue) {
6259  if (tableBuilder_ == null) {
6260  constraint_ = builderForValue.build();
6261  onChanged();
6262  } else {
6263  tableBuilder_.setMessage(builderForValue.build());
6264  }
6265  constraintCase_ = 16;
6266  return this;
6267  }
6277  if (tableBuilder_ == null) {
6278  if (constraintCase_ == 16 &&
6281  .mergeFrom(value).buildPartial();
6282  } else {
6283  constraint_ = value;
6284  }
6285  onChanged();
6286  } else {
6287  if (constraintCase_ == 16) {
6288  tableBuilder_.mergeFrom(value);
6289  }
6290  tableBuilder_.setMessage(value);
6291  }
6292  constraintCase_ = 16;
6293  return this;
6294  }
6303  public Builder clearTable() {
6304  if (tableBuilder_ == null) {
6305  if (constraintCase_ == 16) {
6306  constraintCase_ = 0;
6307  constraint_ = null;
6308  onChanged();
6309  }
6310  } else {
6311  if (constraintCase_ == 16) {
6312  constraintCase_ = 0;
6313  constraint_ = null;
6314  }
6315  tableBuilder_.clear();
6316  }
6317  return this;
6318  }
6328  return getTableFieldBuilder().getBuilder();
6329  }
6339  if ((constraintCase_ == 16) && (tableBuilder_ != null)) {
6340  return tableBuilder_.getMessageOrBuilder();
6341  } else {
6342  if (constraintCase_ == 16) {
6343  return (com.google.ortools.sat.TableConstraintProto) constraint_;
6344  }
6346  }
6347  }
6356  private com.google.protobuf.SingleFieldBuilderV3<
6358  getTableFieldBuilder() {
6359  if (tableBuilder_ == null) {
6360  if (!(constraintCase_ == 16)) {
6362  }
6363  tableBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6365  (com.google.ortools.sat.TableConstraintProto) constraint_,
6366  getParentForChildren(),
6367  isClean());
6368  constraint_ = null;
6369  }
6370  constraintCase_ = 16;
6371  onChanged();;
6372  return tableBuilder_;
6373  }
6374 
6375  private com.google.protobuf.SingleFieldBuilderV3<
6386  public boolean hasAutomaton() {
6387  return constraintCase_ == 17;
6388  }
6399  if (automatonBuilder_ == null) {
6400  if (constraintCase_ == 17) {
6401  return (com.google.ortools.sat.AutomatonConstraintProto) constraint_;
6402  }
6404  } else {
6405  if (constraintCase_ == 17) {
6406  return automatonBuilder_.getMessage();
6407  }
6409  }
6410  }
6420  if (automatonBuilder_ == null) {
6421  if (value == null) {
6422  throw new NullPointerException();
6423  }
6424  constraint_ = value;
6425  onChanged();
6426  } else {
6427  automatonBuilder_.setMessage(value);
6428  }
6429  constraintCase_ = 17;
6430  return this;
6431  }
6442  if (automatonBuilder_ == null) {
6443  constraint_ = builderForValue.build();
6444  onChanged();
6445  } else {
6446  automatonBuilder_.setMessage(builderForValue.build());
6447  }
6448  constraintCase_ = 17;
6449  return this;
6450  }
6460  if (automatonBuilder_ == null) {
6461  if (constraintCase_ == 17 &&
6464  .mergeFrom(value).buildPartial();
6465  } else {
6466  constraint_ = value;
6467  }
6468  onChanged();
6469  } else {
6470  if (constraintCase_ == 17) {
6471  automatonBuilder_.mergeFrom(value);
6472  }
6473  automatonBuilder_.setMessage(value);
6474  }
6475  constraintCase_ = 17;
6476  return this;
6477  }
6487  if (automatonBuilder_ == null) {
6488  if (constraintCase_ == 17) {
6489  constraintCase_ = 0;
6490  constraint_ = null;
6491  onChanged();
6492  }
6493  } else {
6494  if (constraintCase_ == 17) {
6495  constraintCase_ = 0;
6496  constraint_ = null;
6497  }
6498  automatonBuilder_.clear();
6499  }
6500  return this;
6501  }
6511  return getAutomatonFieldBuilder().getBuilder();
6512  }
6522  if ((constraintCase_ == 17) && (automatonBuilder_ != null)) {
6523  return automatonBuilder_.getMessageOrBuilder();
6524  } else {
6525  if (constraintCase_ == 17) {
6526  return (com.google.ortools.sat.AutomatonConstraintProto) constraint_;
6527  }
6529  }
6530  }
6539  private com.google.protobuf.SingleFieldBuilderV3<
6541  getAutomatonFieldBuilder() {
6542  if (automatonBuilder_ == null) {
6543  if (!(constraintCase_ == 17)) {
6545  }
6546  automatonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6549  getParentForChildren(),
6550  isClean());
6551  constraint_ = null;
6552  }
6553  constraintCase_ = 17;
6554  onChanged();;
6555  return automatonBuilder_;
6556  }
6557 
6558  private com.google.protobuf.SingleFieldBuilderV3<
6569  public boolean hasInverse() {
6570  return constraintCase_ == 18;
6571  }
6582  if (inverseBuilder_ == null) {
6583  if (constraintCase_ == 18) {
6584  return (com.google.ortools.sat.InverseConstraintProto) constraint_;
6585  }
6587  } else {
6588  if (constraintCase_ == 18) {
6589  return inverseBuilder_.getMessage();
6590  }
6592  }
6593  }
6603  if (inverseBuilder_ == null) {
6604  if (value == null) {
6605  throw new NullPointerException();
6606  }
6607  constraint_ = value;
6608  onChanged();
6609  } else {
6610  inverseBuilder_.setMessage(value);
6611  }
6612  constraintCase_ = 18;
6613  return this;
6614  }
6624  com.google.ortools.sat.InverseConstraintProto.Builder builderForValue) {
6625  if (inverseBuilder_ == null) {
6626  constraint_ = builderForValue.build();
6627  onChanged();
6628  } else {
6629  inverseBuilder_.setMessage(builderForValue.build());
6630  }
6631  constraintCase_ = 18;
6632  return this;
6633  }
6643  if (inverseBuilder_ == null) {
6644  if (constraintCase_ == 18 &&
6647  .mergeFrom(value).buildPartial();
6648  } else {
6649  constraint_ = value;
6650  }
6651  onChanged();
6652  } else {
6653  if (constraintCase_ == 18) {
6654  inverseBuilder_.mergeFrom(value);
6655  }
6656  inverseBuilder_.setMessage(value);
6657  }
6658  constraintCase_ = 18;
6659  return this;
6660  }
6670  if (inverseBuilder_ == null) {
6671  if (constraintCase_ == 18) {
6672  constraintCase_ = 0;
6673  constraint_ = null;
6674  onChanged();
6675  }
6676  } else {
6677  if (constraintCase_ == 18) {
6678  constraintCase_ = 0;
6679  constraint_ = null;
6680  }
6681  inverseBuilder_.clear();
6682  }
6683  return this;
6684  }
6694  return getInverseFieldBuilder().getBuilder();
6695  }
6705  if ((constraintCase_ == 18) && (inverseBuilder_ != null)) {
6706  return inverseBuilder_.getMessageOrBuilder();
6707  } else {
6708  if (constraintCase_ == 18) {
6709  return (com.google.ortools.sat.InverseConstraintProto) constraint_;
6710  }
6712  }
6713  }
6722  private com.google.protobuf.SingleFieldBuilderV3<
6724  getInverseFieldBuilder() {
6725  if (inverseBuilder_ == null) {
6726  if (!(constraintCase_ == 18)) {
6728  }
6729  inverseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6732  getParentForChildren(),
6733  isClean());
6734  constraint_ = null;
6735  }
6736  constraintCase_ = 18;
6737  onChanged();;
6738  return inverseBuilder_;
6739  }
6740 
6741  private com.google.protobuf.SingleFieldBuilderV3<
6753  public boolean hasReservoir() {
6754  return constraintCase_ == 24;
6755  }
6767  if (reservoirBuilder_ == null) {
6768  if (constraintCase_ == 24) {
6769  return (com.google.ortools.sat.ReservoirConstraintProto) constraint_;
6770  }
6772  } else {
6773  if (constraintCase_ == 24) {
6774  return reservoirBuilder_.getMessage();
6775  }
6777  }
6778  }
6789  if (reservoirBuilder_ == null) {
6790  if (value == null) {
6791  throw new NullPointerException();
6792  }
6793  constraint_ = value;
6794  onChanged();
6795  } else {
6796  reservoirBuilder_.setMessage(value);
6797  }
6798  constraintCase_ = 24;
6799  return this;
6800  }
6812  if (reservoirBuilder_ == null) {
6813  constraint_ = builderForValue.build();
6814  onChanged();
6815  } else {
6816  reservoirBuilder_.setMessage(builderForValue.build());
6817  }
6818  constraintCase_ = 24;
6819  return this;
6820  }
6831  if (reservoirBuilder_ == null) {
6832  if (constraintCase_ == 24 &&
6835  .mergeFrom(value).buildPartial();
6836  } else {
6837  constraint_ = value;
6838  }
6839  onChanged();
6840  } else {
6841  if (constraintCase_ == 24) {
6842  reservoirBuilder_.mergeFrom(value);
6843  }
6844  reservoirBuilder_.setMessage(value);
6845  }
6846  constraintCase_ = 24;
6847  return this;
6848  }
6859  if (reservoirBuilder_ == null) {
6860  if (constraintCase_ == 24) {
6861  constraintCase_ = 0;
6862  constraint_ = null;
6863  onChanged();
6864  }
6865  } else {
6866  if (constraintCase_ == 24) {
6867  constraintCase_ = 0;
6868  constraint_ = null;
6869  }
6870  reservoirBuilder_.clear();
6871  }
6872  return this;
6873  }
6884  return getReservoirFieldBuilder().getBuilder();
6885  }
6896  if ((constraintCase_ == 24) && (reservoirBuilder_ != null)) {
6897  return reservoirBuilder_.getMessageOrBuilder();
6898  } else {
6899  if (constraintCase_ == 24) {
6900  return (com.google.ortools.sat.ReservoirConstraintProto) constraint_;
6901  }
6903  }
6904  }
6914  private com.google.protobuf.SingleFieldBuilderV3<
6916  getReservoirFieldBuilder() {
6917  if (reservoirBuilder_ == null) {
6918  if (!(constraintCase_ == 24)) {
6920  }
6921  reservoirBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6924  getParentForChildren(),
6925  isClean());
6926  constraint_ = null;
6927  }
6928  constraintCase_ = 24;
6929  onChanged();;
6930  return reservoirBuilder_;
6931  }
6932 
6933  private com.google.protobuf.SingleFieldBuilderV3<
6944  public boolean hasInterval() {
6945  return constraintCase_ == 19;
6946  }
6957  if (intervalBuilder_ == null) {
6958  if (constraintCase_ == 19) {
6959  return (com.google.ortools.sat.IntervalConstraintProto) constraint_;
6960  }
6962  } else {
6963  if (constraintCase_ == 19) {
6964  return intervalBuilder_.getMessage();
6965  }
6967  }
6968  }
6978  if (intervalBuilder_ == null) {
6979  if (value == null) {
6980  throw new NullPointerException();
6981  }
6982  constraint_ = value;
6983  onChanged();
6984  } else {
6985  intervalBuilder_.setMessage(value);
6986  }
6987  constraintCase_ = 19;
6988  return this;
6989  }
7000  if (intervalBuilder_ == null) {
7001  constraint_ = builderForValue.build();
7002  onChanged();
7003  } else {
7004  intervalBuilder_.setMessage(builderForValue.build());
7005  }
7006  constraintCase_ = 19;
7007  return this;
7008  }
7018  if (intervalBuilder_ == null) {
7019  if (constraintCase_ == 19 &&
7022  .mergeFrom(value).buildPartial();
7023  } else {
7024  constraint_ = value;
7025  }
7026  onChanged();
7027  } else {
7028  if (constraintCase_ == 19) {
7029  intervalBuilder_.mergeFrom(value);
7030  }
7031  intervalBuilder_.setMessage(value);
7032  }
7033  constraintCase_ = 19;
7034  return this;
7035  }
7045  if (intervalBuilder_ == null) {
7046  if (constraintCase_ == 19) {
7047  constraintCase_ = 0;
7048  constraint_ = null;
7049  onChanged();
7050  }
7051  } else {
7052  if (constraintCase_ == 19) {
7053  constraintCase_ = 0;
7054  constraint_ = null;
7055  }
7056  intervalBuilder_.clear();
7057  }
7058  return this;
7059  }
7069  return getIntervalFieldBuilder().getBuilder();
7070  }
7080  if ((constraintCase_ == 19) && (intervalBuilder_ != null)) {
7081  return intervalBuilder_.getMessageOrBuilder();
7082  } else {
7083  if (constraintCase_ == 19) {
7084  return (com.google.ortools.sat.IntervalConstraintProto) constraint_;
7085  }
7087  }
7088  }
7097  private com.google.protobuf.SingleFieldBuilderV3<
7099  getIntervalFieldBuilder() {
7100  if (intervalBuilder_ == null) {
7101  if (!(constraintCase_ == 19)) {
7103  }
7104  intervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
7107  getParentForChildren(),
7108  isClean());
7109  constraint_ = null;
7110  }
7111  constraintCase_ = 19;
7112  onChanged();;
7113  return intervalBuilder_;
7114  }
7115 
7116  private com.google.protobuf.SingleFieldBuilderV3<
7128  public boolean hasNoOverlap() {
7129  return constraintCase_ == 20;
7130  }
7142  if (noOverlapBuilder_ == null) {
7143  if (constraintCase_ == 20) {
7144  return (com.google.ortools.sat.NoOverlapConstraintProto) constraint_;
7145  }
7147  } else {
7148  if (constraintCase_ == 20) {
7149  return noOverlapBuilder_.getMessage();
7150  }
7152  }
7153  }
7164  if (noOverlapBuilder_ == null) {
7165  if (value == null) {
7166  throw new NullPointerException();
7167  }
7168  constraint_ = value;
7169  onChanged();
7170  } else {
7171  noOverlapBuilder_.setMessage(value);
7172  }
7173  constraintCase_ = 20;
7174  return this;
7175  }
7187  if (noOverlapBuilder_ == null) {
7188  constraint_ = builderForValue.build();
7189  onChanged();
7190  } else {
7191  noOverlapBuilder_.setMessage(builderForValue.build());
7192  }
7193  constraintCase_ = 20;
7194  return this;
7195  }
7206  if (noOverlapBuilder_ == null) {
7207  if (constraintCase_ == 20 &&
7210  .mergeFrom(value).buildPartial();
7211  } else {
7212  constraint_ = value;
7213  }
7214  onChanged();
7215  } else {
7216  if (constraintCase_ == 20) {
7217  noOverlapBuilder_.mergeFrom(value);
7218  }
7219  noOverlapBuilder_.setMessage(value);
7220  }
7221  constraintCase_ = 20;
7222  return this;
7223  }
7234  if (noOverlapBuilder_ == null) {
7235  if (constraintCase_ == 20) {
7236  constraintCase_ = 0;
7237  constraint_ = null;
7238  onChanged();
7239  }
7240  } else {
7241  if (constraintCase_ == 20) {
7242  constraintCase_ = 0;
7243  constraint_ = null;
7244  }
7245  noOverlapBuilder_.clear();
7246  }
7247  return this;
7248  }
7259  return getNoOverlapFieldBuilder().getBuilder();
7260  }
7271  if ((constraintCase_ == 20) && (noOverlapBuilder_ != null)) {
7272  return noOverlapBuilder_.getMessageOrBuilder();
7273  } else {
7274  if (constraintCase_ == 20) {
7275  return (com.google.ortools.sat.NoOverlapConstraintProto) constraint_;
7276  }
7278  }
7279  }
7289  private com.google.protobuf.SingleFieldBuilderV3<
7291  getNoOverlapFieldBuilder() {
7292  if (noOverlapBuilder_ == null) {
7293  if (!(constraintCase_ == 20)) {
7295  }
7296  noOverlapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
7299  getParentForChildren(),
7300  isClean());
7301  constraint_ = null;
7302  }
7303  constraintCase_ = 20;
7304  onChanged();;
7305  return noOverlapBuilder_;
7306  }
7307 
7308  private com.google.protobuf.SingleFieldBuilderV3<
7318  public boolean hasNoOverlap2D() {
7319  return constraintCase_ == 21;
7320  }
7330  if (noOverlap2DBuilder_ == null) {
7331  if (constraintCase_ == 21) {
7332  return (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_;
7333  }
7335  } else {
7336  if (constraintCase_ == 21) {
7337  return noOverlap2DBuilder_.getMessage();
7338  }
7340  }
7341  }
7350  if (noOverlap2DBuilder_ == null) {
7351  if (value == null) {
7352  throw new NullPointerException();
7353  }
7354  constraint_ = value;
7355  onChanged();
7356  } else {
7357  noOverlap2DBuilder_.setMessage(value);
7358  }
7359  constraintCase_ = 21;
7360  return this;
7361  }
7371  if (noOverlap2DBuilder_ == null) {
7372  constraint_ = builderForValue.build();
7373  onChanged();
7374  } else {
7375  noOverlap2DBuilder_.setMessage(builderForValue.build());
7376  }
7377  constraintCase_ = 21;
7378  return this;
7379  }
7388  if (noOverlap2DBuilder_ == null) {
7389  if (constraintCase_ == 21 &&
7392  .mergeFrom(value).buildPartial();
7393  } else {
7394  constraint_ = value;
7395  }
7396  onChanged();
7397  } else {
7398  if (constraintCase_ == 21) {
7399  noOverlap2DBuilder_.mergeFrom(value);
7400  }
7401  noOverlap2DBuilder_.setMessage(value);
7402  }
7403  constraintCase_ = 21;
7404  return this;
7405  }
7414  if (noOverlap2DBuilder_ == null) {
7415  if (constraintCase_ == 21) {
7416  constraintCase_ = 0;
7417  constraint_ = null;
7418  onChanged();
7419  }
7420  } else {
7421  if (constraintCase_ == 21) {
7422  constraintCase_ = 0;
7423  constraint_ = null;
7424  }
7425  noOverlap2DBuilder_.clear();
7426  }
7427  return this;
7428  }
7437  return getNoOverlap2DFieldBuilder().getBuilder();
7438  }
7447  if ((constraintCase_ == 21) && (noOverlap2DBuilder_ != null)) {
7448  return noOverlap2DBuilder_.getMessageOrBuilder();
7449  } else {
7450  if (constraintCase_ == 21) {
7451  return (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_;
7452  }
7454  }
7455  }
7463  private com.google.protobuf.SingleFieldBuilderV3<
7465  getNoOverlap2DFieldBuilder() {
7466  if (noOverlap2DBuilder_ == null) {
7467  if (!(constraintCase_ == 21)) {
7469  }
7470  noOverlap2DBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
7473  getParentForChildren(),
7474  isClean());
7475  constraint_ = null;
7476  }
7477  constraintCase_ = 21;
7478  onChanged();;
7479  return noOverlap2DBuilder_;
7480  }
7481 
7482  private com.google.protobuf.SingleFieldBuilderV3<
7494  public boolean hasCumulative() {
7495  return constraintCase_ == 22;
7496  }
7508  if (cumulativeBuilder_ == null) {
7509  if (constraintCase_ == 22) {
7510  return (com.google.ortools.sat.CumulativeConstraintProto) constraint_;
7511  }
7513  } else {
7514  if (constraintCase_ == 22) {
7515  return cumulativeBuilder_.getMessage();
7516  }
7518  }
7519  }
7530  if (cumulativeBuilder_ == null) {
7531  if (value == null) {
7532  throw new NullPointerException();
7533  }
7534  constraint_ = value;
7535  onChanged();
7536  } else {
7537  cumulativeBuilder_.setMessage(value);
7538  }
7539  constraintCase_ = 22;
7540  return this;
7541  }
7553  if (cumulativeBuilder_ == null) {
7554  constraint_ = builderForValue.build();
7555  onChanged();
7556  } else {
7557  cumulativeBuilder_.setMessage(builderForValue.build());
7558  }
7559  constraintCase_ = 22;
7560  return this;
7561  }
7572  if (cumulativeBuilder_ == null) {
7573  if (constraintCase_ == 22 &&
7576  .mergeFrom(value).buildPartial();
7577  } else {
7578  constraint_ = value;
7579  }
7580  onChanged();
7581  } else {
7582  if (constraintCase_ == 22) {
7583  cumulativeBuilder_.mergeFrom(value);
7584  }
7585  cumulativeBuilder_.setMessage(value);
7586  }
7587  constraintCase_ = 22;
7588  return this;
7589  }
7600  if (cumulativeBuilder_ == null) {
7601  if (constraintCase_ == 22) {
7602  constraintCase_ = 0;
7603  constraint_ = null;
7604  onChanged();
7605  }
7606  } else {
7607  if (constraintCase_ == 22) {
7608  constraintCase_ = 0;
7609  constraint_ = null;
7610  }
7611  cumulativeBuilder_.clear();
7612  }
7613  return this;
7614  }
7625  return getCumulativeFieldBuilder().getBuilder();
7626  }
7637  if ((constraintCase_ == 22) && (cumulativeBuilder_ != null)) {
7638  return cumulativeBuilder_.getMessageOrBuilder();
7639  } else {
7640  if (constraintCase_ == 22) {
7641  return (com.google.ortools.sat.CumulativeConstraintProto) constraint_;
7642  }
7644  }
7645  }
7655  private com.google.protobuf.SingleFieldBuilderV3<
7657  getCumulativeFieldBuilder() {
7658  if (cumulativeBuilder_ == null) {
7659  if (!(constraintCase_ == 22)) {
7661  }
7662  cumulativeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
7665  getParentForChildren(),
7666  isClean());
7667  constraint_ = null;
7668  }
7669  constraintCase_ = 22;
7670  onChanged();;
7671  return cumulativeBuilder_;
7672  }
7673  @java.lang.Override
7675  final com.google.protobuf.UnknownFieldSet unknownFields) {
7676  return super.setUnknownFields(unknownFields);
7677  }
7678 
7679  @java.lang.Override
7681  final com.google.protobuf.UnknownFieldSet unknownFields) {
7682  return super.mergeUnknownFields(unknownFields);
7683  }
7684 
7685 
7686  // @@protoc_insertion_point(builder_scope:operations_research.sat.ConstraintProto)
7687  }
7688 
7689  // @@protoc_insertion_point(class_scope:operations_research.sat.ConstraintProto)
7690  private static final com.google.ortools.sat.ConstraintProto DEFAULT_INSTANCE;
7691  static {
7692  DEFAULT_INSTANCE = new com.google.ortools.sat.ConstraintProto();
7693  }
7694 
7696  return DEFAULT_INSTANCE;
7697  }
7698 
7699  private static final com.google.protobuf.Parser<ConstraintProto>
7700  PARSER = new com.google.protobuf.AbstractParser<ConstraintProto>() {
7701  @java.lang.Override
7702  public ConstraintProto parsePartialFrom(
7703  com.google.protobuf.CodedInputStream input,
7704  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7705  throws com.google.protobuf.InvalidProtocolBufferException {
7706  return new ConstraintProto(input, extensionRegistry);
7707  }
7708  };
7709 
7710  public static com.google.protobuf.Parser<ConstraintProto> parser() {
7711  return PARSER;
7712  }
7713 
7714  @java.lang.Override
7715  public com.google.protobuf.Parser<ConstraintProto> getParserForType() {
7716  return PARSER;
7717  }
7718 
7719  @java.lang.Override
7721  return DEFAULT_INSTANCE;
7722  }
7723 
7724 }
7725 
Builder mergeAutomaton(com.google.ortools.sat.AutomatonConstraintProto value)
com.google.ortools.sat.IntegerArgumentProto.Builder getIntDivBuilder()
Builder setNoOverlap2D(com.google.ortools.sat.NoOverlap2DConstraintProto.Builder builderForValue)
com.google.ortools.sat.ReservoirConstraintProto getReservoir()
com.google.ortools.sat.LinearConstraintProtoOrBuilder getLinearOrBuilder()
.lang.Override boolean equals(final java.lang.Object obj)
Builder setNoOverlap(com.google.ortools.sat.NoOverlapConstraintProto.Builder builderForValue)
Builder mergeCumulative(com.google.ortools.sat.CumulativeConstraintProto value)
boolean hasNoOverlap()
java.lang.String getName()
AUTOMATON
static com.google.ortools.sat.LinearConstraintProto getDefaultInstance()
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
boolean hasElement()
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
static Builder newBuilder()
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
boolean hasIntProd()
.lang.Override com.google.ortools.sat.TableConstraintProto buildPartial()
Builder setIntProd(com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue)
Builder mergeReservoir(com.google.ortools.sat.ReservoirConstraintProto value)
static com.google.protobuf.Parser< ConstraintProto > parser()
ALL_DIFF
.lang.Override com.google.ortools.sat.LinearArgumentProto buildPartial()
Builder mergeInverse(com.google.ortools.sat.InverseConstraintProto value)
.lang.Override com.google.ortools.sat.IntegerArgumentProto buildPartial()
Builder setElement(com.google.ortools.sat.ElementConstraintProto value)
.lang.Override com.google.ortools.sat.NoOverlapConstraintProto buildPartial()
static final int CIRCUIT_COVERING_FIELD_NUMBER
com.google.ortools.sat.InverseConstraintProto getInverse()
Builder setIntMax(com.google.ortools.sat.IntegerArgumentProto value)
com.google.ortools.sat.IntegerArgumentProto.Builder getIntModBuilder()
Builder mergeLinear(com.google.ortools.sat.LinearConstraintProto value)
com.google.ortools.sat.BoolArgumentProtoOrBuilder getAtMostOneOrBuilder()
LINEAR
com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntDivOrBuilder()
com.google.ortools.sat.IntervalConstraintProtoOrBuilder getIntervalOrBuilder()
Builder mergeAllDiff(com.google.ortools.sat.AllDifferentConstraintProto value)
boolean hasLinMin()
static com.google.ortools.sat.IntervalConstraintProto getDefaultInstance()
com.google.ortools.sat.ReservoirConstraintProto.Builder getReservoirBuilder()
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
static com.google.protobuf.Parser< IntervalConstraintProto > parser()
static final int ROUTES_FIELD_NUMBER
com.google.ortools.sat.CumulativeConstraintProto getCumulative()
Builder setInterval(com.google.ortools.sat.IntervalConstraintProto.Builder builderForValue)
Builder setCircuitCovering(com.google.ortools.sat.CircuitCoveringConstraintProto value)
com.google.ortools.sat.BoolArgumentProto getBoolXor()
static com.google.ortools.sat.CircuitConstraintProto getDefaultInstance()
com.google.ortools.sat.TableConstraintProto getTable()
static final int NAME_FIELD_NUMBER
Protobuf type.
com.google.ortools.sat.AutomatonConstraintProto getAutomaton()
.lang.Override com.google.ortools.sat.ElementConstraintProto buildPartial()
static final int LIN_MIN_FIELD_NUMBER
boolean hasLinear()
static com.google.protobuf.Parser< TableConstraintProto > parser()
com.google.ortools.sat.LinearConstraintProtoOrBuilder getLinearOrBuilder()
static com.google.ortools.sat.ConstraintProto parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.sat.CircuitCoveringConstraintProto getDefaultInstance()
.lang.Override com.google.ortools.sat.AutomatonConstraintProto buildPartial()
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
com.google.ortools.sat.NoOverlap2DConstraintProtoOrBuilder getNoOverlap2DOrBuilder()
com.google.ortools.sat.IntegerArgumentProto getIntMax()
static com.google.ortools.sat.TableConstraintProto getDefaultInstance()
static final int INTERVAL_FIELD_NUMBER
.lang.Override Builder toBuilder()
com.google.ortools.sat.LinearArgumentProtoOrBuilder getLinMaxOrBuilder()
.lang.Override int hashCode()
com.google.ortools.sat.ReservoirConstraintProtoOrBuilder getReservoirOrBuilder()
static Builder newBuilder(com.google.ortools.sat.ConstraintProto prototype)
com.google.ortools.sat.CircuitCoveringConstraintProto.Builder getCircuitCoveringBuilder()
.lang.Override boolean equals(final java.lang.Object obj)
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
com.google.ortools.sat.CircuitConstraintProtoOrBuilder getCircuitOrBuilder()
static final int CIRCUIT_FIELD_NUMBER
LIN_MAX
.lang.Override com.google.ortools.sat.CircuitCoveringConstraintProto buildPartial()
Builder mergeInterval(com.google.ortools.sat.IntervalConstraintProto value)
static com.google.ortools.sat.ConstraintProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
com.google.ortools.sat.TableConstraintProtoOrBuilder getTableOrBuilder()
ConstraintCase getConstraintCase()
.lang.Override com.google.ortools.sat.ReservoirConstraintProto buildPartial()
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
Builder clearInverse()
.lang.Override com.google.ortools.sat.InverseConstraintProto buildPartial()
static final int LIN_MAX_FIELD_NUMBER
Builder setRoutes(com.google.ortools.sat.RoutesConstraintProto value)
.lang.Override boolean equals(final java.lang.Object obj)
Builder setCircuit(com.google.ortools.sat.CircuitConstraintProto.Builder builderForValue)
boolean hasAutomaton()
static com.google.ortools.sat.ConstraintProto parseFrom(com.google.protobuf.CodedInputStream input)
boolean hasBoolOr()
static com.google.protobuf.Parser< ReservoirConstraintProto > parser()
com.google.ortools.sat.InverseConstraintProtoOrBuilder getInverseOrBuilder()
static com.google.ortools.sat.ConstraintProto parseDelimitedFrom(java.io.InputStream input)
static final int INT_DIV_FIELD_NUMBER
com.google.ortools.sat.IntervalConstraintProto getInterval()
static Builder newBuilder()
com.google.ortools.sat.ReservoirConstraintProto getReservoir()
boolean hasCircuit()
.lang.Override final com.google.protobuf.UnknownFieldSet getUnknownFields()
com.google.ortools.sat.AllDifferentConstraintProtoOrBuilder getAllDiffOrBuilder()
Builder mergeBoolXor(com.google.ortools.sat.BoolArgumentProto value)
.lang.Override Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
.lang.Override int getSerializedSize()
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
boolean hasIntMin()
Builder clearBoolXor()
.lang.Override int hashCode()
com.google.ortools.sat.LinearArgumentProtoOrBuilder getLinMaxOrBuilder()
boolean hasLinMax()
Builder mergeFrom(com.google.ortools.sat.ConstraintProto other)
java.lang.String getName()
com.google.protobuf.ByteString getNameBytes()
.lang.Override boolean equals(final java.lang.Object obj)
int getEnforcementLiteralCount()
com.google.ortools.sat.LinearArgumentProto getLinMax()
static com.google.ortools.sat.LinearArgumentProto getDefaultInstance()
Builder clearAllDiff()
com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntProdOrBuilder()
Builder setEnforcementLiteral(int index, int value)
boolean hasBoolXor()
Builder clearLinear()
boolean hasLinMin()
static final int ALL_DIFF_FIELD_NUMBER
.lang.Override boolean equals(final java.lang.Object obj)
com.google.ortools.sat.TableConstraintProtoOrBuilder getTableOrBuilder()
Builder setBoolAnd(com.google.ortools.sat.BoolArgumentProto.Builder builderForValue)
.lang.Override boolean equals(final java.lang.Object obj)
com.google.ortools.sat.AutomatonConstraintProtoOrBuilder getAutomatonOrBuilder()
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
com.google.ortools.sat.InverseConstraintProtoOrBuilder getInverseOrBuilder()
.lang.Override com.google.ortools.sat.NoOverlap2DConstraintProto buildPartial()
Builder clearBoolAnd()
static com.google.ortools.sat.InverseConstraintProto getDefaultInstance()
com.google.ortools.sat.InverseConstraintProto.Builder getInverseBuilder()
Builder setAllDiff(com.google.ortools.sat.AllDifferentConstraintProto value)
.lang.Override com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntDivOrBuilder()
int getEnforcementLiteral(int index)
BOOL_OR
com.google.ortools.sat.IntegerArgumentProto getIntProd()
boolean hasCircuitCovering()
Builder setIntProd(com.google.ortools.sat.IntegerArgumentProto value)
.lang.Override Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
static com.google.protobuf.Parser< NoOverlap2DConstraintProto > parser()
.lang.Override final boolean isInitialized()
Builder setNoOverlap2D(com.google.ortools.sat.NoOverlap2DConstraintProto value)
Builder addEnforcementLiteral(int value)
static Builder newBuilder()
.lang.Override com.google.ortools.sat.ConstraintProto build()
.lang.Override com.google.protobuf.Parser< ConstraintProto > getParserForType()
Builder mergeIntMin(com.google.ortools.sat.IntegerArgumentProto value)
.lang.Override boolean equals(final java.lang.Object obj)
com.google.ortools.sat.AllDifferentConstraintProto getAllDiff()
com.google.ortools.sat.RoutesConstraintProto.Builder getRoutesBuilder()
.lang.Override boolean equals(final java.lang.Object obj)
boolean hasBoolAnd()
Builder clearConstraint()
static final int BOOL_OR_FIELD_NUMBER
static com.google.ortools.sat.ConstraintProto parseFrom(byte[] data)
com.google.ortools.sat.IntegerArgumentProto.Builder getIntMinBuilder()
boolean hasCumulative()
boolean hasElement()
Builder clearAutomaton()
Builder clearIntMax()
Builder clearCircuit()
Builder setLinear(com.google.ortools.sat.LinearConstraintProto value)
Builder setIntDiv(com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue)
com.google.ortools.sat.NoOverlapConstraintProto.Builder getNoOverlapBuilder()
Builder mergeAtMostOne(com.google.ortools.sat.BoolArgumentProto value)
com.google.ortools.sat.NoOverlapConstraintProtoOrBuilder getNoOverlapOrBuilder()
com.google.ortools.sat.AllDifferentConstraintProto getAllDiff()
.lang.Override Builder clone()
INT_MOD
com.google.ortools.sat.BoolArgumentProto.Builder getBoolOrBuilder()
Builder mergeBoolAnd(com.google.ortools.sat.BoolArgumentProto value)
.lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Builder setTable(com.google.ortools.sat.TableConstraintProto value)
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
boolean hasInverse()
com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntMinOrBuilder()
Builder mergeCircuit(com.google.ortools.sat.CircuitConstraintProto value)
com.google.ortools.sat.CircuitConstraintProto.Builder getCircuitBuilder()
.lang.Override com.google.ortools.sat.LinearConstraintProto buildPartial()
Builder setReservoir(com.google.ortools.sat.ReservoirConstraintProto.Builder builderForValue)
boolean hasCircuitCovering()
Builder setInverse(com.google.ortools.sat.InverseConstraintProto.Builder builderForValue)
com.google.ortools.sat.IntegerArgumentProto getIntMod()
com.google.ortools.sat.BoolArgumentProto getBoolOr()
static final int CUMULATIVE_FIELD_NUMBER
ROUTES
com.google.ortools.sat.LinearArgumentProtoOrBuilder getLinMinOrBuilder()
static final int BOOL_AND_FIELD_NUMBER
com.google.ortools.sat.ElementConstraintProtoOrBuilder getElementOrBuilder()
com.google.ortools.sat.RoutesConstraintProtoOrBuilder getRoutesOrBuilder()
Builder clearCumulative()
static com.google.protobuf.Parser< CircuitCoveringConstraintProto > parser()
static com.google.ortools.sat.RoutesConstraintProto getDefaultInstance()
Builder setIntMod(com.google.ortools.sat.IntegerArgumentProto value)
com.google.ortools.sat.CumulativeConstraintProto.Builder getCumulativeBuilder()
static com.google.protobuf.Parser< AllDifferentConstraintProto > parser()
com.google.ortools.sat.NoOverlapConstraintProto getNoOverlap()
Builder mergeTable(com.google.ortools.sat.TableConstraintProto value)
.lang.Override void writeTo(com.google.protobuf.CodedOutputStream output)
boolean hasIntDiv()
static Builder newBuilder()
INT_MAX
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolOrOrBuilder()
java.util.List< java.lang.Integer > getEnforcementLiteralList()
boolean hasIntMax()
.lang.Override int hashCode()
.lang.Override com.google.ortools.sat.AllDifferentConstraintProto buildPartial()
com.google.ortools.sat.IntegerArgumentProto getIntDiv()
static com.google.ortools.sat.AutomatonConstraintProto getDefaultInstance()
CUMULATIVE
Builder mergeIntMod(com.google.ortools.sat.IntegerArgumentProto value)
INT_MIN
static Builder newBuilder()
static Builder newBuilder()
.lang.Override final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolOrOrBuilder()
boolean hasAllDiff()
INTERVAL
com.google.ortools.sat.BoolArgumentProto.Builder getAtMostOneBuilder()
Builder setElement(com.google.ortools.sat.ElementConstraintProto.Builder builderForValue)
.lang.Override int hashCode()
com.google.ortools.sat.CircuitCoveringConstraintProto getCircuitCovering()
com.google.ortools.sat.ElementConstraintProtoOrBuilder getElementOrBuilder()
.lang.Override int hashCode()
static final int NO_OVERLAP_FIELD_NUMBER
com.google.ortools.sat.LinearConstraintProto getLinear()
com.google.ortools.sat.CumulativeConstraintProtoOrBuilder getCumulativeOrBuilder()
Builder setBoolXor(com.google.ortools.sat.BoolArgumentProto value)
static com.google.protobuf.Parser< LinearArgumentProto > parser()
static com.google.ortools.sat.NoOverlap2DConstraintProto getDefaultInstance()
.lang.Override boolean equals(final java.lang.Object obj)
Builder setAtMostOne(com.google.ortools.sat.BoolArgumentProto.Builder builderForValue)
boolean hasNoOverlap2D()
.lang.Override int hashCode()
static com.google.ortools.sat.ConstraintProto parseFrom(com.google.protobuf.ByteString data)
com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntMaxOrBuilder()
com.google.ortools.sat.AllDifferentConstraintProto.Builder getAllDiffBuilder()
Builder setCircuitCovering(com.google.ortools.sat.CircuitCoveringConstraintProto.Builder builderForValue)
Builder setIntMin(com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue)
.lang.Override Builder newBuilderForType()
com.google.ortools.sat.CircuitConstraintProtoOrBuilder getCircuitOrBuilder()
static Builder newBuilder()
Builder setNameBytes(com.google.protobuf.ByteString value)
com.google.ortools.sat.ReservoirConstraintProtoOrBuilder getReservoirOrBuilder()
com.google.ortools.sat.NoOverlap2DConstraintProto getNoOverlap2D()
com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntMaxOrBuilder()
.lang.Override int hashCode()
com.google.ortools.sat.ElementConstraintProto getElement()
com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolAndOrBuilder()
.lang.Override int hashCode()
com.google.ortools.sat.CumulativeConstraintProtoOrBuilder getCumulativeOrBuilder()
com.google.ortools.sat.BoolArgumentProto.Builder getBoolXorBuilder()
.lang.Override int hashCode()
static final int INT_PROD_FIELD_NUMBER
com.google.ortools.sat.NoOverlap2DConstraintProto.Builder getNoOverlap2DBuilder()
Builder setLinMin(com.google.ortools.sat.LinearArgumentProto value)
CONSTRAINT_NOT_SET
RESERVOIR
Builder setTable(com.google.ortools.sat.TableConstraintProto.Builder builderForValue)
static Builder newBuilder()
static final int AUTOMATON_FIELD_NUMBER
.lang.Override int hashCode()
boolean hasTable()
com.google.ortools.sat.LinearArgumentProto getLinMin()
Builder setIntMin(com.google.ortools.sat.IntegerArgumentProto value)
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
Builder setReservoir(com.google.ortools.sat.ReservoirConstraintProto value)
com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntProdOrBuilder()
Builder clearAtMostOne()
Builder setBoolOr(com.google.ortools.sat.BoolArgumentProto.Builder builderForValue)
.lang.Override com.google.ortools.sat.CircuitConstraintProto buildPartial()
boolean hasBoolXor()
static com.google.protobuf.Parser< BoolArgumentProto > parser()
Protobuf type.
com.google.ortools.sat.IntegerArgumentProto getIntMin()
static com.google.protobuf.Parser< CumulativeConstraintProto > parser()
Builder clearReservoir()
Builder clearIntMin()
Builder setIntMod(com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue)
.lang.Override boolean equals(final java.lang.Object obj)
boolean hasTable()
Builder mergeNoOverlap2D(com.google.ortools.sat.NoOverlap2DConstraintProto value)
static com.google.ortools.sat.BoolArgumentProto getDefaultInstance()
Builder setName(java.lang.String value)
com.google.ortools.sat.IntegerArgumentProto getIntMod()
static com.google.ortools.sat.ReservoirConstraintProto getDefaultInstance()
com.google.ortools.sat.IntervalConstraintProtoOrBuilder getIntervalOrBuilder()
com.google.ortools.sat.BoolArgumentProto getAtMostOne()
boolean hasIntMax()
.lang.Override Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
com.google.ortools.sat.BoolArgumentProto getBoolAnd()
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
CIRCUIT
Builder setCumulative(com.google.ortools.sat.CumulativeConstraintProto value)
ConstraintCase getConstraintCase()
BOOL_XOR
com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolXorOrBuilder()
com.google.ortools.sat.NoOverlap2DConstraintProtoOrBuilder getNoOverlap2DOrBuilder()
int getEnforcementLiteral(int index)
com.google.ortools.sat.AutomatonConstraintProtoOrBuilder getAutomatonOrBuilder()
com.google.ortools.sat.IntegerArgumentProto getIntDiv()
static Builder newBuilder()
TABLE
Builder clearIntMod()
.lang.Override int hashCode()
INT_DIV
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
static final int ENFORCEMENT_LITERAL_FIELD_NUMBER
static final int INVERSE_FIELD_NUMBER
com.google.protobuf.ByteString getNameBytes()
static com.google.protobuf.Parser< CircuitConstraintProto > parser()
static final int TABLE_FIELD_NUMBER
Builder mergeCircuitCovering(com.google.ortools.sat.CircuitCoveringConstraintProto value)
.lang.Override com.google.ortools.sat.RoutesConstraintProto buildPartial()
INVERSE
Builder setAtMostOne(com.google.ortools.sat.BoolArgumentProto value)
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
Builder setBoolAnd(com.google.ortools.sat.BoolArgumentProto value)
boolean hasLinMax()
.lang.Override boolean equals(final java.lang.Object obj)
static com.google.protobuf.Parser< RoutesConstraintProto > parser()
boolean hasIntDiv()
com.google.ortools.sat.InverseConstraintProto getInverse()
Builder setLinMax(com.google.ortools.sat.LinearArgumentProto value)
com.google.ortools.sat.CircuitCoveringConstraintProtoOrBuilder getCircuitCoveringOrBuilder()
.lang.Override boolean equals(final java.lang.Object obj)
com.google.ortools.sat.CircuitConstraintProto getCircuit()
Builder mergeIntDiv(com.google.ortools.sat.IntegerArgumentProto value)
.lang.Override java.lang.Object newInstance(UnusedPrivateParameter unused)
Builder clearNoOverlap2D()
.lang.Override Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
boolean hasNoOverlap()
boolean hasIntMod()
com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntMinOrBuilder()
Builder clearInterval()
com.google.ortools.sat.LinearConstraintProto.Builder getLinearBuilder()
.lang.Override int hashCode()
boolean hasBoolOr()
INT_PROD
.lang.Override final boolean isInitialized()
.lang.Override com.google.ortools.sat.ConstraintProto buildPartial()
boolean hasInverse()
NO_OVERLAP
com.google.ortools.sat.LinearArgumentProto.Builder getLinMaxBuilder()
static com.google.ortools.sat.ConstraintProto parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.sat.ConstraintProto getDefaultInstance()
static com.google.ortools.sat.ConstraintProto parseFrom(java.io.InputStream input)
Builder setAutomaton(com.google.ortools.sat.AutomatonConstraintProto value)
com.google.ortools.sat.RoutesConstraintProtoOrBuilder getRoutesOrBuilder()
.lang.Override com.google.ortools.sat.BoolArgumentProto buildPartial()
static com.google.protobuf.Parser< LinearConstraintProto > parser()
Builder setLinMin(com.google.ortools.sat.LinearArgumentProto.Builder builderForValue)
.lang.Override com.google.ortools.sat.CumulativeConstraintProto buildPartial()
Builder clearEnforcementLiteral()
static final int AT_MOST_ONE_FIELD_NUMBER
com.google.ortools.sat.LinearConstraintProto getLinear()
Builder addAllEnforcementLiteral(java.lang.Iterable<? extends java.lang.Integer > values)
com.google.ortools.sat.BoolArgumentProto.Builder getBoolAndBuilder()
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
NO_OVERLAP_2D
static com.google.protobuf.Parser< ElementConstraintProto > parser()
com.google.ortools.sat.TableConstraintProto getTable()
boolean hasRoutes()
Builder setCumulative(com.google.ortools.sat.CumulativeConstraintProto.Builder builderForValue)
static com.google.ortools.sat.ConstraintProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
boolean hasIntMod()
static Builder newBuilder()
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
boolean hasIntMin()
.lang.Override int hashCode()
boolean hasIntProd()
AT_MOST_ONE
static Builder newBuilder()
boolean hasAtMostOne()
static final int LINEAR_FIELD_NUMBER
static com.google.ortools.sat.ConstraintProto parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
boolean hasAllDiff()
LIN_MIN
static Builder newBuilder()
com.google.ortools.sat.IntegerArgumentProto getIntProd()
com.google.ortools.sat.IntegerArgumentProto getIntMin()
Builder clearCircuitCovering()
Builder clearTable()
com.google.ortools.sat.AutomatonConstraintProto getAutomaton()
Builder setBoolXor(com.google.ortools.sat.BoolArgumentProto.Builder builderForValue)
com.google.ortools.sat.CircuitCoveringConstraintProtoOrBuilder getCircuitCoveringOrBuilder()
static Builder newBuilder()
BOOL_AND
com.google.ortools.sat.CircuitConstraintProto getCircuit()
.lang.Override boolean equals(final java.lang.Object obj)
static com.google.ortools.sat.CumulativeConstraintProto getDefaultInstance()
Builder setAllDiff(com.google.ortools.sat.AllDifferentConstraintProto.Builder builderForValue)
Builder mergeElement(com.google.ortools.sat.ElementConstraintProto value)
.lang.Override int hashCode()
boolean hasReservoir()
static final int INT_MOD_FIELD_NUMBER
int getEnforcementLiteralCount()
com.google.ortools.sat.BoolArgumentProto getAtMostOne()
boolean hasInterval()
com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntModOrBuilder()
com.google.ortools.sat.IntegerArgumentProto.Builder getIntMaxBuilder()
static com.google.ortools.sat.ConstraintProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Builder setInterval(com.google.ortools.sat.IntervalConstraintProto value)
Builder setLinear(com.google.ortools.sat.LinearConstraintProto.Builder builderForValue)
com.google.ortools.sat.LinearArgumentProtoOrBuilder getLinMinOrBuilder()
com.google.ortools.sat.LinearArgumentProto getLinMax()
com.google.ortools.sat.AutomatonConstraintProto.Builder getAutomatonBuilder()
.lang.Override int hashCode()
.lang.Override boolean equals(final java.lang.Object obj)
static ConstraintCase forNumber(int value)
static Builder newBuilder()
Builder setNoOverlap(com.google.ortools.sat.NoOverlapConstraintProto value)
static Builder newBuilder()
Builder mergeLinMin(com.google.ortools.sat.LinearArgumentProto value)
Builder clearBoolOr()
boolean hasAtMostOne()
.lang.Override boolean equals(final java.lang.Object obj)
static Builder newBuilder()
.lang.Override Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Builder setCircuit(com.google.ortools.sat.CircuitConstraintProto value)
.lang.Override Builder clear()
CIRCUIT_COVERING
Builder setBoolOr(com.google.ortools.sat.BoolArgumentProto value)
.lang.Override int hashCode()
com.google.ortools.sat.IntervalConstraintProto getInterval()
.lang.Override com.google.ortools.sat.ConstraintProto getDefaultInstanceForType()
com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolAndOrBuilder()
Builder setIntMax(com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue)
Builder clearLinMin()
.lang.Override boolean equals(final java.lang.Object obj)
.lang.Deprecated static ConstraintCase valueOf(int value)
Builder clearIntProd()
Builder mergeNoOverlap(com.google.ortools.sat.NoOverlapConstraintProto value)
static final int ELEMENT_FIELD_NUMBER
com.google.ortools.sat.CircuitCoveringConstraintProto getCircuitCovering()
static final int RESERVOIR_FIELD_NUMBER
java.util.List< java.lang.Integer > getEnforcementLiteralList()
Builder mergeRoutes(com.google.ortools.sat.RoutesConstraintProto value)
static com.google.ortools.sat.ConstraintProto parseFrom(java.nio.ByteBuffer data)
Builder setIntDiv(com.google.ortools.sat.IntegerArgumentProto value)
com.google.ortools.sat.NoOverlapConstraintProto getNoOverlap()
static com.google.protobuf.Parser< IntegerArgumentProto > parser()
com.google.ortools.sat.LinearArgumentProto getLinMin()
int getNumber()
com.google.ortools.sat.IntegerArgumentProto.Builder getIntProdBuilder()
com.google.ortools.sat.BoolArgumentProto getBoolAnd()
.lang.Override com.google.ortools.sat.ConstraintProto getDefaultInstanceForType()
com.google.ortools.sat.RoutesConstraintProto getRoutes()
com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntModOrBuilder()
.lang.Override final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
com.google.ortools.sat.BoolArgumentProto getBoolOr()
Builder setAutomaton(com.google.ortools.sat.AutomatonConstraintProto.Builder builderForValue)
static com.google.ortools.sat.ElementConstraintProto getDefaultInstance()
Builder mergeBoolOr(com.google.ortools.sat.BoolArgumentProto value)
static final int NO_OVERLAP_2D_FIELD_NUMBER
Builder clearNoOverlap()
Builder clearLinMax()
boolean hasCircuit()
boolean hasRoutes()
com.google.ortools.sat.ElementConstraintProto.Builder getElementBuilder()
static com.google.protobuf.Parser< NoOverlapConstraintProto > parser()
static com.google.ortools.sat.IntegerArgumentProto getDefaultInstance()
com.google.ortools.sat.NoOverlap2DConstraintProto getNoOverlap2D()
com.google.ortools.sat.NoOverlapConstraintProtoOrBuilder getNoOverlapOrBuilder()
boolean hasBoolAnd()
com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolXorOrBuilder()
com.google.ortools.sat.AllDifferentConstraintProtoOrBuilder getAllDiffOrBuilder()
.lang.Override int hashCode()
com.google.ortools.sat.BoolArgumentProtoOrBuilder getAtMostOneOrBuilder()
boolean hasNoOverlap2D()
com.google.ortools.sat.TableConstraintProto.Builder getTableBuilder()
static com.google.protobuf.Parser< InverseConstraintProto > parser()
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
com.google.ortools.sat.LinearArgumentProto.Builder getLinMinBuilder()
com.google.ortools.sat.IntervalConstraintProto.Builder getIntervalBuilder()
com.google.ortools.sat.BoolArgumentProto getBoolXor()
com.google.ortools.sat.RoutesConstraintProto getRoutes()
static com.google.ortools.sat.AllDifferentConstraintProto getDefaultInstance()
Builder clearRoutes()
ELEMENT
Builder clearElement()
Builder mergeIntProd(com.google.ortools.sat.IntegerArgumentProto value)
Builder mergeIntMax(com.google.ortools.sat.IntegerArgumentProto value)
boolean hasInterval()
.lang.Override boolean equals(final java.lang.Object obj)
Builder setRoutes(com.google.ortools.sat.RoutesConstraintProto.Builder builderForValue)
com.google.ortools.sat.IntegerArgumentProto getIntMax()
.lang.Override com.google.ortools.sat.IntervalConstraintProto buildPartial()
boolean hasAutomaton()
static com.google.protobuf.Parser< AutomatonConstraintProto > parser()
Builder setLinMax(com.google.ortools.sat.LinearArgumentProto.Builder builderForValue)
.lang.Override int hashCode()
static Builder newBuilder()
boolean hasLinear()
Builder clearName()
.lang.Override Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
static final int BOOL_XOR_FIELD_NUMBER
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
static final int INT_MIN_FIELD_NUMBER
com.google.ortools.sat.CumulativeConstraintProto getCumulative()
boolean hasReservoir()
static com.google.ortools.sat.NoOverlapConstraintProto getDefaultInstance()
Builder clearIntDiv()
.lang.Override boolean equals(final java.lang.Object obj)
static Builder newBuilder()
Builder mergeLinMax(com.google.ortools.sat.LinearArgumentProto value)
static final int INT_MAX_FIELD_NUMBER
com.google.ortools.sat.ElementConstraintProto getElement()
boolean hasCumulative()
.lang.Override Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Builder setInverse(com.google.ortools.sat.InverseConstraintProto value)