Google OR-Tools v9.14
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// NO CHECKED-IN PROTOBUF GENCODE
3// source: ortools/linear_solver/linear_solver.proto
4// Protobuf Java Version: 4.31.1
5
6package com.google.ortools.linearsolver;
7
17@com.google.protobuf.Generated
18public final class MPSosConstraint extends
19 com.google.protobuf.GeneratedMessage implements
20 // @@protoc_insertion_point(message_implements:operations_research.MPSosConstraint)
22private static final long serialVersionUID = 0L;
23 static {
24 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
25 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
26 /* major= */ 4,
27 /* minor= */ 31,
28 /* patch= */ 1,
29 /* suffix= */ "",
30 MPSosConstraint.class.getName());
31 }
32 // Use MPSosConstraint.newBuilder() to construct.
33 private MPSosConstraint(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
34 super(builder);
35 }
36 private MPSosConstraint() {
37 type_ = 0;
38 varIndex_ = emptyIntList();
39 weight_ = emptyDoubleList();
40 }
41
42 public static final com.google.protobuf.Descriptors.Descriptor
44 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSosConstraint_descriptor;
45 }
46
47 @java.lang.Override
48 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
50 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSosConstraint_fieldAccessorTable
51 .ensureFieldAccessorsInitialized(
52 com.google.ortools.linearsolver.MPSosConstraint.class, com.google.ortools.linearsolver.MPSosConstraint.Builder.class);
53 }
54
58 public enum Type
59 implements com.google.protobuf.ProtocolMessageEnum {
77 SOS2(1),
78 ;
79
80 static {
81 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
82 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
83 /* major= */ 4,
84 /* minor= */ 31,
85 /* patch= */ 1,
86 /* suffix= */ "",
87 Type.class.getName());
88 }
96 public static final int SOS1_DEFAULT_VALUE = 0;
106 public static final int SOS2_VALUE = 1;
107
108
109 public final int getNumber() {
110 return value;
111 }
112
118 @java.lang.Deprecated
119 public static Type valueOf(int value) {
120 return forNumber(value);
121 }
122
127 public static Type forNumber(int value) {
128 switch (value) {
129 case 0: return SOS1_DEFAULT;
130 case 1: return SOS2;
131 default: return null;
132 }
133 }
134
135 public static com.google.protobuf.Internal.EnumLiteMap<Type>
137 return internalValueMap;
138 }
139 private static final com.google.protobuf.Internal.EnumLiteMap<
140 Type> internalValueMap =
141 new com.google.protobuf.Internal.EnumLiteMap<Type>() {
142 public Type findValueByNumber(int number) {
143 return Type.forNumber(number);
144 }
145 };
146
147 public final com.google.protobuf.Descriptors.EnumValueDescriptor
149 return getDescriptor().getValues().get(ordinal());
150 }
151 public final com.google.protobuf.Descriptors.EnumDescriptor
153 return getDescriptor();
154 }
155 public static com.google.protobuf.Descriptors.EnumDescriptor
157 return com.google.ortools.linearsolver.MPSosConstraint.getDescriptor().getEnumTypes().get(0);
158 }
159
160 private static final Type[] VALUES = values();
161
162 public static Type valueOf(
163 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
164 if (desc.getType() != getDescriptor()) {
165 throw new java.lang.IllegalArgumentException(
166 "EnumValueDescriptor is not for this type.");
167 }
168 return VALUES[desc.getIndex()];
169 }
170
171 private final int value;
172
173 private Type(int value) {
174 this.value = value;
175 }
176
177 // @@protoc_insertion_point(enum_scope:operations_research.MPSosConstraint.Type)
178 }
179
180 private int bitField0_;
181 public static final int TYPE_FIELD_NUMBER = 1;
182 private int type_ = 0;
187 @java.lang.Override public boolean hasType() {
188 return ((bitField0_ & 0x00000001) != 0);
189 }
190
195 com.google.ortools.linearsolver.MPSosConstraint.Type result = com.google.ortools.linearsolver.MPSosConstraint.Type.forNumber(type_);
197 }
198
199 public static final int VAR_INDEX_FIELD_NUMBER = 2;
200 @SuppressWarnings("serial")
201 private com.google.protobuf.Internal.IntList varIndex_ =
202 emptyIntList();
212 @java.lang.Override
213 public java.util.List<java.lang.Integer>
215 return varIndex_;
216 }
217
226 public int getVarIndexCount() {
227 return varIndex_.size();
228 }
229
239 public int getVarIndex(int index) {
240 return varIndex_.getInt(index);
241 }
242
243 public static final int WEIGHT_FIELD_NUMBER = 3;
244 @SuppressWarnings("serial")
245 private com.google.protobuf.Internal.DoubleList weight_ =
246 emptyDoubleList();
264 @java.lang.Override
265 public java.util.List<java.lang.Double>
267 return weight_;
268 }
269
286 public int getWeightCount() {
287 return weight_.size();
288 }
289
307 public double getWeight(int index) {
308 return weight_.getDouble(index);
309 }
310
311 private byte memoizedIsInitialized = -1;
312 @java.lang.Override
313 public final boolean isInitialized() {
314 byte isInitialized = memoizedIsInitialized;
315 if (isInitialized == 1) return true;
316 if (isInitialized == 0) return false;
317
318 memoizedIsInitialized = 1;
319 return true;
320 }
321
322 @java.lang.Override
323 public void writeTo(com.google.protobuf.CodedOutputStream output)
324 throws java.io.IOException {
325 if (((bitField0_ & 0x00000001) != 0)) {
326 output.writeEnum(1, type_);
327 }
328 for (int i = 0; i < varIndex_.size(); i++) {
329 output.writeInt32(2, varIndex_.getInt(i));
330 }
331 for (int i = 0; i < weight_.size(); i++) {
332 output.writeDouble(3, weight_.getDouble(i));
333 }
334 getUnknownFields().writeTo(output);
335 }
336
337 @java.lang.Override
338 public int getSerializedSize() {
339 int size = memoizedSize;
340 if (size != -1) return size;
341
342 size = 0;
343 if (((bitField0_ & 0x00000001) != 0)) {
344 size += com.google.protobuf.CodedOutputStream
345 .computeEnumSize(1, type_);
346 }
347 {
348 int dataSize = 0;
349 for (int i = 0; i < varIndex_.size(); i++) {
350 dataSize += com.google.protobuf.CodedOutputStream
351 .computeInt32SizeNoTag(varIndex_.getInt(i));
352 }
353 size += dataSize;
354 size += 1 * getVarIndexList().size();
355 }
356 {
357 int dataSize = 0;
358 dataSize = 8 * getWeightList().size();
359 size += dataSize;
360 size += 1 * getWeightList().size();
361 }
362 size += getUnknownFields().getSerializedSize();
363 memoizedSize = size;
364 return size;
365 }
366
367 @java.lang.Override
368 public boolean equals(final java.lang.Object obj) {
369 if (obj == this) {
370 return true;
371 }
372 if (!(obj instanceof com.google.ortools.linearsolver.MPSosConstraint)) {
373 return super.equals(obj);
374 }
375 com.google.ortools.linearsolver.MPSosConstraint other = (com.google.ortools.linearsolver.MPSosConstraint) obj;
376
377 if (hasType() != other.hasType()) return false;
378 if (hasType()) {
379 if (type_ != other.type_) return false;
380 }
381 if (!getVarIndexList()
382 .equals(other.getVarIndexList())) return false;
383 if (!getWeightList()
384 .equals(other.getWeightList())) return false;
385 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
386 return true;
387 }
388
389 @java.lang.Override
390 public int hashCode() {
391 if (memoizedHashCode != 0) {
392 return memoizedHashCode;
393 }
394 int hash = 41;
395 hash = (19 * hash) + getDescriptor().hashCode();
396 if (hasType()) {
397 hash = (37 * hash) + TYPE_FIELD_NUMBER;
398 hash = (53 * hash) + type_;
399 }
400 if (getVarIndexCount() > 0) {
401 hash = (37 * hash) + VAR_INDEX_FIELD_NUMBER;
402 hash = (53 * hash) + getVarIndexList().hashCode();
403 }
404 if (getWeightCount() > 0) {
405 hash = (37 * hash) + WEIGHT_FIELD_NUMBER;
406 hash = (53 * hash) + getWeightList().hashCode();
407 }
408 hash = (29 * hash) + getUnknownFields().hashCode();
409 memoizedHashCode = hash;
410 return hash;
411 }
412
414 java.nio.ByteBuffer data)
415 throws com.google.protobuf.InvalidProtocolBufferException {
416 return PARSER.parseFrom(data);
417 }
419 java.nio.ByteBuffer data,
420 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
421 throws com.google.protobuf.InvalidProtocolBufferException {
422 return PARSER.parseFrom(data, extensionRegistry);
423 }
425 com.google.protobuf.ByteString data)
426 throws com.google.protobuf.InvalidProtocolBufferException {
427 return PARSER.parseFrom(data);
428 }
430 com.google.protobuf.ByteString data,
431 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
432 throws com.google.protobuf.InvalidProtocolBufferException {
433 return PARSER.parseFrom(data, extensionRegistry);
434 }
436 throws com.google.protobuf.InvalidProtocolBufferException {
437 return PARSER.parseFrom(data);
438 }
440 byte[] data,
441 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
442 throws com.google.protobuf.InvalidProtocolBufferException {
443 return PARSER.parseFrom(data, extensionRegistry);
444 }
445 public static com.google.ortools.linearsolver.MPSosConstraint parseFrom(java.io.InputStream input)
446 throws java.io.IOException {
447 return com.google.protobuf.GeneratedMessage
448 .parseWithIOException(PARSER, input);
449 }
451 java.io.InputStream input,
452 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
453 throws java.io.IOException {
454 return com.google.protobuf.GeneratedMessage
455 .parseWithIOException(PARSER, input, extensionRegistry);
456 }
457
459 throws java.io.IOException {
460 return com.google.protobuf.GeneratedMessage
461 .parseDelimitedWithIOException(PARSER, input);
462 }
463
465 java.io.InputStream input,
466 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
467 throws java.io.IOException {
468 return com.google.protobuf.GeneratedMessage
469 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
470 }
472 com.google.protobuf.CodedInputStream input)
473 throws java.io.IOException {
474 return com.google.protobuf.GeneratedMessage
475 .parseWithIOException(PARSER, input);
476 }
478 com.google.protobuf.CodedInputStream input,
479 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
480 throws java.io.IOException {
481 return com.google.protobuf.GeneratedMessage
482 .parseWithIOException(PARSER, input, extensionRegistry);
483 }
484
485 @java.lang.Override
486 public Builder newBuilderForType() { return newBuilder(); }
487 public static Builder newBuilder() {
488 return DEFAULT_INSTANCE.toBuilder();
489 }
490 public static Builder newBuilder(com.google.ortools.linearsolver.MPSosConstraint prototype) {
491 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
492 }
493 @java.lang.Override
495 return this == DEFAULT_INSTANCE
496 ? new Builder() : new Builder().mergeFrom(this);
497 }
498
499 @java.lang.Override
501 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
502 Builder builder = new Builder(parent);
503 return builder;
504 }
505
514 public static final class Builder extends
515 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
516 // @@protoc_insertion_point(builder_implements:operations_research.MPSosConstraint)
518 public static final com.google.protobuf.Descriptors.Descriptor
520 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSosConstraint_descriptor;
521 }
522
523 @java.lang.Override
524 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
526 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSosConstraint_fieldAccessorTable
527 .ensureFieldAccessorsInitialized(
528 com.google.ortools.linearsolver.MPSosConstraint.class, com.google.ortools.linearsolver.MPSosConstraint.Builder.class);
529 }
530
531 // Construct using com.google.ortools.linearsolver.MPSosConstraint.newBuilder()
532 private Builder() {
533
534 }
535
536 private Builder(
537 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
538 super(parent);
539
540 }
541 @java.lang.Override
542 public Builder clear() {
543 super.clear();
544 bitField0_ = 0;
545 type_ = 0;
546 varIndex_ = emptyIntList();
547 weight_ = emptyDoubleList();
548 return this;
549 }
550
551 @java.lang.Override
552 public com.google.protobuf.Descriptors.Descriptor
554 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSosConstraint_descriptor;
555 }
556
557 @java.lang.Override
559 return com.google.ortools.linearsolver.MPSosConstraint.getDefaultInstance();
560 }
561
562 @java.lang.Override
565 if (!result.isInitialized()) {
566 throw newUninitializedMessageException(result);
567 }
568 return result;
569 }
570
571 @java.lang.Override
573 com.google.ortools.linearsolver.MPSosConstraint result = new com.google.ortools.linearsolver.MPSosConstraint(this);
574 if (bitField0_ != 0) { buildPartial0(result); }
575 onBuilt();
576 return result;
577 }
578
579 private void buildPartial0(com.google.ortools.linearsolver.MPSosConstraint result) {
580 int from_bitField0_ = bitField0_;
581 int to_bitField0_ = 0;
582 if (((from_bitField0_ & 0x00000001) != 0)) {
583 result.type_ = type_;
584 to_bitField0_ |= 0x00000001;
585 }
586 if (((from_bitField0_ & 0x00000002) != 0)) {
587 varIndex_.makeImmutable();
588 result.varIndex_ = varIndex_;
589 }
590 if (((from_bitField0_ & 0x00000004) != 0)) {
591 weight_.makeImmutable();
592 result.weight_ = weight_;
593 }
594 result.bitField0_ |= to_bitField0_;
595 }
596
597 @java.lang.Override
598 public Builder mergeFrom(com.google.protobuf.Message other) {
599 if (other instanceof com.google.ortools.linearsolver.MPSosConstraint) {
600 return mergeFrom((com.google.ortools.linearsolver.MPSosConstraint)other);
601 } else {
602 super.mergeFrom(other);
603 return this;
604 }
605 }
606
607 public Builder mergeFrom(com.google.ortools.linearsolver.MPSosConstraint other) {
608 if (other == com.google.ortools.linearsolver.MPSosConstraint.getDefaultInstance()) return this;
609 if (other.hasType()) {
610 setType(other.getType());
611 }
612 if (!other.varIndex_.isEmpty()) {
613 if (varIndex_.isEmpty()) {
614 varIndex_ = other.varIndex_;
615 varIndex_.makeImmutable();
616 bitField0_ |= 0x00000002;
617 } else {
618 ensureVarIndexIsMutable();
619 varIndex_.addAll(other.varIndex_);
620 }
621 onChanged();
622 }
623 if (!other.weight_.isEmpty()) {
624 if (weight_.isEmpty()) {
625 weight_ = other.weight_;
626 weight_.makeImmutable();
627 bitField0_ |= 0x00000004;
628 } else {
629 ensureWeightIsMutable();
630 weight_.addAll(other.weight_);
631 }
632 onChanged();
633 }
634 this.mergeUnknownFields(other.getUnknownFields());
635 onChanged();
636 return this;
637 }
638
639 @java.lang.Override
640 public final boolean isInitialized() {
641 return true;
642 }
643
644 @java.lang.Override
645 public Builder mergeFrom(
646 com.google.protobuf.CodedInputStream input,
647 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
648 throws java.io.IOException {
649 if (extensionRegistry == null) {
650 throw new java.lang.NullPointerException();
651 }
652 try {
653 boolean done = false;
654 while (!done) {
655 int tag = input.readTag();
656 switch (tag) {
657 case 0:
658 done = true;
659 break;
660 case 8: {
661 int tmpRaw = input.readEnum();
663 com.google.ortools.linearsolver.MPSosConstraint.Type.forNumber(tmpRaw);
664 if (tmpValue == null) {
665 mergeUnknownVarintField(1, tmpRaw);
666 } else {
667 type_ = tmpRaw;
668 bitField0_ |= 0x00000001;
669 }
670 break;
671 } // case 8
672 case 16: {
673 int v = input.readInt32();
674 ensureVarIndexIsMutable();
675 varIndex_.addInt(v);
676 break;
677 } // case 16
678 case 18: {
679 int length = input.readRawVarint32();
680 int limit = input.pushLimit(length);
681 ensureVarIndexIsMutable();
682 while (input.getBytesUntilLimit() > 0) {
683 varIndex_.addInt(input.readInt32());
684 }
685 input.popLimit(limit);
686 break;
687 } // case 18
688 case 25: {
689 double v = input.readDouble();
690 ensureWeightIsMutable();
691 weight_.addDouble(v);
692 break;
693 } // case 25
694 case 26: {
695 int length = input.readRawVarint32();
696 int limit = input.pushLimit(length);
697 int alloc = length > 4096 ? 4096 : length;
698 ensureWeightIsMutable(alloc / 8);
699 while (input.getBytesUntilLimit() > 0) {
700 weight_.addDouble(input.readDouble());
701 }
702 input.popLimit(limit);
703 break;
704 } // case 26
705 default: {
706 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
707 done = true; // was an endgroup tag
708 }
709 break;
710 } // default:
711 } // switch (tag)
712 } // while (!done)
713 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
714 throw e.unwrapIOException();
715 } finally {
716 onChanged();
717 } // finally
718 return this;
719 }
720 private int bitField0_;
721
722 private int type_ = 0;
727 @java.lang.Override public boolean hasType() {
728 return ((bitField0_ & 0x00000001) != 0);
729 }
730
734 @java.lang.Override
736 com.google.ortools.linearsolver.MPSosConstraint.Type result = com.google.ortools.linearsolver.MPSosConstraint.Type.forNumber(type_);
738 }
739
744 public Builder setType(com.google.ortools.linearsolver.MPSosConstraint.Type value) {
745 if (value == null) { throw new NullPointerException(); }
746 bitField0_ |= 0x00000001;
747 type_ = value.getNumber();
748 onChanged();
749 return this;
750 }
751
755 public Builder clearType() {
756 bitField0_ = (bitField0_ & ~0x00000001);
757 type_ = 0;
758 onChanged();
759 return this;
760 }
761
762 private com.google.protobuf.Internal.IntList varIndex_ = emptyIntList();
763 private void ensureVarIndexIsMutable() {
764 if (!varIndex_.isModifiable()) {
765 varIndex_ = makeMutableCopy(varIndex_);
766 }
767 bitField0_ |= 0x00000002;
768 }
778 public java.util.List<java.lang.Integer>
780 varIndex_.makeImmutable();
781 return varIndex_;
782 }
783
792 public int getVarIndexCount() {
793 return varIndex_.size();
794 }
795
805 public int getVarIndex(int index) {
806 return varIndex_.getInt(index);
807 }
808
819 public Builder setVarIndex(
820 int index, int value) {
821
822 ensureVarIndexIsMutable();
823 varIndex_.setInt(index, value);
824 bitField0_ |= 0x00000002;
825 onChanged();
826 return this;
827 }
828
838 public Builder addVarIndex(int value) {
839
840 ensureVarIndexIsMutable();
841 varIndex_.addInt(value);
842 bitField0_ |= 0x00000002;
843 onChanged();
844 return this;
845 }
846
856 public Builder addAllVarIndex(
857 java.lang.Iterable<? extends java.lang.Integer> values) {
858 ensureVarIndexIsMutable();
859 com.google.protobuf.AbstractMessageLite.Builder.addAll(
860 values, varIndex_);
861 bitField0_ |= 0x00000002;
862 onChanged();
863 return this;
864 }
865
874 public Builder clearVarIndex() {
875 varIndex_ = emptyIntList();
876 bitField0_ = (bitField0_ & ~0x00000002);
877 onChanged();
878 return this;
879 }
880
881 private com.google.protobuf.Internal.DoubleList weight_ = emptyDoubleList();
882 private void ensureWeightIsMutable() {
883 if (!weight_.isModifiable()) {
884 weight_ = makeMutableCopy(weight_);
885 }
886 bitField0_ |= 0x00000004;
887 }
888 private void ensureWeightIsMutable(int capacity) {
889 if (!weight_.isModifiable()) {
890 weight_ = makeMutableCopy(weight_, capacity);
891 }
892 bitField0_ |= 0x00000004;
893 }
911 public java.util.List<java.lang.Double>
913 weight_.makeImmutable();
914 return weight_;
915 }
916
933 public int getWeightCount() {
934 return weight_.size();
935 }
936
954 public double getWeight(int index) {
955 return weight_.getDouble(index);
956 }
957
976 public Builder setWeight(
977 int index, double value) {
978
979 ensureWeightIsMutable();
980 weight_.setDouble(index, value);
981 bitField0_ |= 0x00000004;
982 onChanged();
983 return this;
984 }
985
1003 public Builder addWeight(double value) {
1004
1005 ensureWeightIsMutable();
1006 weight_.addDouble(value);
1007 bitField0_ |= 0x00000004;
1008 onChanged();
1009 return this;
1010 }
1011
1029 public Builder addAllWeight(
1030 java.lang.Iterable<? extends java.lang.Double> values) {
1031 ensureWeightIsMutable();
1032 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1033 values, weight_);
1034 bitField0_ |= 0x00000004;
1035 onChanged();
1036 return this;
1037 }
1038
1055 public Builder clearWeight() {
1056 weight_ = emptyDoubleList();
1057 bitField0_ = (bitField0_ & ~0x00000004);
1058 onChanged();
1059 return this;
1060 }
1061
1062 // @@protoc_insertion_point(builder_scope:operations_research.MPSosConstraint)
1063 }
1064
1065 // @@protoc_insertion_point(class_scope:operations_research.MPSosConstraint)
1066 private static final com.google.ortools.linearsolver.MPSosConstraint DEFAULT_INSTANCE;
1067 static {
1068 DEFAULT_INSTANCE = new com.google.ortools.linearsolver.MPSosConstraint();
1069 }
1070
1072 return DEFAULT_INSTANCE;
1073 }
1074
1075 private static final com.google.protobuf.Parser<MPSosConstraint>
1076 PARSER = new com.google.protobuf.AbstractParser<MPSosConstraint>() {
1077 @java.lang.Override
1078 public MPSosConstraint parsePartialFrom(
1079 com.google.protobuf.CodedInputStream input,
1080 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1081 throws com.google.protobuf.InvalidProtocolBufferException {
1082 Builder builder = newBuilder();
1083 try {
1084 builder.mergeFrom(input, extensionRegistry);
1085 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1086 throw e.setUnfinishedMessage(builder.buildPartial());
1087 } catch (com.google.protobuf.UninitializedMessageException e) {
1088 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1089 } catch (java.io.IOException e) {
1090 throw new com.google.protobuf.InvalidProtocolBufferException(e)
1091 .setUnfinishedMessage(builder.buildPartial());
1092 }
1093 return builder.buildPartial();
1094 }
1095 };
1096
1097 public static com.google.protobuf.Parser<MPSosConstraint> parser() {
1098 return PARSER;
1099 }
1100
1101 @java.lang.Override
1102 public com.google.protobuf.Parser<MPSosConstraint> getParserForType() {
1103 return PARSER;
1104 }
1105
1106 @java.lang.Override
1108 return DEFAULT_INSTANCE;
1109 }
1110
1111}
1112
com.google.ortools.linearsolver.MPSosConstraint getDefaultInstanceForType()
com.google.ortools.linearsolver.MPSosConstraint build()
Builder mergeFrom(com.google.ortools.linearsolver.MPSosConstraint other)
Builder mergeFrom(com.google.protobuf.Message other)
Builder setType(com.google.ortools.linearsolver.MPSosConstraint.Type value)
com.google.ortools.linearsolver.MPSosConstraint buildPartial()
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
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()
Builder addAllWeight(java.lang.Iterable<? extends java.lang.Double > values)
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()
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)
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()
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)
Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
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()
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
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()
static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()