Google OR-Tools v9.12
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
MPGeneralConstraintProto.java
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// NO CHECKED-IN PROTOBUF GENCODE
3// source: ortools/linear_solver/linear_solver.proto
4// Protobuf Java Version: 4.29.3
5
6package com.google.ortools.linearsolver;
7
15public final class MPGeneralConstraintProto extends
16 com.google.protobuf.GeneratedMessage implements
17 // @@protoc_insertion_point(message_implements:operations_research.MPGeneralConstraintProto)
19private static final long serialVersionUID = 0L;
20 static {
21 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
22 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
23 /* major= */ 4,
24 /* minor= */ 29,
25 /* patch= */ 3,
26 /* suffix= */ "",
27 MPGeneralConstraintProto.class.getName());
28 }
29 // Use MPGeneralConstraintProto.newBuilder() to construct.
30 private MPGeneralConstraintProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
31 super(builder);
32 }
33 private MPGeneralConstraintProto() {
34 name_ = "";
35 }
36
37 public static final com.google.protobuf.Descriptors.Descriptor
39 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPGeneralConstraintProto_descriptor;
40 }
41
42 @java.lang.Override
43 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
45 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPGeneralConstraintProto_fieldAccessorTable
46 .ensureFieldAccessorsInitialized(
47 com.google.ortools.linearsolver.MPGeneralConstraintProto.class, com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.class);
48 }
49
50 private int bitField0_;
51 private int generalConstraintCase_ = 0;
52 @SuppressWarnings("serial")
53 private java.lang.Object generalConstraint_;
54 public enum GeneralConstraintCase
55 implements com.google.protobuf.Internal.EnumLite,
56 com.google.protobuf.AbstractMessage.InternalOneOfEnum {
66 private final int value;
67 private GeneralConstraintCase(int value) {
68 this.value = value;
69 }
75 @java.lang.Deprecated
76 public static GeneralConstraintCase valueOf(int value) {
77 return forNumber(value);
78 }
79
80 public static GeneralConstraintCase forNumber(int value) {
81 switch (value) {
82 case 2: return INDICATOR_CONSTRAINT;
83 case 3: return SOS_CONSTRAINT;
84 case 4: return QUADRATIC_CONSTRAINT;
85 case 5: return ABS_CONSTRAINT;
86 case 6: return AND_CONSTRAINT;
87 case 7: return OR_CONSTRAINT;
88 case 8: return MIN_CONSTRAINT;
89 case 9: return MAX_CONSTRAINT;
90 case 0: return GENERALCONSTRAINT_NOT_SET;
91 default: return null;
92 }
93 }
94 public int getNumber() {
95 return this.value;
96 }
97 };
98
99 public GeneralConstraintCase
102 generalConstraintCase_);
103 }
104
105 public static final int NAME_FIELD_NUMBER = 1;
106 @SuppressWarnings("serial")
107 private volatile java.lang.Object name_ = "";
116 @java.lang.Override
117 public boolean hasName() {
118 return ((bitField0_ & 0x00000001) != 0);
119 }
120
128 @java.lang.Override
129 public java.lang.String getName() {
130 java.lang.Object ref = name_;
131 if (ref instanceof java.lang.String) {
132 return (java.lang.String) ref;
133 } else {
134 com.google.protobuf.ByteString bs =
135 (com.google.protobuf.ByteString) ref;
136 java.lang.String s = bs.toStringUtf8();
137 if (bs.isValidUtf8()) {
138 name_ = s;
139 }
140 return s;
141 }
142 }
143
151 @java.lang.Override
152 public com.google.protobuf.ByteString
154 java.lang.Object ref = name_;
155 if (ref instanceof java.lang.String) {
156 com.google.protobuf.ByteString b =
157 com.google.protobuf.ByteString.copyFromUtf8(
158 (java.lang.String) ref);
159 name_ = b;
160 return b;
161 } else {
162 return (com.google.protobuf.ByteString) ref;
163 }
164 }
165
166 public static final int INDICATOR_CONSTRAINT_FIELD_NUMBER = 2;
171 @java.lang.Override
172 public boolean hasIndicatorConstraint() {
173 return generalConstraintCase_ == 2;
174 }
175
179 @java.lang.Override
181 if (generalConstraintCase_ == 2) {
182 return (com.google.ortools.linearsolver.MPIndicatorConstraint) generalConstraint_;
183 }
184 return com.google.ortools.linearsolver.MPIndicatorConstraint.getDefaultInstance();
185 }
186
189 @java.lang.Override
191 if (generalConstraintCase_ == 2) {
192 return (com.google.ortools.linearsolver.MPIndicatorConstraint) generalConstraint_;
193 }
194 return com.google.ortools.linearsolver.MPIndicatorConstraint.getDefaultInstance();
195 }
196
197 public static final int SOS_CONSTRAINT_FIELD_NUMBER = 3;
202 @java.lang.Override
203 public boolean hasSosConstraint() {
204 return generalConstraintCase_ == 3;
205 }
206
210 @java.lang.Override
212 if (generalConstraintCase_ == 3) {
213 return (com.google.ortools.linearsolver.MPSosConstraint) generalConstraint_;
214 }
215 return com.google.ortools.linearsolver.MPSosConstraint.getDefaultInstance();
216 }
217
220 @java.lang.Override
222 if (generalConstraintCase_ == 3) {
223 return (com.google.ortools.linearsolver.MPSosConstraint) generalConstraint_;
224 }
225 return com.google.ortools.linearsolver.MPSosConstraint.getDefaultInstance();
226 }
227
228 public static final int QUADRATIC_CONSTRAINT_FIELD_NUMBER = 4;
233 @java.lang.Override
234 public boolean hasQuadraticConstraint() {
235 return generalConstraintCase_ == 4;
236 }
237
241 @java.lang.Override
243 if (generalConstraintCase_ == 4) {
244 return (com.google.ortools.linearsolver.MPQuadraticConstraint) generalConstraint_;
245 }
246 return com.google.ortools.linearsolver.MPQuadraticConstraint.getDefaultInstance();
247 }
248
251 @java.lang.Override
253 if (generalConstraintCase_ == 4) {
254 return (com.google.ortools.linearsolver.MPQuadraticConstraint) generalConstraint_;
255 }
256 return com.google.ortools.linearsolver.MPQuadraticConstraint.getDefaultInstance();
257 }
258
259 public static final int ABS_CONSTRAINT_FIELD_NUMBER = 5;
264 @java.lang.Override
265 public boolean hasAbsConstraint() {
266 return generalConstraintCase_ == 5;
267 }
268
272 @java.lang.Override
274 if (generalConstraintCase_ == 5) {
275 return (com.google.ortools.linearsolver.MPAbsConstraint) generalConstraint_;
276 }
277 return com.google.ortools.linearsolver.MPAbsConstraint.getDefaultInstance();
278 }
279
282 @java.lang.Override
284 if (generalConstraintCase_ == 5) {
285 return (com.google.ortools.linearsolver.MPAbsConstraint) generalConstraint_;
286 }
287 return com.google.ortools.linearsolver.MPAbsConstraint.getDefaultInstance();
288 }
289
290 public static final int AND_CONSTRAINT_FIELD_NUMBER = 6;
300 @java.lang.Override
301 public boolean hasAndConstraint() {
302 return generalConstraintCase_ == 6;
303 }
304
313 @java.lang.Override
315 if (generalConstraintCase_ == 6) {
316 return (com.google.ortools.linearsolver.MPArrayConstraint) generalConstraint_;
317 }
318 return com.google.ortools.linearsolver.MPArrayConstraint.getDefaultInstance();
319 }
320
328 @java.lang.Override
330 if (generalConstraintCase_ == 6) {
331 return (com.google.ortools.linearsolver.MPArrayConstraint) generalConstraint_;
332 }
333 return com.google.ortools.linearsolver.MPArrayConstraint.getDefaultInstance();
334 }
335
336 public static final int OR_CONSTRAINT_FIELD_NUMBER = 7;
346 @java.lang.Override
347 public boolean hasOrConstraint() {
348 return generalConstraintCase_ == 7;
349 }
350
359 @java.lang.Override
361 if (generalConstraintCase_ == 7) {
362 return (com.google.ortools.linearsolver.MPArrayConstraint) generalConstraint_;
363 }
364 return com.google.ortools.linearsolver.MPArrayConstraint.getDefaultInstance();
365 }
366
374 @java.lang.Override
376 if (generalConstraintCase_ == 7) {
377 return (com.google.ortools.linearsolver.MPArrayConstraint) generalConstraint_;
378 }
379 return com.google.ortools.linearsolver.MPArrayConstraint.getDefaultInstance();
380 }
381
382 public static final int MIN_CONSTRAINT_FIELD_NUMBER = 8;
391 @java.lang.Override
392 public boolean hasMinConstraint() {
393 return generalConstraintCase_ == 8;
394 }
395
403 @java.lang.Override
405 if (generalConstraintCase_ == 8) {
406 return (com.google.ortools.linearsolver.MPArrayWithConstantConstraint) generalConstraint_;
407 }
408 return com.google.ortools.linearsolver.MPArrayWithConstantConstraint.getDefaultInstance();
409 }
410
417 @java.lang.Override
419 if (generalConstraintCase_ == 8) {
420 return (com.google.ortools.linearsolver.MPArrayWithConstantConstraint) generalConstraint_;
421 }
422 return com.google.ortools.linearsolver.MPArrayWithConstantConstraint.getDefaultInstance();
423 }
424
425 public static final int MAX_CONSTRAINT_FIELD_NUMBER = 9;
434 @java.lang.Override
435 public boolean hasMaxConstraint() {
436 return generalConstraintCase_ == 9;
437 }
438
446 @java.lang.Override
448 if (generalConstraintCase_ == 9) {
449 return (com.google.ortools.linearsolver.MPArrayWithConstantConstraint) generalConstraint_;
450 }
451 return com.google.ortools.linearsolver.MPArrayWithConstantConstraint.getDefaultInstance();
452 }
453
460 @java.lang.Override
462 if (generalConstraintCase_ == 9) {
463 return (com.google.ortools.linearsolver.MPArrayWithConstantConstraint) generalConstraint_;
464 }
465 return com.google.ortools.linearsolver.MPArrayWithConstantConstraint.getDefaultInstance();
466 }
467
468 private byte memoizedIsInitialized = -1;
469 @java.lang.Override
470 public final boolean isInitialized() {
471 byte isInitialized = memoizedIsInitialized;
472 if (isInitialized == 1) return true;
473 if (isInitialized == 0) return false;
474
475 memoizedIsInitialized = 1;
476 return true;
477 }
478
479 @java.lang.Override
480 public void writeTo(com.google.protobuf.CodedOutputStream output)
481 throws java.io.IOException {
482 if (((bitField0_ & 0x00000001) != 0)) {
483 com.google.protobuf.GeneratedMessage.writeString(output, 1, name_);
484 }
485 if (generalConstraintCase_ == 2) {
486 output.writeMessage(2, (com.google.ortools.linearsolver.MPIndicatorConstraint) generalConstraint_);
487 }
488 if (generalConstraintCase_ == 3) {
489 output.writeMessage(3, (com.google.ortools.linearsolver.MPSosConstraint) generalConstraint_);
490 }
491 if (generalConstraintCase_ == 4) {
492 output.writeMessage(4, (com.google.ortools.linearsolver.MPQuadraticConstraint) generalConstraint_);
493 }
494 if (generalConstraintCase_ == 5) {
495 output.writeMessage(5, (com.google.ortools.linearsolver.MPAbsConstraint) generalConstraint_);
496 }
497 if (generalConstraintCase_ == 6) {
498 output.writeMessage(6, (com.google.ortools.linearsolver.MPArrayConstraint) generalConstraint_);
499 }
500 if (generalConstraintCase_ == 7) {
501 output.writeMessage(7, (com.google.ortools.linearsolver.MPArrayConstraint) generalConstraint_);
502 }
503 if (generalConstraintCase_ == 8) {
504 output.writeMessage(8, (com.google.ortools.linearsolver.MPArrayWithConstantConstraint) generalConstraint_);
505 }
506 if (generalConstraintCase_ == 9) {
507 output.writeMessage(9, (com.google.ortools.linearsolver.MPArrayWithConstantConstraint) generalConstraint_);
508 }
509 getUnknownFields().writeTo(output);
510 }
511
512 @java.lang.Override
513 public int getSerializedSize() {
514 int size = memoizedSize;
515 if (size != -1) return size;
516
517 size = 0;
518 if (((bitField0_ & 0x00000001) != 0)) {
519 size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_);
520 }
521 if (generalConstraintCase_ == 2) {
522 size += com.google.protobuf.CodedOutputStream
523 .computeMessageSize(2, (com.google.ortools.linearsolver.MPIndicatorConstraint) generalConstraint_);
524 }
525 if (generalConstraintCase_ == 3) {
526 size += com.google.protobuf.CodedOutputStream
527 .computeMessageSize(3, (com.google.ortools.linearsolver.MPSosConstraint) generalConstraint_);
528 }
529 if (generalConstraintCase_ == 4) {
530 size += com.google.protobuf.CodedOutputStream
531 .computeMessageSize(4, (com.google.ortools.linearsolver.MPQuadraticConstraint) generalConstraint_);
532 }
533 if (generalConstraintCase_ == 5) {
534 size += com.google.protobuf.CodedOutputStream
535 .computeMessageSize(5, (com.google.ortools.linearsolver.MPAbsConstraint) generalConstraint_);
536 }
537 if (generalConstraintCase_ == 6) {
538 size += com.google.protobuf.CodedOutputStream
539 .computeMessageSize(6, (com.google.ortools.linearsolver.MPArrayConstraint) generalConstraint_);
540 }
541 if (generalConstraintCase_ == 7) {
542 size += com.google.protobuf.CodedOutputStream
543 .computeMessageSize(7, (com.google.ortools.linearsolver.MPArrayConstraint) generalConstraint_);
544 }
545 if (generalConstraintCase_ == 8) {
546 size += com.google.protobuf.CodedOutputStream
547 .computeMessageSize(8, (com.google.ortools.linearsolver.MPArrayWithConstantConstraint) generalConstraint_);
548 }
549 if (generalConstraintCase_ == 9) {
550 size += com.google.protobuf.CodedOutputStream
551 .computeMessageSize(9, (com.google.ortools.linearsolver.MPArrayWithConstantConstraint) generalConstraint_);
552 }
553 size += getUnknownFields().getSerializedSize();
554 memoizedSize = size;
555 return size;
556 }
557
558 @java.lang.Override
559 public boolean equals(final java.lang.Object obj) {
560 if (obj == this) {
561 return true;
562 }
563 if (!(obj instanceof com.google.ortools.linearsolver.MPGeneralConstraintProto)) {
564 return super.equals(obj);
565 }
566 com.google.ortools.linearsolver.MPGeneralConstraintProto other = (com.google.ortools.linearsolver.MPGeneralConstraintProto) obj;
567
568 if (hasName() != other.hasName()) return false;
569 if (hasName()) {
570 if (!getName()
571 .equals(other.getName())) return false;
572 }
573 if (!getGeneralConstraintCase().equals(other.getGeneralConstraintCase())) return false;
574 switch (generalConstraintCase_) {
575 case 2:
577 .equals(other.getIndicatorConstraint())) return false;
578 break;
579 case 3:
580 if (!getSosConstraint()
581 .equals(other.getSosConstraint())) return false;
582 break;
583 case 4:
585 .equals(other.getQuadraticConstraint())) return false;
586 break;
587 case 5:
588 if (!getAbsConstraint()
589 .equals(other.getAbsConstraint())) return false;
590 break;
591 case 6:
592 if (!getAndConstraint()
593 .equals(other.getAndConstraint())) return false;
594 break;
595 case 7:
596 if (!getOrConstraint()
597 .equals(other.getOrConstraint())) return false;
598 break;
599 case 8:
600 if (!getMinConstraint()
601 .equals(other.getMinConstraint())) return false;
602 break;
603 case 9:
604 if (!getMaxConstraint()
605 .equals(other.getMaxConstraint())) return false;
606 break;
607 case 0:
608 default:
609 }
610 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
611 return true;
612 }
613
614 @java.lang.Override
615 public int hashCode() {
616 if (memoizedHashCode != 0) {
617 return memoizedHashCode;
618 }
619 int hash = 41;
620 hash = (19 * hash) + getDescriptor().hashCode();
621 if (hasName()) {
622 hash = (37 * hash) + NAME_FIELD_NUMBER;
623 hash = (53 * hash) + getName().hashCode();
624 }
625 switch (generalConstraintCase_) {
626 case 2:
627 hash = (37 * hash) + INDICATOR_CONSTRAINT_FIELD_NUMBER;
628 hash = (53 * hash) + getIndicatorConstraint().hashCode();
629 break;
630 case 3:
631 hash = (37 * hash) + SOS_CONSTRAINT_FIELD_NUMBER;
632 hash = (53 * hash) + getSosConstraint().hashCode();
633 break;
634 case 4:
635 hash = (37 * hash) + QUADRATIC_CONSTRAINT_FIELD_NUMBER;
636 hash = (53 * hash) + getQuadraticConstraint().hashCode();
637 break;
638 case 5:
639 hash = (37 * hash) + ABS_CONSTRAINT_FIELD_NUMBER;
640 hash = (53 * hash) + getAbsConstraint().hashCode();
641 break;
642 case 6:
643 hash = (37 * hash) + AND_CONSTRAINT_FIELD_NUMBER;
644 hash = (53 * hash) + getAndConstraint().hashCode();
645 break;
646 case 7:
647 hash = (37 * hash) + OR_CONSTRAINT_FIELD_NUMBER;
648 hash = (53 * hash) + getOrConstraint().hashCode();
649 break;
650 case 8:
651 hash = (37 * hash) + MIN_CONSTRAINT_FIELD_NUMBER;
652 hash = (53 * hash) + getMinConstraint().hashCode();
653 break;
654 case 9:
655 hash = (37 * hash) + MAX_CONSTRAINT_FIELD_NUMBER;
656 hash = (53 * hash) + getMaxConstraint().hashCode();
657 break;
658 case 0:
659 default:
660 }
661 hash = (29 * hash) + getUnknownFields().hashCode();
662 memoizedHashCode = hash;
663 return hash;
664 }
665
667 java.nio.ByteBuffer data)
668 throws com.google.protobuf.InvalidProtocolBufferException {
669 return PARSER.parseFrom(data);
670 }
672 java.nio.ByteBuffer data,
673 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
674 throws com.google.protobuf.InvalidProtocolBufferException {
675 return PARSER.parseFrom(data, extensionRegistry);
676 }
678 com.google.protobuf.ByteString data)
679 throws com.google.protobuf.InvalidProtocolBufferException {
680 return PARSER.parseFrom(data);
681 }
683 com.google.protobuf.ByteString data,
684 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
685 throws com.google.protobuf.InvalidProtocolBufferException {
686 return PARSER.parseFrom(data, extensionRegistry);
687 }
689 throws com.google.protobuf.InvalidProtocolBufferException {
690 return PARSER.parseFrom(data);
691 }
693 byte[] data,
694 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
695 throws com.google.protobuf.InvalidProtocolBufferException {
696 return PARSER.parseFrom(data, extensionRegistry);
697 }
699 throws java.io.IOException {
700 return com.google.protobuf.GeneratedMessage
701 .parseWithIOException(PARSER, input);
702 }
704 java.io.InputStream input,
705 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
706 throws java.io.IOException {
707 return com.google.protobuf.GeneratedMessage
708 .parseWithIOException(PARSER, input, extensionRegistry);
709 }
710
712 throws java.io.IOException {
713 return com.google.protobuf.GeneratedMessage
714 .parseDelimitedWithIOException(PARSER, input);
715 }
716
718 java.io.InputStream input,
719 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
720 throws java.io.IOException {
721 return com.google.protobuf.GeneratedMessage
722 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
723 }
725 com.google.protobuf.CodedInputStream input)
726 throws java.io.IOException {
727 return com.google.protobuf.GeneratedMessage
728 .parseWithIOException(PARSER, input);
729 }
731 com.google.protobuf.CodedInputStream input,
732 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
733 throws java.io.IOException {
734 return com.google.protobuf.GeneratedMessage
735 .parseWithIOException(PARSER, input, extensionRegistry);
736 }
737
738 @java.lang.Override
739 public Builder newBuilderForType() { return newBuilder(); }
740 public static Builder newBuilder() {
741 return DEFAULT_INSTANCE.toBuilder();
742 }
743 public static Builder newBuilder(com.google.ortools.linearsolver.MPGeneralConstraintProto prototype) {
744 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
745 }
746 @java.lang.Override
748 return this == DEFAULT_INSTANCE
749 ? new Builder() : new Builder().mergeFrom(this);
750 }
751
752 @java.lang.Override
754 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
755 Builder builder = new Builder(parent);
756 return builder;
757 }
758
765 public static final class Builder extends
766 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
767 // @@protoc_insertion_point(builder_implements:operations_research.MPGeneralConstraintProto)
769 public static final com.google.protobuf.Descriptors.Descriptor
771 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPGeneralConstraintProto_descriptor;
772 }
773
774 @java.lang.Override
775 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
777 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPGeneralConstraintProto_fieldAccessorTable
778 .ensureFieldAccessorsInitialized(
779 com.google.ortools.linearsolver.MPGeneralConstraintProto.class, com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.class);
780 }
781
782 // Construct using com.google.ortools.linearsolver.MPGeneralConstraintProto.newBuilder()
783 private Builder() {
784
785 }
786
787 private Builder(
788 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
789 super(parent);
790
791 }
792 @java.lang.Override
793 public Builder clear() {
794 super.clear();
795 bitField0_ = 0;
796 name_ = "";
797 if (indicatorConstraintBuilder_ != null) {
798 indicatorConstraintBuilder_.clear();
799 }
800 if (sosConstraintBuilder_ != null) {
801 sosConstraintBuilder_.clear();
802 }
803 if (quadraticConstraintBuilder_ != null) {
804 quadraticConstraintBuilder_.clear();
805 }
806 if (absConstraintBuilder_ != null) {
807 absConstraintBuilder_.clear();
808 }
809 if (andConstraintBuilder_ != null) {
810 andConstraintBuilder_.clear();
811 }
812 if (orConstraintBuilder_ != null) {
813 orConstraintBuilder_.clear();
814 }
815 if (minConstraintBuilder_ != null) {
816 minConstraintBuilder_.clear();
817 }
818 if (maxConstraintBuilder_ != null) {
819 maxConstraintBuilder_.clear();
820 }
821 generalConstraintCase_ = 0;
822 generalConstraint_ = null;
823 return this;
824 }
825
826 @java.lang.Override
827 public com.google.protobuf.Descriptors.Descriptor
829 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPGeneralConstraintProto_descriptor;
830 }
831
832 @java.lang.Override
834 return com.google.ortools.linearsolver.MPGeneralConstraintProto.getDefaultInstance();
835 }
836
837 @java.lang.Override
840 if (!result.isInitialized()) {
841 throw newUninitializedMessageException(result);
842 }
843 return result;
844 }
845
846 @java.lang.Override
848 com.google.ortools.linearsolver.MPGeneralConstraintProto result = new com.google.ortools.linearsolver.MPGeneralConstraintProto(this);
849 if (bitField0_ != 0) { buildPartial0(result); }
850 buildPartialOneofs(result);
851 onBuilt();
852 return result;
853 }
854
855 private void buildPartial0(com.google.ortools.linearsolver.MPGeneralConstraintProto result) {
856 int from_bitField0_ = bitField0_;
857 int to_bitField0_ = 0;
858 if (((from_bitField0_ & 0x00000001) != 0)) {
859 result.name_ = name_;
860 to_bitField0_ |= 0x00000001;
861 }
862 result.bitField0_ |= to_bitField0_;
863 }
864
865 private void buildPartialOneofs(com.google.ortools.linearsolver.MPGeneralConstraintProto result) {
866 result.generalConstraintCase_ = generalConstraintCase_;
867 result.generalConstraint_ = this.generalConstraint_;
868 if (generalConstraintCase_ == 2 &&
869 indicatorConstraintBuilder_ != null) {
870 result.generalConstraint_ = indicatorConstraintBuilder_.build();
871 }
872 if (generalConstraintCase_ == 3 &&
873 sosConstraintBuilder_ != null) {
874 result.generalConstraint_ = sosConstraintBuilder_.build();
875 }
876 if (generalConstraintCase_ == 4 &&
877 quadraticConstraintBuilder_ != null) {
878 result.generalConstraint_ = quadraticConstraintBuilder_.build();
879 }
880 if (generalConstraintCase_ == 5 &&
881 absConstraintBuilder_ != null) {
882 result.generalConstraint_ = absConstraintBuilder_.build();
883 }
884 if (generalConstraintCase_ == 6 &&
885 andConstraintBuilder_ != null) {
886 result.generalConstraint_ = andConstraintBuilder_.build();
887 }
888 if (generalConstraintCase_ == 7 &&
889 orConstraintBuilder_ != null) {
890 result.generalConstraint_ = orConstraintBuilder_.build();
891 }
892 if (generalConstraintCase_ == 8 &&
893 minConstraintBuilder_ != null) {
894 result.generalConstraint_ = minConstraintBuilder_.build();
895 }
896 if (generalConstraintCase_ == 9 &&
897 maxConstraintBuilder_ != null) {
898 result.generalConstraint_ = maxConstraintBuilder_.build();
899 }
900 }
901
902 @java.lang.Override
903 public Builder mergeFrom(com.google.protobuf.Message other) {
904 if (other instanceof com.google.ortools.linearsolver.MPGeneralConstraintProto) {
905 return mergeFrom((com.google.ortools.linearsolver.MPGeneralConstraintProto)other);
906 } else {
907 super.mergeFrom(other);
908 return this;
909 }
910 }
911
912 public Builder mergeFrom(com.google.ortools.linearsolver.MPGeneralConstraintProto other) {
913 if (other == com.google.ortools.linearsolver.MPGeneralConstraintProto.getDefaultInstance()) return this;
914 if (other.hasName()) {
915 name_ = other.name_;
916 bitField0_ |= 0x00000001;
917 onChanged();
918 }
919 switch (other.getGeneralConstraintCase()) {
920 case INDICATOR_CONSTRAINT: {
921 mergeIndicatorConstraint(other.getIndicatorConstraint());
922 break;
923 }
924 case SOS_CONSTRAINT: {
925 mergeSosConstraint(other.getSosConstraint());
926 break;
927 }
928 case QUADRATIC_CONSTRAINT: {
929 mergeQuadraticConstraint(other.getQuadraticConstraint());
930 break;
931 }
932 case ABS_CONSTRAINT: {
933 mergeAbsConstraint(other.getAbsConstraint());
934 break;
935 }
936 case AND_CONSTRAINT: {
937 mergeAndConstraint(other.getAndConstraint());
938 break;
939 }
940 case OR_CONSTRAINT: {
941 mergeOrConstraint(other.getOrConstraint());
942 break;
943 }
944 case MIN_CONSTRAINT: {
945 mergeMinConstraint(other.getMinConstraint());
946 break;
947 }
948 case MAX_CONSTRAINT: {
949 mergeMaxConstraint(other.getMaxConstraint());
950 break;
951 }
952 case GENERALCONSTRAINT_NOT_SET: {
953 break;
954 }
955 }
956 this.mergeUnknownFields(other.getUnknownFields());
957 onChanged();
958 return this;
959 }
960
961 @java.lang.Override
962 public final boolean isInitialized() {
963 return true;
964 }
965
966 @java.lang.Override
967 public Builder mergeFrom(
968 com.google.protobuf.CodedInputStream input,
969 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
970 throws java.io.IOException {
971 if (extensionRegistry == null) {
972 throw new java.lang.NullPointerException();
973 }
974 try {
975 boolean done = false;
976 while (!done) {
977 int tag = input.readTag();
978 switch (tag) {
979 case 0:
980 done = true;
981 break;
982 case 10: {
983 name_ = input.readBytes();
984 bitField0_ |= 0x00000001;
985 break;
986 } // case 10
987 case 18: {
988 input.readMessage(
989 getIndicatorConstraintFieldBuilder().getBuilder(),
990 extensionRegistry);
991 generalConstraintCase_ = 2;
992 break;
993 } // case 18
994 case 26: {
995 input.readMessage(
996 getSosConstraintFieldBuilder().getBuilder(),
997 extensionRegistry);
998 generalConstraintCase_ = 3;
999 break;
1000 } // case 26
1001 case 34: {
1002 input.readMessage(
1003 getQuadraticConstraintFieldBuilder().getBuilder(),
1004 extensionRegistry);
1005 generalConstraintCase_ = 4;
1006 break;
1007 } // case 34
1008 case 42: {
1009 input.readMessage(
1010 getAbsConstraintFieldBuilder().getBuilder(),
1011 extensionRegistry);
1012 generalConstraintCase_ = 5;
1013 break;
1014 } // case 42
1015 case 50: {
1016 input.readMessage(
1017 getAndConstraintFieldBuilder().getBuilder(),
1018 extensionRegistry);
1019 generalConstraintCase_ = 6;
1020 break;
1021 } // case 50
1022 case 58: {
1023 input.readMessage(
1024 getOrConstraintFieldBuilder().getBuilder(),
1025 extensionRegistry);
1026 generalConstraintCase_ = 7;
1027 break;
1028 } // case 58
1029 case 66: {
1030 input.readMessage(
1031 getMinConstraintFieldBuilder().getBuilder(),
1032 extensionRegistry);
1033 generalConstraintCase_ = 8;
1034 break;
1035 } // case 66
1036 case 74: {
1037 input.readMessage(
1038 getMaxConstraintFieldBuilder().getBuilder(),
1039 extensionRegistry);
1040 generalConstraintCase_ = 9;
1041 break;
1042 } // case 74
1043 default: {
1044 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1045 done = true; // was an endgroup tag
1046 }
1047 break;
1048 } // default:
1049 } // switch (tag)
1050 } // while (!done)
1051 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1052 throw e.unwrapIOException();
1053 } finally {
1054 onChanged();
1055 } // finally
1056 return this;
1057 }
1058 private int generalConstraintCase_ = 0;
1059 private java.lang.Object generalConstraint_;
1063 generalConstraintCase_);
1064 }
1065
1066 public Builder clearGeneralConstraint() {
1067 generalConstraintCase_ = 0;
1068 generalConstraint_ = null;
1069 onChanged();
1070 return this;
1071 }
1072
1073 private int bitField0_;
1074
1075 private java.lang.Object name_ = "";
1084 public boolean hasName() {
1085 return ((bitField0_ & 0x00000001) != 0);
1086 }
1087
1095 public java.lang.String getName() {
1096 java.lang.Object ref = name_;
1097 if (!(ref instanceof java.lang.String)) {
1098 com.google.protobuf.ByteString bs =
1099 (com.google.protobuf.ByteString) ref;
1100 java.lang.String s = bs.toStringUtf8();
1101 if (bs.isValidUtf8()) {
1102 name_ = s;
1103 }
1104 return s;
1105 } else {
1106 return (java.lang.String) ref;
1107 }
1108 }
1109
1117 public com.google.protobuf.ByteString
1119 java.lang.Object ref = name_;
1120 if (ref instanceof String) {
1121 com.google.protobuf.ByteString b =
1122 com.google.protobuf.ByteString.copyFromUtf8(
1123 (java.lang.String) ref);
1124 name_ = b;
1125 return b;
1126 } else {
1127 return (com.google.protobuf.ByteString) ref;
1128 }
1129 }
1130
1139 public Builder setName(
1140 java.lang.String value) {
1141 if (value == null) { throw new NullPointerException(); }
1142 name_ = value;
1143 bitField0_ |= 0x00000001;
1144 onChanged();
1145 return this;
1146 }
1147
1155 public Builder clearName() {
1156 name_ = getDefaultInstance().getName();
1157 bitField0_ = (bitField0_ & ~0x00000001);
1158 onChanged();
1159 return this;
1160 }
1161
1170 public Builder setNameBytes(
1171 com.google.protobuf.ByteString value) {
1172 if (value == null) { throw new NullPointerException(); }
1173 name_ = value;
1174 bitField0_ |= 0x00000001;
1175 onChanged();
1176 return this;
1177 }
1178
1179 private com.google.protobuf.SingleFieldBuilder<
1180 com.google.ortools.linearsolver.MPIndicatorConstraint, com.google.ortools.linearsolver.MPIndicatorConstraint.Builder, com.google.ortools.linearsolver.MPIndicatorConstraintOrBuilder> indicatorConstraintBuilder_;
1185 @java.lang.Override
1186 public boolean hasIndicatorConstraint() {
1187 return generalConstraintCase_ == 2;
1188 }
1189
1193 @java.lang.Override
1195 if (indicatorConstraintBuilder_ == null) {
1196 if (generalConstraintCase_ == 2) {
1197 return (com.google.ortools.linearsolver.MPIndicatorConstraint) generalConstraint_;
1198 }
1199 return com.google.ortools.linearsolver.MPIndicatorConstraint.getDefaultInstance();
1200 } else {
1201 if (generalConstraintCase_ == 2) {
1202 return indicatorConstraintBuilder_.getMessage();
1203 }
1204 return com.google.ortools.linearsolver.MPIndicatorConstraint.getDefaultInstance();
1205 }
1206 }
1207
1210 public Builder setIndicatorConstraint(com.google.ortools.linearsolver.MPIndicatorConstraint value) {
1211 if (indicatorConstraintBuilder_ == null) {
1212 if (value == null) {
1213 throw new NullPointerException();
1214 }
1215 generalConstraint_ = value;
1216 onChanged();
1217 } else {
1218 indicatorConstraintBuilder_.setMessage(value);
1219 }
1220 generalConstraintCase_ = 2;
1221 return this;
1222 }
1223
1227 com.google.ortools.linearsolver.MPIndicatorConstraint.Builder builderForValue) {
1228 if (indicatorConstraintBuilder_ == null) {
1229 generalConstraint_ = builderForValue.build();
1230 onChanged();
1231 } else {
1232 indicatorConstraintBuilder_.setMessage(builderForValue.build());
1233 }
1234 generalConstraintCase_ = 2;
1235 return this;
1236 }
1237
1240 public Builder mergeIndicatorConstraint(com.google.ortools.linearsolver.MPIndicatorConstraint value) {
1241 if (indicatorConstraintBuilder_ == null) {
1242 if (generalConstraintCase_ == 2 &&
1243 generalConstraint_ != com.google.ortools.linearsolver.MPIndicatorConstraint.getDefaultInstance()) {
1244 generalConstraint_ = com.google.ortools.linearsolver.MPIndicatorConstraint.newBuilder((com.google.ortools.linearsolver.MPIndicatorConstraint) generalConstraint_)
1245 .mergeFrom(value).buildPartial();
1246 } else {
1247 generalConstraint_ = value;
1248 }
1249 onChanged();
1250 } else {
1251 if (generalConstraintCase_ == 2) {
1252 indicatorConstraintBuilder_.mergeFrom(value);
1253 } else {
1254 indicatorConstraintBuilder_.setMessage(value);
1255 }
1256 }
1257 generalConstraintCase_ = 2;
1258 return this;
1259 }
1260
1263 public Builder clearIndicatorConstraint() {
1264 if (indicatorConstraintBuilder_ == null) {
1265 if (generalConstraintCase_ == 2) {
1266 generalConstraintCase_ = 0;
1267 generalConstraint_ = null;
1268 onChanged();
1269 }
1270 } else {
1271 if (generalConstraintCase_ == 2) {
1272 generalConstraintCase_ = 0;
1273 generalConstraint_ = null;
1274 }
1275 indicatorConstraintBuilder_.clear();
1276 }
1277 return this;
1278 }
1279
1283 return getIndicatorConstraintFieldBuilder().getBuilder();
1284 }
1285
1288 @java.lang.Override
1290 if ((generalConstraintCase_ == 2) && (indicatorConstraintBuilder_ != null)) {
1291 return indicatorConstraintBuilder_.getMessageOrBuilder();
1292 } else {
1293 if (generalConstraintCase_ == 2) {
1294 return (com.google.ortools.linearsolver.MPIndicatorConstraint) generalConstraint_;
1295 }
1296 return com.google.ortools.linearsolver.MPIndicatorConstraint.getDefaultInstance();
1297 }
1298 }
1299
1302 private com.google.protobuf.SingleFieldBuilder<
1303 com.google.ortools.linearsolver.MPIndicatorConstraint, com.google.ortools.linearsolver.MPIndicatorConstraint.Builder, com.google.ortools.linearsolver.MPIndicatorConstraintOrBuilder>
1304 getIndicatorConstraintFieldBuilder() {
1305 if (indicatorConstraintBuilder_ == null) {
1306 if (!(generalConstraintCase_ == 2)) {
1307 generalConstraint_ = com.google.ortools.linearsolver.MPIndicatorConstraint.getDefaultInstance();
1308 }
1309 indicatorConstraintBuilder_ = new com.google.protobuf.SingleFieldBuilder<
1310 com.google.ortools.linearsolver.MPIndicatorConstraint, com.google.ortools.linearsolver.MPIndicatorConstraint.Builder, com.google.ortools.linearsolver.MPIndicatorConstraintOrBuilder>(
1311 (com.google.ortools.linearsolver.MPIndicatorConstraint) generalConstraint_,
1312 getParentForChildren(),
1313 isClean());
1314 generalConstraint_ = null;
1315 }
1316 generalConstraintCase_ = 2;
1317 onChanged();
1318 return indicatorConstraintBuilder_;
1319 }
1320
1321 private com.google.protobuf.SingleFieldBuilder<
1322 com.google.ortools.linearsolver.MPSosConstraint, com.google.ortools.linearsolver.MPSosConstraint.Builder, com.google.ortools.linearsolver.MPSosConstraintOrBuilder> sosConstraintBuilder_;
1327 @java.lang.Override
1328 public boolean hasSosConstraint() {
1329 return generalConstraintCase_ == 3;
1330 }
1331
1335 @java.lang.Override
1337 if (sosConstraintBuilder_ == null) {
1338 if (generalConstraintCase_ == 3) {
1339 return (com.google.ortools.linearsolver.MPSosConstraint) generalConstraint_;
1340 }
1341 return com.google.ortools.linearsolver.MPSosConstraint.getDefaultInstance();
1342 } else {
1343 if (generalConstraintCase_ == 3) {
1344 return sosConstraintBuilder_.getMessage();
1345 }
1346 return com.google.ortools.linearsolver.MPSosConstraint.getDefaultInstance();
1347 }
1348 }
1349
1352 public Builder setSosConstraint(com.google.ortools.linearsolver.MPSosConstraint value) {
1353 if (sosConstraintBuilder_ == null) {
1354 if (value == null) {
1355 throw new NullPointerException();
1356 }
1357 generalConstraint_ = value;
1358 onChanged();
1359 } else {
1360 sosConstraintBuilder_.setMessage(value);
1361 }
1362 generalConstraintCase_ = 3;
1363 return this;
1364 }
1365
1368 public Builder setSosConstraint(
1369 com.google.ortools.linearsolver.MPSosConstraint.Builder builderForValue) {
1370 if (sosConstraintBuilder_ == null) {
1371 generalConstraint_ = builderForValue.build();
1372 onChanged();
1373 } else {
1374 sosConstraintBuilder_.setMessage(builderForValue.build());
1375 }
1376 generalConstraintCase_ = 3;
1377 return this;
1378 }
1379
1382 public Builder mergeSosConstraint(com.google.ortools.linearsolver.MPSosConstraint value) {
1383 if (sosConstraintBuilder_ == null) {
1384 if (generalConstraintCase_ == 3 &&
1385 generalConstraint_ != com.google.ortools.linearsolver.MPSosConstraint.getDefaultInstance()) {
1386 generalConstraint_ = com.google.ortools.linearsolver.MPSosConstraint.newBuilder((com.google.ortools.linearsolver.MPSosConstraint) generalConstraint_)
1387 .mergeFrom(value).buildPartial();
1388 } else {
1389 generalConstraint_ = value;
1390 }
1391 onChanged();
1392 } else {
1393 if (generalConstraintCase_ == 3) {
1394 sosConstraintBuilder_.mergeFrom(value);
1395 } else {
1396 sosConstraintBuilder_.setMessage(value);
1397 }
1398 }
1399 generalConstraintCase_ = 3;
1400 return this;
1401 }
1402
1405 public Builder clearSosConstraint() {
1406 if (sosConstraintBuilder_ == null) {
1407 if (generalConstraintCase_ == 3) {
1408 generalConstraintCase_ = 0;
1409 generalConstraint_ = null;
1410 onChanged();
1411 }
1412 } else {
1413 if (generalConstraintCase_ == 3) {
1414 generalConstraintCase_ = 0;
1415 generalConstraint_ = null;
1416 }
1417 sosConstraintBuilder_.clear();
1418 }
1419 return this;
1420 }
1421
1425 return getSosConstraintFieldBuilder().getBuilder();
1426 }
1427
1430 @java.lang.Override
1432 if ((generalConstraintCase_ == 3) && (sosConstraintBuilder_ != null)) {
1433 return sosConstraintBuilder_.getMessageOrBuilder();
1434 } else {
1435 if (generalConstraintCase_ == 3) {
1436 return (com.google.ortools.linearsolver.MPSosConstraint) generalConstraint_;
1437 }
1438 return com.google.ortools.linearsolver.MPSosConstraint.getDefaultInstance();
1439 }
1440 }
1441
1444 private com.google.protobuf.SingleFieldBuilder<
1445 com.google.ortools.linearsolver.MPSosConstraint, com.google.ortools.linearsolver.MPSosConstraint.Builder, com.google.ortools.linearsolver.MPSosConstraintOrBuilder>
1446 getSosConstraintFieldBuilder() {
1447 if (sosConstraintBuilder_ == null) {
1448 if (!(generalConstraintCase_ == 3)) {
1449 generalConstraint_ = com.google.ortools.linearsolver.MPSosConstraint.getDefaultInstance();
1450 }
1451 sosConstraintBuilder_ = new com.google.protobuf.SingleFieldBuilder<
1452 com.google.ortools.linearsolver.MPSosConstraint, com.google.ortools.linearsolver.MPSosConstraint.Builder, com.google.ortools.linearsolver.MPSosConstraintOrBuilder>(
1453 (com.google.ortools.linearsolver.MPSosConstraint) generalConstraint_,
1454 getParentForChildren(),
1455 isClean());
1456 generalConstraint_ = null;
1457 }
1458 generalConstraintCase_ = 3;
1459 onChanged();
1460 return sosConstraintBuilder_;
1461 }
1462
1463 private com.google.protobuf.SingleFieldBuilder<
1464 com.google.ortools.linearsolver.MPQuadraticConstraint, com.google.ortools.linearsolver.MPQuadraticConstraint.Builder, com.google.ortools.linearsolver.MPQuadraticConstraintOrBuilder> quadraticConstraintBuilder_;
1469 @java.lang.Override
1470 public boolean hasQuadraticConstraint() {
1471 return generalConstraintCase_ == 4;
1472 }
1473
1477 @java.lang.Override
1479 if (quadraticConstraintBuilder_ == null) {
1480 if (generalConstraintCase_ == 4) {
1481 return (com.google.ortools.linearsolver.MPQuadraticConstraint) generalConstraint_;
1482 }
1483 return com.google.ortools.linearsolver.MPQuadraticConstraint.getDefaultInstance();
1484 } else {
1485 if (generalConstraintCase_ == 4) {
1486 return quadraticConstraintBuilder_.getMessage();
1487 }
1488 return com.google.ortools.linearsolver.MPQuadraticConstraint.getDefaultInstance();
1489 }
1490 }
1491
1494 public Builder setQuadraticConstraint(com.google.ortools.linearsolver.MPQuadraticConstraint value) {
1495 if (quadraticConstraintBuilder_ == null) {
1496 if (value == null) {
1497 throw new NullPointerException();
1498 }
1499 generalConstraint_ = value;
1500 onChanged();
1501 } else {
1502 quadraticConstraintBuilder_.setMessage(value);
1503 }
1504 generalConstraintCase_ = 4;
1505 return this;
1506 }
1507
1511 com.google.ortools.linearsolver.MPQuadraticConstraint.Builder builderForValue) {
1512 if (quadraticConstraintBuilder_ == null) {
1513 generalConstraint_ = builderForValue.build();
1514 onChanged();
1515 } else {
1516 quadraticConstraintBuilder_.setMessage(builderForValue.build());
1517 }
1518 generalConstraintCase_ = 4;
1519 return this;
1520 }
1521
1524 public Builder mergeQuadraticConstraint(com.google.ortools.linearsolver.MPQuadraticConstraint value) {
1525 if (quadraticConstraintBuilder_ == null) {
1526 if (generalConstraintCase_ == 4 &&
1527 generalConstraint_ != com.google.ortools.linearsolver.MPQuadraticConstraint.getDefaultInstance()) {
1528 generalConstraint_ = com.google.ortools.linearsolver.MPQuadraticConstraint.newBuilder((com.google.ortools.linearsolver.MPQuadraticConstraint) generalConstraint_)
1529 .mergeFrom(value).buildPartial();
1530 } else {
1531 generalConstraint_ = value;
1532 }
1533 onChanged();
1534 } else {
1535 if (generalConstraintCase_ == 4) {
1536 quadraticConstraintBuilder_.mergeFrom(value);
1537 } else {
1538 quadraticConstraintBuilder_.setMessage(value);
1539 }
1540 }
1541 generalConstraintCase_ = 4;
1542 return this;
1543 }
1544
1547 public Builder clearQuadraticConstraint() {
1548 if (quadraticConstraintBuilder_ == null) {
1549 if (generalConstraintCase_ == 4) {
1550 generalConstraintCase_ = 0;
1551 generalConstraint_ = null;
1552 onChanged();
1553 }
1554 } else {
1555 if (generalConstraintCase_ == 4) {
1556 generalConstraintCase_ = 0;
1557 generalConstraint_ = null;
1558 }
1559 quadraticConstraintBuilder_.clear();
1560 }
1561 return this;
1562 }
1563
1567 return getQuadraticConstraintFieldBuilder().getBuilder();
1568 }
1569
1572 @java.lang.Override
1574 if ((generalConstraintCase_ == 4) && (quadraticConstraintBuilder_ != null)) {
1575 return quadraticConstraintBuilder_.getMessageOrBuilder();
1576 } else {
1577 if (generalConstraintCase_ == 4) {
1578 return (com.google.ortools.linearsolver.MPQuadraticConstraint) generalConstraint_;
1579 }
1580 return com.google.ortools.linearsolver.MPQuadraticConstraint.getDefaultInstance();
1581 }
1582 }
1583
1586 private com.google.protobuf.SingleFieldBuilder<
1587 com.google.ortools.linearsolver.MPQuadraticConstraint, com.google.ortools.linearsolver.MPQuadraticConstraint.Builder, com.google.ortools.linearsolver.MPQuadraticConstraintOrBuilder>
1588 getQuadraticConstraintFieldBuilder() {
1589 if (quadraticConstraintBuilder_ == null) {
1590 if (!(generalConstraintCase_ == 4)) {
1591 generalConstraint_ = com.google.ortools.linearsolver.MPQuadraticConstraint.getDefaultInstance();
1592 }
1593 quadraticConstraintBuilder_ = new com.google.protobuf.SingleFieldBuilder<
1594 com.google.ortools.linearsolver.MPQuadraticConstraint, com.google.ortools.linearsolver.MPQuadraticConstraint.Builder, com.google.ortools.linearsolver.MPQuadraticConstraintOrBuilder>(
1595 (com.google.ortools.linearsolver.MPQuadraticConstraint) generalConstraint_,
1596 getParentForChildren(),
1597 isClean());
1598 generalConstraint_ = null;
1599 }
1600 generalConstraintCase_ = 4;
1601 onChanged();
1602 return quadraticConstraintBuilder_;
1603 }
1604
1605 private com.google.protobuf.SingleFieldBuilder<
1606 com.google.ortools.linearsolver.MPAbsConstraint, com.google.ortools.linearsolver.MPAbsConstraint.Builder, com.google.ortools.linearsolver.MPAbsConstraintOrBuilder> absConstraintBuilder_;
1611 @java.lang.Override
1612 public boolean hasAbsConstraint() {
1613 return generalConstraintCase_ == 5;
1614 }
1615
1619 @java.lang.Override
1621 if (absConstraintBuilder_ == null) {
1622 if (generalConstraintCase_ == 5) {
1623 return (com.google.ortools.linearsolver.MPAbsConstraint) generalConstraint_;
1624 }
1625 return com.google.ortools.linearsolver.MPAbsConstraint.getDefaultInstance();
1626 } else {
1627 if (generalConstraintCase_ == 5) {
1628 return absConstraintBuilder_.getMessage();
1629 }
1630 return com.google.ortools.linearsolver.MPAbsConstraint.getDefaultInstance();
1631 }
1632 }
1633
1636 public Builder setAbsConstraint(com.google.ortools.linearsolver.MPAbsConstraint value) {
1637 if (absConstraintBuilder_ == null) {
1638 if (value == null) {
1639 throw new NullPointerException();
1640 }
1641 generalConstraint_ = value;
1642 onChanged();
1643 } else {
1644 absConstraintBuilder_.setMessage(value);
1645 }
1646 generalConstraintCase_ = 5;
1647 return this;
1648 }
1649
1652 public Builder setAbsConstraint(
1653 com.google.ortools.linearsolver.MPAbsConstraint.Builder builderForValue) {
1654 if (absConstraintBuilder_ == null) {
1655 generalConstraint_ = builderForValue.build();
1656 onChanged();
1657 } else {
1658 absConstraintBuilder_.setMessage(builderForValue.build());
1659 }
1660 generalConstraintCase_ = 5;
1661 return this;
1662 }
1663
1666 public Builder mergeAbsConstraint(com.google.ortools.linearsolver.MPAbsConstraint value) {
1667 if (absConstraintBuilder_ == null) {
1668 if (generalConstraintCase_ == 5 &&
1669 generalConstraint_ != com.google.ortools.linearsolver.MPAbsConstraint.getDefaultInstance()) {
1670 generalConstraint_ = com.google.ortools.linearsolver.MPAbsConstraint.newBuilder((com.google.ortools.linearsolver.MPAbsConstraint) generalConstraint_)
1671 .mergeFrom(value).buildPartial();
1672 } else {
1673 generalConstraint_ = value;
1674 }
1675 onChanged();
1676 } else {
1677 if (generalConstraintCase_ == 5) {
1678 absConstraintBuilder_.mergeFrom(value);
1679 } else {
1680 absConstraintBuilder_.setMessage(value);
1681 }
1682 }
1683 generalConstraintCase_ = 5;
1684 return this;
1685 }
1686
1689 public Builder clearAbsConstraint() {
1690 if (absConstraintBuilder_ == null) {
1691 if (generalConstraintCase_ == 5) {
1692 generalConstraintCase_ = 0;
1693 generalConstraint_ = null;
1694 onChanged();
1695 }
1696 } else {
1697 if (generalConstraintCase_ == 5) {
1698 generalConstraintCase_ = 0;
1699 generalConstraint_ = null;
1700 }
1701 absConstraintBuilder_.clear();
1702 }
1703 return this;
1704 }
1705
1709 return getAbsConstraintFieldBuilder().getBuilder();
1710 }
1711
1714 @java.lang.Override
1716 if ((generalConstraintCase_ == 5) && (absConstraintBuilder_ != null)) {
1717 return absConstraintBuilder_.getMessageOrBuilder();
1718 } else {
1719 if (generalConstraintCase_ == 5) {
1720 return (com.google.ortools.linearsolver.MPAbsConstraint) generalConstraint_;
1721 }
1722 return com.google.ortools.linearsolver.MPAbsConstraint.getDefaultInstance();
1723 }
1724 }
1725
1728 private com.google.protobuf.SingleFieldBuilder<
1729 com.google.ortools.linearsolver.MPAbsConstraint, com.google.ortools.linearsolver.MPAbsConstraint.Builder, com.google.ortools.linearsolver.MPAbsConstraintOrBuilder>
1730 getAbsConstraintFieldBuilder() {
1731 if (absConstraintBuilder_ == null) {
1732 if (!(generalConstraintCase_ == 5)) {
1733 generalConstraint_ = com.google.ortools.linearsolver.MPAbsConstraint.getDefaultInstance();
1734 }
1735 absConstraintBuilder_ = new com.google.protobuf.SingleFieldBuilder<
1736 com.google.ortools.linearsolver.MPAbsConstraint, com.google.ortools.linearsolver.MPAbsConstraint.Builder, com.google.ortools.linearsolver.MPAbsConstraintOrBuilder>(
1737 (com.google.ortools.linearsolver.MPAbsConstraint) generalConstraint_,
1738 getParentForChildren(),
1739 isClean());
1740 generalConstraint_ = null;
1741 }
1742 generalConstraintCase_ = 5;
1743 onChanged();
1744 return absConstraintBuilder_;
1745 }
1746
1747 private com.google.protobuf.SingleFieldBuilder<
1748 com.google.ortools.linearsolver.MPArrayConstraint, com.google.ortools.linearsolver.MPArrayConstraint.Builder, com.google.ortools.linearsolver.MPArrayConstraintOrBuilder> andConstraintBuilder_;
1758 @java.lang.Override
1759 public boolean hasAndConstraint() {
1760 return generalConstraintCase_ == 6;
1761 }
1762
1771 @java.lang.Override
1773 if (andConstraintBuilder_ == null) {
1774 if (generalConstraintCase_ == 6) {
1775 return (com.google.ortools.linearsolver.MPArrayConstraint) generalConstraint_;
1776 }
1777 return com.google.ortools.linearsolver.MPArrayConstraint.getDefaultInstance();
1778 } else {
1779 if (generalConstraintCase_ == 6) {
1780 return andConstraintBuilder_.getMessage();
1781 }
1782 return com.google.ortools.linearsolver.MPArrayConstraint.getDefaultInstance();
1783 }
1784 }
1785
1793 public Builder setAndConstraint(com.google.ortools.linearsolver.MPArrayConstraint value) {
1794 if (andConstraintBuilder_ == null) {
1795 if (value == null) {
1796 throw new NullPointerException();
1797 }
1798 generalConstraint_ = value;
1799 onChanged();
1800 } else {
1801 andConstraintBuilder_.setMessage(value);
1802 }
1803 generalConstraintCase_ = 6;
1804 return this;
1805 }
1806
1814 public Builder setAndConstraint(
1815 com.google.ortools.linearsolver.MPArrayConstraint.Builder builderForValue) {
1816 if (andConstraintBuilder_ == null) {
1817 generalConstraint_ = builderForValue.build();
1818 onChanged();
1819 } else {
1820 andConstraintBuilder_.setMessage(builderForValue.build());
1821 }
1822 generalConstraintCase_ = 6;
1823 return this;
1824 }
1825
1833 public Builder mergeAndConstraint(com.google.ortools.linearsolver.MPArrayConstraint value) {
1834 if (andConstraintBuilder_ == null) {
1835 if (generalConstraintCase_ == 6 &&
1836 generalConstraint_ != com.google.ortools.linearsolver.MPArrayConstraint.getDefaultInstance()) {
1837 generalConstraint_ = com.google.ortools.linearsolver.MPArrayConstraint.newBuilder((com.google.ortools.linearsolver.MPArrayConstraint) generalConstraint_)
1838 .mergeFrom(value).buildPartial();
1839 } else {
1840 generalConstraint_ = value;
1841 }
1842 onChanged();
1843 } else {
1844 if (generalConstraintCase_ == 6) {
1845 andConstraintBuilder_.mergeFrom(value);
1846 } else {
1847 andConstraintBuilder_.setMessage(value);
1848 }
1849 }
1850 generalConstraintCase_ = 6;
1851 return this;
1852 }
1853
1861 public Builder clearAndConstraint() {
1862 if (andConstraintBuilder_ == null) {
1863 if (generalConstraintCase_ == 6) {
1864 generalConstraintCase_ = 0;
1865 generalConstraint_ = null;
1866 onChanged();
1867 }
1868 } else {
1869 if (generalConstraintCase_ == 6) {
1870 generalConstraintCase_ = 0;
1871 generalConstraint_ = null;
1872 }
1873 andConstraintBuilder_.clear();
1874 }
1875 return this;
1876 }
1877
1886 return getAndConstraintFieldBuilder().getBuilder();
1887 }
1888
1896 @java.lang.Override
1898 if ((generalConstraintCase_ == 6) && (andConstraintBuilder_ != null)) {
1899 return andConstraintBuilder_.getMessageOrBuilder();
1900 } else {
1901 if (generalConstraintCase_ == 6) {
1902 return (com.google.ortools.linearsolver.MPArrayConstraint) generalConstraint_;
1903 }
1904 return com.google.ortools.linearsolver.MPArrayConstraint.getDefaultInstance();
1905 }
1906 }
1907
1915 private com.google.protobuf.SingleFieldBuilder<
1916 com.google.ortools.linearsolver.MPArrayConstraint, com.google.ortools.linearsolver.MPArrayConstraint.Builder, com.google.ortools.linearsolver.MPArrayConstraintOrBuilder>
1917 getAndConstraintFieldBuilder() {
1918 if (andConstraintBuilder_ == null) {
1919 if (!(generalConstraintCase_ == 6)) {
1920 generalConstraint_ = com.google.ortools.linearsolver.MPArrayConstraint.getDefaultInstance();
1921 }
1922 andConstraintBuilder_ = new com.google.protobuf.SingleFieldBuilder<
1923 com.google.ortools.linearsolver.MPArrayConstraint, com.google.ortools.linearsolver.MPArrayConstraint.Builder, com.google.ortools.linearsolver.MPArrayConstraintOrBuilder>(
1924 (com.google.ortools.linearsolver.MPArrayConstraint) generalConstraint_,
1925 getParentForChildren(),
1926 isClean());
1927 generalConstraint_ = null;
1928 }
1929 generalConstraintCase_ = 6;
1930 onChanged();
1931 return andConstraintBuilder_;
1932 }
1933
1934 private com.google.protobuf.SingleFieldBuilder<
1935 com.google.ortools.linearsolver.MPArrayConstraint, com.google.ortools.linearsolver.MPArrayConstraint.Builder, com.google.ortools.linearsolver.MPArrayConstraintOrBuilder> orConstraintBuilder_;
1945 @java.lang.Override
1946 public boolean hasOrConstraint() {
1947 return generalConstraintCase_ == 7;
1948 }
1949
1958 @java.lang.Override
1960 if (orConstraintBuilder_ == null) {
1961 if (generalConstraintCase_ == 7) {
1962 return (com.google.ortools.linearsolver.MPArrayConstraint) generalConstraint_;
1963 }
1964 return com.google.ortools.linearsolver.MPArrayConstraint.getDefaultInstance();
1965 } else {
1966 if (generalConstraintCase_ == 7) {
1967 return orConstraintBuilder_.getMessage();
1968 }
1969 return com.google.ortools.linearsolver.MPArrayConstraint.getDefaultInstance();
1970 }
1971 }
1972
1980 public Builder setOrConstraint(com.google.ortools.linearsolver.MPArrayConstraint value) {
1981 if (orConstraintBuilder_ == null) {
1982 if (value == null) {
1983 throw new NullPointerException();
1984 }
1985 generalConstraint_ = value;
1986 onChanged();
1987 } else {
1988 orConstraintBuilder_.setMessage(value);
1989 }
1990 generalConstraintCase_ = 7;
1991 return this;
1992 }
1993
2001 public Builder setOrConstraint(
2002 com.google.ortools.linearsolver.MPArrayConstraint.Builder builderForValue) {
2003 if (orConstraintBuilder_ == null) {
2004 generalConstraint_ = builderForValue.build();
2005 onChanged();
2006 } else {
2007 orConstraintBuilder_.setMessage(builderForValue.build());
2008 }
2009 generalConstraintCase_ = 7;
2010 return this;
2011 }
2012
2020 public Builder mergeOrConstraint(com.google.ortools.linearsolver.MPArrayConstraint value) {
2021 if (orConstraintBuilder_ == null) {
2022 if (generalConstraintCase_ == 7 &&
2023 generalConstraint_ != com.google.ortools.linearsolver.MPArrayConstraint.getDefaultInstance()) {
2024 generalConstraint_ = com.google.ortools.linearsolver.MPArrayConstraint.newBuilder((com.google.ortools.linearsolver.MPArrayConstraint) generalConstraint_)
2025 .mergeFrom(value).buildPartial();
2026 } else {
2027 generalConstraint_ = value;
2028 }
2029 onChanged();
2030 } else {
2031 if (generalConstraintCase_ == 7) {
2032 orConstraintBuilder_.mergeFrom(value);
2033 } else {
2034 orConstraintBuilder_.setMessage(value);
2035 }
2036 }
2037 generalConstraintCase_ = 7;
2038 return this;
2039 }
2040
2048 public Builder clearOrConstraint() {
2049 if (orConstraintBuilder_ == null) {
2050 if (generalConstraintCase_ == 7) {
2051 generalConstraintCase_ = 0;
2052 generalConstraint_ = null;
2053 onChanged();
2054 }
2055 } else {
2056 if (generalConstraintCase_ == 7) {
2057 generalConstraintCase_ = 0;
2058 generalConstraint_ = null;
2059 }
2060 orConstraintBuilder_.clear();
2061 }
2062 return this;
2063 }
2064
2073 return getOrConstraintFieldBuilder().getBuilder();
2074 }
2075
2083 @java.lang.Override
2085 if ((generalConstraintCase_ == 7) && (orConstraintBuilder_ != null)) {
2086 return orConstraintBuilder_.getMessageOrBuilder();
2087 } else {
2088 if (generalConstraintCase_ == 7) {
2089 return (com.google.ortools.linearsolver.MPArrayConstraint) generalConstraint_;
2090 }
2091 return com.google.ortools.linearsolver.MPArrayConstraint.getDefaultInstance();
2092 }
2093 }
2094
2102 private com.google.protobuf.SingleFieldBuilder<
2103 com.google.ortools.linearsolver.MPArrayConstraint, com.google.ortools.linearsolver.MPArrayConstraint.Builder, com.google.ortools.linearsolver.MPArrayConstraintOrBuilder>
2104 getOrConstraintFieldBuilder() {
2105 if (orConstraintBuilder_ == null) {
2106 if (!(generalConstraintCase_ == 7)) {
2107 generalConstraint_ = com.google.ortools.linearsolver.MPArrayConstraint.getDefaultInstance();
2108 }
2109 orConstraintBuilder_ = new com.google.protobuf.SingleFieldBuilder<
2110 com.google.ortools.linearsolver.MPArrayConstraint, com.google.ortools.linearsolver.MPArrayConstraint.Builder, com.google.ortools.linearsolver.MPArrayConstraintOrBuilder>(
2111 (com.google.ortools.linearsolver.MPArrayConstraint) generalConstraint_,
2112 getParentForChildren(),
2113 isClean());
2114 generalConstraint_ = null;
2115 }
2116 generalConstraintCase_ = 7;
2117 onChanged();
2118 return orConstraintBuilder_;
2119 }
2120
2121 private com.google.protobuf.SingleFieldBuilder<
2122 com.google.ortools.linearsolver.MPArrayWithConstantConstraint, com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder, com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder> minConstraintBuilder_;
2131 @java.lang.Override
2132 public boolean hasMinConstraint() {
2133 return generalConstraintCase_ == 8;
2134 }
2135
2143 @java.lang.Override
2145 if (minConstraintBuilder_ == null) {
2146 if (generalConstraintCase_ == 8) {
2147 return (com.google.ortools.linearsolver.MPArrayWithConstantConstraint) generalConstraint_;
2148 }
2149 return com.google.ortools.linearsolver.MPArrayWithConstantConstraint.getDefaultInstance();
2150 } else {
2151 if (generalConstraintCase_ == 8) {
2152 return minConstraintBuilder_.getMessage();
2153 }
2154 return com.google.ortools.linearsolver.MPArrayWithConstantConstraint.getDefaultInstance();
2155 }
2156 }
2157
2164 public Builder setMinConstraint(com.google.ortools.linearsolver.MPArrayWithConstantConstraint value) {
2165 if (minConstraintBuilder_ == null) {
2166 if (value == null) {
2167 throw new NullPointerException();
2168 }
2169 generalConstraint_ = value;
2170 onChanged();
2171 } else {
2172 minConstraintBuilder_.setMessage(value);
2173 }
2174 generalConstraintCase_ = 8;
2175 return this;
2176 }
2177
2184 public Builder setMinConstraint(
2185 com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder builderForValue) {
2186 if (minConstraintBuilder_ == null) {
2187 generalConstraint_ = builderForValue.build();
2188 onChanged();
2189 } else {
2190 minConstraintBuilder_.setMessage(builderForValue.build());
2191 }
2192 generalConstraintCase_ = 8;
2193 return this;
2194 }
2195
2202 public Builder mergeMinConstraint(com.google.ortools.linearsolver.MPArrayWithConstantConstraint value) {
2203 if (minConstraintBuilder_ == null) {
2204 if (generalConstraintCase_ == 8 &&
2205 generalConstraint_ != com.google.ortools.linearsolver.MPArrayWithConstantConstraint.getDefaultInstance()) {
2206 generalConstraint_ = com.google.ortools.linearsolver.MPArrayWithConstantConstraint.newBuilder((com.google.ortools.linearsolver.MPArrayWithConstantConstraint) generalConstraint_)
2207 .mergeFrom(value).buildPartial();
2208 } else {
2209 generalConstraint_ = value;
2210 }
2211 onChanged();
2212 } else {
2213 if (generalConstraintCase_ == 8) {
2214 minConstraintBuilder_.mergeFrom(value);
2215 } else {
2216 minConstraintBuilder_.setMessage(value);
2217 }
2218 }
2219 generalConstraintCase_ = 8;
2220 return this;
2221 }
2222
2229 public Builder clearMinConstraint() {
2230 if (minConstraintBuilder_ == null) {
2231 if (generalConstraintCase_ == 8) {
2232 generalConstraintCase_ = 0;
2233 generalConstraint_ = null;
2234 onChanged();
2235 }
2236 } else {
2237 if (generalConstraintCase_ == 8) {
2238 generalConstraintCase_ = 0;
2239 generalConstraint_ = null;
2240 }
2241 minConstraintBuilder_.clear();
2242 }
2243 return this;
2244 }
2245
2253 return getMinConstraintFieldBuilder().getBuilder();
2254 }
2255
2262 @java.lang.Override
2264 if ((generalConstraintCase_ == 8) && (minConstraintBuilder_ != null)) {
2265 return minConstraintBuilder_.getMessageOrBuilder();
2266 } else {
2267 if (generalConstraintCase_ == 8) {
2268 return (com.google.ortools.linearsolver.MPArrayWithConstantConstraint) generalConstraint_;
2269 }
2270 return com.google.ortools.linearsolver.MPArrayWithConstantConstraint.getDefaultInstance();
2271 }
2272 }
2273
2280 private com.google.protobuf.SingleFieldBuilder<
2281 com.google.ortools.linearsolver.MPArrayWithConstantConstraint, com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder, com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder>
2282 getMinConstraintFieldBuilder() {
2283 if (minConstraintBuilder_ == null) {
2284 if (!(generalConstraintCase_ == 8)) {
2285 generalConstraint_ = com.google.ortools.linearsolver.MPArrayWithConstantConstraint.getDefaultInstance();
2286 }
2287 minConstraintBuilder_ = new com.google.protobuf.SingleFieldBuilder<
2288 com.google.ortools.linearsolver.MPArrayWithConstantConstraint, com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder, com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder>(
2289 (com.google.ortools.linearsolver.MPArrayWithConstantConstraint) generalConstraint_,
2290 getParentForChildren(),
2291 isClean());
2292 generalConstraint_ = null;
2293 }
2294 generalConstraintCase_ = 8;
2295 onChanged();
2296 return minConstraintBuilder_;
2297 }
2298
2299 private com.google.protobuf.SingleFieldBuilder<
2300 com.google.ortools.linearsolver.MPArrayWithConstantConstraint, com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder, com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder> maxConstraintBuilder_;
2309 @java.lang.Override
2310 public boolean hasMaxConstraint() {
2311 return generalConstraintCase_ == 9;
2312 }
2313
2321 @java.lang.Override
2323 if (maxConstraintBuilder_ == null) {
2324 if (generalConstraintCase_ == 9) {
2325 return (com.google.ortools.linearsolver.MPArrayWithConstantConstraint) generalConstraint_;
2326 }
2327 return com.google.ortools.linearsolver.MPArrayWithConstantConstraint.getDefaultInstance();
2328 } else {
2329 if (generalConstraintCase_ == 9) {
2330 return maxConstraintBuilder_.getMessage();
2331 }
2332 return com.google.ortools.linearsolver.MPArrayWithConstantConstraint.getDefaultInstance();
2333 }
2334 }
2335
2342 public Builder setMaxConstraint(com.google.ortools.linearsolver.MPArrayWithConstantConstraint value) {
2343 if (maxConstraintBuilder_ == null) {
2344 if (value == null) {
2345 throw new NullPointerException();
2346 }
2347 generalConstraint_ = value;
2348 onChanged();
2349 } else {
2350 maxConstraintBuilder_.setMessage(value);
2351 }
2352 generalConstraintCase_ = 9;
2353 return this;
2354 }
2355
2362 public Builder setMaxConstraint(
2363 com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder builderForValue) {
2364 if (maxConstraintBuilder_ == null) {
2365 generalConstraint_ = builderForValue.build();
2366 onChanged();
2367 } else {
2368 maxConstraintBuilder_.setMessage(builderForValue.build());
2369 }
2370 generalConstraintCase_ = 9;
2371 return this;
2372 }
2373
2380 public Builder mergeMaxConstraint(com.google.ortools.linearsolver.MPArrayWithConstantConstraint value) {
2381 if (maxConstraintBuilder_ == null) {
2382 if (generalConstraintCase_ == 9 &&
2383 generalConstraint_ != com.google.ortools.linearsolver.MPArrayWithConstantConstraint.getDefaultInstance()) {
2384 generalConstraint_ = com.google.ortools.linearsolver.MPArrayWithConstantConstraint.newBuilder((com.google.ortools.linearsolver.MPArrayWithConstantConstraint) generalConstraint_)
2385 .mergeFrom(value).buildPartial();
2386 } else {
2387 generalConstraint_ = value;
2388 }
2389 onChanged();
2390 } else {
2391 if (generalConstraintCase_ == 9) {
2392 maxConstraintBuilder_.mergeFrom(value);
2393 } else {
2394 maxConstraintBuilder_.setMessage(value);
2395 }
2396 }
2397 generalConstraintCase_ = 9;
2398 return this;
2399 }
2400
2407 public Builder clearMaxConstraint() {
2408 if (maxConstraintBuilder_ == null) {
2409 if (generalConstraintCase_ == 9) {
2410 generalConstraintCase_ = 0;
2411 generalConstraint_ = null;
2412 onChanged();
2413 }
2414 } else {
2415 if (generalConstraintCase_ == 9) {
2416 generalConstraintCase_ = 0;
2417 generalConstraint_ = null;
2418 }
2419 maxConstraintBuilder_.clear();
2420 }
2421 return this;
2422 }
2423
2431 return getMaxConstraintFieldBuilder().getBuilder();
2432 }
2433
2440 @java.lang.Override
2442 if ((generalConstraintCase_ == 9) && (maxConstraintBuilder_ != null)) {
2443 return maxConstraintBuilder_.getMessageOrBuilder();
2444 } else {
2445 if (generalConstraintCase_ == 9) {
2446 return (com.google.ortools.linearsolver.MPArrayWithConstantConstraint) generalConstraint_;
2447 }
2448 return com.google.ortools.linearsolver.MPArrayWithConstantConstraint.getDefaultInstance();
2449 }
2450 }
2451
2458 private com.google.protobuf.SingleFieldBuilder<
2459 com.google.ortools.linearsolver.MPArrayWithConstantConstraint, com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder, com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder>
2460 getMaxConstraintFieldBuilder() {
2461 if (maxConstraintBuilder_ == null) {
2462 if (!(generalConstraintCase_ == 9)) {
2463 generalConstraint_ = com.google.ortools.linearsolver.MPArrayWithConstantConstraint.getDefaultInstance();
2464 }
2465 maxConstraintBuilder_ = new com.google.protobuf.SingleFieldBuilder<
2466 com.google.ortools.linearsolver.MPArrayWithConstantConstraint, com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder, com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder>(
2467 (com.google.ortools.linearsolver.MPArrayWithConstantConstraint) generalConstraint_,
2468 getParentForChildren(),
2469 isClean());
2470 generalConstraint_ = null;
2471 }
2472 generalConstraintCase_ = 9;
2473 onChanged();
2474 return maxConstraintBuilder_;
2475 }
2476
2477 // @@protoc_insertion_point(builder_scope:operations_research.MPGeneralConstraintProto)
2478 }
2479
2480 // @@protoc_insertion_point(class_scope:operations_research.MPGeneralConstraintProto)
2481 private static final com.google.ortools.linearsolver.MPGeneralConstraintProto DEFAULT_INSTANCE;
2482 static {
2483 DEFAULT_INSTANCE = new com.google.ortools.linearsolver.MPGeneralConstraintProto();
2484 }
2485
2487 return DEFAULT_INSTANCE;
2488 }
2489
2490 private static final com.google.protobuf.Parser<MPGeneralConstraintProto>
2491 PARSER = new com.google.protobuf.AbstractParser<MPGeneralConstraintProto>() {
2492 @java.lang.Override
2493 public MPGeneralConstraintProto parsePartialFrom(
2494 com.google.protobuf.CodedInputStream input,
2495 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2496 throws com.google.protobuf.InvalidProtocolBufferException {
2497 Builder builder = newBuilder();
2498 try {
2499 builder.mergeFrom(input, extensionRegistry);
2500 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2501 throw e.setUnfinishedMessage(builder.buildPartial());
2502 } catch (com.google.protobuf.UninitializedMessageException e) {
2503 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
2504 } catch (java.io.IOException e) {
2505 throw new com.google.protobuf.InvalidProtocolBufferException(e)
2506 .setUnfinishedMessage(builder.buildPartial());
2507 }
2508 return builder.buildPartial();
2509 }
2510 };
2511
2512 public static com.google.protobuf.Parser<MPGeneralConstraintProto> parser() {
2513 return PARSER;
2514 }
2515
2516 @java.lang.Override
2517 public com.google.protobuf.Parser<MPGeneralConstraintProto> getParserForType() {
2518 return PARSER;
2519 }
2520
2521 @java.lang.Override
2525
2526}
2527
com.google.ortools.linearsolver.MPSosConstraintOrBuilder getSosConstraintOrBuilder()
Builder setMaxConstraint(com.google.ortools.linearsolver.MPArrayWithConstantConstraint value)
com.google.ortools.linearsolver.MPArrayConstraint getAndConstraint()
Builder setMinConstraint(com.google.ortools.linearsolver.MPArrayWithConstantConstraint value)
Builder setAndConstraint(com.google.ortools.linearsolver.MPArrayConstraint.Builder builderForValue)
com.google.ortools.linearsolver.MPArrayWithConstantConstraint getMinConstraint()
Builder setAndConstraint(com.google.ortools.linearsolver.MPArrayConstraint value)
Builder setQuadraticConstraint(com.google.ortools.linearsolver.MPQuadraticConstraint.Builder builderForValue)
Builder mergeMinConstraint(com.google.ortools.linearsolver.MPArrayWithConstantConstraint value)
Builder mergeAbsConstraint(com.google.ortools.linearsolver.MPAbsConstraint value)
com.google.ortools.linearsolver.MPGeneralConstraintProto getDefaultInstanceForType()
Builder mergeIndicatorConstraint(com.google.ortools.linearsolver.MPIndicatorConstraint value)
Builder mergeAndConstraint(com.google.ortools.linearsolver.MPArrayConstraint value)
com.google.ortools.linearsolver.MPAbsConstraint getAbsConstraint()
Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.linearsolver.MPArrayConstraint.Builder getAndConstraintBuilder()
com.google.ortools.linearsolver.MPArrayConstraint.Builder getOrConstraintBuilder()
com.google.ortools.linearsolver.MPSosConstraint getSosConstraint()
com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder getMaxConstraintOrBuilder()
Builder mergeSosConstraint(com.google.ortools.linearsolver.MPSosConstraint value)
com.google.ortools.linearsolver.MPGeneralConstraintProto buildPartial()
Builder setAbsConstraint(com.google.ortools.linearsolver.MPAbsConstraint value)
Builder mergeMaxConstraint(com.google.ortools.linearsolver.MPArrayWithConstantConstraint value)
Builder setAbsConstraint(com.google.ortools.linearsolver.MPAbsConstraint.Builder builderForValue)
com.google.ortools.linearsolver.MPIndicatorConstraint getIndicatorConstraint()
com.google.ortools.linearsolver.MPArrayWithConstantConstraint getMaxConstraint()
com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder getMaxConstraintBuilder()
Builder setMinConstraint(com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder builderForValue)
Builder setSosConstraint(com.google.ortools.linearsolver.MPSosConstraint.Builder builderForValue)
com.google.ortools.linearsolver.MPQuadraticConstraintOrBuilder getQuadraticConstraintOrBuilder()
com.google.ortools.linearsolver.MPArrayConstraintOrBuilder getAndConstraintOrBuilder()
com.google.ortools.linearsolver.MPQuadraticConstraint.Builder getQuadraticConstraintBuilder()
com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder getMinConstraintOrBuilder()
Builder setMaxConstraint(com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder builderForValue)
Builder mergeQuadraticConstraint(com.google.ortools.linearsolver.MPQuadraticConstraint value)
com.google.ortools.linearsolver.MPArrayConstraint getOrConstraint()
Builder mergeFrom(com.google.ortools.linearsolver.MPGeneralConstraintProto other)
com.google.ortools.linearsolver.MPIndicatorConstraint.Builder getIndicatorConstraintBuilder()
com.google.ortools.linearsolver.MPSosConstraint.Builder getSosConstraintBuilder()
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Builder setQuadraticConstraint(com.google.ortools.linearsolver.MPQuadraticConstraint value)
com.google.ortools.linearsolver.MPGeneralConstraintProto build()
com.google.ortools.linearsolver.MPAbsConstraint.Builder getAbsConstraintBuilder()
Builder setIndicatorConstraint(com.google.ortools.linearsolver.MPIndicatorConstraint value)
Builder setOrConstraint(com.google.ortools.linearsolver.MPArrayConstraint value)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
Builder setIndicatorConstraint(com.google.ortools.linearsolver.MPIndicatorConstraint.Builder builderForValue)
com.google.ortools.linearsolver.MPAbsConstraintOrBuilder getAbsConstraintOrBuilder()
com.google.ortools.linearsolver.MPArrayConstraintOrBuilder getOrConstraintOrBuilder()
Builder setSosConstraint(com.google.ortools.linearsolver.MPSosConstraint value)
com.google.ortools.linearsolver.MPIndicatorConstraintOrBuilder getIndicatorConstraintOrBuilder()
Builder setOrConstraint(com.google.ortools.linearsolver.MPArrayConstraint.Builder builderForValue)
com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder getMinConstraintBuilder()
com.google.ortools.linearsolver.MPQuadraticConstraint getQuadraticConstraint()
Builder mergeOrConstraint(com.google.ortools.linearsolver.MPArrayConstraint value)
static com.google.ortools.linearsolver.MPGeneralConstraintProto parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.protobuf.Parser< MPGeneralConstraintProto > getParserForType()
com.google.ortools.linearsolver.MPSosConstraintOrBuilder getSosConstraintOrBuilder()
com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder getMaxConstraintOrBuilder()
static com.google.ortools.linearsolver.MPGeneralConstraintProto parseFrom(byte[] data)
com.google.ortools.linearsolver.MPSosConstraint getSosConstraint()
com.google.ortools.linearsolver.MPQuadraticConstraintOrBuilder getQuadraticConstraintOrBuilder()
static com.google.ortools.linearsolver.MPGeneralConstraintProto parseFrom(java.io.InputStream input)
static com.google.ortools.linearsolver.MPGeneralConstraintProto parseFrom(com.google.protobuf.ByteString data)
static Builder newBuilder(com.google.ortools.linearsolver.MPGeneralConstraintProto prototype)
com.google.ortools.linearsolver.MPArrayConstraint getOrConstraint()
com.google.ortools.linearsolver.MPGeneralConstraintProto getDefaultInstanceForType()
static com.google.ortools.linearsolver.MPGeneralConstraintProto parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
static com.google.ortools.linearsolver.MPGeneralConstraintProto parseFrom(java.nio.ByteBuffer data)
static com.google.ortools.linearsolver.MPGeneralConstraintProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
com.google.ortools.linearsolver.MPIndicatorConstraint getIndicatorConstraint()
com.google.ortools.linearsolver.MPArrayWithConstantConstraint getMinConstraint()
static com.google.ortools.linearsolver.MPGeneralConstraintProto parseFrom(com.google.protobuf.CodedInputStream input)
static com.google.ortools.linearsolver.MPGeneralConstraintProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.linearsolver.MPGeneralConstraintProto parseDelimitedFrom(java.io.InputStream input)
com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder getMinConstraintOrBuilder()
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
static com.google.protobuf.Parser< MPGeneralConstraintProto > parser()
com.google.ortools.linearsolver.MPAbsConstraint getAbsConstraint()
static com.google.ortools.linearsolver.MPGeneralConstraintProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
void writeTo(com.google.protobuf.CodedOutputStream output)
static com.google.ortools.linearsolver.MPGeneralConstraintProto getDefaultInstance()
com.google.ortools.linearsolver.MPArrayConstraint getAndConstraint()
com.google.ortools.linearsolver.MPAbsConstraintOrBuilder getAbsConstraintOrBuilder()
com.google.ortools.linearsolver.MPIndicatorConstraintOrBuilder getIndicatorConstraintOrBuilder()
com.google.ortools.linearsolver.MPQuadraticConstraint getQuadraticConstraint()
com.google.ortools.linearsolver.MPArrayConstraintOrBuilder getAndConstraintOrBuilder()
com.google.ortools.linearsolver.MPArrayWithConstantConstraint getMaxConstraint()
com.google.ortools.linearsolver.MPArrayConstraintOrBuilder getOrConstraintOrBuilder()
static com.google.ortools.linearsolver.MPGeneralConstraintProto parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)