Java Reference

Java Reference

ConstraintProto.java
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ortools/sat/cp_model.proto
3 
4 package com.google.ortools.sat;
5 
13 public final class ConstraintProto extends
14  com.google.protobuf.GeneratedMessageV3 implements
15  // @@protoc_insertion_point(message_implements:operations_research.sat.ConstraintProto)
17 private static final long serialVersionUID = 0L;
18  // Use ConstraintProto.newBuilder() to construct.
19  private ConstraintProto(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
20  super(builder);
21  }
22  private ConstraintProto() {
23  name_ = "";
24  enforcementLiteral_ = emptyIntList();
25  }
26 
27  @java.lang.Override
28  @SuppressWarnings({"unused"})
29  protected java.lang.Object newInstance(
30  UnusedPrivateParameter unused) {
31  return new ConstraintProto();
32  }
33 
34  @java.lang.Override
35  public final com.google.protobuf.UnknownFieldSet
37  return this.unknownFields;
38  }
39  private ConstraintProto(
40  com.google.protobuf.CodedInputStream input,
41  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
42  throws com.google.protobuf.InvalidProtocolBufferException {
43  this();
44  if (extensionRegistry == null) {
45  throw new java.lang.NullPointerException();
46  }
47  int mutable_bitField0_ = 0;
48  com.google.protobuf.UnknownFieldSet.Builder unknownFields =
49  com.google.protobuf.UnknownFieldSet.newBuilder();
50  try {
51  boolean done = false;
52  while (!done) {
53  int tag = input.readTag();
54  switch (tag) {
55  case 0:
56  done = true;
57  break;
58  case 10: {
59  java.lang.String s = input.readStringRequireUtf8();
60 
61  name_ = s;
62  break;
63  }
64  case 16: {
65  if (!((mutable_bitField0_ & 0x00000001) != 0)) {
66  enforcementLiteral_ = newIntList();
67  mutable_bitField0_ |= 0x00000001;
68  }
69  enforcementLiteral_.addInt(input.readInt32());
70  break;
71  }
72  case 18: {
73  int length = input.readRawVarint32();
74  int limit = input.pushLimit(length);
75  if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
76  enforcementLiteral_ = newIntList();
77  mutable_bitField0_ |= 0x00000001;
78  }
79  while (input.getBytesUntilLimit() > 0) {
80  enforcementLiteral_.addInt(input.readInt32());
81  }
82  input.popLimit(limit);
83  break;
84  }
85  case 26: {
86  com.google.ortools.sat.BoolArgumentProto.Builder subBuilder = null;
87  if (constraintCase_ == 3) {
88  subBuilder = ((com.google.ortools.sat.BoolArgumentProto) constraint_).toBuilder();
89  }
90  constraint_ =
91  input.readMessage(com.google.ortools.sat.BoolArgumentProto.parser(), extensionRegistry);
92  if (subBuilder != null) {
93  subBuilder.mergeFrom((com.google.ortools.sat.BoolArgumentProto) constraint_);
94  constraint_ = subBuilder.buildPartial();
95  }
96  constraintCase_ = 3;
97  break;
98  }
99  case 34: {
100  com.google.ortools.sat.BoolArgumentProto.Builder subBuilder = null;
101  if (constraintCase_ == 4) {
102  subBuilder = ((com.google.ortools.sat.BoolArgumentProto) constraint_).toBuilder();
103  }
104  constraint_ =
105  input.readMessage(com.google.ortools.sat.BoolArgumentProto.parser(), extensionRegistry);
106  if (subBuilder != null) {
107  subBuilder.mergeFrom((com.google.ortools.sat.BoolArgumentProto) constraint_);
108  constraint_ = subBuilder.buildPartial();
109  }
110  constraintCase_ = 4;
111  break;
112  }
113  case 42: {
114  com.google.ortools.sat.BoolArgumentProto.Builder subBuilder = null;
115  if (constraintCase_ == 5) {
116  subBuilder = ((com.google.ortools.sat.BoolArgumentProto) constraint_).toBuilder();
117  }
118  constraint_ =
119  input.readMessage(com.google.ortools.sat.BoolArgumentProto.parser(), extensionRegistry);
120  if (subBuilder != null) {
121  subBuilder.mergeFrom((com.google.ortools.sat.BoolArgumentProto) constraint_);
122  constraint_ = subBuilder.buildPartial();
123  }
124  constraintCase_ = 5;
125  break;
126  }
127  case 58: {
128  com.google.ortools.sat.IntegerArgumentProto.Builder subBuilder = null;
129  if (constraintCase_ == 7) {
130  subBuilder = ((com.google.ortools.sat.IntegerArgumentProto) constraint_).toBuilder();
131  }
132  constraint_ =
133  input.readMessage(com.google.ortools.sat.IntegerArgumentProto.parser(), extensionRegistry);
134  if (subBuilder != null) {
135  subBuilder.mergeFrom((com.google.ortools.sat.IntegerArgumentProto) constraint_);
136  constraint_ = subBuilder.buildPartial();
137  }
138  constraintCase_ = 7;
139  break;
140  }
141  case 66: {
142  com.google.ortools.sat.IntegerArgumentProto.Builder subBuilder = null;
143  if (constraintCase_ == 8) {
144  subBuilder = ((com.google.ortools.sat.IntegerArgumentProto) constraint_).toBuilder();
145  }
146  constraint_ =
147  input.readMessage(com.google.ortools.sat.IntegerArgumentProto.parser(), extensionRegistry);
148  if (subBuilder != null) {
149  subBuilder.mergeFrom((com.google.ortools.sat.IntegerArgumentProto) constraint_);
150  constraint_ = subBuilder.buildPartial();
151  }
152  constraintCase_ = 8;
153  break;
154  }
155  case 74: {
156  com.google.ortools.sat.IntegerArgumentProto.Builder subBuilder = null;
157  if (constraintCase_ == 9) {
158  subBuilder = ((com.google.ortools.sat.IntegerArgumentProto) constraint_).toBuilder();
159  }
160  constraint_ =
161  input.readMessage(com.google.ortools.sat.IntegerArgumentProto.parser(), extensionRegistry);
162  if (subBuilder != null) {
163  subBuilder.mergeFrom((com.google.ortools.sat.IntegerArgumentProto) constraint_);
164  constraint_ = subBuilder.buildPartial();
165  }
166  constraintCase_ = 9;
167  break;
168  }
169  case 82: {
170  com.google.ortools.sat.IntegerArgumentProto.Builder subBuilder = null;
171  if (constraintCase_ == 10) {
172  subBuilder = ((com.google.ortools.sat.IntegerArgumentProto) constraint_).toBuilder();
173  }
174  constraint_ =
175  input.readMessage(com.google.ortools.sat.IntegerArgumentProto.parser(), extensionRegistry);
176  if (subBuilder != null) {
177  subBuilder.mergeFrom((com.google.ortools.sat.IntegerArgumentProto) constraint_);
178  constraint_ = subBuilder.buildPartial();
179  }
180  constraintCase_ = 10;
181  break;
182  }
183  case 90: {
184  com.google.ortools.sat.IntegerArgumentProto.Builder subBuilder = null;
185  if (constraintCase_ == 11) {
186  subBuilder = ((com.google.ortools.sat.IntegerArgumentProto) constraint_).toBuilder();
187  }
188  constraint_ =
189  input.readMessage(com.google.ortools.sat.IntegerArgumentProto.parser(), extensionRegistry);
190  if (subBuilder != null) {
191  subBuilder.mergeFrom((com.google.ortools.sat.IntegerArgumentProto) constraint_);
192  constraint_ = subBuilder.buildPartial();
193  }
194  constraintCase_ = 11;
195  break;
196  }
197  case 98: {
199  if (constraintCase_ == 12) {
200  subBuilder = ((com.google.ortools.sat.LinearConstraintProto) constraint_).toBuilder();
201  }
202  constraint_ =
203  input.readMessage(com.google.ortools.sat.LinearConstraintProto.parser(), extensionRegistry);
204  if (subBuilder != null) {
205  subBuilder.mergeFrom((com.google.ortools.sat.LinearConstraintProto) constraint_);
206  constraint_ = subBuilder.buildPartial();
207  }
208  constraintCase_ = 12;
209  break;
210  }
211  case 106: {
213  if (constraintCase_ == 13) {
214  subBuilder = ((com.google.ortools.sat.AllDifferentConstraintProto) constraint_).toBuilder();
215  }
216  constraint_ =
217  input.readMessage(com.google.ortools.sat.AllDifferentConstraintProto.parser(), extensionRegistry);
218  if (subBuilder != null) {
219  subBuilder.mergeFrom((com.google.ortools.sat.AllDifferentConstraintProto) constraint_);
220  constraint_ = subBuilder.buildPartial();
221  }
222  constraintCase_ = 13;
223  break;
224  }
225  case 114: {
227  if (constraintCase_ == 14) {
228  subBuilder = ((com.google.ortools.sat.ElementConstraintProto) constraint_).toBuilder();
229  }
230  constraint_ =
231  input.readMessage(com.google.ortools.sat.ElementConstraintProto.parser(), extensionRegistry);
232  if (subBuilder != null) {
233  subBuilder.mergeFrom((com.google.ortools.sat.ElementConstraintProto) constraint_);
234  constraint_ = subBuilder.buildPartial();
235  }
236  constraintCase_ = 14;
237  break;
238  }
239  case 122: {
241  if (constraintCase_ == 15) {
242  subBuilder = ((com.google.ortools.sat.CircuitConstraintProto) constraint_).toBuilder();
243  }
244  constraint_ =
245  input.readMessage(com.google.ortools.sat.CircuitConstraintProto.parser(), extensionRegistry);
246  if (subBuilder != null) {
247  subBuilder.mergeFrom((com.google.ortools.sat.CircuitConstraintProto) constraint_);
248  constraint_ = subBuilder.buildPartial();
249  }
250  constraintCase_ = 15;
251  break;
252  }
253  case 130: {
254  com.google.ortools.sat.TableConstraintProto.Builder subBuilder = null;
255  if (constraintCase_ == 16) {
256  subBuilder = ((com.google.ortools.sat.TableConstraintProto) constraint_).toBuilder();
257  }
258  constraint_ =
259  input.readMessage(com.google.ortools.sat.TableConstraintProto.parser(), extensionRegistry);
260  if (subBuilder != null) {
261  subBuilder.mergeFrom((com.google.ortools.sat.TableConstraintProto) constraint_);
262  constraint_ = subBuilder.buildPartial();
263  }
264  constraintCase_ = 16;
265  break;
266  }
267  case 138: {
269  if (constraintCase_ == 17) {
270  subBuilder = ((com.google.ortools.sat.AutomatonConstraintProto) constraint_).toBuilder();
271  }
272  constraint_ =
273  input.readMessage(com.google.ortools.sat.AutomatonConstraintProto.parser(), extensionRegistry);
274  if (subBuilder != null) {
275  subBuilder.mergeFrom((com.google.ortools.sat.AutomatonConstraintProto) constraint_);
276  constraint_ = subBuilder.buildPartial();
277  }
278  constraintCase_ = 17;
279  break;
280  }
281  case 146: {
283  if (constraintCase_ == 18) {
284  subBuilder = ((com.google.ortools.sat.InverseConstraintProto) constraint_).toBuilder();
285  }
286  constraint_ =
287  input.readMessage(com.google.ortools.sat.InverseConstraintProto.parser(), extensionRegistry);
288  if (subBuilder != null) {
289  subBuilder.mergeFrom((com.google.ortools.sat.InverseConstraintProto) constraint_);
290  constraint_ = subBuilder.buildPartial();
291  }
292  constraintCase_ = 18;
293  break;
294  }
295  case 154: {
297  if (constraintCase_ == 19) {
298  subBuilder = ((com.google.ortools.sat.IntervalConstraintProto) constraint_).toBuilder();
299  }
300  constraint_ =
301  input.readMessage(com.google.ortools.sat.IntervalConstraintProto.parser(), extensionRegistry);
302  if (subBuilder != null) {
303  subBuilder.mergeFrom((com.google.ortools.sat.IntervalConstraintProto) constraint_);
304  constraint_ = subBuilder.buildPartial();
305  }
306  constraintCase_ = 19;
307  break;
308  }
309  case 162: {
311  if (constraintCase_ == 20) {
312  subBuilder = ((com.google.ortools.sat.NoOverlapConstraintProto) constraint_).toBuilder();
313  }
314  constraint_ =
315  input.readMessage(com.google.ortools.sat.NoOverlapConstraintProto.parser(), extensionRegistry);
316  if (subBuilder != null) {
317  subBuilder.mergeFrom((com.google.ortools.sat.NoOverlapConstraintProto) constraint_);
318  constraint_ = subBuilder.buildPartial();
319  }
320  constraintCase_ = 20;
321  break;
322  }
323  case 170: {
325  if (constraintCase_ == 21) {
326  subBuilder = ((com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_).toBuilder();
327  }
328  constraint_ =
329  input.readMessage(com.google.ortools.sat.NoOverlap2DConstraintProto.parser(), extensionRegistry);
330  if (subBuilder != null) {
331  subBuilder.mergeFrom((com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_);
332  constraint_ = subBuilder.buildPartial();
333  }
334  constraintCase_ = 21;
335  break;
336  }
337  case 178: {
339  if (constraintCase_ == 22) {
340  subBuilder = ((com.google.ortools.sat.CumulativeConstraintProto) constraint_).toBuilder();
341  }
342  constraint_ =
343  input.readMessage(com.google.ortools.sat.CumulativeConstraintProto.parser(), extensionRegistry);
344  if (subBuilder != null) {
345  subBuilder.mergeFrom((com.google.ortools.sat.CumulativeConstraintProto) constraint_);
346  constraint_ = subBuilder.buildPartial();
347  }
348  constraintCase_ = 22;
349  break;
350  }
351  case 186: {
353  if (constraintCase_ == 23) {
354  subBuilder = ((com.google.ortools.sat.RoutesConstraintProto) constraint_).toBuilder();
355  }
356  constraint_ =
357  input.readMessage(com.google.ortools.sat.RoutesConstraintProto.parser(), extensionRegistry);
358  if (subBuilder != null) {
359  subBuilder.mergeFrom((com.google.ortools.sat.RoutesConstraintProto) constraint_);
360  constraint_ = subBuilder.buildPartial();
361  }
362  constraintCase_ = 23;
363  break;
364  }
365  case 194: {
367  if (constraintCase_ == 24) {
368  subBuilder = ((com.google.ortools.sat.ReservoirConstraintProto) constraint_).toBuilder();
369  }
370  constraint_ =
371  input.readMessage(com.google.ortools.sat.ReservoirConstraintProto.parser(), extensionRegistry);
372  if (subBuilder != null) {
373  subBuilder.mergeFrom((com.google.ortools.sat.ReservoirConstraintProto) constraint_);
374  constraint_ = subBuilder.buildPartial();
375  }
376  constraintCase_ = 24;
377  break;
378  }
379  case 210: {
380  com.google.ortools.sat.BoolArgumentProto.Builder subBuilder = null;
381  if (constraintCase_ == 26) {
382  subBuilder = ((com.google.ortools.sat.BoolArgumentProto) constraint_).toBuilder();
383  }
384  constraint_ =
385  input.readMessage(com.google.ortools.sat.BoolArgumentProto.parser(), extensionRegistry);
386  if (subBuilder != null) {
387  subBuilder.mergeFrom((com.google.ortools.sat.BoolArgumentProto) constraint_);
388  constraint_ = subBuilder.buildPartial();
389  }
390  constraintCase_ = 26;
391  break;
392  }
393  case 218: {
394  com.google.ortools.sat.LinearArgumentProto.Builder subBuilder = null;
395  if (constraintCase_ == 27) {
396  subBuilder = ((com.google.ortools.sat.LinearArgumentProto) constraint_).toBuilder();
397  }
398  constraint_ =
399  input.readMessage(com.google.ortools.sat.LinearArgumentProto.parser(), extensionRegistry);
400  if (subBuilder != null) {
401  subBuilder.mergeFrom((com.google.ortools.sat.LinearArgumentProto) constraint_);
402  constraint_ = subBuilder.buildPartial();
403  }
404  constraintCase_ = 27;
405  break;
406  }
407  case 226: {
408  com.google.ortools.sat.LinearArgumentProto.Builder subBuilder = null;
409  if (constraintCase_ == 28) {
410  subBuilder = ((com.google.ortools.sat.LinearArgumentProto) constraint_).toBuilder();
411  }
412  constraint_ =
413  input.readMessage(com.google.ortools.sat.LinearArgumentProto.parser(), extensionRegistry);
414  if (subBuilder != null) {
415  subBuilder.mergeFrom((com.google.ortools.sat.LinearArgumentProto) constraint_);
416  constraint_ = subBuilder.buildPartial();
417  }
418  constraintCase_ = 28;
419  break;
420  }
421  default: {
422  if (!parseUnknownField(
423  input, unknownFields, extensionRegistry, tag)) {
424  done = true;
425  }
426  break;
427  }
428  }
429  }
430  } catch (com.google.protobuf.InvalidProtocolBufferException e) {
431  throw e.setUnfinishedMessage(this);
432  } catch (java.io.IOException e) {
433  throw new com.google.protobuf.InvalidProtocolBufferException(
434  e).setUnfinishedMessage(this);
435  } finally {
436  if (((mutable_bitField0_ & 0x00000001) != 0)) {
437  enforcementLiteral_.makeImmutable(); // C
438  }
439  this.unknownFields = unknownFields.build();
440  makeExtensionsImmutable();
441  }
442  }
443  public static final com.google.protobuf.Descriptors.Descriptor
445  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_descriptor;
446  }
447 
448  @java.lang.Override
449  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
451  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_fieldAccessorTable
452  .ensureFieldAccessorsInitialized(
454  }
455 
456  private int constraintCase_ = 0;
457  private java.lang.Object constraint_;
458  public enum ConstraintCase
459  implements com.google.protobuf.Internal.EnumLite,
460  com.google.protobuf.AbstractMessage.InternalOneOfEnum {
468  LIN_MAX(27),
469  INT_MIN(10),
470  LIN_MIN(28),
471  INT_PROD(11),
472  LINEAR(12),
473  ALL_DIFF(13),
474  ELEMENT(14),
475  CIRCUIT(15),
476  ROUTES(23),
477  TABLE(16),
479  INVERSE(18),
481  INTERVAL(19),
486  private final int value;
487  private ConstraintCase(int value) {
488  this.value = value;
489  }
495  @java.lang.Deprecated
496  public static ConstraintCase valueOf(int value) {
497  return forNumber(value);
498  }
499 
500  public static ConstraintCase forNumber(int value) {
501  switch (value) {
502  case 3: return BOOL_OR;
503  case 4: return BOOL_AND;
504  case 26: return AT_MOST_ONE;
505  case 5: return BOOL_XOR;
506  case 7: return INT_DIV;
507  case 8: return INT_MOD;
508  case 9: return INT_MAX;
509  case 27: return LIN_MAX;
510  case 10: return INT_MIN;
511  case 28: return LIN_MIN;
512  case 11: return INT_PROD;
513  case 12: return LINEAR;
514  case 13: return ALL_DIFF;
515  case 14: return ELEMENT;
516  case 15: return CIRCUIT;
517  case 23: return ROUTES;
518  case 16: return TABLE;
519  case 17: return AUTOMATON;
520  case 18: return INVERSE;
521  case 24: return RESERVOIR;
522  case 19: return INTERVAL;
523  case 20: return NO_OVERLAP;
524  case 21: return NO_OVERLAP_2D;
525  case 22: return CUMULATIVE;
526  case 0: return CONSTRAINT_NOT_SET;
527  default: return null;
528  }
529  }
530  public int getNumber() {
531  return this.value;
532  }
533  };
534 
535  public ConstraintCase
537  return ConstraintCase.forNumber(
538  constraintCase_);
539  }
540 
541  public static final int NAME_FIELD_NUMBER = 1;
542  private volatile java.lang.Object name_;
551  @java.lang.Override
552  public java.lang.String getName() {
553  java.lang.Object ref = name_;
554  if (ref instanceof java.lang.String) {
555  return (java.lang.String) ref;
556  } else {
557  com.google.protobuf.ByteString bs =
558  (com.google.protobuf.ByteString) ref;
559  java.lang.String s = bs.toStringUtf8();
560  name_ = s;
561  return s;
562  }
563  }
572  @java.lang.Override
573  public com.google.protobuf.ByteString
575  java.lang.Object ref = name_;
576  if (ref instanceof java.lang.String) {
577  com.google.protobuf.ByteString b =
578  com.google.protobuf.ByteString.copyFromUtf8(
579  (java.lang.String) ref);
580  name_ = b;
581  return b;
582  } else {
583  return (com.google.protobuf.ByteString) ref;
584  }
585  }
586 
587  public static final int ENFORCEMENT_LITERAL_FIELD_NUMBER = 2;
588  private com.google.protobuf.Internal.IntList enforcementLiteral_;
608  @java.lang.Override
609  public java.util.List<java.lang.Integer>
611  return enforcementLiteral_;
612  }
633  return enforcementLiteral_.size();
634  }
655  public int getEnforcementLiteral(int index) {
656  return enforcementLiteral_.getInt(index);
657  }
658  private int enforcementLiteralMemoizedSerializedSize = -1;
659 
660  public static final int BOOL_OR_FIELD_NUMBER = 3;
669  @java.lang.Override
670  public boolean hasBoolOr() {
671  return constraintCase_ == 3;
672  }
681  @java.lang.Override
683  if (constraintCase_ == 3) {
684  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
685  }
687  }
695  @java.lang.Override
697  if (constraintCase_ == 3) {
698  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
699  }
701  }
702 
703  public static final int BOOL_AND_FIELD_NUMBER = 4;
715  @java.lang.Override
716  public boolean hasBoolAnd() {
717  return constraintCase_ == 4;
718  }
730  @java.lang.Override
732  if (constraintCase_ == 4) {
733  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
734  }
736  }
747  @java.lang.Override
749  if (constraintCase_ == 4) {
750  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
751  }
753  }
754 
755  public static final int AT_MOST_ONE_FIELD_NUMBER = 26;
768  @java.lang.Override
769  public boolean hasAtMostOne() {
770  return constraintCase_ == 26;
771  }
784  @java.lang.Override
786  if (constraintCase_ == 26) {
787  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
788  }
790  }
802  @java.lang.Override
804  if (constraintCase_ == 26) {
805  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
806  }
808  }
809 
810  public static final int BOOL_XOR_FIELD_NUMBER = 5;
819  @java.lang.Override
820  public boolean hasBoolXor() {
821  return constraintCase_ == 5;
822  }
831  @java.lang.Override
833  if (constraintCase_ == 5) {
834  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
835  }
837  }
845  @java.lang.Override
847  if (constraintCase_ == 5) {
848  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
849  }
851  }
852 
853  public static final int INT_DIV_FIELD_NUMBER = 7;
863  @java.lang.Override
864  public boolean hasIntDiv() {
865  return constraintCase_ == 7;
866  }
876  @java.lang.Override
878  if (constraintCase_ == 7) {
879  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
880  }
882  }
891  @java.lang.Override
893  if (constraintCase_ == 7) {
894  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
895  }
897  }
898 
899  public static final int INT_MOD_FIELD_NUMBER = 8;
909  @java.lang.Override
910  public boolean hasIntMod() {
911  return constraintCase_ == 8;
912  }
922  @java.lang.Override
924  if (constraintCase_ == 8) {
925  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
926  }
928  }
937  @java.lang.Override
939  if (constraintCase_ == 8) {
940  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
941  }
943  }
944 
945  public static final int INT_MAX_FIELD_NUMBER = 9;
958  @java.lang.Override
959  public boolean hasIntMax() {
960  return constraintCase_ == 9;
961  }
974  @java.lang.Override
976  if (constraintCase_ == 9) {
977  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
978  }
980  }
992  @java.lang.Override
994  if (constraintCase_ == 9) {
995  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
996  }
998  }
999 
1000  public static final int LIN_MAX_FIELD_NUMBER = 27;
1005  @java.lang.Override
1006  public boolean hasLinMax() {
1007  return constraintCase_ == 27;
1008  }
1013  @java.lang.Override
1015  if (constraintCase_ == 27) {
1016  return (com.google.ortools.sat.LinearArgumentProto) constraint_;
1017  }
1019  }
1023  @java.lang.Override
1025  if (constraintCase_ == 27) {
1026  return (com.google.ortools.sat.LinearArgumentProto) constraint_;
1027  }
1029  }
1030 
1031  public static final int INT_MIN_FIELD_NUMBER = 10;
1044  @java.lang.Override
1045  public boolean hasIntMin() {
1046  return constraintCase_ == 10;
1047  }
1060  @java.lang.Override
1062  if (constraintCase_ == 10) {
1063  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
1064  }
1066  }
1078  @java.lang.Override
1080  if (constraintCase_ == 10) {
1081  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
1082  }
1084  }
1085 
1086  public static final int LIN_MIN_FIELD_NUMBER = 28;
1091  @java.lang.Override
1092  public boolean hasLinMin() {
1093  return constraintCase_ == 28;
1094  }
1099  @java.lang.Override
1101  if (constraintCase_ == 28) {
1102  return (com.google.ortools.sat.LinearArgumentProto) constraint_;
1103  }
1105  }
1109  @java.lang.Override
1111  if (constraintCase_ == 28) {
1112  return (com.google.ortools.sat.LinearArgumentProto) constraint_;
1113  }
1115  }
1116 
1117  public static final int INT_PROD_FIELD_NUMBER = 11;
1128  @java.lang.Override
1129  public boolean hasIntProd() {
1130  return constraintCase_ == 11;
1131  }
1142  @java.lang.Override
1144  if (constraintCase_ == 11) {
1145  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
1146  }
1148  }
1158  @java.lang.Override
1160  if (constraintCase_ == 11) {
1161  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
1162  }
1164  }
1165 
1166  public static final int LINEAR_FIELD_NUMBER = 12;
1176  @java.lang.Override
1177  public boolean hasLinear() {
1178  return constraintCase_ == 12;
1179  }
1189  @java.lang.Override
1191  if (constraintCase_ == 12) {
1192  return (com.google.ortools.sat.LinearConstraintProto) constraint_;
1193  }
1195  }
1204  @java.lang.Override
1206  if (constraintCase_ == 12) {
1207  return (com.google.ortools.sat.LinearConstraintProto) constraint_;
1208  }
1210  }
1211 
1212  public static final int ALL_DIFF_FIELD_NUMBER = 13;
1221  @java.lang.Override
1222  public boolean hasAllDiff() {
1223  return constraintCase_ == 13;
1224  }
1233  @java.lang.Override
1235  if (constraintCase_ == 13) {
1236  return (com.google.ortools.sat.AllDifferentConstraintProto) constraint_;
1237  }
1239  }
1247  @java.lang.Override
1249  if (constraintCase_ == 13) {
1250  return (com.google.ortools.sat.AllDifferentConstraintProto) constraint_;
1251  }
1253  }
1254 
1255  public static final int ELEMENT_FIELD_NUMBER = 14;
1265  @java.lang.Override
1266  public boolean hasElement() {
1267  return constraintCase_ == 14;
1268  }
1278  @java.lang.Override
1280  if (constraintCase_ == 14) {
1281  return (com.google.ortools.sat.ElementConstraintProto) constraint_;
1282  }
1284  }
1293  @java.lang.Override
1295  if (constraintCase_ == 14) {
1296  return (com.google.ortools.sat.ElementConstraintProto) constraint_;
1297  }
1299  }
1300 
1301  public static final int CIRCUIT_FIELD_NUMBER = 15;
1311  @java.lang.Override
1312  public boolean hasCircuit() {
1313  return constraintCase_ == 15;
1314  }
1324  @java.lang.Override
1326  if (constraintCase_ == 15) {
1327  return (com.google.ortools.sat.CircuitConstraintProto) constraint_;
1328  }
1330  }
1339  @java.lang.Override
1341  if (constraintCase_ == 15) {
1342  return (com.google.ortools.sat.CircuitConstraintProto) constraint_;
1343  }
1345  }
1346 
1347  public static final int ROUTES_FIELD_NUMBER = 23;
1356  @java.lang.Override
1357  public boolean hasRoutes() {
1358  return constraintCase_ == 23;
1359  }
1368  @java.lang.Override
1370  if (constraintCase_ == 23) {
1371  return (com.google.ortools.sat.RoutesConstraintProto) constraint_;
1372  }
1374  }
1382  @java.lang.Override
1384  if (constraintCase_ == 23) {
1385  return (com.google.ortools.sat.RoutesConstraintProto) constraint_;
1386  }
1388  }
1389 
1390  public static final int TABLE_FIELD_NUMBER = 16;
1400  @java.lang.Override
1401  public boolean hasTable() {
1402  return constraintCase_ == 16;
1403  }
1413  @java.lang.Override
1415  if (constraintCase_ == 16) {
1416  return (com.google.ortools.sat.TableConstraintProto) constraint_;
1417  }
1419  }
1428  @java.lang.Override
1430  if (constraintCase_ == 16) {
1431  return (com.google.ortools.sat.TableConstraintProto) constraint_;
1432  }
1434  }
1435 
1436  public static final int AUTOMATON_FIELD_NUMBER = 17;
1446  @java.lang.Override
1447  public boolean hasAutomaton() {
1448  return constraintCase_ == 17;
1449  }
1459  @java.lang.Override
1461  if (constraintCase_ == 17) {
1462  return (com.google.ortools.sat.AutomatonConstraintProto) constraint_;
1463  }
1465  }
1474  @java.lang.Override
1476  if (constraintCase_ == 17) {
1477  return (com.google.ortools.sat.AutomatonConstraintProto) constraint_;
1478  }
1480  }
1481 
1482  public static final int INVERSE_FIELD_NUMBER = 18;
1492  @java.lang.Override
1493  public boolean hasInverse() {
1494  return constraintCase_ == 18;
1495  }
1505  @java.lang.Override
1507  if (constraintCase_ == 18) {
1508  return (com.google.ortools.sat.InverseConstraintProto) constraint_;
1509  }
1511  }
1520  @java.lang.Override
1522  if (constraintCase_ == 18) {
1523  return (com.google.ortools.sat.InverseConstraintProto) constraint_;
1524  }
1526  }
1527 
1528  public static final int RESERVOIR_FIELD_NUMBER = 24;
1539  @java.lang.Override
1540  public boolean hasReservoir() {
1541  return constraintCase_ == 24;
1542  }
1553  @java.lang.Override
1555  if (constraintCase_ == 24) {
1556  return (com.google.ortools.sat.ReservoirConstraintProto) constraint_;
1557  }
1559  }
1569  @java.lang.Override
1571  if (constraintCase_ == 24) {
1572  return (com.google.ortools.sat.ReservoirConstraintProto) constraint_;
1573  }
1575  }
1576 
1577  public static final int INTERVAL_FIELD_NUMBER = 19;
1587  @java.lang.Override
1588  public boolean hasInterval() {
1589  return constraintCase_ == 19;
1590  }
1600  @java.lang.Override
1602  if (constraintCase_ == 19) {
1603  return (com.google.ortools.sat.IntervalConstraintProto) constraint_;
1604  }
1606  }
1615  @java.lang.Override
1617  if (constraintCase_ == 19) {
1618  return (com.google.ortools.sat.IntervalConstraintProto) constraint_;
1619  }
1621  }
1622 
1623  public static final int NO_OVERLAP_FIELD_NUMBER = 20;
1634  @java.lang.Override
1635  public boolean hasNoOverlap() {
1636  return constraintCase_ == 20;
1637  }
1648  @java.lang.Override
1650  if (constraintCase_ == 20) {
1651  return (com.google.ortools.sat.NoOverlapConstraintProto) constraint_;
1652  }
1654  }
1664  @java.lang.Override
1666  if (constraintCase_ == 20) {
1667  return (com.google.ortools.sat.NoOverlapConstraintProto) constraint_;
1668  }
1670  }
1671 
1672  public static final int NO_OVERLAP_2D_FIELD_NUMBER = 21;
1681  @java.lang.Override
1682  public boolean hasNoOverlap2D() {
1683  return constraintCase_ == 21;
1684  }
1693  @java.lang.Override
1695  if (constraintCase_ == 21) {
1696  return (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_;
1697  }
1699  }
1707  @java.lang.Override
1709  if (constraintCase_ == 21) {
1710  return (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_;
1711  }
1713  }
1714 
1715  public static final int CUMULATIVE_FIELD_NUMBER = 22;
1726  @java.lang.Override
1727  public boolean hasCumulative() {
1728  return constraintCase_ == 22;
1729  }
1740  @java.lang.Override
1742  if (constraintCase_ == 22) {
1743  return (com.google.ortools.sat.CumulativeConstraintProto) constraint_;
1744  }
1746  }
1756  @java.lang.Override
1758  if (constraintCase_ == 22) {
1759  return (com.google.ortools.sat.CumulativeConstraintProto) constraint_;
1760  }
1762  }
1763 
1764  private byte memoizedIsInitialized = -1;
1765  @java.lang.Override
1766  public final boolean isInitialized() {
1767  byte isInitialized = memoizedIsInitialized;
1768  if (isInitialized == 1) return true;
1769  if (isInitialized == 0) return false;
1770 
1771  memoizedIsInitialized = 1;
1772  return true;
1773  }
1774 
1775  @java.lang.Override
1776  public void writeTo(com.google.protobuf.CodedOutputStream output)
1777  throws java.io.IOException {
1779  if (!getNameBytes().isEmpty()) {
1780  com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
1781  }
1782  if (getEnforcementLiteralList().size() > 0) {
1783  output.writeUInt32NoTag(18);
1784  output.writeUInt32NoTag(enforcementLiteralMemoizedSerializedSize);
1785  }
1786  for (int i = 0; i < enforcementLiteral_.size(); i++) {
1787  output.writeInt32NoTag(enforcementLiteral_.getInt(i));
1788  }
1789  if (constraintCase_ == 3) {
1790  output.writeMessage(3, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1791  }
1792  if (constraintCase_ == 4) {
1793  output.writeMessage(4, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1794  }
1795  if (constraintCase_ == 5) {
1796  output.writeMessage(5, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1797  }
1798  if (constraintCase_ == 7) {
1799  output.writeMessage(7, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1800  }
1801  if (constraintCase_ == 8) {
1802  output.writeMessage(8, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1803  }
1804  if (constraintCase_ == 9) {
1805  output.writeMessage(9, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1806  }
1807  if (constraintCase_ == 10) {
1808  output.writeMessage(10, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1809  }
1810  if (constraintCase_ == 11) {
1811  output.writeMessage(11, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1812  }
1813  if (constraintCase_ == 12) {
1814  output.writeMessage(12, (com.google.ortools.sat.LinearConstraintProto) constraint_);
1815  }
1816  if (constraintCase_ == 13) {
1817  output.writeMessage(13, (com.google.ortools.sat.AllDifferentConstraintProto) constraint_);
1818  }
1819  if (constraintCase_ == 14) {
1820  output.writeMessage(14, (com.google.ortools.sat.ElementConstraintProto) constraint_);
1821  }
1822  if (constraintCase_ == 15) {
1823  output.writeMessage(15, (com.google.ortools.sat.CircuitConstraintProto) constraint_);
1824  }
1825  if (constraintCase_ == 16) {
1826  output.writeMessage(16, (com.google.ortools.sat.TableConstraintProto) constraint_);
1827  }
1828  if (constraintCase_ == 17) {
1829  output.writeMessage(17, (com.google.ortools.sat.AutomatonConstraintProto) constraint_);
1830  }
1831  if (constraintCase_ == 18) {
1832  output.writeMessage(18, (com.google.ortools.sat.InverseConstraintProto) constraint_);
1833  }
1834  if (constraintCase_ == 19) {
1835  output.writeMessage(19, (com.google.ortools.sat.IntervalConstraintProto) constraint_);
1836  }
1837  if (constraintCase_ == 20) {
1838  output.writeMessage(20, (com.google.ortools.sat.NoOverlapConstraintProto) constraint_);
1839  }
1840  if (constraintCase_ == 21) {
1841  output.writeMessage(21, (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_);
1842  }
1843  if (constraintCase_ == 22) {
1844  output.writeMessage(22, (com.google.ortools.sat.CumulativeConstraintProto) constraint_);
1845  }
1846  if (constraintCase_ == 23) {
1847  output.writeMessage(23, (com.google.ortools.sat.RoutesConstraintProto) constraint_);
1848  }
1849  if (constraintCase_ == 24) {
1850  output.writeMessage(24, (com.google.ortools.sat.ReservoirConstraintProto) constraint_);
1851  }
1852  if (constraintCase_ == 26) {
1853  output.writeMessage(26, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1854  }
1855  if (constraintCase_ == 27) {
1856  output.writeMessage(27, (com.google.ortools.sat.LinearArgumentProto) constraint_);
1857  }
1858  if (constraintCase_ == 28) {
1859  output.writeMessage(28, (com.google.ortools.sat.LinearArgumentProto) constraint_);
1860  }
1861  unknownFields.writeTo(output);
1862  }
1863 
1864  @java.lang.Override
1865  public int getSerializedSize() {
1866  int size = memoizedSize;
1867  if (size != -1) return size;
1868 
1869  size = 0;
1870  if (!getNameBytes().isEmpty()) {
1871  size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
1872  }
1873  {
1874  int dataSize = 0;
1875  for (int i = 0; i < enforcementLiteral_.size(); i++) {
1876  dataSize += com.google.protobuf.CodedOutputStream
1877  .computeInt32SizeNoTag(enforcementLiteral_.getInt(i));
1878  }
1879  size += dataSize;
1880  if (!getEnforcementLiteralList().isEmpty()) {
1881  size += 1;
1882  size += com.google.protobuf.CodedOutputStream
1883  .computeInt32SizeNoTag(dataSize);
1884  }
1885  enforcementLiteralMemoizedSerializedSize = dataSize;
1886  }
1887  if (constraintCase_ == 3) {
1888  size += com.google.protobuf.CodedOutputStream
1889  .computeMessageSize(3, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1890  }
1891  if (constraintCase_ == 4) {
1892  size += com.google.protobuf.CodedOutputStream
1893  .computeMessageSize(4, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1894  }
1895  if (constraintCase_ == 5) {
1896  size += com.google.protobuf.CodedOutputStream
1897  .computeMessageSize(5, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1898  }
1899  if (constraintCase_ == 7) {
1900  size += com.google.protobuf.CodedOutputStream
1901  .computeMessageSize(7, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1902  }
1903  if (constraintCase_ == 8) {
1904  size += com.google.protobuf.CodedOutputStream
1905  .computeMessageSize(8, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1906  }
1907  if (constraintCase_ == 9) {
1908  size += com.google.protobuf.CodedOutputStream
1909  .computeMessageSize(9, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1910  }
1911  if (constraintCase_ == 10) {
1912  size += com.google.protobuf.CodedOutputStream
1913  .computeMessageSize(10, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1914  }
1915  if (constraintCase_ == 11) {
1916  size += com.google.protobuf.CodedOutputStream
1917  .computeMessageSize(11, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1918  }
1919  if (constraintCase_ == 12) {
1920  size += com.google.protobuf.CodedOutputStream
1921  .computeMessageSize(12, (com.google.ortools.sat.LinearConstraintProto) constraint_);
1922  }
1923  if (constraintCase_ == 13) {
1924  size += com.google.protobuf.CodedOutputStream
1925  .computeMessageSize(13, (com.google.ortools.sat.AllDifferentConstraintProto) constraint_);
1926  }
1927  if (constraintCase_ == 14) {
1928  size += com.google.protobuf.CodedOutputStream
1929  .computeMessageSize(14, (com.google.ortools.sat.ElementConstraintProto) constraint_);
1930  }
1931  if (constraintCase_ == 15) {
1932  size += com.google.protobuf.CodedOutputStream
1933  .computeMessageSize(15, (com.google.ortools.sat.CircuitConstraintProto) constraint_);
1934  }
1935  if (constraintCase_ == 16) {
1936  size += com.google.protobuf.CodedOutputStream
1937  .computeMessageSize(16, (com.google.ortools.sat.TableConstraintProto) constraint_);
1938  }
1939  if (constraintCase_ == 17) {
1940  size += com.google.protobuf.CodedOutputStream
1941  .computeMessageSize(17, (com.google.ortools.sat.AutomatonConstraintProto) constraint_);
1942  }
1943  if (constraintCase_ == 18) {
1944  size += com.google.protobuf.CodedOutputStream
1945  .computeMessageSize(18, (com.google.ortools.sat.InverseConstraintProto) constraint_);
1946  }
1947  if (constraintCase_ == 19) {
1948  size += com.google.protobuf.CodedOutputStream
1949  .computeMessageSize(19, (com.google.ortools.sat.IntervalConstraintProto) constraint_);
1950  }
1951  if (constraintCase_ == 20) {
1952  size += com.google.protobuf.CodedOutputStream
1953  .computeMessageSize(20, (com.google.ortools.sat.NoOverlapConstraintProto) constraint_);
1954  }
1955  if (constraintCase_ == 21) {
1956  size += com.google.protobuf.CodedOutputStream
1957  .computeMessageSize(21, (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_);
1958  }
1959  if (constraintCase_ == 22) {
1960  size += com.google.protobuf.CodedOutputStream
1961  .computeMessageSize(22, (com.google.ortools.sat.CumulativeConstraintProto) constraint_);
1962  }
1963  if (constraintCase_ == 23) {
1964  size += com.google.protobuf.CodedOutputStream
1965  .computeMessageSize(23, (com.google.ortools.sat.RoutesConstraintProto) constraint_);
1966  }
1967  if (constraintCase_ == 24) {
1968  size += com.google.protobuf.CodedOutputStream
1969  .computeMessageSize(24, (com.google.ortools.sat.ReservoirConstraintProto) constraint_);
1970  }
1971  if (constraintCase_ == 26) {
1972  size += com.google.protobuf.CodedOutputStream
1973  .computeMessageSize(26, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1974  }
1975  if (constraintCase_ == 27) {
1976  size += com.google.protobuf.CodedOutputStream
1977  .computeMessageSize(27, (com.google.ortools.sat.LinearArgumentProto) constraint_);
1978  }
1979  if (constraintCase_ == 28) {
1980  size += com.google.protobuf.CodedOutputStream
1981  .computeMessageSize(28, (com.google.ortools.sat.LinearArgumentProto) constraint_);
1982  }
1983  size += unknownFields.getSerializedSize();
1984  memoizedSize = size;
1985  return size;
1986  }
1987 
1988  @java.lang.Override
1989  public boolean equals(final java.lang.Object obj) {
1990  if (obj == this) {
1991  return true;
1992  }
1993  if (!(obj instanceof com.google.ortools.sat.ConstraintProto)) {
1994  return super.equals(obj);
1995  }
1997 
1998  if (!getName()
1999  .equals(other.getName())) return false;
2001  .equals(other.getEnforcementLiteralList())) return false;
2002  if (!getConstraintCase().equals(other.getConstraintCase())) return false;
2003  switch (constraintCase_) {
2004  case 3:
2005  if (!getBoolOr()
2006  .equals(other.getBoolOr())) return false;
2007  break;
2008  case 4:
2009  if (!getBoolAnd()
2010  .equals(other.getBoolAnd())) return false;
2011  break;
2012  case 26:
2013  if (!getAtMostOne()
2014  .equals(other.getAtMostOne())) return false;
2015  break;
2016  case 5:
2017  if (!getBoolXor()
2018  .equals(other.getBoolXor())) return false;
2019  break;
2020  case 7:
2021  if (!getIntDiv()
2022  .equals(other.getIntDiv())) return false;
2023  break;
2024  case 8:
2025  if (!getIntMod()
2026  .equals(other.getIntMod())) return false;
2027  break;
2028  case 9:
2029  if (!getIntMax()
2030  .equals(other.getIntMax())) return false;
2031  break;
2032  case 27:
2033  if (!getLinMax()
2034  .equals(other.getLinMax())) return false;
2035  break;
2036  case 10:
2037  if (!getIntMin()
2038  .equals(other.getIntMin())) return false;
2039  break;
2040  case 28:
2041  if (!getLinMin()
2042  .equals(other.getLinMin())) return false;
2043  break;
2044  case 11:
2045  if (!getIntProd()
2046  .equals(other.getIntProd())) return false;
2047  break;
2048  case 12:
2049  if (!getLinear()
2050  .equals(other.getLinear())) return false;
2051  break;
2052  case 13:
2053  if (!getAllDiff()
2054  .equals(other.getAllDiff())) return false;
2055  break;
2056  case 14:
2057  if (!getElement()
2058  .equals(other.getElement())) return false;
2059  break;
2060  case 15:
2061  if (!getCircuit()
2062  .equals(other.getCircuit())) return false;
2063  break;
2064  case 23:
2065  if (!getRoutes()
2066  .equals(other.getRoutes())) return false;
2067  break;
2068  case 16:
2069  if (!getTable()
2070  .equals(other.getTable())) return false;
2071  break;
2072  case 17:
2073  if (!getAutomaton()
2074  .equals(other.getAutomaton())) return false;
2075  break;
2076  case 18:
2077  if (!getInverse()
2078  .equals(other.getInverse())) return false;
2079  break;
2080  case 24:
2081  if (!getReservoir()
2082  .equals(other.getReservoir())) return false;
2083  break;
2084  case 19:
2085  if (!getInterval()
2086  .equals(other.getInterval())) return false;
2087  break;
2088  case 20:
2089  if (!getNoOverlap()
2090  .equals(other.getNoOverlap())) return false;
2091  break;
2092  case 21:
2093  if (!getNoOverlap2D()
2094  .equals(other.getNoOverlap2D())) return false;
2095  break;
2096  case 22:
2097  if (!getCumulative()
2098  .equals(other.getCumulative())) return false;
2099  break;
2100  case 0:
2101  default:
2102  }
2103  if (!unknownFields.equals(other.unknownFields)) return false;
2104  return true;
2105  }
2106 
2107  @java.lang.Override
2108  public int hashCode() {
2109  if (memoizedHashCode != 0) {
2110  return memoizedHashCode;
2111  }
2112  int hash = 41;
2113  hash = (19 * hash) + getDescriptor().hashCode();
2114  hash = (37 * hash) + NAME_FIELD_NUMBER;
2115  hash = (53 * hash) + getName().hashCode();
2116  if (getEnforcementLiteralCount() > 0) {
2117  hash = (37 * hash) + ENFORCEMENT_LITERAL_FIELD_NUMBER;
2118  hash = (53 * hash) + getEnforcementLiteralList().hashCode();
2119  }
2120  switch (constraintCase_) {
2121  case 3:
2122  hash = (37 * hash) + BOOL_OR_FIELD_NUMBER;
2123  hash = (53 * hash) + getBoolOr().hashCode();
2124  break;
2125  case 4:
2126  hash = (37 * hash) + BOOL_AND_FIELD_NUMBER;
2127  hash = (53 * hash) + getBoolAnd().hashCode();
2128  break;
2129  case 26:
2130  hash = (37 * hash) + AT_MOST_ONE_FIELD_NUMBER;
2131  hash = (53 * hash) + getAtMostOne().hashCode();
2132  break;
2133  case 5:
2134  hash = (37 * hash) + BOOL_XOR_FIELD_NUMBER;
2135  hash = (53 * hash) + getBoolXor().hashCode();
2136  break;
2137  case 7:
2138  hash = (37 * hash) + INT_DIV_FIELD_NUMBER;
2139  hash = (53 * hash) + getIntDiv().hashCode();
2140  break;
2141  case 8:
2142  hash = (37 * hash) + INT_MOD_FIELD_NUMBER;
2143  hash = (53 * hash) + getIntMod().hashCode();
2144  break;
2145  case 9:
2146  hash = (37 * hash) + INT_MAX_FIELD_NUMBER;
2147  hash = (53 * hash) + getIntMax().hashCode();
2148  break;
2149  case 27:
2150  hash = (37 * hash) + LIN_MAX_FIELD_NUMBER;
2151  hash = (53 * hash) + getLinMax().hashCode();
2152  break;
2153  case 10:
2154  hash = (37 * hash) + INT_MIN_FIELD_NUMBER;
2155  hash = (53 * hash) + getIntMin().hashCode();
2156  break;
2157  case 28:
2158  hash = (37 * hash) + LIN_MIN_FIELD_NUMBER;
2159  hash = (53 * hash) + getLinMin().hashCode();
2160  break;
2161  case 11:
2162  hash = (37 * hash) + INT_PROD_FIELD_NUMBER;
2163  hash = (53 * hash) + getIntProd().hashCode();
2164  break;
2165  case 12:
2166  hash = (37 * hash) + LINEAR_FIELD_NUMBER;
2167  hash = (53 * hash) + getLinear().hashCode();
2168  break;
2169  case 13:
2170  hash = (37 * hash) + ALL_DIFF_FIELD_NUMBER;
2171  hash = (53 * hash) + getAllDiff().hashCode();
2172  break;
2173  case 14:
2174  hash = (37 * hash) + ELEMENT_FIELD_NUMBER;
2175  hash = (53 * hash) + getElement().hashCode();
2176  break;
2177  case 15:
2178  hash = (37 * hash) + CIRCUIT_FIELD_NUMBER;
2179  hash = (53 * hash) + getCircuit().hashCode();
2180  break;
2181  case 23:
2182  hash = (37 * hash) + ROUTES_FIELD_NUMBER;
2183  hash = (53 * hash) + getRoutes().hashCode();
2184  break;
2185  case 16:
2186  hash = (37 * hash) + TABLE_FIELD_NUMBER;
2187  hash = (53 * hash) + getTable().hashCode();
2188  break;
2189  case 17:
2190  hash = (37 * hash) + AUTOMATON_FIELD_NUMBER;
2191  hash = (53 * hash) + getAutomaton().hashCode();
2192  break;
2193  case 18:
2194  hash = (37 * hash) + INVERSE_FIELD_NUMBER;
2195  hash = (53 * hash) + getInverse().hashCode();
2196  break;
2197  case 24:
2198  hash = (37 * hash) + RESERVOIR_FIELD_NUMBER;
2199  hash = (53 * hash) + getReservoir().hashCode();
2200  break;
2201  case 19:
2202  hash = (37 * hash) + INTERVAL_FIELD_NUMBER;
2203  hash = (53 * hash) + getInterval().hashCode();
2204  break;
2205  case 20:
2206  hash = (37 * hash) + NO_OVERLAP_FIELD_NUMBER;
2207  hash = (53 * hash) + getNoOverlap().hashCode();
2208  break;
2209  case 21:
2210  hash = (37 * hash) + NO_OVERLAP_2D_FIELD_NUMBER;
2211  hash = (53 * hash) + getNoOverlap2D().hashCode();
2212  break;
2213  case 22:
2214  hash = (37 * hash) + CUMULATIVE_FIELD_NUMBER;
2215  hash = (53 * hash) + getCumulative().hashCode();
2216  break;
2217  case 0:
2218  default:
2219  }
2220  hash = (29 * hash) + unknownFields.hashCode();
2221  memoizedHashCode = hash;
2222  return hash;
2223  }
2224 
2226  java.nio.ByteBuffer data)
2227  throws com.google.protobuf.InvalidProtocolBufferException {
2228  return PARSER.parseFrom(data);
2229  }
2231  java.nio.ByteBuffer data,
2232  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2233  throws com.google.protobuf.InvalidProtocolBufferException {
2234  return PARSER.parseFrom(data, extensionRegistry);
2235  }
2237  com.google.protobuf.ByteString data)
2238  throws com.google.protobuf.InvalidProtocolBufferException {
2239  return PARSER.parseFrom(data);
2240  }
2242  com.google.protobuf.ByteString data,
2243  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2244  throws com.google.protobuf.InvalidProtocolBufferException {
2245  return PARSER.parseFrom(data, extensionRegistry);
2246  }
2247  public static com.google.ortools.sat.ConstraintProto parseFrom(byte[] data)
2248  throws com.google.protobuf.InvalidProtocolBufferException {
2249  return PARSER.parseFrom(data);
2250  }
2252  byte[] data,
2253  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2254  throws com.google.protobuf.InvalidProtocolBufferException {
2255  return PARSER.parseFrom(data, extensionRegistry);
2256  }
2257  public static com.google.ortools.sat.ConstraintProto parseFrom(java.io.InputStream input)
2258  throws java.io.IOException {
2259  return com.google.protobuf.GeneratedMessageV3
2260  .parseWithIOException(PARSER, input);
2261  }
2263  java.io.InputStream input,
2264  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2265  throws java.io.IOException {
2266  return com.google.protobuf.GeneratedMessageV3
2267  .parseWithIOException(PARSER, input, extensionRegistry);
2268  }
2269  public static com.google.ortools.sat.ConstraintProto parseDelimitedFrom(java.io.InputStream input)
2270  throws java.io.IOException {
2271  return com.google.protobuf.GeneratedMessageV3
2272  .parseDelimitedWithIOException(PARSER, input);
2273  }
2275  java.io.InputStream input,
2276  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2277  throws java.io.IOException {
2278  return com.google.protobuf.GeneratedMessageV3
2279  .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
2280  }
2282  com.google.protobuf.CodedInputStream input)
2283  throws java.io.IOException {
2284  return com.google.protobuf.GeneratedMessageV3
2285  .parseWithIOException(PARSER, input);
2286  }
2288  com.google.protobuf.CodedInputStream input,
2289  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2290  throws java.io.IOException {
2291  return com.google.protobuf.GeneratedMessageV3
2292  .parseWithIOException(PARSER, input, extensionRegistry);
2293  }
2294 
2295  @java.lang.Override
2296  public Builder newBuilderForType() { return newBuilder(); }
2297  public static Builder newBuilder() {
2298  return DEFAULT_INSTANCE.toBuilder();
2299  }
2301  return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
2302  }
2303  @java.lang.Override
2304  public Builder toBuilder() {
2305  return this == DEFAULT_INSTANCE
2306  ? new Builder() : new Builder().mergeFrom(this);
2307  }
2308 
2309  @java.lang.Override
2311  com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
2312  Builder builder = new Builder(parent);
2313  return builder;
2314  }
2322  public static final class Builder extends
2323  com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
2324  // @@protoc_insertion_point(builder_implements:operations_research.sat.ConstraintProto)
2325  com.google.ortools.sat.ConstraintProtoOrBuilder {
2326  public static final com.google.protobuf.Descriptors.Descriptor
2328  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_descriptor;
2329  }
2330 
2331  @java.lang.Override
2332  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
2334  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_fieldAccessorTable
2335  .ensureFieldAccessorsInitialized(
2337  }
2338 
2339  // Construct using com.google.ortools.sat.ConstraintProto.newBuilder()
2340  private Builder() {
2341  maybeForceBuilderInitialization();
2342  }
2343 
2344  private Builder(
2345  com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
2346  super(parent);
2347  maybeForceBuilderInitialization();
2348  }
2349  private void maybeForceBuilderInitialization() {
2350  if (com.google.protobuf.GeneratedMessageV3
2351  .alwaysUseFieldBuilders) {
2352  }
2353  }
2354  @java.lang.Override
2355  public Builder clear() {
2356  super.clear();
2357  name_ = "";
2358 
2359  enforcementLiteral_ = emptyIntList();
2360  bitField0_ = (bitField0_ & ~0x00000001);
2361  constraintCase_ = 0;
2362  constraint_ = null;
2363  return this;
2364  }
2365 
2366  @java.lang.Override
2367  public com.google.protobuf.Descriptors.Descriptor
2369  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_descriptor;
2370  }
2371 
2372  @java.lang.Override
2375  }
2376 
2377  @java.lang.Override
2380  if (!result.isInitialized()) {
2381  throw newUninitializedMessageException(result);
2382  }
2383  return result;
2384  }
2385 
2386  @java.lang.Override
2389  int from_bitField0_ = bitField0_;
2390  result.name_ = name_;
2391  if (((bitField0_ & 0x00000001) != 0)) {
2392  enforcementLiteral_.makeImmutable();
2393  bitField0_ = (bitField0_ & ~0x00000001);
2394  }
2395  result.enforcementLiteral_ = enforcementLiteral_;
2396  if (constraintCase_ == 3) {
2397  if (boolOrBuilder_ == null) {
2398  result.constraint_ = constraint_;
2399  } else {
2400  result.constraint_ = boolOrBuilder_.build();
2401  }
2402  }
2403  if (constraintCase_ == 4) {
2404  if (boolAndBuilder_ == null) {
2405  result.constraint_ = constraint_;
2406  } else {
2407  result.constraint_ = boolAndBuilder_.build();
2408  }
2409  }
2410  if (constraintCase_ == 26) {
2411  if (atMostOneBuilder_ == null) {
2412  result.constraint_ = constraint_;
2413  } else {
2414  result.constraint_ = atMostOneBuilder_.build();
2415  }
2416  }
2417  if (constraintCase_ == 5) {
2418  if (boolXorBuilder_ == null) {
2419  result.constraint_ = constraint_;
2420  } else {
2421  result.constraint_ = boolXorBuilder_.build();
2422  }
2423  }
2424  if (constraintCase_ == 7) {
2425  if (intDivBuilder_ == null) {
2426  result.constraint_ = constraint_;
2427  } else {
2428  result.constraint_ = intDivBuilder_.build();
2429  }
2430  }
2431  if (constraintCase_ == 8) {
2432  if (intModBuilder_ == null) {
2433  result.constraint_ = constraint_;
2434  } else {
2435  result.constraint_ = intModBuilder_.build();
2436  }
2437  }
2438  if (constraintCase_ == 9) {
2439  if (intMaxBuilder_ == null) {
2440  result.constraint_ = constraint_;
2441  } else {
2442  result.constraint_ = intMaxBuilder_.build();
2443  }
2444  }
2445  if (constraintCase_ == 27) {
2446  if (linMaxBuilder_ == null) {
2447  result.constraint_ = constraint_;
2448  } else {
2449  result.constraint_ = linMaxBuilder_.build();
2450  }
2451  }
2452  if (constraintCase_ == 10) {
2453  if (intMinBuilder_ == null) {
2454  result.constraint_ = constraint_;
2455  } else {
2456  result.constraint_ = intMinBuilder_.build();
2457  }
2458  }
2459  if (constraintCase_ == 28) {
2460  if (linMinBuilder_ == null) {
2461  result.constraint_ = constraint_;
2462  } else {
2463  result.constraint_ = linMinBuilder_.build();
2464  }
2465  }
2466  if (constraintCase_ == 11) {
2467  if (intProdBuilder_ == null) {
2468  result.constraint_ = constraint_;
2469  } else {
2470  result.constraint_ = intProdBuilder_.build();
2471  }
2472  }
2473  if (constraintCase_ == 12) {
2474  if (linearBuilder_ == null) {
2475  result.constraint_ = constraint_;
2476  } else {
2477  result.constraint_ = linearBuilder_.build();
2478  }
2479  }
2480  if (constraintCase_ == 13) {
2481  if (allDiffBuilder_ == null) {
2482  result.constraint_ = constraint_;
2483  } else {
2484  result.constraint_ = allDiffBuilder_.build();
2485  }
2486  }
2487  if (constraintCase_ == 14) {
2488  if (elementBuilder_ == null) {
2489  result.constraint_ = constraint_;
2490  } else {
2491  result.constraint_ = elementBuilder_.build();
2492  }
2493  }
2494  if (constraintCase_ == 15) {
2495  if (circuitBuilder_ == null) {
2496  result.constraint_ = constraint_;
2497  } else {
2498  result.constraint_ = circuitBuilder_.build();
2499  }
2500  }
2501  if (constraintCase_ == 23) {
2502  if (routesBuilder_ == null) {
2503  result.constraint_ = constraint_;
2504  } else {
2505  result.constraint_ = routesBuilder_.build();
2506  }
2507  }
2508  if (constraintCase_ == 16) {
2509  if (tableBuilder_ == null) {
2510  result.constraint_ = constraint_;
2511  } else {
2512  result.constraint_ = tableBuilder_.build();
2513  }
2514  }
2515  if (constraintCase_ == 17) {
2516  if (automatonBuilder_ == null) {
2517  result.constraint_ = constraint_;
2518  } else {
2519  result.constraint_ = automatonBuilder_.build();
2520  }
2521  }
2522  if (constraintCase_ == 18) {
2523  if (inverseBuilder_ == null) {
2524  result.constraint_ = constraint_;
2525  } else {
2526  result.constraint_ = inverseBuilder_.build();
2527  }
2528  }
2529  if (constraintCase_ == 24) {
2530  if (reservoirBuilder_ == null) {
2531  result.constraint_ = constraint_;
2532  } else {
2533  result.constraint_ = reservoirBuilder_.build();
2534  }
2535  }
2536  if (constraintCase_ == 19) {
2537  if (intervalBuilder_ == null) {
2538  result.constraint_ = constraint_;
2539  } else {
2540  result.constraint_ = intervalBuilder_.build();
2541  }
2542  }
2543  if (constraintCase_ == 20) {
2544  if (noOverlapBuilder_ == null) {
2545  result.constraint_ = constraint_;
2546  } else {
2547  result.constraint_ = noOverlapBuilder_.build();
2548  }
2549  }
2550  if (constraintCase_ == 21) {
2551  if (noOverlap2DBuilder_ == null) {
2552  result.constraint_ = constraint_;
2553  } else {
2554  result.constraint_ = noOverlap2DBuilder_.build();
2555  }
2556  }
2557  if (constraintCase_ == 22) {
2558  if (cumulativeBuilder_ == null) {
2559  result.constraint_ = constraint_;
2560  } else {
2561  result.constraint_ = cumulativeBuilder_.build();
2562  }
2563  }
2564  result.constraintCase_ = constraintCase_;
2565  onBuilt();
2566  return result;
2567  }
2568 
2569  @java.lang.Override
2570  public Builder clone() {
2571  return super.clone();
2572  }
2573  @java.lang.Override
2575  com.google.protobuf.Descriptors.FieldDescriptor field,
2576  java.lang.Object value) {
2577  return super.setField(field, value);
2578  }
2579  @java.lang.Override
2581  com.google.protobuf.Descriptors.FieldDescriptor field) {
2582  return super.clearField(field);
2583  }
2584  @java.lang.Override
2586  com.google.protobuf.Descriptors.OneofDescriptor oneof) {
2587  return super.clearOneof(oneof);
2588  }
2589  @java.lang.Override
2591  com.google.protobuf.Descriptors.FieldDescriptor field,
2592  int index, java.lang.Object value) {
2593  return super.setRepeatedField(field, index, value);
2594  }
2595  @java.lang.Override
2597  com.google.protobuf.Descriptors.FieldDescriptor field,
2598  java.lang.Object value) {
2599  return super.addRepeatedField(field, value);
2600  }
2601  @java.lang.Override
2602  public Builder mergeFrom(com.google.protobuf.Message other) {
2603  if (other instanceof com.google.ortools.sat.ConstraintProto) {
2604  return mergeFrom((com.google.ortools.sat.ConstraintProto)other);
2605  } else {
2606  super.mergeFrom(other);
2607  return this;
2608  }
2609  }
2610 
2612  if (other == com.google.ortools.sat.ConstraintProto.getDefaultInstance()) return this;
2613  if (!other.getName().isEmpty()) {
2614  name_ = other.name_;
2615  onChanged();
2616  }
2617  if (!other.enforcementLiteral_.isEmpty()) {
2618  if (enforcementLiteral_.isEmpty()) {
2619  enforcementLiteral_ = other.enforcementLiteral_;
2620  bitField0_ = (bitField0_ & ~0x00000001);
2621  } else {
2622  ensureEnforcementLiteralIsMutable();
2623  enforcementLiteral_.addAll(other.enforcementLiteral_);
2624  }
2625  onChanged();
2626  }
2627  switch (other.getConstraintCase()) {
2628  case BOOL_OR: {
2629  mergeBoolOr(other.getBoolOr());
2630  break;
2631  }
2632  case BOOL_AND: {
2633  mergeBoolAnd(other.getBoolAnd());
2634  break;
2635  }
2636  case AT_MOST_ONE: {
2637  mergeAtMostOne(other.getAtMostOne());
2638  break;
2639  }
2640  case BOOL_XOR: {
2641  mergeBoolXor(other.getBoolXor());
2642  break;
2643  }
2644  case INT_DIV: {
2645  mergeIntDiv(other.getIntDiv());
2646  break;
2647  }
2648  case INT_MOD: {
2649  mergeIntMod(other.getIntMod());
2650  break;
2651  }
2652  case INT_MAX: {
2653  mergeIntMax(other.getIntMax());
2654  break;
2655  }
2656  case LIN_MAX: {
2657  mergeLinMax(other.getLinMax());
2658  break;
2659  }
2660  case INT_MIN: {
2661  mergeIntMin(other.getIntMin());
2662  break;
2663  }
2664  case LIN_MIN: {
2665  mergeLinMin(other.getLinMin());
2666  break;
2667  }
2668  case INT_PROD: {
2669  mergeIntProd(other.getIntProd());
2670  break;
2671  }
2672  case LINEAR: {
2673  mergeLinear(other.getLinear());
2674  break;
2675  }
2676  case ALL_DIFF: {
2677  mergeAllDiff(other.getAllDiff());
2678  break;
2679  }
2680  case ELEMENT: {
2681  mergeElement(other.getElement());
2682  break;
2683  }
2684  case CIRCUIT: {
2685  mergeCircuit(other.getCircuit());
2686  break;
2687  }
2688  case ROUTES: {
2689  mergeRoutes(other.getRoutes());
2690  break;
2691  }
2692  case TABLE: {
2693  mergeTable(other.getTable());
2694  break;
2695  }
2696  case AUTOMATON: {
2697  mergeAutomaton(other.getAutomaton());
2698  break;
2699  }
2700  case INVERSE: {
2701  mergeInverse(other.getInverse());
2702  break;
2703  }
2704  case RESERVOIR: {
2705  mergeReservoir(other.getReservoir());
2706  break;
2707  }
2708  case INTERVAL: {
2709  mergeInterval(other.getInterval());
2710  break;
2711  }
2712  case NO_OVERLAP: {
2713  mergeNoOverlap(other.getNoOverlap());
2714  break;
2715  }
2716  case NO_OVERLAP_2D: {
2717  mergeNoOverlap2D(other.getNoOverlap2D());
2718  break;
2719  }
2720  case CUMULATIVE: {
2721  mergeCumulative(other.getCumulative());
2722  break;
2723  }
2724  case CONSTRAINT_NOT_SET: {
2725  break;
2726  }
2727  }
2728  this.mergeUnknownFields(other.unknownFields);
2729  onChanged();
2730  return this;
2731  }
2732 
2733  @java.lang.Override
2734  public final boolean isInitialized() {
2735  return true;
2736  }
2737 
2738  @java.lang.Override
2740  com.google.protobuf.CodedInputStream input,
2741  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2742  throws java.io.IOException {
2743  com.google.ortools.sat.ConstraintProto parsedMessage = null;
2744  try {
2745  parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
2746  } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2747  parsedMessage = (com.google.ortools.sat.ConstraintProto) e.getUnfinishedMessage();
2748  throw e.unwrapIOException();
2749  } finally {
2750  if (parsedMessage != null) {
2751  mergeFrom(parsedMessage);
2752  }
2753  }
2754  return this;
2755  }
2756  private int constraintCase_ = 0;
2757  private java.lang.Object constraint_;
2758  public ConstraintCase
2760  return ConstraintCase.forNumber(
2761  constraintCase_);
2762  }
2763 
2765  constraintCase_ = 0;
2766  constraint_ = null;
2767  onChanged();
2768  return this;
2769  }
2770 
2771  private int bitField0_;
2772 
2773  private java.lang.Object name_ = "";
2782  public java.lang.String getName() {
2783  java.lang.Object ref = name_;
2784  if (!(ref instanceof java.lang.String)) {
2785  com.google.protobuf.ByteString bs =
2786  (com.google.protobuf.ByteString) ref;
2787  java.lang.String s = bs.toStringUtf8();
2788  name_ = s;
2789  return s;
2790  } else {
2791  return (java.lang.String) ref;
2792  }
2793  }
2802  public com.google.protobuf.ByteString
2804  java.lang.Object ref = name_;
2805  if (ref instanceof String) {
2806  com.google.protobuf.ByteString b =
2807  com.google.protobuf.ByteString.copyFromUtf8(
2808  (java.lang.String) ref);
2809  name_ = b;
2810  return b;
2811  } else {
2812  return (com.google.protobuf.ByteString) ref;
2813  }
2814  }
2825  java.lang.String value) {
2826  if (value == null) {
2827  throw new NullPointerException();
2828  }
2829 
2830  name_ = value;
2831  onChanged();
2832  return this;
2833  }
2842  public Builder clearName() {
2843 
2844  name_ = getDefaultInstance().getName();
2845  onChanged();
2846  return this;
2847  }
2858  com.google.protobuf.ByteString value) {
2859  if (value == null) {
2860  throw new NullPointerException();
2861  }
2862  checkByteStringIsUtf8(value);
2863 
2864  name_ = value;
2865  onChanged();
2866  return this;
2867  }
2868 
2869  private com.google.protobuf.Internal.IntList enforcementLiteral_ = emptyIntList();
2870  private void ensureEnforcementLiteralIsMutable() {
2871  if (!((bitField0_ & 0x00000001) != 0)) {
2872  enforcementLiteral_ = mutableCopy(enforcementLiteral_);
2873  bitField0_ |= 0x00000001;
2874  }
2875  }
2895  public java.util.List<java.lang.Integer>
2897  return ((bitField0_ & 0x00000001) != 0) ?
2898  java.util.Collections.unmodifiableList(enforcementLiteral_) : enforcementLiteral_;
2899  }
2920  return enforcementLiteral_.size();
2921  }
2942  public int getEnforcementLiteral(int index) {
2943  return enforcementLiteral_.getInt(index);
2944  }
2967  int index, int value) {
2968  ensureEnforcementLiteralIsMutable();
2969  enforcementLiteral_.setInt(index, value);
2970  onChanged();
2971  return this;
2972  }
2993  public Builder addEnforcementLiteral(int value) {
2994  ensureEnforcementLiteralIsMutable();
2995  enforcementLiteral_.addInt(value);
2996  onChanged();
2997  return this;
2998  }
3020  java.lang.Iterable<? extends java.lang.Integer> values) {
3021  ensureEnforcementLiteralIsMutable();
3022  com.google.protobuf.AbstractMessageLite.Builder.addAll(
3023  values, enforcementLiteral_);
3024  onChanged();
3025  return this;
3026  }
3047  enforcementLiteral_ = emptyIntList();
3048  bitField0_ = (bitField0_ & ~0x00000001);
3049  onChanged();
3050  return this;
3051  }
3052 
3053  private com.google.protobuf.SingleFieldBuilderV3<
3063  @java.lang.Override
3064  public boolean hasBoolOr() {
3065  return constraintCase_ == 3;
3066  }
3075  @java.lang.Override
3077  if (boolOrBuilder_ == null) {
3078  if (constraintCase_ == 3) {
3079  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3080  }
3082  } else {
3083  if (constraintCase_ == 3) {
3084  return boolOrBuilder_.getMessage();
3085  }
3087  }
3088  }
3097  if (boolOrBuilder_ == null) {
3098  if (value == null) {
3099  throw new NullPointerException();
3100  }
3101  constraint_ = value;
3102  onChanged();
3103  } else {
3104  boolOrBuilder_.setMessage(value);
3105  }
3106  constraintCase_ = 3;
3107  return this;
3108  }
3117  com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
3118  if (boolOrBuilder_ == null) {
3119  constraint_ = builderForValue.build();
3120  onChanged();
3121  } else {
3122  boolOrBuilder_.setMessage(builderForValue.build());
3123  }
3124  constraintCase_ = 3;
3125  return this;
3126  }
3135  if (boolOrBuilder_ == null) {
3136  if (constraintCase_ == 3 &&
3139  .mergeFrom(value).buildPartial();
3140  } else {
3141  constraint_ = value;
3142  }
3143  onChanged();
3144  } else {
3145  if (constraintCase_ == 3) {
3146  boolOrBuilder_.mergeFrom(value);
3147  }
3148  boolOrBuilder_.setMessage(value);
3149  }
3150  constraintCase_ = 3;
3151  return this;
3152  }
3161  if (boolOrBuilder_ == null) {
3162  if (constraintCase_ == 3) {
3163  constraintCase_ = 0;
3164  constraint_ = null;
3165  onChanged();
3166  }
3167  } else {
3168  if (constraintCase_ == 3) {
3169  constraintCase_ = 0;
3170  constraint_ = null;
3171  }
3172  boolOrBuilder_.clear();
3173  }
3174  return this;
3175  }
3184  return getBoolOrFieldBuilder().getBuilder();
3185  }
3193  @java.lang.Override
3195  if ((constraintCase_ == 3) && (boolOrBuilder_ != null)) {
3196  return boolOrBuilder_.getMessageOrBuilder();
3197  } else {
3198  if (constraintCase_ == 3) {
3199  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3200  }
3202  }
3203  }
3211  private com.google.protobuf.SingleFieldBuilderV3<
3213  getBoolOrFieldBuilder() {
3214  if (boolOrBuilder_ == null) {
3215  if (!(constraintCase_ == 3)) {
3217  }
3218  boolOrBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
3220  (com.google.ortools.sat.BoolArgumentProto) constraint_,
3221  getParentForChildren(),
3222  isClean());
3223  constraint_ = null;
3224  }
3225  constraintCase_ = 3;
3226  onChanged();;
3227  return boolOrBuilder_;
3228  }
3229 
3230  private com.google.protobuf.SingleFieldBuilderV3<
3243  @java.lang.Override
3244  public boolean hasBoolAnd() {
3245  return constraintCase_ == 4;
3246  }
3258  @java.lang.Override
3260  if (boolAndBuilder_ == null) {
3261  if (constraintCase_ == 4) {
3262  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3263  }
3265  } else {
3266  if (constraintCase_ == 4) {
3267  return boolAndBuilder_.getMessage();
3268  }
3270  }
3271  }
3283  if (boolAndBuilder_ == null) {
3284  if (value == null) {
3285  throw new NullPointerException();
3286  }
3287  constraint_ = value;
3288  onChanged();
3289  } else {
3290  boolAndBuilder_.setMessage(value);
3291  }
3292  constraintCase_ = 4;
3293  return this;
3294  }
3306  com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
3307  if (boolAndBuilder_ == null) {
3308  constraint_ = builderForValue.build();
3309  onChanged();
3310  } else {
3311  boolAndBuilder_.setMessage(builderForValue.build());
3312  }
3313  constraintCase_ = 4;
3314  return this;
3315  }
3327  if (boolAndBuilder_ == null) {
3328  if (constraintCase_ == 4 &&
3331  .mergeFrom(value).buildPartial();
3332  } else {
3333  constraint_ = value;
3334  }
3335  onChanged();
3336  } else {
3337  if (constraintCase_ == 4) {
3338  boolAndBuilder_.mergeFrom(value);
3339  }
3340  boolAndBuilder_.setMessage(value);
3341  }
3342  constraintCase_ = 4;
3343  return this;
3344  }
3356  if (boolAndBuilder_ == null) {
3357  if (constraintCase_ == 4) {
3358  constraintCase_ = 0;
3359  constraint_ = null;
3360  onChanged();
3361  }
3362  } else {
3363  if (constraintCase_ == 4) {
3364  constraintCase_ = 0;
3365  constraint_ = null;
3366  }
3367  boolAndBuilder_.clear();
3368  }
3369  return this;
3370  }
3382  return getBoolAndFieldBuilder().getBuilder();
3383  }
3394  @java.lang.Override
3396  if ((constraintCase_ == 4) && (boolAndBuilder_ != null)) {
3397  return boolAndBuilder_.getMessageOrBuilder();
3398  } else {
3399  if (constraintCase_ == 4) {
3400  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3401  }
3403  }
3404  }
3415  private com.google.protobuf.SingleFieldBuilderV3<
3417  getBoolAndFieldBuilder() {
3418  if (boolAndBuilder_ == null) {
3419  if (!(constraintCase_ == 4)) {
3421  }
3422  boolAndBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
3424  (com.google.ortools.sat.BoolArgumentProto) constraint_,
3425  getParentForChildren(),
3426  isClean());
3427  constraint_ = null;
3428  }
3429  constraintCase_ = 4;
3430  onChanged();;
3431  return boolAndBuilder_;
3432  }
3433 
3434  private com.google.protobuf.SingleFieldBuilderV3<
3448  @java.lang.Override
3449  public boolean hasAtMostOne() {
3450  return constraintCase_ == 26;
3451  }
3464  @java.lang.Override
3466  if (atMostOneBuilder_ == null) {
3467  if (constraintCase_ == 26) {
3468  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3469  }
3471  } else {
3472  if (constraintCase_ == 26) {
3473  return atMostOneBuilder_.getMessage();
3474  }
3476  }
3477  }
3490  if (atMostOneBuilder_ == null) {
3491  if (value == null) {
3492  throw new NullPointerException();
3493  }
3494  constraint_ = value;
3495  onChanged();
3496  } else {
3497  atMostOneBuilder_.setMessage(value);
3498  }
3499  constraintCase_ = 26;
3500  return this;
3501  }
3514  com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
3515  if (atMostOneBuilder_ == null) {
3516  constraint_ = builderForValue.build();
3517  onChanged();
3518  } else {
3519  atMostOneBuilder_.setMessage(builderForValue.build());
3520  }
3521  constraintCase_ = 26;
3522  return this;
3523  }
3536  if (atMostOneBuilder_ == null) {
3537  if (constraintCase_ == 26 &&
3540  .mergeFrom(value).buildPartial();
3541  } else {
3542  constraint_ = value;
3543  }
3544  onChanged();
3545  } else {
3546  if (constraintCase_ == 26) {
3547  atMostOneBuilder_.mergeFrom(value);
3548  }
3549  atMostOneBuilder_.setMessage(value);
3550  }
3551  constraintCase_ = 26;
3552  return this;
3553  }
3566  if (atMostOneBuilder_ == null) {
3567  if (constraintCase_ == 26) {
3568  constraintCase_ = 0;
3569  constraint_ = null;
3570  onChanged();
3571  }
3572  } else {
3573  if (constraintCase_ == 26) {
3574  constraintCase_ = 0;
3575  constraint_ = null;
3576  }
3577  atMostOneBuilder_.clear();
3578  }
3579  return this;
3580  }
3593  return getAtMostOneFieldBuilder().getBuilder();
3594  }
3606  @java.lang.Override
3608  if ((constraintCase_ == 26) && (atMostOneBuilder_ != null)) {
3609  return atMostOneBuilder_.getMessageOrBuilder();
3610  } else {
3611  if (constraintCase_ == 26) {
3612  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3613  }
3615  }
3616  }
3628  private com.google.protobuf.SingleFieldBuilderV3<
3630  getAtMostOneFieldBuilder() {
3631  if (atMostOneBuilder_ == null) {
3632  if (!(constraintCase_ == 26)) {
3634  }
3635  atMostOneBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
3637  (com.google.ortools.sat.BoolArgumentProto) constraint_,
3638  getParentForChildren(),
3639  isClean());
3640  constraint_ = null;
3641  }
3642  constraintCase_ = 26;
3643  onChanged();;
3644  return atMostOneBuilder_;
3645  }
3646 
3647  private com.google.protobuf.SingleFieldBuilderV3<
3657  @java.lang.Override
3658  public boolean hasBoolXor() {
3659  return constraintCase_ == 5;
3660  }
3669  @java.lang.Override
3671  if (boolXorBuilder_ == null) {
3672  if (constraintCase_ == 5) {
3673  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3674  }
3676  } else {
3677  if (constraintCase_ == 5) {
3678  return boolXorBuilder_.getMessage();
3679  }
3681  }
3682  }
3691  if (boolXorBuilder_ == null) {
3692  if (value == null) {
3693  throw new NullPointerException();
3694  }
3695  constraint_ = value;
3696  onChanged();
3697  } else {
3698  boolXorBuilder_.setMessage(value);
3699  }
3700  constraintCase_ = 5;
3701  return this;
3702  }
3711  com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
3712  if (boolXorBuilder_ == null) {
3713  constraint_ = builderForValue.build();
3714  onChanged();
3715  } else {
3716  boolXorBuilder_.setMessage(builderForValue.build());
3717  }
3718  constraintCase_ = 5;
3719  return this;
3720  }
3729  if (boolXorBuilder_ == null) {
3730  if (constraintCase_ == 5 &&
3733  .mergeFrom(value).buildPartial();
3734  } else {
3735  constraint_ = value;
3736  }
3737  onChanged();
3738  } else {
3739  if (constraintCase_ == 5) {
3740  boolXorBuilder_.mergeFrom(value);
3741  }
3742  boolXorBuilder_.setMessage(value);
3743  }
3744  constraintCase_ = 5;
3745  return this;
3746  }
3755  if (boolXorBuilder_ == null) {
3756  if (constraintCase_ == 5) {
3757  constraintCase_ = 0;
3758  constraint_ = null;
3759  onChanged();
3760  }
3761  } else {
3762  if (constraintCase_ == 5) {
3763  constraintCase_ = 0;
3764  constraint_ = null;
3765  }
3766  boolXorBuilder_.clear();
3767  }
3768  return this;
3769  }
3778  return getBoolXorFieldBuilder().getBuilder();
3779  }
3787  @java.lang.Override
3789  if ((constraintCase_ == 5) && (boolXorBuilder_ != null)) {
3790  return boolXorBuilder_.getMessageOrBuilder();
3791  } else {
3792  if (constraintCase_ == 5) {
3793  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3794  }
3796  }
3797  }
3805  private com.google.protobuf.SingleFieldBuilderV3<
3807  getBoolXorFieldBuilder() {
3808  if (boolXorBuilder_ == null) {
3809  if (!(constraintCase_ == 5)) {
3811  }
3812  boolXorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
3814  (com.google.ortools.sat.BoolArgumentProto) constraint_,
3815  getParentForChildren(),
3816  isClean());
3817  constraint_ = null;
3818  }
3819  constraintCase_ = 5;
3820  onChanged();;
3821  return boolXorBuilder_;
3822  }
3823 
3824  private com.google.protobuf.SingleFieldBuilderV3<
3835  @java.lang.Override
3836  public boolean hasIntDiv() {
3837  return constraintCase_ == 7;
3838  }
3848  @java.lang.Override
3850  if (intDivBuilder_ == null) {
3851  if (constraintCase_ == 7) {
3852  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
3853  }
3855  } else {
3856  if (constraintCase_ == 7) {
3857  return intDivBuilder_.getMessage();
3858  }
3860  }
3861  }
3871  if (intDivBuilder_ == null) {
3872  if (value == null) {
3873  throw new NullPointerException();
3874  }
3875  constraint_ = value;
3876  onChanged();
3877  } else {
3878  intDivBuilder_.setMessage(value);
3879  }
3880  constraintCase_ = 7;
3881  return this;
3882  }
3892  com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue) {
3893  if (intDivBuilder_ == null) {
3894  constraint_ = builderForValue.build();
3895  onChanged();
3896  } else {
3897  intDivBuilder_.setMessage(builderForValue.build());
3898  }
3899  constraintCase_ = 7;
3900  return this;
3901  }
3911  if (intDivBuilder_ == null) {
3912  if (constraintCase_ == 7 &&
3915  .mergeFrom(value).buildPartial();
3916  } else {
3917  constraint_ = value;
3918  }
3919  onChanged();
3920  } else {
3921  if (constraintCase_ == 7) {
3922  intDivBuilder_.mergeFrom(value);
3923  }
3924  intDivBuilder_.setMessage(value);
3925  }
3926  constraintCase_ = 7;
3927  return this;
3928  }
3938  if (intDivBuilder_ == null) {
3939  if (constraintCase_ == 7) {
3940  constraintCase_ = 0;
3941  constraint_ = null;
3942  onChanged();
3943  }
3944  } else {
3945  if (constraintCase_ == 7) {
3946  constraintCase_ = 0;
3947  constraint_ = null;
3948  }
3949  intDivBuilder_.clear();
3950  }
3951  return this;
3952  }
3962  return getIntDivFieldBuilder().getBuilder();
3963  }
3972  @java.lang.Override
3974  if ((constraintCase_ == 7) && (intDivBuilder_ != null)) {
3975  return intDivBuilder_.getMessageOrBuilder();
3976  } else {
3977  if (constraintCase_ == 7) {
3978  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
3979  }
3981  }
3982  }
3991  private com.google.protobuf.SingleFieldBuilderV3<
3993  getIntDivFieldBuilder() {
3994  if (intDivBuilder_ == null) {
3995  if (!(constraintCase_ == 7)) {
3997  }
3998  intDivBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4000  (com.google.ortools.sat.IntegerArgumentProto) constraint_,
4001  getParentForChildren(),
4002  isClean());
4003  constraint_ = null;
4004  }
4005  constraintCase_ = 7;
4006  onChanged();;
4007  return intDivBuilder_;
4008  }
4009 
4010  private com.google.protobuf.SingleFieldBuilderV3<
4021  @java.lang.Override
4022  public boolean hasIntMod() {
4023  return constraintCase_ == 8;
4024  }
4034  @java.lang.Override
4036  if (intModBuilder_ == null) {
4037  if (constraintCase_ == 8) {
4038  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
4039  }
4041  } else {
4042  if (constraintCase_ == 8) {
4043  return intModBuilder_.getMessage();
4044  }
4046  }
4047  }
4057  if (intModBuilder_ == null) {
4058  if (value == null) {
4059  throw new NullPointerException();
4060  }
4061  constraint_ = value;
4062  onChanged();
4063  } else {
4064  intModBuilder_.setMessage(value);
4065  }
4066  constraintCase_ = 8;
4067  return this;
4068  }
4078  com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue) {
4079  if (intModBuilder_ == null) {
4080  constraint_ = builderForValue.build();
4081  onChanged();
4082  } else {
4083  intModBuilder_.setMessage(builderForValue.build());
4084  }
4085  constraintCase_ = 8;
4086  return this;
4087  }
4097  if (intModBuilder_ == null) {
4098  if (constraintCase_ == 8 &&
4101  .mergeFrom(value).buildPartial();
4102  } else {
4103  constraint_ = value;
4104  }
4105  onChanged();
4106  } else {
4107  if (constraintCase_ == 8) {
4108  intModBuilder_.mergeFrom(value);
4109  }
4110  intModBuilder_.setMessage(value);
4111  }
4112  constraintCase_ = 8;
4113  return this;
4114  }
4124  if (intModBuilder_ == null) {
4125  if (constraintCase_ == 8) {
4126  constraintCase_ = 0;
4127  constraint_ = null;
4128  onChanged();
4129  }
4130  } else {
4131  if (constraintCase_ == 8) {
4132  constraintCase_ = 0;
4133  constraint_ = null;
4134  }
4135  intModBuilder_.clear();
4136  }
4137  return this;
4138  }
4148  return getIntModFieldBuilder().getBuilder();
4149  }
4158  @java.lang.Override
4160  if ((constraintCase_ == 8) && (intModBuilder_ != null)) {
4161  return intModBuilder_.getMessageOrBuilder();
4162  } else {
4163  if (constraintCase_ == 8) {
4164  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
4165  }
4167  }
4168  }
4177  private com.google.protobuf.SingleFieldBuilderV3<
4179  getIntModFieldBuilder() {
4180  if (intModBuilder_ == null) {
4181  if (!(constraintCase_ == 8)) {
4183  }
4184  intModBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4186  (com.google.ortools.sat.IntegerArgumentProto) constraint_,
4187  getParentForChildren(),
4188  isClean());
4189  constraint_ = null;
4190  }
4191  constraintCase_ = 8;
4192  onChanged();;
4193  return intModBuilder_;
4194  }
4195 
4196  private com.google.protobuf.SingleFieldBuilderV3<
4210  @java.lang.Override
4211  public boolean hasIntMax() {
4212  return constraintCase_ == 9;
4213  }
4226  @java.lang.Override
4228  if (intMaxBuilder_ == null) {
4229  if (constraintCase_ == 9) {
4230  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
4231  }
4233  } else {
4234  if (constraintCase_ == 9) {
4235  return intMaxBuilder_.getMessage();
4236  }
4238  }
4239  }
4252  if (intMaxBuilder_ == null) {
4253  if (value == null) {
4254  throw new NullPointerException();
4255  }
4256  constraint_ = value;
4257  onChanged();
4258  } else {
4259  intMaxBuilder_.setMessage(value);
4260  }
4261  constraintCase_ = 9;
4262  return this;
4263  }
4276  com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue) {
4277  if (intMaxBuilder_ == null) {
4278  constraint_ = builderForValue.build();
4279  onChanged();
4280  } else {
4281  intMaxBuilder_.setMessage(builderForValue.build());
4282  }
4283  constraintCase_ = 9;
4284  return this;
4285  }
4298  if (intMaxBuilder_ == null) {
4299  if (constraintCase_ == 9 &&
4302  .mergeFrom(value).buildPartial();
4303  } else {
4304  constraint_ = value;
4305  }
4306  onChanged();
4307  } else {
4308  if (constraintCase_ == 9) {
4309  intMaxBuilder_.mergeFrom(value);
4310  }
4311  intMaxBuilder_.setMessage(value);
4312  }
4313  constraintCase_ = 9;
4314  return this;
4315  }
4328  if (intMaxBuilder_ == null) {
4329  if (constraintCase_ == 9) {
4330  constraintCase_ = 0;
4331  constraint_ = null;
4332  onChanged();
4333  }
4334  } else {
4335  if (constraintCase_ == 9) {
4336  constraintCase_ = 0;
4337  constraint_ = null;
4338  }
4339  intMaxBuilder_.clear();
4340  }
4341  return this;
4342  }
4355  return getIntMaxFieldBuilder().getBuilder();
4356  }
4368  @java.lang.Override
4370  if ((constraintCase_ == 9) && (intMaxBuilder_ != null)) {
4371  return intMaxBuilder_.getMessageOrBuilder();
4372  } else {
4373  if (constraintCase_ == 9) {
4374  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
4375  }
4377  }
4378  }
4390  private com.google.protobuf.SingleFieldBuilderV3<
4392  getIntMaxFieldBuilder() {
4393  if (intMaxBuilder_ == null) {
4394  if (!(constraintCase_ == 9)) {
4396  }
4397  intMaxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4399  (com.google.ortools.sat.IntegerArgumentProto) constraint_,
4400  getParentForChildren(),
4401  isClean());
4402  constraint_ = null;
4403  }
4404  constraintCase_ = 9;
4405  onChanged();;
4406  return intMaxBuilder_;
4407  }
4408 
4409  private com.google.protobuf.SingleFieldBuilderV3<
4415  @java.lang.Override
4416  public boolean hasLinMax() {
4417  return constraintCase_ == 27;
4418  }
4423  @java.lang.Override
4425  if (linMaxBuilder_ == null) {
4426  if (constraintCase_ == 27) {
4427  return (com.google.ortools.sat.LinearArgumentProto) constraint_;
4428  }
4430  } else {
4431  if (constraintCase_ == 27) {
4432  return linMaxBuilder_.getMessage();
4433  }
4435  }
4436  }
4441  if (linMaxBuilder_ == null) {
4442  if (value == null) {
4443  throw new NullPointerException();
4444  }
4445  constraint_ = value;
4446  onChanged();
4447  } else {
4448  linMaxBuilder_.setMessage(value);
4449  }
4450  constraintCase_ = 27;
4451  return this;
4452  }
4457  com.google.ortools.sat.LinearArgumentProto.Builder builderForValue) {
4458  if (linMaxBuilder_ == null) {
4459  constraint_ = builderForValue.build();
4460  onChanged();
4461  } else {
4462  linMaxBuilder_.setMessage(builderForValue.build());
4463  }
4464  constraintCase_ = 27;
4465  return this;
4466  }
4471  if (linMaxBuilder_ == null) {
4472  if (constraintCase_ == 27 &&
4475  .mergeFrom(value).buildPartial();
4476  } else {
4477  constraint_ = value;
4478  }
4479  onChanged();
4480  } else {
4481  if (constraintCase_ == 27) {
4482  linMaxBuilder_.mergeFrom(value);
4483  }
4484  linMaxBuilder_.setMessage(value);
4485  }
4486  constraintCase_ = 27;
4487  return this;
4488  }
4493  if (linMaxBuilder_ == null) {
4494  if (constraintCase_ == 27) {
4495  constraintCase_ = 0;
4496  constraint_ = null;
4497  onChanged();
4498  }
4499  } else {
4500  if (constraintCase_ == 27) {
4501  constraintCase_ = 0;
4502  constraint_ = null;
4503  }
4504  linMaxBuilder_.clear();
4505  }
4506  return this;
4507  }
4512  return getLinMaxFieldBuilder().getBuilder();
4513  }
4517  @java.lang.Override
4519  if ((constraintCase_ == 27) && (linMaxBuilder_ != null)) {
4520  return linMaxBuilder_.getMessageOrBuilder();
4521  } else {
4522  if (constraintCase_ == 27) {
4523  return (com.google.ortools.sat.LinearArgumentProto) constraint_;
4524  }
4526  }
4527  }
4531  private com.google.protobuf.SingleFieldBuilderV3<
4533  getLinMaxFieldBuilder() {
4534  if (linMaxBuilder_ == null) {
4535  if (!(constraintCase_ == 27)) {
4537  }
4538  linMaxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4540  (com.google.ortools.sat.LinearArgumentProto) constraint_,
4541  getParentForChildren(),
4542  isClean());
4543  constraint_ = null;
4544  }
4545  constraintCase_ = 27;
4546  onChanged();;
4547  return linMaxBuilder_;
4548  }
4549 
4550  private com.google.protobuf.SingleFieldBuilderV3<
4564  @java.lang.Override
4565  public boolean hasIntMin() {
4566  return constraintCase_ == 10;
4567  }
4580  @java.lang.Override
4582  if (intMinBuilder_ == null) {
4583  if (constraintCase_ == 10) {
4584  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
4585  }
4587  } else {
4588  if (constraintCase_ == 10) {
4589  return intMinBuilder_.getMessage();
4590  }
4592  }
4593  }
4606  if (intMinBuilder_ == null) {
4607  if (value == null) {
4608  throw new NullPointerException();
4609  }
4610  constraint_ = value;
4611  onChanged();
4612  } else {
4613  intMinBuilder_.setMessage(value);
4614  }
4615  constraintCase_ = 10;
4616  return this;
4617  }
4630  com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue) {
4631  if (intMinBuilder_ == null) {
4632  constraint_ = builderForValue.build();
4633  onChanged();
4634  } else {
4635  intMinBuilder_.setMessage(builderForValue.build());
4636  }
4637  constraintCase_ = 10;
4638  return this;
4639  }
4652  if (intMinBuilder_ == null) {
4653  if (constraintCase_ == 10 &&
4656  .mergeFrom(value).buildPartial();
4657  } else {
4658  constraint_ = value;
4659  }
4660  onChanged();
4661  } else {
4662  if (constraintCase_ == 10) {
4663  intMinBuilder_.mergeFrom(value);
4664  }
4665  intMinBuilder_.setMessage(value);
4666  }
4667  constraintCase_ = 10;
4668  return this;
4669  }
4682  if (intMinBuilder_ == null) {
4683  if (constraintCase_ == 10) {
4684  constraintCase_ = 0;
4685  constraint_ = null;
4686  onChanged();
4687  }
4688  } else {
4689  if (constraintCase_ == 10) {
4690  constraintCase_ = 0;
4691  constraint_ = null;
4692  }
4693  intMinBuilder_.clear();
4694  }
4695  return this;
4696  }
4709  return getIntMinFieldBuilder().getBuilder();
4710  }
4722  @java.lang.Override
4724  if ((constraintCase_ == 10) && (intMinBuilder_ != null)) {
4725  return intMinBuilder_.getMessageOrBuilder();
4726  } else {
4727  if (constraintCase_ == 10) {
4728  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
4729  }
4731  }
4732  }
4744  private com.google.protobuf.SingleFieldBuilderV3<
4746  getIntMinFieldBuilder() {
4747  if (intMinBuilder_ == null) {
4748  if (!(constraintCase_ == 10)) {
4750  }
4751  intMinBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4753  (com.google.ortools.sat.IntegerArgumentProto) constraint_,
4754  getParentForChildren(),
4755  isClean());
4756  constraint_ = null;
4757  }
4758  constraintCase_ = 10;
4759  onChanged();;
4760  return intMinBuilder_;
4761  }
4762 
4763  private com.google.protobuf.SingleFieldBuilderV3<
4769  @java.lang.Override
4770  public boolean hasLinMin() {
4771  return constraintCase_ == 28;
4772  }
4777  @java.lang.Override
4779  if (linMinBuilder_ == null) {
4780  if (constraintCase_ == 28) {
4781  return (com.google.ortools.sat.LinearArgumentProto) constraint_;
4782  }
4784  } else {
4785  if (constraintCase_ == 28) {
4786  return linMinBuilder_.getMessage();
4787  }
4789  }
4790  }
4795  if (linMinBuilder_ == null) {
4796  if (value == null) {
4797  throw new NullPointerException();
4798  }
4799  constraint_ = value;
4800  onChanged();
4801  } else {
4802  linMinBuilder_.setMessage(value);
4803  }
4804  constraintCase_ = 28;
4805  return this;
4806  }
4811  com.google.ortools.sat.LinearArgumentProto.Builder builderForValue) {
4812  if (linMinBuilder_ == null) {
4813  constraint_ = builderForValue.build();
4814  onChanged();
4815  } else {
4816  linMinBuilder_.setMessage(builderForValue.build());
4817  }
4818  constraintCase_ = 28;
4819  return this;
4820  }
4825  if (linMinBuilder_ == null) {
4826  if (constraintCase_ == 28 &&
4829  .mergeFrom(value).buildPartial();
4830  } else {
4831  constraint_ = value;
4832  }
4833  onChanged();
4834  } else {
4835  if (constraintCase_ == 28) {
4836  linMinBuilder_.mergeFrom(value);
4837  }
4838  linMinBuilder_.setMessage(value);
4839  }
4840  constraintCase_ = 28;
4841  return this;
4842  }
4847  if (linMinBuilder_ == null) {
4848  if (constraintCase_ == 28) {
4849  constraintCase_ = 0;
4850  constraint_ = null;
4851  onChanged();
4852  }
4853  } else {
4854  if (constraintCase_ == 28) {
4855  constraintCase_ = 0;
4856  constraint_ = null;
4857  }
4858  linMinBuilder_.clear();
4859  }
4860  return this;
4861  }
4866  return getLinMinFieldBuilder().getBuilder();
4867  }
4871  @java.lang.Override
4873  if ((constraintCase_ == 28) && (linMinBuilder_ != null)) {
4874  return linMinBuilder_.getMessageOrBuilder();
4875  } else {
4876  if (constraintCase_ == 28) {
4877  return (com.google.ortools.sat.LinearArgumentProto) constraint_;
4878  }
4880  }
4881  }
4885  private com.google.protobuf.SingleFieldBuilderV3<
4887  getLinMinFieldBuilder() {
4888  if (linMinBuilder_ == null) {
4889  if (!(constraintCase_ == 28)) {
4891  }
4892  linMinBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4894  (com.google.ortools.sat.LinearArgumentProto) constraint_,
4895  getParentForChildren(),
4896  isClean());
4897  constraint_ = null;
4898  }
4899  constraintCase_ = 28;
4900  onChanged();;
4901  return linMinBuilder_;
4902  }
4903 
4904  private com.google.protobuf.SingleFieldBuilderV3<
4916  @java.lang.Override
4917  public boolean hasIntProd() {
4918  return constraintCase_ == 11;
4919  }
4930  @java.lang.Override
4932  if (intProdBuilder_ == null) {
4933  if (constraintCase_ == 11) {
4934  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
4935  }
4937  } else {
4938  if (constraintCase_ == 11) {
4939  return intProdBuilder_.getMessage();
4940  }
4942  }
4943  }
4954  if (intProdBuilder_ == null) {
4955  if (value == null) {
4956  throw new NullPointerException();
4957  }
4958  constraint_ = value;
4959  onChanged();
4960  } else {
4961  intProdBuilder_.setMessage(value);
4962  }
4963  constraintCase_ = 11;
4964  return this;
4965  }
4976  com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue) {
4977  if (intProdBuilder_ == null) {
4978  constraint_ = builderForValue.build();
4979  onChanged();
4980  } else {
4981  intProdBuilder_.setMessage(builderForValue.build());
4982  }
4983  constraintCase_ = 11;
4984  return this;
4985  }
4996  if (intProdBuilder_ == null) {
4997  if (constraintCase_ == 11 &&
5000  .mergeFrom(value).buildPartial();
5001  } else {
5002  constraint_ = value;
5003  }
5004  onChanged();
5005  } else {
5006  if (constraintCase_ == 11) {
5007  intProdBuilder_.mergeFrom(value);
5008  }
5009  intProdBuilder_.setMessage(value);
5010  }
5011  constraintCase_ = 11;
5012  return this;
5013  }
5024  if (intProdBuilder_ == null) {
5025  if (constraintCase_ == 11) {
5026  constraintCase_ = 0;
5027  constraint_ = null;
5028  onChanged();
5029  }
5030  } else {
5031  if (constraintCase_ == 11) {
5032  constraintCase_ = 0;
5033  constraint_ = null;
5034  }
5035  intProdBuilder_.clear();
5036  }
5037  return this;
5038  }
5049  return getIntProdFieldBuilder().getBuilder();
5050  }
5060  @java.lang.Override
5062  if ((constraintCase_ == 11) && (intProdBuilder_ != null)) {
5063  return intProdBuilder_.getMessageOrBuilder();
5064  } else {
5065  if (constraintCase_ == 11) {
5066  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
5067  }
5069  }
5070  }
5080  private com.google.protobuf.SingleFieldBuilderV3<
5082  getIntProdFieldBuilder() {
5083  if (intProdBuilder_ == null) {
5084  if (!(constraintCase_ == 11)) {
5086  }
5087  intProdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5089  (com.google.ortools.sat.IntegerArgumentProto) constraint_,
5090  getParentForChildren(),
5091  isClean());
5092  constraint_ = null;
5093  }
5094  constraintCase_ = 11;
5095  onChanged();;
5096  return intProdBuilder_;
5097  }
5098 
5099  private com.google.protobuf.SingleFieldBuilderV3<
5110  @java.lang.Override
5111  public boolean hasLinear() {
5112  return constraintCase_ == 12;
5113  }
5123  @java.lang.Override
5125  if (linearBuilder_ == null) {
5126  if (constraintCase_ == 12) {
5127  return (com.google.ortools.sat.LinearConstraintProto) constraint_;
5128  }
5130  } else {
5131  if (constraintCase_ == 12) {
5132  return linearBuilder_.getMessage();
5133  }
5135  }
5136  }
5146  if (linearBuilder_ == null) {
5147  if (value == null) {
5148  throw new NullPointerException();
5149  }
5150  constraint_ = value;
5151  onChanged();
5152  } else {
5153  linearBuilder_.setMessage(value);
5154  }
5155  constraintCase_ = 12;
5156  return this;
5157  }
5167  com.google.ortools.sat.LinearConstraintProto.Builder builderForValue) {
5168  if (linearBuilder_ == null) {
5169  constraint_ = builderForValue.build();
5170  onChanged();
5171  } else {
5172  linearBuilder_.setMessage(builderForValue.build());
5173  }
5174  constraintCase_ = 12;
5175  return this;
5176  }
5186  if (linearBuilder_ == null) {
5187  if (constraintCase_ == 12 &&
5190  .mergeFrom(value).buildPartial();
5191  } else {
5192  constraint_ = value;
5193  }
5194  onChanged();
5195  } else {
5196  if (constraintCase_ == 12) {
5197  linearBuilder_.mergeFrom(value);
5198  }
5199  linearBuilder_.setMessage(value);
5200  }
5201  constraintCase_ = 12;
5202  return this;
5203  }
5213  if (linearBuilder_ == null) {
5214  if (constraintCase_ == 12) {
5215  constraintCase_ = 0;
5216  constraint_ = null;
5217  onChanged();
5218  }
5219  } else {
5220  if (constraintCase_ == 12) {
5221  constraintCase_ = 0;
5222  constraint_ = null;
5223  }
5224  linearBuilder_.clear();
5225  }
5226  return this;
5227  }
5237  return getLinearFieldBuilder().getBuilder();
5238  }
5247  @java.lang.Override
5249  if ((constraintCase_ == 12) && (linearBuilder_ != null)) {
5250  return linearBuilder_.getMessageOrBuilder();
5251  } else {
5252  if (constraintCase_ == 12) {
5253  return (com.google.ortools.sat.LinearConstraintProto) constraint_;
5254  }
5256  }
5257  }
5266  private com.google.protobuf.SingleFieldBuilderV3<
5268  getLinearFieldBuilder() {
5269  if (linearBuilder_ == null) {
5270  if (!(constraintCase_ == 12)) {
5272  }
5273  linearBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5275  (com.google.ortools.sat.LinearConstraintProto) constraint_,
5276  getParentForChildren(),
5277  isClean());
5278  constraint_ = null;
5279  }
5280  constraintCase_ = 12;
5281  onChanged();;
5282  return linearBuilder_;
5283  }
5284 
5285  private com.google.protobuf.SingleFieldBuilderV3<
5295  @java.lang.Override
5296  public boolean hasAllDiff() {
5297  return constraintCase_ == 13;
5298  }
5307  @java.lang.Override
5309  if (allDiffBuilder_ == null) {
5310  if (constraintCase_ == 13) {
5311  return (com.google.ortools.sat.AllDifferentConstraintProto) constraint_;
5312  }
5314  } else {
5315  if (constraintCase_ == 13) {
5316  return allDiffBuilder_.getMessage();
5317  }
5319  }
5320  }
5329  if (allDiffBuilder_ == null) {
5330  if (value == null) {
5331  throw new NullPointerException();
5332  }
5333  constraint_ = value;
5334  onChanged();
5335  } else {
5336  allDiffBuilder_.setMessage(value);
5337  }
5338  constraintCase_ = 13;
5339  return this;
5340  }
5350  if (allDiffBuilder_ == null) {
5351  constraint_ = builderForValue.build();
5352  onChanged();
5353  } else {
5354  allDiffBuilder_.setMessage(builderForValue.build());
5355  }
5356  constraintCase_ = 13;
5357  return this;
5358  }
5367  if (allDiffBuilder_ == null) {
5368  if (constraintCase_ == 13 &&
5371  .mergeFrom(value).buildPartial();
5372  } else {
5373  constraint_ = value;
5374  }
5375  onChanged();
5376  } else {
5377  if (constraintCase_ == 13) {
5378  allDiffBuilder_.mergeFrom(value);
5379  }
5380  allDiffBuilder_.setMessage(value);
5381  }
5382  constraintCase_ = 13;
5383  return this;
5384  }
5393  if (allDiffBuilder_ == null) {
5394  if (constraintCase_ == 13) {
5395  constraintCase_ = 0;
5396  constraint_ = null;
5397  onChanged();
5398  }
5399  } else {
5400  if (constraintCase_ == 13) {
5401  constraintCase_ = 0;
5402  constraint_ = null;
5403  }
5404  allDiffBuilder_.clear();
5405  }
5406  return this;
5407  }
5416  return getAllDiffFieldBuilder().getBuilder();
5417  }
5425  @java.lang.Override
5427  if ((constraintCase_ == 13) && (allDiffBuilder_ != null)) {
5428  return allDiffBuilder_.getMessageOrBuilder();
5429  } else {
5430  if (constraintCase_ == 13) {
5431  return (com.google.ortools.sat.AllDifferentConstraintProto) constraint_;
5432  }
5434  }
5435  }
5443  private com.google.protobuf.SingleFieldBuilderV3<
5445  getAllDiffFieldBuilder() {
5446  if (allDiffBuilder_ == null) {
5447  if (!(constraintCase_ == 13)) {
5449  }
5450  allDiffBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5453  getParentForChildren(),
5454  isClean());
5455  constraint_ = null;
5456  }
5457  constraintCase_ = 13;
5458  onChanged();;
5459  return allDiffBuilder_;
5460  }
5461 
5462  private com.google.protobuf.SingleFieldBuilderV3<
5473  @java.lang.Override
5474  public boolean hasElement() {
5475  return constraintCase_ == 14;
5476  }
5486  @java.lang.Override
5488  if (elementBuilder_ == null) {
5489  if (constraintCase_ == 14) {
5490  return (com.google.ortools.sat.ElementConstraintProto) constraint_;
5491  }
5493  } else {
5494  if (constraintCase_ == 14) {
5495  return elementBuilder_.getMessage();
5496  }
5498  }
5499  }
5509  if (elementBuilder_ == null) {
5510  if (value == null) {
5511  throw new NullPointerException();
5512  }
5513  constraint_ = value;
5514  onChanged();
5515  } else {
5516  elementBuilder_.setMessage(value);
5517  }
5518  constraintCase_ = 14;
5519  return this;
5520  }
5530  com.google.ortools.sat.ElementConstraintProto.Builder builderForValue) {
5531  if (elementBuilder_ == null) {
5532  constraint_ = builderForValue.build();
5533  onChanged();
5534  } else {
5535  elementBuilder_.setMessage(builderForValue.build());
5536  }
5537  constraintCase_ = 14;
5538  return this;
5539  }
5549  if (elementBuilder_ == null) {
5550  if (constraintCase_ == 14 &&
5553  .mergeFrom(value).buildPartial();
5554  } else {
5555  constraint_ = value;
5556  }
5557  onChanged();
5558  } else {
5559  if (constraintCase_ == 14) {
5560  elementBuilder_.mergeFrom(value);
5561  }
5562  elementBuilder_.setMessage(value);
5563  }
5564  constraintCase_ = 14;
5565  return this;
5566  }
5576  if (elementBuilder_ == null) {
5577  if (constraintCase_ == 14) {
5578  constraintCase_ = 0;
5579  constraint_ = null;
5580  onChanged();
5581  }
5582  } else {
5583  if (constraintCase_ == 14) {
5584  constraintCase_ = 0;
5585  constraint_ = null;
5586  }
5587  elementBuilder_.clear();
5588  }
5589  return this;
5590  }
5600  return getElementFieldBuilder().getBuilder();
5601  }
5610  @java.lang.Override
5612  if ((constraintCase_ == 14) && (elementBuilder_ != null)) {
5613  return elementBuilder_.getMessageOrBuilder();
5614  } else {
5615  if (constraintCase_ == 14) {
5616  return (com.google.ortools.sat.ElementConstraintProto) constraint_;
5617  }
5619  }
5620  }
5629  private com.google.protobuf.SingleFieldBuilderV3<
5631  getElementFieldBuilder() {
5632  if (elementBuilder_ == null) {
5633  if (!(constraintCase_ == 14)) {
5635  }
5636  elementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5639  getParentForChildren(),
5640  isClean());
5641  constraint_ = null;
5642  }
5643  constraintCase_ = 14;
5644  onChanged();;
5645  return elementBuilder_;
5646  }
5647 
5648  private com.google.protobuf.SingleFieldBuilderV3<
5659  @java.lang.Override
5660  public boolean hasCircuit() {
5661  return constraintCase_ == 15;
5662  }
5672  @java.lang.Override
5674  if (circuitBuilder_ == null) {
5675  if (constraintCase_ == 15) {
5676  return (com.google.ortools.sat.CircuitConstraintProto) constraint_;
5677  }
5679  } else {
5680  if (constraintCase_ == 15) {
5681  return circuitBuilder_.getMessage();
5682  }
5684  }
5685  }
5695  if (circuitBuilder_ == null) {
5696  if (value == null) {
5697  throw new NullPointerException();
5698  }
5699  constraint_ = value;
5700  onChanged();
5701  } else {
5702  circuitBuilder_.setMessage(value);
5703  }
5704  constraintCase_ = 15;
5705  return this;
5706  }
5716  com.google.ortools.sat.CircuitConstraintProto.Builder builderForValue) {
5717  if (circuitBuilder_ == null) {
5718  constraint_ = builderForValue.build();
5719  onChanged();
5720  } else {
5721  circuitBuilder_.setMessage(builderForValue.build());
5722  }
5723  constraintCase_ = 15;
5724  return this;
5725  }
5735  if (circuitBuilder_ == null) {
5736  if (constraintCase_ == 15 &&
5739  .mergeFrom(value).buildPartial();
5740  } else {
5741  constraint_ = value;
5742  }
5743  onChanged();
5744  } else {
5745  if (constraintCase_ == 15) {
5746  circuitBuilder_.mergeFrom(value);
5747  }
5748  circuitBuilder_.setMessage(value);
5749  }
5750  constraintCase_ = 15;
5751  return this;
5752  }
5762  if (circuitBuilder_ == null) {
5763  if (constraintCase_ == 15) {
5764  constraintCase_ = 0;
5765  constraint_ = null;
5766  onChanged();
5767  }
5768  } else {
5769  if (constraintCase_ == 15) {
5770  constraintCase_ = 0;
5771  constraint_ = null;
5772  }
5773  circuitBuilder_.clear();
5774  }
5775  return this;
5776  }
5786  return getCircuitFieldBuilder().getBuilder();
5787  }
5796  @java.lang.Override
5798  if ((constraintCase_ == 15) && (circuitBuilder_ != null)) {
5799  return circuitBuilder_.getMessageOrBuilder();
5800  } else {
5801  if (constraintCase_ == 15) {
5802  return (com.google.ortools.sat.CircuitConstraintProto) constraint_;
5803  }
5805  }
5806  }
5815  private com.google.protobuf.SingleFieldBuilderV3<
5817  getCircuitFieldBuilder() {
5818  if (circuitBuilder_ == null) {
5819  if (!(constraintCase_ == 15)) {
5821  }
5822  circuitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5825  getParentForChildren(),
5826  isClean());
5827  constraint_ = null;
5828  }
5829  constraintCase_ = 15;
5830  onChanged();;
5831  return circuitBuilder_;
5832  }
5833 
5834  private com.google.protobuf.SingleFieldBuilderV3<
5844  @java.lang.Override
5845  public boolean hasRoutes() {
5846  return constraintCase_ == 23;
5847  }
5856  @java.lang.Override
5858  if (routesBuilder_ == null) {
5859  if (constraintCase_ == 23) {
5860  return (com.google.ortools.sat.RoutesConstraintProto) constraint_;
5861  }
5863  } else {
5864  if (constraintCase_ == 23) {
5865  return routesBuilder_.getMessage();
5866  }
5868  }
5869  }
5878  if (routesBuilder_ == null) {
5879  if (value == null) {
5880  throw new NullPointerException();
5881  }
5882  constraint_ = value;
5883  onChanged();
5884  } else {
5885  routesBuilder_.setMessage(value);
5886  }
5887  constraintCase_ = 23;
5888  return this;
5889  }
5898  com.google.ortools.sat.RoutesConstraintProto.Builder builderForValue) {
5899  if (routesBuilder_ == null) {
5900  constraint_ = builderForValue.build();
5901  onChanged();
5902  } else {
5903  routesBuilder_.setMessage(builderForValue.build());
5904  }
5905  constraintCase_ = 23;
5906  return this;
5907  }
5916  if (routesBuilder_ == null) {
5917  if (constraintCase_ == 23 &&
5920  .mergeFrom(value).buildPartial();
5921  } else {
5922  constraint_ = value;
5923  }
5924  onChanged();
5925  } else {
5926  if (constraintCase_ == 23) {
5927  routesBuilder_.mergeFrom(value);
5928  }
5929  routesBuilder_.setMessage(value);
5930  }
5931  constraintCase_ = 23;
5932  return this;
5933  }
5942  if (routesBuilder_ == null) {
5943  if (constraintCase_ == 23) {
5944  constraintCase_ = 0;
5945  constraint_ = null;
5946  onChanged();
5947  }
5948  } else {
5949  if (constraintCase_ == 23) {
5950  constraintCase_ = 0;
5951  constraint_ = null;
5952  }
5953  routesBuilder_.clear();
5954  }
5955  return this;
5956  }
5965  return getRoutesFieldBuilder().getBuilder();
5966  }
5974  @java.lang.Override
5976  if ((constraintCase_ == 23) && (routesBuilder_ != null)) {
5977  return routesBuilder_.getMessageOrBuilder();
5978  } else {
5979  if (constraintCase_ == 23) {
5980  return (com.google.ortools.sat.RoutesConstraintProto) constraint_;
5981  }
5983  }
5984  }
5992  private com.google.protobuf.SingleFieldBuilderV3<
5994  getRoutesFieldBuilder() {
5995  if (routesBuilder_ == null) {
5996  if (!(constraintCase_ == 23)) {
5998  }
5999  routesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6001  (com.google.ortools.sat.RoutesConstraintProto) constraint_,
6002  getParentForChildren(),
6003  isClean());
6004  constraint_ = null;
6005  }
6006  constraintCase_ = 23;
6007  onChanged();;
6008  return routesBuilder_;
6009  }
6010 
6011  private com.google.protobuf.SingleFieldBuilderV3<
6022  @java.lang.Override
6023  public boolean hasTable() {
6024  return constraintCase_ == 16;
6025  }
6035  @java.lang.Override
6037  if (tableBuilder_ == null) {
6038  if (constraintCase_ == 16) {
6039  return (com.google.ortools.sat.TableConstraintProto) constraint_;
6040  }
6042  } else {
6043  if (constraintCase_ == 16) {
6044  return tableBuilder_.getMessage();
6045  }
6047  }
6048  }
6058  if (tableBuilder_ == null) {
6059  if (value == null) {
6060  throw new NullPointerException();
6061  }
6062  constraint_ = value;
6063  onChanged();
6064  } else {
6065  tableBuilder_.setMessage(value);
6066  }
6067  constraintCase_ = 16;
6068  return this;
6069  }
6079  com.google.ortools.sat.TableConstraintProto.Builder builderForValue) {
6080  if (tableBuilder_ == null) {
6081  constraint_ = builderForValue.build();
6082  onChanged();
6083  } else {
6084  tableBuilder_.setMessage(builderForValue.build());
6085  }
6086  constraintCase_ = 16;
6087  return this;
6088  }
6098  if (tableBuilder_ == null) {
6099  if (constraintCase_ == 16 &&
6102  .mergeFrom(value).buildPartial();
6103  } else {
6104  constraint_ = value;
6105  }
6106  onChanged();
6107  } else {
6108  if (constraintCase_ == 16) {
6109  tableBuilder_.mergeFrom(value);
6110  }
6111  tableBuilder_.setMessage(value);
6112  }
6113  constraintCase_ = 16;
6114  return this;
6115  }
6124  public Builder clearTable() {
6125  if (tableBuilder_ == null) {
6126  if (constraintCase_ == 16) {
6127  constraintCase_ = 0;
6128  constraint_ = null;
6129  onChanged();
6130  }
6131  } else {
6132  if (constraintCase_ == 16) {
6133  constraintCase_ = 0;
6134  constraint_ = null;
6135  }
6136  tableBuilder_.clear();
6137  }
6138  return this;
6139  }
6149  return getTableFieldBuilder().getBuilder();
6150  }
6159  @java.lang.Override
6161  if ((constraintCase_ == 16) && (tableBuilder_ != null)) {
6162  return tableBuilder_.getMessageOrBuilder();
6163  } else {
6164  if (constraintCase_ == 16) {
6165  return (com.google.ortools.sat.TableConstraintProto) constraint_;
6166  }
6168  }
6169  }
6178  private com.google.protobuf.SingleFieldBuilderV3<
6180  getTableFieldBuilder() {
6181  if (tableBuilder_ == null) {
6182  if (!(constraintCase_ == 16)) {
6184  }
6185  tableBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6187  (com.google.ortools.sat.TableConstraintProto) constraint_,
6188  getParentForChildren(),
6189  isClean());
6190  constraint_ = null;
6191  }
6192  constraintCase_ = 16;
6193  onChanged();;
6194  return tableBuilder_;
6195  }
6196 
6197  private com.google.protobuf.SingleFieldBuilderV3<
6208  @java.lang.Override
6209  public boolean hasAutomaton() {
6210  return constraintCase_ == 17;
6211  }
6221  @java.lang.Override
6223  if (automatonBuilder_ == null) {
6224  if (constraintCase_ == 17) {
6225  return (com.google.ortools.sat.AutomatonConstraintProto) constraint_;
6226  }
6228  } else {
6229  if (constraintCase_ == 17) {
6230  return automatonBuilder_.getMessage();
6231  }
6233  }
6234  }
6244  if (automatonBuilder_ == null) {
6245  if (value == null) {
6246  throw new NullPointerException();
6247  }
6248  constraint_ = value;
6249  onChanged();
6250  } else {
6251  automatonBuilder_.setMessage(value);
6252  }
6253  constraintCase_ = 17;
6254  return this;
6255  }
6266  if (automatonBuilder_ == null) {
6267  constraint_ = builderForValue.build();
6268  onChanged();
6269  } else {
6270  automatonBuilder_.setMessage(builderForValue.build());
6271  }
6272  constraintCase_ = 17;
6273  return this;
6274  }
6284  if (automatonBuilder_ == null) {
6285  if (constraintCase_ == 17 &&
6288  .mergeFrom(value).buildPartial();
6289  } else {
6290  constraint_ = value;
6291  }
6292  onChanged();
6293  } else {
6294  if (constraintCase_ == 17) {
6295  automatonBuilder_.mergeFrom(value);
6296  }
6297  automatonBuilder_.setMessage(value);
6298  }
6299  constraintCase_ = 17;
6300  return this;
6301  }
6311  if (automatonBuilder_ == null) {
6312  if (constraintCase_ == 17) {
6313  constraintCase_ = 0;
6314  constraint_ = null;
6315  onChanged();
6316  }
6317  } else {
6318  if (constraintCase_ == 17) {
6319  constraintCase_ = 0;
6320  constraint_ = null;
6321  }
6322  automatonBuilder_.clear();
6323  }
6324  return this;
6325  }
6335  return getAutomatonFieldBuilder().getBuilder();
6336  }
6345  @java.lang.Override
6347  if ((constraintCase_ == 17) && (automatonBuilder_ != null)) {
6348  return automatonBuilder_.getMessageOrBuilder();
6349  } else {
6350  if (constraintCase_ == 17) {
6351  return (com.google.ortools.sat.AutomatonConstraintProto) constraint_;
6352  }
6354  }
6355  }
6364  private com.google.protobuf.SingleFieldBuilderV3<
6366  getAutomatonFieldBuilder() {
6367  if (automatonBuilder_ == null) {
6368  if (!(constraintCase_ == 17)) {
6370  }
6371  automatonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6374  getParentForChildren(),
6375  isClean());
6376  constraint_ = null;
6377  }
6378  constraintCase_ = 17;
6379  onChanged();;
6380  return automatonBuilder_;
6381  }
6382 
6383  private com.google.protobuf.SingleFieldBuilderV3<
6394  @java.lang.Override
6395  public boolean hasInverse() {
6396  return constraintCase_ == 18;
6397  }
6407  @java.lang.Override
6409  if (inverseBuilder_ == null) {
6410  if (constraintCase_ == 18) {
6411  return (com.google.ortools.sat.InverseConstraintProto) constraint_;
6412  }
6414  } else {
6415  if (constraintCase_ == 18) {
6416  return inverseBuilder_.getMessage();
6417  }
6419  }
6420  }
6430  if (inverseBuilder_ == null) {
6431  if (value == null) {
6432  throw new NullPointerException();
6433  }
6434  constraint_ = value;
6435  onChanged();
6436  } else {
6437  inverseBuilder_.setMessage(value);
6438  }
6439  constraintCase_ = 18;
6440  return this;
6441  }
6451  com.google.ortools.sat.InverseConstraintProto.Builder builderForValue) {
6452  if (inverseBuilder_ == null) {
6453  constraint_ = builderForValue.build();
6454  onChanged();
6455  } else {
6456  inverseBuilder_.setMessage(builderForValue.build());
6457  }
6458  constraintCase_ = 18;
6459  return this;
6460  }
6470  if (inverseBuilder_ == null) {
6471  if (constraintCase_ == 18 &&
6474  .mergeFrom(value).buildPartial();
6475  } else {
6476  constraint_ = value;
6477  }
6478  onChanged();
6479  } else {
6480  if (constraintCase_ == 18) {
6481  inverseBuilder_.mergeFrom(value);
6482  }
6483  inverseBuilder_.setMessage(value);
6484  }
6485  constraintCase_ = 18;
6486  return this;
6487  }
6497  if (inverseBuilder_ == null) {
6498  if (constraintCase_ == 18) {
6499  constraintCase_ = 0;
6500  constraint_ = null;
6501  onChanged();
6502  }
6503  } else {
6504  if (constraintCase_ == 18) {
6505  constraintCase_ = 0;
6506  constraint_ = null;
6507  }
6508  inverseBuilder_.clear();
6509  }
6510  return this;
6511  }
6521  return getInverseFieldBuilder().getBuilder();
6522  }
6531  @java.lang.Override
6533  if ((constraintCase_ == 18) && (inverseBuilder_ != null)) {
6534  return inverseBuilder_.getMessageOrBuilder();
6535  } else {
6536  if (constraintCase_ == 18) {
6537  return (com.google.ortools.sat.InverseConstraintProto) constraint_;
6538  }
6540  }
6541  }
6550  private com.google.protobuf.SingleFieldBuilderV3<
6552  getInverseFieldBuilder() {
6553  if (inverseBuilder_ == null) {
6554  if (!(constraintCase_ == 18)) {
6556  }
6557  inverseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6560  getParentForChildren(),
6561  isClean());
6562  constraint_ = null;
6563  }
6564  constraintCase_ = 18;
6565  onChanged();;
6566  return inverseBuilder_;
6567  }
6568 
6569  private com.google.protobuf.SingleFieldBuilderV3<
6581  @java.lang.Override
6582  public boolean hasReservoir() {
6583  return constraintCase_ == 24;
6584  }
6595  @java.lang.Override
6597  if (reservoirBuilder_ == null) {
6598  if (constraintCase_ == 24) {
6599  return (com.google.ortools.sat.ReservoirConstraintProto) constraint_;
6600  }
6602  } else {
6603  if (constraintCase_ == 24) {
6604  return reservoirBuilder_.getMessage();
6605  }
6607  }
6608  }
6619  if (reservoirBuilder_ == null) {
6620  if (value == null) {
6621  throw new NullPointerException();
6622  }
6623  constraint_ = value;
6624  onChanged();
6625  } else {
6626  reservoirBuilder_.setMessage(value);
6627  }
6628  constraintCase_ = 24;
6629  return this;
6630  }
6642  if (reservoirBuilder_ == null) {
6643  constraint_ = builderForValue.build();
6644  onChanged();
6645  } else {
6646  reservoirBuilder_.setMessage(builderForValue.build());
6647  }
6648  constraintCase_ = 24;
6649  return this;
6650  }
6661  if (reservoirBuilder_ == null) {
6662  if (constraintCase_ == 24 &&
6665  .mergeFrom(value).buildPartial();
6666  } else {
6667  constraint_ = value;
6668  }
6669  onChanged();
6670  } else {
6671  if (constraintCase_ == 24) {
6672  reservoirBuilder_.mergeFrom(value);
6673  }
6674  reservoirBuilder_.setMessage(value);
6675  }
6676  constraintCase_ = 24;
6677  return this;
6678  }
6689  if (reservoirBuilder_ == null) {
6690  if (constraintCase_ == 24) {
6691  constraintCase_ = 0;
6692  constraint_ = null;
6693  onChanged();
6694  }
6695  } else {
6696  if (constraintCase_ == 24) {
6697  constraintCase_ = 0;
6698  constraint_ = null;
6699  }
6700  reservoirBuilder_.clear();
6701  }
6702  return this;
6703  }
6714  return getReservoirFieldBuilder().getBuilder();
6715  }
6725  @java.lang.Override
6727  if ((constraintCase_ == 24) && (reservoirBuilder_ != null)) {
6728  return reservoirBuilder_.getMessageOrBuilder();
6729  } else {
6730  if (constraintCase_ == 24) {
6731  return (com.google.ortools.sat.ReservoirConstraintProto) constraint_;
6732  }
6734  }
6735  }
6745  private com.google.protobuf.SingleFieldBuilderV3<
6747  getReservoirFieldBuilder() {
6748  if (reservoirBuilder_ == null) {
6749  if (!(constraintCase_ == 24)) {
6751  }
6752  reservoirBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6755  getParentForChildren(),
6756  isClean());
6757  constraint_ = null;
6758  }
6759  constraintCase_ = 24;
6760  onChanged();;
6761  return reservoirBuilder_;
6762  }
6763 
6764  private com.google.protobuf.SingleFieldBuilderV3<
6775  @java.lang.Override
6776  public boolean hasInterval() {
6777  return constraintCase_ == 19;
6778  }
6788  @java.lang.Override
6790  if (intervalBuilder_ == null) {
6791  if (constraintCase_ == 19) {
6792  return (com.google.ortools.sat.IntervalConstraintProto) constraint_;
6793  }
6795  } else {
6796  if (constraintCase_ == 19) {
6797  return intervalBuilder_.getMessage();
6798  }
6800  }
6801  }
6811  if (intervalBuilder_ == null) {
6812  if (value == null) {
6813  throw new NullPointerException();
6814  }
6815  constraint_ = value;
6816  onChanged();
6817  } else {
6818  intervalBuilder_.setMessage(value);
6819  }
6820  constraintCase_ = 19;
6821  return this;
6822  }
6833  if (intervalBuilder_ == null) {
6834  constraint_ = builderForValue.build();
6835  onChanged();
6836  } else {
6837  intervalBuilder_.setMessage(builderForValue.build());
6838  }
6839  constraintCase_ = 19;
6840  return this;
6841  }
6851  if (intervalBuilder_ == null) {
6852  if (constraintCase_ == 19 &&
6855  .mergeFrom(value).buildPartial();
6856  } else {
6857  constraint_ = value;
6858  }
6859  onChanged();
6860  } else {
6861  if (constraintCase_ == 19) {
6862  intervalBuilder_.mergeFrom(value);
6863  }
6864  intervalBuilder_.setMessage(value);
6865  }
6866  constraintCase_ = 19;
6867  return this;
6868  }
6878  if (intervalBuilder_ == null) {
6879  if (constraintCase_ == 19) {
6880  constraintCase_ = 0;
6881  constraint_ = null;
6882  onChanged();
6883  }
6884  } else {
6885  if (constraintCase_ == 19) {
6886  constraintCase_ = 0;
6887  constraint_ = null;
6888  }
6889  intervalBuilder_.clear();
6890  }
6891  return this;
6892  }
6902  return getIntervalFieldBuilder().getBuilder();
6903  }
6912  @java.lang.Override
6914  if ((constraintCase_ == 19) && (intervalBuilder_ != null)) {
6915  return intervalBuilder_.getMessageOrBuilder();
6916  } else {
6917  if (constraintCase_ == 19) {
6918  return (com.google.ortools.sat.IntervalConstraintProto) constraint_;
6919  }
6921  }
6922  }
6931  private com.google.protobuf.SingleFieldBuilderV3<
6933  getIntervalFieldBuilder() {
6934  if (intervalBuilder_ == null) {
6935  if (!(constraintCase_ == 19)) {
6937  }
6938  intervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6941  getParentForChildren(),
6942  isClean());
6943  constraint_ = null;
6944  }
6945  constraintCase_ = 19;
6946  onChanged();;
6947  return intervalBuilder_;
6948  }
6949 
6950  private com.google.protobuf.SingleFieldBuilderV3<
6962  @java.lang.Override
6963  public boolean hasNoOverlap() {
6964  return constraintCase_ == 20;
6965  }
6976  @java.lang.Override
6978  if (noOverlapBuilder_ == null) {
6979  if (constraintCase_ == 20) {
6980  return (com.google.ortools.sat.NoOverlapConstraintProto) constraint_;
6981  }
6983  } else {
6984  if (constraintCase_ == 20) {
6985  return noOverlapBuilder_.getMessage();
6986  }
6988  }
6989  }
7000  if (noOverlapBuilder_ == null) {
7001  if (value == null) {
7002  throw new NullPointerException();
7003  }
7004  constraint_ = value;
7005  onChanged();
7006  } else {
7007  noOverlapBuilder_.setMessage(value);
7008  }
7009  constraintCase_ = 20;
7010  return this;
7011  }
7023  if (noOverlapBuilder_ == null) {
7024  constraint_ = builderForValue.build();
7025  onChanged();
7026  } else {
7027  noOverlapBuilder_.setMessage(builderForValue.build());
7028  }
7029  constraintCase_ = 20;
7030  return this;
7031  }
7042  if (noOverlapBuilder_ == null) {
7043  if (constraintCase_ == 20 &&
7046  .mergeFrom(value).buildPartial();
7047  } else {
7048  constraint_ = value;
7049  }
7050  onChanged();
7051  } else {
7052  if (constraintCase_ == 20) {
7053  noOverlapBuilder_.mergeFrom(value);
7054  }
7055  noOverlapBuilder_.setMessage(value);
7056  }
7057  constraintCase_ = 20;
7058  return this;
7059  }
7070  if (noOverlapBuilder_ == null) {
7071  if (constraintCase_ == 20) {
7072  constraintCase_ = 0;
7073  constraint_ = null;
7074  onChanged();
7075  }
7076  } else {
7077  if (constraintCase_ == 20) {
7078  constraintCase_ = 0;
7079  constraint_ = null;
7080  }
7081  noOverlapBuilder_.clear();
7082  }
7083  return this;
7084  }
7095  return getNoOverlapFieldBuilder().getBuilder();
7096  }
7106  @java.lang.Override
7108  if ((constraintCase_ == 20) && (noOverlapBuilder_ != null)) {
7109  return noOverlapBuilder_.getMessageOrBuilder();
7110  } else {
7111  if (constraintCase_ == 20) {
7112  return (com.google.ortools.sat.NoOverlapConstraintProto) constraint_;
7113  }
7115  }
7116  }
7126  private com.google.protobuf.SingleFieldBuilderV3<
7128  getNoOverlapFieldBuilder() {
7129  if (noOverlapBuilder_ == null) {
7130  if (!(constraintCase_ == 20)) {
7132  }
7133  noOverlapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
7136  getParentForChildren(),
7137  isClean());
7138  constraint_ = null;
7139  }
7140  constraintCase_ = 20;
7141  onChanged();;
7142  return noOverlapBuilder_;
7143  }
7144 
7145  private com.google.protobuf.SingleFieldBuilderV3<
7155  @java.lang.Override
7156  public boolean hasNoOverlap2D() {
7157  return constraintCase_ == 21;
7158  }
7167  @java.lang.Override
7169  if (noOverlap2DBuilder_ == null) {
7170  if (constraintCase_ == 21) {
7171  return (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_;
7172  }
7174  } else {
7175  if (constraintCase_ == 21) {
7176  return noOverlap2DBuilder_.getMessage();
7177  }
7179  }
7180  }
7189  if (noOverlap2DBuilder_ == null) {
7190  if (value == null) {
7191  throw new NullPointerException();
7192  }
7193  constraint_ = value;
7194  onChanged();
7195  } else {
7196  noOverlap2DBuilder_.setMessage(value);
7197  }
7198  constraintCase_ = 21;
7199  return this;
7200  }
7210  if (noOverlap2DBuilder_ == null) {
7211  constraint_ = builderForValue.build();
7212  onChanged();
7213  } else {
7214  noOverlap2DBuilder_.setMessage(builderForValue.build());
7215  }
7216  constraintCase_ = 21;
7217  return this;
7218  }
7227  if (noOverlap2DBuilder_ == null) {
7228  if (constraintCase_ == 21 &&
7231  .mergeFrom(value).buildPartial();
7232  } else {
7233  constraint_ = value;
7234  }
7235  onChanged();
7236  } else {
7237  if (constraintCase_ == 21) {
7238  noOverlap2DBuilder_.mergeFrom(value);
7239  }
7240  noOverlap2DBuilder_.setMessage(value);
7241  }
7242  constraintCase_ = 21;
7243  return this;
7244  }
7253  if (noOverlap2DBuilder_ == null) {
7254  if (constraintCase_ == 21) {
7255  constraintCase_ = 0;
7256  constraint_ = null;
7257  onChanged();
7258  }
7259  } else {
7260  if (constraintCase_ == 21) {
7261  constraintCase_ = 0;
7262  constraint_ = null;
7263  }
7264  noOverlap2DBuilder_.clear();
7265  }
7266  return this;
7267  }
7276  return getNoOverlap2DFieldBuilder().getBuilder();
7277  }
7285  @java.lang.Override
7287  if ((constraintCase_ == 21) && (noOverlap2DBuilder_ != null)) {
7288  return noOverlap2DBuilder_.getMessageOrBuilder();
7289  } else {
7290  if (constraintCase_ == 21) {
7291  return (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_;
7292  }
7294  }
7295  }
7303  private com.google.protobuf.SingleFieldBuilderV3<
7305  getNoOverlap2DFieldBuilder() {
7306  if (noOverlap2DBuilder_ == null) {
7307  if (!(constraintCase_ == 21)) {
7309  }
7310  noOverlap2DBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
7313  getParentForChildren(),
7314  isClean());
7315  constraint_ = null;
7316  }
7317  constraintCase_ = 21;
7318  onChanged();;
7319  return noOverlap2DBuilder_;
7320  }
7321 
7322  private com.google.protobuf.SingleFieldBuilderV3<
7334  @java.lang.Override
7335  public boolean hasCumulative() {
7336  return constraintCase_ == 22;
7337  }
7348  @java.lang.Override
7350  if (cumulativeBuilder_ == null) {
7351  if (constraintCase_ == 22) {
7352  return (com.google.ortools.sat.CumulativeConstraintProto) constraint_;
7353  }
7355  } else {
7356  if (constraintCase_ == 22) {
7357  return cumulativeBuilder_.getMessage();
7358  }
7360  }
7361  }
7372  if (cumulativeBuilder_ == null) {
7373  if (value == null) {
7374  throw new NullPointerException();
7375  }
7376  constraint_ = value;
7377  onChanged();
7378  } else {
7379  cumulativeBuilder_.setMessage(value);
7380  }
7381  constraintCase_ = 22;
7382  return this;
7383  }
7395  if (cumulativeBuilder_ == null) {
7396  constraint_ = builderForValue.build();
7397  onChanged();
7398  } else {
7399  cumulativeBuilder_.setMessage(builderForValue.build());
7400  }
7401  constraintCase_ = 22;
7402  return this;
7403  }
7414  if (cumulativeBuilder_ == null) {
7415  if (constraintCase_ == 22 &&
7418  .mergeFrom(value).buildPartial();
7419  } else {
7420  constraint_ = value;
7421  }
7422  onChanged();
7423  } else {
7424  if (constraintCase_ == 22) {
7425  cumulativeBuilder_.mergeFrom(value);
7426  }
7427  cumulativeBuilder_.setMessage(value);
7428  }
7429  constraintCase_ = 22;
7430  return this;
7431  }
7442  if (cumulativeBuilder_ == null) {
7443  if (constraintCase_ == 22) {
7444  constraintCase_ = 0;
7445  constraint_ = null;
7446  onChanged();
7447  }
7448  } else {
7449  if (constraintCase_ == 22) {
7450  constraintCase_ = 0;
7451  constraint_ = null;
7452  }
7453  cumulativeBuilder_.clear();
7454  }
7455  return this;
7456  }
7467  return getCumulativeFieldBuilder().getBuilder();
7468  }
7478  @java.lang.Override
7480  if ((constraintCase_ == 22) && (cumulativeBuilder_ != null)) {
7481  return cumulativeBuilder_.getMessageOrBuilder();
7482  } else {
7483  if (constraintCase_ == 22) {
7484  return (com.google.ortools.sat.CumulativeConstraintProto) constraint_;
7485  }
7487  }
7488  }
7498  private com.google.protobuf.SingleFieldBuilderV3<
7500  getCumulativeFieldBuilder() {
7501  if (cumulativeBuilder_ == null) {
7502  if (!(constraintCase_ == 22)) {
7504  }
7505  cumulativeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
7508  getParentForChildren(),
7509  isClean());
7510  constraint_ = null;
7511  }
7512  constraintCase_ = 22;
7513  onChanged();;
7514  return cumulativeBuilder_;
7515  }
7516  @java.lang.Override
7518  final com.google.protobuf.UnknownFieldSet unknownFields) {
7519  return super.setUnknownFields(unknownFields);
7520  }
7521 
7522  @java.lang.Override
7524  final com.google.protobuf.UnknownFieldSet unknownFields) {
7525  return super.mergeUnknownFields(unknownFields);
7526  }
7527 
7528 
7529  // @@protoc_insertion_point(builder_scope:operations_research.sat.ConstraintProto)
7530  }
7531 
7532  // @@protoc_insertion_point(class_scope:operations_research.sat.ConstraintProto)
7533  private static final com.google.ortools.sat.ConstraintProto DEFAULT_INSTANCE;
7534  static {
7535  DEFAULT_INSTANCE = new com.google.ortools.sat.ConstraintProto();
7536  }
7537 
7539  return DEFAULT_INSTANCE;
7540  }
7541 
7542  private static final com.google.protobuf.Parser<ConstraintProto>
7543  PARSER = new com.google.protobuf.AbstractParser<ConstraintProto>() {
7544  @java.lang.Override
7545  public ConstraintProto parsePartialFrom(
7546  com.google.protobuf.CodedInputStream input,
7547  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7548  throws com.google.protobuf.InvalidProtocolBufferException {
7549  return new ConstraintProto(input, extensionRegistry);
7550  }
7551  };
7552 
7553  public static com.google.protobuf.Parser<ConstraintProto> parser() {
7554  return PARSER;
7555  }
7556 
7557  @java.lang.Override
7558  public com.google.protobuf.Parser<ConstraintProto> getParserForType() {
7559  return PARSER;
7560  }
7561 
7562  @java.lang.Override
7564  return DEFAULT_INSTANCE;
7565  }
7566 
7567 }
7568 
.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()
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()
.operations_research.sat.LinearArgumentProto lin_min = 28;
Builder setInterval(com.google.ortools.sat.IntervalConstraintProto.Builder builderForValue)
.lang.Override boolean hasAtMostOne()
.lang.Override com.google.ortools.sat.AllDifferentConstraintProto getAllDiff()
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)
.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()
.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()
.operations_research.sat.LinearArgumentProto lin_max = 27;
static final int CIRCUIT_FIELD_NUMBER
LIN_MAX
.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()
.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)
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()
.operations_research.sat.LinearArgumentProto lin_min = 28;
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)
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.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
java.util.List< java.lang.Integer > getEnforcementLiteralList()
.lang.Override com.google.ortools.sat.BoolArgumentProto getAtMostOne()
.lang.Override boolean hasLinMax()
.operations_research.sat.LinearArgumentProto lin_max = 27;
.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 setIntMin(com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue)
.lang.Override Builder newBuilderForType()
static Builder newBuilder()
Builder setNameBytes(com.google.protobuf.ByteString value)
.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)
.operations_research.sat.LinearArgumentProto lin_min = 28;
CONSTRAINT_NOT_SET
RESERVOIR
.lang.Override com.google.ortools.sat.LinearArgumentProtoOrBuilder getLinMinOrBuilder()
.operations_research.sat.LinearArgumentProto lin_min = 28;
Builder setTable(com.google.ortools.sat.TableConstraintProto.Builder builderForValue)
static Builder newBuilder()
.lang.Override com.google.ortools.sat.LinearArgumentProtoOrBuilder getLinMaxOrBuilder()
.operations_research.sat.LinearArgumentProto lin_max = 27;
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.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 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()
.operations_research.sat.LinearArgumentProto lin_min = 28;
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
.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()
.operations_research.sat.LinearArgumentProto lin_max = 27;
.lang.Override boolean equals(final java.lang.Object obj)
static com.google.protobuf.Parser< RoutesConstraintProto > parser()
Builder setLinMax(com.google.ortools.sat.LinearArgumentProto value)
.operations_research.sat.LinearArgumentProto lin_max = 27;
.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()
.operations_research.sat.LinearArgumentProto lin_max = 27;
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()
.operations_research.sat.LinearArgumentProto lin_min = 28;
com.google.ortools.sat.LinearArgumentProto.Builder getLinMaxBuilder()
.operations_research.sat.LinearArgumentProto lin_max = 27;
.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)
.operations_research.sat.LinearArgumentProto lin_min = 28;
.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 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 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 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)
.operations_research.sat.LinearArgumentProto lin_min = 28;
.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()
.operations_research.sat.LinearArgumentProto lin_min = 28;
.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()
Builder setBoolOr(com.google.ortools.sat.BoolArgumentProto value)
.lang.Override int hashCode()
.lang.Override boolean hasCumulative()
.lang.Override com.google.ortools.sat.ConstraintProto getDefaultInstanceForType()
.lang.Override boolean hasIntMax()
Builder setIntMax(com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue)
Builder clearLinMin()
.operations_research.sat.LinearArgumentProto lin_min = 28;
.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()
.operations_research.sat.LinearArgumentProto lin_max = 27;
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()
.operations_research.sat.LinearArgumentProto lin_min = 28;
com.google.ortools.sat.IntervalConstraintProto.Builder getIntervalBuilder()
.lang.Override com.google.ortools.sat.IntegerArgumentProto getIntProd()
.lang.Override com.google.ortools.sat.LinearArgumentProto getLinMax()
.operations_research.sat.LinearArgumentProto lin_max = 27;
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)
.operations_research.sat.LinearArgumentProto lin_max = 27;
.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)
.operations_research.sat.LinearArgumentProto lin_max = 27;
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)