Google OR-Tools v9.9
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
MPQuadraticObjective.java
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: ortools/linear_solver/linear_solver.proto
3
4// Protobuf Java Version: 3.25.3
5package com.google.ortools.linearsolver;
6
18public final class MPQuadraticObjective extends
19 com.google.protobuf.GeneratedMessageV3 implements
20 // @@protoc_insertion_point(message_implements:operations_research.MPQuadraticObjective)
22private static final long serialVersionUID = 0L;
23 // Use MPQuadraticObjective.newBuilder() to construct.
24 private MPQuadraticObjective(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
25 super(builder);
26 }
27 private MPQuadraticObjective() {
28 qvar1Index_ = emptyIntList();
29 qvar2Index_ = emptyIntList();
30 coefficient_ = emptyDoubleList();
31 }
32
33 @java.lang.Override
34 @SuppressWarnings({"unused"})
35 protected java.lang.Object newInstance(
36 UnusedPrivateParameter unused) {
37 return new MPQuadraticObjective();
38 }
39
40 public static final com.google.protobuf.Descriptors.Descriptor
42 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPQuadraticObjective_descriptor;
43 }
44
45 @java.lang.Override
46 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
48 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPQuadraticObjective_fieldAccessorTable
49 .ensureFieldAccessorsInitialized(
50 com.google.ortools.linearsolver.MPQuadraticObjective.class, com.google.ortools.linearsolver.MPQuadraticObjective.Builder.class);
51 }
52
53 public static final int QVAR1_INDEX_FIELD_NUMBER = 1;
54 @SuppressWarnings("serial")
55 private com.google.protobuf.Internal.IntList qvar1Index_ =
56 emptyIntList();
71 @java.lang.Override
72 public java.util.List<java.lang.Integer>
74 return qvar1Index_;
75 }
90 public int getQvar1IndexCount() {
91 return qvar1Index_.size();
92 }
108 public int getQvar1Index(int index) {
109 return qvar1Index_.getInt(index);
110 }
111
112 public static final int QVAR2_INDEX_FIELD_NUMBER = 2;
113 @SuppressWarnings("serial")
114 private com.google.protobuf.Internal.IntList qvar2Index_ =
115 emptyIntList();
120 @java.lang.Override
121 public java.util.List<java.lang.Integer>
123 return qvar2Index_;
124 }
129 public int getQvar2IndexCount() {
130 return qvar2Index_.size();
131 }
137 public int getQvar2Index(int index) {
138 return qvar2Index_.getInt(index);
139 }
140
141 public static final int COEFFICIENT_FIELD_NUMBER = 3;
142 @SuppressWarnings("serial")
143 private com.google.protobuf.Internal.DoubleList coefficient_ =
144 emptyDoubleList();
153 @java.lang.Override
154 public java.util.List<java.lang.Double>
156 return coefficient_;
157 }
166 public int getCoefficientCount() {
167 return coefficient_.size();
168 }
178 public double getCoefficient(int index) {
179 return coefficient_.getDouble(index);
180 }
181
182 private byte memoizedIsInitialized = -1;
183 @java.lang.Override
184 public final boolean isInitialized() {
185 byte isInitialized = memoizedIsInitialized;
186 if (isInitialized == 1) return true;
187 if (isInitialized == 0) return false;
188
189 memoizedIsInitialized = 1;
190 return true;
191 }
192
193 @java.lang.Override
194 public void writeTo(com.google.protobuf.CodedOutputStream output)
195 throws java.io.IOException {
196 for (int i = 0; i < qvar1Index_.size(); i++) {
197 output.writeInt32(1, qvar1Index_.getInt(i));
198 }
199 for (int i = 0; i < qvar2Index_.size(); i++) {
200 output.writeInt32(2, qvar2Index_.getInt(i));
201 }
202 for (int i = 0; i < coefficient_.size(); i++) {
203 output.writeDouble(3, coefficient_.getDouble(i));
204 }
205 getUnknownFields().writeTo(output);
206 }
207
208 @java.lang.Override
209 public int getSerializedSize() {
210 int size = memoizedSize;
211 if (size != -1) return size;
212
213 size = 0;
214 {
215 int dataSize = 0;
216 for (int i = 0; i < qvar1Index_.size(); i++) {
217 dataSize += com.google.protobuf.CodedOutputStream
218 .computeInt32SizeNoTag(qvar1Index_.getInt(i));
219 }
220 size += dataSize;
221 size += 1 * getQvar1IndexList().size();
222 }
223 {
224 int dataSize = 0;
225 for (int i = 0; i < qvar2Index_.size(); i++) {
226 dataSize += com.google.protobuf.CodedOutputStream
227 .computeInt32SizeNoTag(qvar2Index_.getInt(i));
228 }
229 size += dataSize;
230 size += 1 * getQvar2IndexList().size();
231 }
232 {
233 int dataSize = 0;
234 dataSize = 8 * getCoefficientList().size();
235 size += dataSize;
236 size += 1 * getCoefficientList().size();
237 }
238 size += getUnknownFields().getSerializedSize();
239 memoizedSize = size;
240 return size;
241 }
242
243 @java.lang.Override
244 public boolean equals(final java.lang.Object obj) {
245 if (obj == this) {
246 return true;
247 }
248 if (!(obj instanceof com.google.ortools.linearsolver.MPQuadraticObjective)) {
249 return super.equals(obj);
250 }
251 com.google.ortools.linearsolver.MPQuadraticObjective other = (com.google.ortools.linearsolver.MPQuadraticObjective) obj;
252
253 if (!getQvar1IndexList()
254 .equals(other.getQvar1IndexList())) return false;
255 if (!getQvar2IndexList()
256 .equals(other.getQvar2IndexList())) return false;
257 if (!getCoefficientList()
258 .equals(other.getCoefficientList())) return false;
259 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
260 return true;
261 }
262
263 @java.lang.Override
264 public int hashCode() {
265 if (memoizedHashCode != 0) {
266 return memoizedHashCode;
267 }
268 int hash = 41;
269 hash = (19 * hash) + getDescriptor().hashCode();
270 if (getQvar1IndexCount() > 0) {
271 hash = (37 * hash) + QVAR1_INDEX_FIELD_NUMBER;
272 hash = (53 * hash) + getQvar1IndexList().hashCode();
273 }
274 if (getQvar2IndexCount() > 0) {
275 hash = (37 * hash) + QVAR2_INDEX_FIELD_NUMBER;
276 hash = (53 * hash) + getQvar2IndexList().hashCode();
277 }
278 if (getCoefficientCount() > 0) {
279 hash = (37 * hash) + COEFFICIENT_FIELD_NUMBER;
280 hash = (53 * hash) + getCoefficientList().hashCode();
281 }
282 hash = (29 * hash) + getUnknownFields().hashCode();
283 memoizedHashCode = hash;
284 return hash;
285 }
286
288 java.nio.ByteBuffer data)
289 throws com.google.protobuf.InvalidProtocolBufferException {
290 return PARSER.parseFrom(data);
291 }
293 java.nio.ByteBuffer data,
294 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
295 throws com.google.protobuf.InvalidProtocolBufferException {
296 return PARSER.parseFrom(data, extensionRegistry);
297 }
299 com.google.protobuf.ByteString data)
300 throws com.google.protobuf.InvalidProtocolBufferException {
301 return PARSER.parseFrom(data);
302 }
304 com.google.protobuf.ByteString data,
305 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
306 throws com.google.protobuf.InvalidProtocolBufferException {
307 return PARSER.parseFrom(data, extensionRegistry);
308 }
310 throws com.google.protobuf.InvalidProtocolBufferException {
311 return PARSER.parseFrom(data);
312 }
314 byte[] data,
315 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
316 throws com.google.protobuf.InvalidProtocolBufferException {
317 return PARSER.parseFrom(data, extensionRegistry);
318 }
320 throws java.io.IOException {
321 return com.google.protobuf.GeneratedMessageV3
322 .parseWithIOException(PARSER, input);
323 }
325 java.io.InputStream input,
326 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
327 throws java.io.IOException {
328 return com.google.protobuf.GeneratedMessageV3
329 .parseWithIOException(PARSER, input, extensionRegistry);
330 }
331
333 throws java.io.IOException {
334 return com.google.protobuf.GeneratedMessageV3
335 .parseDelimitedWithIOException(PARSER, input);
336 }
337
339 java.io.InputStream input,
340 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
341 throws java.io.IOException {
342 return com.google.protobuf.GeneratedMessageV3
343 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
344 }
346 com.google.protobuf.CodedInputStream input)
347 throws java.io.IOException {
348 return com.google.protobuf.GeneratedMessageV3
349 .parseWithIOException(PARSER, input);
350 }
352 com.google.protobuf.CodedInputStream input,
353 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
354 throws java.io.IOException {
355 return com.google.protobuf.GeneratedMessageV3
356 .parseWithIOException(PARSER, input, extensionRegistry);
357 }
358
359 @java.lang.Override
360 public Builder newBuilderForType() { return newBuilder(); }
361 public static Builder newBuilder() {
362 return DEFAULT_INSTANCE.toBuilder();
363 }
364 public static Builder newBuilder(com.google.ortools.linearsolver.MPQuadraticObjective prototype) {
365 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
366 }
367 @java.lang.Override
369 return this == DEFAULT_INSTANCE
370 ? new Builder() : new Builder().mergeFrom(this);
371 }
372
373 @java.lang.Override
375 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
376 Builder builder = new Builder(parent);
377 return builder;
378 }
390 public static final class Builder extends
391 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
392 // @@protoc_insertion_point(builder_implements:operations_research.MPQuadraticObjective)
393 com.google.ortools.linearsolver.MPQuadraticObjectiveOrBuilder {
394 public static final com.google.protobuf.Descriptors.Descriptor
396 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPQuadraticObjective_descriptor;
397 }
398
399 @java.lang.Override
400 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
402 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPQuadraticObjective_fieldAccessorTable
403 .ensureFieldAccessorsInitialized(
404 com.google.ortools.linearsolver.MPQuadraticObjective.class, com.google.ortools.linearsolver.MPQuadraticObjective.Builder.class);
405 }
406
407 // Construct using com.google.ortools.linearsolver.MPQuadraticObjective.newBuilder()
408 private Builder() {
409
410 }
411
412 private Builder(
413 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
414 super(parent);
415
416 }
417 @java.lang.Override
418 public Builder clear() {
419 super.clear();
420 bitField0_ = 0;
421 qvar1Index_ = emptyIntList();
422 qvar2Index_ = emptyIntList();
423 coefficient_ = emptyDoubleList();
424 return this;
425 }
426
427 @java.lang.Override
428 public com.google.protobuf.Descriptors.Descriptor
430 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPQuadraticObjective_descriptor;
431 }
432
433 @java.lang.Override
435 return com.google.ortools.linearsolver.MPQuadraticObjective.getDefaultInstance();
436 }
437
438 @java.lang.Override
441 if (!result.isInitialized()) {
442 throw newUninitializedMessageException(result);
443 }
444 return result;
445 }
446
447 @java.lang.Override
449 com.google.ortools.linearsolver.MPQuadraticObjective result = new com.google.ortools.linearsolver.MPQuadraticObjective(this);
450 if (bitField0_ != 0) { buildPartial0(result); }
451 onBuilt();
452 return result;
453 }
454
455 private void buildPartial0(com.google.ortools.linearsolver.MPQuadraticObjective result) {
456 int from_bitField0_ = bitField0_;
457 if (((from_bitField0_ & 0x00000001) != 0)) {
458 qvar1Index_.makeImmutable();
459 result.qvar1Index_ = qvar1Index_;
460 }
461 if (((from_bitField0_ & 0x00000002) != 0)) {
462 qvar2Index_.makeImmutable();
463 result.qvar2Index_ = qvar2Index_;
464 }
465 if (((from_bitField0_ & 0x00000004) != 0)) {
466 coefficient_.makeImmutable();
467 result.coefficient_ = coefficient_;
468 }
469 }
470
471 @java.lang.Override
472 public Builder clone() {
473 return super.clone();
474 }
475 @java.lang.Override
477 com.google.protobuf.Descriptors.FieldDescriptor field,
478 java.lang.Object value) {
479 return super.setField(field, value);
480 }
481 @java.lang.Override
483 com.google.protobuf.Descriptors.FieldDescriptor field) {
484 return super.clearField(field);
485 }
486 @java.lang.Override
488 com.google.protobuf.Descriptors.OneofDescriptor oneof) {
489 return super.clearOneof(oneof);
490 }
491 @java.lang.Override
493 com.google.protobuf.Descriptors.FieldDescriptor field,
494 int index, java.lang.Object value) {
495 return super.setRepeatedField(field, index, value);
496 }
497 @java.lang.Override
499 com.google.protobuf.Descriptors.FieldDescriptor field,
500 java.lang.Object value) {
501 return super.addRepeatedField(field, value);
502 }
503 @java.lang.Override
504 public Builder mergeFrom(com.google.protobuf.Message other) {
505 if (other instanceof com.google.ortools.linearsolver.MPQuadraticObjective) {
506 return mergeFrom((com.google.ortools.linearsolver.MPQuadraticObjective)other);
507 } else {
508 super.mergeFrom(other);
509 return this;
510 }
511 }
512
513 public Builder mergeFrom(com.google.ortools.linearsolver.MPQuadraticObjective other) {
514 if (other == com.google.ortools.linearsolver.MPQuadraticObjective.getDefaultInstance()) return this;
515 if (!other.qvar1Index_.isEmpty()) {
516 if (qvar1Index_.isEmpty()) {
517 qvar1Index_ = other.qvar1Index_;
518 qvar1Index_.makeImmutable();
519 bitField0_ |= 0x00000001;
520 } else {
521 ensureQvar1IndexIsMutable();
522 qvar1Index_.addAll(other.qvar1Index_);
523 }
524 onChanged();
525 }
526 if (!other.qvar2Index_.isEmpty()) {
527 if (qvar2Index_.isEmpty()) {
528 qvar2Index_ = other.qvar2Index_;
529 qvar2Index_.makeImmutable();
530 bitField0_ |= 0x00000002;
531 } else {
532 ensureQvar2IndexIsMutable();
533 qvar2Index_.addAll(other.qvar2Index_);
534 }
535 onChanged();
536 }
537 if (!other.coefficient_.isEmpty()) {
538 if (coefficient_.isEmpty()) {
539 coefficient_ = other.coefficient_;
540 coefficient_.makeImmutable();
541 bitField0_ |= 0x00000004;
542 } else {
543 ensureCoefficientIsMutable();
544 coefficient_.addAll(other.coefficient_);
545 }
546 onChanged();
547 }
548 this.mergeUnknownFields(other.getUnknownFields());
549 onChanged();
550 return this;
551 }
552
553 @java.lang.Override
554 public final boolean isInitialized() {
555 return true;
556 }
557
558 @java.lang.Override
560 com.google.protobuf.CodedInputStream input,
561 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
562 throws java.io.IOException {
563 if (extensionRegistry == null) {
564 throw new java.lang.NullPointerException();
565 }
566 try {
567 boolean done = false;
568 while (!done) {
569 int tag = input.readTag();
570 switch (tag) {
571 case 0:
572 done = true;
573 break;
574 case 8: {
575 int v = input.readInt32();
576 ensureQvar1IndexIsMutable();
577 qvar1Index_.addInt(v);
578 break;
579 } // case 8
580 case 10: {
581 int length = input.readRawVarint32();
582 int limit = input.pushLimit(length);
583 ensureQvar1IndexIsMutable();
584 while (input.getBytesUntilLimit() > 0) {
585 qvar1Index_.addInt(input.readInt32());
586 }
587 input.popLimit(limit);
588 break;
589 } // case 10
590 case 16: {
591 int v = input.readInt32();
592 ensureQvar2IndexIsMutable();
593 qvar2Index_.addInt(v);
594 break;
595 } // case 16
596 case 18: {
597 int length = input.readRawVarint32();
598 int limit = input.pushLimit(length);
599 ensureQvar2IndexIsMutable();
600 while (input.getBytesUntilLimit() > 0) {
601 qvar2Index_.addInt(input.readInt32());
602 }
603 input.popLimit(limit);
604 break;
605 } // case 18
606 case 25: {
607 double v = input.readDouble();
608 ensureCoefficientIsMutable();
609 coefficient_.addDouble(v);
610 break;
611 } // case 25
612 case 26: {
613 int length = input.readRawVarint32();
614 int limit = input.pushLimit(length);
615 int alloc = length > 4096 ? 4096 : length;
616 ensureCoefficientIsMutable(alloc / 8);
617 while (input.getBytesUntilLimit() > 0) {
618 coefficient_.addDouble(input.readDouble());
619 }
620 input.popLimit(limit);
621 break;
622 } // case 26
623 default: {
624 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
625 done = true; // was an endgroup tag
626 }
627 break;
628 } // default:
629 } // switch (tag)
630 } // while (!done)
631 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
632 throw e.unwrapIOException();
633 } finally {
634 onChanged();
635 } // finally
636 return this;
637 }
638 private int bitField0_;
639
640 private com.google.protobuf.Internal.IntList qvar1Index_ = emptyIntList();
641 private void ensureQvar1IndexIsMutable() {
642 if (!qvar1Index_.isModifiable()) {
643 qvar1Index_ = makeMutableCopy(qvar1Index_);
644 }
645 bitField0_ |= 0x00000001;
646 }
661 public java.util.List<java.lang.Integer>
663 qvar1Index_.makeImmutable();
664 return qvar1Index_;
665 }
680 public int getQvar1IndexCount() {
681 return qvar1Index_.size();
682 }
698 public int getQvar1Index(int index) {
699 return qvar1Index_.getInt(index);
700 }
718 int index, int value) {
719
720 ensureQvar1IndexIsMutable();
721 qvar1Index_.setInt(index, value);
722 bitField0_ |= 0x00000001;
723 onChanged();
724 return this;
725 }
741 public Builder addQvar1Index(int value) {
742
743 ensureQvar1IndexIsMutable();
744 qvar1Index_.addInt(value);
745 bitField0_ |= 0x00000001;
746 onChanged();
747 return this;
748 }
765 java.lang.Iterable<? extends java.lang.Integer> values) {
766 ensureQvar1IndexIsMutable();
767 com.google.protobuf.AbstractMessageLite.Builder.addAll(
768 values, qvar1Index_);
769 bitField0_ |= 0x00000001;
770 onChanged();
771 return this;
772 }
788 qvar1Index_ = emptyIntList();
789 bitField0_ = (bitField0_ & ~0x00000001);
790 onChanged();
791 return this;
792 }
793
794 private com.google.protobuf.Internal.IntList qvar2Index_ = emptyIntList();
795 private void ensureQvar2IndexIsMutable() {
796 if (!qvar2Index_.isModifiable()) {
797 qvar2Index_ = makeMutableCopy(qvar2Index_);
798 }
799 bitField0_ |= 0x00000002;
800 }
805 public java.util.List<java.lang.Integer>
807 qvar2Index_.makeImmutable();
808 return qvar2Index_;
809 }
814 public int getQvar2IndexCount() {
815 return qvar2Index_.size();
816 }
822 public int getQvar2Index(int index) {
823 return qvar2Index_.getInt(index);
824 }
832 int index, int value) {
833
834 ensureQvar2IndexIsMutable();
835 qvar2Index_.setInt(index, value);
836 bitField0_ |= 0x00000002;
837 onChanged();
838 return this;
839 }
845 public Builder addQvar2Index(int value) {
846
847 ensureQvar2IndexIsMutable();
848 qvar2Index_.addInt(value);
849 bitField0_ |= 0x00000002;
850 onChanged();
851 return this;
852 }
859 java.lang.Iterable<? extends java.lang.Integer> values) {
860 ensureQvar2IndexIsMutable();
861 com.google.protobuf.AbstractMessageLite.Builder.addAll(
862 values, qvar2Index_);
863 bitField0_ |= 0x00000002;
864 onChanged();
865 return this;
866 }
872 qvar2Index_ = emptyIntList();
873 bitField0_ = (bitField0_ & ~0x00000002);
874 onChanged();
875 return this;
876 }
877
878 private com.google.protobuf.Internal.DoubleList coefficient_ = emptyDoubleList();
879 private void ensureCoefficientIsMutable() {
880 if (!coefficient_.isModifiable()) {
881 coefficient_ = makeMutableCopy(coefficient_);
882 }
883 bitField0_ |= 0x00000004;
884 }
885 private void ensureCoefficientIsMutable(int capacity) {
886 if (!coefficient_.isModifiable()) {
887 coefficient_ = makeMutableCopy(coefficient_, capacity);
888 }
889 bitField0_ |= 0x00000004;
890 }
899 public java.util.List<java.lang.Double>
901 coefficient_.makeImmutable();
902 return coefficient_;
903 }
912 public int getCoefficientCount() {
913 return coefficient_.size();
914 }
924 public double getCoefficient(int index) {
925 return coefficient_.getDouble(index);
926 }
938 int index, double value) {
939
940 ensureCoefficientIsMutable();
941 coefficient_.setDouble(index, value);
942 bitField0_ |= 0x00000004;
943 onChanged();
944 return this;
945 }
955 public Builder addCoefficient(double value) {
956
957 ensureCoefficientIsMutable();
958 coefficient_.addDouble(value);
959 bitField0_ |= 0x00000004;
960 onChanged();
961 return this;
962 }
973 java.lang.Iterable<? extends java.lang.Double> values) {
974 ensureCoefficientIsMutable();
975 com.google.protobuf.AbstractMessageLite.Builder.addAll(
976 values, coefficient_);
977 bitField0_ |= 0x00000004;
978 onChanged();
979 return this;
980 }
990 coefficient_ = emptyDoubleList();
991 bitField0_ = (bitField0_ & ~0x00000004);
992 onChanged();
993 return this;
994 }
995 @java.lang.Override
997 final com.google.protobuf.UnknownFieldSet unknownFields) {
998 return super.setUnknownFields(unknownFields);
999 }
1000
1001 @java.lang.Override
1003 final com.google.protobuf.UnknownFieldSet unknownFields) {
1004 return super.mergeUnknownFields(unknownFields);
1005 }
1006
1007
1008 // @@protoc_insertion_point(builder_scope:operations_research.MPQuadraticObjective)
1009 }
1010
1011 // @@protoc_insertion_point(class_scope:operations_research.MPQuadraticObjective)
1012 private static final com.google.ortools.linearsolver.MPQuadraticObjective DEFAULT_INSTANCE;
1013 static {
1014 DEFAULT_INSTANCE = new com.google.ortools.linearsolver.MPQuadraticObjective();
1015 }
1016
1018 return DEFAULT_INSTANCE;
1019 }
1020
1021 @java.lang.Deprecated public static final com.google.protobuf.Parser<MPQuadraticObjective>
1022 PARSER = new com.google.protobuf.AbstractParser<MPQuadraticObjective>() {
1023 @java.lang.Override
1024 public MPQuadraticObjective parsePartialFrom(
1025 com.google.protobuf.CodedInputStream input,
1026 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1027 throws com.google.protobuf.InvalidProtocolBufferException {
1028 Builder builder = newBuilder();
1029 try {
1030 builder.mergeFrom(input, extensionRegistry);
1031 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1032 throw e.setUnfinishedMessage(builder.buildPartial());
1033 } catch (com.google.protobuf.UninitializedMessageException e) {
1034 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1035 } catch (java.io.IOException e) {
1036 throw new com.google.protobuf.InvalidProtocolBufferException(e)
1037 .setUnfinishedMessage(builder.buildPartial());
1038 }
1039 return builder.buildPartial();
1040 }
1041 };
1042
1043 public static com.google.protobuf.Parser<MPQuadraticObjective> parser() {
1044 return PARSER;
1045 }
1046
1047 @java.lang.Override
1048 public com.google.protobuf.Parser<MPQuadraticObjective> getParserForType() {
1049 return PARSER;
1050 }
1051
1052 @java.lang.Override
1056
1057}
1058
com.google.ortools.linearsolver.MPQuadraticObjective buildPartial()
final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
com.google.ortools.linearsolver.MPQuadraticObjective build()
Builder addAllQvar2Index(java.lang.Iterable<? extends java.lang.Integer > values)
Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Builder addAllCoefficient(java.lang.Iterable<? extends java.lang.Double > values)
Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
com.google.ortools.linearsolver.MPQuadraticObjective getDefaultInstanceForType()
Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Builder mergeFrom(com.google.ortools.linearsolver.MPQuadraticObjective other)
Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
Builder addAllQvar1Index(java.lang.Iterable<? extends java.lang.Integer > values)
java.util.List< java.lang.Integer > getQvar2IndexList()
static Builder newBuilder(com.google.ortools.linearsolver.MPQuadraticObjective prototype)
static com.google.ortools.linearsolver.MPQuadraticObjective parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser< MPQuadraticObjective > parser()
static com.google.ortools.linearsolver.MPQuadraticObjective parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
java.util.List< java.lang.Integer > getQvar1IndexList()
static final com.google.protobuf.Parser< MPQuadraticObjective > PARSER
static com.google.ortools.linearsolver.MPQuadraticObjective parseDelimitedFrom(java.io.InputStream input)
static com.google.ortools.linearsolver.MPQuadraticObjective parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.linearsolver.MPQuadraticObjective parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
java.lang.Object newInstance(UnusedPrivateParameter unused)
static com.google.ortools.linearsolver.MPQuadraticObjective parseFrom(com.google.protobuf.ByteString data)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
static com.google.ortools.linearsolver.MPQuadraticObjective parseFrom(com.google.protobuf.CodedInputStream input)
static com.google.ortools.linearsolver.MPQuadraticObjective getDefaultInstance()
com.google.protobuf.Parser< MPQuadraticObjective > getParserForType()
void writeTo(com.google.protobuf.CodedOutputStream output)
static com.google.ortools.linearsolver.MPQuadraticObjective parseFrom(byte[] data)
static com.google.ortools.linearsolver.MPQuadraticObjective parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.linearsolver.MPQuadraticObjective parseFrom(java.nio.ByteBuffer data)
static com.google.ortools.linearsolver.MPQuadraticObjective parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
com.google.ortools.linearsolver.MPQuadraticObjective getDefaultInstanceForType()
static com.google.ortools.linearsolver.MPQuadraticObjective parseFrom(java.io.InputStream input)