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;
1129  @java.lang.Override
1130  public boolean hasIntProd() {
1131  return constraintCase_ == 11;
1132  }
1144  @java.lang.Override
1146  if (constraintCase_ == 11) {
1147  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
1148  }
1150  }
1161  @java.lang.Override
1163  if (constraintCase_ == 11) {
1164  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
1165  }
1167  }
1168 
1169  public static final int LINEAR_FIELD_NUMBER = 12;
1179  @java.lang.Override
1180  public boolean hasLinear() {
1181  return constraintCase_ == 12;
1182  }
1192  @java.lang.Override
1194  if (constraintCase_ == 12) {
1195  return (com.google.ortools.sat.LinearConstraintProto) constraint_;
1196  }
1198  }
1207  @java.lang.Override
1209  if (constraintCase_ == 12) {
1210  return (com.google.ortools.sat.LinearConstraintProto) constraint_;
1211  }
1213  }
1214 
1215  public static final int ALL_DIFF_FIELD_NUMBER = 13;
1224  @java.lang.Override
1225  public boolean hasAllDiff() {
1226  return constraintCase_ == 13;
1227  }
1236  @java.lang.Override
1238  if (constraintCase_ == 13) {
1239  return (com.google.ortools.sat.AllDifferentConstraintProto) constraint_;
1240  }
1242  }
1250  @java.lang.Override
1252  if (constraintCase_ == 13) {
1253  return (com.google.ortools.sat.AllDifferentConstraintProto) constraint_;
1254  }
1256  }
1257 
1258  public static final int ELEMENT_FIELD_NUMBER = 14;
1268  @java.lang.Override
1269  public boolean hasElement() {
1270  return constraintCase_ == 14;
1271  }
1281  @java.lang.Override
1283  if (constraintCase_ == 14) {
1284  return (com.google.ortools.sat.ElementConstraintProto) constraint_;
1285  }
1287  }
1296  @java.lang.Override
1298  if (constraintCase_ == 14) {
1299  return (com.google.ortools.sat.ElementConstraintProto) constraint_;
1300  }
1302  }
1303 
1304  public static final int CIRCUIT_FIELD_NUMBER = 15;
1314  @java.lang.Override
1315  public boolean hasCircuit() {
1316  return constraintCase_ == 15;
1317  }
1327  @java.lang.Override
1329  if (constraintCase_ == 15) {
1330  return (com.google.ortools.sat.CircuitConstraintProto) constraint_;
1331  }
1333  }
1342  @java.lang.Override
1344  if (constraintCase_ == 15) {
1345  return (com.google.ortools.sat.CircuitConstraintProto) constraint_;
1346  }
1348  }
1349 
1350  public static final int ROUTES_FIELD_NUMBER = 23;
1359  @java.lang.Override
1360  public boolean hasRoutes() {
1361  return constraintCase_ == 23;
1362  }
1371  @java.lang.Override
1373  if (constraintCase_ == 23) {
1374  return (com.google.ortools.sat.RoutesConstraintProto) constraint_;
1375  }
1377  }
1385  @java.lang.Override
1387  if (constraintCase_ == 23) {
1388  return (com.google.ortools.sat.RoutesConstraintProto) constraint_;
1389  }
1391  }
1392 
1393  public static final int TABLE_FIELD_NUMBER = 16;
1403  @java.lang.Override
1404  public boolean hasTable() {
1405  return constraintCase_ == 16;
1406  }
1416  @java.lang.Override
1418  if (constraintCase_ == 16) {
1419  return (com.google.ortools.sat.TableConstraintProto) constraint_;
1420  }
1422  }
1431  @java.lang.Override
1433  if (constraintCase_ == 16) {
1434  return (com.google.ortools.sat.TableConstraintProto) constraint_;
1435  }
1437  }
1438 
1439  public static final int AUTOMATON_FIELD_NUMBER = 17;
1449  @java.lang.Override
1450  public boolean hasAutomaton() {
1451  return constraintCase_ == 17;
1452  }
1462  @java.lang.Override
1464  if (constraintCase_ == 17) {
1465  return (com.google.ortools.sat.AutomatonConstraintProto) constraint_;
1466  }
1468  }
1477  @java.lang.Override
1479  if (constraintCase_ == 17) {
1480  return (com.google.ortools.sat.AutomatonConstraintProto) constraint_;
1481  }
1483  }
1484 
1485  public static final int INVERSE_FIELD_NUMBER = 18;
1495  @java.lang.Override
1496  public boolean hasInverse() {
1497  return constraintCase_ == 18;
1498  }
1508  @java.lang.Override
1510  if (constraintCase_ == 18) {
1511  return (com.google.ortools.sat.InverseConstraintProto) constraint_;
1512  }
1514  }
1523  @java.lang.Override
1525  if (constraintCase_ == 18) {
1526  return (com.google.ortools.sat.InverseConstraintProto) constraint_;
1527  }
1529  }
1530 
1531  public static final int RESERVOIR_FIELD_NUMBER = 24;
1542  @java.lang.Override
1543  public boolean hasReservoir() {
1544  return constraintCase_ == 24;
1545  }
1556  @java.lang.Override
1558  if (constraintCase_ == 24) {
1559  return (com.google.ortools.sat.ReservoirConstraintProto) constraint_;
1560  }
1562  }
1572  @java.lang.Override
1574  if (constraintCase_ == 24) {
1575  return (com.google.ortools.sat.ReservoirConstraintProto) constraint_;
1576  }
1578  }
1579 
1580  public static final int INTERVAL_FIELD_NUMBER = 19;
1590  @java.lang.Override
1591  public boolean hasInterval() {
1592  return constraintCase_ == 19;
1593  }
1603  @java.lang.Override
1605  if (constraintCase_ == 19) {
1606  return (com.google.ortools.sat.IntervalConstraintProto) constraint_;
1607  }
1609  }
1618  @java.lang.Override
1620  if (constraintCase_ == 19) {
1621  return (com.google.ortools.sat.IntervalConstraintProto) constraint_;
1622  }
1624  }
1625 
1626  public static final int NO_OVERLAP_FIELD_NUMBER = 20;
1637  @java.lang.Override
1638  public boolean hasNoOverlap() {
1639  return constraintCase_ == 20;
1640  }
1651  @java.lang.Override
1653  if (constraintCase_ == 20) {
1654  return (com.google.ortools.sat.NoOverlapConstraintProto) constraint_;
1655  }
1657  }
1667  @java.lang.Override
1669  if (constraintCase_ == 20) {
1670  return (com.google.ortools.sat.NoOverlapConstraintProto) constraint_;
1671  }
1673  }
1674 
1675  public static final int NO_OVERLAP_2D_FIELD_NUMBER = 21;
1684  @java.lang.Override
1685  public boolean hasNoOverlap2D() {
1686  return constraintCase_ == 21;
1687  }
1696  @java.lang.Override
1698  if (constraintCase_ == 21) {
1699  return (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_;
1700  }
1702  }
1710  @java.lang.Override
1712  if (constraintCase_ == 21) {
1713  return (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_;
1714  }
1716  }
1717 
1718  public static final int CUMULATIVE_FIELD_NUMBER = 22;
1729  @java.lang.Override
1730  public boolean hasCumulative() {
1731  return constraintCase_ == 22;
1732  }
1743  @java.lang.Override
1745  if (constraintCase_ == 22) {
1746  return (com.google.ortools.sat.CumulativeConstraintProto) constraint_;
1747  }
1749  }
1759  @java.lang.Override
1761  if (constraintCase_ == 22) {
1762  return (com.google.ortools.sat.CumulativeConstraintProto) constraint_;
1763  }
1765  }
1766 
1767  private byte memoizedIsInitialized = -1;
1768  @java.lang.Override
1769  public final boolean isInitialized() {
1770  byte isInitialized = memoizedIsInitialized;
1771  if (isInitialized == 1) return true;
1772  if (isInitialized == 0) return false;
1773 
1774  memoizedIsInitialized = 1;
1775  return true;
1776  }
1777 
1778  @java.lang.Override
1779  public void writeTo(com.google.protobuf.CodedOutputStream output)
1780  throws java.io.IOException {
1782  if (!getNameBytes().isEmpty()) {
1783  com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
1784  }
1785  if (getEnforcementLiteralList().size() > 0) {
1786  output.writeUInt32NoTag(18);
1787  output.writeUInt32NoTag(enforcementLiteralMemoizedSerializedSize);
1788  }
1789  for (int i = 0; i < enforcementLiteral_.size(); i++) {
1790  output.writeInt32NoTag(enforcementLiteral_.getInt(i));
1791  }
1792  if (constraintCase_ == 3) {
1793  output.writeMessage(3, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1794  }
1795  if (constraintCase_ == 4) {
1796  output.writeMessage(4, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1797  }
1798  if (constraintCase_ == 5) {
1799  output.writeMessage(5, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1800  }
1801  if (constraintCase_ == 7) {
1802  output.writeMessage(7, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1803  }
1804  if (constraintCase_ == 8) {
1805  output.writeMessage(8, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1806  }
1807  if (constraintCase_ == 9) {
1808  output.writeMessage(9, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1809  }
1810  if (constraintCase_ == 10) {
1811  output.writeMessage(10, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1812  }
1813  if (constraintCase_ == 11) {
1814  output.writeMessage(11, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1815  }
1816  if (constraintCase_ == 12) {
1817  output.writeMessage(12, (com.google.ortools.sat.LinearConstraintProto) constraint_);
1818  }
1819  if (constraintCase_ == 13) {
1820  output.writeMessage(13, (com.google.ortools.sat.AllDifferentConstraintProto) constraint_);
1821  }
1822  if (constraintCase_ == 14) {
1823  output.writeMessage(14, (com.google.ortools.sat.ElementConstraintProto) constraint_);
1824  }
1825  if (constraintCase_ == 15) {
1826  output.writeMessage(15, (com.google.ortools.sat.CircuitConstraintProto) constraint_);
1827  }
1828  if (constraintCase_ == 16) {
1829  output.writeMessage(16, (com.google.ortools.sat.TableConstraintProto) constraint_);
1830  }
1831  if (constraintCase_ == 17) {
1832  output.writeMessage(17, (com.google.ortools.sat.AutomatonConstraintProto) constraint_);
1833  }
1834  if (constraintCase_ == 18) {
1835  output.writeMessage(18, (com.google.ortools.sat.InverseConstraintProto) constraint_);
1836  }
1837  if (constraintCase_ == 19) {
1838  output.writeMessage(19, (com.google.ortools.sat.IntervalConstraintProto) constraint_);
1839  }
1840  if (constraintCase_ == 20) {
1841  output.writeMessage(20, (com.google.ortools.sat.NoOverlapConstraintProto) constraint_);
1842  }
1843  if (constraintCase_ == 21) {
1844  output.writeMessage(21, (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_);
1845  }
1846  if (constraintCase_ == 22) {
1847  output.writeMessage(22, (com.google.ortools.sat.CumulativeConstraintProto) constraint_);
1848  }
1849  if (constraintCase_ == 23) {
1850  output.writeMessage(23, (com.google.ortools.sat.RoutesConstraintProto) constraint_);
1851  }
1852  if (constraintCase_ == 24) {
1853  output.writeMessage(24, (com.google.ortools.sat.ReservoirConstraintProto) constraint_);
1854  }
1855  if (constraintCase_ == 26) {
1856  output.writeMessage(26, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1857  }
1858  if (constraintCase_ == 27) {
1859  output.writeMessage(27, (com.google.ortools.sat.LinearArgumentProto) constraint_);
1860  }
1861  if (constraintCase_ == 28) {
1862  output.writeMessage(28, (com.google.ortools.sat.LinearArgumentProto) constraint_);
1863  }
1864  unknownFields.writeTo(output);
1865  }
1866 
1867  @java.lang.Override
1868  public int getSerializedSize() {
1869  int size = memoizedSize;
1870  if (size != -1) return size;
1871 
1872  size = 0;
1873  if (!getNameBytes().isEmpty()) {
1874  size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
1875  }
1876  {
1877  int dataSize = 0;
1878  for (int i = 0; i < enforcementLiteral_.size(); i++) {
1879  dataSize += com.google.protobuf.CodedOutputStream
1880  .computeInt32SizeNoTag(enforcementLiteral_.getInt(i));
1881  }
1882  size += dataSize;
1883  if (!getEnforcementLiteralList().isEmpty()) {
1884  size += 1;
1885  size += com.google.protobuf.CodedOutputStream
1886  .computeInt32SizeNoTag(dataSize);
1887  }
1888  enforcementLiteralMemoizedSerializedSize = dataSize;
1889  }
1890  if (constraintCase_ == 3) {
1891  size += com.google.protobuf.CodedOutputStream
1892  .computeMessageSize(3, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1893  }
1894  if (constraintCase_ == 4) {
1895  size += com.google.protobuf.CodedOutputStream
1896  .computeMessageSize(4, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1897  }
1898  if (constraintCase_ == 5) {
1899  size += com.google.protobuf.CodedOutputStream
1900  .computeMessageSize(5, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1901  }
1902  if (constraintCase_ == 7) {
1903  size += com.google.protobuf.CodedOutputStream
1904  .computeMessageSize(7, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1905  }
1906  if (constraintCase_ == 8) {
1907  size += com.google.protobuf.CodedOutputStream
1908  .computeMessageSize(8, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1909  }
1910  if (constraintCase_ == 9) {
1911  size += com.google.protobuf.CodedOutputStream
1912  .computeMessageSize(9, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1913  }
1914  if (constraintCase_ == 10) {
1915  size += com.google.protobuf.CodedOutputStream
1916  .computeMessageSize(10, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1917  }
1918  if (constraintCase_ == 11) {
1919  size += com.google.protobuf.CodedOutputStream
1920  .computeMessageSize(11, (com.google.ortools.sat.IntegerArgumentProto) constraint_);
1921  }
1922  if (constraintCase_ == 12) {
1923  size += com.google.protobuf.CodedOutputStream
1924  .computeMessageSize(12, (com.google.ortools.sat.LinearConstraintProto) constraint_);
1925  }
1926  if (constraintCase_ == 13) {
1927  size += com.google.protobuf.CodedOutputStream
1928  .computeMessageSize(13, (com.google.ortools.sat.AllDifferentConstraintProto) constraint_);
1929  }
1930  if (constraintCase_ == 14) {
1931  size += com.google.protobuf.CodedOutputStream
1932  .computeMessageSize(14, (com.google.ortools.sat.ElementConstraintProto) constraint_);
1933  }
1934  if (constraintCase_ == 15) {
1935  size += com.google.protobuf.CodedOutputStream
1936  .computeMessageSize(15, (com.google.ortools.sat.CircuitConstraintProto) constraint_);
1937  }
1938  if (constraintCase_ == 16) {
1939  size += com.google.protobuf.CodedOutputStream
1940  .computeMessageSize(16, (com.google.ortools.sat.TableConstraintProto) constraint_);
1941  }
1942  if (constraintCase_ == 17) {
1943  size += com.google.protobuf.CodedOutputStream
1944  .computeMessageSize(17, (com.google.ortools.sat.AutomatonConstraintProto) constraint_);
1945  }
1946  if (constraintCase_ == 18) {
1947  size += com.google.protobuf.CodedOutputStream
1948  .computeMessageSize(18, (com.google.ortools.sat.InverseConstraintProto) constraint_);
1949  }
1950  if (constraintCase_ == 19) {
1951  size += com.google.protobuf.CodedOutputStream
1952  .computeMessageSize(19, (com.google.ortools.sat.IntervalConstraintProto) constraint_);
1953  }
1954  if (constraintCase_ == 20) {
1955  size += com.google.protobuf.CodedOutputStream
1956  .computeMessageSize(20, (com.google.ortools.sat.NoOverlapConstraintProto) constraint_);
1957  }
1958  if (constraintCase_ == 21) {
1959  size += com.google.protobuf.CodedOutputStream
1960  .computeMessageSize(21, (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_);
1961  }
1962  if (constraintCase_ == 22) {
1963  size += com.google.protobuf.CodedOutputStream
1964  .computeMessageSize(22, (com.google.ortools.sat.CumulativeConstraintProto) constraint_);
1965  }
1966  if (constraintCase_ == 23) {
1967  size += com.google.protobuf.CodedOutputStream
1968  .computeMessageSize(23, (com.google.ortools.sat.RoutesConstraintProto) constraint_);
1969  }
1970  if (constraintCase_ == 24) {
1971  size += com.google.protobuf.CodedOutputStream
1972  .computeMessageSize(24, (com.google.ortools.sat.ReservoirConstraintProto) constraint_);
1973  }
1974  if (constraintCase_ == 26) {
1975  size += com.google.protobuf.CodedOutputStream
1976  .computeMessageSize(26, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1977  }
1978  if (constraintCase_ == 27) {
1979  size += com.google.protobuf.CodedOutputStream
1980  .computeMessageSize(27, (com.google.ortools.sat.LinearArgumentProto) constraint_);
1981  }
1982  if (constraintCase_ == 28) {
1983  size += com.google.protobuf.CodedOutputStream
1984  .computeMessageSize(28, (com.google.ortools.sat.LinearArgumentProto) constraint_);
1985  }
1986  size += unknownFields.getSerializedSize();
1987  memoizedSize = size;
1988  return size;
1989  }
1990 
1991  @java.lang.Override
1992  public boolean equals(final java.lang.Object obj) {
1993  if (obj == this) {
1994  return true;
1995  }
1996  if (!(obj instanceof com.google.ortools.sat.ConstraintProto)) {
1997  return super.equals(obj);
1998  }
2000 
2001  if (!getName()
2002  .equals(other.getName())) return false;
2004  .equals(other.getEnforcementLiteralList())) return false;
2005  if (!getConstraintCase().equals(other.getConstraintCase())) return false;
2006  switch (constraintCase_) {
2007  case 3:
2008  if (!getBoolOr()
2009  .equals(other.getBoolOr())) return false;
2010  break;
2011  case 4:
2012  if (!getBoolAnd()
2013  .equals(other.getBoolAnd())) return false;
2014  break;
2015  case 26:
2016  if (!getAtMostOne()
2017  .equals(other.getAtMostOne())) return false;
2018  break;
2019  case 5:
2020  if (!getBoolXor()
2021  .equals(other.getBoolXor())) return false;
2022  break;
2023  case 7:
2024  if (!getIntDiv()
2025  .equals(other.getIntDiv())) return false;
2026  break;
2027  case 8:
2028  if (!getIntMod()
2029  .equals(other.getIntMod())) return false;
2030  break;
2031  case 9:
2032  if (!getIntMax()
2033  .equals(other.getIntMax())) return false;
2034  break;
2035  case 27:
2036  if (!getLinMax()
2037  .equals(other.getLinMax())) return false;
2038  break;
2039  case 10:
2040  if (!getIntMin()
2041  .equals(other.getIntMin())) return false;
2042  break;
2043  case 28:
2044  if (!getLinMin()
2045  .equals(other.getLinMin())) return false;
2046  break;
2047  case 11:
2048  if (!getIntProd()
2049  .equals(other.getIntProd())) return false;
2050  break;
2051  case 12:
2052  if (!getLinear()
2053  .equals(other.getLinear())) return false;
2054  break;
2055  case 13:
2056  if (!getAllDiff()
2057  .equals(other.getAllDiff())) return false;
2058  break;
2059  case 14:
2060  if (!getElement()
2061  .equals(other.getElement())) return false;
2062  break;
2063  case 15:
2064  if (!getCircuit()
2065  .equals(other.getCircuit())) return false;
2066  break;
2067  case 23:
2068  if (!getRoutes()
2069  .equals(other.getRoutes())) return false;
2070  break;
2071  case 16:
2072  if (!getTable()
2073  .equals(other.getTable())) return false;
2074  break;
2075  case 17:
2076  if (!getAutomaton()
2077  .equals(other.getAutomaton())) return false;
2078  break;
2079  case 18:
2080  if (!getInverse()
2081  .equals(other.getInverse())) return false;
2082  break;
2083  case 24:
2084  if (!getReservoir()
2085  .equals(other.getReservoir())) return false;
2086  break;
2087  case 19:
2088  if (!getInterval()
2089  .equals(other.getInterval())) return false;
2090  break;
2091  case 20:
2092  if (!getNoOverlap()
2093  .equals(other.getNoOverlap())) return false;
2094  break;
2095  case 21:
2096  if (!getNoOverlap2D()
2097  .equals(other.getNoOverlap2D())) return false;
2098  break;
2099  case 22:
2100  if (!getCumulative()
2101  .equals(other.getCumulative())) return false;
2102  break;
2103  case 0:
2104  default:
2105  }
2106  if (!unknownFields.equals(other.unknownFields)) return false;
2107  return true;
2108  }
2109 
2110  @java.lang.Override
2111  public int hashCode() {
2112  if (memoizedHashCode != 0) {
2113  return memoizedHashCode;
2114  }
2115  int hash = 41;
2116  hash = (19 * hash) + getDescriptor().hashCode();
2117  hash = (37 * hash) + NAME_FIELD_NUMBER;
2118  hash = (53 * hash) + getName().hashCode();
2119  if (getEnforcementLiteralCount() > 0) {
2120  hash = (37 * hash) + ENFORCEMENT_LITERAL_FIELD_NUMBER;
2121  hash = (53 * hash) + getEnforcementLiteralList().hashCode();
2122  }
2123  switch (constraintCase_) {
2124  case 3:
2125  hash = (37 * hash) + BOOL_OR_FIELD_NUMBER;
2126  hash = (53 * hash) + getBoolOr().hashCode();
2127  break;
2128  case 4:
2129  hash = (37 * hash) + BOOL_AND_FIELD_NUMBER;
2130  hash = (53 * hash) + getBoolAnd().hashCode();
2131  break;
2132  case 26:
2133  hash = (37 * hash) + AT_MOST_ONE_FIELD_NUMBER;
2134  hash = (53 * hash) + getAtMostOne().hashCode();
2135  break;
2136  case 5:
2137  hash = (37 * hash) + BOOL_XOR_FIELD_NUMBER;
2138  hash = (53 * hash) + getBoolXor().hashCode();
2139  break;
2140  case 7:
2141  hash = (37 * hash) + INT_DIV_FIELD_NUMBER;
2142  hash = (53 * hash) + getIntDiv().hashCode();
2143  break;
2144  case 8:
2145  hash = (37 * hash) + INT_MOD_FIELD_NUMBER;
2146  hash = (53 * hash) + getIntMod().hashCode();
2147  break;
2148  case 9:
2149  hash = (37 * hash) + INT_MAX_FIELD_NUMBER;
2150  hash = (53 * hash) + getIntMax().hashCode();
2151  break;
2152  case 27:
2153  hash = (37 * hash) + LIN_MAX_FIELD_NUMBER;
2154  hash = (53 * hash) + getLinMax().hashCode();
2155  break;
2156  case 10:
2157  hash = (37 * hash) + INT_MIN_FIELD_NUMBER;
2158  hash = (53 * hash) + getIntMin().hashCode();
2159  break;
2160  case 28:
2161  hash = (37 * hash) + LIN_MIN_FIELD_NUMBER;
2162  hash = (53 * hash) + getLinMin().hashCode();
2163  break;
2164  case 11:
2165  hash = (37 * hash) + INT_PROD_FIELD_NUMBER;
2166  hash = (53 * hash) + getIntProd().hashCode();
2167  break;
2168  case 12:
2169  hash = (37 * hash) + LINEAR_FIELD_NUMBER;
2170  hash = (53 * hash) + getLinear().hashCode();
2171  break;
2172  case 13:
2173  hash = (37 * hash) + ALL_DIFF_FIELD_NUMBER;
2174  hash = (53 * hash) + getAllDiff().hashCode();
2175  break;
2176  case 14:
2177  hash = (37 * hash) + ELEMENT_FIELD_NUMBER;
2178  hash = (53 * hash) + getElement().hashCode();
2179  break;
2180  case 15:
2181  hash = (37 * hash) + CIRCUIT_FIELD_NUMBER;
2182  hash = (53 * hash) + getCircuit().hashCode();
2183  break;
2184  case 23:
2185  hash = (37 * hash) + ROUTES_FIELD_NUMBER;
2186  hash = (53 * hash) + getRoutes().hashCode();
2187  break;
2188  case 16:
2189  hash = (37 * hash) + TABLE_FIELD_NUMBER;
2190  hash = (53 * hash) + getTable().hashCode();
2191  break;
2192  case 17:
2193  hash = (37 * hash) + AUTOMATON_FIELD_NUMBER;
2194  hash = (53 * hash) + getAutomaton().hashCode();
2195  break;
2196  case 18:
2197  hash = (37 * hash) + INVERSE_FIELD_NUMBER;
2198  hash = (53 * hash) + getInverse().hashCode();
2199  break;
2200  case 24:
2201  hash = (37 * hash) + RESERVOIR_FIELD_NUMBER;
2202  hash = (53 * hash) + getReservoir().hashCode();
2203  break;
2204  case 19:
2205  hash = (37 * hash) + INTERVAL_FIELD_NUMBER;
2206  hash = (53 * hash) + getInterval().hashCode();
2207  break;
2208  case 20:
2209  hash = (37 * hash) + NO_OVERLAP_FIELD_NUMBER;
2210  hash = (53 * hash) + getNoOverlap().hashCode();
2211  break;
2212  case 21:
2213  hash = (37 * hash) + NO_OVERLAP_2D_FIELD_NUMBER;
2214  hash = (53 * hash) + getNoOverlap2D().hashCode();
2215  break;
2216  case 22:
2217  hash = (37 * hash) + CUMULATIVE_FIELD_NUMBER;
2218  hash = (53 * hash) + getCumulative().hashCode();
2219  break;
2220  case 0:
2221  default:
2222  }
2223  hash = (29 * hash) + unknownFields.hashCode();
2224  memoizedHashCode = hash;
2225  return hash;
2226  }
2227 
2229  java.nio.ByteBuffer data)
2230  throws com.google.protobuf.InvalidProtocolBufferException {
2231  return PARSER.parseFrom(data);
2232  }
2234  java.nio.ByteBuffer data,
2235  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2236  throws com.google.protobuf.InvalidProtocolBufferException {
2237  return PARSER.parseFrom(data, extensionRegistry);
2238  }
2240  com.google.protobuf.ByteString data)
2241  throws com.google.protobuf.InvalidProtocolBufferException {
2242  return PARSER.parseFrom(data);
2243  }
2245  com.google.protobuf.ByteString data,
2246  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2247  throws com.google.protobuf.InvalidProtocolBufferException {
2248  return PARSER.parseFrom(data, extensionRegistry);
2249  }
2250  public static com.google.ortools.sat.ConstraintProto parseFrom(byte[] data)
2251  throws com.google.protobuf.InvalidProtocolBufferException {
2252  return PARSER.parseFrom(data);
2253  }
2255  byte[] data,
2256  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2257  throws com.google.protobuf.InvalidProtocolBufferException {
2258  return PARSER.parseFrom(data, extensionRegistry);
2259  }
2260  public static com.google.ortools.sat.ConstraintProto parseFrom(java.io.InputStream input)
2261  throws java.io.IOException {
2262  return com.google.protobuf.GeneratedMessageV3
2263  .parseWithIOException(PARSER, input);
2264  }
2266  java.io.InputStream input,
2267  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2268  throws java.io.IOException {
2269  return com.google.protobuf.GeneratedMessageV3
2270  .parseWithIOException(PARSER, input, extensionRegistry);
2271  }
2272  public static com.google.ortools.sat.ConstraintProto parseDelimitedFrom(java.io.InputStream input)
2273  throws java.io.IOException {
2274  return com.google.protobuf.GeneratedMessageV3
2275  .parseDelimitedWithIOException(PARSER, input);
2276  }
2278  java.io.InputStream input,
2279  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2280  throws java.io.IOException {
2281  return com.google.protobuf.GeneratedMessageV3
2282  .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
2283  }
2285  com.google.protobuf.CodedInputStream input)
2286  throws java.io.IOException {
2287  return com.google.protobuf.GeneratedMessageV3
2288  .parseWithIOException(PARSER, input);
2289  }
2291  com.google.protobuf.CodedInputStream input,
2292  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2293  throws java.io.IOException {
2294  return com.google.protobuf.GeneratedMessageV3
2295  .parseWithIOException(PARSER, input, extensionRegistry);
2296  }
2297 
2298  @java.lang.Override
2299  public Builder newBuilderForType() { return newBuilder(); }
2300  public static Builder newBuilder() {
2301  return DEFAULT_INSTANCE.toBuilder();
2302  }
2304  return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
2305  }
2306  @java.lang.Override
2307  public Builder toBuilder() {
2308  return this == DEFAULT_INSTANCE
2309  ? new Builder() : new Builder().mergeFrom(this);
2310  }
2311 
2312  @java.lang.Override
2314  com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
2315  Builder builder = new Builder(parent);
2316  return builder;
2317  }
2325  public static final class Builder extends
2326  com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
2327  // @@protoc_insertion_point(builder_implements:operations_research.sat.ConstraintProto)
2328  com.google.ortools.sat.ConstraintProtoOrBuilder {
2329  public static final com.google.protobuf.Descriptors.Descriptor
2331  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_descriptor;
2332  }
2333 
2334  @java.lang.Override
2335  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
2337  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_fieldAccessorTable
2338  .ensureFieldAccessorsInitialized(
2340  }
2341 
2342  // Construct using com.google.ortools.sat.ConstraintProto.newBuilder()
2343  private Builder() {
2344  maybeForceBuilderInitialization();
2345  }
2346 
2347  private Builder(
2348  com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
2349  super(parent);
2350  maybeForceBuilderInitialization();
2351  }
2352  private void maybeForceBuilderInitialization() {
2353  if (com.google.protobuf.GeneratedMessageV3
2354  .alwaysUseFieldBuilders) {
2355  }
2356  }
2357  @java.lang.Override
2358  public Builder clear() {
2359  super.clear();
2360  name_ = "";
2361 
2362  enforcementLiteral_ = emptyIntList();
2363  bitField0_ = (bitField0_ & ~0x00000001);
2364  constraintCase_ = 0;
2365  constraint_ = null;
2366  return this;
2367  }
2368 
2369  @java.lang.Override
2370  public com.google.protobuf.Descriptors.Descriptor
2372  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_descriptor;
2373  }
2374 
2375  @java.lang.Override
2378  }
2379 
2380  @java.lang.Override
2383  if (!result.isInitialized()) {
2384  throw newUninitializedMessageException(result);
2385  }
2386  return result;
2387  }
2388 
2389  @java.lang.Override
2392  int from_bitField0_ = bitField0_;
2393  result.name_ = name_;
2394  if (((bitField0_ & 0x00000001) != 0)) {
2395  enforcementLiteral_.makeImmutable();
2396  bitField0_ = (bitField0_ & ~0x00000001);
2397  }
2398  result.enforcementLiteral_ = enforcementLiteral_;
2399  if (constraintCase_ == 3) {
2400  if (boolOrBuilder_ == null) {
2401  result.constraint_ = constraint_;
2402  } else {
2403  result.constraint_ = boolOrBuilder_.build();
2404  }
2405  }
2406  if (constraintCase_ == 4) {
2407  if (boolAndBuilder_ == null) {
2408  result.constraint_ = constraint_;
2409  } else {
2410  result.constraint_ = boolAndBuilder_.build();
2411  }
2412  }
2413  if (constraintCase_ == 26) {
2414  if (atMostOneBuilder_ == null) {
2415  result.constraint_ = constraint_;
2416  } else {
2417  result.constraint_ = atMostOneBuilder_.build();
2418  }
2419  }
2420  if (constraintCase_ == 5) {
2421  if (boolXorBuilder_ == null) {
2422  result.constraint_ = constraint_;
2423  } else {
2424  result.constraint_ = boolXorBuilder_.build();
2425  }
2426  }
2427  if (constraintCase_ == 7) {
2428  if (intDivBuilder_ == null) {
2429  result.constraint_ = constraint_;
2430  } else {
2431  result.constraint_ = intDivBuilder_.build();
2432  }
2433  }
2434  if (constraintCase_ == 8) {
2435  if (intModBuilder_ == null) {
2436  result.constraint_ = constraint_;
2437  } else {
2438  result.constraint_ = intModBuilder_.build();
2439  }
2440  }
2441  if (constraintCase_ == 9) {
2442  if (intMaxBuilder_ == null) {
2443  result.constraint_ = constraint_;
2444  } else {
2445  result.constraint_ = intMaxBuilder_.build();
2446  }
2447  }
2448  if (constraintCase_ == 27) {
2449  if (linMaxBuilder_ == null) {
2450  result.constraint_ = constraint_;
2451  } else {
2452  result.constraint_ = linMaxBuilder_.build();
2453  }
2454  }
2455  if (constraintCase_ == 10) {
2456  if (intMinBuilder_ == null) {
2457  result.constraint_ = constraint_;
2458  } else {
2459  result.constraint_ = intMinBuilder_.build();
2460  }
2461  }
2462  if (constraintCase_ == 28) {
2463  if (linMinBuilder_ == null) {
2464  result.constraint_ = constraint_;
2465  } else {
2466  result.constraint_ = linMinBuilder_.build();
2467  }
2468  }
2469  if (constraintCase_ == 11) {
2470  if (intProdBuilder_ == null) {
2471  result.constraint_ = constraint_;
2472  } else {
2473  result.constraint_ = intProdBuilder_.build();
2474  }
2475  }
2476  if (constraintCase_ == 12) {
2477  if (linearBuilder_ == null) {
2478  result.constraint_ = constraint_;
2479  } else {
2480  result.constraint_ = linearBuilder_.build();
2481  }
2482  }
2483  if (constraintCase_ == 13) {
2484  if (allDiffBuilder_ == null) {
2485  result.constraint_ = constraint_;
2486  } else {
2487  result.constraint_ = allDiffBuilder_.build();
2488  }
2489  }
2490  if (constraintCase_ == 14) {
2491  if (elementBuilder_ == null) {
2492  result.constraint_ = constraint_;
2493  } else {
2494  result.constraint_ = elementBuilder_.build();
2495  }
2496  }
2497  if (constraintCase_ == 15) {
2498  if (circuitBuilder_ == null) {
2499  result.constraint_ = constraint_;
2500  } else {
2501  result.constraint_ = circuitBuilder_.build();
2502  }
2503  }
2504  if (constraintCase_ == 23) {
2505  if (routesBuilder_ == null) {
2506  result.constraint_ = constraint_;
2507  } else {
2508  result.constraint_ = routesBuilder_.build();
2509  }
2510  }
2511  if (constraintCase_ == 16) {
2512  if (tableBuilder_ == null) {
2513  result.constraint_ = constraint_;
2514  } else {
2515  result.constraint_ = tableBuilder_.build();
2516  }
2517  }
2518  if (constraintCase_ == 17) {
2519  if (automatonBuilder_ == null) {
2520  result.constraint_ = constraint_;
2521  } else {
2522  result.constraint_ = automatonBuilder_.build();
2523  }
2524  }
2525  if (constraintCase_ == 18) {
2526  if (inverseBuilder_ == null) {
2527  result.constraint_ = constraint_;
2528  } else {
2529  result.constraint_ = inverseBuilder_.build();
2530  }
2531  }
2532  if (constraintCase_ == 24) {
2533  if (reservoirBuilder_ == null) {
2534  result.constraint_ = constraint_;
2535  } else {
2536  result.constraint_ = reservoirBuilder_.build();
2537  }
2538  }
2539  if (constraintCase_ == 19) {
2540  if (intervalBuilder_ == null) {
2541  result.constraint_ = constraint_;
2542  } else {
2543  result.constraint_ = intervalBuilder_.build();
2544  }
2545  }
2546  if (constraintCase_ == 20) {
2547  if (noOverlapBuilder_ == null) {
2548  result.constraint_ = constraint_;
2549  } else {
2550  result.constraint_ = noOverlapBuilder_.build();
2551  }
2552  }
2553  if (constraintCase_ == 21) {
2554  if (noOverlap2DBuilder_ == null) {
2555  result.constraint_ = constraint_;
2556  } else {
2557  result.constraint_ = noOverlap2DBuilder_.build();
2558  }
2559  }
2560  if (constraintCase_ == 22) {
2561  if (cumulativeBuilder_ == null) {
2562  result.constraint_ = constraint_;
2563  } else {
2564  result.constraint_ = cumulativeBuilder_.build();
2565  }
2566  }
2567  result.constraintCase_ = constraintCase_;
2568  onBuilt();
2569  return result;
2570  }
2571 
2572  @java.lang.Override
2573  public Builder clone() {
2574  return super.clone();
2575  }
2576  @java.lang.Override
2578  com.google.protobuf.Descriptors.FieldDescriptor field,
2579  java.lang.Object value) {
2580  return super.setField(field, value);
2581  }
2582  @java.lang.Override
2584  com.google.protobuf.Descriptors.FieldDescriptor field) {
2585  return super.clearField(field);
2586  }
2587  @java.lang.Override
2589  com.google.protobuf.Descriptors.OneofDescriptor oneof) {
2590  return super.clearOneof(oneof);
2591  }
2592  @java.lang.Override
2594  com.google.protobuf.Descriptors.FieldDescriptor field,
2595  int index, java.lang.Object value) {
2596  return super.setRepeatedField(field, index, value);
2597  }
2598  @java.lang.Override
2600  com.google.protobuf.Descriptors.FieldDescriptor field,
2601  java.lang.Object value) {
2602  return super.addRepeatedField(field, value);
2603  }
2604  @java.lang.Override
2605  public Builder mergeFrom(com.google.protobuf.Message other) {
2606  if (other instanceof com.google.ortools.sat.ConstraintProto) {
2607  return mergeFrom((com.google.ortools.sat.ConstraintProto)other);
2608  } else {
2609  super.mergeFrom(other);
2610  return this;
2611  }
2612  }
2613 
2615  if (other == com.google.ortools.sat.ConstraintProto.getDefaultInstance()) return this;
2616  if (!other.getName().isEmpty()) {
2617  name_ = other.name_;
2618  onChanged();
2619  }
2620  if (!other.enforcementLiteral_.isEmpty()) {
2621  if (enforcementLiteral_.isEmpty()) {
2622  enforcementLiteral_ = other.enforcementLiteral_;
2623  bitField0_ = (bitField0_ & ~0x00000001);
2624  } else {
2625  ensureEnforcementLiteralIsMutable();
2626  enforcementLiteral_.addAll(other.enforcementLiteral_);
2627  }
2628  onChanged();
2629  }
2630  switch (other.getConstraintCase()) {
2631  case BOOL_OR: {
2632  mergeBoolOr(other.getBoolOr());
2633  break;
2634  }
2635  case BOOL_AND: {
2636  mergeBoolAnd(other.getBoolAnd());
2637  break;
2638  }
2639  case AT_MOST_ONE: {
2640  mergeAtMostOne(other.getAtMostOne());
2641  break;
2642  }
2643  case BOOL_XOR: {
2644  mergeBoolXor(other.getBoolXor());
2645  break;
2646  }
2647  case INT_DIV: {
2648  mergeIntDiv(other.getIntDiv());
2649  break;
2650  }
2651  case INT_MOD: {
2652  mergeIntMod(other.getIntMod());
2653  break;
2654  }
2655  case INT_MAX: {
2656  mergeIntMax(other.getIntMax());
2657  break;
2658  }
2659  case LIN_MAX: {
2660  mergeLinMax(other.getLinMax());
2661  break;
2662  }
2663  case INT_MIN: {
2664  mergeIntMin(other.getIntMin());
2665  break;
2666  }
2667  case LIN_MIN: {
2668  mergeLinMin(other.getLinMin());
2669  break;
2670  }
2671  case INT_PROD: {
2672  mergeIntProd(other.getIntProd());
2673  break;
2674  }
2675  case LINEAR: {
2676  mergeLinear(other.getLinear());
2677  break;
2678  }
2679  case ALL_DIFF: {
2680  mergeAllDiff(other.getAllDiff());
2681  break;
2682  }
2683  case ELEMENT: {
2684  mergeElement(other.getElement());
2685  break;
2686  }
2687  case CIRCUIT: {
2688  mergeCircuit(other.getCircuit());
2689  break;
2690  }
2691  case ROUTES: {
2692  mergeRoutes(other.getRoutes());
2693  break;
2694  }
2695  case TABLE: {
2696  mergeTable(other.getTable());
2697  break;
2698  }
2699  case AUTOMATON: {
2700  mergeAutomaton(other.getAutomaton());
2701  break;
2702  }
2703  case INVERSE: {
2704  mergeInverse(other.getInverse());
2705  break;
2706  }
2707  case RESERVOIR: {
2708  mergeReservoir(other.getReservoir());
2709  break;
2710  }
2711  case INTERVAL: {
2712  mergeInterval(other.getInterval());
2713  break;
2714  }
2715  case NO_OVERLAP: {
2716  mergeNoOverlap(other.getNoOverlap());
2717  break;
2718  }
2719  case NO_OVERLAP_2D: {
2720  mergeNoOverlap2D(other.getNoOverlap2D());
2721  break;
2722  }
2723  case CUMULATIVE: {
2724  mergeCumulative(other.getCumulative());
2725  break;
2726  }
2727  case CONSTRAINT_NOT_SET: {
2728  break;
2729  }
2730  }
2731  this.mergeUnknownFields(other.unknownFields);
2732  onChanged();
2733  return this;
2734  }
2735 
2736  @java.lang.Override
2737  public final boolean isInitialized() {
2738  return true;
2739  }
2740 
2741  @java.lang.Override
2743  com.google.protobuf.CodedInputStream input,
2744  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2745  throws java.io.IOException {
2746  com.google.ortools.sat.ConstraintProto parsedMessage = null;
2747  try {
2748  parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
2749  } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2750  parsedMessage = (com.google.ortools.sat.ConstraintProto) e.getUnfinishedMessage();
2751  throw e.unwrapIOException();
2752  } finally {
2753  if (parsedMessage != null) {
2754  mergeFrom(parsedMessage);
2755  }
2756  }
2757  return this;
2758  }
2759  private int constraintCase_ = 0;
2760  private java.lang.Object constraint_;
2761  public ConstraintCase
2763  return ConstraintCase.forNumber(
2764  constraintCase_);
2765  }
2766 
2768  constraintCase_ = 0;
2769  constraint_ = null;
2770  onChanged();
2771  return this;
2772  }
2773 
2774  private int bitField0_;
2775 
2776  private java.lang.Object name_ = "";
2785  public java.lang.String getName() {
2786  java.lang.Object ref = name_;
2787  if (!(ref instanceof java.lang.String)) {
2788  com.google.protobuf.ByteString bs =
2789  (com.google.protobuf.ByteString) ref;
2790  java.lang.String s = bs.toStringUtf8();
2791  name_ = s;
2792  return s;
2793  } else {
2794  return (java.lang.String) ref;
2795  }
2796  }
2805  public com.google.protobuf.ByteString
2807  java.lang.Object ref = name_;
2808  if (ref instanceof String) {
2809  com.google.protobuf.ByteString b =
2810  com.google.protobuf.ByteString.copyFromUtf8(
2811  (java.lang.String) ref);
2812  name_ = b;
2813  return b;
2814  } else {
2815  return (com.google.protobuf.ByteString) ref;
2816  }
2817  }
2828  java.lang.String value) {
2829  if (value == null) {
2830  throw new NullPointerException();
2831  }
2832 
2833  name_ = value;
2834  onChanged();
2835  return this;
2836  }
2845  public Builder clearName() {
2846 
2847  name_ = getDefaultInstance().getName();
2848  onChanged();
2849  return this;
2850  }
2861  com.google.protobuf.ByteString value) {
2862  if (value == null) {
2863  throw new NullPointerException();
2864  }
2865  checkByteStringIsUtf8(value);
2866 
2867  name_ = value;
2868  onChanged();
2869  return this;
2870  }
2871 
2872  private com.google.protobuf.Internal.IntList enforcementLiteral_ = emptyIntList();
2873  private void ensureEnforcementLiteralIsMutable() {
2874  if (!((bitField0_ & 0x00000001) != 0)) {
2875  enforcementLiteral_ = mutableCopy(enforcementLiteral_);
2876  bitField0_ |= 0x00000001;
2877  }
2878  }
2898  public java.util.List<java.lang.Integer>
2900  return ((bitField0_ & 0x00000001) != 0) ?
2901  java.util.Collections.unmodifiableList(enforcementLiteral_) : enforcementLiteral_;
2902  }
2923  return enforcementLiteral_.size();
2924  }
2945  public int getEnforcementLiteral(int index) {
2946  return enforcementLiteral_.getInt(index);
2947  }
2970  int index, int value) {
2971  ensureEnforcementLiteralIsMutable();
2972  enforcementLiteral_.setInt(index, value);
2973  onChanged();
2974  return this;
2975  }
2996  public Builder addEnforcementLiteral(int value) {
2997  ensureEnforcementLiteralIsMutable();
2998  enforcementLiteral_.addInt(value);
2999  onChanged();
3000  return this;
3001  }
3023  java.lang.Iterable<? extends java.lang.Integer> values) {
3024  ensureEnforcementLiteralIsMutable();
3025  com.google.protobuf.AbstractMessageLite.Builder.addAll(
3026  values, enforcementLiteral_);
3027  onChanged();
3028  return this;
3029  }
3050  enforcementLiteral_ = emptyIntList();
3051  bitField0_ = (bitField0_ & ~0x00000001);
3052  onChanged();
3053  return this;
3054  }
3055 
3056  private com.google.protobuf.SingleFieldBuilderV3<
3066  @java.lang.Override
3067  public boolean hasBoolOr() {
3068  return constraintCase_ == 3;
3069  }
3078  @java.lang.Override
3080  if (boolOrBuilder_ == null) {
3081  if (constraintCase_ == 3) {
3082  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3083  }
3085  } else {
3086  if (constraintCase_ == 3) {
3087  return boolOrBuilder_.getMessage();
3088  }
3090  }
3091  }
3100  if (boolOrBuilder_ == null) {
3101  if (value == null) {
3102  throw new NullPointerException();
3103  }
3104  constraint_ = value;
3105  onChanged();
3106  } else {
3107  boolOrBuilder_.setMessage(value);
3108  }
3109  constraintCase_ = 3;
3110  return this;
3111  }
3120  com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
3121  if (boolOrBuilder_ == null) {
3122  constraint_ = builderForValue.build();
3123  onChanged();
3124  } else {
3125  boolOrBuilder_.setMessage(builderForValue.build());
3126  }
3127  constraintCase_ = 3;
3128  return this;
3129  }
3138  if (boolOrBuilder_ == null) {
3139  if (constraintCase_ == 3 &&
3142  .mergeFrom(value).buildPartial();
3143  } else {
3144  constraint_ = value;
3145  }
3146  onChanged();
3147  } else {
3148  if (constraintCase_ == 3) {
3149  boolOrBuilder_.mergeFrom(value);
3150  }
3151  boolOrBuilder_.setMessage(value);
3152  }
3153  constraintCase_ = 3;
3154  return this;
3155  }
3164  if (boolOrBuilder_ == null) {
3165  if (constraintCase_ == 3) {
3166  constraintCase_ = 0;
3167  constraint_ = null;
3168  onChanged();
3169  }
3170  } else {
3171  if (constraintCase_ == 3) {
3172  constraintCase_ = 0;
3173  constraint_ = null;
3174  }
3175  boolOrBuilder_.clear();
3176  }
3177  return this;
3178  }
3187  return getBoolOrFieldBuilder().getBuilder();
3188  }
3196  @java.lang.Override
3198  if ((constraintCase_ == 3) && (boolOrBuilder_ != null)) {
3199  return boolOrBuilder_.getMessageOrBuilder();
3200  } else {
3201  if (constraintCase_ == 3) {
3202  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3203  }
3205  }
3206  }
3214  private com.google.protobuf.SingleFieldBuilderV3<
3216  getBoolOrFieldBuilder() {
3217  if (boolOrBuilder_ == null) {
3218  if (!(constraintCase_ == 3)) {
3220  }
3221  boolOrBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
3223  (com.google.ortools.sat.BoolArgumentProto) constraint_,
3224  getParentForChildren(),
3225  isClean());
3226  constraint_ = null;
3227  }
3228  constraintCase_ = 3;
3229  onChanged();;
3230  return boolOrBuilder_;
3231  }
3232 
3233  private com.google.protobuf.SingleFieldBuilderV3<
3246  @java.lang.Override
3247  public boolean hasBoolAnd() {
3248  return constraintCase_ == 4;
3249  }
3261  @java.lang.Override
3263  if (boolAndBuilder_ == null) {
3264  if (constraintCase_ == 4) {
3265  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3266  }
3268  } else {
3269  if (constraintCase_ == 4) {
3270  return boolAndBuilder_.getMessage();
3271  }
3273  }
3274  }
3286  if (boolAndBuilder_ == null) {
3287  if (value == null) {
3288  throw new NullPointerException();
3289  }
3290  constraint_ = value;
3291  onChanged();
3292  } else {
3293  boolAndBuilder_.setMessage(value);
3294  }
3295  constraintCase_ = 4;
3296  return this;
3297  }
3309  com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
3310  if (boolAndBuilder_ == null) {
3311  constraint_ = builderForValue.build();
3312  onChanged();
3313  } else {
3314  boolAndBuilder_.setMessage(builderForValue.build());
3315  }
3316  constraintCase_ = 4;
3317  return this;
3318  }
3330  if (boolAndBuilder_ == null) {
3331  if (constraintCase_ == 4 &&
3334  .mergeFrom(value).buildPartial();
3335  } else {
3336  constraint_ = value;
3337  }
3338  onChanged();
3339  } else {
3340  if (constraintCase_ == 4) {
3341  boolAndBuilder_.mergeFrom(value);
3342  }
3343  boolAndBuilder_.setMessage(value);
3344  }
3345  constraintCase_ = 4;
3346  return this;
3347  }
3359  if (boolAndBuilder_ == null) {
3360  if (constraintCase_ == 4) {
3361  constraintCase_ = 0;
3362  constraint_ = null;
3363  onChanged();
3364  }
3365  } else {
3366  if (constraintCase_ == 4) {
3367  constraintCase_ = 0;
3368  constraint_ = null;
3369  }
3370  boolAndBuilder_.clear();
3371  }
3372  return this;
3373  }
3385  return getBoolAndFieldBuilder().getBuilder();
3386  }
3397  @java.lang.Override
3399  if ((constraintCase_ == 4) && (boolAndBuilder_ != null)) {
3400  return boolAndBuilder_.getMessageOrBuilder();
3401  } else {
3402  if (constraintCase_ == 4) {
3403  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3404  }
3406  }
3407  }
3418  private com.google.protobuf.SingleFieldBuilderV3<
3420  getBoolAndFieldBuilder() {
3421  if (boolAndBuilder_ == null) {
3422  if (!(constraintCase_ == 4)) {
3424  }
3425  boolAndBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
3427  (com.google.ortools.sat.BoolArgumentProto) constraint_,
3428  getParentForChildren(),
3429  isClean());
3430  constraint_ = null;
3431  }
3432  constraintCase_ = 4;
3433  onChanged();;
3434  return boolAndBuilder_;
3435  }
3436 
3437  private com.google.protobuf.SingleFieldBuilderV3<
3451  @java.lang.Override
3452  public boolean hasAtMostOne() {
3453  return constraintCase_ == 26;
3454  }
3467  @java.lang.Override
3469  if (atMostOneBuilder_ == null) {
3470  if (constraintCase_ == 26) {
3471  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3472  }
3474  } else {
3475  if (constraintCase_ == 26) {
3476  return atMostOneBuilder_.getMessage();
3477  }
3479  }
3480  }
3493  if (atMostOneBuilder_ == null) {
3494  if (value == null) {
3495  throw new NullPointerException();
3496  }
3497  constraint_ = value;
3498  onChanged();
3499  } else {
3500  atMostOneBuilder_.setMessage(value);
3501  }
3502  constraintCase_ = 26;
3503  return this;
3504  }
3517  com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
3518  if (atMostOneBuilder_ == null) {
3519  constraint_ = builderForValue.build();
3520  onChanged();
3521  } else {
3522  atMostOneBuilder_.setMessage(builderForValue.build());
3523  }
3524  constraintCase_ = 26;
3525  return this;
3526  }
3539  if (atMostOneBuilder_ == null) {
3540  if (constraintCase_ == 26 &&
3543  .mergeFrom(value).buildPartial();
3544  } else {
3545  constraint_ = value;
3546  }
3547  onChanged();
3548  } else {
3549  if (constraintCase_ == 26) {
3550  atMostOneBuilder_.mergeFrom(value);
3551  }
3552  atMostOneBuilder_.setMessage(value);
3553  }
3554  constraintCase_ = 26;
3555  return this;
3556  }
3569  if (atMostOneBuilder_ == null) {
3570  if (constraintCase_ == 26) {
3571  constraintCase_ = 0;
3572  constraint_ = null;
3573  onChanged();
3574  }
3575  } else {
3576  if (constraintCase_ == 26) {
3577  constraintCase_ = 0;
3578  constraint_ = null;
3579  }
3580  atMostOneBuilder_.clear();
3581  }
3582  return this;
3583  }
3596  return getAtMostOneFieldBuilder().getBuilder();
3597  }
3609  @java.lang.Override
3611  if ((constraintCase_ == 26) && (atMostOneBuilder_ != null)) {
3612  return atMostOneBuilder_.getMessageOrBuilder();
3613  } else {
3614  if (constraintCase_ == 26) {
3615  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3616  }
3618  }
3619  }
3631  private com.google.protobuf.SingleFieldBuilderV3<
3633  getAtMostOneFieldBuilder() {
3634  if (atMostOneBuilder_ == null) {
3635  if (!(constraintCase_ == 26)) {
3637  }
3638  atMostOneBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
3640  (com.google.ortools.sat.BoolArgumentProto) constraint_,
3641  getParentForChildren(),
3642  isClean());
3643  constraint_ = null;
3644  }
3645  constraintCase_ = 26;
3646  onChanged();;
3647  return atMostOneBuilder_;
3648  }
3649 
3650  private com.google.protobuf.SingleFieldBuilderV3<
3660  @java.lang.Override
3661  public boolean hasBoolXor() {
3662  return constraintCase_ == 5;
3663  }
3672  @java.lang.Override
3674  if (boolXorBuilder_ == null) {
3675  if (constraintCase_ == 5) {
3676  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3677  }
3679  } else {
3680  if (constraintCase_ == 5) {
3681  return boolXorBuilder_.getMessage();
3682  }
3684  }
3685  }
3694  if (boolXorBuilder_ == null) {
3695  if (value == null) {
3696  throw new NullPointerException();
3697  }
3698  constraint_ = value;
3699  onChanged();
3700  } else {
3701  boolXorBuilder_.setMessage(value);
3702  }
3703  constraintCase_ = 5;
3704  return this;
3705  }
3714  com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
3715  if (boolXorBuilder_ == null) {
3716  constraint_ = builderForValue.build();
3717  onChanged();
3718  } else {
3719  boolXorBuilder_.setMessage(builderForValue.build());
3720  }
3721  constraintCase_ = 5;
3722  return this;
3723  }
3732  if (boolXorBuilder_ == null) {
3733  if (constraintCase_ == 5 &&
3736  .mergeFrom(value).buildPartial();
3737  } else {
3738  constraint_ = value;
3739  }
3740  onChanged();
3741  } else {
3742  if (constraintCase_ == 5) {
3743  boolXorBuilder_.mergeFrom(value);
3744  }
3745  boolXorBuilder_.setMessage(value);
3746  }
3747  constraintCase_ = 5;
3748  return this;
3749  }
3758  if (boolXorBuilder_ == null) {
3759  if (constraintCase_ == 5) {
3760  constraintCase_ = 0;
3761  constraint_ = null;
3762  onChanged();
3763  }
3764  } else {
3765  if (constraintCase_ == 5) {
3766  constraintCase_ = 0;
3767  constraint_ = null;
3768  }
3769  boolXorBuilder_.clear();
3770  }
3771  return this;
3772  }
3781  return getBoolXorFieldBuilder().getBuilder();
3782  }
3790  @java.lang.Override
3792  if ((constraintCase_ == 5) && (boolXorBuilder_ != null)) {
3793  return boolXorBuilder_.getMessageOrBuilder();
3794  } else {
3795  if (constraintCase_ == 5) {
3796  return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3797  }
3799  }
3800  }
3808  private com.google.protobuf.SingleFieldBuilderV3<
3810  getBoolXorFieldBuilder() {
3811  if (boolXorBuilder_ == null) {
3812  if (!(constraintCase_ == 5)) {
3814  }
3815  boolXorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
3817  (com.google.ortools.sat.BoolArgumentProto) constraint_,
3818  getParentForChildren(),
3819  isClean());
3820  constraint_ = null;
3821  }
3822  constraintCase_ = 5;
3823  onChanged();;
3824  return boolXorBuilder_;
3825  }
3826 
3827  private com.google.protobuf.SingleFieldBuilderV3<
3838  @java.lang.Override
3839  public boolean hasIntDiv() {
3840  return constraintCase_ == 7;
3841  }
3851  @java.lang.Override
3853  if (intDivBuilder_ == null) {
3854  if (constraintCase_ == 7) {
3855  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
3856  }
3858  } else {
3859  if (constraintCase_ == 7) {
3860  return intDivBuilder_.getMessage();
3861  }
3863  }
3864  }
3874  if (intDivBuilder_ == null) {
3875  if (value == null) {
3876  throw new NullPointerException();
3877  }
3878  constraint_ = value;
3879  onChanged();
3880  } else {
3881  intDivBuilder_.setMessage(value);
3882  }
3883  constraintCase_ = 7;
3884  return this;
3885  }
3895  com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue) {
3896  if (intDivBuilder_ == null) {
3897  constraint_ = builderForValue.build();
3898  onChanged();
3899  } else {
3900  intDivBuilder_.setMessage(builderForValue.build());
3901  }
3902  constraintCase_ = 7;
3903  return this;
3904  }
3914  if (intDivBuilder_ == null) {
3915  if (constraintCase_ == 7 &&
3918  .mergeFrom(value).buildPartial();
3919  } else {
3920  constraint_ = value;
3921  }
3922  onChanged();
3923  } else {
3924  if (constraintCase_ == 7) {
3925  intDivBuilder_.mergeFrom(value);
3926  }
3927  intDivBuilder_.setMessage(value);
3928  }
3929  constraintCase_ = 7;
3930  return this;
3931  }
3941  if (intDivBuilder_ == null) {
3942  if (constraintCase_ == 7) {
3943  constraintCase_ = 0;
3944  constraint_ = null;
3945  onChanged();
3946  }
3947  } else {
3948  if (constraintCase_ == 7) {
3949  constraintCase_ = 0;
3950  constraint_ = null;
3951  }
3952  intDivBuilder_.clear();
3953  }
3954  return this;
3955  }
3965  return getIntDivFieldBuilder().getBuilder();
3966  }
3975  @java.lang.Override
3977  if ((constraintCase_ == 7) && (intDivBuilder_ != null)) {
3978  return intDivBuilder_.getMessageOrBuilder();
3979  } else {
3980  if (constraintCase_ == 7) {
3981  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
3982  }
3984  }
3985  }
3994  private com.google.protobuf.SingleFieldBuilderV3<
3996  getIntDivFieldBuilder() {
3997  if (intDivBuilder_ == null) {
3998  if (!(constraintCase_ == 7)) {
4000  }
4001  intDivBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4003  (com.google.ortools.sat.IntegerArgumentProto) constraint_,
4004  getParentForChildren(),
4005  isClean());
4006  constraint_ = null;
4007  }
4008  constraintCase_ = 7;
4009  onChanged();;
4010  return intDivBuilder_;
4011  }
4012 
4013  private com.google.protobuf.SingleFieldBuilderV3<
4024  @java.lang.Override
4025  public boolean hasIntMod() {
4026  return constraintCase_ == 8;
4027  }
4037  @java.lang.Override
4039  if (intModBuilder_ == null) {
4040  if (constraintCase_ == 8) {
4041  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
4042  }
4044  } else {
4045  if (constraintCase_ == 8) {
4046  return intModBuilder_.getMessage();
4047  }
4049  }
4050  }
4060  if (intModBuilder_ == null) {
4061  if (value == null) {
4062  throw new NullPointerException();
4063  }
4064  constraint_ = value;
4065  onChanged();
4066  } else {
4067  intModBuilder_.setMessage(value);
4068  }
4069  constraintCase_ = 8;
4070  return this;
4071  }
4081  com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue) {
4082  if (intModBuilder_ == null) {
4083  constraint_ = builderForValue.build();
4084  onChanged();
4085  } else {
4086  intModBuilder_.setMessage(builderForValue.build());
4087  }
4088  constraintCase_ = 8;
4089  return this;
4090  }
4100  if (intModBuilder_ == null) {
4101  if (constraintCase_ == 8 &&
4104  .mergeFrom(value).buildPartial();
4105  } else {
4106  constraint_ = value;
4107  }
4108  onChanged();
4109  } else {
4110  if (constraintCase_ == 8) {
4111  intModBuilder_.mergeFrom(value);
4112  }
4113  intModBuilder_.setMessage(value);
4114  }
4115  constraintCase_ = 8;
4116  return this;
4117  }
4127  if (intModBuilder_ == null) {
4128  if (constraintCase_ == 8) {
4129  constraintCase_ = 0;
4130  constraint_ = null;
4131  onChanged();
4132  }
4133  } else {
4134  if (constraintCase_ == 8) {
4135  constraintCase_ = 0;
4136  constraint_ = null;
4137  }
4138  intModBuilder_.clear();
4139  }
4140  return this;
4141  }
4151  return getIntModFieldBuilder().getBuilder();
4152  }
4161  @java.lang.Override
4163  if ((constraintCase_ == 8) && (intModBuilder_ != null)) {
4164  return intModBuilder_.getMessageOrBuilder();
4165  } else {
4166  if (constraintCase_ == 8) {
4167  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
4168  }
4170  }
4171  }
4180  private com.google.protobuf.SingleFieldBuilderV3<
4182  getIntModFieldBuilder() {
4183  if (intModBuilder_ == null) {
4184  if (!(constraintCase_ == 8)) {
4186  }
4187  intModBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4189  (com.google.ortools.sat.IntegerArgumentProto) constraint_,
4190  getParentForChildren(),
4191  isClean());
4192  constraint_ = null;
4193  }
4194  constraintCase_ = 8;
4195  onChanged();;
4196  return intModBuilder_;
4197  }
4198 
4199  private com.google.protobuf.SingleFieldBuilderV3<
4213  @java.lang.Override
4214  public boolean hasIntMax() {
4215  return constraintCase_ == 9;
4216  }
4229  @java.lang.Override
4231  if (intMaxBuilder_ == null) {
4232  if (constraintCase_ == 9) {
4233  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
4234  }
4236  } else {
4237  if (constraintCase_ == 9) {
4238  return intMaxBuilder_.getMessage();
4239  }
4241  }
4242  }
4255  if (intMaxBuilder_ == null) {
4256  if (value == null) {
4257  throw new NullPointerException();
4258  }
4259  constraint_ = value;
4260  onChanged();
4261  } else {
4262  intMaxBuilder_.setMessage(value);
4263  }
4264  constraintCase_ = 9;
4265  return this;
4266  }
4279  com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue) {
4280  if (intMaxBuilder_ == null) {
4281  constraint_ = builderForValue.build();
4282  onChanged();
4283  } else {
4284  intMaxBuilder_.setMessage(builderForValue.build());
4285  }
4286  constraintCase_ = 9;
4287  return this;
4288  }
4301  if (intMaxBuilder_ == null) {
4302  if (constraintCase_ == 9 &&
4305  .mergeFrom(value).buildPartial();
4306  } else {
4307  constraint_ = value;
4308  }
4309  onChanged();
4310  } else {
4311  if (constraintCase_ == 9) {
4312  intMaxBuilder_.mergeFrom(value);
4313  }
4314  intMaxBuilder_.setMessage(value);
4315  }
4316  constraintCase_ = 9;
4317  return this;
4318  }
4331  if (intMaxBuilder_ == null) {
4332  if (constraintCase_ == 9) {
4333  constraintCase_ = 0;
4334  constraint_ = null;
4335  onChanged();
4336  }
4337  } else {
4338  if (constraintCase_ == 9) {
4339  constraintCase_ = 0;
4340  constraint_ = null;
4341  }
4342  intMaxBuilder_.clear();
4343  }
4344  return this;
4345  }
4358  return getIntMaxFieldBuilder().getBuilder();
4359  }
4371  @java.lang.Override
4373  if ((constraintCase_ == 9) && (intMaxBuilder_ != null)) {
4374  return intMaxBuilder_.getMessageOrBuilder();
4375  } else {
4376  if (constraintCase_ == 9) {
4377  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
4378  }
4380  }
4381  }
4393  private com.google.protobuf.SingleFieldBuilderV3<
4395  getIntMaxFieldBuilder() {
4396  if (intMaxBuilder_ == null) {
4397  if (!(constraintCase_ == 9)) {
4399  }
4400  intMaxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4402  (com.google.ortools.sat.IntegerArgumentProto) constraint_,
4403  getParentForChildren(),
4404  isClean());
4405  constraint_ = null;
4406  }
4407  constraintCase_ = 9;
4408  onChanged();;
4409  return intMaxBuilder_;
4410  }
4411 
4412  private com.google.protobuf.SingleFieldBuilderV3<
4418  @java.lang.Override
4419  public boolean hasLinMax() {
4420  return constraintCase_ == 27;
4421  }
4426  @java.lang.Override
4428  if (linMaxBuilder_ == null) {
4429  if (constraintCase_ == 27) {
4430  return (com.google.ortools.sat.LinearArgumentProto) constraint_;
4431  }
4433  } else {
4434  if (constraintCase_ == 27) {
4435  return linMaxBuilder_.getMessage();
4436  }
4438  }
4439  }
4444  if (linMaxBuilder_ == null) {
4445  if (value == null) {
4446  throw new NullPointerException();
4447  }
4448  constraint_ = value;
4449  onChanged();
4450  } else {
4451  linMaxBuilder_.setMessage(value);
4452  }
4453  constraintCase_ = 27;
4454  return this;
4455  }
4460  com.google.ortools.sat.LinearArgumentProto.Builder builderForValue) {
4461  if (linMaxBuilder_ == null) {
4462  constraint_ = builderForValue.build();
4463  onChanged();
4464  } else {
4465  linMaxBuilder_.setMessage(builderForValue.build());
4466  }
4467  constraintCase_ = 27;
4468  return this;
4469  }
4474  if (linMaxBuilder_ == null) {
4475  if (constraintCase_ == 27 &&
4478  .mergeFrom(value).buildPartial();
4479  } else {
4480  constraint_ = value;
4481  }
4482  onChanged();
4483  } else {
4484  if (constraintCase_ == 27) {
4485  linMaxBuilder_.mergeFrom(value);
4486  }
4487  linMaxBuilder_.setMessage(value);
4488  }
4489  constraintCase_ = 27;
4490  return this;
4491  }
4496  if (linMaxBuilder_ == null) {
4497  if (constraintCase_ == 27) {
4498  constraintCase_ = 0;
4499  constraint_ = null;
4500  onChanged();
4501  }
4502  } else {
4503  if (constraintCase_ == 27) {
4504  constraintCase_ = 0;
4505  constraint_ = null;
4506  }
4507  linMaxBuilder_.clear();
4508  }
4509  return this;
4510  }
4515  return getLinMaxFieldBuilder().getBuilder();
4516  }
4520  @java.lang.Override
4522  if ((constraintCase_ == 27) && (linMaxBuilder_ != null)) {
4523  return linMaxBuilder_.getMessageOrBuilder();
4524  } else {
4525  if (constraintCase_ == 27) {
4526  return (com.google.ortools.sat.LinearArgumentProto) constraint_;
4527  }
4529  }
4530  }
4534  private com.google.protobuf.SingleFieldBuilderV3<
4536  getLinMaxFieldBuilder() {
4537  if (linMaxBuilder_ == null) {
4538  if (!(constraintCase_ == 27)) {
4540  }
4541  linMaxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4543  (com.google.ortools.sat.LinearArgumentProto) constraint_,
4544  getParentForChildren(),
4545  isClean());
4546  constraint_ = null;
4547  }
4548  constraintCase_ = 27;
4549  onChanged();;
4550  return linMaxBuilder_;
4551  }
4552 
4553  private com.google.protobuf.SingleFieldBuilderV3<
4567  @java.lang.Override
4568  public boolean hasIntMin() {
4569  return constraintCase_ == 10;
4570  }
4583  @java.lang.Override
4585  if (intMinBuilder_ == null) {
4586  if (constraintCase_ == 10) {
4587  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
4588  }
4590  } else {
4591  if (constraintCase_ == 10) {
4592  return intMinBuilder_.getMessage();
4593  }
4595  }
4596  }
4609  if (intMinBuilder_ == null) {
4610  if (value == null) {
4611  throw new NullPointerException();
4612  }
4613  constraint_ = value;
4614  onChanged();
4615  } else {
4616  intMinBuilder_.setMessage(value);
4617  }
4618  constraintCase_ = 10;
4619  return this;
4620  }
4633  com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue) {
4634  if (intMinBuilder_ == null) {
4635  constraint_ = builderForValue.build();
4636  onChanged();
4637  } else {
4638  intMinBuilder_.setMessage(builderForValue.build());
4639  }
4640  constraintCase_ = 10;
4641  return this;
4642  }
4655  if (intMinBuilder_ == null) {
4656  if (constraintCase_ == 10 &&
4659  .mergeFrom(value).buildPartial();
4660  } else {
4661  constraint_ = value;
4662  }
4663  onChanged();
4664  } else {
4665  if (constraintCase_ == 10) {
4666  intMinBuilder_.mergeFrom(value);
4667  }
4668  intMinBuilder_.setMessage(value);
4669  }
4670  constraintCase_ = 10;
4671  return this;
4672  }
4685  if (intMinBuilder_ == null) {
4686  if (constraintCase_ == 10) {
4687  constraintCase_ = 0;
4688  constraint_ = null;
4689  onChanged();
4690  }
4691  } else {
4692  if (constraintCase_ == 10) {
4693  constraintCase_ = 0;
4694  constraint_ = null;
4695  }
4696  intMinBuilder_.clear();
4697  }
4698  return this;
4699  }
4712  return getIntMinFieldBuilder().getBuilder();
4713  }
4725  @java.lang.Override
4727  if ((constraintCase_ == 10) && (intMinBuilder_ != null)) {
4728  return intMinBuilder_.getMessageOrBuilder();
4729  } else {
4730  if (constraintCase_ == 10) {
4731  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
4732  }
4734  }
4735  }
4747  private com.google.protobuf.SingleFieldBuilderV3<
4749  getIntMinFieldBuilder() {
4750  if (intMinBuilder_ == null) {
4751  if (!(constraintCase_ == 10)) {
4753  }
4754  intMinBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4756  (com.google.ortools.sat.IntegerArgumentProto) constraint_,
4757  getParentForChildren(),
4758  isClean());
4759  constraint_ = null;
4760  }
4761  constraintCase_ = 10;
4762  onChanged();;
4763  return intMinBuilder_;
4764  }
4765 
4766  private com.google.protobuf.SingleFieldBuilderV3<
4772  @java.lang.Override
4773  public boolean hasLinMin() {
4774  return constraintCase_ == 28;
4775  }
4780  @java.lang.Override
4782  if (linMinBuilder_ == null) {
4783  if (constraintCase_ == 28) {
4784  return (com.google.ortools.sat.LinearArgumentProto) constraint_;
4785  }
4787  } else {
4788  if (constraintCase_ == 28) {
4789  return linMinBuilder_.getMessage();
4790  }
4792  }
4793  }
4798  if (linMinBuilder_ == null) {
4799  if (value == null) {
4800  throw new NullPointerException();
4801  }
4802  constraint_ = value;
4803  onChanged();
4804  } else {
4805  linMinBuilder_.setMessage(value);
4806  }
4807  constraintCase_ = 28;
4808  return this;
4809  }
4814  com.google.ortools.sat.LinearArgumentProto.Builder builderForValue) {
4815  if (linMinBuilder_ == null) {
4816  constraint_ = builderForValue.build();
4817  onChanged();
4818  } else {
4819  linMinBuilder_.setMessage(builderForValue.build());
4820  }
4821  constraintCase_ = 28;
4822  return this;
4823  }
4828  if (linMinBuilder_ == null) {
4829  if (constraintCase_ == 28 &&
4832  .mergeFrom(value).buildPartial();
4833  } else {
4834  constraint_ = value;
4835  }
4836  onChanged();
4837  } else {
4838  if (constraintCase_ == 28) {
4839  linMinBuilder_.mergeFrom(value);
4840  }
4841  linMinBuilder_.setMessage(value);
4842  }
4843  constraintCase_ = 28;
4844  return this;
4845  }
4850  if (linMinBuilder_ == null) {
4851  if (constraintCase_ == 28) {
4852  constraintCase_ = 0;
4853  constraint_ = null;
4854  onChanged();
4855  }
4856  } else {
4857  if (constraintCase_ == 28) {
4858  constraintCase_ = 0;
4859  constraint_ = null;
4860  }
4861  linMinBuilder_.clear();
4862  }
4863  return this;
4864  }
4869  return getLinMinFieldBuilder().getBuilder();
4870  }
4874  @java.lang.Override
4876  if ((constraintCase_ == 28) && (linMinBuilder_ != null)) {
4877  return linMinBuilder_.getMessageOrBuilder();
4878  } else {
4879  if (constraintCase_ == 28) {
4880  return (com.google.ortools.sat.LinearArgumentProto) constraint_;
4881  }
4883  }
4884  }
4888  private com.google.protobuf.SingleFieldBuilderV3<
4890  getLinMinFieldBuilder() {
4891  if (linMinBuilder_ == null) {
4892  if (!(constraintCase_ == 28)) {
4894  }
4895  linMinBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4897  (com.google.ortools.sat.LinearArgumentProto) constraint_,
4898  getParentForChildren(),
4899  isClean());
4900  constraint_ = null;
4901  }
4902  constraintCase_ = 28;
4903  onChanged();;
4904  return linMinBuilder_;
4905  }
4906 
4907  private com.google.protobuf.SingleFieldBuilderV3<
4920  @java.lang.Override
4921  public boolean hasIntProd() {
4922  return constraintCase_ == 11;
4923  }
4935  @java.lang.Override
4937  if (intProdBuilder_ == null) {
4938  if (constraintCase_ == 11) {
4939  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
4940  }
4942  } else {
4943  if (constraintCase_ == 11) {
4944  return intProdBuilder_.getMessage();
4945  }
4947  }
4948  }
4960  if (intProdBuilder_ == null) {
4961  if (value == null) {
4962  throw new NullPointerException();
4963  }
4964  constraint_ = value;
4965  onChanged();
4966  } else {
4967  intProdBuilder_.setMessage(value);
4968  }
4969  constraintCase_ = 11;
4970  return this;
4971  }
4983  com.google.ortools.sat.IntegerArgumentProto.Builder builderForValue) {
4984  if (intProdBuilder_ == null) {
4985  constraint_ = builderForValue.build();
4986  onChanged();
4987  } else {
4988  intProdBuilder_.setMessage(builderForValue.build());
4989  }
4990  constraintCase_ = 11;
4991  return this;
4992  }
5004  if (intProdBuilder_ == null) {
5005  if (constraintCase_ == 11 &&
5008  .mergeFrom(value).buildPartial();
5009  } else {
5010  constraint_ = value;
5011  }
5012  onChanged();
5013  } else {
5014  if (constraintCase_ == 11) {
5015  intProdBuilder_.mergeFrom(value);
5016  }
5017  intProdBuilder_.setMessage(value);
5018  }
5019  constraintCase_ = 11;
5020  return this;
5021  }
5033  if (intProdBuilder_ == null) {
5034  if (constraintCase_ == 11) {
5035  constraintCase_ = 0;
5036  constraint_ = null;
5037  onChanged();
5038  }
5039  } else {
5040  if (constraintCase_ == 11) {
5041  constraintCase_ = 0;
5042  constraint_ = null;
5043  }
5044  intProdBuilder_.clear();
5045  }
5046  return this;
5047  }
5059  return getIntProdFieldBuilder().getBuilder();
5060  }
5071  @java.lang.Override
5073  if ((constraintCase_ == 11) && (intProdBuilder_ != null)) {
5074  return intProdBuilder_.getMessageOrBuilder();
5075  } else {
5076  if (constraintCase_ == 11) {
5077  return (com.google.ortools.sat.IntegerArgumentProto) constraint_;
5078  }
5080  }
5081  }
5092  private com.google.protobuf.SingleFieldBuilderV3<
5094  getIntProdFieldBuilder() {
5095  if (intProdBuilder_ == null) {
5096  if (!(constraintCase_ == 11)) {
5098  }
5099  intProdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5101  (com.google.ortools.sat.IntegerArgumentProto) constraint_,
5102  getParentForChildren(),
5103  isClean());
5104  constraint_ = null;
5105  }
5106  constraintCase_ = 11;
5107  onChanged();;
5108  return intProdBuilder_;
5109  }
5110 
5111  private com.google.protobuf.SingleFieldBuilderV3<
5122  @java.lang.Override
5123  public boolean hasLinear() {
5124  return constraintCase_ == 12;
5125  }
5135  @java.lang.Override
5137  if (linearBuilder_ == null) {
5138  if (constraintCase_ == 12) {
5139  return (com.google.ortools.sat.LinearConstraintProto) constraint_;
5140  }
5142  } else {
5143  if (constraintCase_ == 12) {
5144  return linearBuilder_.getMessage();
5145  }
5147  }
5148  }
5158  if (linearBuilder_ == null) {
5159  if (value == null) {
5160  throw new NullPointerException();
5161  }
5162  constraint_ = value;
5163  onChanged();
5164  } else {
5165  linearBuilder_.setMessage(value);
5166  }
5167  constraintCase_ = 12;
5168  return this;
5169  }
5179  com.google.ortools.sat.LinearConstraintProto.Builder builderForValue) {
5180  if (linearBuilder_ == null) {
5181  constraint_ = builderForValue.build();
5182  onChanged();
5183  } else {
5184  linearBuilder_.setMessage(builderForValue.build());
5185  }
5186  constraintCase_ = 12;
5187  return this;
5188  }
5198  if (linearBuilder_ == null) {
5199  if (constraintCase_ == 12 &&
5202  .mergeFrom(value).buildPartial();
5203  } else {
5204  constraint_ = value;
5205  }
5206  onChanged();
5207  } else {
5208  if (constraintCase_ == 12) {
5209  linearBuilder_.mergeFrom(value);
5210  }
5211  linearBuilder_.setMessage(value);
5212  }
5213  constraintCase_ = 12;
5214  return this;
5215  }
5225  if (linearBuilder_ == null) {
5226  if (constraintCase_ == 12) {
5227  constraintCase_ = 0;
5228  constraint_ = null;
5229  onChanged();
5230  }
5231  } else {
5232  if (constraintCase_ == 12) {
5233  constraintCase_ = 0;
5234  constraint_ = null;
5235  }
5236  linearBuilder_.clear();
5237  }
5238  return this;
5239  }
5249  return getLinearFieldBuilder().getBuilder();
5250  }
5259  @java.lang.Override
5261  if ((constraintCase_ == 12) && (linearBuilder_ != null)) {
5262  return linearBuilder_.getMessageOrBuilder();
5263  } else {
5264  if (constraintCase_ == 12) {
5265  return (com.google.ortools.sat.LinearConstraintProto) constraint_;
5266  }
5268  }
5269  }
5278  private com.google.protobuf.SingleFieldBuilderV3<
5280  getLinearFieldBuilder() {
5281  if (linearBuilder_ == null) {
5282  if (!(constraintCase_ == 12)) {
5284  }
5285  linearBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5287  (com.google.ortools.sat.LinearConstraintProto) constraint_,
5288  getParentForChildren(),
5289  isClean());
5290  constraint_ = null;
5291  }
5292  constraintCase_ = 12;
5293  onChanged();;
5294  return linearBuilder_;
5295  }
5296 
5297  private com.google.protobuf.SingleFieldBuilderV3<
5307  @java.lang.Override
5308  public boolean hasAllDiff() {
5309  return constraintCase_ == 13;
5310  }
5319  @java.lang.Override
5321  if (allDiffBuilder_ == null) {
5322  if (constraintCase_ == 13) {
5323  return (com.google.ortools.sat.AllDifferentConstraintProto) constraint_;
5324  }
5326  } else {
5327  if (constraintCase_ == 13) {
5328  return allDiffBuilder_.getMessage();
5329  }
5331  }
5332  }
5341  if (allDiffBuilder_ == null) {
5342  if (value == null) {
5343  throw new NullPointerException();
5344  }
5345  constraint_ = value;
5346  onChanged();
5347  } else {
5348  allDiffBuilder_.setMessage(value);
5349  }
5350  constraintCase_ = 13;
5351  return this;
5352  }
5362  if (allDiffBuilder_ == null) {
5363  constraint_ = builderForValue.build();
5364  onChanged();
5365  } else {
5366  allDiffBuilder_.setMessage(builderForValue.build());
5367  }
5368  constraintCase_ = 13;
5369  return this;
5370  }
5379  if (allDiffBuilder_ == null) {
5380  if (constraintCase_ == 13 &&
5383  .mergeFrom(value).buildPartial();
5384  } else {
5385  constraint_ = value;
5386  }
5387  onChanged();
5388  } else {
5389  if (constraintCase_ == 13) {
5390  allDiffBuilder_.mergeFrom(value);
5391  }
5392  allDiffBuilder_.setMessage(value);
5393  }
5394  constraintCase_ = 13;
5395  return this;
5396  }
5405  if (allDiffBuilder_ == null) {
5406  if (constraintCase_ == 13) {
5407  constraintCase_ = 0;
5408  constraint_ = null;
5409  onChanged();
5410  }
5411  } else {
5412  if (constraintCase_ == 13) {
5413  constraintCase_ = 0;
5414  constraint_ = null;
5415  }
5416  allDiffBuilder_.clear();
5417  }
5418  return this;
5419  }
5428  return getAllDiffFieldBuilder().getBuilder();
5429  }
5437  @java.lang.Override
5439  if ((constraintCase_ == 13) && (allDiffBuilder_ != null)) {
5440  return allDiffBuilder_.getMessageOrBuilder();
5441  } else {
5442  if (constraintCase_ == 13) {
5443  return (com.google.ortools.sat.AllDifferentConstraintProto) constraint_;
5444  }
5446  }
5447  }
5455  private com.google.protobuf.SingleFieldBuilderV3<
5457  getAllDiffFieldBuilder() {
5458  if (allDiffBuilder_ == null) {
5459  if (!(constraintCase_ == 13)) {
5461  }
5462  allDiffBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5465  getParentForChildren(),
5466  isClean());
5467  constraint_ = null;
5468  }
5469  constraintCase_ = 13;
5470  onChanged();;
5471  return allDiffBuilder_;
5472  }
5473 
5474  private com.google.protobuf.SingleFieldBuilderV3<
5485  @java.lang.Override
5486  public boolean hasElement() {
5487  return constraintCase_ == 14;
5488  }
5498  @java.lang.Override
5500  if (elementBuilder_ == null) {
5501  if (constraintCase_ == 14) {
5502  return (com.google.ortools.sat.ElementConstraintProto) constraint_;
5503  }
5505  } else {
5506  if (constraintCase_ == 14) {
5507  return elementBuilder_.getMessage();
5508  }
5510  }
5511  }
5521  if (elementBuilder_ == null) {
5522  if (value == null) {
5523  throw new NullPointerException();
5524  }
5525  constraint_ = value;
5526  onChanged();
5527  } else {
5528  elementBuilder_.setMessage(value);
5529  }
5530  constraintCase_ = 14;
5531  return this;
5532  }
5542  com.google.ortools.sat.ElementConstraintProto.Builder builderForValue) {
5543  if (elementBuilder_ == null) {
5544  constraint_ = builderForValue.build();
5545  onChanged();
5546  } else {
5547  elementBuilder_.setMessage(builderForValue.build());
5548  }
5549  constraintCase_ = 14;
5550  return this;
5551  }
5561  if (elementBuilder_ == null) {
5562  if (constraintCase_ == 14 &&
5565  .mergeFrom(value).buildPartial();
5566  } else {
5567  constraint_ = value;
5568  }
5569  onChanged();
5570  } else {
5571  if (constraintCase_ == 14) {
5572  elementBuilder_.mergeFrom(value);
5573  }
5574  elementBuilder_.setMessage(value);
5575  }
5576  constraintCase_ = 14;
5577  return this;
5578  }
5588  if (elementBuilder_ == null) {
5589  if (constraintCase_ == 14) {
5590  constraintCase_ = 0;
5591  constraint_ = null;
5592  onChanged();
5593  }
5594  } else {
5595  if (constraintCase_ == 14) {
5596  constraintCase_ = 0;
5597  constraint_ = null;
5598  }
5599  elementBuilder_.clear();
5600  }
5601  return this;
5602  }
5612  return getElementFieldBuilder().getBuilder();
5613  }
5622  @java.lang.Override
5624  if ((constraintCase_ == 14) && (elementBuilder_ != null)) {
5625  return elementBuilder_.getMessageOrBuilder();
5626  } else {
5627  if (constraintCase_ == 14) {
5628  return (com.google.ortools.sat.ElementConstraintProto) constraint_;
5629  }
5631  }
5632  }
5641  private com.google.protobuf.SingleFieldBuilderV3<
5643  getElementFieldBuilder() {
5644  if (elementBuilder_ == null) {
5645  if (!(constraintCase_ == 14)) {
5647  }
5648  elementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5651  getParentForChildren(),
5652  isClean());
5653  constraint_ = null;
5654  }
5655  constraintCase_ = 14;
5656  onChanged();;
5657  return elementBuilder_;
5658  }
5659 
5660  private com.google.protobuf.SingleFieldBuilderV3<
5671  @java.lang.Override
5672  public boolean hasCircuit() {
5673  return constraintCase_ == 15;
5674  }
5684  @java.lang.Override
5686  if (circuitBuilder_ == null) {
5687  if (constraintCase_ == 15) {
5688  return (com.google.ortools.sat.CircuitConstraintProto) constraint_;
5689  }
5691  } else {
5692  if (constraintCase_ == 15) {
5693  return circuitBuilder_.getMessage();
5694  }
5696  }
5697  }
5707  if (circuitBuilder_ == null) {
5708  if (value == null) {
5709  throw new NullPointerException();
5710  }
5711  constraint_ = value;
5712  onChanged();
5713  } else {
5714  circuitBuilder_.setMessage(value);
5715  }
5716  constraintCase_ = 15;
5717  return this;
5718  }
5728  com.google.ortools.sat.CircuitConstraintProto.Builder builderForValue) {
5729  if (circuitBuilder_ == null) {
5730  constraint_ = builderForValue.build();
5731  onChanged();
5732  } else {
5733  circuitBuilder_.setMessage(builderForValue.build());
5734  }
5735  constraintCase_ = 15;
5736  return this;
5737  }
5747  if (circuitBuilder_ == null) {
5748  if (constraintCase_ == 15 &&
5751  .mergeFrom(value).buildPartial();
5752  } else {
5753  constraint_ = value;
5754  }
5755  onChanged();
5756  } else {
5757  if (constraintCase_ == 15) {
5758  circuitBuilder_.mergeFrom(value);
5759  }
5760  circuitBuilder_.setMessage(value);
5761  }
5762  constraintCase_ = 15;
5763  return this;
5764  }
5774  if (circuitBuilder_ == null) {
5775  if (constraintCase_ == 15) {
5776  constraintCase_ = 0;
5777  constraint_ = null;
5778  onChanged();
5779  }
5780  } else {
5781  if (constraintCase_ == 15) {
5782  constraintCase_ = 0;
5783  constraint_ = null;
5784  }
5785  circuitBuilder_.clear();
5786  }
5787  return this;
5788  }
5798  return getCircuitFieldBuilder().getBuilder();
5799  }
5808  @java.lang.Override
5810  if ((constraintCase_ == 15) && (circuitBuilder_ != null)) {
5811  return circuitBuilder_.getMessageOrBuilder();
5812  } else {
5813  if (constraintCase_ == 15) {
5814  return (com.google.ortools.sat.CircuitConstraintProto) constraint_;
5815  }
5817  }
5818  }
5827  private com.google.protobuf.SingleFieldBuilderV3<
5829  getCircuitFieldBuilder() {
5830  if (circuitBuilder_ == null) {
5831  if (!(constraintCase_ == 15)) {
5833  }
5834  circuitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
5837  getParentForChildren(),
5838  isClean());
5839  constraint_ = null;
5840  }
5841  constraintCase_ = 15;
5842  onChanged();;
5843  return circuitBuilder_;
5844  }
5845 
5846  private com.google.protobuf.SingleFieldBuilderV3<
5856  @java.lang.Override
5857  public boolean hasRoutes() {
5858  return constraintCase_ == 23;
5859  }
5868  @java.lang.Override
5870  if (routesBuilder_ == null) {
5871  if (constraintCase_ == 23) {
5872  return (com.google.ortools.sat.RoutesConstraintProto) constraint_;
5873  }
5875  } else {
5876  if (constraintCase_ == 23) {
5877  return routesBuilder_.getMessage();
5878  }
5880  }
5881  }
5890  if (routesBuilder_ == null) {
5891  if (value == null) {
5892  throw new NullPointerException();
5893  }
5894  constraint_ = value;
5895  onChanged();
5896  } else {
5897  routesBuilder_.setMessage(value);
5898  }
5899  constraintCase_ = 23;
5900  return this;
5901  }
5910  com.google.ortools.sat.RoutesConstraintProto.Builder builderForValue) {
5911  if (routesBuilder_ == null) {
5912  constraint_ = builderForValue.build();
5913  onChanged();
5914  } else {
5915  routesBuilder_.setMessage(builderForValue.build());
5916  }
5917  constraintCase_ = 23;
5918  return this;
5919  }
5928  if (routesBuilder_ == null) {
5929  if (constraintCase_ == 23 &&
5932  .mergeFrom(value).buildPartial();
5933  } else {
5934  constraint_ = value;
5935  }
5936  onChanged();
5937  } else {
5938  if (constraintCase_ == 23) {
5939  routesBuilder_.mergeFrom(value);
5940  }
5941  routesBuilder_.setMessage(value);
5942  }
5943  constraintCase_ = 23;
5944  return this;
5945  }
5954  if (routesBuilder_ == null) {
5955  if (constraintCase_ == 23) {
5956  constraintCase_ = 0;
5957  constraint_ = null;
5958  onChanged();
5959  }
5960  } else {
5961  if (constraintCase_ == 23) {
5962  constraintCase_ = 0;
5963  constraint_ = null;
5964  }
5965  routesBuilder_.clear();
5966  }
5967  return this;
5968  }
5977  return getRoutesFieldBuilder().getBuilder();
5978  }
5986  @java.lang.Override
5988  if ((constraintCase_ == 23) && (routesBuilder_ != null)) {
5989  return routesBuilder_.getMessageOrBuilder();
5990  } else {
5991  if (constraintCase_ == 23) {
5992  return (com.google.ortools.sat.RoutesConstraintProto) constraint_;
5993  }
5995  }
5996  }
6004  private com.google.protobuf.SingleFieldBuilderV3<
6006  getRoutesFieldBuilder() {
6007  if (routesBuilder_ == null) {
6008  if (!(constraintCase_ == 23)) {
6010  }
6011  routesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6013  (com.google.ortools.sat.RoutesConstraintProto) constraint_,
6014  getParentForChildren(),
6015  isClean());
6016  constraint_ = null;
6017  }
6018  constraintCase_ = 23;
6019  onChanged();;
6020  return routesBuilder_;
6021  }
6022 
6023  private com.google.protobuf.SingleFieldBuilderV3<
6034  @java.lang.Override
6035  public boolean hasTable() {
6036  return constraintCase_ == 16;
6037  }
6047  @java.lang.Override
6049  if (tableBuilder_ == null) {
6050  if (constraintCase_ == 16) {
6051  return (com.google.ortools.sat.TableConstraintProto) constraint_;
6052  }
6054  } else {
6055  if (constraintCase_ == 16) {
6056  return tableBuilder_.getMessage();
6057  }
6059  }
6060  }
6070  if (tableBuilder_ == null) {
6071  if (value == null) {
6072  throw new NullPointerException();
6073  }
6074  constraint_ = value;
6075  onChanged();
6076  } else {
6077  tableBuilder_.setMessage(value);
6078  }
6079  constraintCase_ = 16;
6080  return this;
6081  }
6091  com.google.ortools.sat.TableConstraintProto.Builder builderForValue) {
6092  if (tableBuilder_ == null) {
6093  constraint_ = builderForValue.build();
6094  onChanged();
6095  } else {
6096  tableBuilder_.setMessage(builderForValue.build());
6097  }
6098  constraintCase_ = 16;
6099  return this;
6100  }
6110  if (tableBuilder_ == null) {
6111  if (constraintCase_ == 16 &&
6114  .mergeFrom(value).buildPartial();
6115  } else {
6116  constraint_ = value;
6117  }
6118  onChanged();
6119  } else {
6120  if (constraintCase_ == 16) {
6121  tableBuilder_.mergeFrom(value);
6122  }
6123  tableBuilder_.setMessage(value);
6124  }
6125  constraintCase_ = 16;
6126  return this;
6127  }
6136  public Builder clearTable() {
6137  if (tableBuilder_ == null) {
6138  if (constraintCase_ == 16) {
6139  constraintCase_ = 0;
6140  constraint_ = null;
6141  onChanged();
6142  }
6143  } else {
6144  if (constraintCase_ == 16) {
6145  constraintCase_ = 0;
6146  constraint_ = null;
6147  }
6148  tableBuilder_.clear();
6149  }
6150  return this;
6151  }
6161  return getTableFieldBuilder().getBuilder();
6162  }
6171  @java.lang.Override
6173  if ((constraintCase_ == 16) && (tableBuilder_ != null)) {
6174  return tableBuilder_.getMessageOrBuilder();
6175  } else {
6176  if (constraintCase_ == 16) {
6177  return (com.google.ortools.sat.TableConstraintProto) constraint_;
6178  }
6180  }
6181  }
6190  private com.google.protobuf.SingleFieldBuilderV3<
6192  getTableFieldBuilder() {
6193  if (tableBuilder_ == null) {
6194  if (!(constraintCase_ == 16)) {
6196  }
6197  tableBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6199  (com.google.ortools.sat.TableConstraintProto) constraint_,
6200  getParentForChildren(),
6201  isClean());
6202  constraint_ = null;
6203  }
6204  constraintCase_ = 16;
6205  onChanged();;
6206  return tableBuilder_;
6207  }
6208 
6209  private com.google.protobuf.SingleFieldBuilderV3<
6220  @java.lang.Override
6221  public boolean hasAutomaton() {
6222  return constraintCase_ == 17;
6223  }
6233  @java.lang.Override
6235  if (automatonBuilder_ == null) {
6236  if (constraintCase_ == 17) {
6237  return (com.google.ortools.sat.AutomatonConstraintProto) constraint_;
6238  }
6240  } else {
6241  if (constraintCase_ == 17) {
6242  return automatonBuilder_.getMessage();
6243  }
6245  }
6246  }
6256  if (automatonBuilder_ == null) {
6257  if (value == null) {
6258  throw new NullPointerException();
6259  }
6260  constraint_ = value;
6261  onChanged();
6262  } else {
6263  automatonBuilder_.setMessage(value);
6264  }
6265  constraintCase_ = 17;
6266  return this;
6267  }
6278  if (automatonBuilder_ == null) {
6279  constraint_ = builderForValue.build();
6280  onChanged();
6281  } else {
6282  automatonBuilder_.setMessage(builderForValue.build());
6283  }
6284  constraintCase_ = 17;
6285  return this;
6286  }
6296  if (automatonBuilder_ == null) {
6297  if (constraintCase_ == 17 &&
6300  .mergeFrom(value).buildPartial();
6301  } else {
6302  constraint_ = value;
6303  }
6304  onChanged();
6305  } else {
6306  if (constraintCase_ == 17) {
6307  automatonBuilder_.mergeFrom(value);
6308  }
6309  automatonBuilder_.setMessage(value);
6310  }
6311  constraintCase_ = 17;
6312  return this;
6313  }
6323  if (automatonBuilder_ == null) {
6324  if (constraintCase_ == 17) {
6325  constraintCase_ = 0;
6326  constraint_ = null;
6327  onChanged();
6328  }
6329  } else {
6330  if (constraintCase_ == 17) {
6331  constraintCase_ = 0;
6332  constraint_ = null;
6333  }
6334  automatonBuilder_.clear();
6335  }
6336  return this;
6337  }
6347  return getAutomatonFieldBuilder().getBuilder();
6348  }
6357  @java.lang.Override
6359  if ((constraintCase_ == 17) && (automatonBuilder_ != null)) {
6360  return automatonBuilder_.getMessageOrBuilder();
6361  } else {
6362  if (constraintCase_ == 17) {
6363  return (com.google.ortools.sat.AutomatonConstraintProto) constraint_;
6364  }
6366  }
6367  }
6376  private com.google.protobuf.SingleFieldBuilderV3<
6378  getAutomatonFieldBuilder() {
6379  if (automatonBuilder_ == null) {
6380  if (!(constraintCase_ == 17)) {
6382  }
6383  automatonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6386  getParentForChildren(),
6387  isClean());
6388  constraint_ = null;
6389  }
6390  constraintCase_ = 17;
6391  onChanged();;
6392  return automatonBuilder_;
6393  }
6394 
6395  private com.google.protobuf.SingleFieldBuilderV3<
6406  @java.lang.Override
6407  public boolean hasInverse() {
6408  return constraintCase_ == 18;
6409  }
6419  @java.lang.Override
6421  if (inverseBuilder_ == null) {
6422  if (constraintCase_ == 18) {
6423  return (com.google.ortools.sat.InverseConstraintProto) constraint_;
6424  }
6426  } else {
6427  if (constraintCase_ == 18) {
6428  return inverseBuilder_.getMessage();
6429  }
6431  }
6432  }
6442  if (inverseBuilder_ == null) {
6443  if (value == null) {
6444  throw new NullPointerException();
6445  }
6446  constraint_ = value;
6447  onChanged();
6448  } else {
6449  inverseBuilder_.setMessage(value);
6450  }
6451  constraintCase_ = 18;
6452  return this;
6453  }
6463  com.google.ortools.sat.InverseConstraintProto.Builder builderForValue) {
6464  if (inverseBuilder_ == null) {
6465  constraint_ = builderForValue.build();
6466  onChanged();
6467  } else {
6468  inverseBuilder_.setMessage(builderForValue.build());
6469  }
6470  constraintCase_ = 18;
6471  return this;
6472  }
6482  if (inverseBuilder_ == null) {
6483  if (constraintCase_ == 18 &&
6486  .mergeFrom(value).buildPartial();
6487  } else {
6488  constraint_ = value;
6489  }
6490  onChanged();
6491  } else {
6492  if (constraintCase_ == 18) {
6493  inverseBuilder_.mergeFrom(value);
6494  }
6495  inverseBuilder_.setMessage(value);
6496  }
6497  constraintCase_ = 18;
6498  return this;
6499  }
6509  if (inverseBuilder_ == null) {
6510  if (constraintCase_ == 18) {
6511  constraintCase_ = 0;
6512  constraint_ = null;
6513  onChanged();
6514  }
6515  } else {
6516  if (constraintCase_ == 18) {
6517  constraintCase_ = 0;
6518  constraint_ = null;
6519  }
6520  inverseBuilder_.clear();
6521  }
6522  return this;
6523  }
6533  return getInverseFieldBuilder().getBuilder();
6534  }
6543  @java.lang.Override
6545  if ((constraintCase_ == 18) && (inverseBuilder_ != null)) {
6546  return inverseBuilder_.getMessageOrBuilder();
6547  } else {
6548  if (constraintCase_ == 18) {
6549  return (com.google.ortools.sat.InverseConstraintProto) constraint_;
6550  }
6552  }
6553  }
6562  private com.google.protobuf.SingleFieldBuilderV3<
6564  getInverseFieldBuilder() {
6565  if (inverseBuilder_ == null) {
6566  if (!(constraintCase_ == 18)) {
6568  }
6569  inverseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6572  getParentForChildren(),
6573  isClean());
6574  constraint_ = null;
6575  }
6576  constraintCase_ = 18;
6577  onChanged();;
6578  return inverseBuilder_;
6579  }
6580 
6581  private com.google.protobuf.SingleFieldBuilderV3<
6593  @java.lang.Override
6594  public boolean hasReservoir() {
6595  return constraintCase_ == 24;
6596  }
6607  @java.lang.Override
6609  if (reservoirBuilder_ == null) {
6610  if (constraintCase_ == 24) {
6611  return (com.google.ortools.sat.ReservoirConstraintProto) constraint_;
6612  }
6614  } else {
6615  if (constraintCase_ == 24) {
6616  return reservoirBuilder_.getMessage();
6617  }
6619  }
6620  }
6631  if (reservoirBuilder_ == null) {
6632  if (value == null) {
6633  throw new NullPointerException();
6634  }
6635  constraint_ = value;
6636  onChanged();
6637  } else {
6638  reservoirBuilder_.setMessage(value);
6639  }
6640  constraintCase_ = 24;
6641  return this;
6642  }
6654  if (reservoirBuilder_ == null) {
6655  constraint_ = builderForValue.build();
6656  onChanged();
6657  } else {
6658  reservoirBuilder_.setMessage(builderForValue.build());
6659  }
6660  constraintCase_ = 24;
6661  return this;
6662  }
6673  if (reservoirBuilder_ == null) {
6674  if (constraintCase_ == 24 &&
6677  .mergeFrom(value).buildPartial();
6678  } else {
6679  constraint_ = value;
6680  }
6681  onChanged();
6682  } else {
6683  if (constraintCase_ == 24) {
6684  reservoirBuilder_.mergeFrom(value);
6685  }
6686  reservoirBuilder_.setMessage(value);
6687  }
6688  constraintCase_ = 24;
6689  return this;
6690  }
6701  if (reservoirBuilder_ == null) {
6702  if (constraintCase_ == 24) {
6703  constraintCase_ = 0;
6704  constraint_ = null;
6705  onChanged();
6706  }
6707  } else {
6708  if (constraintCase_ == 24) {
6709  constraintCase_ = 0;
6710  constraint_ = null;
6711  }
6712  reservoirBuilder_.clear();
6713  }
6714  return this;
6715  }
6726  return getReservoirFieldBuilder().getBuilder();
6727  }
6737  @java.lang.Override
6739  if ((constraintCase_ == 24) && (reservoirBuilder_ != null)) {
6740  return reservoirBuilder_.getMessageOrBuilder();
6741  } else {
6742  if (constraintCase_ == 24) {
6743  return (com.google.ortools.sat.ReservoirConstraintProto) constraint_;
6744  }
6746  }
6747  }
6757  private com.google.protobuf.SingleFieldBuilderV3<
6759  getReservoirFieldBuilder() {
6760  if (reservoirBuilder_ == null) {
6761  if (!(constraintCase_ == 24)) {
6763  }
6764  reservoirBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6767  getParentForChildren(),
6768  isClean());
6769  constraint_ = null;
6770  }
6771  constraintCase_ = 24;
6772  onChanged();;
6773  return reservoirBuilder_;
6774  }
6775 
6776  private com.google.protobuf.SingleFieldBuilderV3<
6787  @java.lang.Override
6788  public boolean hasInterval() {
6789  return constraintCase_ == 19;
6790  }
6800  @java.lang.Override
6802  if (intervalBuilder_ == null) {
6803  if (constraintCase_ == 19) {
6804  return (com.google.ortools.sat.IntervalConstraintProto) constraint_;
6805  }
6807  } else {
6808  if (constraintCase_ == 19) {
6809  return intervalBuilder_.getMessage();
6810  }
6812  }
6813  }
6823  if (intervalBuilder_ == null) {
6824  if (value == null) {
6825  throw new NullPointerException();
6826  }
6827  constraint_ = value;
6828  onChanged();
6829  } else {
6830  intervalBuilder_.setMessage(value);
6831  }
6832  constraintCase_ = 19;
6833  return this;
6834  }
6845  if (intervalBuilder_ == null) {
6846  constraint_ = builderForValue.build();
6847  onChanged();
6848  } else {
6849  intervalBuilder_.setMessage(builderForValue.build());
6850  }
6851  constraintCase_ = 19;
6852  return this;
6853  }
6863  if (intervalBuilder_ == null) {
6864  if (constraintCase_ == 19 &&
6867  .mergeFrom(value).buildPartial();
6868  } else {
6869  constraint_ = value;
6870  }
6871  onChanged();
6872  } else {
6873  if (constraintCase_ == 19) {
6874  intervalBuilder_.mergeFrom(value);
6875  }
6876  intervalBuilder_.setMessage(value);
6877  }
6878  constraintCase_ = 19;
6879  return this;
6880  }
6890  if (intervalBuilder_ == null) {
6891  if (constraintCase_ == 19) {
6892  constraintCase_ = 0;
6893  constraint_ = null;
6894  onChanged();
6895  }
6896  } else {
6897  if (constraintCase_ == 19) {
6898  constraintCase_ = 0;
6899  constraint_ = null;
6900  }
6901  intervalBuilder_.clear();
6902  }
6903  return this;
6904  }
6914  return getIntervalFieldBuilder().getBuilder();
6915  }
6924  @java.lang.Override
6926  if ((constraintCase_ == 19) && (intervalBuilder_ != null)) {
6927  return intervalBuilder_.getMessageOrBuilder();
6928  } else {
6929  if (constraintCase_ == 19) {
6930  return (com.google.ortools.sat.IntervalConstraintProto) constraint_;
6931  }
6933  }
6934  }
6943  private com.google.protobuf.SingleFieldBuilderV3<
6945  getIntervalFieldBuilder() {
6946  if (intervalBuilder_ == null) {
6947  if (!(constraintCase_ == 19)) {
6949  }
6950  intervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
6953  getParentForChildren(),
6954  isClean());
6955  constraint_ = null;
6956  }
6957  constraintCase_ = 19;
6958  onChanged();;
6959  return intervalBuilder_;
6960  }
6961 
6962  private com.google.protobuf.SingleFieldBuilderV3<
6974  @java.lang.Override
6975  public boolean hasNoOverlap() {
6976  return constraintCase_ == 20;
6977  }
6988  @java.lang.Override
6990  if (noOverlapBuilder_ == null) {
6991  if (constraintCase_ == 20) {
6992  return (com.google.ortools.sat.NoOverlapConstraintProto) constraint_;
6993  }
6995  } else {
6996  if (constraintCase_ == 20) {
6997  return noOverlapBuilder_.getMessage();
6998  }
7000  }
7001  }
7012  if (noOverlapBuilder_ == null) {
7013  if (value == null) {
7014  throw new NullPointerException();
7015  }
7016  constraint_ = value;
7017  onChanged();
7018  } else {
7019  noOverlapBuilder_.setMessage(value);
7020  }
7021  constraintCase_ = 20;
7022  return this;
7023  }
7035  if (noOverlapBuilder_ == null) {
7036  constraint_ = builderForValue.build();
7037  onChanged();
7038  } else {
7039  noOverlapBuilder_.setMessage(builderForValue.build());
7040  }
7041  constraintCase_ = 20;
7042  return this;
7043  }
7054  if (noOverlapBuilder_ == null) {
7055  if (constraintCase_ == 20 &&
7058  .mergeFrom(value).buildPartial();
7059  } else {
7060  constraint_ = value;
7061  }
7062  onChanged();
7063  } else {
7064  if (constraintCase_ == 20) {
7065  noOverlapBuilder_.mergeFrom(value);
7066  }
7067  noOverlapBuilder_.setMessage(value);
7068  }
7069  constraintCase_ = 20;
7070  return this;
7071  }
7082  if (noOverlapBuilder_ == null) {
7083  if (constraintCase_ == 20) {
7084  constraintCase_ = 0;
7085  constraint_ = null;
7086  onChanged();
7087  }
7088  } else {
7089  if (constraintCase_ == 20) {
7090  constraintCase_ = 0;
7091  constraint_ = null;
7092  }
7093  noOverlapBuilder_.clear();
7094  }
7095  return this;
7096  }
7107  return getNoOverlapFieldBuilder().getBuilder();
7108  }
7118  @java.lang.Override
7120  if ((constraintCase_ == 20) && (noOverlapBuilder_ != null)) {
7121  return noOverlapBuilder_.getMessageOrBuilder();
7122  } else {
7123  if (constraintCase_ == 20) {
7124  return (com.google.ortools.sat.NoOverlapConstraintProto) constraint_;
7125  }
7127  }
7128  }
7138  private com.google.protobuf.SingleFieldBuilderV3<
7140  getNoOverlapFieldBuilder() {
7141  if (noOverlapBuilder_ == null) {
7142  if (!(constraintCase_ == 20)) {
7144  }
7145  noOverlapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
7148  getParentForChildren(),
7149  isClean());
7150  constraint_ = null;
7151  }
7152  constraintCase_ = 20;
7153  onChanged();;
7154  return noOverlapBuilder_;
7155  }
7156 
7157  private com.google.protobuf.SingleFieldBuilderV3<
7167  @java.lang.Override
7168  public boolean hasNoOverlap2D() {
7169  return constraintCase_ == 21;
7170  }
7179  @java.lang.Override
7181  if (noOverlap2DBuilder_ == null) {
7182  if (constraintCase_ == 21) {
7183  return (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_;
7184  }
7186  } else {
7187  if (constraintCase_ == 21) {
7188  return noOverlap2DBuilder_.getMessage();
7189  }
7191  }
7192  }
7201  if (noOverlap2DBuilder_ == null) {
7202  if (value == null) {
7203  throw new NullPointerException();
7204  }
7205  constraint_ = value;
7206  onChanged();
7207  } else {
7208  noOverlap2DBuilder_.setMessage(value);
7209  }
7210  constraintCase_ = 21;
7211  return this;
7212  }
7222  if (noOverlap2DBuilder_ == null) {
7223  constraint_ = builderForValue.build();
7224  onChanged();
7225  } else {
7226  noOverlap2DBuilder_.setMessage(builderForValue.build());
7227  }
7228  constraintCase_ = 21;
7229  return this;
7230  }
7239  if (noOverlap2DBuilder_ == null) {
7240  if (constraintCase_ == 21 &&
7243  .mergeFrom(value).buildPartial();
7244  } else {
7245  constraint_ = value;
7246  }
7247  onChanged();
7248  } else {
7249  if (constraintCase_ == 21) {
7250  noOverlap2DBuilder_.mergeFrom(value);
7251  }
7252  noOverlap2DBuilder_.setMessage(value);
7253  }
7254  constraintCase_ = 21;
7255  return this;
7256  }
7265  if (noOverlap2DBuilder_ == null) {
7266  if (constraintCase_ == 21) {
7267  constraintCase_ = 0;
7268  constraint_ = null;
7269  onChanged();
7270  }
7271  } else {
7272  if (constraintCase_ == 21) {
7273  constraintCase_ = 0;
7274  constraint_ = null;
7275  }
7276  noOverlap2DBuilder_.clear();
7277  }
7278  return this;
7279  }
7288  return getNoOverlap2DFieldBuilder().getBuilder();
7289  }
7297  @java.lang.Override
7299  if ((constraintCase_ == 21) && (noOverlap2DBuilder_ != null)) {
7300  return noOverlap2DBuilder_.getMessageOrBuilder();
7301  } else {
7302  if (constraintCase_ == 21) {
7303  return (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_;
7304  }
7306  }
7307  }
7315  private com.google.protobuf.SingleFieldBuilderV3<
7317  getNoOverlap2DFieldBuilder() {
7318  if (noOverlap2DBuilder_ == null) {
7319  if (!(constraintCase_ == 21)) {
7321  }
7322  noOverlap2DBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
7325  getParentForChildren(),
7326  isClean());
7327  constraint_ = null;
7328  }
7329  constraintCase_ = 21;
7330  onChanged();;
7331  return noOverlap2DBuilder_;
7332  }
7333 
7334  private com.google.protobuf.SingleFieldBuilderV3<
7346  @java.lang.Override
7347  public boolean hasCumulative() {
7348  return constraintCase_ == 22;
7349  }
7360  @java.lang.Override
7362  if (cumulativeBuilder_ == null) {
7363  if (constraintCase_ == 22) {
7364  return (com.google.ortools.sat.CumulativeConstraintProto) constraint_;
7365  }
7367  } else {
7368  if (constraintCase_ == 22) {
7369  return cumulativeBuilder_.getMessage();
7370  }
7372  }
7373  }
7384  if (cumulativeBuilder_ == null) {
7385  if (value == null) {
7386  throw new NullPointerException();
7387  }
7388  constraint_ = value;
7389  onChanged();
7390  } else {
7391  cumulativeBuilder_.setMessage(value);
7392  }
7393  constraintCase_ = 22;
7394  return this;
7395  }
7407  if (cumulativeBuilder_ == null) {
7408  constraint_ = builderForValue.build();
7409  onChanged();
7410  } else {
7411  cumulativeBuilder_.setMessage(builderForValue.build());
7412  }
7413  constraintCase_ = 22;
7414  return this;
7415  }
7426  if (cumulativeBuilder_ == null) {
7427  if (constraintCase_ == 22 &&
7430  .mergeFrom(value).buildPartial();
7431  } else {
7432  constraint_ = value;
7433  }
7434  onChanged();
7435  } else {
7436  if (constraintCase_ == 22) {
7437  cumulativeBuilder_.mergeFrom(value);
7438  }
7439  cumulativeBuilder_.setMessage(value);
7440  }
7441  constraintCase_ = 22;
7442  return this;
7443  }
7454  if (cumulativeBuilder_ == null) {
7455  if (constraintCase_ == 22) {
7456  constraintCase_ = 0;
7457  constraint_ = null;
7458  onChanged();
7459  }
7460  } else {
7461  if (constraintCase_ == 22) {
7462  constraintCase_ = 0;
7463  constraint_ = null;
7464  }
7465  cumulativeBuilder_.clear();
7466  }
7467  return this;
7468  }
7479  return getCumulativeFieldBuilder().getBuilder();
7480  }
7490  @java.lang.Override
7492  if ((constraintCase_ == 22) && (cumulativeBuilder_ != null)) {
7493  return cumulativeBuilder_.getMessageOrBuilder();
7494  } else {
7495  if (constraintCase_ == 22) {
7496  return (com.google.ortools.sat.CumulativeConstraintProto) constraint_;
7497  }
7499  }
7500  }
7510  private com.google.protobuf.SingleFieldBuilderV3<
7512  getCumulativeFieldBuilder() {
7513  if (cumulativeBuilder_ == null) {
7514  if (!(constraintCase_ == 22)) {
7516  }
7517  cumulativeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
7520  getParentForChildren(),
7521  isClean());
7522  constraint_ = null;
7523  }
7524  constraintCase_ = 22;
7525  onChanged();;
7526  return cumulativeBuilder_;
7527  }
7528  @java.lang.Override
7530  final com.google.protobuf.UnknownFieldSet unknownFields) {
7531  return super.setUnknownFields(unknownFields);
7532  }
7533 
7534  @java.lang.Override
7536  final com.google.protobuf.UnknownFieldSet unknownFields) {
7537  return super.mergeUnknownFields(unknownFields);
7538  }
7539 
7540 
7541  // @@protoc_insertion_point(builder_scope:operations_research.sat.ConstraintProto)
7542  }
7543 
7544  // @@protoc_insertion_point(class_scope:operations_research.sat.ConstraintProto)
7545  private static final com.google.ortools.sat.ConstraintProto DEFAULT_INSTANCE;
7546  static {
7547  DEFAULT_INSTANCE = new com.google.ortools.sat.ConstraintProto();
7548  }
7549 
7551  return DEFAULT_INSTANCE;
7552  }
7553 
7554  private static final com.google.protobuf.Parser<ConstraintProto>
7555  PARSER = new com.google.protobuf.AbstractParser<ConstraintProto>() {
7556  @java.lang.Override
7557  public ConstraintProto parsePartialFrom(
7558  com.google.protobuf.CodedInputStream input,
7559  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7560  throws com.google.protobuf.InvalidProtocolBufferException {
7561  return new ConstraintProto(input, extensionRegistry);
7562  }
7563  };
7564 
7565  public static com.google.protobuf.Parser<ConstraintProto> parser() {
7566  return PARSER;
7567  }
7568 
7569  @java.lang.Override
7570  public com.google.protobuf.Parser<ConstraintProto> getParserForType() {
7571  return PARSER;
7572  }
7573 
7574  @java.lang.Override
7576  return DEFAULT_INSTANCE;
7577  }
7578 
7579 }
7580 
.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)