Google OR-Tools v9.9
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
MPSosConstraint.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
16public final class MPSosConstraint extends
17 com.google.protobuf.GeneratedMessageV3 implements
18 // @@protoc_insertion_point(message_implements:operations_research.MPSosConstraint)
20private static final long serialVersionUID = 0L;
21 // Use MPSosConstraint.newBuilder() to construct.
22 private MPSosConstraint(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
23 super(builder);
24 }
25 private MPSosConstraint() {
26 type_ = 0;
27 varIndex_ = emptyIntList();
28 weight_ = emptyDoubleList();
29 }
30
31 @java.lang.Override
32 @SuppressWarnings({"unused"})
33 protected java.lang.Object newInstance(
34 UnusedPrivateParameter unused) {
35 return new MPSosConstraint();
36 }
37
38 public static final com.google.protobuf.Descriptors.Descriptor
40 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSosConstraint_descriptor;
41 }
42
43 @java.lang.Override
44 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
46 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSosConstraint_fieldAccessorTable
47 .ensureFieldAccessorsInitialized(
48 com.google.ortools.linearsolver.MPSosConstraint.class, com.google.ortools.linearsolver.MPSosConstraint.Builder.class);
49 }
50
54 public enum Type
55 implements com.google.protobuf.ProtocolMessageEnum {
73 SOS2(1),
74 ;
75
83 public static final int SOS1_DEFAULT_VALUE = 0;
93 public static final int SOS2_VALUE = 1;
94
95
96 public final int getNumber() {
97 return value;
98 }
99
105 @java.lang.Deprecated
106 public static Type valueOf(int value) {
107 return forNumber(value);
108 }
109
114 public static Type forNumber(int value) {
115 switch (value) {
116 case 0: return SOS1_DEFAULT;
117 case 1: return SOS2;
118 default: return null;
119 }
120 }
121
122 public static com.google.protobuf.Internal.EnumLiteMap<Type>
124 return internalValueMap;
125 }
126 private static final com.google.protobuf.Internal.EnumLiteMap<
127 Type> internalValueMap =
128 new com.google.protobuf.Internal.EnumLiteMap<Type>() {
129 public Type findValueByNumber(int number) {
130 return Type.forNumber(number);
131 }
132 };
133
134 public final com.google.protobuf.Descriptors.EnumValueDescriptor
136 return getDescriptor().getValues().get(ordinal());
137 }
138 public final com.google.protobuf.Descriptors.EnumDescriptor
140 return getDescriptor();
141 }
142 public static final com.google.protobuf.Descriptors.EnumDescriptor
144 return com.google.ortools.linearsolver.MPSosConstraint.getDescriptor().getEnumTypes().get(0);
145 }
146
147 private static final Type[] VALUES = values();
148
149 public static Type valueOf(
150 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
151 if (desc.getType() != getDescriptor()) {
152 throw new java.lang.IllegalArgumentException(
153 "EnumValueDescriptor is not for this type.");
154 }
155 return VALUES[desc.getIndex()];
156 }
157
158 private final int value;
159
160 private Type(int value) {
161 this.value = value;
162 }
163
164 // @@protoc_insertion_point(enum_scope:operations_research.MPSosConstraint.Type)
165 }
166
167 private int bitField0_;
168 public static final int TYPE_FIELD_NUMBER = 1;
169 private int type_ = 0;
174 @java.lang.Override public boolean hasType() {
175 return ((bitField0_ & 0x00000001) != 0);
176 }
182 com.google.ortools.linearsolver.MPSosConstraint.Type result = com.google.ortools.linearsolver.MPSosConstraint.Type.forNumber(type_);
183 return result == null ? com.google.ortools.linearsolver.MPSosConstraint.Type.SOS1_DEFAULT : result;
184 }
185
186 public static final int VAR_INDEX_FIELD_NUMBER = 2;
187 @SuppressWarnings("serial")
188 private com.google.protobuf.Internal.IntList varIndex_ =
189 emptyIntList();
199 @java.lang.Override
200 public java.util.List<java.lang.Integer>
202 return varIndex_;
203 }
213 public int getVarIndexCount() {
214 return varIndex_.size();
215 }
226 public int getVarIndex(int index) {
227 return varIndex_.getInt(index);
228 }
229
230 public static final int WEIGHT_FIELD_NUMBER = 3;
231 @SuppressWarnings("serial")
232 private com.google.protobuf.Internal.DoubleList weight_ =
233 emptyDoubleList();
251 @java.lang.Override
252 public java.util.List<java.lang.Double>
254 return weight_;
255 }
273 public int getWeightCount() {
274 return weight_.size();
275 }
294 public double getWeight(int index) {
295 return weight_.getDouble(index);
296 }
297
298 private byte memoizedIsInitialized = -1;
299 @java.lang.Override
300 public final boolean isInitialized() {
301 byte isInitialized = memoizedIsInitialized;
302 if (isInitialized == 1) return true;
303 if (isInitialized == 0) return false;
304
305 memoizedIsInitialized = 1;
306 return true;
307 }
308
309 @java.lang.Override
310 public void writeTo(com.google.protobuf.CodedOutputStream output)
311 throws java.io.IOException {
312 if (((bitField0_ & 0x00000001) != 0)) {
313 output.writeEnum(1, type_);
314 }
315 for (int i = 0; i < varIndex_.size(); i++) {
316 output.writeInt32(2, varIndex_.getInt(i));
317 }
318 for (int i = 0; i < weight_.size(); i++) {
319 output.writeDouble(3, weight_.getDouble(i));
320 }
321 getUnknownFields().writeTo(output);
322 }
323
324 @java.lang.Override
325 public int getSerializedSize() {
326 int size = memoizedSize;
327 if (size != -1) return size;
328
329 size = 0;
330 if (((bitField0_ & 0x00000001) != 0)) {
331 size += com.google.protobuf.CodedOutputStream
332 .computeEnumSize(1, type_);
333 }
334 {
335 int dataSize = 0;
336 for (int i = 0; i < varIndex_.size(); i++) {
337 dataSize += com.google.protobuf.CodedOutputStream
338 .computeInt32SizeNoTag(varIndex_.getInt(i));
339 }
340 size += dataSize;
341 size += 1 * getVarIndexList().size();
342 }
343 {
344 int dataSize = 0;
345 dataSize = 8 * getWeightList().size();
346 size += dataSize;
347 size += 1 * getWeightList().size();
348 }
349 size += getUnknownFields().getSerializedSize();
350 memoizedSize = size;
351 return size;
352 }
353
354 @java.lang.Override
355 public boolean equals(final java.lang.Object obj) {
356 if (obj == this) {
357 return true;
358 }
359 if (!(obj instanceof com.google.ortools.linearsolver.MPSosConstraint)) {
360 return super.equals(obj);
361 }
362 com.google.ortools.linearsolver.MPSosConstraint other = (com.google.ortools.linearsolver.MPSosConstraint) obj;
363
364 if (hasType() != other.hasType()) return false;
365 if (hasType()) {
366 if (type_ != other.type_) return false;
367 }
368 if (!getVarIndexList()
369 .equals(other.getVarIndexList())) return false;
370 if (!getWeightList()
371 .equals(other.getWeightList())) return false;
372 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
373 return true;
374 }
375
376 @java.lang.Override
377 public int hashCode() {
378 if (memoizedHashCode != 0) {
379 return memoizedHashCode;
380 }
381 int hash = 41;
382 hash = (19 * hash) + getDescriptor().hashCode();
383 if (hasType()) {
384 hash = (37 * hash) + TYPE_FIELD_NUMBER;
385 hash = (53 * hash) + type_;
386 }
387 if (getVarIndexCount() > 0) {
388 hash = (37 * hash) + VAR_INDEX_FIELD_NUMBER;
389 hash = (53 * hash) + getVarIndexList().hashCode();
390 }
391 if (getWeightCount() > 0) {
392 hash = (37 * hash) + WEIGHT_FIELD_NUMBER;
393 hash = (53 * hash) + getWeightList().hashCode();
394 }
395 hash = (29 * hash) + getUnknownFields().hashCode();
396 memoizedHashCode = hash;
397 return hash;
398 }
399
401 java.nio.ByteBuffer data)
402 throws com.google.protobuf.InvalidProtocolBufferException {
403 return PARSER.parseFrom(data);
404 }
406 java.nio.ByteBuffer data,
407 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
408 throws com.google.protobuf.InvalidProtocolBufferException {
409 return PARSER.parseFrom(data, extensionRegistry);
410 }
412 com.google.protobuf.ByteString data)
413 throws com.google.protobuf.InvalidProtocolBufferException {
414 return PARSER.parseFrom(data);
415 }
417 com.google.protobuf.ByteString data,
418 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
419 throws com.google.protobuf.InvalidProtocolBufferException {
420 return PARSER.parseFrom(data, extensionRegistry);
421 }
423 throws com.google.protobuf.InvalidProtocolBufferException {
424 return PARSER.parseFrom(data);
425 }
427 byte[] data,
428 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
429 throws com.google.protobuf.InvalidProtocolBufferException {
430 return PARSER.parseFrom(data, extensionRegistry);
431 }
432 public static com.google.ortools.linearsolver.MPSosConstraint parseFrom(java.io.InputStream input)
433 throws java.io.IOException {
434 return com.google.protobuf.GeneratedMessageV3
435 .parseWithIOException(PARSER, input);
436 }
438 java.io.InputStream input,
439 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
440 throws java.io.IOException {
441 return com.google.protobuf.GeneratedMessageV3
442 .parseWithIOException(PARSER, input, extensionRegistry);
443 }
444
446 throws java.io.IOException {
447 return com.google.protobuf.GeneratedMessageV3
448 .parseDelimitedWithIOException(PARSER, input);
449 }
450
452 java.io.InputStream input,
453 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
454 throws java.io.IOException {
455 return com.google.protobuf.GeneratedMessageV3
456 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
457 }
459 com.google.protobuf.CodedInputStream input)
460 throws java.io.IOException {
461 return com.google.protobuf.GeneratedMessageV3
462 .parseWithIOException(PARSER, input);
463 }
465 com.google.protobuf.CodedInputStream input,
466 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
467 throws java.io.IOException {
468 return com.google.protobuf.GeneratedMessageV3
469 .parseWithIOException(PARSER, input, extensionRegistry);
470 }
471
472 @java.lang.Override
473 public Builder newBuilderForType() { return newBuilder(); }
474 public static Builder newBuilder() {
475 return DEFAULT_INSTANCE.toBuilder();
476 }
477 public static Builder newBuilder(com.google.ortools.linearsolver.MPSosConstraint prototype) {
478 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
479 }
480 @java.lang.Override
482 return this == DEFAULT_INSTANCE
483 ? new Builder() : new Builder().mergeFrom(this);
484 }
485
486 @java.lang.Override
488 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
489 Builder builder = new Builder(parent);
490 return builder;
491 }
501 public static final class Builder extends
502 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
503 // @@protoc_insertion_point(builder_implements:operations_research.MPSosConstraint)
504 com.google.ortools.linearsolver.MPSosConstraintOrBuilder {
505 public static final com.google.protobuf.Descriptors.Descriptor
507 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSosConstraint_descriptor;
508 }
509
510 @java.lang.Override
511 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
513 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSosConstraint_fieldAccessorTable
514 .ensureFieldAccessorsInitialized(
515 com.google.ortools.linearsolver.MPSosConstraint.class, com.google.ortools.linearsolver.MPSosConstraint.Builder.class);
516 }
517
518 // Construct using com.google.ortools.linearsolver.MPSosConstraint.newBuilder()
519 private Builder() {
520
521 }
522
523 private Builder(
524 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
525 super(parent);
526
527 }
528 @java.lang.Override
529 public Builder clear() {
530 super.clear();
531 bitField0_ = 0;
532 type_ = 0;
533 varIndex_ = emptyIntList();
534 weight_ = emptyDoubleList();
535 return this;
536 }
537
538 @java.lang.Override
539 public com.google.protobuf.Descriptors.Descriptor
541 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSosConstraint_descriptor;
542 }
543
544 @java.lang.Override
546 return com.google.ortools.linearsolver.MPSosConstraint.getDefaultInstance();
547 }
548
549 @java.lang.Override
552 if (!result.isInitialized()) {
553 throw newUninitializedMessageException(result);
554 }
555 return result;
556 }
557
558 @java.lang.Override
560 com.google.ortools.linearsolver.MPSosConstraint result = new com.google.ortools.linearsolver.MPSosConstraint(this);
561 if (bitField0_ != 0) { buildPartial0(result); }
562 onBuilt();
563 return result;
564 }
565
566 private void buildPartial0(com.google.ortools.linearsolver.MPSosConstraint result) {
567 int from_bitField0_ = bitField0_;
568 int to_bitField0_ = 0;
569 if (((from_bitField0_ & 0x00000001) != 0)) {
570 result.type_ = type_;
571 to_bitField0_ |= 0x00000001;
572 }
573 if (((from_bitField0_ & 0x00000002) != 0)) {
574 varIndex_.makeImmutable();
575 result.varIndex_ = varIndex_;
576 }
577 if (((from_bitField0_ & 0x00000004) != 0)) {
578 weight_.makeImmutable();
579 result.weight_ = weight_;
580 }
581 result.bitField0_ |= to_bitField0_;
582 }
583
584 @java.lang.Override
585 public Builder clone() {
586 return super.clone();
587 }
588 @java.lang.Override
590 com.google.protobuf.Descriptors.FieldDescriptor field,
591 java.lang.Object value) {
592 return super.setField(field, value);
593 }
594 @java.lang.Override
596 com.google.protobuf.Descriptors.FieldDescriptor field) {
597 return super.clearField(field);
598 }
599 @java.lang.Override
601 com.google.protobuf.Descriptors.OneofDescriptor oneof) {
602 return super.clearOneof(oneof);
603 }
604 @java.lang.Override
606 com.google.protobuf.Descriptors.FieldDescriptor field,
607 int index, java.lang.Object value) {
608 return super.setRepeatedField(field, index, value);
609 }
610 @java.lang.Override
612 com.google.protobuf.Descriptors.FieldDescriptor field,
613 java.lang.Object value) {
614 return super.addRepeatedField(field, value);
615 }
616 @java.lang.Override
617 public Builder mergeFrom(com.google.protobuf.Message other) {
618 if (other instanceof com.google.ortools.linearsolver.MPSosConstraint) {
619 return mergeFrom((com.google.ortools.linearsolver.MPSosConstraint)other);
620 } else {
621 super.mergeFrom(other);
622 return this;
623 }
624 }
625
626 public Builder mergeFrom(com.google.ortools.linearsolver.MPSosConstraint other) {
627 if (other == com.google.ortools.linearsolver.MPSosConstraint.getDefaultInstance()) return this;
628 if (other.hasType()) {
629 setType(other.getType());
630 }
631 if (!other.varIndex_.isEmpty()) {
632 if (varIndex_.isEmpty()) {
633 varIndex_ = other.varIndex_;
634 varIndex_.makeImmutable();
635 bitField0_ |= 0x00000002;
636 } else {
637 ensureVarIndexIsMutable();
638 varIndex_.addAll(other.varIndex_);
639 }
640 onChanged();
641 }
642 if (!other.weight_.isEmpty()) {
643 if (weight_.isEmpty()) {
644 weight_ = other.weight_;
645 weight_.makeImmutable();
646 bitField0_ |= 0x00000004;
647 } else {
648 ensureWeightIsMutable();
649 weight_.addAll(other.weight_);
650 }
651 onChanged();
652 }
653 this.mergeUnknownFields(other.getUnknownFields());
654 onChanged();
655 return this;
656 }
657
658 @java.lang.Override
659 public final boolean isInitialized() {
660 return true;
661 }
662
663 @java.lang.Override
665 com.google.protobuf.CodedInputStream input,
666 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
667 throws java.io.IOException {
668 if (extensionRegistry == null) {
669 throw new java.lang.NullPointerException();
670 }
671 try {
672 boolean done = false;
673 while (!done) {
674 int tag = input.readTag();
675 switch (tag) {
676 case 0:
677 done = true;
678 break;
679 case 8: {
680 int tmpRaw = input.readEnum();
682 com.google.ortools.linearsolver.MPSosConstraint.Type.forNumber(tmpRaw);
683 if (tmpValue == null) {
684 mergeUnknownVarintField(1, tmpRaw);
685 } else {
686 type_ = tmpRaw;
687 bitField0_ |= 0x00000001;
688 }
689 break;
690 } // case 8
691 case 16: {
692 int v = input.readInt32();
693 ensureVarIndexIsMutable();
694 varIndex_.addInt(v);
695 break;
696 } // case 16
697 case 18: {
698 int length = input.readRawVarint32();
699 int limit = input.pushLimit(length);
700 ensureVarIndexIsMutable();
701 while (input.getBytesUntilLimit() > 0) {
702 varIndex_.addInt(input.readInt32());
703 }
704 input.popLimit(limit);
705 break;
706 } // case 18
707 case 25: {
708 double v = input.readDouble();
709 ensureWeightIsMutable();
710 weight_.addDouble(v);
711 break;
712 } // case 25
713 case 26: {
714 int length = input.readRawVarint32();
715 int limit = input.pushLimit(length);
716 int alloc = length > 4096 ? 4096 : length;
717 ensureWeightIsMutable(alloc / 8);
718 while (input.getBytesUntilLimit() > 0) {
719 weight_.addDouble(input.readDouble());
720 }
721 input.popLimit(limit);
722 break;
723 } // case 26
724 default: {
725 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
726 done = true; // was an endgroup tag
727 }
728 break;
729 } // default:
730 } // switch (tag)
731 } // while (!done)
732 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
733 throw e.unwrapIOException();
734 } finally {
735 onChanged();
736 } // finally
737 return this;
738 }
739 private int bitField0_;
740
741 private int type_ = 0;
746 @java.lang.Override public boolean hasType() {
747 return ((bitField0_ & 0x00000001) != 0);
748 }
753 @java.lang.Override
755 com.google.ortools.linearsolver.MPSosConstraint.Type result = com.google.ortools.linearsolver.MPSosConstraint.Type.forNumber(type_);
756 return result == null ? com.google.ortools.linearsolver.MPSosConstraint.Type.SOS1_DEFAULT : result;
757 }
763 public Builder setType(com.google.ortools.linearsolver.MPSosConstraint.Type value) {
764 if (value == null) {
765 throw new NullPointerException();
766 }
767 bitField0_ |= 0x00000001;
768 type_ = value.getNumber();
769 onChanged();
770 return this;
771 }
777 bitField0_ = (bitField0_ & ~0x00000001);
778 type_ = 0;
779 onChanged();
780 return this;
781 }
782
783 private com.google.protobuf.Internal.IntList varIndex_ = emptyIntList();
784 private void ensureVarIndexIsMutable() {
785 if (!varIndex_.isModifiable()) {
786 varIndex_ = makeMutableCopy(varIndex_);
787 }
788 bitField0_ |= 0x00000002;
789 }
799 public java.util.List<java.lang.Integer>
801 varIndex_.makeImmutable();
802 return varIndex_;
803 }
813 public int getVarIndexCount() {
814 return varIndex_.size();
815 }
826 public int getVarIndex(int index) {
827 return varIndex_.getInt(index);
828 }
841 int index, int value) {
842
843 ensureVarIndexIsMutable();
844 varIndex_.setInt(index, value);
845 bitField0_ |= 0x00000002;
846 onChanged();
847 return this;
848 }
859 public Builder addVarIndex(int value) {
860
861 ensureVarIndexIsMutable();
862 varIndex_.addInt(value);
863 bitField0_ |= 0x00000002;
864 onChanged();
865 return this;
866 }
878 java.lang.Iterable<? extends java.lang.Integer> values) {
879 ensureVarIndexIsMutable();
880 com.google.protobuf.AbstractMessageLite.Builder.addAll(
881 values, varIndex_);
882 bitField0_ |= 0x00000002;
883 onChanged();
884 return this;
885 }
896 varIndex_ = emptyIntList();
897 bitField0_ = (bitField0_ & ~0x00000002);
898 onChanged();
899 return this;
900 }
901
902 private com.google.protobuf.Internal.DoubleList weight_ = emptyDoubleList();
903 private void ensureWeightIsMutable() {
904 if (!weight_.isModifiable()) {
905 weight_ = makeMutableCopy(weight_);
906 }
907 bitField0_ |= 0x00000004;
908 }
909 private void ensureWeightIsMutable(int capacity) {
910 if (!weight_.isModifiable()) {
911 weight_ = makeMutableCopy(weight_, capacity);
912 }
913 bitField0_ |= 0x00000004;
914 }
932 public java.util.List<java.lang.Double>
934 weight_.makeImmutable();
935 return weight_;
936 }
954 public int getWeightCount() {
955 return weight_.size();
956 }
975 public double getWeight(int index) {
976 return weight_.getDouble(index);
977 }
998 int index, double value) {
999
1000 ensureWeightIsMutable();
1001 weight_.setDouble(index, value);
1002 bitField0_ |= 0x00000004;
1003 onChanged();
1004 return this;
1005 }
1024 public Builder addWeight(double value) {
1025
1026 ensureWeightIsMutable();
1027 weight_.addDouble(value);
1028 bitField0_ |= 0x00000004;
1029 onChanged();
1030 return this;
1031 }
1051 java.lang.Iterable<? extends java.lang.Double> values) {
1052 ensureWeightIsMutable();
1053 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1054 values, weight_);
1055 bitField0_ |= 0x00000004;
1056 onChanged();
1057 return this;
1058 }
1077 weight_ = emptyDoubleList();
1078 bitField0_ = (bitField0_ & ~0x00000004);
1079 onChanged();
1080 return this;
1081 }
1082 @java.lang.Override
1084 final com.google.protobuf.UnknownFieldSet unknownFields) {
1085 return super.setUnknownFields(unknownFields);
1086 }
1087
1088 @java.lang.Override
1090 final com.google.protobuf.UnknownFieldSet unknownFields) {
1091 return super.mergeUnknownFields(unknownFields);
1092 }
1093
1094
1095 // @@protoc_insertion_point(builder_scope:operations_research.MPSosConstraint)
1096 }
1097
1098 // @@protoc_insertion_point(class_scope:operations_research.MPSosConstraint)
1099 private static final com.google.ortools.linearsolver.MPSosConstraint DEFAULT_INSTANCE;
1100 static {
1101 DEFAULT_INSTANCE = new com.google.ortools.linearsolver.MPSosConstraint();
1102 }
1103
1105 return DEFAULT_INSTANCE;
1106 }
1107
1108 @java.lang.Deprecated public static final com.google.protobuf.Parser<MPSosConstraint>
1109 PARSER = new com.google.protobuf.AbstractParser<MPSosConstraint>() {
1110 @java.lang.Override
1111 public MPSosConstraint parsePartialFrom(
1112 com.google.protobuf.CodedInputStream input,
1113 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1114 throws com.google.protobuf.InvalidProtocolBufferException {
1115 Builder builder = newBuilder();
1116 try {
1117 builder.mergeFrom(input, extensionRegistry);
1118 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1119 throw e.setUnfinishedMessage(builder.buildPartial());
1120 } catch (com.google.protobuf.UninitializedMessageException e) {
1121 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1122 } catch (java.io.IOException e) {
1123 throw new com.google.protobuf.InvalidProtocolBufferException(e)
1124 .setUnfinishedMessage(builder.buildPartial());
1125 }
1126 return builder.buildPartial();
1127 }
1128 };
1129
1130 public static com.google.protobuf.Parser<MPSosConstraint> parser() {
1131 return PARSER;
1132 }
1133
1134 @java.lang.Override
1135 public com.google.protobuf.Parser<MPSosConstraint> getParserForType() {
1136 return PARSER;
1137 }
1138
1139 @java.lang.Override
1143
1144}
1145
com.google.ortools.linearsolver.MPSosConstraint getDefaultInstanceForType()
Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
com.google.ortools.linearsolver.MPSosConstraint build()
Builder mergeFrom(com.google.ortools.linearsolver.MPSosConstraint other)
Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
Builder mergeFrom(com.google.protobuf.Message other)
Builder setType(com.google.ortools.linearsolver.MPSosConstraint.Type value)
com.google.ortools.linearsolver.MPSosConstraint buildPartial()
Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
com.google.ortools.linearsolver.MPSosConstraint.Type getType()
Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
Builder addAllWeight(java.lang.Iterable<? extends java.lang.Double > values)
Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
java.util.List< java.lang.Integer > getVarIndexList()
Builder addAllVarIndex(java.lang.Iterable<? extends java.lang.Integer > values)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
static com.google.ortools.linearsolver.MPSosConstraint parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
java.util.List< java.lang.Integer > getVarIndexList()
void writeTo(com.google.protobuf.CodedOutputStream output)
java.lang.Object newInstance(UnusedPrivateParameter unused)
static com.google.ortools.linearsolver.MPSosConstraint parseDelimitedFrom(java.io.InputStream input)
com.google.ortools.linearsolver.MPSosConstraint getDefaultInstanceForType()
static com.google.ortools.linearsolver.MPSosConstraint parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.linearsolver.MPSosConstraint.Type getType()
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
static Builder newBuilder(com.google.ortools.linearsolver.MPSosConstraint prototype)
static com.google.ortools.linearsolver.MPSosConstraint parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.linearsolver.MPSosConstraint parseFrom(com.google.protobuf.CodedInputStream input)
static com.google.ortools.linearsolver.MPSosConstraint parseFrom(java.nio.ByteBuffer data)
static com.google.ortools.linearsolver.MPSosConstraint getDefaultInstance()
static com.google.ortools.linearsolver.MPSosConstraint parseFrom(com.google.protobuf.ByteString data)
static com.google.ortools.linearsolver.MPSosConstraint parseFrom(java.io.InputStream input)
static com.google.ortools.linearsolver.MPSosConstraint parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.linearsolver.MPSosConstraint parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static final com.google.protobuf.Parser< MPSosConstraint > PARSER
java.util.List< java.lang.Double > getWeightList()
static com.google.ortools.linearsolver.MPSosConstraint parseFrom(byte[] data)
static com.google.ortools.linearsolver.MPSosConstraint parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser< MPSosConstraint > parser()
Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
boolean equals(final java.lang.Object obj)
com.google.protobuf.Parser< MPSosConstraint > getParserForType()
static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
static com.google.protobuf.Internal.EnumLiteMap< Type > internalGetValueMap()
final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()