Google OR-Tools v9.11
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: 4.26.1
5package com.google.ortools.linearsolver;
6
16public final class MPSosConstraint extends
17 com.google.protobuf.GeneratedMessage implements
18 // @@protoc_insertion_point(message_implements:operations_research.MPSosConstraint)
20private static final long serialVersionUID = 0L;
21 static {
22 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
23 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
24 /* major= */ 4,
25 /* minor= */ 26,
26 /* patch= */ 1,
27 /* suffix= */ "",
28 MPSosConstraint.class.getName());
29 }
30 // Use MPSosConstraint.newBuilder() to construct.
31 private MPSosConstraint(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
32 super(builder);
33 }
34 private MPSosConstraint() {
35 type_ = 0;
36 varIndex_ = emptyIntList();
37 weight_ = emptyDoubleList();
38 }
39
40 public static final com.google.protobuf.Descriptors.Descriptor
42 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSosConstraint_descriptor;
43 }
44
45 @java.lang.Override
46 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
48 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSosConstraint_fieldAccessorTable
49 .ensureFieldAccessorsInitialized(
50 com.google.ortools.linearsolver.MPSosConstraint.class, com.google.ortools.linearsolver.MPSosConstraint.Builder.class);
51 }
52
56 public enum Type
57 implements com.google.protobuf.ProtocolMessageEnum {
75 SOS2(1),
76 ;
77
78 static {
79 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
80 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
81 /* major= */ 4,
82 /* minor= */ 26,
83 /* patch= */ 1,
84 /* suffix= */ "",
85 Type.class.getName());
86 }
94 public static final int SOS1_DEFAULT_VALUE = 0;
104 public static final int SOS2_VALUE = 1;
105
106
107 public final int getNumber() {
108 return value;
109 }
110
116 @java.lang.Deprecated
117 public static Type valueOf(int value) {
118 return forNumber(value);
119 }
120
125 public static Type forNumber(int value) {
126 switch (value) {
127 case 0: return SOS1_DEFAULT;
128 case 1: return SOS2;
129 default: return null;
130 }
131 }
132
133 public static com.google.protobuf.Internal.EnumLiteMap<Type>
135 return internalValueMap;
136 }
137 private static final com.google.protobuf.Internal.EnumLiteMap<
138 Type> internalValueMap =
139 new com.google.protobuf.Internal.EnumLiteMap<Type>() {
140 public Type findValueByNumber(int number) {
141 return Type.forNumber(number);
142 }
143 };
144
145 public final com.google.protobuf.Descriptors.EnumValueDescriptor
147 return getDescriptor().getValues().get(ordinal());
148 }
149 public final com.google.protobuf.Descriptors.EnumDescriptor
151 return getDescriptor();
152 }
153 public static final com.google.protobuf.Descriptors.EnumDescriptor
155 return com.google.ortools.linearsolver.MPSosConstraint.getDescriptor().getEnumTypes().get(0);
156 }
157
158 private static final Type[] VALUES = values();
159
160 public static Type valueOf(
161 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
162 if (desc.getType() != getDescriptor()) {
163 throw new java.lang.IllegalArgumentException(
164 "EnumValueDescriptor is not for this type.");
165 }
166 return VALUES[desc.getIndex()];
167 }
168
169 private final int value;
170
171 private Type(int value) {
172 this.value = value;
173 }
174
175 // @@protoc_insertion_point(enum_scope:operations_research.MPSosConstraint.Type)
176 }
177
178 private int bitField0_;
179 public static final int TYPE_FIELD_NUMBER = 1;
180 private int type_ = 0;
185 @java.lang.Override public boolean hasType() {
186 return ((bitField0_ & 0x00000001) != 0);
187 }
193 com.google.ortools.linearsolver.MPSosConstraint.Type result = com.google.ortools.linearsolver.MPSosConstraint.Type.forNumber(type_);
194 return result == null ? com.google.ortools.linearsolver.MPSosConstraint.Type.SOS1_DEFAULT : result;
195 }
196
197 public static final int VAR_INDEX_FIELD_NUMBER = 2;
198 @SuppressWarnings("serial")
199 private com.google.protobuf.Internal.IntList varIndex_ =
200 emptyIntList();
210 @java.lang.Override
211 public java.util.List<java.lang.Integer>
213 return varIndex_;
214 }
224 public int getVarIndexCount() {
225 return varIndex_.size();
226 }
237 public int getVarIndex(int index) {
238 return varIndex_.getInt(index);
239 }
240
241 public static final int WEIGHT_FIELD_NUMBER = 3;
242 @SuppressWarnings("serial")
243 private com.google.protobuf.Internal.DoubleList weight_ =
244 emptyDoubleList();
262 @java.lang.Override
263 public java.util.List<java.lang.Double>
265 return weight_;
266 }
284 public int getWeightCount() {
285 return weight_.size();
286 }
305 public double getWeight(int index) {
306 return weight_.getDouble(index);
307 }
308
309 private byte memoizedIsInitialized = -1;
310 @java.lang.Override
311 public final boolean isInitialized() {
312 byte isInitialized = memoizedIsInitialized;
313 if (isInitialized == 1) return true;
314 if (isInitialized == 0) return false;
315
316 memoizedIsInitialized = 1;
317 return true;
318 }
319
320 @java.lang.Override
321 public void writeTo(com.google.protobuf.CodedOutputStream output)
322 throws java.io.IOException {
323 if (((bitField0_ & 0x00000001) != 0)) {
324 output.writeEnum(1, type_);
325 }
326 for (int i = 0; i < varIndex_.size(); i++) {
327 output.writeInt32(2, varIndex_.getInt(i));
328 }
329 for (int i = 0; i < weight_.size(); i++) {
330 output.writeDouble(3, weight_.getDouble(i));
331 }
332 getUnknownFields().writeTo(output);
333 }
334
335 @java.lang.Override
336 public int getSerializedSize() {
337 int size = memoizedSize;
338 if (size != -1) return size;
339
340 size = 0;
341 if (((bitField0_ & 0x00000001) != 0)) {
342 size += com.google.protobuf.CodedOutputStream
343 .computeEnumSize(1, type_);
344 }
345 {
346 int dataSize = 0;
347 for (int i = 0; i < varIndex_.size(); i++) {
348 dataSize += com.google.protobuf.CodedOutputStream
349 .computeInt32SizeNoTag(varIndex_.getInt(i));
350 }
351 size += dataSize;
352 size += 1 * getVarIndexList().size();
353 }
354 {
355 int dataSize = 0;
356 dataSize = 8 * getWeightList().size();
357 size += dataSize;
358 size += 1 * getWeightList().size();
359 }
360 size += getUnknownFields().getSerializedSize();
361 memoizedSize = size;
362 return size;
363 }
364
365 @java.lang.Override
366 public boolean equals(final java.lang.Object obj) {
367 if (obj == this) {
368 return true;
369 }
370 if (!(obj instanceof com.google.ortools.linearsolver.MPSosConstraint)) {
371 return super.equals(obj);
372 }
373 com.google.ortools.linearsolver.MPSosConstraint other = (com.google.ortools.linearsolver.MPSosConstraint) obj;
374
375 if (hasType() != other.hasType()) return false;
376 if (hasType()) {
377 if (type_ != other.type_) return false;
378 }
379 if (!getVarIndexList()
380 .equals(other.getVarIndexList())) return false;
381 if (!getWeightList()
382 .equals(other.getWeightList())) return false;
383 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
384 return true;
385 }
386
387 @java.lang.Override
388 public int hashCode() {
389 if (memoizedHashCode != 0) {
390 return memoizedHashCode;
391 }
392 int hash = 41;
393 hash = (19 * hash) + getDescriptor().hashCode();
394 if (hasType()) {
395 hash = (37 * hash) + TYPE_FIELD_NUMBER;
396 hash = (53 * hash) + type_;
397 }
398 if (getVarIndexCount() > 0) {
399 hash = (37 * hash) + VAR_INDEX_FIELD_NUMBER;
400 hash = (53 * hash) + getVarIndexList().hashCode();
401 }
402 if (getWeightCount() > 0) {
403 hash = (37 * hash) + WEIGHT_FIELD_NUMBER;
404 hash = (53 * hash) + getWeightList().hashCode();
405 }
406 hash = (29 * hash) + getUnknownFields().hashCode();
407 memoizedHashCode = hash;
408 return hash;
409 }
410
412 java.nio.ByteBuffer data)
413 throws com.google.protobuf.InvalidProtocolBufferException {
414 return PARSER.parseFrom(data);
415 }
417 java.nio.ByteBuffer data,
418 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
419 throws com.google.protobuf.InvalidProtocolBufferException {
420 return PARSER.parseFrom(data, extensionRegistry);
421 }
423 com.google.protobuf.ByteString data)
424 throws com.google.protobuf.InvalidProtocolBufferException {
425 return PARSER.parseFrom(data);
426 }
428 com.google.protobuf.ByteString data,
429 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
430 throws com.google.protobuf.InvalidProtocolBufferException {
431 return PARSER.parseFrom(data, extensionRegistry);
432 }
434 throws com.google.protobuf.InvalidProtocolBufferException {
435 return PARSER.parseFrom(data);
436 }
438 byte[] data,
439 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
440 throws com.google.protobuf.InvalidProtocolBufferException {
441 return PARSER.parseFrom(data, extensionRegistry);
442 }
443 public static com.google.ortools.linearsolver.MPSosConstraint parseFrom(java.io.InputStream input)
444 throws java.io.IOException {
445 return com.google.protobuf.GeneratedMessage
446 .parseWithIOException(PARSER, input);
447 }
449 java.io.InputStream input,
450 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
451 throws java.io.IOException {
452 return com.google.protobuf.GeneratedMessage
453 .parseWithIOException(PARSER, input, extensionRegistry);
454 }
455
457 throws java.io.IOException {
458 return com.google.protobuf.GeneratedMessage
459 .parseDelimitedWithIOException(PARSER, input);
460 }
461
463 java.io.InputStream input,
464 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
465 throws java.io.IOException {
466 return com.google.protobuf.GeneratedMessage
467 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
468 }
470 com.google.protobuf.CodedInputStream input)
471 throws java.io.IOException {
472 return com.google.protobuf.GeneratedMessage
473 .parseWithIOException(PARSER, input);
474 }
476 com.google.protobuf.CodedInputStream input,
477 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
478 throws java.io.IOException {
479 return com.google.protobuf.GeneratedMessage
480 .parseWithIOException(PARSER, input, extensionRegistry);
481 }
482
483 @java.lang.Override
484 public Builder newBuilderForType() { return newBuilder(); }
485 public static Builder newBuilder() {
486 return DEFAULT_INSTANCE.toBuilder();
487 }
488 public static Builder newBuilder(com.google.ortools.linearsolver.MPSosConstraint prototype) {
489 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
490 }
491 @java.lang.Override
493 return this == DEFAULT_INSTANCE
494 ? new Builder() : new Builder().mergeFrom(this);
495 }
496
497 @java.lang.Override
499 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
500 Builder builder = new Builder(parent);
501 return builder;
502 }
512 public static final class Builder extends
513 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
514 // @@protoc_insertion_point(builder_implements:operations_research.MPSosConstraint)
515 com.google.ortools.linearsolver.MPSosConstraintOrBuilder {
516 public static final com.google.protobuf.Descriptors.Descriptor
518 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSosConstraint_descriptor;
519 }
520
521 @java.lang.Override
522 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
524 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSosConstraint_fieldAccessorTable
525 .ensureFieldAccessorsInitialized(
526 com.google.ortools.linearsolver.MPSosConstraint.class, com.google.ortools.linearsolver.MPSosConstraint.Builder.class);
527 }
528
529 // Construct using com.google.ortools.linearsolver.MPSosConstraint.newBuilder()
530 private Builder() {
531
532 }
533
534 private Builder(
535 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
536 super(parent);
537
538 }
539 @java.lang.Override
540 public Builder clear() {
541 super.clear();
542 bitField0_ = 0;
543 type_ = 0;
544 varIndex_ = emptyIntList();
545 weight_ = emptyDoubleList();
546 return this;
547 }
548
549 @java.lang.Override
550 public com.google.protobuf.Descriptors.Descriptor
552 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSosConstraint_descriptor;
553 }
554
555 @java.lang.Override
557 return com.google.ortools.linearsolver.MPSosConstraint.getDefaultInstance();
558 }
559
560 @java.lang.Override
563 if (!result.isInitialized()) {
564 throw newUninitializedMessageException(result);
565 }
566 return result;
567 }
568
569 @java.lang.Override
571 com.google.ortools.linearsolver.MPSosConstraint result = new com.google.ortools.linearsolver.MPSosConstraint(this);
572 if (bitField0_ != 0) { buildPartial0(result); }
573 onBuilt();
574 return result;
575 }
576
577 private void buildPartial0(com.google.ortools.linearsolver.MPSosConstraint result) {
578 int from_bitField0_ = bitField0_;
579 int to_bitField0_ = 0;
580 if (((from_bitField0_ & 0x00000001) != 0)) {
581 result.type_ = type_;
582 to_bitField0_ |= 0x00000001;
583 }
584 if (((from_bitField0_ & 0x00000002) != 0)) {
585 varIndex_.makeImmutable();
586 result.varIndex_ = varIndex_;
587 }
588 if (((from_bitField0_ & 0x00000004) != 0)) {
589 weight_.makeImmutable();
590 result.weight_ = weight_;
591 }
592 result.bitField0_ |= to_bitField0_;
593 }
594
595 @java.lang.Override
596 public Builder mergeFrom(com.google.protobuf.Message other) {
597 if (other instanceof com.google.ortools.linearsolver.MPSosConstraint) {
598 return mergeFrom((com.google.ortools.linearsolver.MPSosConstraint)other);
599 } else {
600 super.mergeFrom(other);
601 return this;
602 }
603 }
604
605 public Builder mergeFrom(com.google.ortools.linearsolver.MPSosConstraint other) {
606 if (other == com.google.ortools.linearsolver.MPSosConstraint.getDefaultInstance()) return this;
607 if (other.hasType()) {
608 setType(other.getType());
609 }
610 if (!other.varIndex_.isEmpty()) {
611 if (varIndex_.isEmpty()) {
612 varIndex_ = other.varIndex_;
613 varIndex_.makeImmutable();
614 bitField0_ |= 0x00000002;
615 } else {
616 ensureVarIndexIsMutable();
617 varIndex_.addAll(other.varIndex_);
618 }
619 onChanged();
620 }
621 if (!other.weight_.isEmpty()) {
622 if (weight_.isEmpty()) {
623 weight_ = other.weight_;
624 weight_.makeImmutable();
625 bitField0_ |= 0x00000004;
626 } else {
627 ensureWeightIsMutable();
628 weight_.addAll(other.weight_);
629 }
630 onChanged();
631 }
632 this.mergeUnknownFields(other.getUnknownFields());
633 onChanged();
634 return this;
635 }
636
637 @java.lang.Override
638 public final boolean isInitialized() {
639 return true;
640 }
641
642 @java.lang.Override
644 com.google.protobuf.CodedInputStream input,
645 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
646 throws java.io.IOException {
647 if (extensionRegistry == null) {
648 throw new java.lang.NullPointerException();
649 }
650 try {
651 boolean done = false;
652 while (!done) {
653 int tag = input.readTag();
654 switch (tag) {
655 case 0:
656 done = true;
657 break;
658 case 8: {
659 int tmpRaw = input.readEnum();
661 com.google.ortools.linearsolver.MPSosConstraint.Type.forNumber(tmpRaw);
662 if (tmpValue == null) {
663 mergeUnknownVarintField(1, tmpRaw);
664 } else {
665 type_ = tmpRaw;
666 bitField0_ |= 0x00000001;
667 }
668 break;
669 } // case 8
670 case 16: {
671 int v = input.readInt32();
672 ensureVarIndexIsMutable();
673 varIndex_.addInt(v);
674 break;
675 } // case 16
676 case 18: {
677 int length = input.readRawVarint32();
678 int limit = input.pushLimit(length);
679 ensureVarIndexIsMutable();
680 while (input.getBytesUntilLimit() > 0) {
681 varIndex_.addInt(input.readInt32());
682 }
683 input.popLimit(limit);
684 break;
685 } // case 18
686 case 25: {
687 double v = input.readDouble();
688 ensureWeightIsMutable();
689 weight_.addDouble(v);
690 break;
691 } // case 25
692 case 26: {
693 int length = input.readRawVarint32();
694 int limit = input.pushLimit(length);
695 int alloc = length > 4096 ? 4096 : length;
696 ensureWeightIsMutable(alloc / 8);
697 while (input.getBytesUntilLimit() > 0) {
698 weight_.addDouble(input.readDouble());
699 }
700 input.popLimit(limit);
701 break;
702 } // case 26
703 default: {
704 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
705 done = true; // was an endgroup tag
706 }
707 break;
708 } // default:
709 } // switch (tag)
710 } // while (!done)
711 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
712 throw e.unwrapIOException();
713 } finally {
714 onChanged();
715 } // finally
716 return this;
717 }
718 private int bitField0_;
719
720 private int type_ = 0;
725 @java.lang.Override public boolean hasType() {
726 return ((bitField0_ & 0x00000001) != 0);
727 }
732 @java.lang.Override
734 com.google.ortools.linearsolver.MPSosConstraint.Type result = com.google.ortools.linearsolver.MPSosConstraint.Type.forNumber(type_);
735 return result == null ? com.google.ortools.linearsolver.MPSosConstraint.Type.SOS1_DEFAULT : result;
736 }
742 public Builder setType(com.google.ortools.linearsolver.MPSosConstraint.Type value) {
743 if (value == null) {
744 throw new NullPointerException();
745 }
746 bitField0_ |= 0x00000001;
747 type_ = value.getNumber();
748 onChanged();
749 return this;
750 }
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 }
792 public int getVarIndexCount() {
793 return varIndex_.size();
794 }
805 public int getVarIndex(int index) {
806 return varIndex_.getInt(index);
807 }
820 int index, int value) {
821
822 ensureVarIndexIsMutable();
823 varIndex_.setInt(index, value);
824 bitField0_ |= 0x00000002;
825 onChanged();
826 return this;
827 }
838 public Builder addVarIndex(int value) {
839
840 ensureVarIndexIsMutable();
841 varIndex_.addInt(value);
842 bitField0_ |= 0x00000002;
843 onChanged();
844 return this;
845 }
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 }
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 }
933 public int getWeightCount() {
934 return weight_.size();
935 }
954 public double getWeight(int index) {
955 return weight_.getDouble(index);
956 }
977 int index, double value) {
978
979 ensureWeightIsMutable();
980 weight_.setDouble(index, value);
981 bitField0_ |= 0x00000004;
982 onChanged();
983 return this;
984 }
1003 public Builder addWeight(double value) {
1004
1005 ensureWeightIsMutable();
1006 weight_.addDouble(value);
1007 bitField0_ |= 0x00000004;
1008 onChanged();
1009 return this;
1010 }
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 }
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()
final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()