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