5package com.google.ortools.linearsolver;
15 com.google.protobuf.GeneratedMessageV3 implements
18private static final long serialVersionUID = 0L;
20 private MPModelProto(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
24 variable_ = java.util.Collections.emptyList();
25 constraint_ = java.util.Collections.emptyList();
26 generalConstraint_ = java.util.Collections.emptyList();
28 annotation_ = java.util.Collections.emptyList();
32 @SuppressWarnings({
"unused"})
34 UnusedPrivateParameter unused) {
38 public static final com.google.protobuf.Descriptors.Descriptor
40 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelProto_descriptor;
44 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
46 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelProto_fieldAccessorTable
47 .ensureFieldAccessorsInitialized(
48 com.google.ortools.linearsolver.MPModelProto.class, com.google.ortools.linearsolver.MPModelProto.Builder.class);
53 com.google.protobuf.MessageOrBuilder {
113 com.google.protobuf.ByteString
145 com.google.protobuf.ByteString
162 com.google.protobuf.ByteString
174 com.google.protobuf.GeneratedMessageV3 implements
177 private static final long serialVersionUID = 0L;
179 private Annotation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
190 @SuppressWarnings({
"unused"})
192 UnusedPrivateParameter unused) {
196 public static final com.google.protobuf.Descriptors.Descriptor
198 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelProto_Annotation_descriptor;
202 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
204 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelProto_Annotation_fieldAccessorTable
205 .ensureFieldAccessorsInitialized(
206 com.google.ortools.linearsolver.MPModelProto.Annotation.class, com.google.ortools.linearsolver.MPModelProto.Annotation.Builder.class);
218 implements com.google.protobuf.ProtocolMessageEnum {
236 public static final int VARIABLE_DEFAULT_VALUE = 0;
240 public static final int CONSTRAINT_VALUE = 1;
244 public static final int GENERAL_CONSTRAINT_VALUE = 2;
256 @java.lang.Deprecated
258 return forNumber(value);
267 case 0:
return VARIABLE_DEFAULT;
268 case 1:
return CONSTRAINT;
269 case 2:
return GENERAL_CONSTRAINT;
270 default:
return null;
274 public static com.google.protobuf.Internal.EnumLiteMap<
TargetType>
276 return internalValueMap;
278 private static final com.google.protobuf.Internal.EnumLiteMap<
280 new com.google.protobuf.Internal.EnumLiteMap<
TargetType>() {
281 public TargetType findValueByNumber(
int number) {
286 public final com.google.protobuf.Descriptors.EnumValueDescriptor
290 public final com.google.protobuf.Descriptors.EnumDescriptor
294 public static final com.google.protobuf.Descriptors.EnumDescriptor
296 return com.google.ortools.linearsolver.MPModelProto.Annotation.getDescriptor().getEnumTypes().get(0);
299 private static final TargetType[] VALUES = values();
302 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
304 throw new java.lang.IllegalArgumentException(
305 "EnumValueDescriptor is not for this type.");
307 return VALUES[desc.getIndex()];
310 private final int value;
319 private int bitField0_;
321 private int targetType_ = 0;
327 return ((bitField0_ & 0x00000001) != 0);
335 return result ==
null ? com.google.ortools.linearsolver.MPModelProto.Annotation.TargetType.VARIABLE_DEFAULT : result;
339 private int targetIndex_ = 0;
351 return ((bitField0_ & 0x00000002) != 0);
368 @SuppressWarnings(
"serial")
369 private volatile java.lang.Object targetName_ = "";
380 return ((bitField0_ & 0x00000004) != 0);
392 java.lang.Object ref = targetName_;
393 if (ref instanceof java.lang.String) {
394 return (java.lang.String) ref;
396 com.google.protobuf.ByteString bs =
397 (com.google.protobuf.ByteString) ref;
398 java.lang.String s = bs.toStringUtf8();
399 if (bs.isValidUtf8()) {
414 public com.google.protobuf.ByteString
416 java.lang.Object ref = targetName_;
417 if (ref instanceof java.lang.String) {
418 com.google.protobuf.ByteString b =
419 com.google.protobuf.ByteString.copyFromUtf8(
420 (java.lang.String) ref);
424 return (com.google.protobuf.ByteString) ref;
429 @SuppressWarnings(
"serial")
430 private volatile java.lang.Object payloadKey_ = "";
442 return ((bitField0_ & 0x00000008) != 0);
455 java.lang.Object ref = payloadKey_;
456 if (ref instanceof java.lang.String) {
457 return (java.lang.String) ref;
459 com.google.protobuf.ByteString bs =
460 (com.google.protobuf.ByteString) ref;
461 java.lang.String s = bs.toStringUtf8();
462 if (bs.isValidUtf8()) {
478 public com.google.protobuf.ByteString
480 java.lang.Object ref = payloadKey_;
481 if (ref instanceof java.lang.String) {
482 com.google.protobuf.ByteString b =
483 com.google.protobuf.ByteString.copyFromUtf8(
484 (java.lang.String) ref);
488 return (com.google.protobuf.ByteString) ref;
493 @SuppressWarnings(
"serial")
494 private volatile java.lang.Object payloadValue_ = "";
501 return ((bitField0_ & 0x00000010) != 0);
509 java.lang.Object ref = payloadValue_;
510 if (ref instanceof java.lang.String) {
511 return (java.lang.String) ref;
513 com.google.protobuf.ByteString bs =
514 (com.google.protobuf.ByteString) ref;
515 java.lang.String s = bs.toStringUtf8();
516 if (bs.isValidUtf8()) {
527 public com.google.protobuf.ByteString
529 java.lang.Object ref = payloadValue_;
530 if (ref instanceof java.lang.String) {
531 com.google.protobuf.ByteString b =
532 com.google.protobuf.ByteString.copyFromUtf8(
533 (java.lang.String) ref);
537 return (com.google.protobuf.ByteString) ref;
541 private byte memoizedIsInitialized = -1;
548 memoizedIsInitialized = 1;
553 public void writeTo(com.google.protobuf.CodedOutputStream output)
554 throws java.io.IOException {
555 if (((bitField0_ & 0x00000001) != 0)) {
556 output.writeEnum(1, targetType_);
558 if (((bitField0_ & 0x00000002) != 0)) {
559 output.writeInt32(2, targetIndex_);
561 if (((bitField0_ & 0x00000004) != 0)) {
562 com.google.protobuf.GeneratedMessageV3.writeString(output, 3, targetName_);
564 if (((bitField0_ & 0x00000008) != 0)) {
565 com.google.protobuf.GeneratedMessageV3.writeString(output, 4, payloadKey_);
567 if (((bitField0_ & 0x00000010) != 0)) {
568 com.google.protobuf.GeneratedMessageV3.writeString(output, 5, payloadValue_);
570 getUnknownFields().writeTo(output);
575 int size = memoizedSize;
576 if (size != -1)
return size;
579 if (((bitField0_ & 0x00000001) != 0)) {
580 size += com.google.protobuf.CodedOutputStream
581 .computeEnumSize(1, targetType_);
583 if (((bitField0_ & 0x00000002) != 0)) {
584 size += com.google.protobuf.CodedOutputStream
585 .computeInt32Size(2, targetIndex_);
587 if (((bitField0_ & 0x00000004) != 0)) {
588 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, targetName_);
590 if (((bitField0_ & 0x00000008) != 0)) {
591 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, payloadKey_);
593 if (((bitField0_ & 0x00000010) != 0)) {
594 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, payloadValue_);
596 size += getUnknownFields().getSerializedSize();
602 public boolean equals(
final java.lang.Object obj) {
606 if (!(obj instanceof com.google.ortools.linearsolver.MPModelProto.Annotation)) {
607 return super.equals(obj);
613 if (targetType_ != other.targetType_)
return false;
635 if (!getUnknownFields().equals(other.getUnknownFields()))
return false;
641 if (memoizedHashCode != 0) {
642 return memoizedHashCode;
648 hash = (53 * hash) + targetType_;
666 hash = (29 * hash) + getUnknownFields().hashCode();
667 memoizedHashCode = hash;
672 java.nio.ByteBuffer data)
673 throws com.google.protobuf.InvalidProtocolBufferException {
677 java.nio.ByteBuffer data,
678 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
679 throws com.google.protobuf.InvalidProtocolBufferException {
683 com.google.protobuf.ByteString data)
684 throws com.google.protobuf.InvalidProtocolBufferException {
688 com.google.protobuf.ByteString data,
689 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
690 throws com.google.protobuf.InvalidProtocolBufferException {
694 throws com.google.protobuf.InvalidProtocolBufferException {
699 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
700 throws com.google.protobuf.InvalidProtocolBufferException {
704 throws java.io.IOException {
705 return com.google.protobuf.GeneratedMessageV3
706 .parseWithIOException(
PARSER, input);
709 java.io.InputStream input,
710 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
711 throws java.io.IOException {
712 return com.google.protobuf.GeneratedMessageV3
713 .parseWithIOException(
PARSER, input, extensionRegistry);
717 throws java.io.IOException {
718 return com.google.protobuf.GeneratedMessageV3
719 .parseDelimitedWithIOException(
PARSER, input);
723 java.io.InputStream input,
724 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
725 throws java.io.IOException {
726 return com.google.protobuf.GeneratedMessageV3
727 .parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
730 com.google.protobuf.CodedInputStream input)
731 throws java.io.IOException {
732 return com.google.protobuf.GeneratedMessageV3
733 .parseWithIOException(
PARSER, input);
736 com.google.protobuf.CodedInputStream input,
737 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
738 throws java.io.IOException {
739 return com.google.protobuf.GeneratedMessageV3
740 .parseWithIOException(
PARSER, input, extensionRegistry);
748 public static Builder newBuilder(com.google.ortools.linearsolver.MPModelProto.Annotation prototype) {
753 return this == DEFAULT_INSTANCE
759 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
772 com.google.protobuf.GeneratedMessageV3.
Builder<Builder> implements
775 public static final com.google.protobuf.Descriptors.Descriptor
777 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelProto_Annotation_descriptor;
781 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
783 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelProto_Annotation_fieldAccessorTable
784 .ensureFieldAccessorsInitialized(
785 com.google.ortools.linearsolver.MPModelProto.Annotation.class, com.google.ortools.linearsolver.MPModelProto.Annotation.Builder.class);
794 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
811 public com.google.protobuf.Descriptors.Descriptor
813 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelProto_Annotation_descriptor;
818 return com.google.ortools.linearsolver.MPModelProto.Annotation.getDefaultInstance();
825 throw newUninitializedMessageException(result);
833 if (bitField0_ != 0) { buildPartial0(result); }
838 private void buildPartial0(com.google.ortools.linearsolver.MPModelProto.Annotation result) {
839 int from_bitField0_ = bitField0_;
840 int to_bitField0_ = 0;
841 if (((from_bitField0_ & 0x00000001) != 0)) {
842 result.targetType_ = targetType_;
843 to_bitField0_ |= 0x00000001;
845 if (((from_bitField0_ & 0x00000002) != 0)) {
846 result.targetIndex_ = targetIndex_;
847 to_bitField0_ |= 0x00000002;
849 if (((from_bitField0_ & 0x00000004) != 0)) {
850 result.targetName_ = targetName_;
851 to_bitField0_ |= 0x00000004;
853 if (((from_bitField0_ & 0x00000008) != 0)) {
854 result.payloadKey_ = payloadKey_;
855 to_bitField0_ |= 0x00000008;
857 if (((from_bitField0_ & 0x00000010) != 0)) {
858 result.payloadValue_ = payloadValue_;
859 to_bitField0_ |= 0x00000010;
861 result.bitField0_ |= to_bitField0_;
866 return super.
clone();
870 com.google.protobuf.Descriptors.FieldDescriptor field,
871 java.lang.Object value) {
872 return super.
setField(field, value);
876 com.google.protobuf.Descriptors.FieldDescriptor field) {
881 com.google.protobuf.Descriptors.OneofDescriptor oneof) {
886 com.google.protobuf.Descriptors.FieldDescriptor field,
887 int index, java.lang.Object value) {
892 com.google.protobuf.Descriptors.FieldDescriptor field,
893 java.lang.Object value) {
898 if (other instanceof com.google.ortools.linearsolver.MPModelProto.Annotation) {
899 return mergeFrom((com.google.ortools.linearsolver.MPModelProto.Annotation)other);
901 super.mergeFrom(other);
907 if (other == com.google.ortools.linearsolver.MPModelProto.Annotation.getDefaultInstance())
return this;
908 if (other.hasTargetType()) {
911 if (other.hasTargetIndex()) {
914 if (other.hasTargetName()) {
915 targetName_ = other.targetName_;
916 bitField0_ |= 0x00000004;
919 if (other.hasPayloadKey()) {
920 payloadKey_ = other.payloadKey_;
921 bitField0_ |= 0x00000008;
924 if (other.hasPayloadValue()) {
925 payloadValue_ = other.payloadValue_;
926 bitField0_ |= 0x00000010;
941 com.google.protobuf.CodedInputStream input,
942 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
943 throws java.io.IOException {
944 if (extensionRegistry ==
null) {
945 throw new java.lang.NullPointerException();
948 boolean done =
false;
950 int tag = input.readTag();
956 int tmpRaw = input.readEnum();
958 com.google.ortools.linearsolver.MPModelProto.Annotation.TargetType.forNumber(tmpRaw);
959 if (tmpValue ==
null) {
960 mergeUnknownVarintField(1, tmpRaw);
962 targetType_ = tmpRaw;
963 bitField0_ |= 0x00000001;
968 targetIndex_ = input.readInt32();
969 bitField0_ |= 0x00000002;
973 targetName_ = input.readBytes();
974 bitField0_ |= 0x00000004;
978 payloadKey_ = input.readBytes();
979 bitField0_ |= 0x00000008;
983 payloadValue_ = input.readBytes();
984 bitField0_ |= 0x00000010;
988 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
995 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
996 throw e.unwrapIOException();
1002 private int bitField0_;
1004 private int targetType_ = 0;
1010 return ((bitField0_ & 0x00000001) != 0);
1019 return result ==
null ? com.google.ortools.linearsolver.MPModelProto.Annotation.TargetType.VARIABLE_DEFAULT : result;
1027 if (value ==
null) {
1028 throw new NullPointerException();
1030 bitField0_ |= 0x00000001;
1031 targetType_ = value.getNumber();
1040 bitField0_ = (bitField0_ & ~0x00000001);
1046 private int targetIndex_ ;
1058 return ((bitField0_ & 0x00000002) != 0);
1071 return targetIndex_;
1085 targetIndex_ = value;
1086 bitField0_ |= 0x00000002;
1100 bitField0_ = (bitField0_ & ~0x00000002);
1106 private java.lang.Object targetName_ =
"";
1116 return ((bitField0_ & 0x00000004) != 0);
1127 java.lang.Object ref = targetName_;
1128 if (!(ref instanceof java.lang.String)) {
1129 com.google.protobuf.ByteString bs =
1130 (com.google.protobuf.ByteString) ref;
1131 java.lang.String s = bs.toStringUtf8();
1132 if (bs.isValidUtf8()) {
1137 return (java.lang.String) ref;
1148 public com.google.protobuf.ByteString
1150 java.lang.Object ref = targetName_;
1151 if (ref instanceof String) {
1152 com.google.protobuf.ByteString b =
1153 com.google.protobuf.ByteString.copyFromUtf8(
1154 (java.lang.String) ref);
1158 return (com.google.protobuf.ByteString) ref;
1171 java.lang.String value) {
1172 if (value ==
null) {
throw new NullPointerException(); }
1173 targetName_ = value;
1174 bitField0_ |= 0x00000004;
1188 bitField0_ = (bitField0_ & ~0x00000004);
1202 com.google.protobuf.ByteString value) {
1203 if (value ==
null) {
throw new NullPointerException(); }
1204 targetName_ = value;
1205 bitField0_ |= 0x00000004;
1210 private java.lang.Object payloadKey_ =
"";
1221 return ((bitField0_ & 0x00000008) != 0);
1233 java.lang.Object ref = payloadKey_;
1234 if (!(ref instanceof java.lang.String)) {
1235 com.google.protobuf.ByteString bs =
1236 (com.google.protobuf.ByteString) ref;
1237 java.lang.String s = bs.toStringUtf8();
1238 if (bs.isValidUtf8()) {
1243 return (java.lang.String) ref;
1255 public com.google.protobuf.ByteString
1257 java.lang.Object ref = payloadKey_;
1258 if (ref instanceof String) {
1259 com.google.protobuf.ByteString b =
1260 com.google.protobuf.ByteString.copyFromUtf8(
1261 (java.lang.String) ref);
1265 return (com.google.protobuf.ByteString) ref;
1279 java.lang.String value) {
1280 if (value ==
null) {
throw new NullPointerException(); }
1281 payloadKey_ = value;
1282 bitField0_ |= 0x00000008;
1297 bitField0_ = (bitField0_ & ~0x00000008);
1312 com.google.protobuf.ByteString value) {
1313 if (value ==
null) {
throw new NullPointerException(); }
1314 payloadKey_ = value;
1315 bitField0_ |= 0x00000008;
1320 private java.lang.Object payloadValue_ =
"";
1326 return ((bitField0_ & 0x00000010) != 0);
1333 java.lang.Object ref = payloadValue_;
1334 if (!(ref instanceof java.lang.String)) {
1335 com.google.protobuf.ByteString bs =
1336 (com.google.protobuf.ByteString) ref;
1337 java.lang.String s = bs.toStringUtf8();
1338 if (bs.isValidUtf8()) {
1343 return (java.lang.String) ref;
1350 public com.google.protobuf.ByteString
1352 java.lang.Object ref = payloadValue_;
1353 if (ref instanceof String) {
1354 com.google.protobuf.ByteString b =
1355 com.google.protobuf.ByteString.copyFromUtf8(
1356 (java.lang.String) ref);
1360 return (com.google.protobuf.ByteString) ref;
1369 java.lang.String value) {
1370 if (value ==
null) {
throw new NullPointerException(); }
1371 payloadValue_ = value;
1372 bitField0_ |= 0x00000010;
1382 bitField0_ = (bitField0_ & ~0x00000010);
1392 com.google.protobuf.ByteString value) {
1393 if (value ==
null) {
throw new NullPointerException(); }
1394 payloadValue_ = value;
1395 bitField0_ |= 0x00000010;
1401 final com.google.protobuf.UnknownFieldSet unknownFields) {
1407 final com.google.protobuf.UnknownFieldSet unknownFields) {
1418 DEFAULT_INSTANCE =
new com.google.ortools.linearsolver.MPModelProto.Annotation();
1422 return DEFAULT_INSTANCE;
1425 @java.lang.Deprecated
public static final com.google.protobuf.Parser<
Annotation>
1429 com.google.protobuf.CodedInputStream input,
1430 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1431 throws com.google.protobuf.InvalidProtocolBufferException {
1434 builder.
mergeFrom(input, extensionRegistry);
1435 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
1437 }
catch (com.google.protobuf.UninitializedMessageException e) {
1438 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.
buildPartial());
1439 }
catch (java.io.IOException e) {
1440 throw new com.google.protobuf.InvalidProtocolBufferException(e)
1458 return DEFAULT_INSTANCE;
1463 private int bitField0_;
1465 @SuppressWarnings(
"serial")
1466 private java.util.List<com.google.ortools.linearsolver.
MPVariableProto> variable_;
1486 public java.util.List<? extends com.google.ortools.linearsolver.MPVariableProtoOrBuilder>
1499 return variable_.size();
1510 return variable_.get(index);
1522 return variable_.get(index);
1526 @SuppressWarnings(
"serial")
1527 private java.util.List<com.google.ortools.linearsolver.
MPConstraintProto> constraint_;
1547 public java.util.List<? extends com.google.ortools.linearsolver.MPConstraintProtoOrBuilder>
1560 return constraint_.size();
1571 return constraint_.get(index);
1583 return constraint_.get(index);
1587 @SuppressWarnings(
"serial")
1599 return generalConstraint_;
1610 public java.util.List<? extends com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder>
1612 return generalConstraint_;
1624 return generalConstraint_.size();
1636 return generalConstraint_.get(index);
1649 return generalConstraint_.get(index);
1653 private boolean maximize_ =
false;
1664 return ((bitField0_ & 0x00000001) != 0);
1680 private double objectiveOffset_ = 0D;
1691 return ((bitField0_ & 0x00000002) != 0);
1703 return objectiveOffset_;
1719 return ((bitField0_ & 0x00000004) != 0);
1732 return quadraticObjective_ ==
null ? com.google.ortools.linearsolver.MPQuadraticObjective.getDefaultInstance() : quadraticObjective_;
1744 return quadraticObjective_ ==
null ? com.google.ortools.linearsolver.MPQuadraticObjective.getDefaultInstance() : quadraticObjective_;
1748 @SuppressWarnings(
"serial")
1749 private volatile java.lang.Object name_ = "";
1760 return ((bitField0_ & 0x00000008) != 0);
1772 java.lang.Object ref = name_;
1773 if (ref instanceof java.lang.String) {
1774 return (java.lang.String) ref;
1776 com.google.protobuf.ByteString bs =
1777 (com.google.protobuf.ByteString) ref;
1778 java.lang.String s = bs.toStringUtf8();
1779 if (bs.isValidUtf8()) {
1794 public com.google.protobuf.ByteString
1796 java.lang.Object ref = name_;
1797 if (ref instanceof java.lang.String) {
1798 com.google.protobuf.ByteString b =
1799 com.google.protobuf.ByteString.copyFromUtf8(
1800 (java.lang.String) ref);
1804 return (com.google.protobuf.ByteString) ref;
1830 return ((bitField0_ & 0x00000010) != 0);
1852 return solutionHint_ ==
null ? com.google.ortools.linearsolver.PartialVariableAssignment.getDefaultInstance() : solutionHint_;
1873 return solutionHint_ ==
null ? com.google.ortools.linearsolver.PartialVariableAssignment.getDefaultInstance() : solutionHint_;
1877 @SuppressWarnings(
"serial")
1890 public java.util.List<? extends com.google.ortools.linearsolver.MPModelProto.AnnotationOrBuilder>
1899 return annotation_.size();
1906 return annotation_.get(index);
1914 return annotation_.get(index);
1917 private byte memoizedIsInitialized = -1;
1924 memoizedIsInitialized = 1;
1929 public void writeTo(com.google.protobuf.CodedOutputStream output)
1930 throws java.io.IOException {
1931 if (((bitField0_ & 0x00000001) != 0)) {
1932 output.writeBool(1, maximize_);
1934 if (((bitField0_ & 0x00000002) != 0)) {
1935 output.writeDouble(2, objectiveOffset_);
1937 for (
int i = 0; i < variable_.size(); i++) {
1938 output.writeMessage(3, variable_.get(i));
1940 for (
int i = 0; i < constraint_.size(); i++) {
1941 output.writeMessage(4, constraint_.get(i));
1943 if (((bitField0_ & 0x00000008) != 0)) {
1944 com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_);
1946 if (((bitField0_ & 0x00000010) != 0)) {
1949 for (
int i = 0; i < generalConstraint_.size(); i++) {
1950 output.writeMessage(7, generalConstraint_.get(i));
1952 if (((bitField0_ & 0x00000004) != 0)) {
1955 for (
int i = 0; i < annotation_.size(); i++) {
1956 output.writeMessage(9, annotation_.get(i));
1958 getUnknownFields().writeTo(output);
1963 int size = memoizedSize;
1964 if (size != -1)
return size;
1967 if (((bitField0_ & 0x00000001) != 0)) {
1968 size += com.google.protobuf.CodedOutputStream
1969 .computeBoolSize(1, maximize_);
1971 if (((bitField0_ & 0x00000002) != 0)) {
1972 size += com.google.protobuf.CodedOutputStream
1973 .computeDoubleSize(2, objectiveOffset_);
1975 for (
int i = 0; i < variable_.size(); i++) {
1976 size += com.google.protobuf.CodedOutputStream
1977 .computeMessageSize(3, variable_.get(i));
1979 for (
int i = 0; i < constraint_.size(); i++) {
1980 size += com.google.protobuf.CodedOutputStream
1981 .computeMessageSize(4, constraint_.get(i));
1983 if (((bitField0_ & 0x00000008) != 0)) {
1984 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_);
1986 if (((bitField0_ & 0x00000010) != 0)) {
1987 size += com.google.protobuf.CodedOutputStream
1990 for (
int i = 0; i < generalConstraint_.size(); i++) {
1991 size += com.google.protobuf.CodedOutputStream
1992 .computeMessageSize(7, generalConstraint_.get(i));
1994 if (((bitField0_ & 0x00000004) != 0)) {
1995 size += com.google.protobuf.CodedOutputStream
1998 for (
int i = 0; i < annotation_.size(); i++) {
1999 size += com.google.protobuf.CodedOutputStream
2000 .computeMessageSize(9, annotation_.get(i));
2002 size += getUnknownFields().getSerializedSize();
2003 memoizedSize = size;
2008 public boolean equals(
final java.lang.Object obj) {
2012 if (!(obj instanceof com.google.ortools.linearsolver.MPModelProto)) {
2013 return super.equals(obj);
2031 != java.lang.Double.doubleToLongBits(
2042 .equals(other.
getName()))
return false;
2051 if (!getUnknownFields().equals(other.getUnknownFields()))
return false;
2057 if (memoizedHashCode != 0) {
2058 return memoizedHashCode;
2076 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
2081 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
2090 hash = (53 * hash) +
getName().hashCode();
2100 hash = (29 * hash) + getUnknownFields().hashCode();
2101 memoizedHashCode = hash;
2106 java.nio.ByteBuffer data)
2107 throws com.google.protobuf.InvalidProtocolBufferException {
2111 java.nio.ByteBuffer data,
2112 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2113 throws com.google.protobuf.InvalidProtocolBufferException {
2117 com.google.protobuf.ByteString data)
2118 throws com.google.protobuf.InvalidProtocolBufferException {
2122 com.google.protobuf.ByteString data,
2123 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2124 throws com.google.protobuf.InvalidProtocolBufferException {
2128 throws com.google.protobuf.InvalidProtocolBufferException {
2133 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2134 throws com.google.protobuf.InvalidProtocolBufferException {
2138 throws java.io.IOException {
2139 return com.google.protobuf.GeneratedMessageV3
2140 .parseWithIOException(
PARSER, input);
2143 java.io.InputStream input,
2144 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2145 throws java.io.IOException {
2146 return com.google.protobuf.GeneratedMessageV3
2147 .parseWithIOException(
PARSER, input, extensionRegistry);
2151 throws java.io.IOException {
2152 return com.google.protobuf.GeneratedMessageV3
2153 .parseDelimitedWithIOException(
PARSER, input);
2157 java.io.InputStream input,
2158 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2159 throws java.io.IOException {
2160 return com.google.protobuf.GeneratedMessageV3
2161 .parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
2164 com.google.protobuf.CodedInputStream input)
2165 throws java.io.IOException {
2166 return com.google.protobuf.GeneratedMessageV3
2167 .parseWithIOException(
PARSER, input);
2170 com.google.protobuf.CodedInputStream input,
2171 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2172 throws java.io.IOException {
2173 return com.google.protobuf.GeneratedMessageV3
2174 .parseWithIOException(
PARSER, input, extensionRegistry);
2187 return this == DEFAULT_INSTANCE
2193 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
2205 com.google.protobuf.GeneratedMessageV3.
Builder<Builder> implements
2208 public static final com.google.protobuf.Descriptors.Descriptor
2210 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelProto_descriptor;
2214 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
2216 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelProto_fieldAccessorTable
2217 .ensureFieldAccessorsInitialized(
2218 com.google.ortools.linearsolver.MPModelProto.class, com.google.ortools.linearsolver.MPModelProto.Builder.class);
2223 maybeForceBuilderInitialization();
2227 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
2229 maybeForceBuilderInitialization();
2231 private void maybeForceBuilderInitialization() {
2232 if (com.google.protobuf.GeneratedMessageV3
2233 .alwaysUseFieldBuilders) {
2234 getVariableFieldBuilder();
2235 getConstraintFieldBuilder();
2236 getGeneralConstraintFieldBuilder();
2237 getQuadraticObjectiveFieldBuilder();
2238 getSolutionHintFieldBuilder();
2239 getAnnotationFieldBuilder();
2246 if (variableBuilder_ ==
null) {
2247 variable_ = java.util.Collections.emptyList();
2250 variableBuilder_.clear();
2252 bitField0_ = (bitField0_ & ~0x00000001);
2253 if (constraintBuilder_ ==
null) {
2254 constraint_ = java.util.Collections.emptyList();
2257 constraintBuilder_.clear();
2259 bitField0_ = (bitField0_ & ~0x00000002);
2260 if (generalConstraintBuilder_ ==
null) {
2261 generalConstraint_ = java.util.Collections.emptyList();
2263 generalConstraint_ =
null;
2264 generalConstraintBuilder_.clear();
2266 bitField0_ = (bitField0_ & ~0x00000004);
2268 objectiveOffset_ = 0D;
2269 quadraticObjective_ =
null;
2270 if (quadraticObjectiveBuilder_ !=
null) {
2271 quadraticObjectiveBuilder_.dispose();
2272 quadraticObjectiveBuilder_ =
null;
2275 solutionHint_ =
null;
2276 if (solutionHintBuilder_ !=
null) {
2277 solutionHintBuilder_.dispose();
2278 solutionHintBuilder_ =
null;
2280 if (annotationBuilder_ ==
null) {
2281 annotation_ = java.util.Collections.emptyList();
2284 annotationBuilder_.clear();
2286 bitField0_ = (bitField0_ & ~0x00000100);
2291 public com.google.protobuf.Descriptors.Descriptor
2293 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelProto_descriptor;
2298 return com.google.ortools.linearsolver.MPModelProto.getDefaultInstance();
2305 throw newUninitializedMessageException(result);
2313 buildPartialRepeatedFields(result);
2314 if (bitField0_ != 0) { buildPartial0(result); }
2319 private void buildPartialRepeatedFields(com.google.ortools.linearsolver.MPModelProto result) {
2320 if (variableBuilder_ ==
null) {
2321 if (((bitField0_ & 0x00000001) != 0)) {
2322 variable_ = java.util.Collections.unmodifiableList(variable_);
2323 bitField0_ = (bitField0_ & ~0x00000001);
2325 result.variable_ = variable_;
2327 result.variable_ = variableBuilder_.build();
2329 if (constraintBuilder_ ==
null) {
2330 if (((bitField0_ & 0x00000002) != 0)) {
2331 constraint_ = java.util.Collections.unmodifiableList(constraint_);
2332 bitField0_ = (bitField0_ & ~0x00000002);
2334 result.constraint_ = constraint_;
2336 result.constraint_ = constraintBuilder_.build();
2338 if (generalConstraintBuilder_ ==
null) {
2339 if (((bitField0_ & 0x00000004) != 0)) {
2340 generalConstraint_ = java.util.Collections.unmodifiableList(generalConstraint_);
2341 bitField0_ = (bitField0_ & ~0x00000004);
2343 result.generalConstraint_ = generalConstraint_;
2345 result.generalConstraint_ = generalConstraintBuilder_.build();
2347 if (annotationBuilder_ ==
null) {
2348 if (((bitField0_ & 0x00000100) != 0)) {
2349 annotation_ = java.util.Collections.unmodifiableList(annotation_);
2350 bitField0_ = (bitField0_ & ~0x00000100);
2352 result.annotation_ = annotation_;
2354 result.annotation_ = annotationBuilder_.build();
2358 private void buildPartial0(com.google.ortools.linearsolver.MPModelProto result) {
2359 int from_bitField0_ = bitField0_;
2360 int to_bitField0_ = 0;
2361 if (((from_bitField0_ & 0x00000008) != 0)) {
2362 result.maximize_ = maximize_;
2363 to_bitField0_ |= 0x00000001;
2365 if (((from_bitField0_ & 0x00000010) != 0)) {
2366 result.objectiveOffset_ = objectiveOffset_;
2367 to_bitField0_ |= 0x00000002;
2369 if (((from_bitField0_ & 0x00000020) != 0)) {
2370 result.quadraticObjective_ = quadraticObjectiveBuilder_ ==
null
2371 ? quadraticObjective_
2372 : quadraticObjectiveBuilder_.build();
2373 to_bitField0_ |= 0x00000004;
2375 if (((from_bitField0_ & 0x00000040) != 0)) {
2376 result.name_ = name_;
2377 to_bitField0_ |= 0x00000008;
2379 if (((from_bitField0_ & 0x00000080) != 0)) {
2380 result.solutionHint_ = solutionHintBuilder_ ==
null
2382 : solutionHintBuilder_.build();
2383 to_bitField0_ |= 0x00000010;
2385 result.bitField0_ |= to_bitField0_;
2390 return super.
clone();
2394 com.google.protobuf.Descriptors.FieldDescriptor field,
2395 java.lang.Object value) {
2396 return super.
setField(field, value);
2400 com.google.protobuf.Descriptors.FieldDescriptor field) {
2405 com.google.protobuf.Descriptors.OneofDescriptor oneof) {
2410 com.google.protobuf.Descriptors.FieldDescriptor field,
2411 int index, java.lang.Object value) {
2416 com.google.protobuf.Descriptors.FieldDescriptor field,
2417 java.lang.Object value) {
2422 if (other instanceof com.google.ortools.linearsolver.MPModelProto) {
2423 return mergeFrom((com.google.ortools.linearsolver.MPModelProto)other);
2425 super.mergeFrom(other);
2431 if (other == com.google.ortools.linearsolver.MPModelProto.getDefaultInstance())
return this;
2432 if (variableBuilder_ ==
null) {
2433 if (!other.variable_.isEmpty()) {
2434 if (variable_.isEmpty()) {
2435 variable_ = other.variable_;
2436 bitField0_ = (bitField0_ & ~0x00000001);
2438 ensureVariableIsMutable();
2439 variable_.addAll(other.variable_);
2444 if (!other.variable_.isEmpty()) {
2445 if (variableBuilder_.isEmpty()) {
2446 variableBuilder_.dispose();
2447 variableBuilder_ =
null;
2448 variable_ = other.variable_;
2449 bitField0_ = (bitField0_ & ~0x00000001);
2451 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
2452 getVariableFieldBuilder() :
null;
2454 variableBuilder_.addAllMessages(other.variable_);
2458 if (constraintBuilder_ ==
null) {
2459 if (!other.constraint_.isEmpty()) {
2460 if (constraint_.isEmpty()) {
2461 constraint_ = other.constraint_;
2462 bitField0_ = (bitField0_ & ~0x00000002);
2464 ensureConstraintIsMutable();
2465 constraint_.addAll(other.constraint_);
2470 if (!other.constraint_.isEmpty()) {
2471 if (constraintBuilder_.isEmpty()) {
2472 constraintBuilder_.dispose();
2473 constraintBuilder_ =
null;
2474 constraint_ = other.constraint_;
2475 bitField0_ = (bitField0_ & ~0x00000002);
2476 constraintBuilder_ =
2477 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
2478 getConstraintFieldBuilder() :
null;
2480 constraintBuilder_.addAllMessages(other.constraint_);
2484 if (generalConstraintBuilder_ ==
null) {
2485 if (!other.generalConstraint_.isEmpty()) {
2486 if (generalConstraint_.isEmpty()) {
2487 generalConstraint_ = other.generalConstraint_;
2488 bitField0_ = (bitField0_ & ~0x00000004);
2490 ensureGeneralConstraintIsMutable();
2491 generalConstraint_.addAll(other.generalConstraint_);
2496 if (!other.generalConstraint_.isEmpty()) {
2497 if (generalConstraintBuilder_.isEmpty()) {
2498 generalConstraintBuilder_.dispose();
2499 generalConstraintBuilder_ =
null;
2500 generalConstraint_ = other.generalConstraint_;
2501 bitField0_ = (bitField0_ & ~0x00000004);
2502 generalConstraintBuilder_ =
2503 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
2504 getGeneralConstraintFieldBuilder() :
null;
2506 generalConstraintBuilder_.addAllMessages(other.generalConstraint_);
2510 if (other.hasMaximize()) {
2513 if (other.hasObjectiveOffset()) {
2516 if (other.hasQuadraticObjective()) {
2519 if (other.hasName()) {
2520 name_ = other.name_;
2521 bitField0_ |= 0x00000040;
2524 if (other.hasSolutionHint()) {
2527 if (annotationBuilder_ ==
null) {
2528 if (!other.annotation_.isEmpty()) {
2529 if (annotation_.isEmpty()) {
2530 annotation_ = other.annotation_;
2531 bitField0_ = (bitField0_ & ~0x00000100);
2533 ensureAnnotationIsMutable();
2534 annotation_.addAll(other.annotation_);
2539 if (!other.annotation_.isEmpty()) {
2540 if (annotationBuilder_.isEmpty()) {
2541 annotationBuilder_.dispose();
2542 annotationBuilder_ =
null;
2543 annotation_ = other.annotation_;
2544 bitField0_ = (bitField0_ & ~0x00000100);
2545 annotationBuilder_ =
2546 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
2547 getAnnotationFieldBuilder() :
null;
2549 annotationBuilder_.addAllMessages(other.annotation_);
2565 com.google.protobuf.CodedInputStream input,
2566 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2567 throws java.io.IOException {
2568 if (extensionRegistry ==
null) {
2569 throw new java.lang.NullPointerException();
2572 boolean done =
false;
2574 int tag = input.readTag();
2580 maximize_ = input.readBool();
2581 bitField0_ |= 0x00000008;
2585 objectiveOffset_ = input.readDouble();
2586 bitField0_ |= 0x00000010;
2592 com.google.ortools.linearsolver.MPVariableProto.PARSER,
2594 if (variableBuilder_ ==
null) {
2595 ensureVariableIsMutable();
2598 variableBuilder_.addMessage(m);
2605 com.google.ortools.linearsolver.MPConstraintProto.PARSER,
2607 if (constraintBuilder_ ==
null) {
2608 ensureConstraintIsMutable();
2611 constraintBuilder_.addMessage(m);
2616 name_ = input.readBytes();
2617 bitField0_ |= 0x00000040;
2622 getSolutionHintFieldBuilder().getBuilder(),
2624 bitField0_ |= 0x00000080;
2630 com.google.ortools.linearsolver.MPGeneralConstraintProto.PARSER,
2632 if (generalConstraintBuilder_ ==
null) {
2633 ensureGeneralConstraintIsMutable();
2634 generalConstraint_.add(m);
2636 generalConstraintBuilder_.addMessage(m);
2642 getQuadraticObjectiveFieldBuilder().getBuilder(),
2644 bitField0_ |= 0x00000020;
2650 com.google.ortools.linearsolver.MPModelProto.Annotation.PARSER,
2652 if (annotationBuilder_ ==
null) {
2653 ensureAnnotationIsMutable();
2656 annotationBuilder_.addMessage(m);
2661 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
2668 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
2669 throw e.unwrapIOException();
2675 private int bitField0_;
2677 private java.util.List<com.google.ortools.linearsolver.MPVariableProto> variable_ =
2678 java.util.Collections.emptyList();
2679 private void ensureVariableIsMutable() {
2680 if (!((bitField0_ & 0x00000001) != 0)) {
2681 variable_ =
new java.util.ArrayList<com.google.ortools.linearsolver.MPVariableProto>(variable_);
2682 bitField0_ |= 0x00000001;
2686 private com.google.protobuf.RepeatedFieldBuilderV3<
2687 com.google.ortools.linearsolver.MPVariableProto, com.google.ortools.linearsolver.MPVariableProto.Builder, com.google.ortools.linearsolver.MPVariableProtoOrBuilder> variableBuilder_;
2696 public java.util.List<com.google.ortools.linearsolver.MPVariableProto>
getVariableList() {
2697 if (variableBuilder_ ==
null) {
2698 return java.util.Collections.unmodifiableList(variable_);
2700 return variableBuilder_.getMessageList();
2711 if (variableBuilder_ ==
null) {
2712 return variable_.size();
2714 return variableBuilder_.getCount();
2725 if (variableBuilder_ ==
null) {
2726 return variable_.get(index);
2728 return variableBuilder_.getMessage(index);
2739 int index, com.google.ortools.linearsolver.MPVariableProto value) {
2740 if (variableBuilder_ ==
null) {
2741 if (value ==
null) {
2742 throw new NullPointerException();
2744 ensureVariableIsMutable();
2745 variable_.set(index, value);
2748 variableBuilder_.setMessage(index, value);
2760 int index, com.google.ortools.linearsolver.MPVariableProto.Builder builderForValue) {
2761 if (variableBuilder_ ==
null) {
2762 ensureVariableIsMutable();
2763 variable_.set(index, builderForValue.build());
2766 variableBuilder_.setMessage(index, builderForValue.build());
2778 if (variableBuilder_ ==
null) {
2779 if (value ==
null) {
2780 throw new NullPointerException();
2782 ensureVariableIsMutable();
2783 variable_.add(value);
2786 variableBuilder_.addMessage(value);
2798 int index, com.google.ortools.linearsolver.MPVariableProto value) {
2799 if (variableBuilder_ ==
null) {
2800 if (value ==
null) {
2801 throw new NullPointerException();
2803 ensureVariableIsMutable();
2804 variable_.add(index, value);
2807 variableBuilder_.addMessage(index, value);
2819 com.google.ortools.linearsolver.MPVariableProto.Builder builderForValue) {
2820 if (variableBuilder_ ==
null) {
2821 ensureVariableIsMutable();
2822 variable_.add(builderForValue.build());
2825 variableBuilder_.addMessage(builderForValue.build());
2837 int index, com.google.ortools.linearsolver.MPVariableProto.Builder builderForValue) {
2838 if (variableBuilder_ ==
null) {
2839 ensureVariableIsMutable();
2840 variable_.add(index, builderForValue.build());
2843 variableBuilder_.addMessage(index, builderForValue.build());
2855 java.lang.Iterable<? extends com.google.ortools.linearsolver.MPVariableProto> values) {
2856 if (variableBuilder_ ==
null) {
2857 ensureVariableIsMutable();
2858 com.google.protobuf.AbstractMessageLite.Builder.addAll(
2862 variableBuilder_.addAllMessages(values);
2874 if (variableBuilder_ ==
null) {
2875 variable_ = java.util.Collections.emptyList();
2876 bitField0_ = (bitField0_ & ~0x00000001);
2879 variableBuilder_.clear();
2891 if (variableBuilder_ ==
null) {
2892 ensureVariableIsMutable();
2893 variable_.remove(index);
2896 variableBuilder_.remove(index);
2909 return getVariableFieldBuilder().getBuilder(index);
2920 if (variableBuilder_ ==
null) {
2921 return variable_.get(index); }
else {
2922 return variableBuilder_.getMessageOrBuilder(index);
2932 public java.util.List<? extends com.google.ortools.linearsolver.MPVariableProtoOrBuilder>
2934 if (variableBuilder_ !=
null) {
2935 return variableBuilder_.getMessageOrBuilderList();
2937 return java.util.Collections.unmodifiableList(variable_);
2948 return getVariableFieldBuilder().addBuilder(
2949 com.google.ortools.linearsolver.MPVariableProto.getDefaultInstance());
2960 return getVariableFieldBuilder().addBuilder(
2961 index, com.google.ortools.linearsolver.MPVariableProto.getDefaultInstance());
2970 public java.util.List<com.google.ortools.linearsolver.MPVariableProto.Builder>
2972 return getVariableFieldBuilder().getBuilderList();
2974 private com.google.protobuf.RepeatedFieldBuilderV3<
2975 com.google.ortools.linearsolver.MPVariableProto, com.google.ortools.linearsolver.MPVariableProto.Builder, com.google.ortools.linearsolver.MPVariableProtoOrBuilder>
2976 getVariableFieldBuilder() {
2977 if (variableBuilder_ ==
null) {
2978 variableBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
2979 com.google.ortools.linearsolver.MPVariableProto, com.google.ortools.linearsolver.MPVariableProto.Builder, com.google.ortools.linearsolver.MPVariableProtoOrBuilder>(
2981 ((bitField0_ & 0x00000001) != 0),
2982 getParentForChildren(),
2986 return variableBuilder_;
2989 private java.util.List<com.google.ortools.linearsolver.MPConstraintProto> constraint_ =
2990 java.util.Collections.emptyList();
2991 private void ensureConstraintIsMutable() {
2992 if (!((bitField0_ & 0x00000002) != 0)) {
2993 constraint_ =
new java.util.ArrayList<com.google.ortools.linearsolver.MPConstraintProto>(constraint_);
2994 bitField0_ |= 0x00000002;
2998 private com.google.protobuf.RepeatedFieldBuilderV3<
2999 com.google.ortools.linearsolver.MPConstraintProto, com.google.ortools.linearsolver.MPConstraintProto.Builder, com.google.ortools.linearsolver.MPConstraintProtoOrBuilder> constraintBuilder_;
3009 if (constraintBuilder_ ==
null) {
3010 return java.util.Collections.unmodifiableList(constraint_);
3012 return constraintBuilder_.getMessageList();
3023 if (constraintBuilder_ ==
null) {
3024 return constraint_.size();
3026 return constraintBuilder_.getCount();
3037 if (constraintBuilder_ ==
null) {
3038 return constraint_.get(index);
3040 return constraintBuilder_.getMessage(index);
3051 int index, com.google.ortools.linearsolver.MPConstraintProto value) {
3052 if (constraintBuilder_ ==
null) {
3053 if (value ==
null) {
3054 throw new NullPointerException();
3056 ensureConstraintIsMutable();
3057 constraint_.set(index, value);
3060 constraintBuilder_.setMessage(index, value);
3072 int index, com.google.ortools.linearsolver.MPConstraintProto.Builder builderForValue) {
3073 if (constraintBuilder_ ==
null) {
3074 ensureConstraintIsMutable();
3075 constraint_.set(index, builderForValue.build());
3078 constraintBuilder_.setMessage(index, builderForValue.build());
3090 if (constraintBuilder_ ==
null) {
3091 if (value ==
null) {
3092 throw new NullPointerException();
3094 ensureConstraintIsMutable();
3095 constraint_.add(value);
3098 constraintBuilder_.addMessage(value);
3110 int index, com.google.ortools.linearsolver.MPConstraintProto value) {
3111 if (constraintBuilder_ ==
null) {
3112 if (value ==
null) {
3113 throw new NullPointerException();
3115 ensureConstraintIsMutable();
3116 constraint_.add(index, value);
3119 constraintBuilder_.addMessage(index, value);
3131 com.google.ortools.linearsolver.MPConstraintProto.Builder builderForValue) {
3132 if (constraintBuilder_ ==
null) {
3133 ensureConstraintIsMutable();
3134 constraint_.add(builderForValue.build());
3137 constraintBuilder_.addMessage(builderForValue.build());
3149 int index, com.google.ortools.linearsolver.MPConstraintProto.Builder builderForValue) {
3150 if (constraintBuilder_ ==
null) {
3151 ensureConstraintIsMutable();
3152 constraint_.add(index, builderForValue.build());
3155 constraintBuilder_.addMessage(index, builderForValue.build());
3167 java.lang.Iterable<? extends com.google.ortools.linearsolver.MPConstraintProto> values) {
3168 if (constraintBuilder_ ==
null) {
3169 ensureConstraintIsMutable();
3170 com.google.protobuf.AbstractMessageLite.Builder.addAll(
3171 values, constraint_);
3174 constraintBuilder_.addAllMessages(values);
3186 if (constraintBuilder_ ==
null) {
3187 constraint_ = java.util.Collections.emptyList();
3188 bitField0_ = (bitField0_ & ~0x00000002);
3191 constraintBuilder_.clear();
3203 if (constraintBuilder_ ==
null) {
3204 ensureConstraintIsMutable();
3205 constraint_.remove(index);
3208 constraintBuilder_.remove(index);
3221 return getConstraintFieldBuilder().getBuilder(index);
3232 if (constraintBuilder_ ==
null) {
3233 return constraint_.get(index); }
else {
3234 return constraintBuilder_.getMessageOrBuilder(index);
3244 public java.util.List<? extends com.google.ortools.linearsolver.MPConstraintProtoOrBuilder>
3246 if (constraintBuilder_ !=
null) {
3247 return constraintBuilder_.getMessageOrBuilderList();
3249 return java.util.Collections.unmodifiableList(constraint_);
3260 return getConstraintFieldBuilder().addBuilder(
3261 com.google.ortools.linearsolver.MPConstraintProto.getDefaultInstance());
3272 return getConstraintFieldBuilder().addBuilder(
3273 index, com.google.ortools.linearsolver.MPConstraintProto.getDefaultInstance());
3282 public java.util.List<com.google.ortools.linearsolver.MPConstraintProto.Builder>
3284 return getConstraintFieldBuilder().getBuilderList();
3286 private com.google.protobuf.RepeatedFieldBuilderV3<
3287 com.google.ortools.linearsolver.MPConstraintProto, com.google.ortools.linearsolver.MPConstraintProto.Builder, com.google.ortools.linearsolver.MPConstraintProtoOrBuilder>
3288 getConstraintFieldBuilder() {
3289 if (constraintBuilder_ ==
null) {
3290 constraintBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
3291 com.google.ortools.linearsolver.MPConstraintProto, com.google.ortools.linearsolver.MPConstraintProto.Builder, com.google.ortools.linearsolver.MPConstraintProtoOrBuilder>(
3293 ((bitField0_ & 0x00000002) != 0),
3294 getParentForChildren(),
3298 return constraintBuilder_;
3301 private java.util.List<com.google.ortools.linearsolver.MPGeneralConstraintProto> generalConstraint_ =
3302 java.util.Collections.emptyList();
3303 private void ensureGeneralConstraintIsMutable() {
3304 if (!((bitField0_ & 0x00000004) != 0)) {
3305 generalConstraint_ =
new java.util.ArrayList<com.google.ortools.linearsolver.MPGeneralConstraintProto>(generalConstraint_);
3306 bitField0_ |= 0x00000004;
3310 private com.google.protobuf.RepeatedFieldBuilderV3<
3311 com.google.ortools.linearsolver.MPGeneralConstraintProto, com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder, com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder> generalConstraintBuilder_;
3322 if (generalConstraintBuilder_ ==
null) {
3323 return java.util.Collections.unmodifiableList(generalConstraint_);
3325 return generalConstraintBuilder_.getMessageList();
3337 if (generalConstraintBuilder_ ==
null) {
3338 return generalConstraint_.size();
3340 return generalConstraintBuilder_.getCount();
3352 if (generalConstraintBuilder_ ==
null) {
3353 return generalConstraint_.get(index);
3355 return generalConstraintBuilder_.getMessage(index);
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_.set(index, value);
3376 generalConstraintBuilder_.setMessage(index, value);
3389 int index, com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder builderForValue) {
3390 if (generalConstraintBuilder_ ==
null) {
3391 ensureGeneralConstraintIsMutable();
3392 generalConstraint_.set(index, builderForValue.build());
3395 generalConstraintBuilder_.setMessage(index, builderForValue.build());
3408 if (generalConstraintBuilder_ ==
null) {
3409 if (value ==
null) {
3410 throw new NullPointerException();
3412 ensureGeneralConstraintIsMutable();
3413 generalConstraint_.add(value);
3416 generalConstraintBuilder_.addMessage(value);
3429 int index, com.google.ortools.linearsolver.MPGeneralConstraintProto value) {
3430 if (generalConstraintBuilder_ ==
null) {
3431 if (value ==
null) {
3432 throw new NullPointerException();
3434 ensureGeneralConstraintIsMutable();
3435 generalConstraint_.add(index, value);
3438 generalConstraintBuilder_.addMessage(index, value);
3451 com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder builderForValue) {
3452 if (generalConstraintBuilder_ ==
null) {
3453 ensureGeneralConstraintIsMutable();
3454 generalConstraint_.add(builderForValue.build());
3457 generalConstraintBuilder_.addMessage(builderForValue.build());
3470 int index, com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder builderForValue) {
3471 if (generalConstraintBuilder_ ==
null) {
3472 ensureGeneralConstraintIsMutable();
3473 generalConstraint_.add(index, builderForValue.build());
3476 generalConstraintBuilder_.addMessage(index, builderForValue.build());
3489 java.lang.Iterable<? extends com.google.ortools.linearsolver.MPGeneralConstraintProto> values) {
3490 if (generalConstraintBuilder_ ==
null) {
3491 ensureGeneralConstraintIsMutable();
3492 com.google.protobuf.AbstractMessageLite.Builder.addAll(
3493 values, generalConstraint_);
3496 generalConstraintBuilder_.addAllMessages(values);
3509 if (generalConstraintBuilder_ ==
null) {
3510 generalConstraint_ = java.util.Collections.emptyList();
3511 bitField0_ = (bitField0_ & ~0x00000004);
3514 generalConstraintBuilder_.clear();
3527 if (generalConstraintBuilder_ ==
null) {
3528 ensureGeneralConstraintIsMutable();
3529 generalConstraint_.remove(index);
3532 generalConstraintBuilder_.remove(index);
3546 return getGeneralConstraintFieldBuilder().getBuilder(index);
3558 if (generalConstraintBuilder_ ==
null) {
3559 return generalConstraint_.get(index); }
else {
3560 return generalConstraintBuilder_.getMessageOrBuilder(index);
3571 public java.util.List<? extends com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder>
3573 if (generalConstraintBuilder_ !=
null) {
3574 return generalConstraintBuilder_.getMessageOrBuilderList();
3576 return java.util.Collections.unmodifiableList(generalConstraint_);
3588 return getGeneralConstraintFieldBuilder().addBuilder(
3589 com.google.ortools.linearsolver.MPGeneralConstraintProto.getDefaultInstance());
3601 return getGeneralConstraintFieldBuilder().addBuilder(
3602 index, com.google.ortools.linearsolver.MPGeneralConstraintProto.getDefaultInstance());
3612 public java.util.List<com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder>
3614 return getGeneralConstraintFieldBuilder().getBuilderList();
3616 private com.google.protobuf.RepeatedFieldBuilderV3<
3617 com.google.ortools.linearsolver.MPGeneralConstraintProto, com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder, com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder>
3618 getGeneralConstraintFieldBuilder() {
3619 if (generalConstraintBuilder_ ==
null) {
3620 generalConstraintBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
3621 com.google.ortools.linearsolver.MPGeneralConstraintProto, com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder, com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder>(
3623 ((bitField0_ & 0x00000004) != 0),
3624 getParentForChildren(),
3626 generalConstraint_ =
null;
3628 return generalConstraintBuilder_;
3631 private boolean maximize_ ;
3642 return ((bitField0_ & 0x00000008) != 0);
3668 bitField0_ |= 0x00000008;
3681 bitField0_ = (bitField0_ & ~0x00000008);
3687 private double objectiveOffset_ ;
3698 return ((bitField0_ & 0x00000010) != 0);
3710 return objectiveOffset_;
3723 objectiveOffset_ = value;
3724 bitField0_ |= 0x00000010;
3737 bitField0_ = (bitField0_ & ~0x00000010);
3738 objectiveOffset_ = 0D;
3744 private com.google.protobuf.SingleFieldBuilderV3<
3745 com.google.ortools.linearsolver.MPQuadraticObjective, com.google.ortools.linearsolver.MPQuadraticObjective.Builder, com.google.ortools.linearsolver.MPQuadraticObjectiveOrBuilder> quadraticObjectiveBuilder_;
3756 return ((bitField0_ & 0x00000020) != 0);
3768 if (quadraticObjectiveBuilder_ ==
null) {
3769 return quadraticObjective_ ==
null ? com.google.ortools.linearsolver.MPQuadraticObjective.getDefaultInstance() : quadraticObjective_;
3771 return quadraticObjectiveBuilder_.getMessage();
3783 if (quadraticObjectiveBuilder_ ==
null) {
3784 if (value ==
null) {
3785 throw new NullPointerException();
3787 quadraticObjective_ = value;
3789 quadraticObjectiveBuilder_.setMessage(value);
3791 bitField0_ |= 0x00000020;
3804 com.google.ortools.linearsolver.MPQuadraticObjective.Builder builderForValue) {
3805 if (quadraticObjectiveBuilder_ ==
null) {
3806 quadraticObjective_ = builderForValue.build();
3808 quadraticObjectiveBuilder_.setMessage(builderForValue.build());
3810 bitField0_ |= 0x00000020;
3823 if (quadraticObjectiveBuilder_ ==
null) {
3824 if (((bitField0_ & 0x00000020) != 0) &&
3825 quadraticObjective_ !=
null &&
3826 quadraticObjective_ != com.google.ortools.linearsolver.MPQuadraticObjective.getDefaultInstance()) {
3829 quadraticObjective_ = value;
3832 quadraticObjectiveBuilder_.mergeFrom(value);
3834 if (quadraticObjective_ !=
null) {
3835 bitField0_ |= 0x00000020;
3849 bitField0_ = (bitField0_ & ~0x00000020);
3850 quadraticObjective_ =
null;
3851 if (quadraticObjectiveBuilder_ !=
null) {
3852 quadraticObjectiveBuilder_.dispose();
3853 quadraticObjectiveBuilder_ =
null;
3867 bitField0_ |= 0x00000020;
3869 return getQuadraticObjectiveFieldBuilder().getBuilder();
3880 if (quadraticObjectiveBuilder_ !=
null) {
3881 return quadraticObjectiveBuilder_.getMessageOrBuilder();
3883 return quadraticObjective_ ==
null ?
3884 com.google.ortools.linearsolver.MPQuadraticObjective.getDefaultInstance() : quadraticObjective_;
3895 private com.google.protobuf.SingleFieldBuilderV3<
3896 com.google.ortools.linearsolver.MPQuadraticObjective, com.google.ortools.linearsolver.MPQuadraticObjective.Builder, com.google.ortools.linearsolver.MPQuadraticObjectiveOrBuilder>
3897 getQuadraticObjectiveFieldBuilder() {
3898 if (quadraticObjectiveBuilder_ ==
null) {
3899 quadraticObjectiveBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
3900 com.google.ortools.linearsolver.MPQuadraticObjective, com.google.ortools.linearsolver.MPQuadraticObjective.Builder, com.google.ortools.linearsolver.MPQuadraticObjectiveOrBuilder>(
3902 getParentForChildren(),
3904 quadraticObjective_ =
null;
3906 return quadraticObjectiveBuilder_;
3909 private java.lang.Object name_ =
"";
3919 return ((bitField0_ & 0x00000040) != 0);
3930 java.lang.Object ref = name_;
3931 if (!(ref instanceof java.lang.String)) {
3932 com.google.protobuf.ByteString bs =
3933 (com.google.protobuf.ByteString) ref;
3934 java.lang.String s = bs.toStringUtf8();
3935 if (bs.isValidUtf8()) {
3940 return (java.lang.String) ref;
3951 public com.google.protobuf.ByteString
3953 java.lang.Object ref = name_;
3954 if (ref instanceof String) {
3955 com.google.protobuf.ByteString b =
3956 com.google.protobuf.ByteString.copyFromUtf8(
3957 (java.lang.String) ref);
3961 return (com.google.protobuf.ByteString) ref;
3974 java.lang.String value) {
3975 if (value ==
null) {
throw new NullPointerException(); }
3977 bitField0_ |= 0x00000040;
3991 bitField0_ = (bitField0_ & ~0x00000040);
4005 com.google.protobuf.ByteString value) {
4006 if (value ==
null) {
throw new NullPointerException(); }
4008 bitField0_ |= 0x00000040;
4014 private com.google.protobuf.SingleFieldBuilderV3<
4015 com.google.ortools.linearsolver.PartialVariableAssignment, com.google.ortools.linearsolver.PartialVariableAssignment.Builder, com.google.ortools.linearsolver.PartialVariableAssignmentOrBuilder> solutionHintBuilder_;
4035 return ((bitField0_ & 0x00000080) != 0);
4056 if (solutionHintBuilder_ ==
null) {
4057 return solutionHint_ ==
null ? com.google.ortools.linearsolver.PartialVariableAssignment.getDefaultInstance() : solutionHint_;
4059 return solutionHintBuilder_.getMessage();
4080 if (solutionHintBuilder_ ==
null) {
4081 if (value ==
null) {
4082 throw new NullPointerException();
4084 solutionHint_ = value;
4086 solutionHintBuilder_.setMessage(value);
4088 bitField0_ |= 0x00000080;
4110 com.google.ortools.linearsolver.PartialVariableAssignment.Builder builderForValue) {
4111 if (solutionHintBuilder_ ==
null) {
4112 solutionHint_ = builderForValue.build();
4114 solutionHintBuilder_.setMessage(builderForValue.build());
4116 bitField0_ |= 0x00000080;
4138 if (solutionHintBuilder_ ==
null) {
4139 if (((bitField0_ & 0x00000080) != 0) &&
4140 solutionHint_ !=
null &&
4141 solutionHint_ != com.google.ortools.linearsolver.PartialVariableAssignment.getDefaultInstance()) {
4144 solutionHint_ = value;
4147 solutionHintBuilder_.mergeFrom(value);
4149 if (solutionHint_ !=
null) {
4150 bitField0_ |= 0x00000080;
4173 bitField0_ = (bitField0_ & ~0x00000080);
4174 solutionHint_ =
null;
4175 if (solutionHintBuilder_ !=
null) {
4176 solutionHintBuilder_.dispose();
4177 solutionHintBuilder_ =
null;
4200 bitField0_ |= 0x00000080;
4202 return getSolutionHintFieldBuilder().getBuilder();
4222 if (solutionHintBuilder_ !=
null) {
4223 return solutionHintBuilder_.getMessageOrBuilder();
4225 return solutionHint_ ==
null ?
4226 com.google.ortools.linearsolver.PartialVariableAssignment.getDefaultInstance() : solutionHint_;
4246 private com.google.protobuf.SingleFieldBuilderV3<
4247 com.google.ortools.linearsolver.PartialVariableAssignment, com.google.ortools.linearsolver.PartialVariableAssignment.Builder, com.google.ortools.linearsolver.PartialVariableAssignmentOrBuilder>
4248 getSolutionHintFieldBuilder() {
4249 if (solutionHintBuilder_ ==
null) {
4250 solutionHintBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
4251 com.google.ortools.linearsolver.PartialVariableAssignment, com.google.ortools.linearsolver.PartialVariableAssignment.Builder, com.google.ortools.linearsolver.PartialVariableAssignmentOrBuilder>(
4253 getParentForChildren(),
4255 solutionHint_ =
null;
4257 return solutionHintBuilder_;
4260 private java.util.List<com.google.ortools.linearsolver.MPModelProto.Annotation> annotation_ =
4261 java.util.Collections.emptyList();
4262 private void ensureAnnotationIsMutable() {
4263 if (!((bitField0_ & 0x00000100) != 0)) {
4264 annotation_ =
new java.util.ArrayList<com.google.ortools.linearsolver.MPModelProto.Annotation>(annotation_);
4265 bitField0_ |= 0x00000100;
4269 private com.google.protobuf.RepeatedFieldBuilderV3<
4270 com.google.ortools.linearsolver.MPModelProto.Annotation, com.google.ortools.linearsolver.MPModelProto.Annotation.Builder, com.google.ortools.linearsolver.MPModelProto.AnnotationOrBuilder> annotationBuilder_;
4275 public java.util.List<com.google.ortools.linearsolver.MPModelProto.Annotation>
getAnnotationList() {
4276 if (annotationBuilder_ ==
null) {
4277 return java.util.Collections.unmodifiableList(annotation_);
4279 return annotationBuilder_.getMessageList();
4286 if (annotationBuilder_ ==
null) {
4287 return annotation_.size();
4289 return annotationBuilder_.getCount();
4296 if (annotationBuilder_ ==
null) {
4297 return annotation_.get(index);
4299 return annotationBuilder_.getMessage(index);
4306 int index, com.google.ortools.linearsolver.MPModelProto.Annotation value) {
4307 if (annotationBuilder_ ==
null) {
4308 if (value ==
null) {
4309 throw new NullPointerException();
4311 ensureAnnotationIsMutable();
4312 annotation_.set(index, value);
4315 annotationBuilder_.setMessage(index, value);
4323 int index, com.google.ortools.linearsolver.MPModelProto.Annotation.Builder builderForValue) {
4324 if (annotationBuilder_ ==
null) {
4325 ensureAnnotationIsMutable();
4326 annotation_.set(index, builderForValue.build());
4329 annotationBuilder_.setMessage(index, builderForValue.build());
4337 if (annotationBuilder_ ==
null) {
4338 if (value ==
null) {
4339 throw new NullPointerException();
4341 ensureAnnotationIsMutable();
4342 annotation_.add(value);
4345 annotationBuilder_.addMessage(value);
4353 int index, com.google.ortools.linearsolver.MPModelProto.Annotation value) {
4354 if (annotationBuilder_ ==
null) {
4355 if (value ==
null) {
4356 throw new NullPointerException();
4358 ensureAnnotationIsMutable();
4359 annotation_.add(index, value);
4362 annotationBuilder_.addMessage(index, value);
4370 com.google.ortools.linearsolver.MPModelProto.Annotation.Builder builderForValue) {
4371 if (annotationBuilder_ ==
null) {
4372 ensureAnnotationIsMutable();
4373 annotation_.add(builderForValue.build());
4376 annotationBuilder_.addMessage(builderForValue.build());
4384 int index, com.google.ortools.linearsolver.MPModelProto.Annotation.Builder builderForValue) {
4385 if (annotationBuilder_ ==
null) {
4386 ensureAnnotationIsMutable();
4387 annotation_.add(index, builderForValue.build());
4390 annotationBuilder_.addMessage(index, builderForValue.build());
4398 java.lang.Iterable<? extends com.google.ortools.linearsolver.MPModelProto.Annotation> values) {
4399 if (annotationBuilder_ ==
null) {
4400 ensureAnnotationIsMutable();
4401 com.google.protobuf.AbstractMessageLite.Builder.addAll(
4402 values, annotation_);
4405 annotationBuilder_.addAllMessages(values);
4413 if (annotationBuilder_ ==
null) {
4414 annotation_ = java.util.Collections.emptyList();
4415 bitField0_ = (bitField0_ & ~0x00000100);
4418 annotationBuilder_.clear();
4426 if (annotationBuilder_ ==
null) {
4427 ensureAnnotationIsMutable();
4428 annotation_.remove(index);
4431 annotationBuilder_.remove(index);
4440 return getAnnotationFieldBuilder().getBuilder(index);
4447 if (annotationBuilder_ ==
null) {
4448 return annotation_.get(index); }
else {
4449 return annotationBuilder_.getMessageOrBuilder(index);
4455 public java.util.List<? extends com.google.ortools.linearsolver.MPModelProto.AnnotationOrBuilder>
4457 if (annotationBuilder_ !=
null) {
4458 return annotationBuilder_.getMessageOrBuilderList();
4460 return java.util.Collections.unmodifiableList(annotation_);
4467 return getAnnotationFieldBuilder().addBuilder(
4468 com.google.ortools.linearsolver.MPModelProto.Annotation.getDefaultInstance());
4475 return getAnnotationFieldBuilder().addBuilder(
4476 index, com.google.ortools.linearsolver.MPModelProto.Annotation.getDefaultInstance());
4481 public java.util.List<com.google.ortools.linearsolver.MPModelProto.Annotation.Builder>
4483 return getAnnotationFieldBuilder().getBuilderList();
4485 private com.google.protobuf.RepeatedFieldBuilderV3<
4486 com.google.ortools.linearsolver.MPModelProto.Annotation, com.google.ortools.linearsolver.MPModelProto.Annotation.Builder, com.google.ortools.linearsolver.MPModelProto.AnnotationOrBuilder>
4487 getAnnotationFieldBuilder() {
4488 if (annotationBuilder_ ==
null) {
4489 annotationBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
4490 com.google.ortools.linearsolver.MPModelProto.Annotation, com.google.ortools.linearsolver.MPModelProto.Annotation.Builder, com.google.ortools.linearsolver.MPModelProto.AnnotationOrBuilder>(
4492 ((bitField0_ & 0x00000100) != 0),
4493 getParentForChildren(),
4497 return annotationBuilder_;
4501 final com.google.protobuf.UnknownFieldSet unknownFields) {
4507 final com.google.protobuf.UnknownFieldSet unknownFields) {
4518 DEFAULT_INSTANCE =
new com.google.ortools.linearsolver.MPModelProto();
4522 return DEFAULT_INSTANCE;
4525 @java.lang.Deprecated
public static final com.google.protobuf.Parser<
MPModelProto>
4529 com.google.protobuf.CodedInputStream input,
4530 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4531 throws com.google.protobuf.InvalidProtocolBufferException {
4534 builder.
mergeFrom(input, extensionRegistry);
4535 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
4537 }
catch (com.google.protobuf.UninitializedMessageException e) {
4538 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.
buildPartial());
4539 }
catch (java.io.IOException e) {
4540 throw new com.google.protobuf.InvalidProtocolBufferException(e)
4558 return DEFAULT_INSTANCE;