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