511 int size = memoizedSize;
512 if (size != -1)
return size;
515 if (((bitField0_ & 0x00000001) != 0)) {
516 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
518 if (generalConstraintCase_ == 2) {
519 size += com.google.protobuf.CodedOutputStream
520 .computeMessageSize(2, (com.google.ortools.linearsolver.MPIndicatorConstraint) generalConstraint_);
522 if (generalConstraintCase_ == 3) {
523 size += com.google.protobuf.CodedOutputStream
524 .computeMessageSize(3, (com.google.ortools.linearsolver.MPSosConstraint) generalConstraint_);
526 if (generalConstraintCase_ == 4) {
527 size += com.google.protobuf.CodedOutputStream
528 .computeMessageSize(4, (com.google.ortools.linearsolver.MPQuadraticConstraint) generalConstraint_);
530 if (generalConstraintCase_ == 5) {
531 size += com.google.protobuf.CodedOutputStream
532 .computeMessageSize(5, (com.google.ortools.linearsolver.MPAbsConstraint) generalConstraint_);
534 if (generalConstraintCase_ == 6) {
535 size += com.google.protobuf.CodedOutputStream
536 .computeMessageSize(6, (com.google.ortools.linearsolver.MPArrayConstraint) generalConstraint_);
538 if (generalConstraintCase_ == 7) {
539 size += com.google.protobuf.CodedOutputStream
540 .computeMessageSize(7, (com.google.ortools.linearsolver.MPArrayConstraint) generalConstraint_);
542 if (generalConstraintCase_ == 8) {
543 size += com.google.protobuf.CodedOutputStream
544 .computeMessageSize(8, (com.google.ortools.linearsolver.MPArrayWithConstantConstraint) generalConstraint_);
546 if (generalConstraintCase_ == 9) {
547 size += com.google.protobuf.CodedOutputStream
548 .computeMessageSize(9, (com.google.ortools.linearsolver.MPArrayWithConstantConstraint) generalConstraint_);
550 size += getUnknownFields().getSerializedSize();
763 com.google.protobuf.GeneratedMessageV3.
Builder<Builder> implements
766 public static final com.google.protobuf.Descriptors.Descriptor
768 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPGeneralConstraintProto_descriptor;
772 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
774 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPGeneralConstraintProto_fieldAccessorTable
775 .ensureFieldAccessorsInitialized(
776 com.google.ortools.linearsolver.MPGeneralConstraintProto.class, com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder.class);
785 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
794 if (indicatorConstraintBuilder_ !=
null) {
795 indicatorConstraintBuilder_.clear();
797 if (sosConstraintBuilder_ !=
null) {
798 sosConstraintBuilder_.clear();
800 if (quadraticConstraintBuilder_ !=
null) {
801 quadraticConstraintBuilder_.clear();
803 if (absConstraintBuilder_ !=
null) {
804 absConstraintBuilder_.clear();
806 if (andConstraintBuilder_ !=
null) {
807 andConstraintBuilder_.clear();
809 if (orConstraintBuilder_ !=
null) {
810 orConstraintBuilder_.clear();
812 if (minConstraintBuilder_ !=
null) {
813 minConstraintBuilder_.clear();
815 if (maxConstraintBuilder_ !=
null) {
816 maxConstraintBuilder_.clear();
818 generalConstraintCase_ = 0;
819 generalConstraint_ =
null;
824 public com.google.protobuf.Descriptors.Descriptor
826 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPGeneralConstraintProto_descriptor;
831 return com.google.ortools.linearsolver.MPGeneralConstraintProto.getDefaultInstance();
838 throw newUninitializedMessageException(result);
846 if (bitField0_ != 0) { buildPartial0(result); }
847 buildPartialOneofs(result);
852 private void buildPartial0(com.google.ortools.linearsolver.MPGeneralConstraintProto result) {
853 int from_bitField0_ = bitField0_;
854 int to_bitField0_ = 0;
855 if (((from_bitField0_ & 0x00000001) != 0)) {
856 result.name_ = name_;
857 to_bitField0_ |= 0x00000001;
859 result.bitField0_ |= to_bitField0_;
862 private void buildPartialOneofs(com.google.ortools.linearsolver.MPGeneralConstraintProto result) {
863 result.generalConstraintCase_ = generalConstraintCase_;
864 result.generalConstraint_ = this.generalConstraint_;
865 if (generalConstraintCase_ == 2 &&
866 indicatorConstraintBuilder_ !=
null) {
867 result.generalConstraint_ = indicatorConstraintBuilder_.build();
869 if (generalConstraintCase_ == 3 &&
870 sosConstraintBuilder_ !=
null) {
871 result.generalConstraint_ = sosConstraintBuilder_.build();
873 if (generalConstraintCase_ == 4 &&
874 quadraticConstraintBuilder_ !=
null) {
875 result.generalConstraint_ = quadraticConstraintBuilder_.build();
877 if (generalConstraintCase_ == 5 &&
878 absConstraintBuilder_ !=
null) {
879 result.generalConstraint_ = absConstraintBuilder_.build();
881 if (generalConstraintCase_ == 6 &&
882 andConstraintBuilder_ !=
null) {
883 result.generalConstraint_ = andConstraintBuilder_.build();
885 if (generalConstraintCase_ == 7 &&
886 orConstraintBuilder_ !=
null) {
887 result.generalConstraint_ = orConstraintBuilder_.build();
889 if (generalConstraintCase_ == 8 &&
890 minConstraintBuilder_ !=
null) {
891 result.generalConstraint_ = minConstraintBuilder_.build();
893 if (generalConstraintCase_ == 9 &&
894 maxConstraintBuilder_ !=
null) {
895 result.generalConstraint_ = maxConstraintBuilder_.build();
901 return super.
clone();
905 com.google.protobuf.Descriptors.FieldDescriptor field,
906 java.lang.Object value) {
907 return super.
setField(field, value);
911 com.google.protobuf.Descriptors.FieldDescriptor field) {
916 com.google.protobuf.Descriptors.OneofDescriptor oneof) {
921 com.google.protobuf.Descriptors.FieldDescriptor field,
922 int index, java.lang.Object value) {
927 com.google.protobuf.Descriptors.FieldDescriptor field,
928 java.lang.Object value) {
933 if (other instanceof com.google.ortools.linearsolver.MPGeneralConstraintProto) {
934 return mergeFrom((com.google.ortools.linearsolver.MPGeneralConstraintProto)other);
936 super.mergeFrom(other);
942 if (other == com.google.ortools.linearsolver.MPGeneralConstraintProto.getDefaultInstance())
return this;
943 if (other.hasName()) {
945 bitField0_ |= 0x00000001;
948 switch (other.getGeneralConstraintCase()) {
949 case INDICATOR_CONSTRAINT: {
953 case SOS_CONSTRAINT: {
957 case QUADRATIC_CONSTRAINT: {
961 case ABS_CONSTRAINT: {
965 case AND_CONSTRAINT: {
969 case OR_CONSTRAINT: {
973 case MIN_CONSTRAINT: {
977 case MAX_CONSTRAINT: {
981 case GENERALCONSTRAINT_NOT_SET: {
997 com.google.protobuf.CodedInputStream input,
998 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
999 throws java.io.IOException {
1000 if (extensionRegistry ==
null) {
1001 throw new java.lang.NullPointerException();
1004 boolean done =
false;
1006 int tag = input.readTag();
1012 name_ = input.readBytes();
1013 bitField0_ |= 0x00000001;
1018 getIndicatorConstraintFieldBuilder().getBuilder(),
1020 generalConstraintCase_ = 2;
1025 getSosConstraintFieldBuilder().getBuilder(),
1027 generalConstraintCase_ = 3;
1032 getQuadraticConstraintFieldBuilder().getBuilder(),
1034 generalConstraintCase_ = 4;
1039 getAbsConstraintFieldBuilder().getBuilder(),
1041 generalConstraintCase_ = 5;
1046 getAndConstraintFieldBuilder().getBuilder(),
1048 generalConstraintCase_ = 6;
1053 getOrConstraintFieldBuilder().getBuilder(),
1055 generalConstraintCase_ = 7;
1060 getMinConstraintFieldBuilder().getBuilder(),
1062 generalConstraintCase_ = 8;
1067 getMaxConstraintFieldBuilder().getBuilder(),
1069 generalConstraintCase_ = 9;
1073 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1080 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
1081 throw e.unwrapIOException();
1087 private int generalConstraintCase_ = 0;
1088 private java.lang.Object generalConstraint_;
1092 generalConstraintCase_);
1096 generalConstraintCase_ = 0;
1097 generalConstraint_ =
null;
1102 private int bitField0_;
1104 private java.lang.Object name_ =
"";
1114 return ((bitField0_ & 0x00000001) != 0);
1125 java.lang.Object ref = name_;
1126 if (!(ref instanceof java.lang.String)) {
1127 com.google.protobuf.ByteString bs =
1128 (com.google.protobuf.ByteString) ref;
1129 java.lang.String s = bs.toStringUtf8();
1130 if (bs.isValidUtf8()) {
1135 return (java.lang.String) ref;
1146 public com.google.protobuf.ByteString
1148 java.lang.Object ref = name_;
1149 if (ref instanceof String) {
1150 com.google.protobuf.ByteString b =
1151 com.google.protobuf.ByteString.copyFromUtf8(
1152 (java.lang.String) ref);
1156 return (com.google.protobuf.ByteString) ref;
1169 java.lang.String value) {
1170 if (value ==
null) {
throw new NullPointerException(); }
1172 bitField0_ |= 0x00000001;
1186 bitField0_ = (bitField0_ & ~0x00000001);
1200 com.google.protobuf.ByteString value) {
1201 if (value ==
null) {
throw new NullPointerException(); }
1203 bitField0_ |= 0x00000001;
1208 private com.google.protobuf.SingleFieldBuilderV3<
1209 com.google.ortools.linearsolver.MPIndicatorConstraint, com.google.ortools.linearsolver.MPIndicatorConstraint.Builder, com.google.ortools.linearsolver.MPIndicatorConstraintOrBuilder> indicatorConstraintBuilder_;
1216 return generalConstraintCase_ == 2;
1224 if (indicatorConstraintBuilder_ ==
null) {
1225 if (generalConstraintCase_ == 2) {
1226 return (com.google.ortools.linearsolver.MPIndicatorConstraint) generalConstraint_;
1228 return com.google.ortools.linearsolver.MPIndicatorConstraint.getDefaultInstance();
1230 if (generalConstraintCase_ == 2) {
1231 return indicatorConstraintBuilder_.getMessage();
1233 return com.google.ortools.linearsolver.MPIndicatorConstraint.getDefaultInstance();
1240 if (indicatorConstraintBuilder_ ==
null) {
1241 if (value ==
null) {
1242 throw new NullPointerException();
1244 generalConstraint_ = value;
1247 indicatorConstraintBuilder_.setMessage(value);
1249 generalConstraintCase_ = 2;
1256 com.google.ortools.linearsolver.MPIndicatorConstraint.Builder builderForValue) {
1257 if (indicatorConstraintBuilder_ ==
null) {
1258 generalConstraint_ = builderForValue.
build();
1261 indicatorConstraintBuilder_.setMessage(builderForValue.build());
1263 generalConstraintCase_ = 2;
1270 if (indicatorConstraintBuilder_ ==
null) {
1271 if (generalConstraintCase_ == 2 &&
1272 generalConstraint_ != com.google.ortools.linearsolver.MPIndicatorConstraint.getDefaultInstance()) {
1273 generalConstraint_ = com.google.ortools.linearsolver.MPIndicatorConstraint.newBuilder((com.google.ortools.linearsolver.MPIndicatorConstraint) generalConstraint_)
1276 generalConstraint_ = value;
1280 if (generalConstraintCase_ == 2) {
1281 indicatorConstraintBuilder_.mergeFrom(value);
1283 indicatorConstraintBuilder_.setMessage(value);
1286 generalConstraintCase_ = 2;
1293 if (indicatorConstraintBuilder_ ==
null) {
1294 if (generalConstraintCase_ == 2) {
1295 generalConstraintCase_ = 0;
1296 generalConstraint_ =
null;
1300 if (generalConstraintCase_ == 2) {
1301 generalConstraintCase_ = 0;
1302 generalConstraint_ =
null;
1304 indicatorConstraintBuilder_.clear();
1312 return getIndicatorConstraintFieldBuilder().getBuilder();
1319 if ((generalConstraintCase_ == 2) && (indicatorConstraintBuilder_ !=
null)) {
1320 return indicatorConstraintBuilder_.getMessageOrBuilder();
1322 if (generalConstraintCase_ == 2) {
1323 return (com.google.ortools.linearsolver.MPIndicatorConstraint) generalConstraint_;
1325 return com.google.ortools.linearsolver.MPIndicatorConstraint.getDefaultInstance();
1331 private com.google.protobuf.SingleFieldBuilderV3<
1332 com.google.ortools.linearsolver.MPIndicatorConstraint, com.google.ortools.linearsolver.MPIndicatorConstraint.Builder, com.google.ortools.linearsolver.MPIndicatorConstraintOrBuilder>
1333 getIndicatorConstraintFieldBuilder() {
1334 if (indicatorConstraintBuilder_ ==
null) {
1335 if (!(generalConstraintCase_ == 2)) {
1336 generalConstraint_ = com.google.ortools.linearsolver.MPIndicatorConstraint.getDefaultInstance();
1338 indicatorConstraintBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
1339 com.google.ortools.linearsolver.MPIndicatorConstraint, com.google.ortools.linearsolver.MPIndicatorConstraint.Builder, com.google.ortools.linearsolver.MPIndicatorConstraintOrBuilder>(
1340 (com.google.ortools.linearsolver.MPIndicatorConstraint) generalConstraint_,
1341 getParentForChildren(),
1343 generalConstraint_ =
null;
1345 generalConstraintCase_ = 2;
1347 return indicatorConstraintBuilder_;
1350 private com.google.protobuf.SingleFieldBuilderV3<
1351 com.google.ortools.linearsolver.MPSosConstraint, com.google.ortools.linearsolver.MPSosConstraint.Builder, com.google.ortools.linearsolver.MPSosConstraintOrBuilder> sosConstraintBuilder_;
1358 return generalConstraintCase_ == 3;
1366 if (sosConstraintBuilder_ ==
null) {
1367 if (generalConstraintCase_ == 3) {
1368 return (com.google.ortools.linearsolver.MPSosConstraint) generalConstraint_;
1370 return com.google.ortools.linearsolver.MPSosConstraint.getDefaultInstance();
1372 if (generalConstraintCase_ == 3) {
1373 return sosConstraintBuilder_.getMessage();
1375 return com.google.ortools.linearsolver.MPSosConstraint.getDefaultInstance();
1382 if (sosConstraintBuilder_ ==
null) {
1383 if (value ==
null) {
1384 throw new NullPointerException();
1386 generalConstraint_ = value;
1389 sosConstraintBuilder_.setMessage(value);
1391 generalConstraintCase_ = 3;
1398 com.google.ortools.linearsolver.MPSosConstraint.Builder builderForValue) {
1399 if (sosConstraintBuilder_ ==
null) {
1400 generalConstraint_ = builderForValue.
build();
1403 sosConstraintBuilder_.setMessage(builderForValue.build());
1405 generalConstraintCase_ = 3;
1412 if (sosConstraintBuilder_ ==
null) {
1413 if (generalConstraintCase_ == 3 &&
1414 generalConstraint_ != com.google.ortools.linearsolver.MPSosConstraint.getDefaultInstance()) {
1415 generalConstraint_ = com.google.ortools.linearsolver.MPSosConstraint.newBuilder((com.google.ortools.linearsolver.MPSosConstraint) generalConstraint_)
1418 generalConstraint_ = value;
1422 if (generalConstraintCase_ == 3) {
1423 sosConstraintBuilder_.mergeFrom(value);
1425 sosConstraintBuilder_.setMessage(value);
1428 generalConstraintCase_ = 3;
1435 if (sosConstraintBuilder_ ==
null) {
1436 if (generalConstraintCase_ == 3) {
1437 generalConstraintCase_ = 0;
1438 generalConstraint_ =
null;
1442 if (generalConstraintCase_ == 3) {
1443 generalConstraintCase_ = 0;
1444 generalConstraint_ =
null;
1446 sosConstraintBuilder_.clear();
1454 return getSosConstraintFieldBuilder().getBuilder();
1461 if ((generalConstraintCase_ == 3) && (sosConstraintBuilder_ !=
null)) {
1462 return sosConstraintBuilder_.getMessageOrBuilder();
1464 if (generalConstraintCase_ == 3) {
1465 return (com.google.ortools.linearsolver.MPSosConstraint) generalConstraint_;
1467 return com.google.ortools.linearsolver.MPSosConstraint.getDefaultInstance();
1473 private com.google.protobuf.SingleFieldBuilderV3<
1474 com.google.ortools.linearsolver.MPSosConstraint, com.google.ortools.linearsolver.MPSosConstraint.Builder, com.google.ortools.linearsolver.MPSosConstraintOrBuilder>
1475 getSosConstraintFieldBuilder() {
1476 if (sosConstraintBuilder_ ==
null) {
1477 if (!(generalConstraintCase_ == 3)) {
1478 generalConstraint_ = com.google.ortools.linearsolver.MPSosConstraint.getDefaultInstance();
1480 sosConstraintBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
1481 com.google.ortools.linearsolver.MPSosConstraint, com.google.ortools.linearsolver.MPSosConstraint.Builder, com.google.ortools.linearsolver.MPSosConstraintOrBuilder>(
1482 (com.google.ortools.linearsolver.MPSosConstraint) generalConstraint_,
1483 getParentForChildren(),
1485 generalConstraint_ =
null;
1487 generalConstraintCase_ = 3;
1489 return sosConstraintBuilder_;
1492 private com.google.protobuf.SingleFieldBuilderV3<
1493 com.google.ortools.linearsolver.MPQuadraticConstraint, com.google.ortools.linearsolver.MPQuadraticConstraint.Builder, com.google.ortools.linearsolver.MPQuadraticConstraintOrBuilder> quadraticConstraintBuilder_;
1500 return generalConstraintCase_ == 4;
1508 if (quadraticConstraintBuilder_ ==
null) {
1509 if (generalConstraintCase_ == 4) {
1510 return (com.google.ortools.linearsolver.MPQuadraticConstraint) generalConstraint_;
1512 return com.google.ortools.linearsolver.MPQuadraticConstraint.getDefaultInstance();
1514 if (generalConstraintCase_ == 4) {
1515 return quadraticConstraintBuilder_.getMessage();
1517 return com.google.ortools.linearsolver.MPQuadraticConstraint.getDefaultInstance();
1524 if (quadraticConstraintBuilder_ ==
null) {
1525 if (value ==
null) {
1526 throw new NullPointerException();
1528 generalConstraint_ = value;
1531 quadraticConstraintBuilder_.setMessage(value);
1533 generalConstraintCase_ = 4;
1540 com.google.ortools.linearsolver.MPQuadraticConstraint.Builder builderForValue) {
1541 if (quadraticConstraintBuilder_ ==
null) {
1542 generalConstraint_ = builderForValue.
build();
1545 quadraticConstraintBuilder_.setMessage(builderForValue.build());
1547 generalConstraintCase_ = 4;
1554 if (quadraticConstraintBuilder_ ==
null) {
1555 if (generalConstraintCase_ == 4 &&
1556 generalConstraint_ != com.google.ortools.linearsolver.MPQuadraticConstraint.getDefaultInstance()) {
1557 generalConstraint_ = com.google.ortools.linearsolver.MPQuadraticConstraint.newBuilder((com.google.ortools.linearsolver.MPQuadraticConstraint) generalConstraint_)
1560 generalConstraint_ = value;
1564 if (generalConstraintCase_ == 4) {
1565 quadraticConstraintBuilder_.mergeFrom(value);
1567 quadraticConstraintBuilder_.setMessage(value);
1570 generalConstraintCase_ = 4;
1577 if (quadraticConstraintBuilder_ ==
null) {
1578 if (generalConstraintCase_ == 4) {
1579 generalConstraintCase_ = 0;
1580 generalConstraint_ =
null;
1584 if (generalConstraintCase_ == 4) {
1585 generalConstraintCase_ = 0;
1586 generalConstraint_ =
null;
1588 quadraticConstraintBuilder_.clear();
1596 return getQuadraticConstraintFieldBuilder().getBuilder();
1603 if ((generalConstraintCase_ == 4) && (quadraticConstraintBuilder_ !=
null)) {
1604 return quadraticConstraintBuilder_.getMessageOrBuilder();
1606 if (generalConstraintCase_ == 4) {
1607 return (com.google.ortools.linearsolver.MPQuadraticConstraint) generalConstraint_;
1609 return com.google.ortools.linearsolver.MPQuadraticConstraint.getDefaultInstance();
1615 private com.google.protobuf.SingleFieldBuilderV3<
1616 com.google.ortools.linearsolver.MPQuadraticConstraint, com.google.ortools.linearsolver.MPQuadraticConstraint.Builder, com.google.ortools.linearsolver.MPQuadraticConstraintOrBuilder>
1617 getQuadraticConstraintFieldBuilder() {
1618 if (quadraticConstraintBuilder_ ==
null) {
1619 if (!(generalConstraintCase_ == 4)) {
1620 generalConstraint_ = com.google.ortools.linearsolver.MPQuadraticConstraint.getDefaultInstance();
1622 quadraticConstraintBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
1623 com.google.ortools.linearsolver.MPQuadraticConstraint, com.google.ortools.linearsolver.MPQuadraticConstraint.Builder, com.google.ortools.linearsolver.MPQuadraticConstraintOrBuilder>(
1624 (com.google.ortools.linearsolver.MPQuadraticConstraint) generalConstraint_,
1625 getParentForChildren(),
1627 generalConstraint_ =
null;
1629 generalConstraintCase_ = 4;
1631 return quadraticConstraintBuilder_;
1634 private com.google.protobuf.SingleFieldBuilderV3<
1635 com.google.ortools.linearsolver.MPAbsConstraint, com.google.ortools.linearsolver.MPAbsConstraint.Builder, com.google.ortools.linearsolver.MPAbsConstraintOrBuilder> absConstraintBuilder_;
1642 return generalConstraintCase_ == 5;
1650 if (absConstraintBuilder_ ==
null) {
1651 if (generalConstraintCase_ == 5) {
1652 return (com.google.ortools.linearsolver.MPAbsConstraint) generalConstraint_;
1654 return com.google.ortools.linearsolver.MPAbsConstraint.getDefaultInstance();
1656 if (generalConstraintCase_ == 5) {
1657 return absConstraintBuilder_.getMessage();
1659 return com.google.ortools.linearsolver.MPAbsConstraint.getDefaultInstance();
1666 if (absConstraintBuilder_ ==
null) {
1667 if (value ==
null) {
1668 throw new NullPointerException();
1670 generalConstraint_ = value;
1673 absConstraintBuilder_.setMessage(value);
1675 generalConstraintCase_ = 5;
1682 com.google.ortools.linearsolver.MPAbsConstraint.Builder builderForValue) {
1683 if (absConstraintBuilder_ ==
null) {
1684 generalConstraint_ = builderForValue.
build();
1687 absConstraintBuilder_.setMessage(builderForValue.build());
1689 generalConstraintCase_ = 5;
1696 if (absConstraintBuilder_ ==
null) {
1697 if (generalConstraintCase_ == 5 &&
1698 generalConstraint_ != com.google.ortools.linearsolver.MPAbsConstraint.getDefaultInstance()) {
1699 generalConstraint_ = com.google.ortools.linearsolver.MPAbsConstraint.newBuilder((com.google.ortools.linearsolver.MPAbsConstraint) generalConstraint_)
1702 generalConstraint_ = value;
1706 if (generalConstraintCase_ == 5) {
1707 absConstraintBuilder_.mergeFrom(value);
1709 absConstraintBuilder_.setMessage(value);
1712 generalConstraintCase_ = 5;
1719 if (absConstraintBuilder_ ==
null) {
1720 if (generalConstraintCase_ == 5) {
1721 generalConstraintCase_ = 0;
1722 generalConstraint_ =
null;
1726 if (generalConstraintCase_ == 5) {
1727 generalConstraintCase_ = 0;
1728 generalConstraint_ =
null;
1730 absConstraintBuilder_.clear();
1738 return getAbsConstraintFieldBuilder().getBuilder();
1745 if ((generalConstraintCase_ == 5) && (absConstraintBuilder_ !=
null)) {
1746 return absConstraintBuilder_.getMessageOrBuilder();
1748 if (generalConstraintCase_ == 5) {
1749 return (com.google.ortools.linearsolver.MPAbsConstraint) generalConstraint_;
1751 return com.google.ortools.linearsolver.MPAbsConstraint.getDefaultInstance();
1757 private com.google.protobuf.SingleFieldBuilderV3<
1758 com.google.ortools.linearsolver.MPAbsConstraint, com.google.ortools.linearsolver.MPAbsConstraint.Builder, com.google.ortools.linearsolver.MPAbsConstraintOrBuilder>
1759 getAbsConstraintFieldBuilder() {
1760 if (absConstraintBuilder_ ==
null) {
1761 if (!(generalConstraintCase_ == 5)) {
1762 generalConstraint_ = com.google.ortools.linearsolver.MPAbsConstraint.getDefaultInstance();
1764 absConstraintBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
1765 com.google.ortools.linearsolver.MPAbsConstraint, com.google.ortools.linearsolver.MPAbsConstraint.Builder, com.google.ortools.linearsolver.MPAbsConstraintOrBuilder>(
1766 (com.google.ortools.linearsolver.MPAbsConstraint) generalConstraint_,
1767 getParentForChildren(),
1769 generalConstraint_ =
null;
1771 generalConstraintCase_ = 5;
1773 return absConstraintBuilder_;
1776 private com.google.protobuf.SingleFieldBuilderV3<
1777 com.google.ortools.linearsolver.MPArrayConstraint, com.google.ortools.linearsolver.MPArrayConstraint.Builder, com.google.ortools.linearsolver.MPArrayConstraintOrBuilder> andConstraintBuilder_;
1789 return generalConstraintCase_ == 6;
1802 if (andConstraintBuilder_ ==
null) {
1803 if (generalConstraintCase_ == 6) {
1804 return (com.google.ortools.linearsolver.MPArrayConstraint) generalConstraint_;
1806 return com.google.ortools.linearsolver.MPArrayConstraint.getDefaultInstance();
1808 if (generalConstraintCase_ == 6) {
1809 return andConstraintBuilder_.getMessage();
1811 return com.google.ortools.linearsolver.MPArrayConstraint.getDefaultInstance();
1823 if (andConstraintBuilder_ ==
null) {
1824 if (value ==
null) {
1825 throw new NullPointerException();
1827 generalConstraint_ = value;
1830 andConstraintBuilder_.setMessage(value);
1832 generalConstraintCase_ = 6;
1844 com.google.ortools.linearsolver.MPArrayConstraint.Builder builderForValue) {
1845 if (andConstraintBuilder_ ==
null) {
1846 generalConstraint_ = builderForValue.
build();
1849 andConstraintBuilder_.setMessage(builderForValue.build());
1851 generalConstraintCase_ = 6;
1863 if (andConstraintBuilder_ ==
null) {
1864 if (generalConstraintCase_ == 6 &&
1865 generalConstraint_ != com.google.ortools.linearsolver.MPArrayConstraint.getDefaultInstance()) {
1866 generalConstraint_ = com.google.ortools.linearsolver.MPArrayConstraint.newBuilder((com.google.ortools.linearsolver.MPArrayConstraint) generalConstraint_)
1869 generalConstraint_ = value;
1873 if (generalConstraintCase_ == 6) {
1874 andConstraintBuilder_.mergeFrom(value);
1876 andConstraintBuilder_.setMessage(value);
1879 generalConstraintCase_ = 6;
1891 if (andConstraintBuilder_ ==
null) {
1892 if (generalConstraintCase_ == 6) {
1893 generalConstraintCase_ = 0;
1894 generalConstraint_ =
null;
1898 if (generalConstraintCase_ == 6) {
1899 generalConstraintCase_ = 0;
1900 generalConstraint_ =
null;
1902 andConstraintBuilder_.clear();
1915 return getAndConstraintFieldBuilder().getBuilder();
1927 if ((generalConstraintCase_ == 6) && (andConstraintBuilder_ !=
null)) {
1928 return andConstraintBuilder_.getMessageOrBuilder();
1930 if (generalConstraintCase_ == 6) {
1931 return (com.google.ortools.linearsolver.MPArrayConstraint) generalConstraint_;
1933 return com.google.ortools.linearsolver.MPArrayConstraint.getDefaultInstance();
1944 private com.google.protobuf.SingleFieldBuilderV3<
1945 com.google.ortools.linearsolver.MPArrayConstraint, com.google.ortools.linearsolver.MPArrayConstraint.Builder, com.google.ortools.linearsolver.MPArrayConstraintOrBuilder>
1946 getAndConstraintFieldBuilder() {
1947 if (andConstraintBuilder_ ==
null) {
1948 if (!(generalConstraintCase_ == 6)) {
1949 generalConstraint_ = com.google.ortools.linearsolver.MPArrayConstraint.getDefaultInstance();
1951 andConstraintBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
1952 com.google.ortools.linearsolver.MPArrayConstraint, com.google.ortools.linearsolver.MPArrayConstraint.Builder, com.google.ortools.linearsolver.MPArrayConstraintOrBuilder>(
1953 (com.google.ortools.linearsolver.MPArrayConstraint) generalConstraint_,
1954 getParentForChildren(),
1956 generalConstraint_ =
null;
1958 generalConstraintCase_ = 6;
1960 return andConstraintBuilder_;
1963 private com.google.protobuf.SingleFieldBuilderV3<
1964 com.google.ortools.linearsolver.MPArrayConstraint, com.google.ortools.linearsolver.MPArrayConstraint.Builder, com.google.ortools.linearsolver.MPArrayConstraintOrBuilder> orConstraintBuilder_;
1976 return generalConstraintCase_ == 7;
1989 if (orConstraintBuilder_ ==
null) {
1990 if (generalConstraintCase_ == 7) {
1991 return (com.google.ortools.linearsolver.MPArrayConstraint) generalConstraint_;
1993 return com.google.ortools.linearsolver.MPArrayConstraint.getDefaultInstance();
1995 if (generalConstraintCase_ == 7) {
1996 return orConstraintBuilder_.getMessage();
1998 return com.google.ortools.linearsolver.MPArrayConstraint.getDefaultInstance();
2010 if (orConstraintBuilder_ ==
null) {
2011 if (value ==
null) {
2012 throw new NullPointerException();
2014 generalConstraint_ = value;
2017 orConstraintBuilder_.setMessage(value);
2019 generalConstraintCase_ = 7;
2031 com.google.ortools.linearsolver.MPArrayConstraint.Builder builderForValue) {
2032 if (orConstraintBuilder_ ==
null) {
2033 generalConstraint_ = builderForValue.
build();
2036 orConstraintBuilder_.setMessage(builderForValue.build());
2038 generalConstraintCase_ = 7;
2050 if (orConstraintBuilder_ ==
null) {
2051 if (generalConstraintCase_ == 7 &&
2052 generalConstraint_ != com.google.ortools.linearsolver.MPArrayConstraint.getDefaultInstance()) {
2053 generalConstraint_ = com.google.ortools.linearsolver.MPArrayConstraint.newBuilder((com.google.ortools.linearsolver.MPArrayConstraint) generalConstraint_)
2056 generalConstraint_ = value;
2060 if (generalConstraintCase_ == 7) {
2061 orConstraintBuilder_.mergeFrom(value);
2063 orConstraintBuilder_.setMessage(value);
2066 generalConstraintCase_ = 7;
2078 if (orConstraintBuilder_ ==
null) {
2079 if (generalConstraintCase_ == 7) {
2080 generalConstraintCase_ = 0;
2081 generalConstraint_ =
null;
2085 if (generalConstraintCase_ == 7) {
2086 generalConstraintCase_ = 0;
2087 generalConstraint_ =
null;
2089 orConstraintBuilder_.clear();
2102 return getOrConstraintFieldBuilder().getBuilder();
2114 if ((generalConstraintCase_ == 7) && (orConstraintBuilder_ !=
null)) {
2115 return orConstraintBuilder_.getMessageOrBuilder();
2117 if (generalConstraintCase_ == 7) {
2118 return (com.google.ortools.linearsolver.MPArrayConstraint) generalConstraint_;
2120 return com.google.ortools.linearsolver.MPArrayConstraint.getDefaultInstance();
2131 private com.google.protobuf.SingleFieldBuilderV3<
2132 com.google.ortools.linearsolver.MPArrayConstraint, com.google.ortools.linearsolver.MPArrayConstraint.Builder, com.google.ortools.linearsolver.MPArrayConstraintOrBuilder>
2133 getOrConstraintFieldBuilder() {
2134 if (orConstraintBuilder_ ==
null) {
2135 if (!(generalConstraintCase_ == 7)) {
2136 generalConstraint_ = com.google.ortools.linearsolver.MPArrayConstraint.getDefaultInstance();
2138 orConstraintBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
2139 com.google.ortools.linearsolver.MPArrayConstraint, com.google.ortools.linearsolver.MPArrayConstraint.Builder, com.google.ortools.linearsolver.MPArrayConstraintOrBuilder>(
2140 (com.google.ortools.linearsolver.MPArrayConstraint) generalConstraint_,
2141 getParentForChildren(),
2143 generalConstraint_ =
null;
2145 generalConstraintCase_ = 7;
2147 return orConstraintBuilder_;
2150 private com.google.protobuf.SingleFieldBuilderV3<
2151 com.google.ortools.linearsolver.MPArrayWithConstantConstraint, com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder, com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder> minConstraintBuilder_;
2162 return generalConstraintCase_ == 8;
2174 if (minConstraintBuilder_ ==
null) {
2175 if (generalConstraintCase_ == 8) {
2176 return (com.google.ortools.linearsolver.MPArrayWithConstantConstraint) generalConstraint_;
2178 return com.google.ortools.linearsolver.MPArrayWithConstantConstraint.getDefaultInstance();
2180 if (generalConstraintCase_ == 8) {
2181 return minConstraintBuilder_.getMessage();
2183 return com.google.ortools.linearsolver.MPArrayWithConstantConstraint.getDefaultInstance();
2194 if (minConstraintBuilder_ ==
null) {
2195 if (value ==
null) {
2196 throw new NullPointerException();
2198 generalConstraint_ = value;
2201 minConstraintBuilder_.setMessage(value);
2203 generalConstraintCase_ = 8;
2214 com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder builderForValue) {
2215 if (minConstraintBuilder_ ==
null) {
2216 generalConstraint_ = builderForValue.
build();
2219 minConstraintBuilder_.setMessage(builderForValue.build());
2221 generalConstraintCase_ = 8;
2232 if (minConstraintBuilder_ ==
null) {
2233 if (generalConstraintCase_ == 8 &&
2234 generalConstraint_ != com.google.ortools.linearsolver.MPArrayWithConstantConstraint.getDefaultInstance()) {
2235 generalConstraint_ = com.google.ortools.linearsolver.MPArrayWithConstantConstraint.newBuilder((com.google.ortools.linearsolver.MPArrayWithConstantConstraint) generalConstraint_)
2238 generalConstraint_ = value;
2242 if (generalConstraintCase_ == 8) {
2243 minConstraintBuilder_.mergeFrom(value);
2245 minConstraintBuilder_.setMessage(value);
2248 generalConstraintCase_ = 8;
2259 if (minConstraintBuilder_ ==
null) {
2260 if (generalConstraintCase_ == 8) {
2261 generalConstraintCase_ = 0;
2262 generalConstraint_ =
null;
2266 if (generalConstraintCase_ == 8) {
2267 generalConstraintCase_ = 0;
2268 generalConstraint_ =
null;
2270 minConstraintBuilder_.clear();
2282 return getMinConstraintFieldBuilder().getBuilder();
2293 if ((generalConstraintCase_ == 8) && (minConstraintBuilder_ !=
null)) {
2294 return minConstraintBuilder_.getMessageOrBuilder();
2296 if (generalConstraintCase_ == 8) {
2297 return (com.google.ortools.linearsolver.MPArrayWithConstantConstraint) generalConstraint_;
2299 return com.google.ortools.linearsolver.MPArrayWithConstantConstraint.getDefaultInstance();
2309 private com.google.protobuf.SingleFieldBuilderV3<
2310 com.google.ortools.linearsolver.MPArrayWithConstantConstraint, com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder, com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder>
2311 getMinConstraintFieldBuilder() {
2312 if (minConstraintBuilder_ ==
null) {
2313 if (!(generalConstraintCase_ == 8)) {
2314 generalConstraint_ = com.google.ortools.linearsolver.MPArrayWithConstantConstraint.getDefaultInstance();
2316 minConstraintBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
2317 com.google.ortools.linearsolver.MPArrayWithConstantConstraint, com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder, com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder>(
2318 (com.google.ortools.linearsolver.MPArrayWithConstantConstraint) generalConstraint_,
2319 getParentForChildren(),
2321 generalConstraint_ =
null;
2323 generalConstraintCase_ = 8;
2325 return minConstraintBuilder_;
2328 private com.google.protobuf.SingleFieldBuilderV3<
2329 com.google.ortools.linearsolver.MPArrayWithConstantConstraint, com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder, com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder> maxConstraintBuilder_;
2340 return generalConstraintCase_ == 9;
2352 if (maxConstraintBuilder_ ==
null) {
2353 if (generalConstraintCase_ == 9) {
2354 return (com.google.ortools.linearsolver.MPArrayWithConstantConstraint) generalConstraint_;
2356 return com.google.ortools.linearsolver.MPArrayWithConstantConstraint.getDefaultInstance();
2358 if (generalConstraintCase_ == 9) {
2359 return maxConstraintBuilder_.getMessage();
2361 return com.google.ortools.linearsolver.MPArrayWithConstantConstraint.getDefaultInstance();
2372 if (maxConstraintBuilder_ ==
null) {
2373 if (value ==
null) {
2374 throw new NullPointerException();
2376 generalConstraint_ = value;
2379 maxConstraintBuilder_.setMessage(value);
2381 generalConstraintCase_ = 9;
2392 com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder builderForValue) {
2393 if (maxConstraintBuilder_ ==
null) {
2394 generalConstraint_ = builderForValue.
build();
2397 maxConstraintBuilder_.setMessage(builderForValue.build());
2399 generalConstraintCase_ = 9;
2410 if (maxConstraintBuilder_ ==
null) {
2411 if (generalConstraintCase_ == 9 &&
2412 generalConstraint_ != com.google.ortools.linearsolver.MPArrayWithConstantConstraint.getDefaultInstance()) {
2413 generalConstraint_ = com.google.ortools.linearsolver.MPArrayWithConstantConstraint.newBuilder((com.google.ortools.linearsolver.MPArrayWithConstantConstraint) generalConstraint_)
2416 generalConstraint_ = value;
2420 if (generalConstraintCase_ == 9) {
2421 maxConstraintBuilder_.mergeFrom(value);
2423 maxConstraintBuilder_.setMessage(value);
2426 generalConstraintCase_ = 9;
2437 if (maxConstraintBuilder_ ==
null) {
2438 if (generalConstraintCase_ == 9) {
2439 generalConstraintCase_ = 0;
2440 generalConstraint_ =
null;
2444 if (generalConstraintCase_ == 9) {
2445 generalConstraintCase_ = 0;
2446 generalConstraint_ =
null;
2448 maxConstraintBuilder_.clear();
2460 return getMaxConstraintFieldBuilder().getBuilder();
2471 if ((generalConstraintCase_ == 9) && (maxConstraintBuilder_ !=
null)) {
2472 return maxConstraintBuilder_.getMessageOrBuilder();
2474 if (generalConstraintCase_ == 9) {
2475 return (com.google.ortools.linearsolver.MPArrayWithConstantConstraint) generalConstraint_;
2477 return com.google.ortools.linearsolver.MPArrayWithConstantConstraint.getDefaultInstance();
2487 private com.google.protobuf.SingleFieldBuilderV3<
2488 com.google.ortools.linearsolver.MPArrayWithConstantConstraint, com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder, com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder>
2489 getMaxConstraintFieldBuilder() {
2490 if (maxConstraintBuilder_ ==
null) {
2491 if (!(generalConstraintCase_ == 9)) {
2492 generalConstraint_ = com.google.ortools.linearsolver.MPArrayWithConstantConstraint.getDefaultInstance();
2494 maxConstraintBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
2495 com.google.ortools.linearsolver.MPArrayWithConstantConstraint, com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder, com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder>(
2496 (com.google.ortools.linearsolver.MPArrayWithConstantConstraint) generalConstraint_,
2497 getParentForChildren(),
2499 generalConstraint_ =
null;
2501 generalConstraintCase_ = 9;
2503 return maxConstraintBuilder_;
2507 final com.google.protobuf.UnknownFieldSet unknownFields) {
2513 final com.google.protobuf.UnknownFieldSet unknownFields) {