6package com.google.ortools.linearsolver;
15public final class MPModelProto
extends
16 com.google.protobuf.GeneratedMessage implements
19private static final long serialVersionUID = 0L;
21 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
22 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
27 MPModelProto.class.getName());
30 private MPModelProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
33 private MPModelProto() {
34 variable_ = java.util.Collections.emptyList();
35 constraint_ = java.util.Collections.emptyList();
36 generalConstraint_ = java.util.Collections.emptyList();
38 annotation_ = java.util.Collections.emptyList();
41 public static final com.google.protobuf.Descriptors.Descriptor
43 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelProto_descriptor;
47 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
49 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelProto_fieldAccessorTable
50 .ensureFieldAccessorsInitialized(
51 com.google.ortools.linearsolver.MPModelProto.class, com.google.ortools.linearsolver.MPModelProto.Builder.class);
56 com.google.protobuf.MessageOrBuilder {
116 com.google.protobuf.ByteString
148 com.google.protobuf.ByteString
165 com.google.protobuf.ByteString
176 public static final class Annotation
extends
177 com.google.protobuf.GeneratedMessage implements
180 private static final long serialVersionUID = 0L;
182 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
183 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
188 Annotation.class.getName());
191 private Annotation(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
194 private Annotation() {
201 public static final com.google.protobuf.Descriptors.Descriptor
203 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelProto_Annotation_descriptor;
207 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
209 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelProto_Annotation_fieldAccessorTable
210 .ensureFieldAccessorsInitialized(
211 com.google.ortools.linearsolver.MPModelProto.Annotation.class, com.google.ortools.linearsolver.MPModelProto.Annotation.Builder.class);
222 public enum TargetType
223 implements com.google.protobuf.ProtocolMessageEnum {
239 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
240 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
245 TargetType.class.getName());
270 @java.lang.Deprecated
284 default:
return null;
288 public static com.google.protobuf.Internal.EnumLiteMap<
TargetType>
290 return internalValueMap;
292 private static final com.google.protobuf.Internal.EnumLiteMap<
294 new com.google.protobuf.Internal.EnumLiteMap<
TargetType>() {
295 public TargetType findValueByNumber(
int number) {
300 public final com.google.protobuf.Descriptors.EnumValueDescriptor
304 public final com.google.protobuf.Descriptors.EnumDescriptor
308 public static final com.google.protobuf.Descriptors.EnumDescriptor
310 return com.google.ortools.linearsolver.MPModelProto.Annotation.getDescriptor().getEnumTypes().get(0);
313 private static final TargetType[] VALUES = values();
316 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
318 throw new java.lang.IllegalArgumentException(
319 "EnumValueDescriptor is not for this type.");
321 return VALUES[desc.getIndex()];
324 private final int value;
333 private int bitField0_;
335 private int targetType_ = 0;
341 return ((bitField0_ & 0x00000001) != 0);
353 private int targetIndex_ = 0;
365 return ((bitField0_ & 0x00000002) != 0);
382 @SuppressWarnings(
"serial")
383 private volatile java.lang.Object targetName_ =
"";
394 return ((bitField0_ & 0x00000004) != 0);
406 java.lang.Object ref = targetName_;
407 if (ref instanceof java.lang.String) {
408 return (java.lang.String) ref;
410 com.google.protobuf.ByteString bs =
411 (com.google.protobuf.ByteString) ref;
412 java.lang.String s = bs.toStringUtf8();
413 if (bs.isValidUtf8()) {
428 public com.google.protobuf.ByteString
430 java.lang.Object ref = targetName_;
431 if (ref instanceof java.lang.String) {
432 com.google.protobuf.ByteString b =
433 com.google.protobuf.ByteString.copyFromUtf8(
434 (java.lang.String) ref);
438 return (com.google.protobuf.ByteString) ref;
443 @SuppressWarnings(
"serial")
444 private volatile java.lang.Object payloadKey_ =
"";
456 return ((bitField0_ & 0x00000008) != 0);
469 java.lang.Object ref = payloadKey_;
470 if (ref instanceof java.lang.String) {
471 return (java.lang.String) ref;
473 com.google.protobuf.ByteString bs =
474 (com.google.protobuf.ByteString) ref;
475 java.lang.String s = bs.toStringUtf8();
476 if (bs.isValidUtf8()) {
492 public com.google.protobuf.ByteString
494 java.lang.Object ref = payloadKey_;
495 if (ref instanceof java.lang.String) {
496 com.google.protobuf.ByteString b =
497 com.google.protobuf.ByteString.copyFromUtf8(
498 (java.lang.String) ref);
502 return (com.google.protobuf.ByteString) ref;
507 @SuppressWarnings(
"serial")
508 private volatile java.lang.Object payloadValue_ =
"";
515 return ((bitField0_ & 0x00000010) != 0);
523 java.lang.Object ref = payloadValue_;
524 if (ref instanceof java.lang.String) {
525 return (java.lang.String) ref;
527 com.google.protobuf.ByteString bs =
528 (com.google.protobuf.ByteString) ref;
529 java.lang.String s = bs.toStringUtf8();
530 if (bs.isValidUtf8()) {
541 public com.google.protobuf.ByteString
543 java.lang.Object ref = payloadValue_;
544 if (ref instanceof java.lang.String) {
545 com.google.protobuf.ByteString b =
546 com.google.protobuf.ByteString.copyFromUtf8(
547 (java.lang.String) ref);
551 return (com.google.protobuf.ByteString) ref;
555 private byte memoizedIsInitialized = -1;
562 memoizedIsInitialized = 1;
567 public void writeTo(com.google.protobuf.CodedOutputStream output)
568 throws java.io.IOException {
569 if (((bitField0_ & 0x00000001) != 0)) {
570 output.writeEnum(1, targetType_);
572 if (((bitField0_ & 0x00000002) != 0)) {
573 output.writeInt32(2, targetIndex_);
575 if (((bitField0_ & 0x00000004) != 0)) {
576 com.google.protobuf.GeneratedMessage.writeString(output, 3, targetName_);
578 if (((bitField0_ & 0x00000008) != 0)) {
579 com.google.protobuf.GeneratedMessage.writeString(output, 4, payloadKey_);
581 if (((bitField0_ & 0x00000010) != 0)) {
582 com.google.protobuf.GeneratedMessage.writeString(output, 5, payloadValue_);
584 getUnknownFields().writeTo(output);
589 int size = memoizedSize;
590 if (size != -1)
return size;
593 if (((bitField0_ & 0x00000001) != 0)) {
594 size += com.google.protobuf.CodedOutputStream
595 .computeEnumSize(1, targetType_);
597 if (((bitField0_ & 0x00000002) != 0)) {
598 size += com.google.protobuf.CodedOutputStream
599 .computeInt32Size(2, targetIndex_);
601 if (((bitField0_ & 0x00000004) != 0)) {
602 size += com.google.protobuf.GeneratedMessage.computeStringSize(3, targetName_);
604 if (((bitField0_ & 0x00000008) != 0)) {
605 size += com.google.protobuf.GeneratedMessage.computeStringSize(4, payloadKey_);
607 if (((bitField0_ & 0x00000010) != 0)) {
608 size += com.google.protobuf.GeneratedMessage.computeStringSize(5, payloadValue_);
610 size += getUnknownFields().getSerializedSize();
616 public boolean equals(
final java.lang.Object obj) {
620 if (!(obj instanceof com.google.ortools.linearsolver.MPModelProto.Annotation)) {
621 return super.equals(obj);
627 if (targetType_ != other.targetType_)
return false;
649 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
655 if (memoizedHashCode != 0) {
656 return memoizedHashCode;
662 hash = (53 * hash) + targetType_;
680 hash = (29 * hash) + getUnknownFields().hashCode();
681 memoizedHashCode = hash;
686 java.nio.ByteBuffer data)
687 throws com.google.protobuf.InvalidProtocolBufferException {
688 return PARSER.parseFrom(data);
691 java.nio.ByteBuffer data,
692 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
693 throws com.google.protobuf.InvalidProtocolBufferException {
694 return PARSER.parseFrom(data, extensionRegistry);
697 com.google.protobuf.ByteString data)
698 throws com.google.protobuf.InvalidProtocolBufferException {
699 return PARSER.parseFrom(data);
702 com.google.protobuf.ByteString data,
703 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
704 throws com.google.protobuf.InvalidProtocolBufferException {
705 return PARSER.parseFrom(data, extensionRegistry);
708 throws com.google.protobuf.InvalidProtocolBufferException {
709 return PARSER.parseFrom(data);
713 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
714 throws com.google.protobuf.InvalidProtocolBufferException {
715 return PARSER.parseFrom(data, extensionRegistry);
718 throws java.io.IOException {
719 return com.google.protobuf.GeneratedMessage
720 .parseWithIOException(PARSER, input);
723 java.io.InputStream input,
724 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
725 throws java.io.IOException {
726 return com.google.protobuf.GeneratedMessage
727 .parseWithIOException(PARSER, input, extensionRegistry);
731 throws java.io.IOException {
732 return com.google.protobuf.GeneratedMessage
733 .parseDelimitedWithIOException(PARSER, input);
737 java.io.InputStream input,
738 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
739 throws java.io.IOException {
740 return com.google.protobuf.GeneratedMessage
741 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
744 com.google.protobuf.CodedInputStream input)
745 throws java.io.IOException {
746 return com.google.protobuf.GeneratedMessage
747 .parseWithIOException(PARSER, input);
750 com.google.protobuf.CodedInputStream input,
751 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
752 throws java.io.IOException {
753 return com.google.protobuf.GeneratedMessage
754 .parseWithIOException(PARSER, input, extensionRegistry);
760 return DEFAULT_INSTANCE.toBuilder();
762 public static Builder newBuilder(com.google.ortools.linearsolver.MPModelProto.Annotation prototype) {
763 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
767 return this == DEFAULT_INSTANCE
773 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
785 public static final class Builder
extends
786 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
789 public static final com.google.protobuf.Descriptors.Descriptor
791 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelProto_Annotation_descriptor;
795 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
797 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelProto_Annotation_fieldAccessorTable
798 .ensureFieldAccessorsInitialized(
799 com.google.ortools.linearsolver.MPModelProto.Annotation.class, com.google.ortools.linearsolver.MPModelProto.Annotation.Builder.class);
808 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
825 public com.google.protobuf.Descriptors.Descriptor
827 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelProto_Annotation_descriptor;
832 return com.google.ortools.linearsolver.MPModelProto.Annotation.getDefaultInstance();
839 throw newUninitializedMessageException(result);
847 if (bitField0_ != 0) { buildPartial0(result); }
852 private void buildPartial0(com.google.ortools.linearsolver.MPModelProto.Annotation result) {
853 int from_bitField0_ = bitField0_;
854 int to_bitField0_ = 0;
855 if (((from_bitField0_ & 0x00000001) != 0)) {
856 result.targetType_ = targetType_;
857 to_bitField0_ |= 0x00000001;
859 if (((from_bitField0_ & 0x00000002) != 0)) {
860 result.targetIndex_ = targetIndex_;
861 to_bitField0_ |= 0x00000002;
863 if (((from_bitField0_ & 0x00000004) != 0)) {
864 result.targetName_ = targetName_;
865 to_bitField0_ |= 0x00000004;
867 if (((from_bitField0_ & 0x00000008) != 0)) {
868 result.payloadKey_ = payloadKey_;
869 to_bitField0_ |= 0x00000008;
871 if (((from_bitField0_ & 0x00000010) != 0)) {
872 result.payloadValue_ = payloadValue_;
873 to_bitField0_ |= 0x00000010;
875 result.bitField0_ |= to_bitField0_;
879 public Builder
mergeFrom(com.google.protobuf.Message other) {
880 if (other instanceof com.google.ortools.linearsolver.MPModelProto.Annotation) {
881 return mergeFrom((com.google.ortools.linearsolver.MPModelProto.Annotation)other);
883 super.mergeFrom(other);
888 public Builder
mergeFrom(com.google.ortools.linearsolver.MPModelProto.Annotation other) {
889 if (other == com.google.ortools.linearsolver.MPModelProto.Annotation.getDefaultInstance())
return this;
890 if (other.hasTargetType()) {
893 if (other.hasTargetIndex()) {
896 if (other.hasTargetName()) {
897 targetName_ = other.targetName_;
898 bitField0_ |= 0x00000004;
901 if (other.hasPayloadKey()) {
902 payloadKey_ = other.payloadKey_;
903 bitField0_ |= 0x00000008;
906 if (other.hasPayloadValue()) {
907 payloadValue_ = other.payloadValue_;
908 bitField0_ |= 0x00000010;
911 this.mergeUnknownFields(other.getUnknownFields());
923 com.google.protobuf.CodedInputStream input,
924 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
925 throws java.io.IOException {
926 if (extensionRegistry ==
null) {
927 throw new java.lang.NullPointerException();
930 boolean done =
false;
932 int tag = input.readTag();
938 int tmpRaw = input.readEnum();
940 com.google.ortools.linearsolver.MPModelProto.Annotation.TargetType.forNumber(tmpRaw);
941 if (tmpValue ==
null) {
942 mergeUnknownVarintField(1, tmpRaw);
944 targetType_ = tmpRaw;
945 bitField0_ |= 0x00000001;
950 targetIndex_ = input.readInt32();
951 bitField0_ |= 0x00000002;
955 targetName_ = input.readBytes();
956 bitField0_ |= 0x00000004;
960 payloadKey_ = input.readBytes();
961 bitField0_ |= 0x00000008;
965 payloadValue_ = input.readBytes();
966 bitField0_ |= 0x00000010;
970 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
977 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
978 throw e.unwrapIOException();
984 private int bitField0_;
986 private int targetType_ = 0;
992 return ((bitField0_ & 0x00000001) != 0);
1008 public Builder
setTargetType(com.google.ortools.linearsolver.MPModelProto.Annotation.TargetType value) {
1009 if (value ==
null) {
1010 throw new NullPointerException();
1012 bitField0_ |= 0x00000001;
1013 targetType_ = value.getNumber();
1022 bitField0_ = (bitField0_ & ~0x00000001);
1028 private int targetIndex_ ;
1040 return ((bitField0_ & 0x00000002) != 0);
1053 return targetIndex_;
1067 targetIndex_ = value;
1068 bitField0_ |= 0x00000002;
1082 bitField0_ = (bitField0_ & ~0x00000002);
1088 private java.lang.Object targetName_ =
"";
1098 return ((bitField0_ & 0x00000004) != 0);
1109 java.lang.Object ref = targetName_;
1110 if (!(ref instanceof java.lang.String)) {
1111 com.google.protobuf.ByteString bs =
1112 (com.google.protobuf.ByteString) ref;
1113 java.lang.String s = bs.toStringUtf8();
1114 if (bs.isValidUtf8()) {
1119 return (java.lang.String) ref;
1130 public com.google.protobuf.ByteString
1132 java.lang.Object ref = targetName_;
1133 if (ref instanceof String) {
1134 com.google.protobuf.ByteString b =
1135 com.google.protobuf.ByteString.copyFromUtf8(
1136 (java.lang.String) ref);
1140 return (com.google.protobuf.ByteString) ref;
1153 java.lang.String value) {
1154 if (value ==
null) {
throw new NullPointerException(); }
1155 targetName_ = value;
1156 bitField0_ |= 0x00000004;
1170 bitField0_ = (bitField0_ & ~0x00000004);
1184 com.google.protobuf.ByteString value) {
1185 if (value ==
null) {
throw new NullPointerException(); }
1186 targetName_ = value;
1187 bitField0_ |= 0x00000004;
1192 private java.lang.Object payloadKey_ =
"";
1203 return ((bitField0_ & 0x00000008) != 0);
1215 java.lang.Object ref = payloadKey_;
1216 if (!(ref instanceof java.lang.String)) {
1217 com.google.protobuf.ByteString bs =
1218 (com.google.protobuf.ByteString) ref;
1219 java.lang.String s = bs.toStringUtf8();
1220 if (bs.isValidUtf8()) {
1225 return (java.lang.String) ref;
1237 public com.google.protobuf.ByteString
1239 java.lang.Object ref = payloadKey_;
1240 if (ref instanceof String) {
1241 com.google.protobuf.ByteString b =
1242 com.google.protobuf.ByteString.copyFromUtf8(
1243 (java.lang.String) ref);
1247 return (com.google.protobuf.ByteString) ref;
1261 java.lang.String value) {
1262 if (value ==
null) {
throw new NullPointerException(); }
1263 payloadKey_ = value;
1264 bitField0_ |= 0x00000008;
1279 bitField0_ = (bitField0_ & ~0x00000008);
1294 com.google.protobuf.ByteString value) {
1295 if (value ==
null) {
throw new NullPointerException(); }
1296 payloadKey_ = value;
1297 bitField0_ |= 0x00000008;
1302 private java.lang.Object payloadValue_ =
"";
1308 return ((bitField0_ & 0x00000010) != 0);
1315 java.lang.Object ref = payloadValue_;
1316 if (!(ref instanceof java.lang.String)) {
1317 com.google.protobuf.ByteString bs =
1318 (com.google.protobuf.ByteString) ref;
1319 java.lang.String s = bs.toStringUtf8();
1320 if (bs.isValidUtf8()) {
1325 return (java.lang.String) ref;
1332 public com.google.protobuf.ByteString
1334 java.lang.Object ref = payloadValue_;
1335 if (ref instanceof String) {
1336 com.google.protobuf.ByteString b =
1337 com.google.protobuf.ByteString.copyFromUtf8(
1338 (java.lang.String) ref);
1342 return (com.google.protobuf.ByteString) ref;
1351 java.lang.String value) {
1352 if (value ==
null) {
throw new NullPointerException(); }
1353 payloadValue_ = value;
1354 bitField0_ |= 0x00000010;
1364 bitField0_ = (bitField0_ & ~0x00000010);
1374 com.google.protobuf.ByteString value) {
1375 if (value ==
null) {
throw new NullPointerException(); }
1376 payloadValue_ = value;
1377 bitField0_ |= 0x00000010;
1388 DEFAULT_INSTANCE =
new com.google.ortools.linearsolver.MPModelProto.Annotation();
1392 return DEFAULT_INSTANCE;
1395 private static final com.google.protobuf.Parser<
Annotation>
1396 PARSER =
new com.google.protobuf.AbstractParser<
Annotation>() {
1399 com.google.protobuf.CodedInputStream input,
1400 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1401 throws com.google.protobuf.InvalidProtocolBufferException {
1404 builder.
mergeFrom(input, extensionRegistry);
1405 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
1407 }
catch (com.google.protobuf.UninitializedMessageException e) {
1408 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.
buildPartial());
1409 }
catch (java.io.IOException e) {
1410 throw new com.google.protobuf.InvalidProtocolBufferException(e)
1417 public static com.google.protobuf.Parser<Annotation>
parser() {
1428 return DEFAULT_INSTANCE;
1433 private int bitField0_;
1435 @SuppressWarnings(
"serial")
1456 public java.util.List<? extends com.google.ortools.linearsolver.MPVariableProtoOrBuilder>
1469 return variable_.size();
1480 return variable_.get(index);
1492 return variable_.get(index);
1496 @SuppressWarnings(
"serial")
1517 public java.util.List<? extends com.google.ortools.linearsolver.MPConstraintProtoOrBuilder>
1530 return constraint_.size();
1541 return constraint_.get(index);
1553 return constraint_.get(index);
1557 @SuppressWarnings(
"serial")
1569 return generalConstraint_;
1580 public java.util.List<? extends com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder>
1582 return generalConstraint_;
1594 return generalConstraint_.size();
1606 return generalConstraint_.get(index);
1619 return generalConstraint_.get(index);
1623 private boolean maximize_ =
false;
1634 return ((bitField0_ & 0x00000001) != 0);
1650 private double objectiveOffset_ = 0D;
1661 return ((bitField0_ & 0x00000002) != 0);
1673 return objectiveOffset_;
1689 return ((bitField0_ & 0x00000004) != 0);
1702 return quadraticObjective_ ==
null ? com.google.ortools.linearsolver.MPQuadraticObjective.getDefaultInstance() : quadraticObjective_;
1714 return quadraticObjective_ ==
null ? com.google.ortools.linearsolver.MPQuadraticObjective.getDefaultInstance() : quadraticObjective_;
1718 @SuppressWarnings(
"serial")
1719 private volatile java.lang.Object name_ =
"";
1730 return ((bitField0_ & 0x00000008) != 0);
1742 java.lang.Object ref = name_;
1743 if (ref instanceof java.lang.String) {
1744 return (java.lang.String) ref;
1746 com.google.protobuf.ByteString bs =
1747 (com.google.protobuf.ByteString) ref;
1748 java.lang.String s = bs.toStringUtf8();
1749 if (bs.isValidUtf8()) {
1764 public com.google.protobuf.ByteString
1766 java.lang.Object ref = name_;
1767 if (ref instanceof java.lang.String) {
1768 com.google.protobuf.ByteString b =
1769 com.google.protobuf.ByteString.copyFromUtf8(
1770 (java.lang.String) ref);
1774 return (com.google.protobuf.ByteString) ref;
1800 return ((bitField0_ & 0x00000010) != 0);
1822 return solutionHint_ ==
null ? com.google.ortools.linearsolver.PartialVariableAssignment.getDefaultInstance() : solutionHint_;
1843 return solutionHint_ ==
null ? com.google.ortools.linearsolver.PartialVariableAssignment.getDefaultInstance() : solutionHint_;
1847 @SuppressWarnings(
"serial")
1860 public java.util.List<? extends com.google.ortools.linearsolver.MPModelProto.AnnotationOrBuilder>
1869 return annotation_.size();
1876 return annotation_.get(index);
1884 return annotation_.get(index);
1887 private byte memoizedIsInitialized = -1;
1894 memoizedIsInitialized = 1;
1899 public void writeTo(com.google.protobuf.CodedOutputStream output)
1900 throws java.io.IOException {
1901 if (((bitField0_ & 0x00000001) != 0)) {
1902 output.writeBool(1, maximize_);
1904 if (((bitField0_ & 0x00000002) != 0)) {
1905 output.writeDouble(2, objectiveOffset_);
1907 for (
int i = 0; i < variable_.size(); i++) {
1908 output.writeMessage(3, variable_.get(i));
1910 for (
int i = 0; i < constraint_.size(); i++) {
1911 output.writeMessage(4, constraint_.get(i));
1913 if (((bitField0_ & 0x00000008) != 0)) {
1914 com.google.protobuf.GeneratedMessage.writeString(output, 5, name_);
1916 if (((bitField0_ & 0x00000010) != 0)) {
1919 for (
int i = 0; i < generalConstraint_.size(); i++) {
1920 output.writeMessage(7, generalConstraint_.get(i));
1922 if (((bitField0_ & 0x00000004) != 0)) {
1925 for (
int i = 0; i < annotation_.size(); i++) {
1926 output.writeMessage(9, annotation_.get(i));
1928 getUnknownFields().writeTo(output);
1933 int size = memoizedSize;
1934 if (size != -1)
return size;
1937 if (((bitField0_ & 0x00000001) != 0)) {
1938 size += com.google.protobuf.CodedOutputStream
1939 .computeBoolSize(1, maximize_);
1941 if (((bitField0_ & 0x00000002) != 0)) {
1942 size += com.google.protobuf.CodedOutputStream
1943 .computeDoubleSize(2, objectiveOffset_);
1945 for (
int i = 0; i < variable_.size(); i++) {
1946 size += com.google.protobuf.CodedOutputStream
1947 .computeMessageSize(3, variable_.get(i));
1949 for (
int i = 0; i < constraint_.size(); i++) {
1950 size += com.google.protobuf.CodedOutputStream
1951 .computeMessageSize(4, constraint_.get(i));
1953 if (((bitField0_ & 0x00000008) != 0)) {
1954 size += com.google.protobuf.GeneratedMessage.computeStringSize(5, name_);
1956 if (((bitField0_ & 0x00000010) != 0)) {
1957 size += com.google.protobuf.CodedOutputStream
1960 for (
int i = 0; i < generalConstraint_.size(); i++) {
1961 size += com.google.protobuf.CodedOutputStream
1962 .computeMessageSize(7, generalConstraint_.get(i));
1964 if (((bitField0_ & 0x00000004) != 0)) {
1965 size += com.google.protobuf.CodedOutputStream
1968 for (
int i = 0; i < annotation_.size(); i++) {
1969 size += com.google.protobuf.CodedOutputStream
1970 .computeMessageSize(9, annotation_.get(i));
1972 size += getUnknownFields().getSerializedSize();
1973 memoizedSize = size;
1978 public boolean equals(
final java.lang.Object obj) {
1982 if (!(obj instanceof com.google.ortools.linearsolver.MPModelProto)) {
1983 return super.equals(obj);
2001 != java.lang.Double.doubleToLongBits(
2021 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
2027 if (memoizedHashCode != 0) {
2028 return memoizedHashCode;
2046 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
2051 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
2060 hash = (53 * hash) +
getName().hashCode();
2070 hash = (29 * hash) + getUnknownFields().hashCode();
2071 memoizedHashCode = hash;
2076 java.nio.ByteBuffer data)
2077 throws com.google.protobuf.InvalidProtocolBufferException {
2078 return PARSER.parseFrom(data);
2081 java.nio.ByteBuffer data,
2082 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2083 throws com.google.protobuf.InvalidProtocolBufferException {
2084 return PARSER.parseFrom(data, extensionRegistry);
2087 com.google.protobuf.ByteString data)
2088 throws com.google.protobuf.InvalidProtocolBufferException {
2089 return PARSER.parseFrom(data);
2092 com.google.protobuf.ByteString data,
2093 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2094 throws com.google.protobuf.InvalidProtocolBufferException {
2095 return PARSER.parseFrom(data, extensionRegistry);
2098 throws com.google.protobuf.InvalidProtocolBufferException {
2099 return PARSER.parseFrom(data);
2103 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2104 throws com.google.protobuf.InvalidProtocolBufferException {
2105 return PARSER.parseFrom(data, extensionRegistry);
2108 throws java.io.IOException {
2109 return com.google.protobuf.GeneratedMessage
2110 .parseWithIOException(PARSER, input);
2113 java.io.InputStream input,
2114 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2115 throws java.io.IOException {
2116 return com.google.protobuf.GeneratedMessage
2117 .parseWithIOException(PARSER, input, extensionRegistry);
2121 throws java.io.IOException {
2122 return com.google.protobuf.GeneratedMessage
2123 .parseDelimitedWithIOException(PARSER, input);
2127 java.io.InputStream input,
2128 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2129 throws java.io.IOException {
2130 return com.google.protobuf.GeneratedMessage
2131 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
2134 com.google.protobuf.CodedInputStream input)
2135 throws java.io.IOException {
2136 return com.google.protobuf.GeneratedMessage
2137 .parseWithIOException(PARSER, input);
2140 com.google.protobuf.CodedInputStream input,
2141 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2142 throws java.io.IOException {
2143 return com.google.protobuf.GeneratedMessage
2144 .parseWithIOException(PARSER, input, extensionRegistry);
2150 return DEFAULT_INSTANCE.toBuilder();
2153 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
2157 return this == DEFAULT_INSTANCE
2163 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
2174 public static final class Builder
extends
2175 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
2178 public static final com.google.protobuf.Descriptors.Descriptor
2180 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelProto_descriptor;
2184 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
2186 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelProto_fieldAccessorTable
2187 .ensureFieldAccessorsInitialized(
2188 com.google.ortools.linearsolver.MPModelProto.class, com.google.ortools.linearsolver.MPModelProto.Builder.class);
2193 maybeForceBuilderInitialization();
2197 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
2199 maybeForceBuilderInitialization();
2201 private void maybeForceBuilderInitialization() {
2202 if (com.google.protobuf.GeneratedMessage
2203 .alwaysUseFieldBuilders) {
2204 getVariableFieldBuilder();
2205 getConstraintFieldBuilder();
2206 getGeneralConstraintFieldBuilder();
2207 getQuadraticObjectiveFieldBuilder();
2208 getSolutionHintFieldBuilder();
2209 getAnnotationFieldBuilder();
2216 if (variableBuilder_ ==
null) {
2217 variable_ = java.util.Collections.emptyList();
2220 variableBuilder_.clear();
2222 bitField0_ = (bitField0_ & ~0x00000001);
2223 if (constraintBuilder_ ==
null) {
2224 constraint_ = java.util.Collections.emptyList();
2227 constraintBuilder_.clear();
2229 bitField0_ = (bitField0_ & ~0x00000002);
2230 if (generalConstraintBuilder_ ==
null) {
2231 generalConstraint_ = java.util.Collections.emptyList();
2233 generalConstraint_ =
null;
2234 generalConstraintBuilder_.clear();
2236 bitField0_ = (bitField0_ & ~0x00000004);
2238 objectiveOffset_ = 0D;
2239 quadraticObjective_ =
null;
2240 if (quadraticObjectiveBuilder_ !=
null) {
2241 quadraticObjectiveBuilder_.dispose();
2242 quadraticObjectiveBuilder_ =
null;
2245 solutionHint_ =
null;
2246 if (solutionHintBuilder_ !=
null) {
2247 solutionHintBuilder_.dispose();
2248 solutionHintBuilder_ =
null;
2250 if (annotationBuilder_ ==
null) {
2251 annotation_ = java.util.Collections.emptyList();
2254 annotationBuilder_.clear();
2256 bitField0_ = (bitField0_ & ~0x00000100);
2261 public com.google.protobuf.Descriptors.Descriptor
2263 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelProto_descriptor;
2268 return com.google.ortools.linearsolver.MPModelProto.getDefaultInstance();
2275 throw newUninitializedMessageException(result);
2283 buildPartialRepeatedFields(result);
2284 if (bitField0_ != 0) { buildPartial0(result); }
2289 private void buildPartialRepeatedFields(com.google.ortools.linearsolver.MPModelProto result) {
2290 if (variableBuilder_ ==
null) {
2291 if (((bitField0_ & 0x00000001) != 0)) {
2292 variable_ = java.util.Collections.unmodifiableList(variable_);
2293 bitField0_ = (bitField0_ & ~0x00000001);
2295 result.variable_ = variable_;
2297 result.variable_ = variableBuilder_.build();
2299 if (constraintBuilder_ ==
null) {
2300 if (((bitField0_ & 0x00000002) != 0)) {
2301 constraint_ = java.util.Collections.unmodifiableList(constraint_);
2302 bitField0_ = (bitField0_ & ~0x00000002);
2304 result.constraint_ = constraint_;
2306 result.constraint_ = constraintBuilder_.build();
2308 if (generalConstraintBuilder_ ==
null) {
2309 if (((bitField0_ & 0x00000004) != 0)) {
2310 generalConstraint_ = java.util.Collections.unmodifiableList(generalConstraint_);
2311 bitField0_ = (bitField0_ & ~0x00000004);
2313 result.generalConstraint_ = generalConstraint_;
2315 result.generalConstraint_ = generalConstraintBuilder_.build();
2317 if (annotationBuilder_ ==
null) {
2318 if (((bitField0_ & 0x00000100) != 0)) {
2319 annotation_ = java.util.Collections.unmodifiableList(annotation_);
2320 bitField0_ = (bitField0_ & ~0x00000100);
2322 result.annotation_ = annotation_;
2324 result.annotation_ = annotationBuilder_.build();
2328 private void buildPartial0(com.google.ortools.linearsolver.MPModelProto result) {
2329 int from_bitField0_ = bitField0_;
2330 int to_bitField0_ = 0;
2331 if (((from_bitField0_ & 0x00000008) != 0)) {
2332 result.maximize_ = maximize_;
2333 to_bitField0_ |= 0x00000001;
2335 if (((from_bitField0_ & 0x00000010) != 0)) {
2336 result.objectiveOffset_ = objectiveOffset_;
2337 to_bitField0_ |= 0x00000002;
2339 if (((from_bitField0_ & 0x00000020) != 0)) {
2340 result.quadraticObjective_ = quadraticObjectiveBuilder_ ==
null
2341 ? quadraticObjective_
2342 : quadraticObjectiveBuilder_.build();
2343 to_bitField0_ |= 0x00000004;
2345 if (((from_bitField0_ & 0x00000040) != 0)) {
2346 result.name_ = name_;
2347 to_bitField0_ |= 0x00000008;
2349 if (((from_bitField0_ & 0x00000080) != 0)) {
2350 result.solutionHint_ = solutionHintBuilder_ ==
null
2352 : solutionHintBuilder_.build();
2353 to_bitField0_ |= 0x00000010;
2355 result.bitField0_ |= to_bitField0_;
2359 public Builder
mergeFrom(com.google.protobuf.Message other) {
2360 if (other instanceof com.google.ortools.linearsolver.MPModelProto) {
2361 return mergeFrom((com.google.ortools.linearsolver.MPModelProto)other);
2363 super.mergeFrom(other);
2368 public Builder
mergeFrom(com.google.ortools.linearsolver.MPModelProto other) {
2369 if (other == com.google.ortools.linearsolver.MPModelProto.getDefaultInstance())
return this;
2370 if (variableBuilder_ ==
null) {
2371 if (!other.variable_.isEmpty()) {
2372 if (variable_.isEmpty()) {
2373 variable_ = other.variable_;
2374 bitField0_ = (bitField0_ & ~0x00000001);
2376 ensureVariableIsMutable();
2377 variable_.addAll(other.variable_);
2382 if (!other.variable_.isEmpty()) {
2383 if (variableBuilder_.isEmpty()) {
2384 variableBuilder_.dispose();
2385 variableBuilder_ =
null;
2386 variable_ = other.variable_;
2387 bitField0_ = (bitField0_ & ~0x00000001);
2389 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
2390 getVariableFieldBuilder() :
null;
2392 variableBuilder_.addAllMessages(other.variable_);
2396 if (constraintBuilder_ ==
null) {
2397 if (!other.constraint_.isEmpty()) {
2398 if (constraint_.isEmpty()) {
2399 constraint_ = other.constraint_;
2400 bitField0_ = (bitField0_ & ~0x00000002);
2402 ensureConstraintIsMutable();
2403 constraint_.addAll(other.constraint_);
2408 if (!other.constraint_.isEmpty()) {
2409 if (constraintBuilder_.isEmpty()) {
2410 constraintBuilder_.dispose();
2411 constraintBuilder_ =
null;
2412 constraint_ = other.constraint_;
2413 bitField0_ = (bitField0_ & ~0x00000002);
2414 constraintBuilder_ =
2415 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
2416 getConstraintFieldBuilder() :
null;
2418 constraintBuilder_.addAllMessages(other.constraint_);
2422 if (generalConstraintBuilder_ ==
null) {
2423 if (!other.generalConstraint_.isEmpty()) {
2424 if (generalConstraint_.isEmpty()) {
2425 generalConstraint_ = other.generalConstraint_;
2426 bitField0_ = (bitField0_ & ~0x00000004);
2428 ensureGeneralConstraintIsMutable();
2429 generalConstraint_.addAll(other.generalConstraint_);
2434 if (!other.generalConstraint_.isEmpty()) {
2435 if (generalConstraintBuilder_.isEmpty()) {
2436 generalConstraintBuilder_.dispose();
2437 generalConstraintBuilder_ =
null;
2438 generalConstraint_ = other.generalConstraint_;
2439 bitField0_ = (bitField0_ & ~0x00000004);
2440 generalConstraintBuilder_ =
2441 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
2442 getGeneralConstraintFieldBuilder() :
null;
2444 generalConstraintBuilder_.addAllMessages(other.generalConstraint_);
2448 if (other.hasMaximize()) {
2451 if (other.hasObjectiveOffset()) {
2454 if (other.hasQuadraticObjective()) {
2457 if (other.hasName()) {
2458 name_ = other.name_;
2459 bitField0_ |= 0x00000040;
2462 if (other.hasSolutionHint()) {
2465 if (annotationBuilder_ ==
null) {
2466 if (!other.annotation_.isEmpty()) {
2467 if (annotation_.isEmpty()) {
2468 annotation_ = other.annotation_;
2469 bitField0_ = (bitField0_ & ~0x00000100);
2471 ensureAnnotationIsMutable();
2472 annotation_.addAll(other.annotation_);
2477 if (!other.annotation_.isEmpty()) {
2478 if (annotationBuilder_.isEmpty()) {
2479 annotationBuilder_.dispose();
2480 annotationBuilder_ =
null;
2481 annotation_ = other.annotation_;
2482 bitField0_ = (bitField0_ & ~0x00000100);
2483 annotationBuilder_ =
2484 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
2485 getAnnotationFieldBuilder() :
null;
2487 annotationBuilder_.addAllMessages(other.annotation_);
2491 this.mergeUnknownFields(other.getUnknownFields());
2503 com.google.protobuf.CodedInputStream input,
2504 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2505 throws java.io.IOException {
2506 if (extensionRegistry ==
null) {
2507 throw new java.lang.NullPointerException();
2510 boolean done =
false;
2512 int tag = input.readTag();
2518 maximize_ = input.readBool();
2519 bitField0_ |= 0x00000008;
2523 objectiveOffset_ = input.readDouble();
2524 bitField0_ |= 0x00000010;
2530 com.google.ortools.linearsolver.MPVariableProto.parser(),
2532 if (variableBuilder_ ==
null) {
2533 ensureVariableIsMutable();
2536 variableBuilder_.addMessage(m);
2543 com.google.ortools.linearsolver.MPConstraintProto.parser(),
2545 if (constraintBuilder_ ==
null) {
2546 ensureConstraintIsMutable();
2549 constraintBuilder_.addMessage(m);
2554 name_ = input.readBytes();
2555 bitField0_ |= 0x00000040;
2560 getSolutionHintFieldBuilder().getBuilder(),
2562 bitField0_ |= 0x00000080;
2568 com.google.ortools.linearsolver.MPGeneralConstraintProto.parser(),
2570 if (generalConstraintBuilder_ ==
null) {
2571 ensureGeneralConstraintIsMutable();
2572 generalConstraint_.add(m);
2574 generalConstraintBuilder_.addMessage(m);
2580 getQuadraticObjectiveFieldBuilder().getBuilder(),
2582 bitField0_ |= 0x00000020;
2588 com.google.ortools.linearsolver.MPModelProto.Annotation.parser(),
2590 if (annotationBuilder_ ==
null) {
2591 ensureAnnotationIsMutable();
2594 annotationBuilder_.addMessage(m);
2599 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
2606 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
2607 throw e.unwrapIOException();
2613 private int bitField0_;
2615 private java.util.List<com.google.ortools.linearsolver.MPVariableProto> variable_ =
2616 java.util.Collections.emptyList();
2617 private void ensureVariableIsMutable() {
2618 if (!((bitField0_ & 0x00000001) != 0)) {
2619 variable_ =
new java.util.ArrayList<com.google.ortools.linearsolver.MPVariableProto>(variable_);
2620 bitField0_ |= 0x00000001;
2624 private com.google.protobuf.RepeatedFieldBuilder<
2625 com.google.ortools.linearsolver.MPVariableProto, com.google.ortools.linearsolver.MPVariableProto.Builder, com.google.ortools.linearsolver.MPVariableProtoOrBuilder> variableBuilder_;
2634 public java.util.List<com.google.ortools.linearsolver.MPVariableProto>
getVariableList() {
2635 if (variableBuilder_ ==
null) {
2636 return java.util.Collections.unmodifiableList(variable_);
2638 return variableBuilder_.getMessageList();
2649 if (variableBuilder_ ==
null) {
2650 return variable_.size();
2652 return variableBuilder_.getCount();
2663 if (variableBuilder_ ==
null) {
2664 return variable_.get(index);
2666 return variableBuilder_.getMessage(index);
2677 int index, com.google.ortools.linearsolver.MPVariableProto value) {
2678 if (variableBuilder_ ==
null) {
2679 if (value ==
null) {
2680 throw new NullPointerException();
2682 ensureVariableIsMutable();
2683 variable_.set(index, value);
2686 variableBuilder_.setMessage(index, value);
2698 int index, com.google.ortools.linearsolver.MPVariableProto.Builder builderForValue) {
2699 if (variableBuilder_ ==
null) {
2700 ensureVariableIsMutable();
2701 variable_.set(index, builderForValue.build());
2704 variableBuilder_.setMessage(index, builderForValue.build());
2715 public Builder
addVariable(com.google.ortools.linearsolver.MPVariableProto value) {
2716 if (variableBuilder_ ==
null) {
2717 if (value ==
null) {
2718 throw new NullPointerException();
2720 ensureVariableIsMutable();
2721 variable_.add(value);
2724 variableBuilder_.addMessage(value);
2736 int index, com.google.ortools.linearsolver.MPVariableProto value) {
2737 if (variableBuilder_ ==
null) {
2738 if (value ==
null) {
2739 throw new NullPointerException();
2741 ensureVariableIsMutable();
2742 variable_.add(index, value);
2745 variableBuilder_.addMessage(index, value);
2757 com.google.ortools.linearsolver.MPVariableProto.Builder builderForValue) {
2758 if (variableBuilder_ ==
null) {
2759 ensureVariableIsMutable();
2760 variable_.add(builderForValue.build());
2763 variableBuilder_.addMessage(builderForValue.build());
2775 int index, com.google.ortools.linearsolver.MPVariableProto.Builder builderForValue) {
2776 if (variableBuilder_ ==
null) {
2777 ensureVariableIsMutable();
2778 variable_.add(index, builderForValue.build());
2781 variableBuilder_.addMessage(index, builderForValue.build());
2793 java.lang.Iterable<? extends com.google.ortools.linearsolver.MPVariableProto> values) {
2794 if (variableBuilder_ ==
null) {
2795 ensureVariableIsMutable();
2796 com.google.protobuf.AbstractMessageLite.Builder.addAll(
2800 variableBuilder_.addAllMessages(values);
2812 if (variableBuilder_ ==
null) {
2813 variable_ = java.util.Collections.emptyList();
2814 bitField0_ = (bitField0_ & ~0x00000001);
2817 variableBuilder_.clear();
2829 if (variableBuilder_ ==
null) {
2830 ensureVariableIsMutable();
2831 variable_.remove(index);
2834 variableBuilder_.remove(index);
2847 return getVariableFieldBuilder().getBuilder(index);
2858 if (variableBuilder_ ==
null) {
2859 return variable_.get(index); }
else {
2860 return variableBuilder_.getMessageOrBuilder(index);
2870 public java.util.List<? extends com.google.ortools.linearsolver.MPVariableProtoOrBuilder>
2872 if (variableBuilder_ !=
null) {
2873 return variableBuilder_.getMessageOrBuilderList();
2875 return java.util.Collections.unmodifiableList(variable_);
2886 return getVariableFieldBuilder().addBuilder(
2887 com.google.ortools.linearsolver.MPVariableProto.getDefaultInstance());
2898 return getVariableFieldBuilder().addBuilder(
2899 index, com.google.ortools.linearsolver.MPVariableProto.getDefaultInstance());
2908 public java.util.List<com.google.ortools.linearsolver.MPVariableProto.Builder>
2910 return getVariableFieldBuilder().getBuilderList();
2912 private com.google.protobuf.RepeatedFieldBuilder<
2913 com.google.ortools.linearsolver.MPVariableProto, com.google.ortools.linearsolver.MPVariableProto.Builder, com.google.ortools.linearsolver.MPVariableProtoOrBuilder>
2914 getVariableFieldBuilder() {
2915 if (variableBuilder_ ==
null) {
2916 variableBuilder_ =
new com.google.protobuf.RepeatedFieldBuilder<
2917 com.google.ortools.linearsolver.MPVariableProto, com.google.ortools.linearsolver.MPVariableProto.Builder, com.google.ortools.linearsolver.MPVariableProtoOrBuilder>(
2919 ((bitField0_ & 0x00000001) != 0),
2920 getParentForChildren(),
2924 return variableBuilder_;
2927 private java.util.List<com.google.ortools.linearsolver.MPConstraintProto> constraint_ =
2928 java.util.Collections.emptyList();
2929 private void ensureConstraintIsMutable() {
2930 if (!((bitField0_ & 0x00000002) != 0)) {
2931 constraint_ =
new java.util.ArrayList<com.google.ortools.linearsolver.MPConstraintProto>(constraint_);
2932 bitField0_ |= 0x00000002;
2936 private com.google.protobuf.RepeatedFieldBuilder<
2937 com.google.ortools.linearsolver.MPConstraintProto, com.google.ortools.linearsolver.MPConstraintProto.Builder, com.google.ortools.linearsolver.MPConstraintProtoOrBuilder> constraintBuilder_;
2947 if (constraintBuilder_ ==
null) {
2948 return java.util.Collections.unmodifiableList(constraint_);
2950 return constraintBuilder_.getMessageList();
2961 if (constraintBuilder_ ==
null) {
2962 return constraint_.size();
2964 return constraintBuilder_.getCount();
2975 if (constraintBuilder_ ==
null) {
2976 return constraint_.get(index);
2978 return constraintBuilder_.getMessage(index);
2989 int index, com.google.ortools.linearsolver.MPConstraintProto value) {
2990 if (constraintBuilder_ ==
null) {
2991 if (value ==
null) {
2992 throw new NullPointerException();
2994 ensureConstraintIsMutable();
2995 constraint_.set(index, value);
2998 constraintBuilder_.setMessage(index, value);
3010 int index, com.google.ortools.linearsolver.MPConstraintProto.Builder builderForValue) {
3011 if (constraintBuilder_ ==
null) {
3012 ensureConstraintIsMutable();
3013 constraint_.set(index, builderForValue.build());
3016 constraintBuilder_.setMessage(index, builderForValue.build());
3027 public Builder
addConstraint(com.google.ortools.linearsolver.MPConstraintProto value) {
3028 if (constraintBuilder_ ==
null) {
3029 if (value ==
null) {
3030 throw new NullPointerException();
3032 ensureConstraintIsMutable();
3033 constraint_.add(value);
3036 constraintBuilder_.addMessage(value);
3048 int index, com.google.ortools.linearsolver.MPConstraintProto value) {
3049 if (constraintBuilder_ ==
null) {
3050 if (value ==
null) {
3051 throw new NullPointerException();
3053 ensureConstraintIsMutable();
3054 constraint_.add(index, value);
3057 constraintBuilder_.addMessage(index, value);
3069 com.google.ortools.linearsolver.MPConstraintProto.Builder builderForValue) {
3070 if (constraintBuilder_ ==
null) {
3071 ensureConstraintIsMutable();
3072 constraint_.add(builderForValue.build());
3075 constraintBuilder_.addMessage(builderForValue.build());
3087 int index, com.google.ortools.linearsolver.MPConstraintProto.Builder builderForValue) {
3088 if (constraintBuilder_ ==
null) {
3089 ensureConstraintIsMutable();
3090 constraint_.add(index, builderForValue.build());
3093 constraintBuilder_.addMessage(index, builderForValue.build());
3105 java.lang.Iterable<? extends com.google.ortools.linearsolver.MPConstraintProto> values) {
3106 if (constraintBuilder_ ==
null) {
3107 ensureConstraintIsMutable();
3108 com.google.protobuf.AbstractMessageLite.Builder.addAll(
3109 values, constraint_);
3112 constraintBuilder_.addAllMessages(values);
3124 if (constraintBuilder_ ==
null) {
3125 constraint_ = java.util.Collections.emptyList();
3126 bitField0_ = (bitField0_ & ~0x00000002);
3129 constraintBuilder_.clear();
3141 if (constraintBuilder_ ==
null) {
3142 ensureConstraintIsMutable();
3143 constraint_.remove(index);
3146 constraintBuilder_.remove(index);
3159 return getConstraintFieldBuilder().getBuilder(index);
3170 if (constraintBuilder_ ==
null) {
3171 return constraint_.get(index); }
else {
3172 return constraintBuilder_.getMessageOrBuilder(index);
3182 public java.util.List<? extends com.google.ortools.linearsolver.MPConstraintProtoOrBuilder>
3184 if (constraintBuilder_ !=
null) {
3185 return constraintBuilder_.getMessageOrBuilderList();
3187 return java.util.Collections.unmodifiableList(constraint_);
3198 return getConstraintFieldBuilder().addBuilder(
3199 com.google.ortools.linearsolver.MPConstraintProto.getDefaultInstance());
3210 return getConstraintFieldBuilder().addBuilder(
3211 index, com.google.ortools.linearsolver.MPConstraintProto.getDefaultInstance());
3220 public java.util.List<com.google.ortools.linearsolver.MPConstraintProto.Builder>
3222 return getConstraintFieldBuilder().getBuilderList();
3224 private com.google.protobuf.RepeatedFieldBuilder<
3225 com.google.ortools.linearsolver.MPConstraintProto, com.google.ortools.linearsolver.MPConstraintProto.Builder, com.google.ortools.linearsolver.MPConstraintProtoOrBuilder>
3226 getConstraintFieldBuilder() {
3227 if (constraintBuilder_ ==
null) {
3228 constraintBuilder_ =
new com.google.protobuf.RepeatedFieldBuilder<
3229 com.google.ortools.linearsolver.MPConstraintProto, com.google.ortools.linearsolver.MPConstraintProto.Builder, com.google.ortools.linearsolver.MPConstraintProtoOrBuilder>(
3231 ((bitField0_ & 0x00000002) != 0),
3232 getParentForChildren(),
3236 return constraintBuilder_;
3239 private java.util.List<com.google.ortools.linearsolver.MPGeneralConstraintProto> generalConstraint_ =
3240 java.util.Collections.emptyList();
3241 private void ensureGeneralConstraintIsMutable() {
3242 if (!((bitField0_ & 0x00000004) != 0)) {
3243 generalConstraint_ =
new java.util.ArrayList<com.google.ortools.linearsolver.MPGeneralConstraintProto>(generalConstraint_);
3244 bitField0_ |= 0x00000004;
3248 private com.google.protobuf.RepeatedFieldBuilder<
3249 com.google.ortools.linearsolver.MPGeneralConstraintProto, com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder, com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder> generalConstraintBuilder_;
3260 if (generalConstraintBuilder_ ==
null) {
3261 return java.util.Collections.unmodifiableList(generalConstraint_);
3263 return generalConstraintBuilder_.getMessageList();
3275 if (generalConstraintBuilder_ ==
null) {
3276 return generalConstraint_.size();
3278 return generalConstraintBuilder_.getCount();
3290 if (generalConstraintBuilder_ ==
null) {
3291 return generalConstraint_.get(index);
3293 return generalConstraintBuilder_.getMessage(index);
3305 int index, com.google.ortools.linearsolver.MPGeneralConstraintProto value) {
3306 if (generalConstraintBuilder_ ==
null) {
3307 if (value ==
null) {
3308 throw new NullPointerException();
3310 ensureGeneralConstraintIsMutable();
3311 generalConstraint_.set(index, value);
3314 generalConstraintBuilder_.setMessage(index, value);
3327 int index, com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder builderForValue) {
3328 if (generalConstraintBuilder_ ==
null) {
3329 ensureGeneralConstraintIsMutable();
3330 generalConstraint_.set(index, builderForValue.build());
3333 generalConstraintBuilder_.setMessage(index, builderForValue.build());
3346 if (generalConstraintBuilder_ ==
null) {
3347 if (value ==
null) {
3348 throw new NullPointerException();
3350 ensureGeneralConstraintIsMutable();
3351 generalConstraint_.add(value);
3354 generalConstraintBuilder_.addMessage(value);
3367 int index, com.google.ortools.linearsolver.MPGeneralConstraintProto value) {
3368 if (generalConstraintBuilder_ ==
null) {
3369 if (value ==
null) {
3370 throw new NullPointerException();
3372 ensureGeneralConstraintIsMutable();
3373 generalConstraint_.add(index, value);
3376 generalConstraintBuilder_.addMessage(index, value);
3389 com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder builderForValue) {
3390 if (generalConstraintBuilder_ ==
null) {
3391 ensureGeneralConstraintIsMutable();
3392 generalConstraint_.add(builderForValue.build());
3395 generalConstraintBuilder_.addMessage(builderForValue.build());
3408 int index, com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder builderForValue) {
3409 if (generalConstraintBuilder_ ==
null) {
3410 ensureGeneralConstraintIsMutable();
3411 generalConstraint_.add(index, builderForValue.build());
3414 generalConstraintBuilder_.addMessage(index, builderForValue.build());
3427 java.lang.Iterable<? extends com.google.ortools.linearsolver.MPGeneralConstraintProto> values) {
3428 if (generalConstraintBuilder_ ==
null) {
3429 ensureGeneralConstraintIsMutable();
3430 com.google.protobuf.AbstractMessageLite.Builder.addAll(
3431 values, generalConstraint_);
3434 generalConstraintBuilder_.addAllMessages(values);
3447 if (generalConstraintBuilder_ ==
null) {
3448 generalConstraint_ = java.util.Collections.emptyList();
3449 bitField0_ = (bitField0_ & ~0x00000004);
3452 generalConstraintBuilder_.clear();
3465 if (generalConstraintBuilder_ ==
null) {
3466 ensureGeneralConstraintIsMutable();
3467 generalConstraint_.remove(index);
3470 generalConstraintBuilder_.remove(index);
3484 return getGeneralConstraintFieldBuilder().getBuilder(index);
3496 if (generalConstraintBuilder_ ==
null) {
3497 return generalConstraint_.get(index); }
else {
3498 return generalConstraintBuilder_.getMessageOrBuilder(index);
3509 public java.util.List<? extends com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder>
3511 if (generalConstraintBuilder_ !=
null) {
3512 return generalConstraintBuilder_.getMessageOrBuilderList();
3514 return java.util.Collections.unmodifiableList(generalConstraint_);
3526 return getGeneralConstraintFieldBuilder().addBuilder(
3527 com.google.ortools.linearsolver.MPGeneralConstraintProto.getDefaultInstance());
3539 return getGeneralConstraintFieldBuilder().addBuilder(
3540 index, com.google.ortools.linearsolver.MPGeneralConstraintProto.getDefaultInstance());
3550 public java.util.List<com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder>
3552 return getGeneralConstraintFieldBuilder().getBuilderList();
3554 private com.google.protobuf.RepeatedFieldBuilder<
3555 com.google.ortools.linearsolver.MPGeneralConstraintProto, com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder, com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder>
3556 getGeneralConstraintFieldBuilder() {
3557 if (generalConstraintBuilder_ ==
null) {
3558 generalConstraintBuilder_ =
new com.google.protobuf.RepeatedFieldBuilder<
3559 com.google.ortools.linearsolver.MPGeneralConstraintProto, com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder, com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder>(
3561 ((bitField0_ & 0x00000004) != 0),
3562 getParentForChildren(),
3564 generalConstraint_ =
null;
3566 return generalConstraintBuilder_;
3569 private boolean maximize_ ;
3580 return ((bitField0_ & 0x00000008) != 0);
3606 bitField0_ |= 0x00000008;
3619 bitField0_ = (bitField0_ & ~0x00000008);
3625 private double objectiveOffset_ ;
3636 return ((bitField0_ & 0x00000010) != 0);
3648 return objectiveOffset_;
3661 objectiveOffset_ = value;
3662 bitField0_ |= 0x00000010;
3675 bitField0_ = (bitField0_ & ~0x00000010);
3676 objectiveOffset_ = 0D;
3682 private com.google.protobuf.SingleFieldBuilder<
3683 com.google.ortools.linearsolver.MPQuadraticObjective, com.google.ortools.linearsolver.MPQuadraticObjective.Builder, com.google.ortools.linearsolver.MPQuadraticObjectiveOrBuilder> quadraticObjectiveBuilder_;
3694 return ((bitField0_ & 0x00000020) != 0);
3706 if (quadraticObjectiveBuilder_ ==
null) {
3707 return quadraticObjective_ ==
null ? com.google.ortools.linearsolver.MPQuadraticObjective.getDefaultInstance() : quadraticObjective_;
3709 return quadraticObjectiveBuilder_.getMessage();
3721 if (quadraticObjectiveBuilder_ ==
null) {
3722 if (value ==
null) {
3723 throw new NullPointerException();
3725 quadraticObjective_ = value;
3727 quadraticObjectiveBuilder_.setMessage(value);
3729 bitField0_ |= 0x00000020;
3742 com.google.ortools.linearsolver.MPQuadraticObjective.Builder builderForValue) {
3743 if (quadraticObjectiveBuilder_ ==
null) {
3744 quadraticObjective_ = builderForValue.build();
3746 quadraticObjectiveBuilder_.setMessage(builderForValue.build());
3748 bitField0_ |= 0x00000020;
3761 if (quadraticObjectiveBuilder_ ==
null) {
3762 if (((bitField0_ & 0x00000020) != 0) &&
3763 quadraticObjective_ !=
null &&
3764 quadraticObjective_ != com.google.ortools.linearsolver.MPQuadraticObjective.getDefaultInstance()) {
3767 quadraticObjective_ = value;
3770 quadraticObjectiveBuilder_.mergeFrom(value);
3772 if (quadraticObjective_ !=
null) {
3773 bitField0_ |= 0x00000020;
3787 bitField0_ = (bitField0_ & ~0x00000020);
3788 quadraticObjective_ =
null;
3789 if (quadraticObjectiveBuilder_ !=
null) {
3790 quadraticObjectiveBuilder_.dispose();
3791 quadraticObjectiveBuilder_ =
null;
3805 bitField0_ |= 0x00000020;
3807 return getQuadraticObjectiveFieldBuilder().getBuilder();
3818 if (quadraticObjectiveBuilder_ !=
null) {
3819 return quadraticObjectiveBuilder_.getMessageOrBuilder();
3821 return quadraticObjective_ ==
null ?
3822 com.google.ortools.linearsolver.MPQuadraticObjective.getDefaultInstance() : quadraticObjective_;
3833 private com.google.protobuf.SingleFieldBuilder<
3834 com.google.ortools.linearsolver.MPQuadraticObjective, com.google.ortools.linearsolver.MPQuadraticObjective.Builder, com.google.ortools.linearsolver.MPQuadraticObjectiveOrBuilder>
3835 getQuadraticObjectiveFieldBuilder() {
3836 if (quadraticObjectiveBuilder_ ==
null) {
3837 quadraticObjectiveBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
3838 com.google.ortools.linearsolver.MPQuadraticObjective, com.google.ortools.linearsolver.MPQuadraticObjective.Builder, com.google.ortools.linearsolver.MPQuadraticObjectiveOrBuilder>(
3840 getParentForChildren(),
3842 quadraticObjective_ =
null;
3844 return quadraticObjectiveBuilder_;
3847 private java.lang.Object name_ =
"";
3857 return ((bitField0_ & 0x00000040) != 0);
3868 java.lang.Object ref = name_;
3869 if (!(ref instanceof java.lang.String)) {
3870 com.google.protobuf.ByteString bs =
3871 (com.google.protobuf.ByteString) ref;
3872 java.lang.String s = bs.toStringUtf8();
3873 if (bs.isValidUtf8()) {
3878 return (java.lang.String) ref;
3889 public com.google.protobuf.ByteString
3891 java.lang.Object ref = name_;
3892 if (ref instanceof String) {
3893 com.google.protobuf.ByteString b =
3894 com.google.protobuf.ByteString.copyFromUtf8(
3895 (java.lang.String) ref);
3899 return (com.google.protobuf.ByteString) ref;
3912 java.lang.String value) {
3913 if (value ==
null) {
throw new NullPointerException(); }
3915 bitField0_ |= 0x00000040;
3929 bitField0_ = (bitField0_ & ~0x00000040);
3943 com.google.protobuf.ByteString value) {
3944 if (value ==
null) {
throw new NullPointerException(); }
3946 bitField0_ |= 0x00000040;
3952 private com.google.protobuf.SingleFieldBuilder<
3953 com.google.ortools.linearsolver.PartialVariableAssignment, com.google.ortools.linearsolver.PartialVariableAssignment.Builder, com.google.ortools.linearsolver.PartialVariableAssignmentOrBuilder> solutionHintBuilder_;
3973 return ((bitField0_ & 0x00000080) != 0);
3994 if (solutionHintBuilder_ ==
null) {
3995 return solutionHint_ ==
null ? com.google.ortools.linearsolver.PartialVariableAssignment.getDefaultInstance() : solutionHint_;
3997 return solutionHintBuilder_.getMessage();
4017 public Builder
setSolutionHint(com.google.ortools.linearsolver.PartialVariableAssignment value) {
4018 if (solutionHintBuilder_ ==
null) {
4019 if (value ==
null) {
4020 throw new NullPointerException();
4022 solutionHint_ = value;
4024 solutionHintBuilder_.setMessage(value);
4026 bitField0_ |= 0x00000080;
4048 com.google.ortools.linearsolver.PartialVariableAssignment.Builder builderForValue) {
4049 if (solutionHintBuilder_ ==
null) {
4050 solutionHint_ = builderForValue.build();
4052 solutionHintBuilder_.setMessage(builderForValue.build());
4054 bitField0_ |= 0x00000080;
4076 if (solutionHintBuilder_ ==
null) {
4077 if (((bitField0_ & 0x00000080) != 0) &&
4078 solutionHint_ !=
null &&
4079 solutionHint_ != com.google.ortools.linearsolver.PartialVariableAssignment.getDefaultInstance()) {
4082 solutionHint_ = value;
4085 solutionHintBuilder_.mergeFrom(value);
4087 if (solutionHint_ !=
null) {
4088 bitField0_ |= 0x00000080;
4111 bitField0_ = (bitField0_ & ~0x00000080);
4112 solutionHint_ =
null;
4113 if (solutionHintBuilder_ !=
null) {
4114 solutionHintBuilder_.dispose();
4115 solutionHintBuilder_ =
null;
4138 bitField0_ |= 0x00000080;
4140 return getSolutionHintFieldBuilder().getBuilder();
4160 if (solutionHintBuilder_ !=
null) {
4161 return solutionHintBuilder_.getMessageOrBuilder();
4163 return solutionHint_ ==
null ?
4164 com.google.ortools.linearsolver.PartialVariableAssignment.getDefaultInstance() : solutionHint_;
4184 private com.google.protobuf.SingleFieldBuilder<
4185 com.google.ortools.linearsolver.PartialVariableAssignment, com.google.ortools.linearsolver.PartialVariableAssignment.Builder, com.google.ortools.linearsolver.PartialVariableAssignmentOrBuilder>
4186 getSolutionHintFieldBuilder() {
4187 if (solutionHintBuilder_ ==
null) {
4188 solutionHintBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
4189 com.google.ortools.linearsolver.PartialVariableAssignment, com.google.ortools.linearsolver.PartialVariableAssignment.Builder, com.google.ortools.linearsolver.PartialVariableAssignmentOrBuilder>(
4191 getParentForChildren(),
4193 solutionHint_ =
null;
4195 return solutionHintBuilder_;
4198 private java.util.List<com.google.ortools.linearsolver.MPModelProto.Annotation> annotation_ =
4199 java.util.Collections.emptyList();
4200 private void ensureAnnotationIsMutable() {
4201 if (!((bitField0_ & 0x00000100) != 0)) {
4202 annotation_ =
new java.util.ArrayList<com.google.ortools.linearsolver.MPModelProto.Annotation>(annotation_);
4203 bitField0_ |= 0x00000100;
4207 private com.google.protobuf.RepeatedFieldBuilder<
4208 com.google.ortools.linearsolver.MPModelProto.Annotation, com.google.ortools.linearsolver.MPModelProto.Annotation.Builder, com.google.ortools.linearsolver.MPModelProto.AnnotationOrBuilder> annotationBuilder_;
4213 public java.util.List<com.google.ortools.linearsolver.MPModelProto.Annotation>
getAnnotationList() {
4214 if (annotationBuilder_ ==
null) {
4215 return java.util.Collections.unmodifiableList(annotation_);
4217 return annotationBuilder_.getMessageList();
4224 if (annotationBuilder_ ==
null) {
4225 return annotation_.size();
4227 return annotationBuilder_.getCount();
4234 if (annotationBuilder_ ==
null) {
4235 return annotation_.get(index);
4237 return annotationBuilder_.getMessage(index);
4244 int index, com.google.ortools.linearsolver.MPModelProto.Annotation value) {
4245 if (annotationBuilder_ ==
null) {
4246 if (value ==
null) {
4247 throw new NullPointerException();
4249 ensureAnnotationIsMutable();
4250 annotation_.set(index, value);
4253 annotationBuilder_.setMessage(index, value);
4261 int index, com.google.ortools.linearsolver.MPModelProto.Annotation.Builder builderForValue) {
4262 if (annotationBuilder_ ==
null) {
4263 ensureAnnotationIsMutable();
4264 annotation_.set(index, builderForValue.build());
4267 annotationBuilder_.setMessage(index, builderForValue.build());
4274 public Builder
addAnnotation(com.google.ortools.linearsolver.MPModelProto.Annotation value) {
4275 if (annotationBuilder_ ==
null) {
4276 if (value ==
null) {
4277 throw new NullPointerException();
4279 ensureAnnotationIsMutable();
4280 annotation_.add(value);
4283 annotationBuilder_.addMessage(value);
4291 int index, com.google.ortools.linearsolver.MPModelProto.Annotation value) {
4292 if (annotationBuilder_ ==
null) {
4293 if (value ==
null) {
4294 throw new NullPointerException();
4296 ensureAnnotationIsMutable();
4297 annotation_.add(index, value);
4300 annotationBuilder_.addMessage(index, value);
4308 com.google.ortools.linearsolver.MPModelProto.Annotation.Builder builderForValue) {
4309 if (annotationBuilder_ ==
null) {
4310 ensureAnnotationIsMutable();
4311 annotation_.add(builderForValue.build());
4314 annotationBuilder_.addMessage(builderForValue.build());
4322 int index, com.google.ortools.linearsolver.MPModelProto.Annotation.Builder builderForValue) {
4323 if (annotationBuilder_ ==
null) {
4324 ensureAnnotationIsMutable();
4325 annotation_.add(index, builderForValue.build());
4328 annotationBuilder_.addMessage(index, builderForValue.build());
4336 java.lang.Iterable<? extends com.google.ortools.linearsolver.MPModelProto.Annotation> values) {
4337 if (annotationBuilder_ ==
null) {
4338 ensureAnnotationIsMutable();
4339 com.google.protobuf.AbstractMessageLite.Builder.addAll(
4340 values, annotation_);
4343 annotationBuilder_.addAllMessages(values);
4351 if (annotationBuilder_ ==
null) {
4352 annotation_ = java.util.Collections.emptyList();
4353 bitField0_ = (bitField0_ & ~0x00000100);
4356 annotationBuilder_.clear();
4364 if (annotationBuilder_ ==
null) {
4365 ensureAnnotationIsMutable();
4366 annotation_.remove(index);
4369 annotationBuilder_.remove(index);
4378 return getAnnotationFieldBuilder().getBuilder(index);
4385 if (annotationBuilder_ ==
null) {
4386 return annotation_.get(index); }
else {
4387 return annotationBuilder_.getMessageOrBuilder(index);
4393 public java.util.List<? extends com.google.ortools.linearsolver.MPModelProto.AnnotationOrBuilder>
4395 if (annotationBuilder_ !=
null) {
4396 return annotationBuilder_.getMessageOrBuilderList();
4398 return java.util.Collections.unmodifiableList(annotation_);
4405 return getAnnotationFieldBuilder().addBuilder(
4406 com.google.ortools.linearsolver.MPModelProto.Annotation.getDefaultInstance());
4413 return getAnnotationFieldBuilder().addBuilder(
4414 index, com.google.ortools.linearsolver.MPModelProto.Annotation.getDefaultInstance());
4419 public java.util.List<com.google.ortools.linearsolver.MPModelProto.Annotation.Builder>
4421 return getAnnotationFieldBuilder().getBuilderList();
4423 private com.google.protobuf.RepeatedFieldBuilder<
4424 com.google.ortools.linearsolver.MPModelProto.Annotation, com.google.ortools.linearsolver.MPModelProto.Annotation.Builder, com.google.ortools.linearsolver.MPModelProto.AnnotationOrBuilder>
4425 getAnnotationFieldBuilder() {
4426 if (annotationBuilder_ ==
null) {
4427 annotationBuilder_ =
new com.google.protobuf.RepeatedFieldBuilder<
4428 com.google.ortools.linearsolver.MPModelProto.Annotation, com.google.ortools.linearsolver.MPModelProto.Annotation.Builder, com.google.ortools.linearsolver.MPModelProto.AnnotationOrBuilder>(
4430 ((bitField0_ & 0x00000100) != 0),
4431 getParentForChildren(),
4435 return annotationBuilder_;
4444 DEFAULT_INSTANCE =
new com.google.ortools.linearsolver.MPModelProto();
4448 return DEFAULT_INSTANCE;
4451 private static final com.google.protobuf.Parser<
MPModelProto>
4452 PARSER =
new com.google.protobuf.AbstractParser<
MPModelProto>() {
4455 com.google.protobuf.CodedInputStream input,
4456 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4457 throws com.google.protobuf.InvalidProtocolBufferException {
4460 builder.mergeFrom(input, extensionRegistry);
4461 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
4462 throw e.setUnfinishedMessage(builder.buildPartial());
4463 }
catch (com.google.protobuf.UninitializedMessageException e) {
4464 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
4465 }
catch (java.io.IOException e) {
4466 throw new com.google.protobuf.InvalidProtocolBufferException(e)
4467 .setUnfinishedMessage(builder.buildPartial());
4469 return builder.buildPartial();
4473 public static com.google.protobuf.Parser<MPModelProto>
parser() {
4484 return DEFAULT_INSTANCE;