6package com.google.ortools.linearsolver;
15@com.google.protobuf.Generated
16public final class MPModelProto
extends
17 com.google.protobuf.GeneratedMessage implements
20private static final long serialVersionUID = 0L;
22 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
23 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
28 MPModelProto.class.getName());
31 private MPModelProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
34 private MPModelProto() {
35 variable_ = java.util.Collections.emptyList();
36 constraint_ = java.util.Collections.emptyList();
37 generalConstraint_ = java.util.Collections.emptyList();
39 annotation_ = java.util.Collections.emptyList();
42 public static final com.google.protobuf.Descriptors.Descriptor
44 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelProto_descriptor;
48 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
50 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelProto_fieldAccessorTable
51 .ensureFieldAccessorsInitialized(
52 com.google.ortools.linearsolver.MPModelProto.class, com.google.ortools.linearsolver.MPModelProto.Builder.class);
57 com.google.protobuf.MessageOrBuilder {
117 com.google.protobuf.ByteString
149 com.google.protobuf.ByteString
166 com.google.protobuf.ByteString
177 public static final class Annotation
extends
178 com.google.protobuf.GeneratedMessage implements
181 private static final long serialVersionUID = 0L;
183 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
184 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
189 Annotation.class.getName());
192 private Annotation(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
195 private Annotation() {
202 public static final com.google.protobuf.Descriptors.Descriptor
204 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelProto_Annotation_descriptor;
208 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
210 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelProto_Annotation_fieldAccessorTable
211 .ensureFieldAccessorsInitialized(
212 com.google.ortools.linearsolver.MPModelProto.Annotation.class, com.google.ortools.linearsolver.MPModelProto.Annotation.Builder.class);
223 public enum TargetType
224 implements com.google.protobuf.ProtocolMessageEnum {
240 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
241 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
246 TargetType.class.getName());
271 @java.lang.Deprecated
285 default:
return null;
289 public static com.google.protobuf.Internal.EnumLiteMap<
TargetType>
291 return internalValueMap;
293 private static final com.google.protobuf.Internal.EnumLiteMap<
295 new com.google.protobuf.Internal.EnumLiteMap<
TargetType>() {
296 public TargetType findValueByNumber(
int number) {
301 public final com.google.protobuf.Descriptors.EnumValueDescriptor
305 public final com.google.protobuf.Descriptors.EnumDescriptor
309 public static com.google.protobuf.Descriptors.EnumDescriptor
311 return com.google.ortools.linearsolver.MPModelProto.Annotation.getDescriptor().getEnumTypes().get(0);
314 private static final TargetType[] VALUES = values();
317 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
319 throw new java.lang.IllegalArgumentException(
320 "EnumValueDescriptor is not for this type.");
322 return VALUES[desc.getIndex()];
325 private final int value;
334 private int bitField0_;
336 private int targetType_ = 0;
342 return ((bitField0_ & 0x00000001) != 0);
354 private int targetIndex_ = 0;
366 return ((bitField0_ & 0x00000002) != 0);
383 @SuppressWarnings(
"serial")
384 private volatile java.lang.Object targetName_ =
"";
395 return ((bitField0_ & 0x00000004) != 0);
407 java.lang.Object ref = targetName_;
408 if (ref instanceof java.lang.String) {
409 return (java.lang.String) ref;
411 com.google.protobuf.ByteString bs =
412 (com.google.protobuf.ByteString) ref;
413 java.lang.String s = bs.toStringUtf8();
414 if (bs.isValidUtf8()) {
429 public com.google.protobuf.ByteString
431 java.lang.Object ref = targetName_;
432 if (ref instanceof java.lang.String) {
433 com.google.protobuf.ByteString b =
434 com.google.protobuf.ByteString.copyFromUtf8(
435 (java.lang.String) ref);
439 return (com.google.protobuf.ByteString) ref;
444 @SuppressWarnings(
"serial")
445 private volatile java.lang.Object payloadKey_ =
"";
457 return ((bitField0_ & 0x00000008) != 0);
470 java.lang.Object ref = payloadKey_;
471 if (ref instanceof java.lang.String) {
472 return (java.lang.String) ref;
474 com.google.protobuf.ByteString bs =
475 (com.google.protobuf.ByteString) ref;
476 java.lang.String s = bs.toStringUtf8();
477 if (bs.isValidUtf8()) {
493 public com.google.protobuf.ByteString
495 java.lang.Object ref = payloadKey_;
496 if (ref instanceof java.lang.String) {
497 com.google.protobuf.ByteString b =
498 com.google.protobuf.ByteString.copyFromUtf8(
499 (java.lang.String) ref);
503 return (com.google.protobuf.ByteString) ref;
508 @SuppressWarnings(
"serial")
509 private volatile java.lang.Object payloadValue_ =
"";
516 return ((bitField0_ & 0x00000010) != 0);
524 java.lang.Object ref = payloadValue_;
525 if (ref instanceof java.lang.String) {
526 return (java.lang.String) ref;
528 com.google.protobuf.ByteString bs =
529 (com.google.protobuf.ByteString) ref;
530 java.lang.String s = bs.toStringUtf8();
531 if (bs.isValidUtf8()) {
542 public com.google.protobuf.ByteString
544 java.lang.Object ref = payloadValue_;
545 if (ref instanceof java.lang.String) {
546 com.google.protobuf.ByteString b =
547 com.google.protobuf.ByteString.copyFromUtf8(
548 (java.lang.String) ref);
552 return (com.google.protobuf.ByteString) ref;
556 private byte memoizedIsInitialized = -1;
563 memoizedIsInitialized = 1;
568 public void writeTo(com.google.protobuf.CodedOutputStream output)
569 throws java.io.IOException {
570 if (((bitField0_ & 0x00000001) != 0)) {
571 output.writeEnum(1, targetType_);
573 if (((bitField0_ & 0x00000002) != 0)) {
574 output.writeInt32(2, targetIndex_);
576 if (((bitField0_ & 0x00000004) != 0)) {
577 com.google.protobuf.GeneratedMessage.writeString(output, 3, targetName_);
579 if (((bitField0_ & 0x00000008) != 0)) {
580 com.google.protobuf.GeneratedMessage.writeString(output, 4, payloadKey_);
582 if (((bitField0_ & 0x00000010) != 0)) {
583 com.google.protobuf.GeneratedMessage.writeString(output, 5, payloadValue_);
585 getUnknownFields().writeTo(output);
590 int size = memoizedSize;
591 if (size != -1)
return size;
594 if (((bitField0_ & 0x00000001) != 0)) {
595 size += com.google.protobuf.CodedOutputStream
596 .computeEnumSize(1, targetType_);
598 if (((bitField0_ & 0x00000002) != 0)) {
599 size += com.google.protobuf.CodedOutputStream
600 .computeInt32Size(2, targetIndex_);
602 if (((bitField0_ & 0x00000004) != 0)) {
603 size += com.google.protobuf.GeneratedMessage.computeStringSize(3, targetName_);
605 if (((bitField0_ & 0x00000008) != 0)) {
606 size += com.google.protobuf.GeneratedMessage.computeStringSize(4, payloadKey_);
608 if (((bitField0_ & 0x00000010) != 0)) {
609 size += com.google.protobuf.GeneratedMessage.computeStringSize(5, payloadValue_);
611 size += getUnknownFields().getSerializedSize();
617 public boolean equals(
final java.lang.Object obj) {
621 if (!(obj instanceof com.google.ortools.linearsolver.MPModelProto.Annotation)) {
622 return super.equals(obj);
628 if (targetType_ != other.targetType_)
return false;
650 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
656 if (memoizedHashCode != 0) {
657 return memoizedHashCode;
663 hash = (53 * hash) + targetType_;
681 hash = (29 * hash) + getUnknownFields().hashCode();
682 memoizedHashCode = hash;
687 java.nio.ByteBuffer data)
688 throws com.google.protobuf.InvalidProtocolBufferException {
689 return PARSER.parseFrom(data);
692 java.nio.ByteBuffer data,
693 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
694 throws com.google.protobuf.InvalidProtocolBufferException {
695 return PARSER.parseFrom(data, extensionRegistry);
698 com.google.protobuf.ByteString data)
699 throws com.google.protobuf.InvalidProtocolBufferException {
700 return PARSER.parseFrom(data);
703 com.google.protobuf.ByteString data,
704 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
705 throws com.google.protobuf.InvalidProtocolBufferException {
706 return PARSER.parseFrom(data, extensionRegistry);
709 throws com.google.protobuf.InvalidProtocolBufferException {
710 return PARSER.parseFrom(data);
714 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
715 throws com.google.protobuf.InvalidProtocolBufferException {
716 return PARSER.parseFrom(data, extensionRegistry);
719 throws java.io.IOException {
720 return com.google.protobuf.GeneratedMessage
721 .parseWithIOException(PARSER, input);
724 java.io.InputStream input,
725 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
726 throws java.io.IOException {
727 return com.google.protobuf.GeneratedMessage
728 .parseWithIOException(PARSER, input, extensionRegistry);
732 throws java.io.IOException {
733 return com.google.protobuf.GeneratedMessage
734 .parseDelimitedWithIOException(PARSER, input);
738 java.io.InputStream input,
739 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
740 throws java.io.IOException {
741 return com.google.protobuf.GeneratedMessage
742 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
745 com.google.protobuf.CodedInputStream input)
746 throws java.io.IOException {
747 return com.google.protobuf.GeneratedMessage
748 .parseWithIOException(PARSER, input);
751 com.google.protobuf.CodedInputStream input,
752 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
753 throws java.io.IOException {
754 return com.google.protobuf.GeneratedMessage
755 .parseWithIOException(PARSER, input, extensionRegistry);
761 return DEFAULT_INSTANCE.toBuilder();
763 public static Builder newBuilder(com.google.ortools.linearsolver.MPModelProto.Annotation prototype) {
764 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
768 return this == DEFAULT_INSTANCE
774 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
786 public static final class Builder
extends
787 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
790 public static final com.google.protobuf.Descriptors.Descriptor
792 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelProto_Annotation_descriptor;
796 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
798 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelProto_Annotation_fieldAccessorTable
799 .ensureFieldAccessorsInitialized(
800 com.google.ortools.linearsolver.MPModelProto.Annotation.class, com.google.ortools.linearsolver.MPModelProto.Annotation.Builder.class);
809 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
826 public com.google.protobuf.Descriptors.Descriptor
828 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelProto_Annotation_descriptor;
833 return com.google.ortools.linearsolver.MPModelProto.Annotation.getDefaultInstance();
840 throw newUninitializedMessageException(result);
848 if (bitField0_ != 0) { buildPartial0(result); }
853 private void buildPartial0(com.google.ortools.linearsolver.MPModelProto.Annotation result) {
854 int from_bitField0_ = bitField0_;
855 int to_bitField0_ = 0;
856 if (((from_bitField0_ & 0x00000001) != 0)) {
857 result.targetType_ = targetType_;
858 to_bitField0_ |= 0x00000001;
860 if (((from_bitField0_ & 0x00000002) != 0)) {
861 result.targetIndex_ = targetIndex_;
862 to_bitField0_ |= 0x00000002;
864 if (((from_bitField0_ & 0x00000004) != 0)) {
865 result.targetName_ = targetName_;
866 to_bitField0_ |= 0x00000004;
868 if (((from_bitField0_ & 0x00000008) != 0)) {
869 result.payloadKey_ = payloadKey_;
870 to_bitField0_ |= 0x00000008;
872 if (((from_bitField0_ & 0x00000010) != 0)) {
873 result.payloadValue_ = payloadValue_;
874 to_bitField0_ |= 0x00000010;
876 result.bitField0_ |= to_bitField0_;
880 public Builder
mergeFrom(com.google.protobuf.Message other) {
881 if (other instanceof com.google.ortools.linearsolver.MPModelProto.Annotation) {
882 return mergeFrom((com.google.ortools.linearsolver.MPModelProto.Annotation)other);
884 super.mergeFrom(other);
889 public Builder
mergeFrom(com.google.ortools.linearsolver.MPModelProto.Annotation other) {
890 if (other == com.google.ortools.linearsolver.MPModelProto.Annotation.getDefaultInstance())
return this;
891 if (other.hasTargetType()) {
894 if (other.hasTargetIndex()) {
897 if (other.hasTargetName()) {
898 targetName_ = other.targetName_;
899 bitField0_ |= 0x00000004;
902 if (other.hasPayloadKey()) {
903 payloadKey_ = other.payloadKey_;
904 bitField0_ |= 0x00000008;
907 if (other.hasPayloadValue()) {
908 payloadValue_ = other.payloadValue_;
909 bitField0_ |= 0x00000010;
912 this.mergeUnknownFields(other.getUnknownFields());
924 com.google.protobuf.CodedInputStream input,
925 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
926 throws java.io.IOException {
927 if (extensionRegistry ==
null) {
928 throw new java.lang.NullPointerException();
931 boolean done =
false;
933 int tag = input.readTag();
939 int tmpRaw = input.readEnum();
941 com.google.ortools.linearsolver.MPModelProto.Annotation.TargetType.forNumber(tmpRaw);
942 if (tmpValue ==
null) {
943 mergeUnknownVarintField(1, tmpRaw);
945 targetType_ = tmpRaw;
946 bitField0_ |= 0x00000001;
951 targetIndex_ = input.readInt32();
952 bitField0_ |= 0x00000002;
956 targetName_ = input.readBytes();
957 bitField0_ |= 0x00000004;
961 payloadKey_ = input.readBytes();
962 bitField0_ |= 0x00000008;
966 payloadValue_ = input.readBytes();
967 bitField0_ |= 0x00000010;
971 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
978 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
979 throw e.unwrapIOException();
985 private int bitField0_;
987 private int targetType_ = 0;
993 return ((bitField0_ & 0x00000001) != 0);
1009 public Builder
setTargetType(com.google.ortools.linearsolver.MPModelProto.Annotation.TargetType value) {
1010 if (value ==
null) {
throw new NullPointerException(); }
1011 bitField0_ |= 0x00000001;
1012 targetType_ = value.getNumber();
1021 bitField0_ = (bitField0_ & ~0x00000001);
1027 private int targetIndex_ ;
1039 return ((bitField0_ & 0x00000002) != 0);
1052 return targetIndex_;
1066 targetIndex_ = value;
1067 bitField0_ |= 0x00000002;
1081 bitField0_ = (bitField0_ & ~0x00000002);
1087 private java.lang.Object targetName_ =
"";
1097 return ((bitField0_ & 0x00000004) != 0);
1108 java.lang.Object ref = targetName_;
1109 if (!(ref instanceof java.lang.String)) {
1110 com.google.protobuf.ByteString bs =
1111 (com.google.protobuf.ByteString) ref;
1112 java.lang.String s = bs.toStringUtf8();
1113 if (bs.isValidUtf8()) {
1118 return (java.lang.String) ref;
1129 public com.google.protobuf.ByteString
1131 java.lang.Object ref = targetName_;
1132 if (ref instanceof String) {
1133 com.google.protobuf.ByteString b =
1134 com.google.protobuf.ByteString.copyFromUtf8(
1135 (java.lang.String) ref);
1139 return (com.google.protobuf.ByteString) ref;
1152 java.lang.String value) {
1153 if (value ==
null) {
throw new NullPointerException(); }
1154 targetName_ = value;
1155 bitField0_ |= 0x00000004;
1169 bitField0_ = (bitField0_ & ~0x00000004);
1183 com.google.protobuf.ByteString value) {
1184 if (value ==
null) {
throw new NullPointerException(); }
1185 targetName_ = value;
1186 bitField0_ |= 0x00000004;
1191 private java.lang.Object payloadKey_ =
"";
1202 return ((bitField0_ & 0x00000008) != 0);
1214 java.lang.Object ref = payloadKey_;
1215 if (!(ref instanceof java.lang.String)) {
1216 com.google.protobuf.ByteString bs =
1217 (com.google.protobuf.ByteString) ref;
1218 java.lang.String s = bs.toStringUtf8();
1219 if (bs.isValidUtf8()) {
1224 return (java.lang.String) ref;
1236 public com.google.protobuf.ByteString
1238 java.lang.Object ref = payloadKey_;
1239 if (ref instanceof String) {
1240 com.google.protobuf.ByteString b =
1241 com.google.protobuf.ByteString.copyFromUtf8(
1242 (java.lang.String) ref);
1246 return (com.google.protobuf.ByteString) ref;
1260 java.lang.String value) {
1261 if (value ==
null) {
throw new NullPointerException(); }
1262 payloadKey_ = value;
1263 bitField0_ |= 0x00000008;
1278 bitField0_ = (bitField0_ & ~0x00000008);
1293 com.google.protobuf.ByteString value) {
1294 if (value ==
null) {
throw new NullPointerException(); }
1295 payloadKey_ = value;
1296 bitField0_ |= 0x00000008;
1301 private java.lang.Object payloadValue_ =
"";
1307 return ((bitField0_ & 0x00000010) != 0);
1314 java.lang.Object ref = payloadValue_;
1315 if (!(ref instanceof java.lang.String)) {
1316 com.google.protobuf.ByteString bs =
1317 (com.google.protobuf.ByteString) ref;
1318 java.lang.String s = bs.toStringUtf8();
1319 if (bs.isValidUtf8()) {
1324 return (java.lang.String) ref;
1331 public com.google.protobuf.ByteString
1333 java.lang.Object ref = payloadValue_;
1334 if (ref instanceof String) {
1335 com.google.protobuf.ByteString b =
1336 com.google.protobuf.ByteString.copyFromUtf8(
1337 (java.lang.String) ref);
1341 return (com.google.protobuf.ByteString) ref;
1350 java.lang.String value) {
1351 if (value ==
null) {
throw new NullPointerException(); }
1352 payloadValue_ = value;
1353 bitField0_ |= 0x00000010;
1363 bitField0_ = (bitField0_ & ~0x00000010);
1373 com.google.protobuf.ByteString value) {
1374 if (value ==
null) {
throw new NullPointerException(); }
1375 payloadValue_ = value;
1376 bitField0_ |= 0x00000010;
1387 DEFAULT_INSTANCE =
new com.google.ortools.linearsolver.MPModelProto.Annotation();
1391 return DEFAULT_INSTANCE;
1394 private static final com.google.protobuf.Parser<
Annotation>
1395 PARSER =
new com.google.protobuf.AbstractParser<
Annotation>() {
1398 com.google.protobuf.CodedInputStream input,
1399 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1400 throws com.google.protobuf.InvalidProtocolBufferException {
1403 builder.
mergeFrom(input, extensionRegistry);
1404 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
1406 }
catch (com.google.protobuf.UninitializedMessageException e) {
1407 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.
buildPartial());
1408 }
catch (java.io.IOException e) {
1409 throw new com.google.protobuf.InvalidProtocolBufferException(e)
1416 public static com.google.protobuf.Parser<Annotation>
parser() {
1427 return DEFAULT_INSTANCE;
1432 private int bitField0_;
1434 @SuppressWarnings(
"serial")
1455 public java.util.List<? extends com.google.ortools.linearsolver.MPVariableProtoOrBuilder>
1468 return variable_.size();
1479 return variable_.get(index);
1491 return variable_.get(index);
1495 @SuppressWarnings(
"serial")
1516 public java.util.List<? extends com.google.ortools.linearsolver.MPConstraintProtoOrBuilder>
1529 return constraint_.size();
1540 return constraint_.get(index);
1552 return constraint_.get(index);
1556 @SuppressWarnings(
"serial")
1568 return generalConstraint_;
1579 public java.util.List<? extends com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder>
1581 return generalConstraint_;
1593 return generalConstraint_.size();
1605 return generalConstraint_.get(index);
1618 return generalConstraint_.get(index);
1622 private boolean maximize_ =
false;
1633 return ((bitField0_ & 0x00000001) != 0);
1649 private double objectiveOffset_ = 0D;
1660 return ((bitField0_ & 0x00000002) != 0);
1672 return objectiveOffset_;
1688 return ((bitField0_ & 0x00000004) != 0);
1701 return quadraticObjective_ ==
null ? com.google.ortools.linearsolver.MPQuadraticObjective.getDefaultInstance() : quadraticObjective_;
1713 return quadraticObjective_ ==
null ? com.google.ortools.linearsolver.MPQuadraticObjective.getDefaultInstance() : quadraticObjective_;
1717 @SuppressWarnings(
"serial")
1718 private volatile java.lang.Object name_ =
"";
1729 return ((bitField0_ & 0x00000008) != 0);
1741 java.lang.Object ref = name_;
1742 if (ref instanceof java.lang.String) {
1743 return (java.lang.String) ref;
1745 com.google.protobuf.ByteString bs =
1746 (com.google.protobuf.ByteString) ref;
1747 java.lang.String s = bs.toStringUtf8();
1748 if (bs.isValidUtf8()) {
1763 public com.google.protobuf.ByteString
1765 java.lang.Object ref = name_;
1766 if (ref instanceof java.lang.String) {
1767 com.google.protobuf.ByteString b =
1768 com.google.protobuf.ByteString.copyFromUtf8(
1769 (java.lang.String) ref);
1773 return (com.google.protobuf.ByteString) ref;
1799 return ((bitField0_ & 0x00000010) != 0);
1821 return solutionHint_ ==
null ? com.google.ortools.linearsolver.PartialVariableAssignment.getDefaultInstance() : solutionHint_;
1842 return solutionHint_ ==
null ? com.google.ortools.linearsolver.PartialVariableAssignment.getDefaultInstance() : solutionHint_;
1846 @SuppressWarnings(
"serial")
1859 public java.util.List<? extends com.google.ortools.linearsolver.MPModelProto.AnnotationOrBuilder>
1868 return annotation_.size();
1875 return annotation_.get(index);
1883 return annotation_.get(index);
1886 private byte memoizedIsInitialized = -1;
1893 memoizedIsInitialized = 1;
1898 public void writeTo(com.google.protobuf.CodedOutputStream output)
1899 throws java.io.IOException {
1900 if (((bitField0_ & 0x00000001) != 0)) {
1901 output.writeBool(1, maximize_);
1903 if (((bitField0_ & 0x00000002) != 0)) {
1904 output.writeDouble(2, objectiveOffset_);
1906 for (
int i = 0; i < variable_.size(); i++) {
1907 output.writeMessage(3, variable_.get(i));
1909 for (
int i = 0; i < constraint_.size(); i++) {
1910 output.writeMessage(4, constraint_.get(i));
1912 if (((bitField0_ & 0x00000008) != 0)) {
1913 com.google.protobuf.GeneratedMessage.writeString(output, 5, name_);
1915 if (((bitField0_ & 0x00000010) != 0)) {
1918 for (
int i = 0; i < generalConstraint_.size(); i++) {
1919 output.writeMessage(7, generalConstraint_.get(i));
1921 if (((bitField0_ & 0x00000004) != 0)) {
1924 for (
int i = 0; i < annotation_.size(); i++) {
1925 output.writeMessage(9, annotation_.get(i));
1927 getUnknownFields().writeTo(output);
1932 int size = memoizedSize;
1933 if (size != -1)
return size;
1936 if (((bitField0_ & 0x00000001) != 0)) {
1937 size += com.google.protobuf.CodedOutputStream
1938 .computeBoolSize(1, maximize_);
1940 if (((bitField0_ & 0x00000002) != 0)) {
1941 size += com.google.protobuf.CodedOutputStream
1942 .computeDoubleSize(2, objectiveOffset_);
1944 for (
int i = 0; i < variable_.size(); i++) {
1945 size += com.google.protobuf.CodedOutputStream
1946 .computeMessageSize(3, variable_.get(i));
1948 for (
int i = 0; i < constraint_.size(); i++) {
1949 size += com.google.protobuf.CodedOutputStream
1950 .computeMessageSize(4, constraint_.get(i));
1952 if (((bitField0_ & 0x00000008) != 0)) {
1953 size += com.google.protobuf.GeneratedMessage.computeStringSize(5, name_);
1955 if (((bitField0_ & 0x00000010) != 0)) {
1956 size += com.google.protobuf.CodedOutputStream
1959 for (
int i = 0; i < generalConstraint_.size(); i++) {
1960 size += com.google.protobuf.CodedOutputStream
1961 .computeMessageSize(7, generalConstraint_.get(i));
1963 if (((bitField0_ & 0x00000004) != 0)) {
1964 size += com.google.protobuf.CodedOutputStream
1967 for (
int i = 0; i < annotation_.size(); i++) {
1968 size += com.google.protobuf.CodedOutputStream
1969 .computeMessageSize(9, annotation_.get(i));
1971 size += getUnknownFields().getSerializedSize();
1972 memoizedSize = size;
1977 public boolean equals(
final java.lang.Object obj) {
1981 if (!(obj instanceof com.google.ortools.linearsolver.MPModelProto)) {
1982 return super.equals(obj);
2000 != java.lang.Double.doubleToLongBits(
2020 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
2026 if (memoizedHashCode != 0) {
2027 return memoizedHashCode;
2045 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
2050 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
2059 hash = (53 * hash) +
getName().hashCode();
2069 hash = (29 * hash) + getUnknownFields().hashCode();
2070 memoizedHashCode = hash;
2075 java.nio.ByteBuffer data)
2076 throws com.google.protobuf.InvalidProtocolBufferException {
2077 return PARSER.parseFrom(data);
2080 java.nio.ByteBuffer data,
2081 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2082 throws com.google.protobuf.InvalidProtocolBufferException {
2083 return PARSER.parseFrom(data, extensionRegistry);
2086 com.google.protobuf.ByteString data)
2087 throws com.google.protobuf.InvalidProtocolBufferException {
2088 return PARSER.parseFrom(data);
2091 com.google.protobuf.ByteString data,
2092 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2093 throws com.google.protobuf.InvalidProtocolBufferException {
2094 return PARSER.parseFrom(data, extensionRegistry);
2097 throws com.google.protobuf.InvalidProtocolBufferException {
2098 return PARSER.parseFrom(data);
2102 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2103 throws com.google.protobuf.InvalidProtocolBufferException {
2104 return PARSER.parseFrom(data, extensionRegistry);
2107 throws java.io.IOException {
2108 return com.google.protobuf.GeneratedMessage
2109 .parseWithIOException(PARSER, input);
2112 java.io.InputStream input,
2113 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2114 throws java.io.IOException {
2115 return com.google.protobuf.GeneratedMessage
2116 .parseWithIOException(PARSER, input, extensionRegistry);
2120 throws java.io.IOException {
2121 return com.google.protobuf.GeneratedMessage
2122 .parseDelimitedWithIOException(PARSER, input);
2126 java.io.InputStream input,
2127 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2128 throws java.io.IOException {
2129 return com.google.protobuf.GeneratedMessage
2130 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
2133 com.google.protobuf.CodedInputStream input)
2134 throws java.io.IOException {
2135 return com.google.protobuf.GeneratedMessage
2136 .parseWithIOException(PARSER, input);
2139 com.google.protobuf.CodedInputStream input,
2140 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2141 throws java.io.IOException {
2142 return com.google.protobuf.GeneratedMessage
2143 .parseWithIOException(PARSER, input, extensionRegistry);
2149 return DEFAULT_INSTANCE.toBuilder();
2152 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
2156 return this == DEFAULT_INSTANCE
2162 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
2173 public static final class Builder
extends
2174 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
2177 public static final com.google.protobuf.Descriptors.Descriptor
2179 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelProto_descriptor;
2183 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
2185 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelProto_fieldAccessorTable
2186 .ensureFieldAccessorsInitialized(
2187 com.google.ortools.linearsolver.MPModelProto.class, com.google.ortools.linearsolver.MPModelProto.Builder.class);
2192 maybeForceBuilderInitialization();
2196 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
2198 maybeForceBuilderInitialization();
2200 private void maybeForceBuilderInitialization() {
2201 if (com.google.protobuf.GeneratedMessage
2202 .alwaysUseFieldBuilders) {
2203 internalGetVariableFieldBuilder();
2204 internalGetConstraintFieldBuilder();
2205 internalGetGeneralConstraintFieldBuilder();
2206 internalGetQuadraticObjectiveFieldBuilder();
2207 internalGetSolutionHintFieldBuilder();
2208 internalGetAnnotationFieldBuilder();
2215 if (variableBuilder_ ==
null) {
2216 variable_ = java.util.Collections.emptyList();
2219 variableBuilder_.clear();
2221 bitField0_ = (bitField0_ & ~0x00000001);
2222 if (constraintBuilder_ ==
null) {
2223 constraint_ = java.util.Collections.emptyList();
2226 constraintBuilder_.clear();
2228 bitField0_ = (bitField0_ & ~0x00000002);
2229 if (generalConstraintBuilder_ ==
null) {
2230 generalConstraint_ = java.util.Collections.emptyList();
2232 generalConstraint_ =
null;
2233 generalConstraintBuilder_.clear();
2235 bitField0_ = (bitField0_ & ~0x00000004);
2237 objectiveOffset_ = 0D;
2238 quadraticObjective_ =
null;
2239 if (quadraticObjectiveBuilder_ !=
null) {
2240 quadraticObjectiveBuilder_.dispose();
2241 quadraticObjectiveBuilder_ =
null;
2244 solutionHint_ =
null;
2245 if (solutionHintBuilder_ !=
null) {
2246 solutionHintBuilder_.dispose();
2247 solutionHintBuilder_ =
null;
2249 if (annotationBuilder_ ==
null) {
2250 annotation_ = java.util.Collections.emptyList();
2253 annotationBuilder_.clear();
2255 bitField0_ = (bitField0_ & ~0x00000100);
2260 public com.google.protobuf.Descriptors.Descriptor
2262 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelProto_descriptor;
2267 return com.google.ortools.linearsolver.MPModelProto.getDefaultInstance();
2274 throw newUninitializedMessageException(result);
2282 buildPartialRepeatedFields(result);
2283 if (bitField0_ != 0) { buildPartial0(result); }
2288 private void buildPartialRepeatedFields(com.google.ortools.linearsolver.MPModelProto result) {
2289 if (variableBuilder_ ==
null) {
2290 if (((bitField0_ & 0x00000001) != 0)) {
2291 variable_ = java.util.Collections.unmodifiableList(variable_);
2292 bitField0_ = (bitField0_ & ~0x00000001);
2294 result.variable_ = variable_;
2296 result.variable_ = variableBuilder_.build();
2298 if (constraintBuilder_ ==
null) {
2299 if (((bitField0_ & 0x00000002) != 0)) {
2300 constraint_ = java.util.Collections.unmodifiableList(constraint_);
2301 bitField0_ = (bitField0_ & ~0x00000002);
2303 result.constraint_ = constraint_;
2305 result.constraint_ = constraintBuilder_.build();
2307 if (generalConstraintBuilder_ ==
null) {
2308 if (((bitField0_ & 0x00000004) != 0)) {
2309 generalConstraint_ = java.util.Collections.unmodifiableList(generalConstraint_);
2310 bitField0_ = (bitField0_ & ~0x00000004);
2312 result.generalConstraint_ = generalConstraint_;
2314 result.generalConstraint_ = generalConstraintBuilder_.build();
2316 if (annotationBuilder_ ==
null) {
2317 if (((bitField0_ & 0x00000100) != 0)) {
2318 annotation_ = java.util.Collections.unmodifiableList(annotation_);
2319 bitField0_ = (bitField0_ & ~0x00000100);
2321 result.annotation_ = annotation_;
2323 result.annotation_ = annotationBuilder_.build();
2327 private void buildPartial0(com.google.ortools.linearsolver.MPModelProto result) {
2328 int from_bitField0_ = bitField0_;
2329 int to_bitField0_ = 0;
2330 if (((from_bitField0_ & 0x00000008) != 0)) {
2331 result.maximize_ = maximize_;
2332 to_bitField0_ |= 0x00000001;
2334 if (((from_bitField0_ & 0x00000010) != 0)) {
2335 result.objectiveOffset_ = objectiveOffset_;
2336 to_bitField0_ |= 0x00000002;
2338 if (((from_bitField0_ & 0x00000020) != 0)) {
2339 result.quadraticObjective_ = quadraticObjectiveBuilder_ ==
null
2340 ? quadraticObjective_
2341 : quadraticObjectiveBuilder_.build();
2342 to_bitField0_ |= 0x00000004;
2344 if (((from_bitField0_ & 0x00000040) != 0)) {
2345 result.name_ = name_;
2346 to_bitField0_ |= 0x00000008;
2348 if (((from_bitField0_ & 0x00000080) != 0)) {
2349 result.solutionHint_ = solutionHintBuilder_ ==
null
2351 : solutionHintBuilder_.build();
2352 to_bitField0_ |= 0x00000010;
2354 result.bitField0_ |= to_bitField0_;
2358 public Builder
mergeFrom(com.google.protobuf.Message other) {
2359 if (other instanceof com.google.ortools.linearsolver.MPModelProto) {
2360 return mergeFrom((com.google.ortools.linearsolver.MPModelProto)other);
2362 super.mergeFrom(other);
2367 public Builder
mergeFrom(com.google.ortools.linearsolver.MPModelProto other) {
2368 if (other == com.google.ortools.linearsolver.MPModelProto.getDefaultInstance())
return this;
2369 if (variableBuilder_ ==
null) {
2370 if (!other.variable_.isEmpty()) {
2371 if (variable_.isEmpty()) {
2372 variable_ = other.variable_;
2373 bitField0_ = (bitField0_ & ~0x00000001);
2375 ensureVariableIsMutable();
2376 variable_.addAll(other.variable_);
2381 if (!other.variable_.isEmpty()) {
2382 if (variableBuilder_.isEmpty()) {
2383 variableBuilder_.dispose();
2384 variableBuilder_ =
null;
2385 variable_ = other.variable_;
2386 bitField0_ = (bitField0_ & ~0x00000001);
2388 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
2389 internalGetVariableFieldBuilder() :
null;
2391 variableBuilder_.addAllMessages(other.variable_);
2395 if (constraintBuilder_ ==
null) {
2396 if (!other.constraint_.isEmpty()) {
2397 if (constraint_.isEmpty()) {
2398 constraint_ = other.constraint_;
2399 bitField0_ = (bitField0_ & ~0x00000002);
2401 ensureConstraintIsMutable();
2402 constraint_.addAll(other.constraint_);
2407 if (!other.constraint_.isEmpty()) {
2408 if (constraintBuilder_.isEmpty()) {
2409 constraintBuilder_.dispose();
2410 constraintBuilder_ =
null;
2411 constraint_ = other.constraint_;
2412 bitField0_ = (bitField0_ & ~0x00000002);
2413 constraintBuilder_ =
2414 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
2415 internalGetConstraintFieldBuilder() :
null;
2417 constraintBuilder_.addAllMessages(other.constraint_);
2421 if (generalConstraintBuilder_ ==
null) {
2422 if (!other.generalConstraint_.isEmpty()) {
2423 if (generalConstraint_.isEmpty()) {
2424 generalConstraint_ = other.generalConstraint_;
2425 bitField0_ = (bitField0_ & ~0x00000004);
2427 ensureGeneralConstraintIsMutable();
2428 generalConstraint_.addAll(other.generalConstraint_);
2433 if (!other.generalConstraint_.isEmpty()) {
2434 if (generalConstraintBuilder_.isEmpty()) {
2435 generalConstraintBuilder_.dispose();
2436 generalConstraintBuilder_ =
null;
2437 generalConstraint_ = other.generalConstraint_;
2438 bitField0_ = (bitField0_ & ~0x00000004);
2439 generalConstraintBuilder_ =
2440 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
2441 internalGetGeneralConstraintFieldBuilder() :
null;
2443 generalConstraintBuilder_.addAllMessages(other.generalConstraint_);
2447 if (other.hasMaximize()) {
2450 if (other.hasObjectiveOffset()) {
2453 if (other.hasQuadraticObjective()) {
2456 if (other.hasName()) {
2457 name_ = other.name_;
2458 bitField0_ |= 0x00000040;
2461 if (other.hasSolutionHint()) {
2464 if (annotationBuilder_ ==
null) {
2465 if (!other.annotation_.isEmpty()) {
2466 if (annotation_.isEmpty()) {
2467 annotation_ = other.annotation_;
2468 bitField0_ = (bitField0_ & ~0x00000100);
2470 ensureAnnotationIsMutable();
2471 annotation_.addAll(other.annotation_);
2476 if (!other.annotation_.isEmpty()) {
2477 if (annotationBuilder_.isEmpty()) {
2478 annotationBuilder_.dispose();
2479 annotationBuilder_ =
null;
2480 annotation_ = other.annotation_;
2481 bitField0_ = (bitField0_ & ~0x00000100);
2482 annotationBuilder_ =
2483 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
2484 internalGetAnnotationFieldBuilder() :
null;
2486 annotationBuilder_.addAllMessages(other.annotation_);
2490 this.mergeUnknownFields(other.getUnknownFields());
2502 com.google.protobuf.CodedInputStream input,
2503 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2504 throws java.io.IOException {
2505 if (extensionRegistry ==
null) {
2506 throw new java.lang.NullPointerException();
2509 boolean done =
false;
2511 int tag = input.readTag();
2517 maximize_ = input.readBool();
2518 bitField0_ |= 0x00000008;
2522 objectiveOffset_ = input.readDouble();
2523 bitField0_ |= 0x00000010;
2529 com.google.ortools.linearsolver.MPVariableProto.parser(),
2531 if (variableBuilder_ ==
null) {
2532 ensureVariableIsMutable();
2535 variableBuilder_.addMessage(m);
2542 com.google.ortools.linearsolver.MPConstraintProto.parser(),
2544 if (constraintBuilder_ ==
null) {
2545 ensureConstraintIsMutable();
2548 constraintBuilder_.addMessage(m);
2553 name_ = input.readBytes();
2554 bitField0_ |= 0x00000040;
2559 internalGetSolutionHintFieldBuilder().getBuilder(),
2561 bitField0_ |= 0x00000080;
2567 com.google.ortools.linearsolver.MPGeneralConstraintProto.parser(),
2569 if (generalConstraintBuilder_ ==
null) {
2570 ensureGeneralConstraintIsMutable();
2571 generalConstraint_.add(m);
2573 generalConstraintBuilder_.addMessage(m);
2579 internalGetQuadraticObjectiveFieldBuilder().getBuilder(),
2581 bitField0_ |= 0x00000020;
2587 com.google.ortools.linearsolver.MPModelProto.Annotation.parser(),
2589 if (annotationBuilder_ ==
null) {
2590 ensureAnnotationIsMutable();
2593 annotationBuilder_.addMessage(m);
2598 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
2605 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
2606 throw e.unwrapIOException();
2612 private int bitField0_;
2614 private java.util.List<com.google.ortools.linearsolver.MPVariableProto> variable_ =
2615 java.util.Collections.emptyList();
2616 private void ensureVariableIsMutable() {
2617 if (!((bitField0_ & 0x00000001) != 0)) {
2618 variable_ =
new java.util.ArrayList<com.google.ortools.linearsolver.MPVariableProto>(variable_);
2619 bitField0_ |= 0x00000001;
2623 private com.google.protobuf.RepeatedFieldBuilder<
2624 com.google.ortools.linearsolver.MPVariableProto, com.google.ortools.linearsolver.MPVariableProto.Builder, com.google.ortools.linearsolver.MPVariableProtoOrBuilder> variableBuilder_;
2633 public java.util.List<com.google.ortools.linearsolver.MPVariableProto>
getVariableList() {
2634 if (variableBuilder_ ==
null) {
2635 return java.util.Collections.unmodifiableList(variable_);
2637 return variableBuilder_.getMessageList();
2648 if (variableBuilder_ ==
null) {
2649 return variable_.size();
2651 return variableBuilder_.getCount();
2662 if (variableBuilder_ ==
null) {
2663 return variable_.get(index);
2665 return variableBuilder_.getMessage(index);
2676 int index, com.google.ortools.linearsolver.MPVariableProto value) {
2677 if (variableBuilder_ ==
null) {
2678 if (value ==
null) {
2679 throw new NullPointerException();
2681 ensureVariableIsMutable();
2682 variable_.set(index, value);
2685 variableBuilder_.setMessage(index, value);
2697 int index, com.google.ortools.linearsolver.MPVariableProto.Builder builderForValue) {
2698 if (variableBuilder_ ==
null) {
2699 ensureVariableIsMutable();
2700 variable_.set(index, builderForValue.build());
2703 variableBuilder_.setMessage(index, builderForValue.build());
2714 public Builder
addVariable(com.google.ortools.linearsolver.MPVariableProto value) {
2715 if (variableBuilder_ ==
null) {
2716 if (value ==
null) {
2717 throw new NullPointerException();
2719 ensureVariableIsMutable();
2720 variable_.add(value);
2723 variableBuilder_.addMessage(value);
2735 int index, com.google.ortools.linearsolver.MPVariableProto value) {
2736 if (variableBuilder_ ==
null) {
2737 if (value ==
null) {
2738 throw new NullPointerException();
2740 ensureVariableIsMutable();
2741 variable_.add(index, value);
2744 variableBuilder_.addMessage(index, value);
2756 com.google.ortools.linearsolver.MPVariableProto.Builder builderForValue) {
2757 if (variableBuilder_ ==
null) {
2758 ensureVariableIsMutable();
2759 variable_.add(builderForValue.build());
2762 variableBuilder_.addMessage(builderForValue.build());
2774 int index, com.google.ortools.linearsolver.MPVariableProto.Builder builderForValue) {
2775 if (variableBuilder_ ==
null) {
2776 ensureVariableIsMutable();
2777 variable_.add(index, builderForValue.build());
2780 variableBuilder_.addMessage(index, builderForValue.build());
2792 java.lang.Iterable<? extends com.google.ortools.linearsolver.MPVariableProto> values) {
2793 if (variableBuilder_ ==
null) {
2794 ensureVariableIsMutable();
2795 com.google.protobuf.AbstractMessageLite.Builder.addAll(
2799 variableBuilder_.addAllMessages(values);
2811 if (variableBuilder_ ==
null) {
2812 variable_ = java.util.Collections.emptyList();
2813 bitField0_ = (bitField0_ & ~0x00000001);
2816 variableBuilder_.clear();
2828 if (variableBuilder_ ==
null) {
2829 ensureVariableIsMutable();
2830 variable_.remove(index);
2833 variableBuilder_.remove(index);
2846 return internalGetVariableFieldBuilder().getBuilder(index);
2857 if (variableBuilder_ ==
null) {
2858 return variable_.get(index); }
else {
2859 return variableBuilder_.getMessageOrBuilder(index);
2869 public java.util.List<? extends com.google.ortools.linearsolver.MPVariableProtoOrBuilder>
2871 if (variableBuilder_ !=
null) {
2872 return variableBuilder_.getMessageOrBuilderList();
2874 return java.util.Collections.unmodifiableList(variable_);
2885 return internalGetVariableFieldBuilder().addBuilder(
2886 com.google.ortools.linearsolver.MPVariableProto.getDefaultInstance());
2897 return internalGetVariableFieldBuilder().addBuilder(
2898 index, com.google.ortools.linearsolver.MPVariableProto.getDefaultInstance());
2907 public java.util.List<com.google.ortools.linearsolver.MPVariableProto.Builder>
2909 return internalGetVariableFieldBuilder().getBuilderList();
2911 private com.google.protobuf.RepeatedFieldBuilder<
2912 com.google.ortools.linearsolver.MPVariableProto, com.google.ortools.linearsolver.MPVariableProto.Builder, com.google.ortools.linearsolver.MPVariableProtoOrBuilder>
2913 internalGetVariableFieldBuilder() {
2914 if (variableBuilder_ ==
null) {
2915 variableBuilder_ =
new com.google.protobuf.RepeatedFieldBuilder<
2916 com.google.ortools.linearsolver.MPVariableProto, com.google.ortools.linearsolver.MPVariableProto.Builder, com.google.ortools.linearsolver.MPVariableProtoOrBuilder>(
2918 ((bitField0_ & 0x00000001) != 0),
2919 getParentForChildren(),
2923 return variableBuilder_;
2926 private java.util.List<com.google.ortools.linearsolver.MPConstraintProto> constraint_ =
2927 java.util.Collections.emptyList();
2928 private void ensureConstraintIsMutable() {
2929 if (!((bitField0_ & 0x00000002) != 0)) {
2930 constraint_ =
new java.util.ArrayList<com.google.ortools.linearsolver.MPConstraintProto>(constraint_);
2931 bitField0_ |= 0x00000002;
2935 private com.google.protobuf.RepeatedFieldBuilder<
2936 com.google.ortools.linearsolver.MPConstraintProto, com.google.ortools.linearsolver.MPConstraintProto.Builder, com.google.ortools.linearsolver.MPConstraintProtoOrBuilder> constraintBuilder_;
2946 if (constraintBuilder_ ==
null) {
2947 return java.util.Collections.unmodifiableList(constraint_);
2949 return constraintBuilder_.getMessageList();
2960 if (constraintBuilder_ ==
null) {
2961 return constraint_.size();
2963 return constraintBuilder_.getCount();
2974 if (constraintBuilder_ ==
null) {
2975 return constraint_.get(index);
2977 return constraintBuilder_.getMessage(index);
2988 int index, com.google.ortools.linearsolver.MPConstraintProto value) {
2989 if (constraintBuilder_ ==
null) {
2990 if (value ==
null) {
2991 throw new NullPointerException();
2993 ensureConstraintIsMutable();
2994 constraint_.set(index, value);
2997 constraintBuilder_.setMessage(index, value);
3009 int index, com.google.ortools.linearsolver.MPConstraintProto.Builder builderForValue) {
3010 if (constraintBuilder_ ==
null) {
3011 ensureConstraintIsMutable();
3012 constraint_.set(index, builderForValue.build());
3015 constraintBuilder_.setMessage(index, builderForValue.build());
3026 public Builder
addConstraint(com.google.ortools.linearsolver.MPConstraintProto value) {
3027 if (constraintBuilder_ ==
null) {
3028 if (value ==
null) {
3029 throw new NullPointerException();
3031 ensureConstraintIsMutable();
3032 constraint_.add(value);
3035 constraintBuilder_.addMessage(value);
3047 int index, com.google.ortools.linearsolver.MPConstraintProto value) {
3048 if (constraintBuilder_ ==
null) {
3049 if (value ==
null) {
3050 throw new NullPointerException();
3052 ensureConstraintIsMutable();
3053 constraint_.add(index, value);
3056 constraintBuilder_.addMessage(index, value);
3068 com.google.ortools.linearsolver.MPConstraintProto.Builder builderForValue) {
3069 if (constraintBuilder_ ==
null) {
3070 ensureConstraintIsMutable();
3071 constraint_.add(builderForValue.build());
3074 constraintBuilder_.addMessage(builderForValue.build());
3086 int index, com.google.ortools.linearsolver.MPConstraintProto.Builder builderForValue) {
3087 if (constraintBuilder_ ==
null) {
3088 ensureConstraintIsMutable();
3089 constraint_.add(index, builderForValue.build());
3092 constraintBuilder_.addMessage(index, builderForValue.build());
3104 java.lang.Iterable<? extends com.google.ortools.linearsolver.MPConstraintProto> values) {
3105 if (constraintBuilder_ ==
null) {
3106 ensureConstraintIsMutable();
3107 com.google.protobuf.AbstractMessageLite.Builder.addAll(
3108 values, constraint_);
3111 constraintBuilder_.addAllMessages(values);
3123 if (constraintBuilder_ ==
null) {
3124 constraint_ = java.util.Collections.emptyList();
3125 bitField0_ = (bitField0_ & ~0x00000002);
3128 constraintBuilder_.clear();
3140 if (constraintBuilder_ ==
null) {
3141 ensureConstraintIsMutable();
3142 constraint_.remove(index);
3145 constraintBuilder_.remove(index);
3158 return internalGetConstraintFieldBuilder().getBuilder(index);
3169 if (constraintBuilder_ ==
null) {
3170 return constraint_.get(index); }
else {
3171 return constraintBuilder_.getMessageOrBuilder(index);
3181 public java.util.List<? extends com.google.ortools.linearsolver.MPConstraintProtoOrBuilder>
3183 if (constraintBuilder_ !=
null) {
3184 return constraintBuilder_.getMessageOrBuilderList();
3186 return java.util.Collections.unmodifiableList(constraint_);
3197 return internalGetConstraintFieldBuilder().addBuilder(
3198 com.google.ortools.linearsolver.MPConstraintProto.getDefaultInstance());
3209 return internalGetConstraintFieldBuilder().addBuilder(
3210 index, com.google.ortools.linearsolver.MPConstraintProto.getDefaultInstance());
3219 public java.util.List<com.google.ortools.linearsolver.MPConstraintProto.Builder>
3221 return internalGetConstraintFieldBuilder().getBuilderList();
3223 private com.google.protobuf.RepeatedFieldBuilder<
3224 com.google.ortools.linearsolver.MPConstraintProto, com.google.ortools.linearsolver.MPConstraintProto.Builder, com.google.ortools.linearsolver.MPConstraintProtoOrBuilder>
3225 internalGetConstraintFieldBuilder() {
3226 if (constraintBuilder_ ==
null) {
3227 constraintBuilder_ =
new com.google.protobuf.RepeatedFieldBuilder<
3228 com.google.ortools.linearsolver.MPConstraintProto, com.google.ortools.linearsolver.MPConstraintProto.Builder, com.google.ortools.linearsolver.MPConstraintProtoOrBuilder>(
3230 ((bitField0_ & 0x00000002) != 0),
3231 getParentForChildren(),
3235 return constraintBuilder_;
3238 private java.util.List<com.google.ortools.linearsolver.MPGeneralConstraintProto> generalConstraint_ =
3239 java.util.Collections.emptyList();
3240 private void ensureGeneralConstraintIsMutable() {
3241 if (!((bitField0_ & 0x00000004) != 0)) {
3242 generalConstraint_ =
new java.util.ArrayList<com.google.ortools.linearsolver.MPGeneralConstraintProto>(generalConstraint_);
3243 bitField0_ |= 0x00000004;
3247 private com.google.protobuf.RepeatedFieldBuilder<
3248 com.google.ortools.linearsolver.MPGeneralConstraintProto, com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder, com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder> generalConstraintBuilder_;
3259 if (generalConstraintBuilder_ ==
null) {
3260 return java.util.Collections.unmodifiableList(generalConstraint_);
3262 return generalConstraintBuilder_.getMessageList();
3274 if (generalConstraintBuilder_ ==
null) {
3275 return generalConstraint_.size();
3277 return generalConstraintBuilder_.getCount();
3289 if (generalConstraintBuilder_ ==
null) {
3290 return generalConstraint_.get(index);
3292 return generalConstraintBuilder_.getMessage(index);
3304 int index, com.google.ortools.linearsolver.MPGeneralConstraintProto value) {
3305 if (generalConstraintBuilder_ ==
null) {
3306 if (value ==
null) {
3307 throw new NullPointerException();
3309 ensureGeneralConstraintIsMutable();
3310 generalConstraint_.set(index, value);
3313 generalConstraintBuilder_.setMessage(index, value);
3326 int index, com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder builderForValue) {
3327 if (generalConstraintBuilder_ ==
null) {
3328 ensureGeneralConstraintIsMutable();
3329 generalConstraint_.set(index, builderForValue.build());
3332 generalConstraintBuilder_.setMessage(index, builderForValue.build());
3345 if (generalConstraintBuilder_ ==
null) {
3346 if (value ==
null) {
3347 throw new NullPointerException();
3349 ensureGeneralConstraintIsMutable();
3350 generalConstraint_.add(value);
3353 generalConstraintBuilder_.addMessage(value);
3366 int index, com.google.ortools.linearsolver.MPGeneralConstraintProto value) {
3367 if (generalConstraintBuilder_ ==
null) {
3368 if (value ==
null) {
3369 throw new NullPointerException();
3371 ensureGeneralConstraintIsMutable();
3372 generalConstraint_.add(index, value);
3375 generalConstraintBuilder_.addMessage(index, value);
3388 com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder builderForValue) {
3389 if (generalConstraintBuilder_ ==
null) {
3390 ensureGeneralConstraintIsMutable();
3391 generalConstraint_.add(builderForValue.build());
3394 generalConstraintBuilder_.addMessage(builderForValue.build());
3407 int index, com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder builderForValue) {
3408 if (generalConstraintBuilder_ ==
null) {
3409 ensureGeneralConstraintIsMutable();
3410 generalConstraint_.add(index, builderForValue.build());
3413 generalConstraintBuilder_.addMessage(index, builderForValue.build());
3426 java.lang.Iterable<? extends com.google.ortools.linearsolver.MPGeneralConstraintProto> values) {
3427 if (generalConstraintBuilder_ ==
null) {
3428 ensureGeneralConstraintIsMutable();
3429 com.google.protobuf.AbstractMessageLite.Builder.addAll(
3430 values, generalConstraint_);
3433 generalConstraintBuilder_.addAllMessages(values);
3446 if (generalConstraintBuilder_ ==
null) {
3447 generalConstraint_ = java.util.Collections.emptyList();
3448 bitField0_ = (bitField0_ & ~0x00000004);
3451 generalConstraintBuilder_.clear();
3464 if (generalConstraintBuilder_ ==
null) {
3465 ensureGeneralConstraintIsMutable();
3466 generalConstraint_.remove(index);
3469 generalConstraintBuilder_.remove(index);
3483 return internalGetGeneralConstraintFieldBuilder().getBuilder(index);
3495 if (generalConstraintBuilder_ ==
null) {
3496 return generalConstraint_.get(index); }
else {
3497 return generalConstraintBuilder_.getMessageOrBuilder(index);
3508 public java.util.List<? extends com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder>
3510 if (generalConstraintBuilder_ !=
null) {
3511 return generalConstraintBuilder_.getMessageOrBuilderList();
3513 return java.util.Collections.unmodifiableList(generalConstraint_);
3525 return internalGetGeneralConstraintFieldBuilder().addBuilder(
3526 com.google.ortools.linearsolver.MPGeneralConstraintProto.getDefaultInstance());
3538 return internalGetGeneralConstraintFieldBuilder().addBuilder(
3539 index, com.google.ortools.linearsolver.MPGeneralConstraintProto.getDefaultInstance());
3549 public java.util.List<com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder>
3551 return internalGetGeneralConstraintFieldBuilder().getBuilderList();
3553 private com.google.protobuf.RepeatedFieldBuilder<
3554 com.google.ortools.linearsolver.MPGeneralConstraintProto, com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder, com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder>
3555 internalGetGeneralConstraintFieldBuilder() {
3556 if (generalConstraintBuilder_ ==
null) {
3557 generalConstraintBuilder_ =
new com.google.protobuf.RepeatedFieldBuilder<
3558 com.google.ortools.linearsolver.MPGeneralConstraintProto, com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder, com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder>(
3560 ((bitField0_ & 0x00000004) != 0),
3561 getParentForChildren(),
3563 generalConstraint_ =
null;
3565 return generalConstraintBuilder_;
3568 private boolean maximize_ ;
3579 return ((bitField0_ & 0x00000008) != 0);
3605 bitField0_ |= 0x00000008;
3618 bitField0_ = (bitField0_ & ~0x00000008);
3624 private double objectiveOffset_ ;
3635 return ((bitField0_ & 0x00000010) != 0);
3647 return objectiveOffset_;
3660 objectiveOffset_ = value;
3661 bitField0_ |= 0x00000010;
3674 bitField0_ = (bitField0_ & ~0x00000010);
3675 objectiveOffset_ = 0D;
3681 private com.google.protobuf.SingleFieldBuilder<
3682 com.google.ortools.linearsolver.MPQuadraticObjective, com.google.ortools.linearsolver.MPQuadraticObjective.Builder, com.google.ortools.linearsolver.MPQuadraticObjectiveOrBuilder> quadraticObjectiveBuilder_;
3693 return ((bitField0_ & 0x00000020) != 0);
3705 if (quadraticObjectiveBuilder_ ==
null) {
3706 return quadraticObjective_ ==
null ? com.google.ortools.linearsolver.MPQuadraticObjective.getDefaultInstance() : quadraticObjective_;
3708 return quadraticObjectiveBuilder_.getMessage();
3720 if (quadraticObjectiveBuilder_ ==
null) {
3721 if (value ==
null) {
3722 throw new NullPointerException();
3724 quadraticObjective_ = value;
3726 quadraticObjectiveBuilder_.setMessage(value);
3728 bitField0_ |= 0x00000020;
3741 com.google.ortools.linearsolver.MPQuadraticObjective.Builder builderForValue) {
3742 if (quadraticObjectiveBuilder_ ==
null) {
3743 quadraticObjective_ = builderForValue.build();
3745 quadraticObjectiveBuilder_.setMessage(builderForValue.build());
3747 bitField0_ |= 0x00000020;
3760 if (quadraticObjectiveBuilder_ ==
null) {
3761 if (((bitField0_ & 0x00000020) != 0) &&
3762 quadraticObjective_ !=
null &&
3763 quadraticObjective_ != com.google.ortools.linearsolver.MPQuadraticObjective.getDefaultInstance()) {
3766 quadraticObjective_ = value;
3769 quadraticObjectiveBuilder_.mergeFrom(value);
3771 if (quadraticObjective_ !=
null) {
3772 bitField0_ |= 0x00000020;
3786 bitField0_ = (bitField0_ & ~0x00000020);
3787 quadraticObjective_ =
null;
3788 if (quadraticObjectiveBuilder_ !=
null) {
3789 quadraticObjectiveBuilder_.dispose();
3790 quadraticObjectiveBuilder_ =
null;
3804 bitField0_ |= 0x00000020;
3806 return internalGetQuadraticObjectiveFieldBuilder().getBuilder();
3817 if (quadraticObjectiveBuilder_ !=
null) {
3818 return quadraticObjectiveBuilder_.getMessageOrBuilder();
3820 return quadraticObjective_ ==
null ?
3821 com.google.ortools.linearsolver.MPQuadraticObjective.getDefaultInstance() : quadraticObjective_;
3832 private com.google.protobuf.SingleFieldBuilder<
3833 com.google.ortools.linearsolver.MPQuadraticObjective, com.google.ortools.linearsolver.MPQuadraticObjective.Builder, com.google.ortools.linearsolver.MPQuadraticObjectiveOrBuilder>
3834 internalGetQuadraticObjectiveFieldBuilder() {
3835 if (quadraticObjectiveBuilder_ ==
null) {
3836 quadraticObjectiveBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
3837 com.google.ortools.linearsolver.MPQuadraticObjective, com.google.ortools.linearsolver.MPQuadraticObjective.Builder, com.google.ortools.linearsolver.MPQuadraticObjectiveOrBuilder>(
3839 getParentForChildren(),
3841 quadraticObjective_ =
null;
3843 return quadraticObjectiveBuilder_;
3846 private java.lang.Object name_ =
"";
3856 return ((bitField0_ & 0x00000040) != 0);
3867 java.lang.Object ref = name_;
3868 if (!(ref instanceof java.lang.String)) {
3869 com.google.protobuf.ByteString bs =
3870 (com.google.protobuf.ByteString) ref;
3871 java.lang.String s = bs.toStringUtf8();
3872 if (bs.isValidUtf8()) {
3877 return (java.lang.String) ref;
3888 public com.google.protobuf.ByteString
3890 java.lang.Object ref = name_;
3891 if (ref instanceof String) {
3892 com.google.protobuf.ByteString b =
3893 com.google.protobuf.ByteString.copyFromUtf8(
3894 (java.lang.String) ref);
3898 return (com.google.protobuf.ByteString) ref;
3911 java.lang.String value) {
3912 if (value ==
null) {
throw new NullPointerException(); }
3914 bitField0_ |= 0x00000040;
3928 bitField0_ = (bitField0_ & ~0x00000040);
3942 com.google.protobuf.ByteString value) {
3943 if (value ==
null) {
throw new NullPointerException(); }
3945 bitField0_ |= 0x00000040;
3951 private com.google.protobuf.SingleFieldBuilder<
3952 com.google.ortools.linearsolver.PartialVariableAssignment, com.google.ortools.linearsolver.PartialVariableAssignment.Builder, com.google.ortools.linearsolver.PartialVariableAssignmentOrBuilder> solutionHintBuilder_;
3972 return ((bitField0_ & 0x00000080) != 0);
3993 if (solutionHintBuilder_ ==
null) {
3994 return solutionHint_ ==
null ? com.google.ortools.linearsolver.PartialVariableAssignment.getDefaultInstance() : solutionHint_;
3996 return solutionHintBuilder_.getMessage();
4016 public Builder
setSolutionHint(com.google.ortools.linearsolver.PartialVariableAssignment value) {
4017 if (solutionHintBuilder_ ==
null) {
4018 if (value ==
null) {
4019 throw new NullPointerException();
4021 solutionHint_ = value;
4023 solutionHintBuilder_.setMessage(value);
4025 bitField0_ |= 0x00000080;
4047 com.google.ortools.linearsolver.PartialVariableAssignment.Builder builderForValue) {
4048 if (solutionHintBuilder_ ==
null) {
4049 solutionHint_ = builderForValue.build();
4051 solutionHintBuilder_.setMessage(builderForValue.build());
4053 bitField0_ |= 0x00000080;
4075 if (solutionHintBuilder_ ==
null) {
4076 if (((bitField0_ & 0x00000080) != 0) &&
4077 solutionHint_ !=
null &&
4078 solutionHint_ != com.google.ortools.linearsolver.PartialVariableAssignment.getDefaultInstance()) {
4081 solutionHint_ = value;
4084 solutionHintBuilder_.mergeFrom(value);
4086 if (solutionHint_ !=
null) {
4087 bitField0_ |= 0x00000080;
4110 bitField0_ = (bitField0_ & ~0x00000080);
4111 solutionHint_ =
null;
4112 if (solutionHintBuilder_ !=
null) {
4113 solutionHintBuilder_.dispose();
4114 solutionHintBuilder_ =
null;
4137 bitField0_ |= 0x00000080;
4139 return internalGetSolutionHintFieldBuilder().getBuilder();
4159 if (solutionHintBuilder_ !=
null) {
4160 return solutionHintBuilder_.getMessageOrBuilder();
4162 return solutionHint_ ==
null ?
4163 com.google.ortools.linearsolver.PartialVariableAssignment.getDefaultInstance() : solutionHint_;
4183 private com.google.protobuf.SingleFieldBuilder<
4184 com.google.ortools.linearsolver.PartialVariableAssignment, com.google.ortools.linearsolver.PartialVariableAssignment.Builder, com.google.ortools.linearsolver.PartialVariableAssignmentOrBuilder>
4185 internalGetSolutionHintFieldBuilder() {
4186 if (solutionHintBuilder_ ==
null) {
4187 solutionHintBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
4188 com.google.ortools.linearsolver.PartialVariableAssignment, com.google.ortools.linearsolver.PartialVariableAssignment.Builder, com.google.ortools.linearsolver.PartialVariableAssignmentOrBuilder>(
4190 getParentForChildren(),
4192 solutionHint_ =
null;
4194 return solutionHintBuilder_;
4197 private java.util.List<com.google.ortools.linearsolver.MPModelProto.Annotation> annotation_ =
4198 java.util.Collections.emptyList();
4199 private void ensureAnnotationIsMutable() {
4200 if (!((bitField0_ & 0x00000100) != 0)) {
4201 annotation_ =
new java.util.ArrayList<com.google.ortools.linearsolver.MPModelProto.Annotation>(annotation_);
4202 bitField0_ |= 0x00000100;
4206 private com.google.protobuf.RepeatedFieldBuilder<
4207 com.google.ortools.linearsolver.MPModelProto.Annotation, com.google.ortools.linearsolver.MPModelProto.Annotation.Builder, com.google.ortools.linearsolver.MPModelProto.AnnotationOrBuilder> annotationBuilder_;
4212 public java.util.List<com.google.ortools.linearsolver.MPModelProto.Annotation>
getAnnotationList() {
4213 if (annotationBuilder_ ==
null) {
4214 return java.util.Collections.unmodifiableList(annotation_);
4216 return annotationBuilder_.getMessageList();
4223 if (annotationBuilder_ ==
null) {
4224 return annotation_.size();
4226 return annotationBuilder_.getCount();
4233 if (annotationBuilder_ ==
null) {
4234 return annotation_.get(index);
4236 return annotationBuilder_.getMessage(index);
4243 int index, com.google.ortools.linearsolver.MPModelProto.Annotation value) {
4244 if (annotationBuilder_ ==
null) {
4245 if (value ==
null) {
4246 throw new NullPointerException();
4248 ensureAnnotationIsMutable();
4249 annotation_.set(index, value);
4252 annotationBuilder_.setMessage(index, value);
4260 int index, com.google.ortools.linearsolver.MPModelProto.Annotation.Builder builderForValue) {
4261 if (annotationBuilder_ ==
null) {
4262 ensureAnnotationIsMutable();
4263 annotation_.set(index, builderForValue.build());
4266 annotationBuilder_.setMessage(index, builderForValue.build());
4273 public Builder
addAnnotation(com.google.ortools.linearsolver.MPModelProto.Annotation value) {
4274 if (annotationBuilder_ ==
null) {
4275 if (value ==
null) {
4276 throw new NullPointerException();
4278 ensureAnnotationIsMutable();
4279 annotation_.add(value);
4282 annotationBuilder_.addMessage(value);
4290 int index, com.google.ortools.linearsolver.MPModelProto.Annotation value) {
4291 if (annotationBuilder_ ==
null) {
4292 if (value ==
null) {
4293 throw new NullPointerException();
4295 ensureAnnotationIsMutable();
4296 annotation_.add(index, value);
4299 annotationBuilder_.addMessage(index, value);
4307 com.google.ortools.linearsolver.MPModelProto.Annotation.Builder builderForValue) {
4308 if (annotationBuilder_ ==
null) {
4309 ensureAnnotationIsMutable();
4310 annotation_.add(builderForValue.build());
4313 annotationBuilder_.addMessage(builderForValue.build());
4321 int index, com.google.ortools.linearsolver.MPModelProto.Annotation.Builder builderForValue) {
4322 if (annotationBuilder_ ==
null) {
4323 ensureAnnotationIsMutable();
4324 annotation_.add(index, builderForValue.build());
4327 annotationBuilder_.addMessage(index, builderForValue.build());
4335 java.lang.Iterable<? extends com.google.ortools.linearsolver.MPModelProto.Annotation> values) {
4336 if (annotationBuilder_ ==
null) {
4337 ensureAnnotationIsMutable();
4338 com.google.protobuf.AbstractMessageLite.Builder.addAll(
4339 values, annotation_);
4342 annotationBuilder_.addAllMessages(values);
4350 if (annotationBuilder_ ==
null) {
4351 annotation_ = java.util.Collections.emptyList();
4352 bitField0_ = (bitField0_ & ~0x00000100);
4355 annotationBuilder_.clear();
4363 if (annotationBuilder_ ==
null) {
4364 ensureAnnotationIsMutable();
4365 annotation_.remove(index);
4368 annotationBuilder_.remove(index);
4377 return internalGetAnnotationFieldBuilder().getBuilder(index);
4384 if (annotationBuilder_ ==
null) {
4385 return annotation_.get(index); }
else {
4386 return annotationBuilder_.getMessageOrBuilder(index);
4392 public java.util.List<? extends com.google.ortools.linearsolver.MPModelProto.AnnotationOrBuilder>
4394 if (annotationBuilder_ !=
null) {
4395 return annotationBuilder_.getMessageOrBuilderList();
4397 return java.util.Collections.unmodifiableList(annotation_);
4404 return internalGetAnnotationFieldBuilder().addBuilder(
4405 com.google.ortools.linearsolver.MPModelProto.Annotation.getDefaultInstance());
4412 return internalGetAnnotationFieldBuilder().addBuilder(
4413 index, com.google.ortools.linearsolver.MPModelProto.Annotation.getDefaultInstance());
4418 public java.util.List<com.google.ortools.linearsolver.MPModelProto.Annotation.Builder>
4420 return internalGetAnnotationFieldBuilder().getBuilderList();
4422 private com.google.protobuf.RepeatedFieldBuilder<
4423 com.google.ortools.linearsolver.MPModelProto.Annotation, com.google.ortools.linearsolver.MPModelProto.Annotation.Builder, com.google.ortools.linearsolver.MPModelProto.AnnotationOrBuilder>
4424 internalGetAnnotationFieldBuilder() {
4425 if (annotationBuilder_ ==
null) {
4426 annotationBuilder_ =
new com.google.protobuf.RepeatedFieldBuilder<
4427 com.google.ortools.linearsolver.MPModelProto.Annotation, com.google.ortools.linearsolver.MPModelProto.Annotation.Builder, com.google.ortools.linearsolver.MPModelProto.AnnotationOrBuilder>(
4429 ((bitField0_ & 0x00000100) != 0),
4430 getParentForChildren(),
4434 return annotationBuilder_;
4443 DEFAULT_INSTANCE =
new com.google.ortools.linearsolver.MPModelProto();
4447 return DEFAULT_INSTANCE;
4450 private static final com.google.protobuf.Parser<
MPModelProto>
4451 PARSER =
new com.google.protobuf.AbstractParser<
MPModelProto>() {
4454 com.google.protobuf.CodedInputStream input,
4455 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4456 throws com.google.protobuf.InvalidProtocolBufferException {
4459 builder.mergeFrom(input, extensionRegistry);
4460 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
4461 throw e.setUnfinishedMessage(builder.buildPartial());
4462 }
catch (com.google.protobuf.UninitializedMessageException e) {
4463 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
4464 }
catch (java.io.IOException e) {
4465 throw new com.google.protobuf.InvalidProtocolBufferException(e)
4466 .setUnfinishedMessage(builder.buildPartial());
4468 return builder.buildPartial();
4472 public static com.google.protobuf.Parser<MPModelProto>
parser() {
4483 return DEFAULT_INSTANCE;