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  @java.lang.Override
568  public java.lang.String getName() {
569  java.lang.Object ref = name_;
570  if (ref instanceof java.lang.String) {
571  return (java.lang.String) ref;
572  } else {
573  com.google.protobuf.ByteString bs =
574  (com.google.protobuf.ByteString) ref;
575  java.lang.String s = bs.toStringUtf8();
576  name_ = s;
577  return s;
578  }
579  }
588  @java.lang.Override
589  public com.google.protobuf.ByteString
591  java.lang.Object ref = name_;
592  if (ref instanceof java.lang.String) {
593  com.google.protobuf.ByteString b =
594  com.google.protobuf.ByteString.copyFromUtf8(
595  (java.lang.String) ref);
596  name_ = b;
597  return b;
598  } else {
599  return (com.google.protobuf.ByteString) ref;
600  }
601  }
602 
603  public static final int ENFORCEMENT_LITERAL_FIELD_NUMBER = 2;
604  private com.google.protobuf.Internal.IntList enforcementLiteral_;
624  @java.lang.Override
625  public java.util.List<java.lang.Integer>
627  return enforcementLiteral_;
628  }
649  return enforcementLiteral_.size();
650  }
671  public int getEnforcementLiteral(int index) {
672  return enforcementLiteral_.getInt(index);
673  }
674  private int enforcementLiteralMemoizedSerializedSize = -1;
675 
676  public static final int BOOL_OR_FIELD_NUMBER = 3;
685  @java.lang.Override
686  public boolean hasBoolOr() {
687  return constraintCase_ == 3;
688  }
697  @java.lang.Override
699  if (constraintCase_ == 3) {
700  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
701  }
703  }
711  @java.lang.Override
713  if (constraintCase_ == 3) {
714  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
715  }
717  }
718 
719  public static final int BOOL_AND_FIELD_NUMBER = 4;
731  @java.lang.Override
732  public boolean hasBoolAnd() {
733  return constraintCase_ == 4;
734  }
746  @java.lang.Override
748  if (constraintCase_ == 4) {
749  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
750  }
752  }
763  @java.lang.Override
765  if (constraintCase_ == 4) {
766  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
767  }
769  }
770 
771  public static final int AT_MOST_ONE_FIELD_NUMBER = 26;
784  @java.lang.Override
785  public boolean hasAtMostOne() {
786  return constraintCase_ == 26;
787  }
800  @java.lang.Override
802  if (constraintCase_ == 26) {
803  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
804  }
806  }
818  @java.lang.Override
820  if (constraintCase_ == 26) {
821  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
822  }
824  }
825 
826  public static final int BOOL_XOR_FIELD_NUMBER = 5;
835  @java.lang.Override
836  public boolean hasBoolXor() {
837  return constraintCase_ == 5;
838  }
847  @java.lang.Override
849  if (constraintCase_ == 5) {
850  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
851  }
853  }
861  @java.lang.Override
863  if (constraintCase_ == 5) {
864  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
865  }
867  }
868 
869  public static final int INT_DIV_FIELD_NUMBER = 7;
878  @java.lang.Override
879  public boolean hasIntDiv() {
880  return constraintCase_ == 7;
881  }
890  @java.lang.Override
892  if (constraintCase_ == 7) {
893  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
894  }
896  }
904  @java.lang.Override
906  if (constraintCase_ == 7) {
907  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
908  }
910  }
911 
912  public static final int INT_MOD_FIELD_NUMBER = 8;
921  @java.lang.Override
922  public boolean hasIntMod() {
923  return constraintCase_ == 8;
924  }
933  @java.lang.Override
935  if (constraintCase_ == 8) {
936  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
937  }
939  }
947  @java.lang.Override
949  if (constraintCase_ == 8) {
950  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
951  }
953  }
954 
955  public static final int INT_MAX_FIELD_NUMBER = 9;
966  @java.lang.Override
967  public boolean hasIntMax() {
968  return constraintCase_ == 9;
969  }
980  @java.lang.Override
982  if (constraintCase_ == 9) {
983  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
984  }
986  }
996  @java.lang.Override
998  if (constraintCase_ == 9) {
999  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
1000  }
1002  }
1003 
1004  public static final int LIN_MAX_FIELD_NUMBER = 27;
1014  @java.lang.Override
1015  public boolean hasLinMax() {
1016  return constraintCase_ == 27;
1017  }
1027  @java.lang.Override
1029  if (constraintCase_ == 27) {
1030  return (com.google.ortools.sat.LinearArgumentProto) constraint_;
1031  }
1033  }
1042  @java.lang.Override
1044  if (constraintCase_ == 27) {
1045  return (com.google.ortools.sat.LinearArgumentProto) constraint_;
1046  }
1048  }
1049 
1050  public static final int INT_MIN_FIELD_NUMBER = 10;
1061  @java.lang.Override
1062  public boolean hasIntMin() {
1063  return constraintCase_ == 10;
1064  }
1075  @java.lang.Override
1077  if (constraintCase_ == 10) {
1078  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
1079  }
1081  }
1091  @java.lang.Override
1093  if (constraintCase_ == 10) {
1094  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
1095  }
1097  }
1098 
1099  public static final int LIN_MIN_FIELD_NUMBER = 28;
1109  @java.lang.Override
1110  public boolean hasLinMin() {
1111  return constraintCase_ == 28;
1112  }
1122  @java.lang.Override
1124  if (constraintCase_ == 28) {
1125  return (com.google.ortools.sat.LinearArgumentProto) constraint_;
1126  }
1128  }
1137  @java.lang.Override
1139  if (constraintCase_ == 28) {
1140  return (com.google.ortools.sat.LinearArgumentProto) constraint_;
1141  }
1143  }
1144 
1145  public static final int INT_PROD_FIELD_NUMBER = 11;
1155  @java.lang.Override
1156  public boolean hasIntProd() {
1157  return constraintCase_ == 11;
1158  }
1168  @java.lang.Override
1170  if (constraintCase_ == 11) {
1171  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
1172  }
1174  }
1183  @java.lang.Override
1185  if (constraintCase_ == 11) {
1186  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
1187  }
1189  }
1190 
1191  public static final int LINEAR_FIELD_NUMBER = 12;
1201  @java.lang.Override
1202  public boolean hasLinear() {
1203  return constraintCase_ == 12;
1204  }
1214  @java.lang.Override
1216  if (constraintCase_ == 12) {
1217  return (com.google.ortools.sat.LinearConstraintProto) constraint_;
1218  }
1220  }
1229  @java.lang.Override
1231  if (constraintCase_ == 12) {
1232  return (com.google.ortools.sat.LinearConstraintProto) constraint_;
1233  }
1235  }
1236 
1237  public static final int ALL_DIFF_FIELD_NUMBER = 13;
1246  @java.lang.Override
1247  public boolean hasAllDiff() {
1248  return constraintCase_ == 13;
1249  }
1258  @java.lang.Override
1260  if (constraintCase_ == 13) {
1261  return (com.google.ortools.sat.AllDifferentConstraintProto) constraint_;
1262  }
1264  }
1272  @java.lang.Override
1274  if (constraintCase_ == 13) {
1275  return (com.google.ortools.sat.AllDifferentConstraintProto) constraint_;
1276  }
1278  }
1279 
1280  public static final int ELEMENT_FIELD_NUMBER = 14;
1290  @java.lang.Override
1291  public boolean hasElement() {
1292  return constraintCase_ == 14;
1293  }
1303  @java.lang.Override
1305  if (constraintCase_ == 14) {
1306  return (com.google.ortools.sat.ElementConstraintProto) constraint_;
1307  }
1309  }
1318  @java.lang.Override
1320  if (constraintCase_ == 14) {
1321  return (com.google.ortools.sat.ElementConstraintProto) constraint_;
1322  }
1324  }
1325 
1326  public static final int CIRCUIT_FIELD_NUMBER = 15;
1336  @java.lang.Override
1337  public boolean hasCircuit() {
1338  return constraintCase_ == 15;
1339  }
1349  @java.lang.Override
1351  if (constraintCase_ == 15) {
1352  return (com.google.ortools.sat.CircuitConstraintProto) constraint_;
1353  }
1355  }
1364  @java.lang.Override
1366  if (constraintCase_ == 15) {
1367  return (com.google.ortools.sat.CircuitConstraintProto) constraint_;
1368  }
1370  }
1371 
1372  public static final int ROUTES_FIELD_NUMBER = 23;
1381  @java.lang.Override
1382  public boolean hasRoutes() {
1383  return constraintCase_ == 23;
1384  }
1393  @java.lang.Override
1395  if (constraintCase_ == 23) {
1396  return (com.google.ortools.sat.RoutesConstraintProto) constraint_;
1397  }
1399  }
1407  @java.lang.Override
1409  if (constraintCase_ == 23) {
1410  return (com.google.ortools.sat.RoutesConstraintProto) constraint_;
1411  }
1413  }
1414 
1415  public static final int CIRCUIT_COVERING_FIELD_NUMBER = 25;
1425  @java.lang.Override
1426  public boolean hasCircuitCovering() {
1427  return constraintCase_ == 25;
1428  }
1438  @java.lang.Override
1440  if (constraintCase_ == 25) {
1441  return (com.google.ortools.sat.CircuitCoveringConstraintProto) constraint_;
1442  }
1444  }
1453  @java.lang.Override
1455  if (constraintCase_ == 25) {
1456  return (com.google.ortools.sat.CircuitCoveringConstraintProto) constraint_;
1457  }
1459  }
1460 
1461  public static final int TABLE_FIELD_NUMBER = 16;
1471  @java.lang.Override
1472  public boolean hasTable() {
1473  return constraintCase_ == 16;
1474  }
1484  @java.lang.Override
1486  if (constraintCase_ == 16) {
1487  return (com.google.ortools.sat.TableConstraintProto) constraint_;
1488  }
1490  }
1499  @java.lang.Override
1501  if (constraintCase_ == 16) {
1502  return (com.google.ortools.sat.TableConstraintProto) constraint_;
1503  }
1505  }
1506 
1507  public static final int AUTOMATON_FIELD_NUMBER = 17;
1517  @java.lang.Override
1518  public boolean hasAutomaton() {
1519  return constraintCase_ == 17;
1520  }
1530  @java.lang.Override
1532  if (constraintCase_ == 17) {
1533  return (com.google.ortools.sat.AutomatonConstraintProto) constraint_;
1534  }
1536  }
1545  @java.lang.Override
1547  if (constraintCase_ == 17) {
1548  return (com.google.ortools.sat.AutomatonConstraintProto) constraint_;
1549  }
1551  }
1552 
1553  public static final int INVERSE_FIELD_NUMBER = 18;
1563  @java.lang.Override
1564  public boolean hasInverse() {
1565  return constraintCase_ == 18;
1566  }
1576  @java.lang.Override
1578  if (constraintCase_ == 18) {
1579  return (com.google.ortools.sat.InverseConstraintProto) constraint_;
1580  }
1582  }
1591  @java.lang.Override
1593  if (constraintCase_ == 18) {
1594  return (com.google.ortools.sat.InverseConstraintProto) constraint_;
1595  }
1597  }
1598 
1599  public static final int RESERVOIR_FIELD_NUMBER = 24;
1610  @java.lang.Override
1611  public boolean hasReservoir() {
1612  return constraintCase_ == 24;
1613  }
1624  @java.lang.Override
1626  if (constraintCase_ == 24) {
1627  return (com.google.ortools.sat.ReservoirConstraintProto) constraint_;
1628  }
1630  }
1640  @java.lang.Override
1642  if (constraintCase_ == 24) {
1643  return (com.google.ortools.sat.ReservoirConstraintProto) constraint_;
1644  }
1646  }
1647 
1648  public static final int INTERVAL_FIELD_NUMBER = 19;
1658  @java.lang.Override
1659  public boolean hasInterval() {
1660  return constraintCase_ == 19;
1661  }
1671  @java.lang.Override
1673  if (constraintCase_ == 19) {
1674  return (com.google.ortools.sat.IntervalConstraintProto) constraint_;
1675  }
1677  }
1686  @java.lang.Override
1688  if (constraintCase_ == 19) {
1689  return (com.google.ortools.sat.IntervalConstraintProto) constraint_;
1690  }
1692  }
1693 
1694  public static final int NO_OVERLAP_FIELD_NUMBER = 20;
1705  @java.lang.Override
1706  public boolean hasNoOverlap() {
1707  return constraintCase_ == 20;
1708  }
1719  @java.lang.Override
1721  if (constraintCase_ == 20) {
1722  return (com.google.ortools.sat.NoOverlapConstraintProto) constraint_;
1723  }
1725  }
1735  @java.lang.Override
1737  if (constraintCase_ == 20) {
1738  return (com.google.ortools.sat.NoOverlapConstraintProto) constraint_;
1739  }
1741  }
1742 
1743  public static final int NO_OVERLAP_2D_FIELD_NUMBER = 21;
1752  @java.lang.Override
1753  public boolean hasNoOverlap2D() {
1754  return constraintCase_ == 21;
1755  }
1764  @java.lang.Override
1766  if (constraintCase_ == 21) {
1767  return (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_;
1768  }
1770  }
1778  @java.lang.Override
1780  if (constraintCase_ == 21) {
1781  return (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_;
1782  }
1784  }
1785 
1786  public static final int CUMULATIVE_FIELD_NUMBER = 22;
1797  @java.lang.Override
1798  public boolean hasCumulative() {
1799  return constraintCase_ == 22;
1800  }
1811  @java.lang.Override
1813  if (constraintCase_ == 22) {
1814  return (com.google.ortools.sat.CumulativeConstraintProto) constraint_;
1815  }
1817  }
1827  @java.lang.Override
1829  if (constraintCase_ == 22) {
1830  return (com.google.ortools.sat.CumulativeConstraintProto) constraint_;
1831  }
1833  }
1834 
1835  private byte memoizedIsInitialized = -1;
1836  @java.lang.Override
1837  public final boolean isInitialized() {
1838  byte isInitialized = memoizedIsInitialized;
1839  if (isInitialized == 1) return true;
1840  if (isInitialized == 0) return false;
1841 
1842  memoizedIsInitialized = 1;
1843  return true;
1844  }
1845 
1846  @java.lang.Override
1847  public void writeTo(com.google.protobuf.CodedOutputStream output)
1848  throws java.io.IOException {
1850  if (!getNameBytes().isEmpty()) {
1851  com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
1852  }
1853  if (getEnforcementLiteralList().size() > 0) {
1854  output.writeUInt32NoTag(18);
1855  output.writeUInt32NoTag(enforcementLiteralMemoizedSerializedSize);
1856  }
1857  for (int i = 0; i < enforcementLiteral_.size(); i++) {
1858  output.writeInt32NoTag(enforcementLiteral_.getInt(i));
1859  }
1860  if (constraintCase_ == 3) {
1861  output.writeMessage(3, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1862  }
1863  if (constraintCase_ == 4) {
1864  output.writeMessage(4, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1865  }
1866  if (constraintCase_ == 5) {
1867  output.writeMessage(5, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1868  }
1869  if (constraintCase_ == 7) {
1870  output.writeMessage(7, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1871  }
1872  if (constraintCase_ == 8) {
1873  output.writeMessage(8, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1874  }
1875  if (constraintCase_ == 9) {
1876  output.writeMessage(9, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1877  }
1878  if (constraintCase_ == 10) {
1879  output.writeMessage(10, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1880  }
1881  if (constraintCase_ == 11) {
1882  output.writeMessage(11, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1883  }
1884  if (constraintCase_ == 12) {
1885  output.writeMessage(12, (com.google.ortools.sat.LinearConstraintProto) constraint_);
1886  }
1887  if (constraintCase_ == 13) {
1888  output.writeMessage(13, (com.google.ortools.sat.AllDifferentConstraintProto) constraint_);
1889  }
1890  if (constraintCase_ == 14) {
1891  output.writeMessage(14, (com.google.ortools.sat.ElementConstraintProto) constraint_);
1892  }
1893  if (constraintCase_ == 15) {
1894  output.writeMessage(15, (com.google.ortools.sat.CircuitConstraintProto) constraint_);
1895  }
1896  if (constraintCase_ == 16) {
1897  output.writeMessage(16, (com.google.ortools.sat.TableConstraintProto) constraint_);
1898  }
1899  if (constraintCase_ == 17) {
1900  output.writeMessage(17, (com.google.ortools.sat.AutomatonConstraintProto) constraint_);
1901  }
1902  if (constraintCase_ == 18) {
1903  output.writeMessage(18, (com.google.ortools.sat.InverseConstraintProto) constraint_);
1904  }
1905  if (constraintCase_ == 19) {
1906  output.writeMessage(19, (com.google.ortools.sat.IntervalConstraintProto) constraint_);
1907  }
1908  if (constraintCase_ == 20) {
1909  output.writeMessage(20, (com.google.ortools.sat.NoOverlapConstraintProto) constraint_);
1910  }
1911  if (constraintCase_ == 21) {
1912  output.writeMessage(21, (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_);
1913  }
1914  if (constraintCase_ == 22) {
1915  output.writeMessage(22, (com.google.ortools.sat.CumulativeConstraintProto) constraint_);
1916  }
1917  if (constraintCase_ == 23) {
1918  output.writeMessage(23, (com.google.ortools.sat.RoutesConstraintProto) constraint_);
1919  }
1920  if (constraintCase_ == 24) {
1921  output.writeMessage(24, (com.google.ortools.sat.ReservoirConstraintProto) constraint_);
1922  }
1923  if (constraintCase_ == 25) {
1924  output.writeMessage(25, (com.google.ortools.sat.CircuitCoveringConstraintProto) constraint_);
1925  }
1926  if (constraintCase_ == 26) {
1927  output.writeMessage(26, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1928  }
1929  if (constraintCase_ == 27) {
1930  output.writeMessage(27, (com.google.ortools.sat.LinearArgumentProto) constraint_);
1931  }
1932  if (constraintCase_ == 28) {
1933  output.writeMessage(28, (com.google.ortools.sat.LinearArgumentProto) constraint_);
1934  }
1935  unknownFields.writeTo(output);
1936  }
1937 
1938  @java.lang.Override
1939  public int getSerializedSize() {
1940  int size = memoizedSize;
1941  if (size != -1) return size;
1942 
1943  size = 0;
1944  if (!getNameBytes().isEmpty()) {
1945  size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
1946  }
1947  {
1948  int dataSize = 0;
1949  for (int i = 0; i < enforcementLiteral_.size(); i++) {
1950  dataSize += com.google.protobuf.CodedOutputStream
1951  .computeInt32SizeNoTag(enforcementLiteral_.getInt(i));
1952  }
1953  size += dataSize;
1954  if (!getEnforcementLiteralList().isEmpty()) {
1955  size += 1;
1956  size += com.google.protobuf.CodedOutputStream
1957  .computeInt32SizeNoTag(dataSize);
1958  }
1959  enforcementLiteralMemoizedSerializedSize = dataSize;
1960  }
1961  if (constraintCase_ == 3) {
1962  size += com.google.protobuf.CodedOutputStream
1963  .computeMessageSize(3, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1964  }
1965  if (constraintCase_ == 4) {
1966  size += com.google.protobuf.CodedOutputStream
1967  .computeMessageSize(4, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1968  }
1969  if (constraintCase_ == 5) {
1970  size += com.google.protobuf.CodedOutputStream
1971  .computeMessageSize(5, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1972  }
1973  if (constraintCase_ == 7) {
1974  size += com.google.protobuf.CodedOutputStream
1975  .computeMessageSize(7, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1976  }
1977  if (constraintCase_ == 8) {
1978  size += com.google.protobuf.CodedOutputStream
1979  .computeMessageSize(8, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1980  }
1981  if (constraintCase_ == 9) {
1982  size += com.google.protobuf.CodedOutputStream
1983  .computeMessageSize(9, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1984  }
1985  if (constraintCase_ == 10) {
1986  size += com.google.protobuf.CodedOutputStream
1987  .computeMessageSize(10, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1988  }
1989  if (constraintCase_ == 11) {
1990  size += com.google.protobuf.CodedOutputStream
1991  .computeMessageSize(11, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1992  }
1993  if (constraintCase_ == 12) {
1994  size += com.google.protobuf.CodedOutputStream
1995  .computeMessageSize(12, (com.google.ortools.sat.LinearConstraintProto) constraint_);
1996  }
1997  if (constraintCase_ == 13) {
1998  size += com.google.protobuf.CodedOutputStream
1999  .computeMessageSize(13, (com.google.ortools.sat.AllDifferentConstraintProto) constraint_);
2000  }
2001  if (constraintCase_ == 14) {
2002  size += com.google.protobuf.CodedOutputStream
2003  .computeMessageSize(14, (com.google.ortools.sat.ElementConstraintProto) constraint_);
2004  }
2005  if (constraintCase_ == 15) {
2006  size += com.google.protobuf.CodedOutputStream
2007  .computeMessageSize(15, (com.google.ortools.sat.CircuitConstraintProto) constraint_);
2008  }
2009  if (constraintCase_ == 16) {
2010  size += com.google.protobuf.CodedOutputStream
2011  .computeMessageSize(16, (com.google.ortools.sat.TableConstraintProto) constraint_);
2012  }
2013  if (constraintCase_ == 17) {
2014  size += com.google.protobuf.CodedOutputStream
2015  .computeMessageSize(17, (com.google.ortools.sat.AutomatonConstraintProto) constraint_);
2016  }
2017  if (constraintCase_ == 18) {
2018  size += com.google.protobuf.CodedOutputStream
2019  .computeMessageSize(18, (com.google.ortools.sat.InverseConstraintProto) constraint_);
2020  }
2021  if (constraintCase_ == 19) {
2022  size += com.google.protobuf.CodedOutputStream
2023  .computeMessageSize(19, (com.google.ortools.sat.IntervalConstraintProto) constraint_);
2024  }
2025  if (constraintCase_ == 20) {
2026  size += com.google.protobuf.CodedOutputStream
2027  .computeMessageSize(20, (com.google.ortools.sat.NoOverlapConstraintProto) constraint_);
2028  }
2029  if (constraintCase_ == 21) {
2030  size += com.google.protobuf.CodedOutputStream
2031  .computeMessageSize(21, (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_);
2032  }
2033  if (constraintCase_ == 22) {
2034  size += com.google.protobuf.CodedOutputStream
2035  .computeMessageSize(22, (com.google.ortools.sat.CumulativeConstraintProto) constraint_);
2036  }
2037  if (constraintCase_ == 23) {
2038  size += com.google.protobuf.CodedOutputStream
2039  .computeMessageSize(23, (com.google.ortools.sat.RoutesConstraintProto) constraint_);
2040  }
2041  if (constraintCase_ == 24) {
2042  size += com.google.protobuf.CodedOutputStream
2043  .computeMessageSize(24, (com.google.ortools.sat.ReservoirConstraintProto) constraint_);
2044  }
2045  if (constraintCase_ == 25) {
2046  size += com.google.protobuf.CodedOutputStream
2047  .computeMessageSize(25, (com.google.ortools.sat.CircuitCoveringConstraintProto) constraint_);
2048  }
2049  if (constraintCase_ == 26) {
2050  size += com.google.protobuf.CodedOutputStream
2051  .computeMessageSize(26, (com.google.ortools.sat.BoolArgumentProto) constraint_);
2052  }
2053  if (constraintCase_ == 27) {
2054  size += com.google.protobuf.CodedOutputStream
2055  .computeMessageSize(27, (com.google.ortools.sat.LinearArgumentProto) constraint_);
2056  }
2057  if (constraintCase_ == 28) {
2058  size += com.google.protobuf.CodedOutputStream
2059  .computeMessageSize(28, (com.google.ortools.sat.LinearArgumentProto) constraint_);
2060  }
2061  size += unknownFields.getSerializedSize();
2062  memoizedSize = size;
2063  return size;
2064  }
2065 
2066  @java.lang.Override
2067  public boolean equals(final java.lang.Object obj) {
2068  if (obj == this) {
2069  return true;
2070  }
2071  if (!(obj instanceof com.google.ortools.sat.ConstraintProto)) {
2072  return super.equals(obj);
2073  }
2075 
2076  if (!getName()
2077  .equals(other.getName())) return false;
2079  .equals(other.getEnforcementLiteralList())) return false;
2080  if (!getConstraintCase().equals(other.getConstraintCase())) return false;
2081  switch (constraintCase_) {
2082  case 3:
2083  if (!getBoolOr()
2084  .equals(other.getBoolOr())) return false;
2085  break;
2086  case 4:
2087  if (!getBoolAnd()
2088  .equals(other.getBoolAnd())) return false;
2089  break;
2090  case 26:
2091  if (!getAtMostOne()
2092  .equals(other.getAtMostOne())) return false;
2093  break;
2094  case 5:
2095  if (!getBoolXor()
2096  .equals(other.getBoolXor())) return false;
2097  break;
2098  case 7:
2099  if (!getIntDiv()
2100  .equals(other.getIntDiv())) return false;
2101  break;
2102  case 8:
2103  if (!getIntMod()
2104  .equals(other.getIntMod())) return false;
2105  break;
2106  case 9:
2107  if (!getIntMax()
2108  .equals(other.getIntMax())) return false;
2109  break;
2110  case 27:
2111  if (!getLinMax()
2112  .equals(other.getLinMax())) return false;
2113  break;
2114  case 10:
2115  if (!getIntMin()
2116  .equals(other.getIntMin())) return false;
2117  break;
2118  case 28:
2119  if (!getLinMin()
2120  .equals(other.getLinMin())) return false;
2121  break;
2122  case 11:
2123  if (!getIntProd()
2124  .equals(other.getIntProd())) return false;
2125  break;
2126  case 12:
2127  if (!getLinear()
2128  .equals(other.getLinear())) return false;
2129  break;
2130  case 13:
2131  if (!getAllDiff()
2132  .equals(other.getAllDiff())) return false;
2133  break;
2134  case 14:
2135  if (!getElement()
2136  .equals(other.getElement())) return false;
2137  break;
2138  case 15:
2139  if (!getCircuit()
2140  .equals(other.getCircuit())) return false;
2141  break;
2142  case 23:
2143  if (!getRoutes()
2144  .equals(other.getRoutes())) return false;
2145  break;
2146  case 25:
2147  if (!getCircuitCovering()
2148  .equals(other.getCircuitCovering())) return false;
2149  break;
2150  case 16:
2151  if (!getTable()
2152  .equals(other.getTable())) return false;
2153  break;
2154  case 17:
2155  if (!getAutomaton()
2156  .equals(other.getAutomaton())) return false;
2157  break;
2158  case 18:
2159  if (!getInverse()
2160  .equals(other.getInverse())) return false;
2161  break;
2162  case 24:
2163  if (!getReservoir()
2164  .equals(other.getReservoir())) return false;
2165  break;
2166  case 19:
2167  if (!getInterval()
2168  .equals(other.getInterval())) return false;
2169  break;
2170  case 20:
2171  if (!getNoOverlap()
2172  .equals(other.getNoOverlap())) return false;
2173  break;
2174  case 21:
2175  if (!getNoOverlap2D()
2176  .equals(other.getNoOverlap2D())) return false;
2177  break;
2178  case 22:
2179  if (!getCumulative()
2180  .equals(other.getCumulative())) return false;
2181  break;
2182  case 0:
2183  default:
2184  }
2185  if (!unknownFields.equals(other.unknownFields)) return false;
2186  return true;
2187  }
2188 
2189  @java.lang.Override
2190  public int hashCode() {
2191  if (memoizedHashCode != 0) {
2192  return memoizedHashCode;
2193  }
2194  int hash = 41;
2195  hash = (19 * hash) + getDescriptor().hashCode();
2196  hash = (37 * hash) + NAME_FIELD_NUMBER;
2197  hash = (53 * hash) + getName().hashCode();
2198  if (getEnforcementLiteralCount() > 0) {
2199  hash = (37 * hash) + ENFORCEMENT_LITERAL_FIELD_NUMBER;
2200  hash = (53 * hash) + getEnforcementLiteralList().hashCode();
2201  }
2202  switch (constraintCase_) {
2203  case 3:
2204  hash = (37 * hash) + BOOL_OR_FIELD_NUMBER;
2205  hash = (53 * hash) + getBoolOr().hashCode();
2206  break;
2207  case 4:
2208  hash = (37 * hash) + BOOL_AND_FIELD_NUMBER;
2209  hash = (53 * hash) + getBoolAnd().hashCode();
2210  break;
2211  case 26:
2212  hash = (37 * hash) + AT_MOST_ONE_FIELD_NUMBER;
2213  hash = (53 * hash) + getAtMostOne().hashCode();
2214  break;
2215  case 5:
2216  hash = (37 * hash) + BOOL_XOR_FIELD_NUMBER;
2217  hash = (53 * hash) + getBoolXor().hashCode();
2218  break;
2219  case 7:
2220  hash = (37 * hash) + INT_DIV_FIELD_NUMBER;
2221  hash = (53 * hash) + getIntDiv().hashCode();
2222  break;
2223  case 8:
2224  hash = (37 * hash) + INT_MOD_FIELD_NUMBER;
2225  hash = (53 * hash) + getIntMod().hashCode();
2226  break;
2227  case 9:
2228  hash = (37 * hash) + INT_MAX_FIELD_NUMBER;
2229  hash = (53 * hash) + getIntMax().hashCode();
2230  break;
2231  case 27:
2232  hash = (37 * hash) + LIN_MAX_FIELD_NUMBER;
2233  hash = (53 * hash) + getLinMax().hashCode();
2234  break;
2235  case 10:
2236  hash = (37 * hash) + INT_MIN_FIELD_NUMBER;
2237  hash = (53 * hash) + getIntMin().hashCode();
2238  break;
2239  case 28:
2240  hash = (37 * hash) + LIN_MIN_FIELD_NUMBER;
2241  hash = (53 * hash) + getLinMin().hashCode();
2242  break;
2243  case 11:
2244  hash = (37 * hash) + INT_PROD_FIELD_NUMBER;
2245  hash = (53 * hash) + getIntProd().hashCode();
2246  break;
2247  case 12:
2248  hash = (37 * hash) + LINEAR_FIELD_NUMBER;
2249  hash = (53 * hash) + getLinear().hashCode();
2250  break;
2251  case 13:
2252  hash = (37 * hash) + ALL_DIFF_FIELD_NUMBER;
2253  hash = (53 * hash) + getAllDiff().hashCode();
2254  break;
2255  case 14:
2256  hash = (37 * hash) + ELEMENT_FIELD_NUMBER;
2257  hash = (53 * hash) + getElement().hashCode();
2258  break;
2259  case 15:
2260  hash = (37 * hash) + CIRCUIT_FIELD_NUMBER;
2261  hash = (53 * hash) + getCircuit().hashCode();
2262  break;
2263  case 23:
2264  hash = (37 * hash) + ROUTES_FIELD_NUMBER;
2265  hash = (53 * hash) + getRoutes().hashCode();
2266  break;
2267  case 25:
2268  hash = (37 * hash) + CIRCUIT_COVERING_FIELD_NUMBER;
2269  hash = (53 * hash) + getCircuitCovering().hashCode();
2270  break;
2271  case 16:
2272  hash = (37 * hash) + TABLE_FIELD_NUMBER;
2273  hash = (53 * hash) + getTable().hashCode();
2274  break;
2275  case 17:
2276  hash = (37 * hash) + AUTOMATON_FIELD_NUMBER;
2277  hash = (53 * hash) + getAutomaton().hashCode();
2278  break;
2279  case 18:
2280  hash = (37 * hash) + INVERSE_FIELD_NUMBER;
2281  hash = (53 * hash) + getInverse().hashCode();
2282  break;
2283  case 24:
2284  hash = (37 * hash) + RESERVOIR_FIELD_NUMBER;
2285  hash = (53 * hash) + getReservoir().hashCode();
2286  break;
2287  case 19:
2288  hash = (37 * hash) + INTERVAL_FIELD_NUMBER;
2289  hash = (53 * hash) + getInterval().hashCode();
2290  break;
2291  case 20:
2292  hash = (37 * hash) + NO_OVERLAP_FIELD_NUMBER;
2293  hash = (53 * hash) + getNoOverlap().hashCode();
2294  break;
2295  case 21:
2296  hash = (37 * hash) + NO_OVERLAP_2D_FIELD_NUMBER;
2297  hash = (53 * hash) + getNoOverlap2D().hashCode();
2298  break;
2299  case 22:
2300  hash = (37 * hash) + CUMULATIVE_FIELD_NUMBER;
2301  hash = (53 * hash) + getCumulative().hashCode();
2302  break;
2303  case 0:
2304  default:
2305  }
2306  hash = (29 * hash) + unknownFields.hashCode();
2307  memoizedHashCode = hash;
2308  return hash;
2309  }
2310 
2312  java.nio.ByteBuffer data)
2313  throws com.google.protobuf.InvalidProtocolBufferException {
2314  return PARSER.parseFrom(data);
2315  }
2317  java.nio.ByteBuffer data,
2318  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2319  throws com.google.protobuf.InvalidProtocolBufferException {
2320  return PARSER.parseFrom(data, extensionRegistry);
2321  }
2323  com.google.protobuf.ByteString data)
2324  throws com.google.protobuf.InvalidProtocolBufferException {
2325  return PARSER.parseFrom(data);
2326  }
2328  com.google.protobuf.ByteString data,
2329  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2330  throws com.google.protobuf.InvalidProtocolBufferException {
2331  return PARSER.parseFrom(data, extensionRegistry);
2332  }
2333  public static com.google.ortools.sat.ConstraintProto parseFrom(byte[] data)
2334  throws com.google.protobuf.InvalidProtocolBufferException {
2335  return PARSER.parseFrom(data);
2336  }
2338  byte[] data,
2339  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2340  throws com.google.protobuf.InvalidProtocolBufferException {
2341  return PARSER.parseFrom(data, extensionRegistry);
2342  }
2343  public static com.google.ortools.sat.ConstraintProto parseFrom(java.io.InputStream input)
2344  throws java.io.IOException {
2345  return com.google.protobuf.GeneratedMessageV3
2346  .parseWithIOException(PARSER, input);
2347  }
2349  java.io.InputStream input,
2350  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2351  throws java.io.IOException {
2352  return com.google.protobuf.GeneratedMessageV3
2353  .parseWithIOException(PARSER, input, extensionRegistry);
2354  }
2355  public static com.google.ortools.sat.ConstraintProto parseDelimitedFrom(java.io.InputStream input)
2356  throws java.io.IOException {
2357  return com.google.protobuf.GeneratedMessageV3
2358  .parseDelimitedWithIOException(PARSER, input);
2359  }
2361  java.io.InputStream input,
2362  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2363  throws java.io.IOException {
2364  return com.google.protobuf.GeneratedMessageV3
2365  .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
2366  }
2368  com.google.protobuf.CodedInputStream input)
2369  throws java.io.IOException {
2370  return com.google.protobuf.GeneratedMessageV3
2371  .parseWithIOException(PARSER, input);
2372  }
2374  com.google.protobuf.CodedInputStream input,
2375  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2376  throws java.io.IOException {
2377  return com.google.protobuf.GeneratedMessageV3
2378  .parseWithIOException(PARSER, input, extensionRegistry);
2379  }
2380 
2381  @java.lang.Override
2382  public Builder newBuilderForType() { return newBuilder(); }
2383  public static Builder newBuilder() {
2384  return DEFAULT_INSTANCE.toBuilder();
2385  }
2387  return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
2388  }
2389  @java.lang.Override
2390  public Builder toBuilder() {
2391  return this == DEFAULT_INSTANCE
2392  ? new Builder() : new Builder().mergeFrom(this);
2393  }
2394 
2395  @java.lang.Override
2397  com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
2398  Builder builder = new Builder(parent);
2399  return builder;
2400  }
2408  public static final class Builder extends
2409  com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
2410  // @@protoc_insertion_point(builder_implements:operations_research.sat.ConstraintProto)
2411  com.google.ortools.sat.ConstraintProtoOrBuilder {
2412  public static final com.google.protobuf.Descriptors.Descriptor
2414  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_descriptor;
2415  }
2416 
2417  @java.lang.Override
2418  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
2420  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_fieldAccessorTable
2421  .ensureFieldAccessorsInitialized(
2423  }
2424 
2425  // Construct using com.google.ortools.sat.ConstraintProto.newBuilder()
2426  private Builder() {
2427  maybeForceBuilderInitialization();
2428  }
2429 
2430  private Builder(
2431  com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
2432  super(parent);
2433  maybeForceBuilderInitialization();
2434  }
2435  private void maybeForceBuilderInitialization() {
2436  if (com.google.protobuf.GeneratedMessageV3
2437  .alwaysUseFieldBuilders) {
2438  }
2439  }
2440  @java.lang.Override
2441  public Builder clear() {
2442  super.clear();
2443  name_ = "";
2444 
2445  enforcementLiteral_ = emptyIntList();
2446  bitField0_ = (bitField0_ & ~0x00000001);
2447  constraintCase_ = 0;
2448  constraint_ = null;
2449  return this;
2450  }
2451 
2452  @java.lang.Override
2453  public com.google.protobuf.Descriptors.Descriptor
2455  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_descriptor;
2456  }
2457 
2458  @java.lang.Override
2461  }
2462 
2463  @java.lang.Override
2466  if (!result.isInitialized()) {
2467  throw newUninitializedMessageException(result);
2468  }
2469  return result;
2470  }
2471 
2472  @java.lang.Override
2475  int from_bitField0_ = bitField0_;
2476  result.name_ = name_;
2477  if (((bitField0_ & 0x00000001) != 0)) {
2478  enforcementLiteral_.makeImmutable();
2479  bitField0_ = (bitField0_ & ~0x00000001);
2480  }
2481  result.enforcementLiteral_ = enforcementLiteral_;
2482  if (constraintCase_ == 3) {
2483  if (boolOrBuilder_ == null) {
2484  result.constraint_ = constraint_;
2485  } else {
2486  result.constraint_ = boolOrBuilder_.build();
2487  }
2488  }
2489  if (constraintCase_ == 4) {
2490  if (boolAndBuilder_ == null) {
2491  result.constraint_ = constraint_;
2492  } else {
2493  result.constraint_ = boolAndBuilder_.build();
2494  }
2495  }
2496  if (constraintCase_ == 26) {
2497  if (atMostOneBuilder_ == null) {
2498  result.constraint_ = constraint_;
2499  } else {
2500  result.constraint_ = atMostOneBuilder_.build();
2501  }
2502  }
2503  if (constraintCase_ == 5) {
2504  if (boolXorBuilder_ == null) {
2505  result.constraint_ = constraint_;
2506  } else {
2507  result.constraint_ = boolXorBuilder_.build();
2508  }
2509  }
2510  if (constraintCase_ == 7) {
2511  if (intDivBuilder_ == null) {
2512  result.constraint_ = constraint_;
2513  } else {
2514  result.constraint_ = intDivBuilder_.build();
2515  }
2516  }
2517  if (constraintCase_ == 8) {
2518  if (intModBuilder_ == null) {
2519  result.constraint_ = constraint_;
2520  } else {
2521  result.constraint_ = intModBuilder_.build();
2522  }
2523  }
2524  if (constraintCase_ == 9) {
2525  if (intMaxBuilder_ == null) {
2526  result.constraint_ = constraint_;
2527  } else {
2528  result.constraint_ = intMaxBuilder_.build();
2529  }
2530  }
2531  if (constraintCase_ == 27) {
2532  if (linMaxBuilder_ == null) {
2533  result.constraint_ = constraint_;
2534  } else {
2535  result.constraint_ = linMaxBuilder_.build();
2536  }
2537  }
2538  if (constraintCase_ == 10) {
2539  if (intMinBuilder_ == null) {
2540  result.constraint_ = constraint_;
2541  } else {
2542  result.constraint_ = intMinBuilder_.build();
2543  }
2544  }
2545  if (constraintCase_ == 28) {
2546  if (linMinBuilder_ == null) {
2547  result.constraint_ = constraint_;
2548  } else {
2549  result.constraint_ = linMinBuilder_.build();
2550  }
2551  }
2552  if (constraintCase_ == 11) {
2553  if (intProdBuilder_ == null) {
2554  result.constraint_ = constraint_;
2555  } else {
2556  result.constraint_ = intProdBuilder_.build();
2557  }
2558  }
2559  if (constraintCase_ == 12) {
2560  if (linearBuilder_ == null) {
2561  result.constraint_ = constraint_;
2562  } else {
2563  result.constraint_ = linearBuilder_.build();
2564  }
2565  }
2566  if (constraintCase_ == 13) {
2567  if (allDiffBuilder_ == null) {
2568  result.constraint_ = constraint_;
2569  } else {
2570  result.constraint_ = allDiffBuilder_.build();
2571  }
2572  }
2573  if (constraintCase_ == 14) {
2574  if (elementBuilder_ == null) {
2575  result.constraint_ = constraint_;
2576  } else {
2577  result.constraint_ = elementBuilder_.build();
2578  }
2579  }
2580  if (constraintCase_ == 15) {
2581  if (circuitBuilder_ == null) {
2582  result.constraint_ = constraint_;
2583  } else {
2584  result.constraint_ = circuitBuilder_.build();
2585  }
2586  }
2587  if (constraintCase_ == 23) {
2588  if (routesBuilder_ == null) {
2589  result.constraint_ = constraint_;
2590  } else {
2591  result.constraint_ = routesBuilder_.build();
2592  }
2593  }
2594  if (constraintCase_ == 25) {
2595  if (circuitCoveringBuilder_ == null) {
2596  result.constraint_ = constraint_;
2597  } else {
2598  result.constraint_ = circuitCoveringBuilder_.build();
2599  }
2600  }
2601  if (constraintCase_ == 16) {
2602  if (tableBuilder_ == null) {
2603  result.constraint_ = constraint_;
2604  } else {
2605  result.constraint_ = tableBuilder_.build();
2606  }
2607  }
2608  if (constraintCase_ == 17) {
2609  if (automatonBuilder_ == null) {
2610  result.constraint_ = constraint_;
2611  } else {
2612  result.constraint_ = automatonBuilder_.build();
2613  }
2614  }
2615  if (constraintCase_ == 18) {
2616  if (inverseBuilder_ == null) {
2617  result.constraint_ = constraint_;
2618  } else {
2619  result.constraint_ = inverseBuilder_.build();
2620  }
2621  }
2622  if (constraintCase_ == 24) {
2623  if (reservoirBuilder_ == null) {
2624  result.constraint_ = constraint_;
2625  } else {
2626  result.constraint_ = reservoirBuilder_.build();
2627  }
2628  }
2629  if (constraintCase_ == 19) {
2630  if (intervalBuilder_ == null) {
2631  result.constraint_ = constraint_;
2632  } else {
2633  result.constraint_ = intervalBuilder_.build();
2634  }
2635  }
2636  if (constraintCase_ == 20) {
2637  if (noOverlapBuilder_ == null) {
2638  result.constraint_ = constraint_;
2639  } else {
2640  result.constraint_ = noOverlapBuilder_.build();
2641  }
2642  }
2643  if (constraintCase_ == 21) {
2644  if (noOverlap2DBuilder_ == null) {
2645  result.constraint_ = constraint_;
2646  } else {
2647  result.constraint_ = noOverlap2DBuilder_.build();
2648  }
2649  }
2650  if (constraintCase_ == 22) {
2651  if (cumulativeBuilder_ == null) {
2652  result.constraint_ = constraint_;
2653  } else {
2654  result.constraint_ = cumulativeBuilder_.build();
2655  }
2656  }
2657  result.constraintCase_ = constraintCase_;
2658  onBuilt();
2659  return result;
2660  }
2661 
2662  @java.lang.Override
2663  public Builder clone() {
2664  return super.clone();
2665  }
2666  @java.lang.Override
2668  com.google.protobuf.Descriptors.FieldDescriptor field,
2669  java.lang.Object value) {
2670  return super.setField(field, value);
2671  }
2672  @java.lang.Override
2674  com.google.protobuf.Descriptors.FieldDescriptor field) {
2675  return super.clearField(field);
2676  }
2677  @java.lang.Override
2679  com.google.protobuf.Descriptors.OneofDescriptor oneof) {
2680  return super.clearOneof(oneof);
2681  }
2682  @java.lang.Override
2684  com.google.protobuf.Descriptors.FieldDescriptor field,
2685  int index, java.lang.Object value) {
2686  return super.setRepeatedField(field, index, value);
2687  }
2688  @java.lang.Override
2690  com.google.protobuf.Descriptors.FieldDescriptor field,
2691  java.lang.Object value) {
2692  return super.addRepeatedField(field, value);
2693  }
2694  @java.lang.Override
2695  public Builder mergeFrom(com.google.protobuf.Message other) {
2696  if (other instanceof com.google.ortools.sat.ConstraintProto) {
2697  return mergeFrom((com.google.ortools.sat.ConstraintProto)other);
2698  } else {
2699  super.mergeFrom(other);
2700  return this;
2701  }
2702  }
2703 
2705  if (other == com.google.ortools.sat.ConstraintProto.getDefaultInstance()) return this;
2706  if (!other.getName().isEmpty()) {
2707  name_ = other.name_;
2708  onChanged();
2709  }
2710  if (!other.enforcementLiteral_.isEmpty()) {
2711  if (enforcementLiteral_.isEmpty()) {
2712  enforcementLiteral_ = other.enforcementLiteral_;
2713  bitField0_ = (bitField0_ & ~0x00000001);
2714  } else {
2715  ensureEnforcementLiteralIsMutable();
2716  enforcementLiteral_.addAll(other.enforcementLiteral_);
2717  }
2718  onChanged();
2719  }
2720  switch (other.getConstraintCase()) {
2721  case BOOL_OR: {
2722  mergeBoolOr(other.getBoolOr());
2723  break;
2724  }
2725  case BOOL_AND: {
2726  mergeBoolAnd(other.getBoolAnd());
2727  break;
2728  }
2729  case AT_MOST_ONE: {
2730  mergeAtMostOne(other.getAtMostOne());
2731  break;
2732  }
2733  case BOOL_XOR: {
2734  mergeBoolXor(other.getBoolXor());
2735  break;
2736  }
2737  case INT_DIV: {
2738  mergeIntDiv(other.getIntDiv());
2739  break;
2740  }
2741  case INT_MOD: {
2742  mergeIntMod(other.getIntMod());
2743  break;
2744  }
2745  case INT_MAX: {
2746  mergeIntMax(other.getIntMax());
2747  break;
2748  }
2749  case LIN_MAX: {
2750  mergeLinMax(other.getLinMax());
2751  break;
2752  }
2753  case INT_MIN: {
2754  mergeIntMin(other.getIntMin());
2755  break;
2756  }
2757  case LIN_MIN: {
2758  mergeLinMin(other.getLinMin());
2759  break;
2760  }
2761  case INT_PROD: {
2762  mergeIntProd(other.getIntProd());
2763  break;
2764  }
2765  case LINEAR: {
2766  mergeLinear(other.getLinear());
2767  break;
2768  }
2769  case ALL_DIFF: {
2770  mergeAllDiff(other.getAllDiff());
2771  break;
2772  }
2773  case ELEMENT: {
2774  mergeElement(other.getElement());
2775  break;
2776  }
2777  case CIRCUIT: {
2778  mergeCircuit(other.getCircuit());
2779  break;
2780  }
2781  case ROUTES: {
2782  mergeRoutes(other.getRoutes());
2783  break;
2784  }
2785  case CIRCUIT_COVERING: {
2786  mergeCircuitCovering(other.getCircuitCovering());
2787  break;
2788  }
2789  case TABLE: {
2790  mergeTable(other.getTable());
2791  break;
2792  }
2793  case AUTOMATON: {
2794  mergeAutomaton(other.getAutomaton());
2795  break;
2796  }
2797  case INVERSE: {
2798  mergeInverse(other.getInverse());
2799  break;
2800  }
2801  case RESERVOIR: {
2802  mergeReservoir(other.getReservoir());
2803  break;
2804  }
2805  case INTERVAL: {
2806  mergeInterval(other.getInterval());
2807  break;
2808  }
2809  case NO_OVERLAP: {
2810  mergeNoOverlap(other.getNoOverlap());
2811  break;
2812  }
2813  case NO_OVERLAP_2D: {
2814  mergeNoOverlap2D(other.getNoOverlap2D());
2815  break;
2816  }
2817  case CUMULATIVE: {
2818  mergeCumulative(other.getCumulative());
2819  break;
2820  }
2821  case CONSTRAINT_NOT_SET: {
2822  break;
2823  }
2824  }
2825  this.mergeUnknownFields(other.unknownFields);
2826  onChanged();
2827  return this;
2828  }
2829 
2830  @java.lang.Override
2831  public final boolean isInitialized() {
2832  return true;
2833  }
2834 
2835  @java.lang.Override
2837  com.google.protobuf.CodedInputStream input,
2838  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2839  throws java.io.IOException {
2840  com.google.ortools.sat.ConstraintProto parsedMessage = null;
2841  try {
2842  parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
2843  } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2844  parsedMessage = (com.google.ortools.sat.ConstraintProto) e.getUnfinishedMessage();
2845  throw e.unwrapIOException();
2846  } finally {
2847  if (parsedMessage != null) {
2848  mergeFrom(parsedMessage);
2849  }
2850  }
2851  return this;
2852  }
2853  private int constraintCase_ = 0;
2854  private java.lang.Object constraint_;
2855  public ConstraintCase
2857  return ConstraintCase.forNumber(
2858  constraintCase_);
2859  }
2860 
2862  constraintCase_ = 0;
2863  constraint_ = null;
2864  onChanged();
2865  return this;
2866  }
2867 
2868  private int bitField0_;
2869 
2870  private java.lang.Object name_ = "";
2879  public java.lang.String getName() {
2880  java.lang.Object ref = name_;
2881  if (!(ref instanceof java.lang.String)) {
2882  com.google.protobuf.ByteString bs =
2883  (com.google.protobuf.ByteString) ref;
2884  java.lang.String s = bs.toStringUtf8();
2885  name_ = s;
2886  return s;
2887  } else {
2888  return (java.lang.String) ref;
2889  }
2890  }
2899  public com.google.protobuf.ByteString
2901  java.lang.Object ref = name_;
2902  if (ref instanceof String) {
2903  com.google.protobuf.ByteString b =
2904  com.google.protobuf.ByteString.copyFromUtf8(
2905  (java.lang.String) ref);
2906  name_ = b;
2907  return b;
2908  } else {
2909  return (com.google.protobuf.ByteString) ref;
2910  }
2911  }
2922  java.lang.String value) {
2923  if (value == null) {
2924  throw new NullPointerException();
2925  }
2926 
2927  name_ = value;
2928  onChanged();
2929  return this;
2930  }
2939  public Builder clearName() {
2940 
2941  name_ = getDefaultInstance().getName();
2942  onChanged();
2943  return this;
2944  }
2955  com.google.protobuf.ByteString value) {
2956  if (value == null) {
2957  throw new NullPointerException();
2958  }
2959  checkByteStringIsUtf8(value);
2960 
2961  name_ = value;
2962  onChanged();
2963  return this;
2964  }
2965 
2966  private com.google.protobuf.Internal.IntList enforcementLiteral_ = emptyIntList();
2967  private void ensureEnforcementLiteralIsMutable() {
2968  if (!((bitField0_ & 0x00000001) != 0)) {
2969  enforcementLiteral_ = mutableCopy(enforcementLiteral_);
2970  bitField0_ |= 0x00000001;
2971  }
2972  }
2992  public java.util.List<java.lang.Integer>
2994  return ((bitField0_ & 0x00000001) != 0) ?
2995  java.util.Collections.unmodifiableList(enforcementLiteral_) : enforcementLiteral_;
2996  }
3017  return enforcementLiteral_.size();
3018  }
3039  public int getEnforcementLiteral(int index) {
3040  return enforcementLiteral_.getInt(index);
3041  }
3064  int index, int value) {
3065  ensureEnforcementLiteralIsMutable();
3066  enforcementLiteral_.setInt(index, value);
3067  onChanged();
3068  return this;
3069  }
3090  public Builder addEnforcementLiteral(int value) {
3091  ensureEnforcementLiteralIsMutable();
3092  enforcementLiteral_.addInt(value);
3093  onChanged();
3094  return this;
3095  }
3117  java.lang.Iterable<? extends java.lang.Integer> values) {
3118  ensureEnforcementLiteralIsMutable();
3119  com.google.protobuf.AbstractMessageLite.Builder.addAll(
3120  values, enforcementLiteral_);
3121  onChanged();
3122  return this;
3123  }
3144  enforcementLiteral_ = emptyIntList();
3145  bitField0_ = (bitField0_ & ~0x00000001);
3146  onChanged();
3147  return this;
3148  }
3149 
3150  private com.google.protobuf.SingleFieldBuilderV3<
3160  @java.lang.Override
3161  public boolean hasBoolOr() {
3162  return constraintCase_ == 3;
3163  }
3172  @java.lang.Override
3174  if (boolOrBuilder_ == null) {
3175  if (constraintCase_ == 3) {
3176  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3177  }
3179  } else {
3180  if (constraintCase_ == 3) {
3181  return boolOrBuilder_.getMessage();
3182  }
3184  }
3185  }
3194  if (boolOrBuilder_ == null) {
3195  if (value == null) {
3196  throw new NullPointerException();
3197  }
3198  constraint_ = value;
3199  onChanged();
3200  } else {
3201  boolOrBuilder_.setMessage(value);
3202  }
3203  constraintCase_ = 3;
3204  return this;
3205  }
3214  com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
3215  if (boolOrBuilder_ == null) {
3216  constraint_ = builderForValue.build();
3217  onChanged();
3218  } else {
3219  boolOrBuilder_.setMessage(builderForValue.build());
3220  }
3221  constraintCase_ = 3;
3222  return this;
3223  }
3232  if (boolOrBuilder_ == null) {
3233  if (constraintCase_ == 3 &&
3236  .mergeFrom(value).buildPartial();
3237  } else {
3238  constraint_ = value;
3239  }
3240  onChanged();
3241  } else {
3242  if (constraintCase_ == 3) {
3243  boolOrBuilder_.mergeFrom(value);
3244  }
3245  boolOrBuilder_.setMessage(value);
3246  }
3247  constraintCase_ = 3;
3248  return this;
3249  }
3258  if (boolOrBuilder_ == null) {
3259  if (constraintCase_ == 3) {
3260  constraintCase_ = 0;
3261  constraint_ = null;
3262  onChanged();
3263  }
3264  } else {
3265  if (constraintCase_ == 3) {
3266  constraintCase_ = 0;
3267  constraint_ = null;
3268  }
3269  boolOrBuilder_.clear();
3270  }
3271  return this;
3272  }
3281  return getBoolOrFieldBuilder().getBuilder();
3282  }
3290  @java.lang.Override
3292  if ((constraintCase_ == 3) && (boolOrBuilder_ != null)) {
3293  return boolOrBuilder_.getMessageOrBuilder();
3294  } else {
3295  if (constraintCase_ == 3) {
3296  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3297  }
3299  }
3300  }
3308  private com.google.protobuf.SingleFieldBuilderV3<
3310  getBoolOrFieldBuilder() {
3311  if (boolOrBuilder_ == null) {
3312  if (!(constraintCase_ == 3)) {
3314  }
3315  boolOrBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
3317  (com.google.ortools.sat.BoolArgumentProto) constraint_,
3318  getParentForChildren(),
3319  isClean());
3320  constraint_ = null;
3321  }
3322  constraintCase_ = 3;
3323  onChanged();;
3324  return boolOrBuilder_;
3325  }
3326 
3327  private com.google.protobuf.SingleFieldBuilderV3<
3340  @java.lang.Override
3341  public boolean hasBoolAnd() {
3342  return constraintCase_ == 4;
3343  }
3355  @java.lang.Override
3357  if (boolAndBuilder_ == null) {
3358  if (constraintCase_ == 4) {
3359  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3360  }
3362  } else {
3363  if (constraintCase_ == 4) {
3364  return boolAndBuilder_.getMessage();
3365  }
3367  }
3368  }
3380  if (boolAndBuilder_ == null) {
3381  if (value == null) {
3382  throw new NullPointerException();
3383  }
3384  constraint_ = value;
3385  onChanged();
3386  } else {
3387  boolAndBuilder_.setMessage(value);
3388  }
3389  constraintCase_ = 4;
3390  return this;
3391  }
3403  com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
3404  if (boolAndBuilder_ == null) {
3405  constraint_ = builderForValue.build();
3406  onChanged();
3407  } else {
3408  boolAndBuilder_.setMessage(builderForValue.build());
3409  }
3410  constraintCase_ = 4;
3411  return this;
3412  }
3424  if (boolAndBuilder_ == null) {
3425  if (constraintCase_ == 4 &&
3428  .mergeFrom(value).buildPartial();
3429  } else {
3430  constraint_ = value;
3431  }
3432  onChanged();
3433  } else {
3434  if (constraintCase_ == 4) {
3435  boolAndBuilder_.mergeFrom(value);
3436  }
3437  boolAndBuilder_.setMessage(value);
3438  }
3439  constraintCase_ = 4;
3440  return this;
3441  }
3453  if (boolAndBuilder_ == null) {
3454  if (constraintCase_ == 4) {
3455  constraintCase_ = 0;
3456  constraint_ = null;
3457  onChanged();
3458  }
3459  } else {
3460  if (constraintCase_ == 4) {
3461  constraintCase_ = 0;
3462  constraint_ = null;
3463  }
3464  boolAndBuilder_.clear();
3465  }
3466  return this;
3467  }
3479  return getBoolAndFieldBuilder().getBuilder();
3480  }
3491  @java.lang.Override
3493  if ((constraintCase_ == 4) && (boolAndBuilder_ != null)) {
3494  return boolAndBuilder_.getMessageOrBuilder();
3495  } else {
3496  if (constraintCase_ == 4) {
3497  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3498  }
3500  }
3501  }
3512  private com.google.protobuf.SingleFieldBuilderV3<
3514  getBoolAndFieldBuilder() {
3515  if (boolAndBuilder_ == null) {
3516  if (!(constraintCase_ == 4)) {
3518  }
3519  boolAndBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
3521  (com.google.ortools.sat.BoolArgumentProto) constraint_,
3522  getParentForChildren(),
3523  isClean());
3524  constraint_ = null;
3525  }
3526  constraintCase_ = 4;
3527  onChanged();;
3528  return boolAndBuilder_;
3529  }
3530 
3531  private com.google.protobuf.SingleFieldBuilderV3<
3545  @java.lang.Override
3546  public boolean hasAtMostOne() {
3547  return constraintCase_ == 26;
3548  }
3561  @java.lang.Override
3563  if (atMostOneBuilder_ == null) {
3564  if (constraintCase_ == 26) {
3565  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3566  }
3568  } else {
3569  if (constraintCase_ == 26) {
3570  return atMostOneBuilder_.getMessage();
3571  }
3573  }
3574  }
3587  if (atMostOneBuilder_ == null) {
3588  if (value == null) {
3589  throw new NullPointerException();
3590  }
3591  constraint_ = value;
3592  onChanged();
3593  } else {
3594  atMostOneBuilder_.setMessage(value);
3595  }
3596  constraintCase_ = 26;
3597  return this;
3598  }
3611  com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
3612  if (atMostOneBuilder_ == null) {
3613  constraint_ = builderForValue.build();
3614  onChanged();
3615  } else {
3616  atMostOneBuilder_.setMessage(builderForValue.build());
3617  }
3618  constraintCase_ = 26;
3619  return this;
3620  }
3633  if (atMostOneBuilder_ == null) {
3634  if (constraintCase_ == 26 &&
3637  .mergeFrom(value).buildPartial();
3638  } else {
3639  constraint_ = value;
3640  }
3641  onChanged();
3642  } else {
3643  if (constraintCase_ == 26) {
3644  atMostOneBuilder_.mergeFrom(value);
3645  }
3646  atMostOneBuilder_.setMessage(value);
3647  }
3648  constraintCase_ = 26;
3649  return this;
3650  }
3663  if (atMostOneBuilder_ == null) {
3664  if (constraintCase_ == 26) {
3665  constraintCase_ = 0;
3666  constraint_ = null;
3667  onChanged();
3668  }
3669  } else {
3670  if (constraintCase_ == 26) {
3671  constraintCase_ = 0;
3672  constraint_ = null;
3673  }
3674  atMostOneBuilder_.clear();
3675  }
3676  return this;
3677  }
3690  return getAtMostOneFieldBuilder().getBuilder();
3691  }
3703  @java.lang.Override
3705  if ((constraintCase_ == 26) && (atMostOneBuilder_ != null)) {
3706  return atMostOneBuilder_.getMessageOrBuilder();
3707  } else {
3708  if (constraintCase_ == 26) {
3709  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3710  }
3712  }
3713  }
3725  private com.google.protobuf.SingleFieldBuilderV3<
3727  getAtMostOneFieldBuilder() {
3728  if (atMostOneBuilder_ == null) {
3729  if (!(constraintCase_ == 26)) {
3731  }
3732  atMostOneBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
3734  (com.google.ortools.sat.BoolArgumentProto) constraint_,
3735  getParentForChildren(),
3736  isClean());
3737  constraint_ = null;
3738  }
3739  constraintCase_ = 26;
3740  onChanged();;
3741  return atMostOneBuilder_;
3742  }
3743 
3744  private com.google.protobuf.SingleFieldBuilderV3<
3754  @java.lang.Override
3755  public boolean hasBoolXor() {
3756  return constraintCase_ == 5;
3757  }
3766  @java.lang.Override
3768  if (boolXorBuilder_ == null) {
3769  if (constraintCase_ == 5) {
3770  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3771  }
3773  } else {
3774  if (constraintCase_ == 5) {
3775  return boolXorBuilder_.getMessage();
3776  }
3778  }
3779  }
3788  if (boolXorBuilder_ == null) {
3789  if (value == null) {
3790  throw new NullPointerException();
3791  }
3792  constraint_ = value;
3793  onChanged();
3794  } else {
3795  boolXorBuilder_.setMessage(value);
3796  }
3797  constraintCase_ = 5;
3798  return this;
3799  }
3808  com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
3809  if (boolXorBuilder_ == null) {
3810  constraint_ = builderForValue.build();
3811  onChanged();
3812  } else {
3813  boolXorBuilder_.setMessage(builderForValue.build());
3814  }
3815  constraintCase_ = 5;
3816  return this;
3817  }
3826  if (boolXorBuilder_ == null) {
3827  if (constraintCase_ == 5 &&
3830  .mergeFrom(value).buildPartial();
3831  } else {
3832  constraint_ = value;
3833  }
3834  onChanged();
3835  } else {
3836  if (constraintCase_ == 5) {
3837  boolXorBuilder_.mergeFrom(value);
3838  }
3839  boolXorBuilder_.setMessage(value);
3840  }
3841  constraintCase_ = 5;
3842  return this;
3843  }
3852  if (boolXorBuilder_ == null) {
3853  if (constraintCase_ == 5) {
3854  constraintCase_ = 0;
3855  constraint_ = null;
3856  onChanged();
3857  }
3858  } else {
3859  if (constraintCase_ == 5) {
3860  constraintCase_ = 0;
3861  constraint_ = null;
3862  }
3863  boolXorBuilder_.clear();
3864  }
3865  return this;
3866  }
3875  return getBoolXorFieldBuilder().getBuilder();
3876  }
3884  @java.lang.Override
3886  if ((constraintCase_ == 5) && (boolXorBuilder_ != null)) {
3887  return boolXorBuilder_.getMessageOrBuilder();
3888  } else {
3889  if (constraintCase_ == 5) {
3890  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3891  }
3893  }
3894  }
3902  private com.google.protobuf.SingleFieldBuilderV3<
3904  getBoolXorFieldBuilder() {
3905  if (boolXorBuilder_ == null) {
3906  if (!(constraintCase_ == 5)) {
3908  }
3909  boolXorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
3911  (com.google.ortools.sat.BoolArgumentProto) constraint_,
3912  getParentForChildren(),
3913  isClean());
3914  constraint_ = null;
3915  }
3916  constraintCase_ = 5;
3917  onChanged();;
3918  return boolXorBuilder_;
3919  }
3920 
3921  private com.google.protobuf.SingleFieldBuilderV3<
3931  @java.lang.Override
3932  public boolean hasIntDiv() {
3933  return constraintCase_ == 7;
3934  }
3943  @java.lang.Override
3945  if (intDivBuilder_ == null) {
3946  if (constraintCase_ == 7) {
3947  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
3948  }
3950  } else {
3951  if (constraintCase_ == 7) {
3952  return intDivBuilder_.getMessage();
3953  }
3955  }
3956  }
3965  if (intDivBuilder_ == null) {
3966  if (value == null) {
3967  throw new NullPointerException();
3968  }
3969  constraint_ = value;
3970  onChanged();
3971  } else {
3972  intDivBuilder_.setMessage(value);
3973  }
3974  constraintCase_ = 7;
3975  return this;
3976  }
3985  com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue) {
3986  if (intDivBuilder_ == null) {
3987  constraint_ = builderForValue.build();
3988  onChanged();
3989  } else {
3990  intDivBuilder_.setMessage(builderForValue.build());
3991  }
3992  constraintCase_ = 7;
3993  return this;
3994  }
4003  if (intDivBuilder_ == null) {
4004  if (constraintCase_ == 7 &&
4007  .mergeFrom(value).buildPartial();
4008  } else {
4009  constraint_ = value;
4010  }
4011  onChanged();
4012  } else {
4013  if (constraintCase_ == 7) {
4014  intDivBuilder_.mergeFrom(value);
4015  }
4016  intDivBuilder_.setMessage(value);
4017  }
4018  constraintCase_ = 7;
4019  return this;
4020  }
4029  if (intDivBuilder_ == null) {
4030  if (constraintCase_ == 7) {
4031  constraintCase_ = 0;
4032  constraint_ = null;
4033  onChanged();
4034  }
4035  } else {
4036  if (constraintCase_ == 7) {
4037  constraintCase_ = 0;
4038  constraint_ = null;
4039  }
4040  intDivBuilder_.clear();
4041  }
4042  return this;
4043  }
4052  return getIntDivFieldBuilder().getBuilder();
4053  }
4061  @java.lang.Override
4063  if ((constraintCase_ == 7) && (intDivBuilder_ != null)) {
4064  return intDivBuilder_.getMessageOrBuilder();
4065  } else {
4066  if (constraintCase_ == 7) {
4067  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
4068  }
4070  }
4071  }
4079  private com.google.protobuf.SingleFieldBuilderV3<
4081  getIntDivFieldBuilder() {
4082  if (intDivBuilder_ == null) {
4083  if (!(constraintCase_ == 7)) {
4085  }
4086  intDivBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4088  (com.google.ortools.sat.IntegerArgumentProto) constraint_,
4089  getParentForChildren(),
4090  isClean());
4091  constraint_ = null;
4092  }
4093  constraintCase_ = 7;
4094  onChanged();;
4095  return intDivBuilder_;
4096  }
4097 
4098  private com.google.protobuf.SingleFieldBuilderV3<
4108  @java.lang.Override
4109  public boolean hasIntMod() {
4110  return constraintCase_ == 8;
4111  }
4120  @java.lang.Override
4122  if (intModBuilder_ == null) {
4123  if (constraintCase_ == 8) {
4124  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
4125  }
4127  } else {
4128  if (constraintCase_ == 8) {
4129  return intModBuilder_.getMessage();
4130  }
4132  }
4133  }
4142  if (intModBuilder_ == null) {
4143  if (value == null) {
4144  throw new NullPointerException();
4145  }
4146  constraint_ = value;
4147  onChanged();
4148  } else {
4149  intModBuilder_.setMessage(value);
4150  }
4151  constraintCase_ = 8;
4152  return this;
4153  }
4162  com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue) {
4163  if (intModBuilder_ == null) {
4164  constraint_ = builderForValue.build();
4165  onChanged();
4166  } else {
4167  intModBuilder_.setMessage(builderForValue.build());
4168  }
4169  constraintCase_ = 8;
4170  return this;
4171  }
4180  if (intModBuilder_ == null) {
4181  if (constraintCase_ == 8 &&
4184  .mergeFrom(value).buildPartial();
4185  } else {
4186  constraint_ = value;
4187  }
4188  onChanged();
4189  } else {
4190  if (constraintCase_ == 8) {
4191  intModBuilder_.mergeFrom(value);
4192  }
4193  intModBuilder_.setMessage(value);
4194  }
4195  constraintCase_ = 8;
4196  return this;
4197  }
4206  if (intModBuilder_ == null) {
4207  if (constraintCase_ == 8) {
4208  constraintCase_ = 0;
4209  constraint_ = null;
4210  onChanged();
4211  }
4212  } else {
4213  if (constraintCase_ == 8) {
4214  constraintCase_ = 0;
4215  constraint_ = null;
4216  }
4217  intModBuilder_.clear();
4218  }
4219  return this;
4220  }
4229  return getIntModFieldBuilder().getBuilder();
4230  }
4238  @java.lang.Override
4240  if ((constraintCase_ == 8) && (intModBuilder_ != null)) {
4241  return intModBuilder_.getMessageOrBuilder();
4242  } else {
4243  if (constraintCase_ == 8) {
4244  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
4245  }
4247  }
4248  }
4256  private com.google.protobuf.SingleFieldBuilderV3<
4258  getIntModFieldBuilder() {
4259  if (intModBuilder_ == null) {
4260  if (!(constraintCase_ == 8)) {
4262  }
4263  intModBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4265  (com.google.ortools.sat.IntegerArgumentProto) constraint_,
4266  getParentForChildren(),
4267  isClean());
4268  constraint_ = null;
4269  }
4270  constraintCase_ = 8;
4271  onChanged();;
4272  return intModBuilder_;
4273  }
4274 
4275  private com.google.protobuf.SingleFieldBuilderV3<
4287  @java.lang.Override
4288  public boolean hasIntMax() {
4289  return constraintCase_ == 9;
4290  }
4301  @java.lang.Override
4303  if (intMaxBuilder_ == null) {
4304  if (constraintCase_ == 9) {
4305  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
4306  }
4308  } else {
4309  if (constraintCase_ == 9) {
4310  return intMaxBuilder_.getMessage();
4311  }
4313  }
4314  }
4325  if (intMaxBuilder_ == null) {
4326  if (value == null) {
4327  throw new NullPointerException();
4328  }
4329  constraint_ = value;
4330  onChanged();
4331  } else {
4332  intMaxBuilder_.setMessage(value);
4333  }
4334  constraintCase_ = 9;
4335  return this;
4336  }
4347  com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue) {
4348  if (intMaxBuilder_ == null) {
4349  constraint_ = builderForValue.build();
4350  onChanged();
4351  } else {
4352  intMaxBuilder_.setMessage(builderForValue.build());
4353  }
4354  constraintCase_ = 9;
4355  return this;
4356  }
4367  if (intMaxBuilder_ == null) {
4368  if (constraintCase_ == 9 &&
4371  .mergeFrom(value).buildPartial();
4372  } else {
4373  constraint_ = value;
4374  }
4375  onChanged();
4376  } else {
4377  if (constraintCase_ == 9) {
4378  intMaxBuilder_.mergeFrom(value);
4379  }
4380  intMaxBuilder_.setMessage(value);
4381  }
4382  constraintCase_ = 9;
4383  return this;
4384  }
4395  if (intMaxBuilder_ == null) {
4396  if (constraintCase_ == 9) {
4397  constraintCase_ = 0;
4398  constraint_ = null;
4399  onChanged();
4400  }
4401  } else {
4402  if (constraintCase_ == 9) {
4403  constraintCase_ = 0;
4404  constraint_ = null;
4405  }
4406  intMaxBuilder_.clear();
4407  }
4408  return this;
4409  }
4420  return getIntMaxFieldBuilder().getBuilder();
4421  }
4431  @java.lang.Override
4433  if ((constraintCase_ == 9) && (intMaxBuilder_ != null)) {
4434  return intMaxBuilder_.getMessageOrBuilder();
4435  } else {
4436  if (constraintCase_ == 9) {
4437  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
4438  }
4440  }
4441  }
4451  private com.google.protobuf.SingleFieldBuilderV3<
4453  getIntMaxFieldBuilder() {
4454  if (intMaxBuilder_ == null) {
4455  if (!(constraintCase_ == 9)) {
4457  }
4458  intMaxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4460  (com.google.ortools.sat.IntegerArgumentProto) constraint_,
4461  getParentForChildren(),
4462  isClean());
4463  constraint_ = null;
4464  }
4465  constraintCase_ = 9;
4466  onChanged();;
4467  return intMaxBuilder_;
4468  }
4469 
4470  private com.google.protobuf.SingleFieldBuilderV3<
4481  @java.lang.Override
4482  public boolean hasLinMax() {
4483  return constraintCase_ == 27;
4484  }
4494  @java.lang.Override
4496  if (linMaxBuilder_ == null) {
4497  if (constraintCase_ == 27) {
4498  return (com.google.ortools.sat.LinearArgumentProto) constraint_;
4499  }
4501  } else {
4502  if (constraintCase_ == 27) {
4503  return linMaxBuilder_.getMessage();
4504  }
4506  }
4507  }
4517  if (linMaxBuilder_ == null) {
4518  if (value == null) {
4519  throw new NullPointerException();
4520  }
4521  constraint_ = value;
4522  onChanged();
4523  } else {
4524  linMaxBuilder_.setMessage(value);
4525  }
4526  constraintCase_ = 27;
4527  return this;
4528  }
4538  com.google.ortools.sat.LinearArgumentProto.Builder builderForValue) {
4539  if (linMaxBuilder_ == null) {
4540  constraint_ = builderForValue.build();
4541  onChanged();
4542  } else {
4543  linMaxBuilder_.setMessage(builderForValue.build());
4544  }
4545  constraintCase_ = 27;
4546  return this;
4547  }
4557  if (linMaxBuilder_ == null) {
4558  if (constraintCase_ == 27 &&
4561  .mergeFrom(value).buildPartial();
4562  } else {
4563  constraint_ = value;
4564  }
4565  onChanged();
4566  } else {
4567  if (constraintCase_ == 27) {
4568  linMaxBuilder_.mergeFrom(value);
4569  }
4570  linMaxBuilder_.setMessage(value);
4571  }
4572  constraintCase_ = 27;
4573  return this;
4574  }
4584  if (linMaxBuilder_ == null) {
4585  if (constraintCase_ == 27) {
4586  constraintCase_ = 0;
4587  constraint_ = null;
4588  onChanged();
4589  }
4590  } else {
4591  if (constraintCase_ == 27) {
4592  constraintCase_ = 0;
4593  constraint_ = null;
4594  }
4595  linMaxBuilder_.clear();
4596  }
4597  return this;
4598  }
4608  return getLinMaxFieldBuilder().getBuilder();
4609  }
4618  @java.lang.Override
4620  if ((constraintCase_ == 27) && (linMaxBuilder_ != null)) {
4621  return linMaxBuilder_.getMessageOrBuilder();
4622  } else {
4623  if (constraintCase_ == 27) {
4624  return (com.google.ortools.sat.LinearArgumentProto) constraint_;
4625  }
4627  }
4628  }
4637  private com.google.protobuf.SingleFieldBuilderV3<
4639  getLinMaxFieldBuilder() {
4640  if (linMaxBuilder_ == null) {
4641  if (!(constraintCase_ == 27)) {
4643  }
4644  linMaxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4646  (com.google.ortools.sat.LinearArgumentProto) constraint_,
4647  getParentForChildren(),
4648  isClean());
4649  constraint_ = null;
4650  }
4651  constraintCase_ = 27;
4652  onChanged();;
4653  return linMaxBuilder_;
4654  }
4655 
4656  private com.google.protobuf.SingleFieldBuilderV3<
4668  @java.lang.Override
4669  public boolean hasIntMin() {
4670  return constraintCase_ == 10;
4671  }
4682  @java.lang.Override
4684  if (intMinBuilder_ == null) {
4685  if (constraintCase_ == 10) {
4686  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
4687  }
4689  } else {
4690  if (constraintCase_ == 10) {
4691  return intMinBuilder_.getMessage();
4692  }
4694  }
4695  }
4706  if (intMinBuilder_ == null) {
4707  if (value == null) {
4708  throw new NullPointerException();
4709  }
4710  constraint_ = value;
4711  onChanged();
4712  } else {
4713  intMinBuilder_.setMessage(value);
4714  }
4715  constraintCase_ = 10;
4716  return this;
4717  }
4728  com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue) {
4729  if (intMinBuilder_ == null) {
4730  constraint_ = builderForValue.build();
4731  onChanged();
4732  } else {
4733  intMinBuilder_.setMessage(builderForValue.build());
4734  }
4735  constraintCase_ = 10;
4736  return this;
4737  }
4748  if (intMinBuilder_ == null) {
4749  if (constraintCase_ == 10 &&
4752  .mergeFrom(value).buildPartial();
4753  } else {
4754  constraint_ = value;
4755  }
4756  onChanged();
4757  } else {
4758  if (constraintCase_ == 10) {
4759  intMinBuilder_.mergeFrom(value);
4760  }
4761  intMinBuilder_.setMessage(value);
4762  }
4763  constraintCase_ = 10;
4764  return this;
4765  }
4776  if (intMinBuilder_ == null) {
4777  if (constraintCase_ == 10) {
4778  constraintCase_ = 0;
4779  constraint_ = null;
4780  onChanged();
4781  }
4782  } else {
4783  if (constraintCase_ == 10) {
4784  constraintCase_ = 0;
4785  constraint_ = null;
4786  }
4787  intMinBuilder_.clear();
4788  }
4789  return this;
4790  }
4801  return getIntMinFieldBuilder().getBuilder();
4802  }
4812  @java.lang.Override
4814  if ((constraintCase_ == 10) && (intMinBuilder_ != null)) {
4815  return intMinBuilder_.getMessageOrBuilder();
4816  } else {
4817  if (constraintCase_ == 10) {
4818  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
4819  }
4821  }
4822  }
4832  private com.google.protobuf.SingleFieldBuilderV3<
4834  getIntMinFieldBuilder() {
4835  if (intMinBuilder_ == null) {
4836  if (!(constraintCase_ == 10)) {
4838  }
4839  intMinBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4841  (com.google.ortools.sat.IntegerArgumentProto) constraint_,
4842  getParentForChildren(),
4843  isClean());
4844  constraint_ = null;
4845  }
4846  constraintCase_ = 10;
4847  onChanged();;
4848  return intMinBuilder_;
4849  }
4850 
4851  private com.google.protobuf.SingleFieldBuilderV3<
4862  @java.lang.Override
4863  public boolean hasLinMin() {
4864  return constraintCase_ == 28;
4865  }
4875  @java.lang.Override
4877  if (linMinBuilder_ == null) {
4878  if (constraintCase_ == 28) {
4879  return (com.google.ortools.sat.LinearArgumentProto) constraint_;
4880  }
4882  } else {
4883  if (constraintCase_ == 28) {
4884  return linMinBuilder_.getMessage();
4885  }
4887  }
4888  }
4898  if (linMinBuilder_ == null) {
4899  if (value == null) {
4900  throw new NullPointerException();
4901  }
4902  constraint_ = value;
4903  onChanged();
4904  } else {
4905  linMinBuilder_.setMessage(value);
4906  }
4907  constraintCase_ = 28;
4908  return this;
4909  }
4919  com.google.ortools.sat.LinearArgumentProto.Builder builderForValue) {
4920  if (linMinBuilder_ == null) {
4921  constraint_ = builderForValue.build();
4922  onChanged();
4923  } else {
4924  linMinBuilder_.setMessage(builderForValue.build());
4925  }
4926  constraintCase_ = 28;
4927  return this;
4928  }
4938  if (linMinBuilder_ == null) {
4939  if (constraintCase_ == 28 &&
4942  .mergeFrom(value).buildPartial();
4943  } else {
4944  constraint_ = value;
4945  }
4946  onChanged();
4947  } else {
4948  if (constraintCase_ == 28) {
4949  linMinBuilder_.mergeFrom(value);
4950  }
4951  linMinBuilder_.setMessage(value);
4952  }
4953  constraintCase_ = 28;
4954  return this;
4955  }
4965  if (linMinBuilder_ == null) {
4966  if (constraintCase_ == 28) {
4967  constraintCase_ = 0;
4968  constraint_ = null;
4969  onChanged();
4970  }
4971  } else {
4972  if (constraintCase_ == 28) {
4973  constraintCase_ = 0;
4974  constraint_ = null;
4975  }
4976  linMinBuilder_.clear();
4977  }
4978  return this;
4979  }
4989  return getLinMinFieldBuilder().getBuilder();
4990  }
4999  @java.lang.Override
5001  if ((constraintCase_ == 28) && (linMinBuilder_ != null)) {
5002  return linMinBuilder_.getMessageOrBuilder();
5003  } else {
5004  if (constraintCase_ == 28) {
5005  return (com.google.ortools.sat.LinearArgumentProto) constraint_;
5006  }
5008  }
5009  }
5018  private com.google.protobuf.SingleFieldBuilderV3<
5020  getLinMinFieldBuilder() {
5021  if (linMinBuilder_ == null) {
5022  if (!(constraintCase_ == 28)) {
5024  }
5025  linMinBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5027  (com.google.ortools.sat.LinearArgumentProto) constraint_,
5028  getParentForChildren(),
5029  isClean());
5030  constraint_ = null;
5031  }
5032  constraintCase_ = 28;
5033  onChanged();;
5034  return linMinBuilder_;
5035  }
5036 
5037  private com.google.protobuf.SingleFieldBuilderV3<
5048  @java.lang.Override
5049  public boolean hasIntProd() {
5050  return constraintCase_ == 11;
5051  }
5061  @java.lang.Override
5063  if (intProdBuilder_ == null) {
5064  if (constraintCase_ == 11) {
5065  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
5066  }
5068  } else {
5069  if (constraintCase_ == 11) {
5070  return intProdBuilder_.getMessage();
5071  }
5073  }
5074  }
5084  if (intProdBuilder_ == null) {
5085  if (value == null) {
5086  throw new NullPointerException();
5087  }
5088  constraint_ = value;
5089  onChanged();
5090  } else {
5091  intProdBuilder_.setMessage(value);
5092  }
5093  constraintCase_ = 11;
5094  return this;
5095  }
5105  com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue) {
5106  if (intProdBuilder_ == null) {
5107  constraint_ = builderForValue.build();
5108  onChanged();
5109  } else {
5110  intProdBuilder_.setMessage(builderForValue.build());
5111  }
5112  constraintCase_ = 11;
5113  return this;
5114  }
5124  if (intProdBuilder_ == null) {
5125  if (constraintCase_ == 11 &&
5128  .mergeFrom(value).buildPartial();
5129  } else {
5130  constraint_ = value;
5131  }
5132  onChanged();
5133  } else {
5134  if (constraintCase_ == 11) {
5135  intProdBuilder_.mergeFrom(value);
5136  }
5137  intProdBuilder_.setMessage(value);
5138  }
5139  constraintCase_ = 11;
5140  return this;
5141  }
5151  if (intProdBuilder_ == null) {
5152  if (constraintCase_ == 11) {
5153  constraintCase_ = 0;
5154  constraint_ = null;
5155  onChanged();
5156  }
5157  } else {
5158  if (constraintCase_ == 11) {
5159  constraintCase_ = 0;
5160  constraint_ = null;
5161  }
5162  intProdBuilder_.clear();
5163  }
5164  return this;
5165  }
5175  return getIntProdFieldBuilder().getBuilder();
5176  }
5185  @java.lang.Override
5187  if ((constraintCase_ == 11) && (intProdBuilder_ != null)) {
5188  return intProdBuilder_.getMessageOrBuilder();
5189  } else {
5190  if (constraintCase_ == 11) {
5191  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
5192  }
5194  }
5195  }
5204  private com.google.protobuf.SingleFieldBuilderV3<
5206  getIntProdFieldBuilder() {
5207  if (intProdBuilder_ == null) {
5208  if (!(constraintCase_ == 11)) {
5210  }
5211  intProdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5213  (com.google.ortools.sat.IntegerArgumentProto) constraint_,
5214  getParentForChildren(),
5215  isClean());
5216  constraint_ = null;
5217  }
5218  constraintCase_ = 11;
5219  onChanged();;
5220  return intProdBuilder_;
5221  }
5222 
5223  private com.google.protobuf.SingleFieldBuilderV3<
5234  @java.lang.Override
5235  public boolean hasLinear() {
5236  return constraintCase_ == 12;
5237  }
5247  @java.lang.Override
5249  if (linearBuilder_ == null) {
5250  if (constraintCase_ == 12) {
5251  return (com.google.ortools.sat.LinearConstraintProto) constraint_;
5252  }
5254  } else {
5255  if (constraintCase_ == 12) {
5256  return linearBuilder_.getMessage();
5257  }
5259  }
5260  }
5270  if (linearBuilder_ == null) {
5271  if (value == null) {
5272  throw new NullPointerException();
5273  }
5274  constraint_ = value;
5275  onChanged();
5276  } else {
5277  linearBuilder_.setMessage(value);
5278  }
5279  constraintCase_ = 12;
5280  return this;
5281  }
5291  com.google.ortools.sat.LinearConstraintProto.Builder builderForValue) {
5292  if (linearBuilder_ == null) {
5293  constraint_ = builderForValue.build();
5294  onChanged();
5295  } else {
5296  linearBuilder_.setMessage(builderForValue.build());
5297  }
5298  constraintCase_ = 12;
5299  return this;
5300  }
5310  if (linearBuilder_ == null) {
5311  if (constraintCase_ == 12 &&
5314  .mergeFrom(value).buildPartial();
5315  } else {
5316  constraint_ = value;
5317  }
5318  onChanged();
5319  } else {
5320  if (constraintCase_ == 12) {
5321  linearBuilder_.mergeFrom(value);
5322  }
5323  linearBuilder_.setMessage(value);
5324  }
5325  constraintCase_ = 12;
5326  return this;
5327  }
5337  if (linearBuilder_ == null) {
5338  if (constraintCase_ == 12) {
5339  constraintCase_ = 0;
5340  constraint_ = null;
5341  onChanged();
5342  }
5343  } else {
5344  if (constraintCase_ == 12) {
5345  constraintCase_ = 0;
5346  constraint_ = null;
5347  }
5348  linearBuilder_.clear();
5349  }
5350  return this;
5351  }
5361  return getLinearFieldBuilder().getBuilder();
5362  }
5371  @java.lang.Override
5373  if ((constraintCase_ == 12) && (linearBuilder_ != null)) {
5374  return linearBuilder_.getMessageOrBuilder();
5375  } else {
5376  if (constraintCase_ == 12) {
5377  return (com.google.ortools.sat.LinearConstraintProto) constraint_;
5378  }
5380  }
5381  }
5390  private com.google.protobuf.SingleFieldBuilderV3<
5392  getLinearFieldBuilder() {
5393  if (linearBuilder_ == null) {
5394  if (!(constraintCase_ == 12)) {
5396  }
5397  linearBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5399  (com.google.ortools.sat.LinearConstraintProto) constraint_,
5400  getParentForChildren(),
5401  isClean());
5402  constraint_ = null;
5403  }
5404  constraintCase_ = 12;
5405  onChanged();;
5406  return linearBuilder_;
5407  }
5408 
5409  private com.google.protobuf.SingleFieldBuilderV3<
5419  @java.lang.Override
5420  public boolean hasAllDiff() {
5421  return constraintCase_ == 13;
5422  }
5431  @java.lang.Override
5433  if (allDiffBuilder_ == null) {
5434  if (constraintCase_ == 13) {
5435  return (com.google.ortools.sat.AllDifferentConstraintProto) constraint_;
5436  }
5438  } else {
5439  if (constraintCase_ == 13) {
5440  return allDiffBuilder_.getMessage();
5441  }
5443  }
5444  }
5453  if (allDiffBuilder_ == null) {
5454  if (value == null) {
5455  throw new NullPointerException();
5456  }
5457  constraint_ = value;
5458  onChanged();
5459  } else {
5460  allDiffBuilder_.setMessage(value);
5461  }
5462  constraintCase_ = 13;
5463  return this;
5464  }
5474  if (allDiffBuilder_ == null) {
5475  constraint_ = builderForValue.build();
5476  onChanged();
5477  } else {
5478  allDiffBuilder_.setMessage(builderForValue.build());
5479  }
5480  constraintCase_ = 13;
5481  return this;
5482  }
5491  if (allDiffBuilder_ == null) {
5492  if (constraintCase_ == 13 &&
5495  .mergeFrom(value).buildPartial();
5496  } else {
5497  constraint_ = value;
5498  }
5499  onChanged();
5500  } else {
5501  if (constraintCase_ == 13) {
5502  allDiffBuilder_.mergeFrom(value);
5503  }
5504  allDiffBuilder_.setMessage(value);
5505  }
5506  constraintCase_ = 13;
5507  return this;
5508  }
5517  if (allDiffBuilder_ == null) {
5518  if (constraintCase_ == 13) {
5519  constraintCase_ = 0;
5520  constraint_ = null;
5521  onChanged();
5522  }
5523  } else {
5524  if (constraintCase_ == 13) {
5525  constraintCase_ = 0;
5526  constraint_ = null;
5527  }
5528  allDiffBuilder_.clear();
5529  }
5530  return this;
5531  }
5540  return getAllDiffFieldBuilder().getBuilder();
5541  }
5549  @java.lang.Override
5551  if ((constraintCase_ == 13) && (allDiffBuilder_ != null)) {
5552  return allDiffBuilder_.getMessageOrBuilder();
5553  } else {
5554  if (constraintCase_ == 13) {
5555  return (com.google.ortools.sat.AllDifferentConstraintProto) constraint_;
5556  }
5558  }
5559  }
5567  private com.google.protobuf.SingleFieldBuilderV3<
5569  getAllDiffFieldBuilder() {
5570  if (allDiffBuilder_ == null) {
5571  if (!(constraintCase_ == 13)) {
5573  }
5574  allDiffBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5577  getParentForChildren(),
5578  isClean());
5579  constraint_ = null;
5580  }
5581  constraintCase_ = 13;
5582  onChanged();;
5583  return allDiffBuilder_;
5584  }
5585 
5586  private com.google.protobuf.SingleFieldBuilderV3<
5597  @java.lang.Override
5598  public boolean hasElement() {
5599  return constraintCase_ == 14;
5600  }
5610  @java.lang.Override
5612  if (elementBuilder_ == null) {
5613  if (constraintCase_ == 14) {
5614  return (com.google.ortools.sat.ElementConstraintProto) constraint_;
5615  }
5617  } else {
5618  if (constraintCase_ == 14) {
5619  return elementBuilder_.getMessage();
5620  }
5622  }
5623  }
5633  if (elementBuilder_ == null) {
5634  if (value == null) {
5635  throw new NullPointerException();
5636  }
5637  constraint_ = value;
5638  onChanged();
5639  } else {
5640  elementBuilder_.setMessage(value);
5641  }
5642  constraintCase_ = 14;
5643  return this;
5644  }
5654  com.google.ortools.sat.ElementConstraintProto.Builder builderForValue) {
5655  if (elementBuilder_ == null) {
5656  constraint_ = builderForValue.build();
5657  onChanged();
5658  } else {
5659  elementBuilder_.setMessage(builderForValue.build());
5660  }
5661  constraintCase_ = 14;
5662  return this;
5663  }
5673  if (elementBuilder_ == null) {
5674  if (constraintCase_ == 14 &&
5677  .mergeFrom(value).buildPartial();
5678  } else {
5679  constraint_ = value;
5680  }
5681  onChanged();
5682  } else {
5683  if (constraintCase_ == 14) {
5684  elementBuilder_.mergeFrom(value);
5685  }
5686  elementBuilder_.setMessage(value);
5687  }
5688  constraintCase_ = 14;
5689  return this;
5690  }
5700  if (elementBuilder_ == null) {
5701  if (constraintCase_ == 14) {
5702  constraintCase_ = 0;
5703  constraint_ = null;
5704  onChanged();
5705  }
5706  } else {
5707  if (constraintCase_ == 14) {
5708  constraintCase_ = 0;
5709  constraint_ = null;
5710  }
5711  elementBuilder_.clear();
5712  }
5713  return this;
5714  }
5724  return getElementFieldBuilder().getBuilder();
5725  }
5734  @java.lang.Override
5736  if ((constraintCase_ == 14) && (elementBuilder_ != null)) {
5737  return elementBuilder_.getMessageOrBuilder();
5738  } else {
5739  if (constraintCase_ == 14) {
5740  return (com.google.ortools.sat.ElementConstraintProto) constraint_;
5741  }
5743  }
5744  }
5753  private com.google.protobuf.SingleFieldBuilderV3<
5755  getElementFieldBuilder() {
5756  if (elementBuilder_ == null) {
5757  if (!(constraintCase_ == 14)) {
5759  }
5760  elementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5763  getParentForChildren(),
5764  isClean());
5765  constraint_ = null;
5766  }
5767  constraintCase_ = 14;
5768  onChanged();;
5769  return elementBuilder_;
5770  }
5771 
5772  private com.google.protobuf.SingleFieldBuilderV3<
5783  @java.lang.Override
5784  public boolean hasCircuit() {
5785  return constraintCase_ == 15;
5786  }
5796  @java.lang.Override
5798  if (circuitBuilder_ == null) {
5799  if (constraintCase_ == 15) {
5800  return (com.google.ortools.sat.CircuitConstraintProto) constraint_;
5801  }
5803  } else {
5804  if (constraintCase_ == 15) {
5805  return circuitBuilder_.getMessage();
5806  }
5808  }
5809  }
5819  if (circuitBuilder_ == null) {
5820  if (value == null) {
5821  throw new NullPointerException();
5822  }
5823  constraint_ = value;
5824  onChanged();
5825  } else {
5826  circuitBuilder_.setMessage(value);
5827  }
5828  constraintCase_ = 15;
5829  return this;
5830  }
5840  com.google.ortools.sat.CircuitConstraintProto.Builder builderForValue) {
5841  if (circuitBuilder_ == null) {
5842  constraint_ = builderForValue.build();
5843  onChanged();
5844  } else {
5845  circuitBuilder_.setMessage(builderForValue.build());
5846  }
5847  constraintCase_ = 15;
5848  return this;
5849  }
5859  if (circuitBuilder_ == null) {
5860  if (constraintCase_ == 15 &&
5863  .mergeFrom(value).buildPartial();
5864  } else {
5865  constraint_ = value;
5866  }
5867  onChanged();
5868  } else {
5869  if (constraintCase_ == 15) {
5870  circuitBuilder_.mergeFrom(value);
5871  }
5872  circuitBuilder_.setMessage(value);
5873  }
5874  constraintCase_ = 15;
5875  return this;
5876  }
5886  if (circuitBuilder_ == null) {
5887  if (constraintCase_ == 15) {
5888  constraintCase_ = 0;
5889  constraint_ = null;
5890  onChanged();
5891  }
5892  } else {
5893  if (constraintCase_ == 15) {
5894  constraintCase_ = 0;
5895  constraint_ = null;
5896  }
5897  circuitBuilder_.clear();
5898  }
5899  return this;
5900  }
5910  return getCircuitFieldBuilder().getBuilder();
5911  }
5920  @java.lang.Override
5922  if ((constraintCase_ == 15) && (circuitBuilder_ != null)) {
5923  return circuitBuilder_.getMessageOrBuilder();
5924  } else {
5925  if (constraintCase_ == 15) {
5926  return (com.google.ortools.sat.CircuitConstraintProto) constraint_;
5927  }
5929  }
5930  }
5939  private com.google.protobuf.SingleFieldBuilderV3<
5941  getCircuitFieldBuilder() {
5942  if (circuitBuilder_ == null) {
5943  if (!(constraintCase_ == 15)) {
5945  }
5946  circuitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5949  getParentForChildren(),
5950  isClean());
5951  constraint_ = null;
5952  }
5953  constraintCase_ = 15;
5954  onChanged();;
5955  return circuitBuilder_;
5956  }
5957 
5958  private com.google.protobuf.SingleFieldBuilderV3<
5968  @java.lang.Override
5969  public boolean hasRoutes() {
5970  return constraintCase_ == 23;
5971  }
5980  @java.lang.Override
5982  if (routesBuilder_ == null) {
5983  if (constraintCase_ == 23) {
5984  return (com.google.ortools.sat.RoutesConstraintProto) constraint_;
5985  }
5987  } else {
5988  if (constraintCase_ == 23) {
5989  return routesBuilder_.getMessage();
5990  }
5992  }
5993  }
6002  if (routesBuilder_ == null) {
6003  if (value == null) {
6004  throw new NullPointerException();
6005  }
6006  constraint_ = value;
6007  onChanged();
6008  } else {
6009  routesBuilder_.setMessage(value);
6010  }
6011  constraintCase_ = 23;
6012  return this;
6013  }
6022  com.google.ortools.sat.RoutesConstraintProto.Builder builderForValue) {
6023  if (routesBuilder_ == null) {
6024  constraint_ = builderForValue.build();
6025  onChanged();
6026  } else {
6027  routesBuilder_.setMessage(builderForValue.build());
6028  }
6029  constraintCase_ = 23;
6030  return this;
6031  }
6040  if (routesBuilder_ == null) {
6041  if (constraintCase_ == 23 &&
6044  .mergeFrom(value).buildPartial();
6045  } else {
6046  constraint_ = value;
6047  }
6048  onChanged();
6049  } else {
6050  if (constraintCase_ == 23) {
6051  routesBuilder_.mergeFrom(value);
6052  }
6053  routesBuilder_.setMessage(value);
6054  }
6055  constraintCase_ = 23;
6056  return this;
6057  }
6066  if (routesBuilder_ == null) {
6067  if (constraintCase_ == 23) {
6068  constraintCase_ = 0;
6069  constraint_ = null;
6070  onChanged();
6071  }
6072  } else {
6073  if (constraintCase_ == 23) {
6074  constraintCase_ = 0;
6075  constraint_ = null;
6076  }
6077  routesBuilder_.clear();
6078  }
6079  return this;
6080  }
6089  return getRoutesFieldBuilder().getBuilder();
6090  }
6098  @java.lang.Override
6100  if ((constraintCase_ == 23) && (routesBuilder_ != null)) {
6101  return routesBuilder_.getMessageOrBuilder();
6102  } else {
6103  if (constraintCase_ == 23) {
6104  return (com.google.ortools.sat.RoutesConstraintProto) constraint_;
6105  }
6107  }
6108  }
6116  private com.google.protobuf.SingleFieldBuilderV3<
6118  getRoutesFieldBuilder() {
6119  if (routesBuilder_ == null) {
6120  if (!(constraintCase_ == 23)) {
6122  }
6123  routesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6125  (com.google.ortools.sat.RoutesConstraintProto) constraint_,
6126  getParentForChildren(),
6127  isClean());
6128  constraint_ = null;
6129  }
6130  constraintCase_ = 23;
6131  onChanged();;
6132  return routesBuilder_;
6133  }
6134 
6135  private com.google.protobuf.SingleFieldBuilderV3<
6146  @java.lang.Override
6147  public boolean hasCircuitCovering() {
6148  return constraintCase_ == 25;
6149  }
6159  @java.lang.Override
6161  if (circuitCoveringBuilder_ == null) {
6162  if (constraintCase_ == 25) {
6163  return (com.google.ortools.sat.CircuitCoveringConstraintProto) constraint_;
6164  }
6166  } else {
6167  if (constraintCase_ == 25) {
6168  return circuitCoveringBuilder_.getMessage();
6169  }
6171  }
6172  }
6182  if (circuitCoveringBuilder_ == null) {
6183  if (value == null) {
6184  throw new NullPointerException();
6185  }
6186  constraint_ = value;
6187  onChanged();
6188  } else {
6189  circuitCoveringBuilder_.setMessage(value);
6190  }
6191  constraintCase_ = 25;
6192  return this;
6193  }
6204  if (circuitCoveringBuilder_ == null) {
6205  constraint_ = builderForValue.build();
6206  onChanged();
6207  } else {
6208  circuitCoveringBuilder_.setMessage(builderForValue.build());
6209  }
6210  constraintCase_ = 25;
6211  return this;
6212  }
6222  if (circuitCoveringBuilder_ == null) {
6223  if (constraintCase_ == 25 &&
6226  .mergeFrom(value).buildPartial();
6227  } else {
6228  constraint_ = value;
6229  }
6230  onChanged();
6231  } else {
6232  if (constraintCase_ == 25) {
6233  circuitCoveringBuilder_.mergeFrom(value);
6234  }
6235  circuitCoveringBuilder_.setMessage(value);
6236  }
6237  constraintCase_ = 25;
6238  return this;
6239  }
6249  if (circuitCoveringBuilder_ == null) {
6250  if (constraintCase_ == 25) {
6251  constraintCase_ = 0;
6252  constraint_ = null;
6253  onChanged();
6254  }
6255  } else {
6256  if (constraintCase_ == 25) {
6257  constraintCase_ = 0;
6258  constraint_ = null;
6259  }
6260  circuitCoveringBuilder_.clear();
6261  }
6262  return this;
6263  }
6273  return getCircuitCoveringFieldBuilder().getBuilder();
6274  }
6283  @java.lang.Override
6285  if ((constraintCase_ == 25) && (circuitCoveringBuilder_ != null)) {
6286  return circuitCoveringBuilder_.getMessageOrBuilder();
6287  } else {
6288  if (constraintCase_ == 25) {
6289  return (com.google.ortools.sat.CircuitCoveringConstraintProto) constraint_;
6290  }
6292  }
6293  }
6302  private com.google.protobuf.SingleFieldBuilderV3<
6304  getCircuitCoveringFieldBuilder() {
6305  if (circuitCoveringBuilder_ == null) {
6306  if (!(constraintCase_ == 25)) {
6308  }
6309  circuitCoveringBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6312  getParentForChildren(),
6313  isClean());
6314  constraint_ = null;
6315  }
6316  constraintCase_ = 25;
6317  onChanged();;
6318  return circuitCoveringBuilder_;
6319  }
6320 
6321  private com.google.protobuf.SingleFieldBuilderV3<
6332  @java.lang.Override
6333  public boolean hasTable() {
6334  return constraintCase_ == 16;
6335  }
6345  @java.lang.Override
6347  if (tableBuilder_ == null) {
6348  if (constraintCase_ == 16) {
6349  return (com.google.ortools.sat.TableConstraintProto) constraint_;
6350  }
6352  } else {
6353  if (constraintCase_ == 16) {
6354  return tableBuilder_.getMessage();
6355  }
6357  }
6358  }
6368  if (tableBuilder_ == null) {
6369  if (value == null) {
6370  throw new NullPointerException();
6371  }
6372  constraint_ = value;
6373  onChanged();
6374  } else {
6375  tableBuilder_.setMessage(value);
6376  }
6377  constraintCase_ = 16;
6378  return this;
6379  }
6389  com.google.ortools.sat.TableConstraintProto.Builder builderForValue) {
6390  if (tableBuilder_ == null) {
6391  constraint_ = builderForValue.build();
6392  onChanged();
6393  } else {
6394  tableBuilder_.setMessage(builderForValue.build());
6395  }
6396  constraintCase_ = 16;
6397  return this;
6398  }
6408  if (tableBuilder_ == null) {
6409  if (constraintCase_ == 16 &&
6412  .mergeFrom(value).buildPartial();
6413  } else {
6414  constraint_ = value;
6415  }
6416  onChanged();
6417  } else {
6418  if (constraintCase_ == 16) {
6419  tableBuilder_.mergeFrom(value);
6420  }
6421  tableBuilder_.setMessage(value);
6422  }
6423  constraintCase_ = 16;
6424  return this;
6425  }
6434  public Builder clearTable() {
6435  if (tableBuilder_ == null) {
6436  if (constraintCase_ == 16) {
6437  constraintCase_ = 0;
6438  constraint_ = null;
6439  onChanged();
6440  }
6441  } else {
6442  if (constraintCase_ == 16) {
6443  constraintCase_ = 0;
6444  constraint_ = null;
6445  }
6446  tableBuilder_.clear();
6447  }
6448  return this;
6449  }
6459  return getTableFieldBuilder().getBuilder();
6460  }
6469  @java.lang.Override
6471  if ((constraintCase_ == 16) && (tableBuilder_ != null)) {
6472  return tableBuilder_.getMessageOrBuilder();
6473  } else {
6474  if (constraintCase_ == 16) {
6475  return (com.google.ortools.sat.TableConstraintProto) constraint_;
6476  }
6478  }
6479  }
6488  private com.google.protobuf.SingleFieldBuilderV3<
6490  getTableFieldBuilder() {
6491  if (tableBuilder_ == null) {
6492  if (!(constraintCase_ == 16)) {
6494  }
6495  tableBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6497  (com.google.ortools.sat.TableConstraintProto) constraint_,
6498  getParentForChildren(),
6499  isClean());
6500  constraint_ = null;
6501  }
6502  constraintCase_ = 16;
6503  onChanged();;
6504  return tableBuilder_;
6505  }
6506 
6507  private com.google.protobuf.SingleFieldBuilderV3<
6518  @java.lang.Override
6519  public boolean hasAutomaton() {
6520  return constraintCase_ == 17;
6521  }
6531  @java.lang.Override
6533  if (automatonBuilder_ == null) {
6534  if (constraintCase_ == 17) {
6535  return (com.google.ortools.sat.AutomatonConstraintProto) constraint_;
6536  }
6538  } else {
6539  if (constraintCase_ == 17) {
6540  return automatonBuilder_.getMessage();
6541  }
6543  }
6544  }
6554  if (automatonBuilder_ == null) {
6555  if (value == null) {
6556  throw new NullPointerException();
6557  }
6558  constraint_ = value;
6559  onChanged();
6560  } else {
6561  automatonBuilder_.setMessage(value);
6562  }
6563  constraintCase_ = 17;
6564  return this;
6565  }
6576  if (automatonBuilder_ == null) {
6577  constraint_ = builderForValue.build();
6578  onChanged();
6579  } else {
6580  automatonBuilder_.setMessage(builderForValue.build());
6581  }
6582  constraintCase_ = 17;
6583  return this;
6584  }
6594  if (automatonBuilder_ == null) {
6595  if (constraintCase_ == 17 &&
6598  .mergeFrom(value).buildPartial();
6599  } else {
6600  constraint_ = value;
6601  }
6602  onChanged();
6603  } else {
6604  if (constraintCase_ == 17) {
6605  automatonBuilder_.mergeFrom(value);
6606  }
6607  automatonBuilder_.setMessage(value);
6608  }
6609  constraintCase_ = 17;
6610  return this;
6611  }
6621  if (automatonBuilder_ == null) {
6622  if (constraintCase_ == 17) {
6623  constraintCase_ = 0;
6624  constraint_ = null;
6625  onChanged();
6626  }
6627  } else {
6628  if (constraintCase_ == 17) {
6629  constraintCase_ = 0;
6630  constraint_ = null;
6631  }
6632  automatonBuilder_.clear();
6633  }
6634  return this;
6635  }
6645  return getAutomatonFieldBuilder().getBuilder();
6646  }
6655  @java.lang.Override
6657  if ((constraintCase_ == 17) && (automatonBuilder_ != null)) {
6658  return automatonBuilder_.getMessageOrBuilder();
6659  } else {
6660  if (constraintCase_ == 17) {
6661  return (com.google.ortools.sat.AutomatonConstraintProto) constraint_;
6662  }
6664  }
6665  }
6674  private com.google.protobuf.SingleFieldBuilderV3<
6676  getAutomatonFieldBuilder() {
6677  if (automatonBuilder_ == null) {
6678  if (!(constraintCase_ == 17)) {
6680  }
6681  automatonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6684  getParentForChildren(),
6685  isClean());
6686  constraint_ = null;
6687  }
6688  constraintCase_ = 17;
6689  onChanged();;
6690  return automatonBuilder_;
6691  }
6692 
6693  private com.google.protobuf.SingleFieldBuilderV3<
6704  @java.lang.Override
6705  public boolean hasInverse() {
6706  return constraintCase_ == 18;
6707  }
6717  @java.lang.Override
6719  if (inverseBuilder_ == null) {
6720  if (constraintCase_ == 18) {
6721  return (com.google.ortools.sat.InverseConstraintProto) constraint_;
6722  }
6724  } else {
6725  if (constraintCase_ == 18) {
6726  return inverseBuilder_.getMessage();
6727  }
6729  }
6730  }
6740  if (inverseBuilder_ == null) {
6741  if (value == null) {
6742  throw new NullPointerException();
6743  }
6744  constraint_ = value;
6745  onChanged();
6746  } else {
6747  inverseBuilder_.setMessage(value);
6748  }
6749  constraintCase_ = 18;
6750  return this;
6751  }
6761  com.google.ortools.sat.InverseConstraintProto.Builder builderForValue) {
6762  if (inverseBuilder_ == null) {
6763  constraint_ = builderForValue.build();
6764  onChanged();
6765  } else {
6766  inverseBuilder_.setMessage(builderForValue.build());
6767  }
6768  constraintCase_ = 18;
6769  return this;
6770  }
6780  if (inverseBuilder_ == null) {
6781  if (constraintCase_ == 18 &&
6784  .mergeFrom(value).buildPartial();
6785  } else {
6786  constraint_ = value;
6787  }
6788  onChanged();
6789  } else {
6790  if (constraintCase_ == 18) {
6791  inverseBuilder_.mergeFrom(value);
6792  }
6793  inverseBuilder_.setMessage(value);
6794  }
6795  constraintCase_ = 18;
6796  return this;
6797  }
6807  if (inverseBuilder_ == null) {
6808  if (constraintCase_ == 18) {
6809  constraintCase_ = 0;
6810  constraint_ = null;
6811  onChanged();
6812  }
6813  } else {
6814  if (constraintCase_ == 18) {
6815  constraintCase_ = 0;
6816  constraint_ = null;
6817  }
6818  inverseBuilder_.clear();
6819  }
6820  return this;
6821  }
6831  return getInverseFieldBuilder().getBuilder();
6832  }
6841  @java.lang.Override
6843  if ((constraintCase_ == 18) && (inverseBuilder_ != null)) {
6844  return inverseBuilder_.getMessageOrBuilder();
6845  } else {
6846  if (constraintCase_ == 18) {
6847  return (com.google.ortools.sat.InverseConstraintProto) constraint_;
6848  }
6850  }
6851  }
6860  private com.google.protobuf.SingleFieldBuilderV3<
6862  getInverseFieldBuilder() {
6863  if (inverseBuilder_ == null) {
6864  if (!(constraintCase_ == 18)) {
6866  }
6867  inverseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6870  getParentForChildren(),
6871  isClean());
6872  constraint_ = null;
6873  }
6874  constraintCase_ = 18;
6875  onChanged();;
6876  return inverseBuilder_;
6877  }
6878 
6879  private com.google.protobuf.SingleFieldBuilderV3<
6891  @java.lang.Override
6892  public boolean hasReservoir() {
6893  return constraintCase_ == 24;
6894  }
6905  @java.lang.Override
6907  if (reservoirBuilder_ == null) {
6908  if (constraintCase_ == 24) {
6909  return (com.google.ortools.sat.ReservoirConstraintProto) constraint_;
6910  }
6912  } else {
6913  if (constraintCase_ == 24) {
6914  return reservoirBuilder_.getMessage();
6915  }
6917  }
6918  }
6929  if (reservoirBuilder_ == null) {
6930  if (value == null) {
6931  throw new NullPointerException();
6932  }
6933  constraint_ = value;
6934  onChanged();
6935  } else {
6936  reservoirBuilder_.setMessage(value);
6937  }
6938  constraintCase_ = 24;
6939  return this;
6940  }
6952  if (reservoirBuilder_ == null) {
6953  constraint_ = builderForValue.build();
6954  onChanged();
6955  } else {
6956  reservoirBuilder_.setMessage(builderForValue.build());
6957  }
6958  constraintCase_ = 24;
6959  return this;
6960  }
6971  if (reservoirBuilder_ == null) {
6972  if (constraintCase_ == 24 &&
6975  .mergeFrom(value).buildPartial();
6976  } else {
6977  constraint_ = value;
6978  }
6979  onChanged();
6980  } else {
6981  if (constraintCase_ == 24) {
6982  reservoirBuilder_.mergeFrom(value);
6983  }
6984  reservoirBuilder_.setMessage(value);
6985  }
6986  constraintCase_ = 24;
6987  return this;
6988  }
6999  if (reservoirBuilder_ == null) {
7000  if (constraintCase_ == 24) {
7001  constraintCase_ = 0;
7002  constraint_ = null;
7003  onChanged();
7004  }
7005  } else {
7006  if (constraintCase_ == 24) {
7007  constraintCase_ = 0;
7008  constraint_ = null;
7009  }
7010  reservoirBuilder_.clear();
7011  }
7012  return this;
7013  }
7024  return getReservoirFieldBuilder().getBuilder();
7025  }
7035  @java.lang.Override
7037  if ((constraintCase_ == 24) && (reservoirBuilder_ != null)) {
7038  return reservoirBuilder_.getMessageOrBuilder();
7039  } else {
7040  if (constraintCase_ == 24) {
7041  return (com.google.ortools.sat.ReservoirConstraintProto) constraint_;
7042  }
7044  }
7045  }
7055  private com.google.protobuf.SingleFieldBuilderV3<
7057  getReservoirFieldBuilder() {
7058  if (reservoirBuilder_ == null) {
7059  if (!(constraintCase_ == 24)) {
7061  }
7062  reservoirBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
7065  getParentForChildren(),
7066  isClean());
7067  constraint_ = null;
7068  }
7069  constraintCase_ = 24;
7070  onChanged();;
7071  return reservoirBuilder_;
7072  }
7073 
7074  private com.google.protobuf.SingleFieldBuilderV3<
7085  @java.lang.Override
7086  public boolean hasInterval() {
7087  return constraintCase_ == 19;
7088  }
7098  @java.lang.Override
7100  if (intervalBuilder_ == null) {
7101  if (constraintCase_ == 19) {
7102  return (com.google.ortools.sat.IntervalConstraintProto) constraint_;
7103  }
7105  } else {
7106  if (constraintCase_ == 19) {
7107  return intervalBuilder_.getMessage();
7108  }
7110  }
7111  }
7121  if (intervalBuilder_ == null) {
7122  if (value == null) {
7123  throw new NullPointerException();
7124  }
7125  constraint_ = value;
7126  onChanged();
7127  } else {
7128  intervalBuilder_.setMessage(value);
7129  }
7130  constraintCase_ = 19;
7131  return this;
7132  }
7143  if (intervalBuilder_ == null) {
7144  constraint_ = builderForValue.build();
7145  onChanged();
7146  } else {
7147  intervalBuilder_.setMessage(builderForValue.build());
7148  }
7149  constraintCase_ = 19;
7150  return this;
7151  }
7161  if (intervalBuilder_ == null) {
7162  if (constraintCase_ == 19 &&
7165  .mergeFrom(value).buildPartial();
7166  } else {
7167  constraint_ = value;
7168  }
7169  onChanged();
7170  } else {
7171  if (constraintCase_ == 19) {
7172  intervalBuilder_.mergeFrom(value);
7173  }
7174  intervalBuilder_.setMessage(value);
7175  }
7176  constraintCase_ = 19;
7177  return this;
7178  }
7188  if (intervalBuilder_ == null) {
7189  if (constraintCase_ == 19) {
7190  constraintCase_ = 0;
7191  constraint_ = null;
7192  onChanged();
7193  }
7194  } else {
7195  if (constraintCase_ == 19) {
7196  constraintCase_ = 0;
7197  constraint_ = null;
7198  }
7199  intervalBuilder_.clear();
7200  }
7201  return this;
7202  }
7212  return getIntervalFieldBuilder().getBuilder();
7213  }
7222  @java.lang.Override
7224  if ((constraintCase_ == 19) && (intervalBuilder_ != null)) {
7225  return intervalBuilder_.getMessageOrBuilder();
7226  } else {
7227  if (constraintCase_ == 19) {
7228  return (com.google.ortools.sat.IntervalConstraintProto) constraint_;
7229  }
7231  }
7232  }
7241  private com.google.protobuf.SingleFieldBuilderV3<
7243  getIntervalFieldBuilder() {
7244  if (intervalBuilder_ == null) {
7245  if (!(constraintCase_ == 19)) {
7247  }
7248  intervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
7251  getParentForChildren(),
7252  isClean());
7253  constraint_ = null;
7254  }
7255  constraintCase_ = 19;
7256  onChanged();;
7257  return intervalBuilder_;
7258  }
7259 
7260  private com.google.protobuf.SingleFieldBuilderV3<
7272  @java.lang.Override
7273  public boolean hasNoOverlap() {
7274  return constraintCase_ == 20;
7275  }
7286  @java.lang.Override
7288  if (noOverlapBuilder_ == null) {
7289  if (constraintCase_ == 20) {
7290  return (com.google.ortools.sat.NoOverlapConstraintProto) constraint_;
7291  }
7293  } else {
7294  if (constraintCase_ == 20) {
7295  return noOverlapBuilder_.getMessage();
7296  }
7298  }
7299  }
7310  if (noOverlapBuilder_ == null) {
7311  if (value == null) {
7312  throw new NullPointerException();
7313  }
7314  constraint_ = value;
7315  onChanged();
7316  } else {
7317  noOverlapBuilder_.setMessage(value);
7318  }
7319  constraintCase_ = 20;
7320  return this;
7321  }
7333  if (noOverlapBuilder_ == null) {
7334  constraint_ = builderForValue.build();
7335  onChanged();
7336  } else {
7337  noOverlapBuilder_.setMessage(builderForValue.build());
7338  }
7339  constraintCase_ = 20;
7340  return this;
7341  }
7352  if (noOverlapBuilder_ == null) {
7353  if (constraintCase_ == 20 &&
7356  .mergeFrom(value).buildPartial();
7357  } else {
7358  constraint_ = value;
7359  }
7360  onChanged();
7361  } else {
7362  if (constraintCase_ == 20) {
7363  noOverlapBuilder_.mergeFrom(value);
7364  }
7365  noOverlapBuilder_.setMessage(value);
7366  }
7367  constraintCase_ = 20;
7368  return this;
7369  }
7380  if (noOverlapBuilder_ == null) {
7381  if (constraintCase_ == 20) {
7382  constraintCase_ = 0;
7383  constraint_ = null;
7384  onChanged();
7385  }
7386  } else {
7387  if (constraintCase_ == 20) {
7388  constraintCase_ = 0;
7389  constraint_ = null;
7390  }
7391  noOverlapBuilder_.clear();
7392  }
7393  return this;
7394  }
7405  return getNoOverlapFieldBuilder().getBuilder();
7406  }
7416  @java.lang.Override
7418  if ((constraintCase_ == 20) && (noOverlapBuilder_ != null)) {
7419  return noOverlapBuilder_.getMessageOrBuilder();
7420  } else {
7421  if (constraintCase_ == 20) {
7422  return (com.google.ortools.sat.NoOverlapConstraintProto) constraint_;
7423  }
7425  }
7426  }
7436  private com.google.protobuf.SingleFieldBuilderV3<
7438  getNoOverlapFieldBuilder() {
7439  if (noOverlapBuilder_ == null) {
7440  if (!(constraintCase_ == 20)) {
7442  }
7443  noOverlapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
7446  getParentForChildren(),
7447  isClean());
7448  constraint_ = null;
7449  }
7450  constraintCase_ = 20;
7451  onChanged();;
7452  return noOverlapBuilder_;
7453  }
7454 
7455  private com.google.protobuf.SingleFieldBuilderV3<
7465  @java.lang.Override
7466  public boolean hasNoOverlap2D() {
7467  return constraintCase_ == 21;
7468  }
7477  @java.lang.Override
7479  if (noOverlap2DBuilder_ == null) {
7480  if (constraintCase_ == 21) {
7481  return (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_;
7482  }
7484  } else {
7485  if (constraintCase_ == 21) {
7486  return noOverlap2DBuilder_.getMessage();
7487  }
7489  }
7490  }
7499  if (noOverlap2DBuilder_ == null) {
7500  if (value == null) {
7501  throw new NullPointerException();
7502  }
7503  constraint_ = value;
7504  onChanged();
7505  } else {
7506  noOverlap2DBuilder_.setMessage(value);
7507  }
7508  constraintCase_ = 21;
7509  return this;
7510  }
7520  if (noOverlap2DBuilder_ == null) {
7521  constraint_ = builderForValue.build();
7522  onChanged();
7523  } else {
7524  noOverlap2DBuilder_.setMessage(builderForValue.build());
7525  }
7526  constraintCase_ = 21;
7527  return this;
7528  }
7537  if (noOverlap2DBuilder_ == null) {
7538  if (constraintCase_ == 21 &&
7541  .mergeFrom(value).buildPartial();
7542  } else {
7543  constraint_ = value;
7544  }
7545  onChanged();
7546  } else {
7547  if (constraintCase_ == 21) {
7548  noOverlap2DBuilder_.mergeFrom(value);
7549  }
7550  noOverlap2DBuilder_.setMessage(value);
7551  }
7552  constraintCase_ = 21;
7553  return this;
7554  }
7563  if (noOverlap2DBuilder_ == null) {
7564  if (constraintCase_ == 21) {
7565  constraintCase_ = 0;
7566  constraint_ = null;
7567  onChanged();
7568  }
7569  } else {
7570  if (constraintCase_ == 21) {
7571  constraintCase_ = 0;
7572  constraint_ = null;
7573  }
7574  noOverlap2DBuilder_.clear();
7575  }
7576  return this;
7577  }
7586  return getNoOverlap2DFieldBuilder().getBuilder();
7587  }
7595  @java.lang.Override
7597  if ((constraintCase_ == 21) && (noOverlap2DBuilder_ != null)) {
7598  return noOverlap2DBuilder_.getMessageOrBuilder();
7599  } else {
7600  if (constraintCase_ == 21) {
7601  return (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_;
7602  }
7604  }
7605  }
7613  private com.google.protobuf.SingleFieldBuilderV3<
7615  getNoOverlap2DFieldBuilder() {
7616  if (noOverlap2DBuilder_ == null) {
7617  if (!(constraintCase_ == 21)) {
7619  }
7620  noOverlap2DBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
7623  getParentForChildren(),
7624  isClean());
7625  constraint_ = null;
7626  }
7627  constraintCase_ = 21;
7628  onChanged();;
7629  return noOverlap2DBuilder_;
7630  }
7631 
7632  private com.google.protobuf.SingleFieldBuilderV3<
7644  @java.lang.Override
7645  public boolean hasCumulative() {
7646  return constraintCase_ == 22;
7647  }
7658  @java.lang.Override
7660  if (cumulativeBuilder_ == null) {
7661  if (constraintCase_ == 22) {
7662  return (com.google.ortools.sat.CumulativeConstraintProto) constraint_;
7663  }
7665  } else {
7666  if (constraintCase_ == 22) {
7667  return cumulativeBuilder_.getMessage();
7668  }
7670  }
7671  }
7682  if (cumulativeBuilder_ == null) {
7683  if (value == null) {
7684  throw new NullPointerException();
7685  }
7686  constraint_ = value;
7687  onChanged();
7688  } else {
7689  cumulativeBuilder_.setMessage(value);
7690  }
7691  constraintCase_ = 22;
7692  return this;
7693  }
7705  if (cumulativeBuilder_ == null) {
7706  constraint_ = builderForValue.build();
7707  onChanged();
7708  } else {
7709  cumulativeBuilder_.setMessage(builderForValue.build());
7710  }
7711  constraintCase_ = 22;
7712  return this;
7713  }
7724  if (cumulativeBuilder_ == null) {
7725  if (constraintCase_ == 22 &&
7728  .mergeFrom(value).buildPartial();
7729  } else {
7730  constraint_ = value;
7731  }
7732  onChanged();
7733  } else {
7734  if (constraintCase_ == 22) {
7735  cumulativeBuilder_.mergeFrom(value);
7736  }
7737  cumulativeBuilder_.setMessage(value);
7738  }
7739  constraintCase_ = 22;
7740  return this;
7741  }
7752  if (cumulativeBuilder_ == null) {
7753  if (constraintCase_ == 22) {
7754  constraintCase_ = 0;
7755  constraint_ = null;
7756  onChanged();
7757  }
7758  } else {
7759  if (constraintCase_ == 22) {
7760  constraintCase_ = 0;
7761  constraint_ = null;
7762  }
7763  cumulativeBuilder_.clear();
7764  }
7765  return this;
7766  }
7777  return getCumulativeFieldBuilder().getBuilder();
7778  }
7788  @java.lang.Override
7790  if ((constraintCase_ == 22) && (cumulativeBuilder_ != null)) {
7791  return cumulativeBuilder_.getMessageOrBuilder();
7792  } else {
7793  if (constraintCase_ == 22) {
7794  return (com.google.ortools.sat.CumulativeConstraintProto) constraint_;
7795  }
7797  }
7798  }
7808  private com.google.protobuf.SingleFieldBuilderV3<
7810  getCumulativeFieldBuilder() {
7811  if (cumulativeBuilder_ == null) {
7812  if (!(constraintCase_ == 22)) {
7814  }
7815  cumulativeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
7818  getParentForChildren(),
7819  isClean());
7820  constraint_ = null;
7821  }
7822  constraintCase_ = 22;
7823  onChanged();;
7824  return cumulativeBuilder_;
7825  }
7826  @java.lang.Override
7828  final com.google.protobuf.UnknownFieldSet unknownFields) {
7829  return super.setUnknownFields(unknownFields);
7830  }
7831 
7832  @java.lang.Override
7834  final com.google.protobuf.UnknownFieldSet unknownFields) {
7835  return super.mergeUnknownFields(unknownFields);
7836  }
7837 
7838 
7839  // @@protoc_insertion_point(builder_scope:operations_research.sat.ConstraintProto)
7840  }
7841 
7842  // @@protoc_insertion_point(class_scope:operations_research.sat.ConstraintProto)
7843  private static final com.google.ortools.sat.ConstraintProto DEFAULT_INSTANCE;
7844  static {
7845  DEFAULT_INSTANCE = new com.google.ortools.sat.ConstraintProto();
7846  }
7847 
7849  return DEFAULT_INSTANCE;
7850  }
7851 
7852  private static final com.google.protobuf.Parser<ConstraintProto>
7853  PARSER = new com.google.protobuf.AbstractParser<ConstraintProto>() {
7854  @java.lang.Override
7855  public ConstraintProto parsePartialFrom(
7856  com.google.protobuf.CodedInputStream input,
7857  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7858  throws com.google.protobuf.InvalidProtocolBufferException {
7859  return new ConstraintProto(input, extensionRegistry);
7860  }
7861  };
7862 
7863  public static com.google.protobuf.Parser<ConstraintProto> parser() {
7864  return PARSER;
7865  }
7866 
7867  @java.lang.Override
7868  public com.google.protobuf.Parser<ConstraintProto> getParserForType() {
7869  return PARSER;
7870  }
7871 
7872  @java.lang.Override
7874  return DEFAULT_INSTANCE;
7875  }
7876 
7877 }
7878 
.lang.Override com.google.ortools.sat.IntervalConstraintProtoOrBuilder getIntervalOrBuilder()
Builder mergeAutomaton(com.google.ortools.sat.AutomatonConstraintProto value)
com.google.ortools.sat.IntegerArgumentProto.Builder getIntDivBuilder()
Builder setNoOverlap2D(com.google.ortools.sat.NoOverlap2DConstraintProto.Builder builderForValue)
.lang.Override com.google.ortools.sat.ElementConstraintProtoOrBuilder getElementOrBuilder()
.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)
java.lang.String getName()
AUTOMATON
static com.google.ortools.sat.LinearConstraintProto getDefaultInstance()
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
static Builder newBuilder()
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
.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()
.lang.Override com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolAndOrBuilder()
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()
.lang.Override boolean hasIntMod()
static final int CIRCUIT_COVERING_FIELD_NUMBER
Builder setIntMax(com.google.ortools.sat.IntegerArgumentProto value)
com.google.ortools.sat.IntegerArgumentProto.Builder getIntModBuilder()
Builder mergeLinear(com.google.ortools.sat.LinearConstraintProto value)
LINEAR
.lang.Override com.google.ortools.sat.LinearConstraintProtoOrBuilder getLinearOrBuilder()
.lang.Override com.google.ortools.sat.AllDifferentConstraintProtoOrBuilder getAllDiffOrBuilder()
.lang.Override boolean hasIntMod()
Builder mergeAllDiff(com.google.ortools.sat.AllDifferentConstraintProto value)
static com.google.ortools.sat.IntervalConstraintProto getDefaultInstance()
com.google.ortools.sat.ReservoirConstraintProto.Builder getReservoirBuilder()
.lang.Override com.google.ortools.sat.ElementConstraintProto getElement()
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
static com.google.protobuf.Parser< IntervalConstraintProto > parser()
static final int ROUTES_FIELD_NUMBER
.lang.Override com.google.ortools.sat.LinearArgumentProto getLinMin()
Builder setInterval(com.google.ortools.sat.IntervalConstraintProto.Builder builderForValue)
.lang.Override boolean hasAtMostOne()
.lang.Override com.google.ortools.sat.AllDifferentConstraintProto getAllDiff()
Builder setCircuitCovering(com.google.ortools.sat.CircuitCoveringConstraintProto value)
static com.google.ortools.sat.CircuitConstraintProto getDefaultInstance()
static final int NAME_FIELD_NUMBER
.lang.Override com.google.ortools.sat.IntegerArgumentProto getIntMax()
Protobuf type.
.lang.Override com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntProdOrBuilder()
.lang.Override boolean hasInterval()
.lang.Override com.google.ortools.sat.ElementConstraintProto buildPartial()
static final int LIN_MIN_FIELD_NUMBER
.lang.Override com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntMinOrBuilder()
.lang.Override boolean hasInverse()
static com.google.protobuf.Parser< TableConstraintProto > parser()
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)
.lang.Override boolean hasNoOverlap2D()
.lang.Override boolean hasBoolXor()
.lang.Override boolean hasTable()
.lang.Override boolean hasCircuit()
.lang.Override boolean hasBoolOr()
static com.google.ortools.sat.TableConstraintProto getDefaultInstance()
static final int INTERVAL_FIELD_NUMBER
.lang.Override Builder toBuilder()
.lang.Override int hashCode()
static Builder newBuilder(com.google.ortools.sat.ConstraintProto prototype)
.lang.Override com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolXorOrBuilder()
com.google.ortools.sat.CircuitCoveringConstraintProto.Builder getCircuitCoveringBuilder()
.lang.Override boolean equals(final java.lang.Object obj)
.lang.Override com.google.ortools.sat.IntegerArgumentProto getIntMin()
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
.lang.Override com.google.ortools.sat.LinearArgumentProtoOrBuilder getLinMaxOrBuilder()
static final int CIRCUIT_FIELD_NUMBER
LIN_MAX
.lang.Override com.google.ortools.sat.CircuitCoveringConstraintProto buildPartial()
.lang.Override com.google.ortools.sat.IntegerArgumentProto getIntMin()
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()
.lang.Override boolean hasIntProd()
ConstraintCase getConstraintCase()
.lang.Override boolean hasLinear()
.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.IntervalConstraintProto getInterval()
.lang.Override com.google.ortools.sat.InverseConstraintProto buildPartial()
static final int LIN_MAX_FIELD_NUMBER
.lang.Override com.google.ortools.sat.IntervalConstraintProto getInterval()
.lang.Override boolean hasAllDiff()
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)
.lang.Override com.google.ortools.sat.NoOverlapConstraintProto getNoOverlap()
static com.google.ortools.sat.ConstraintProto parseFrom(com.google.protobuf.CodedInputStream input)
.lang.Override boolean hasRoutes()
static com.google.protobuf.Parser< ReservoirConstraintProto > parser()
static com.google.ortools.sat.ConstraintProto parseDelimitedFrom(java.io.InputStream input)
.lang.Override com.google.ortools.sat.InverseConstraintProtoOrBuilder getInverseOrBuilder()
static final int INT_DIV_FIELD_NUMBER
.lang.Override com.google.ortools.sat.CircuitConstraintProto getCircuit()
static Builder newBuilder()
.lang.Override final com.google.protobuf.UnknownFieldSet getUnknownFields()
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)
Builder clearBoolXor()
.lang.Override int hashCode()
.lang.Override boolean hasBoolXor()
.lang.Override com.google.ortools.sat.BoolArgumentProto getAtMostOne()
Builder mergeFrom(com.google.ortools.sat.ConstraintProto other)
.lang.Override boolean equals(final java.lang.Object obj)
.lang.Override com.google.ortools.sat.CircuitCoveringConstraintProtoOrBuilder getCircuitCoveringOrBuilder()
int getEnforcementLiteralCount()
.lang.Override com.google.ortools.sat.CumulativeConstraintProto getCumulative()
static com.google.ortools.sat.LinearArgumentProto getDefaultInstance()
Builder clearAllDiff()
Builder setEnforcementLiteral(int index, int value)
Builder clearLinear()
static final int ALL_DIFF_FIELD_NUMBER
.lang.Override boolean equals(final java.lang.Object obj)
.lang.Override com.google.ortools.sat.CircuitConstraintProtoOrBuilder getCircuitOrBuilder()
Builder setBoolAnd(com.google.ortools.sat.BoolArgumentProto.Builder builderForValue)
.lang.Override boolean equals(final java.lang.Object obj)
.lang.Override com.google.ortools.sat.RoutesConstraintProto getRoutes()
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
.lang.Override com.google.ortools.sat.NoOverlap2DConstraintProto buildPartial()
Builder clearBoolAnd()
.lang.Override com.google.ortools.sat.AutomatonConstraintProtoOrBuilder getAutomatonOrBuilder()
static com.google.ortools.sat.InverseConstraintProto getDefaultInstance()
.lang.Override com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolOrOrBuilder()
.lang.Override com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntMaxOrBuilder()
com.google.ortools.sat.InverseConstraintProto.Builder getInverseBuilder()
.lang.Override boolean hasBoolAnd()
.lang.Override boolean hasLinMin()
Builder setAllDiff(com.google.ortools.sat.AllDifferentConstraintProto value)
.lang.Override com.google.protobuf.ByteString getNameBytes()
.lang.Override com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
int getEnforcementLiteral(int index)
.lang.Override com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolOrOrBuilder()
BOOL_OR
.lang.Override com.google.ortools.sat.IntegerArgumentProto getIntMod()
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)
.lang.Override com.google.ortools.sat.AutomatonConstraintProto getAutomaton()
Builder addEnforcementLiteral(int value)
static Builder newBuilder()
.lang.Override com.google.ortools.sat.ConstraintProto build()
.lang.Override com.google.ortools.sat.ReservoirConstraintProto getReservoir()
.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)
.lang.Override com.google.ortools.sat.CircuitCoveringConstraintProtoOrBuilder getCircuitCoveringOrBuilder()
com.google.ortools.sat.RoutesConstraintProto.Builder getRoutesBuilder()
.lang.Override boolean equals(final java.lang.Object obj)
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()
.lang.Override boolean hasAllDiff()
.lang.Override com.google.ortools.sat.NoOverlap2DConstraintProtoOrBuilder getNoOverlap2DOrBuilder()
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()
.lang.Override com.google.ortools.sat.RoutesConstraintProtoOrBuilder getRoutesOrBuilder()
Builder mergeAtMostOne(com.google.ortools.sat.BoolArgumentProto value)
.lang.Override Builder clone()
INT_MOD
com.google.ortools.sat.BoolArgumentProto.Builder getBoolOrBuilder()
Builder mergeBoolAnd(com.google.ortools.sat.BoolArgumentProto value)
.lang.Override boolean hasCumulative()
.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)
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)
Builder setInverse(com.google.ortools.sat.InverseConstraintProto.Builder builderForValue)
static final int CUMULATIVE_FIELD_NUMBER
.lang.Override java.util.List< java.lang.Integer > getEnforcementLiteralList()
ROUTES
static final int BOOL_AND_FIELD_NUMBER
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()
Builder mergeTable(com.google.ortools.sat.TableConstraintProto value)
.lang.Override void writeTo(com.google.protobuf.CodedOutputStream output)
static Builder newBuilder()
INT_MAX
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
java.util.List< java.lang.Integer > getEnforcementLiteralList()
.lang.Override com.google.ortools.sat.BoolArgumentProto getAtMostOne()
.lang.Override boolean hasLinMax()
.lang.Override int hashCode()
.lang.Override com.google.ortools.sat.AllDifferentConstraintProto buildPartial()
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)
INTERVAL
com.google.ortools.sat.BoolArgumentProto.Builder getAtMostOneBuilder()
.lang.Override com.google.ortools.sat.InverseConstraintProto getInverse()
Builder setElement(com.google.ortools.sat.ElementConstraintProto.Builder builderForValue)
.lang.Override int hashCode()
.lang.Override int hashCode()
static final int NO_OVERLAP_FIELD_NUMBER
Builder setBoolXor(com.google.ortools.sat.BoolArgumentProto value)
.lang.Override com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntDivOrBuilder()
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)
.lang.Override int hashCode()
.lang.Override com.google.ortools.sat.ElementConstraintProtoOrBuilder getElementOrBuilder()
static com.google.ortools.sat.ConstraintProto parseFrom(com.google.protobuf.ByteString data)
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()
static Builder newBuilder()
Builder setNameBytes(com.google.protobuf.ByteString value)
.lang.Override boolean hasCircuitCovering()
.lang.Override int hashCode()
.lang.Override int hashCode()
.lang.Override com.google.ortools.sat.InverseConstraintProto getInverse()
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
.lang.Override com.google.ortools.sat.LinearArgumentProtoOrBuilder getLinMinOrBuilder()
Builder setTable(com.google.ortools.sat.TableConstraintProto.Builder builderForValue)
static Builder newBuilder()
.lang.Override com.google.ortools.sat.LinearArgumentProtoOrBuilder getLinMaxOrBuilder()
static final int AUTOMATON_FIELD_NUMBER
.lang.Override int hashCode()
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)
Builder clearAtMostOne()
Builder setBoolOr(com.google.ortools.sat.BoolArgumentProto.Builder builderForValue)
.lang.Override com.google.ortools.sat.CircuitConstraintProto buildPartial()
static com.google.protobuf.Parser< BoolArgumentProto > parser()
Protobuf type.
.lang.Override com.google.ortools.sat.CircuitCoveringConstraintProto getCircuitCovering()
.lang.Override com.google.ortools.sat.NoOverlapConstraintProto getNoOverlap()
static com.google.protobuf.Parser< CumulativeConstraintProto > parser()
Builder clearReservoir()
Builder clearIntMin()
Builder setIntMod(com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue)
.lang.Override com.google.ortools.sat.RoutesConstraintProtoOrBuilder getRoutesOrBuilder()
.lang.Override com.google.ortools.sat.IntegerArgumentProto getIntMod()
.lang.Override boolean equals(final java.lang.Object obj)
.lang.Override com.google.ortools.sat.CumulativeConstraintProto getCumulative()
Builder mergeNoOverlap2D(com.google.ortools.sat.NoOverlap2DConstraintProto value)
static com.google.ortools.sat.BoolArgumentProto getDefaultInstance()
Builder setName(java.lang.String value)
static com.google.ortools.sat.ReservoirConstraintProto getDefaultInstance()
.lang.Override java.lang.String getName()
.lang.Override Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
CIRCUIT
Builder setCumulative(com.google.ortools.sat.CumulativeConstraintProto value)
.lang.Override com.google.ortools.sat.BoolArgumentProtoOrBuilder getAtMostOneOrBuilder()
ConstraintCase getConstraintCase()
BOOL_XOR
.lang.Override com.google.ortools.sat.NoOverlap2DConstraintProtoOrBuilder getNoOverlap2DOrBuilder()
.lang.Override com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntModOrBuilder()
.lang.Override boolean hasLinear()
int getEnforcementLiteral(int index)
.lang.Override boolean hasInterval()
.lang.Override com.google.ortools.sat.CircuitConstraintProtoOrBuilder getCircuitOrBuilder()
static Builder newBuilder()
TABLE
Builder clearIntMod()
.lang.Override int hashCode()
.lang.Override com.google.ortools.sat.IntegerArgumentProto getIntDiv()
INT_DIV
.lang.Override com.google.ortools.sat.BoolArgumentProto getBoolXor()
.lang.Override boolean hasBoolAnd()
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
.lang.Override com.google.ortools.sat.LinearArgumentProtoOrBuilder getLinMinOrBuilder()
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)
.lang.Override boolean hasLinMax()
.lang.Override boolean equals(final java.lang.Object obj)
static com.google.protobuf.Parser< RoutesConstraintProto > parser()
Builder setLinMax(com.google.ortools.sat.LinearArgumentProto value)
.lang.Override boolean equals(final java.lang.Object obj)
.lang.Override boolean hasReservoir()
Builder mergeIntDiv(com.google.ortools.sat.IntegerArgumentProto value)
.lang.Override java.lang.Object newInstance(UnusedPrivateParameter unused)
Builder clearNoOverlap2D()
.lang.Override com.google.ortools.sat.NoOverlapConstraintProtoOrBuilder getNoOverlapOrBuilder()
.lang.Override Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override boolean hasIntMin()
.lang.Override com.google.ortools.sat.LinearArgumentProto getLinMax()
Builder clearInterval()
com.google.ortools.sat.LinearConstraintProto.Builder getLinearBuilder()
.lang.Override boolean hasIntMin()
.lang.Override com.google.ortools.sat.ReservoirConstraintProtoOrBuilder getReservoirOrBuilder()
.lang.Override int hashCode()
.lang.Override com.google.ortools.sat.TableConstraintProto getTable()
.lang.Override com.google.ortools.sat.IntegerArgumentProto getIntProd()
INT_PROD
.lang.Override final boolean isInitialized()
.lang.Override com.google.ortools.sat.ConstraintProto buildPartial()
.lang.Override com.google.ortools.sat.ElementConstraintProto getElement()
NO_OVERLAP
.lang.Override boolean hasTable()
.lang.Override com.google.ortools.sat.LinearArgumentProto getLinMin()
com.google.ortools.sat.LinearArgumentProto.Builder getLinMaxBuilder()
.lang.Override com.google.ortools.sat.TableConstraintProtoOrBuilder getTableOrBuilder()
static com.google.ortools.sat.ConstraintProto parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.sat.ConstraintProto getDefaultInstance()
.lang.Override com.google.ortools.sat.AllDifferentConstraintProto getAllDiff()
static com.google.ortools.sat.ConstraintProto parseFrom(java.io.InputStream input)
Builder setAutomaton(com.google.ortools.sat.AutomatonConstraintProto value)
.lang.Override boolean hasReservoir()
.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
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()
.lang.Override boolean hasIntMax()
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)
.lang.Override boolean hasElement()
static Builder newBuilder()
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
.lang.Override com.google.ortools.sat.TableConstraintProto getTable()
.lang.Override int hashCode()
AT_MOST_ONE
.lang.Override com.google.ortools.sat.TableConstraintProtoOrBuilder getTableOrBuilder()
static Builder newBuilder()
.lang.Override com.google.ortools.sat.AllDifferentConstraintProtoOrBuilder getAllDiffOrBuilder()
.lang.Override com.google.ortools.sat.LinearConstraintProto getLinear()
static final int LINEAR_FIELD_NUMBER
.lang.Override com.google.ortools.sat.IntervalConstraintProtoOrBuilder getIntervalOrBuilder()
static com.google.ortools.sat.ConstraintProto parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
LIN_MIN
static Builder newBuilder()
.lang.Override com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntMinOrBuilder()
.lang.Override boolean hasIntProd()
.lang.Override boolean hasCircuit()
.lang.Override com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolXorOrBuilder()
Builder clearCircuitCovering()
Builder clearTable()
Builder setBoolXor(com.google.ortools.sat.BoolArgumentProto.Builder builderForValue)
static Builder newBuilder()
BOOL_AND
.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()
.lang.Override com.google.ortools.sat.BoolArgumentProto getBoolAnd()
.lang.Override com.google.ortools.sat.BoolArgumentProto getBoolOr()
.lang.Override boolean hasInverse()
static final int INT_MOD_FIELD_NUMBER
.lang.Override com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntDivOrBuilder()
int getEnforcementLiteralCount()
.lang.Override com.google.ortools.sat.BoolArgumentProto getBoolOr()
com.google.ortools.sat.IntegerArgumentProto.Builder getIntMaxBuilder()
static com.google.ortools.sat.ConstraintProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override com.google.ortools.sat.InverseConstraintProtoOrBuilder getInverseOrBuilder()
.lang.Override com.google.ortools.sat.IntegerArgumentProto getIntDiv()
Builder setInterval(com.google.ortools.sat.IntervalConstraintProto value)
.lang.Override com.google.ortools.sat.IntegerArgumentProto getIntMax()
Builder setLinear(com.google.ortools.sat.LinearConstraintProto.Builder builderForValue)
com.google.ortools.sat.AutomatonConstraintProto.Builder getAutomatonBuilder()
.lang.Override boolean hasCircuitCovering()
.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)
.lang.Override com.google.ortools.sat.LinearConstraintProtoOrBuilder getLinearOrBuilder()
static Builder newBuilder()
.lang.Override com.google.ortools.sat.RoutesConstraintProto getRoutes()
Builder mergeLinMin(com.google.ortools.sat.LinearArgumentProto value)
.lang.Override boolean hasNoOverlap()
Builder clearBoolOr()
.lang.Override com.google.ortools.sat.BoolArgumentProtoOrBuilder getBoolAndOrBuilder()
.lang.Override boolean hasNoOverlap()
.lang.Override boolean equals(final java.lang.Object obj)
static Builder newBuilder()
.lang.Override boolean hasLinMin()
.lang.Override Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Builder setCircuit(com.google.ortools.sat.CircuitConstraintProto value)
.lang.Override Builder clear()
.lang.Override com.google.ortools.sat.ReservoirConstraintProtoOrBuilder getReservoirOrBuilder()
CIRCUIT_COVERING
Builder setBoolOr(com.google.ortools.sat.BoolArgumentProto value)
.lang.Override int hashCode()
.lang.Override boolean hasCumulative()
.lang.Override com.google.ortools.sat.CircuitCoveringConstraintProto getCircuitCovering()
.lang.Override com.google.ortools.sat.ConstraintProto getDefaultInstanceForType()
.lang.Override boolean hasIntMax()
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()
.lang.Override boolean hasIntDiv()
Builder mergeNoOverlap(com.google.ortools.sat.NoOverlapConstraintProto value)
static final int ELEMENT_FIELD_NUMBER
static final int RESERVOIR_FIELD_NUMBER
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)
.lang.Override com.google.ortools.sat.AutomatonConstraintProto getAutomaton()
.lang.Override com.google.ortools.sat.AutomatonConstraintProtoOrBuilder getAutomatonOrBuilder()
static com.google.protobuf.Parser< IntegerArgumentProto > parser()
int getNumber()
com.google.ortools.sat.IntegerArgumentProto.Builder getIntProdBuilder()
.lang.Override com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntProdOrBuilder()
.lang.Override com.google.ortools.sat.ConstraintProto getDefaultInstanceForType()
.lang.Override boolean hasElement()
.lang.Override com.google.ortools.sat.NoOverlapConstraintProtoOrBuilder getNoOverlapOrBuilder()
.lang.Override final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
.lang.Override com.google.ortools.sat.LinearConstraintProto getLinear()
.lang.Override com.google.ortools.sat.NoOverlap2DConstraintProto getNoOverlap2D()
Builder setAutomaton(com.google.ortools.sat.AutomatonConstraintProto.Builder builderForValue)
.lang.Override com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntModOrBuilder()
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()
com.google.ortools.sat.ElementConstraintProto.Builder getElementBuilder()
static com.google.protobuf.Parser< NoOverlapConstraintProto > parser()
static com.google.ortools.sat.IntegerArgumentProto getDefaultInstance()
.lang.Override com.google.ortools.sat.BoolArgumentProtoOrBuilder getAtMostOneOrBuilder()
.lang.Override boolean hasIntDiv()
.lang.Override com.google.ortools.sat.BoolArgumentProto getBoolAnd()
.lang.Override com.google.ortools.sat.BoolArgumentProto getBoolXor()
.lang.Override boolean hasAutomaton()
.lang.Override int hashCode()
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()
.lang.Override com.google.ortools.sat.IntegerArgumentProto getIntProd()
.lang.Override com.google.ortools.sat.LinearArgumentProto getLinMax()
static com.google.ortools.sat.AllDifferentConstraintProto getDefaultInstance()
Builder clearRoutes()
ELEMENT
.lang.Override boolean hasAtMostOne()
.lang.Override com.google.ortools.sat.IntegerArgumentProtoOrBuilder getIntMaxOrBuilder()
Builder clearElement()
.lang.Override boolean hasRoutes()
Builder mergeIntProd(com.google.ortools.sat.IntegerArgumentProto value)
.lang.Override com.google.ortools.sat.ReservoirConstraintProto getReservoir()
Builder mergeIntMax(com.google.ortools.sat.IntegerArgumentProto value)
.lang.Override boolean equals(final java.lang.Object obj)
.lang.Override com.google.ortools.sat.NoOverlap2DConstraintProto getNoOverlap2D()
Builder setRoutes(com.google.ortools.sat.RoutesConstraintProto.Builder builderForValue)
.lang.Override com.google.ortools.sat.CumulativeConstraintProtoOrBuilder getCumulativeOrBuilder()
.lang.Override com.google.ortools.sat.IntervalConstraintProto buildPartial()
static com.google.protobuf.Parser< AutomatonConstraintProto > parser()
.lang.Override com.google.ortools.sat.CircuitConstraintProto getCircuit()
.lang.Override boolean hasNoOverlap2D()
Builder setLinMax(com.google.ortools.sat.LinearArgumentProto.Builder builderForValue)
.lang.Override int hashCode()
static Builder newBuilder()
Builder clearName()
.lang.Override Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
.lang.Override boolean hasAutomaton()
static final int BOOL_XOR_FIELD_NUMBER
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
static final int INT_MIN_FIELD_NUMBER
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
.lang.Override boolean hasBoolOr()
.lang.Override com.google.ortools.sat.CumulativeConstraintProtoOrBuilder getCumulativeOrBuilder()
.lang.Override Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Builder setInverse(com.google.ortools.sat.InverseConstraintProto value)