Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
MPVariableProto.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
26public final class MPVariableProto extends
27 com.google.protobuf.GeneratedMessage implements
28 // @@protoc_insertion_point(message_implements:operations_research.MPVariableProto)
30private static final long serialVersionUID = 0L;
31 static {
32 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
33 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
34 /* major= */ 4,
35 /* minor= */ 26,
36 /* patch= */ 1,
37 /* suffix= */ "",
38 MPVariableProto.class.getName());
39 }
40 // Use MPVariableProto.newBuilder() to construct.
41 private MPVariableProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
42 super(builder);
43 }
44 private MPVariableProto() {
45 lowerBound_ = Double.NEGATIVE_INFINITY;
46 upperBound_ = Double.POSITIVE_INFINITY;
47 name_ = "";
48 }
49
50 public static final com.google.protobuf.Descriptors.Descriptor
52 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPVariableProto_descriptor;
53 }
54
55 @java.lang.Override
56 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
58 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPVariableProto_fieldAccessorTable
59 .ensureFieldAccessorsInitialized(
60 com.google.ortools.linearsolver.MPVariableProto.class, com.google.ortools.linearsolver.MPVariableProto.Builder.class);
61 }
62
63 private int bitField0_;
64 public static final int LOWER_BOUND_FIELD_NUMBER = 1;
65 private double lowerBound_ = Double.NEGATIVE_INFINITY;
74 @java.lang.Override
75 public boolean hasLowerBound() {
76 return ((bitField0_ & 0x00000001) != 0);
77 }
86 @java.lang.Override
87 public double getLowerBound() {
88 return lowerBound_;
89 }
90
91 public static final int UPPER_BOUND_FIELD_NUMBER = 2;
92 private double upperBound_ = Double.POSITIVE_INFINITY;
97 @java.lang.Override
98 public boolean hasUpperBound() {
99 return ((bitField0_ & 0x00000002) != 0);
100 }
105 @java.lang.Override
106 public double getUpperBound() {
107 return upperBound_;
108 }
109
110 public static final int OBJECTIVE_COEFFICIENT_FIELD_NUMBER = 3;
111 private double objectiveCoefficient_ = 0D;
120 @java.lang.Override
121 public boolean hasObjectiveCoefficient() {
122 return ((bitField0_ & 0x00000004) != 0);
123 }
132 @java.lang.Override
133 public double getObjectiveCoefficient() {
134 return objectiveCoefficient_;
135 }
136
137 public static final int IS_INTEGER_FIELD_NUMBER = 4;
138 private boolean isInteger_ = false;
148 @java.lang.Override
149 public boolean hasIsInteger() {
150 return ((bitField0_ & 0x00000008) != 0);
151 }
161 @java.lang.Override
162 public boolean getIsInteger() {
163 return isInteger_;
164 }
165
166 public static final int NAME_FIELD_NUMBER = 5;
167 @SuppressWarnings("serial")
168 private volatile java.lang.Object name_ = "";
177 @java.lang.Override
178 public boolean hasName() {
179 return ((bitField0_ & 0x00000010) != 0);
180 }
189 @java.lang.Override
190 public java.lang.String getName() {
191 java.lang.Object ref = name_;
192 if (ref instanceof java.lang.String) {
193 return (java.lang.String) ref;
194 } else {
195 com.google.protobuf.ByteString bs =
196 (com.google.protobuf.ByteString) ref;
197 java.lang.String s = bs.toStringUtf8();
198 if (bs.isValidUtf8()) {
199 name_ = s;
200 }
201 return s;
202 }
203 }
212 @java.lang.Override
213 public com.google.protobuf.ByteString
215 java.lang.Object ref = name_;
216 if (ref instanceof java.lang.String) {
217 com.google.protobuf.ByteString b =
218 com.google.protobuf.ByteString.copyFromUtf8(
219 (java.lang.String) ref);
220 name_ = b;
221 return b;
222 } else {
223 return (com.google.protobuf.ByteString) ref;
224 }
225 }
226
227 public static final int BRANCHING_PRIORITY_FIELD_NUMBER = 6;
228 private int branchingPriority_ = 0;
233 @java.lang.Override
234 public boolean hasBranchingPriority() {
235 return ((bitField0_ & 0x00000020) != 0);
236 }
241 @java.lang.Override
242 public int getBranchingPriority() {
243 return branchingPriority_;
244 }
245
246 private byte memoizedIsInitialized = -1;
247 @java.lang.Override
248 public final boolean isInitialized() {
249 byte isInitialized = memoizedIsInitialized;
250 if (isInitialized == 1) return true;
251 if (isInitialized == 0) return false;
252
253 memoizedIsInitialized = 1;
254 return true;
255 }
256
257 @java.lang.Override
258 public void writeTo(com.google.protobuf.CodedOutputStream output)
259 throws java.io.IOException {
260 if (((bitField0_ & 0x00000001) != 0)) {
261 output.writeDouble(1, lowerBound_);
262 }
263 if (((bitField0_ & 0x00000002) != 0)) {
264 output.writeDouble(2, upperBound_);
265 }
266 if (((bitField0_ & 0x00000004) != 0)) {
267 output.writeDouble(3, objectiveCoefficient_);
268 }
269 if (((bitField0_ & 0x00000008) != 0)) {
270 output.writeBool(4, isInteger_);
271 }
272 if (((bitField0_ & 0x00000010) != 0)) {
273 com.google.protobuf.GeneratedMessage.writeString(output, 5, name_);
274 }
275 if (((bitField0_ & 0x00000020) != 0)) {
276 output.writeInt32(6, branchingPriority_);
277 }
278 getUnknownFields().writeTo(output);
279 }
280
281 @java.lang.Override
282 public int getSerializedSize() {
283 int size = memoizedSize;
284 if (size != -1) return size;
285
286 size = 0;
287 if (((bitField0_ & 0x00000001) != 0)) {
288 size += com.google.protobuf.CodedOutputStream
289 .computeDoubleSize(1, lowerBound_);
290 }
291 if (((bitField0_ & 0x00000002) != 0)) {
292 size += com.google.protobuf.CodedOutputStream
293 .computeDoubleSize(2, upperBound_);
294 }
295 if (((bitField0_ & 0x00000004) != 0)) {
296 size += com.google.protobuf.CodedOutputStream
297 .computeDoubleSize(3, objectiveCoefficient_);
298 }
299 if (((bitField0_ & 0x00000008) != 0)) {
300 size += com.google.protobuf.CodedOutputStream
301 .computeBoolSize(4, isInteger_);
302 }
303 if (((bitField0_ & 0x00000010) != 0)) {
304 size += com.google.protobuf.GeneratedMessage.computeStringSize(5, name_);
305 }
306 if (((bitField0_ & 0x00000020) != 0)) {
307 size += com.google.protobuf.CodedOutputStream
308 .computeInt32Size(6, branchingPriority_);
309 }
310 size += getUnknownFields().getSerializedSize();
311 memoizedSize = size;
312 return size;
313 }
314
315 @java.lang.Override
316 public boolean equals(final java.lang.Object obj) {
317 if (obj == this) {
318 return true;
319 }
320 if (!(obj instanceof com.google.ortools.linearsolver.MPVariableProto)) {
321 return super.equals(obj);
322 }
323 com.google.ortools.linearsolver.MPVariableProto other = (com.google.ortools.linearsolver.MPVariableProto) obj;
324
325 if (hasLowerBound() != other.hasLowerBound()) return false;
326 if (hasLowerBound()) {
327 if (java.lang.Double.doubleToLongBits(getLowerBound())
328 != java.lang.Double.doubleToLongBits(
329 other.getLowerBound())) return false;
330 }
331 if (hasUpperBound() != other.hasUpperBound()) return false;
332 if (hasUpperBound()) {
333 if (java.lang.Double.doubleToLongBits(getUpperBound())
334 != java.lang.Double.doubleToLongBits(
335 other.getUpperBound())) return false;
336 }
337 if (hasObjectiveCoefficient() != other.hasObjectiveCoefficient()) return false;
339 if (java.lang.Double.doubleToLongBits(getObjectiveCoefficient())
340 != java.lang.Double.doubleToLongBits(
341 other.getObjectiveCoefficient())) return false;
342 }
343 if (hasIsInteger() != other.hasIsInteger()) return false;
344 if (hasIsInteger()) {
345 if (getIsInteger()
346 != other.getIsInteger()) return false;
347 }
348 if (hasName() != other.hasName()) return false;
349 if (hasName()) {
350 if (!getName()
351 .equals(other.getName())) return false;
352 }
353 if (hasBranchingPriority() != other.hasBranchingPriority()) return false;
354 if (hasBranchingPriority()) {
356 != other.getBranchingPriority()) return false;
357 }
358 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
359 return true;
360 }
361
362 @java.lang.Override
363 public int hashCode() {
364 if (memoizedHashCode != 0) {
365 return memoizedHashCode;
366 }
367 int hash = 41;
368 hash = (19 * hash) + getDescriptor().hashCode();
369 if (hasLowerBound()) {
370 hash = (37 * hash) + LOWER_BOUND_FIELD_NUMBER;
371 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
372 java.lang.Double.doubleToLongBits(getLowerBound()));
373 }
374 if (hasUpperBound()) {
375 hash = (37 * hash) + UPPER_BOUND_FIELD_NUMBER;
376 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
377 java.lang.Double.doubleToLongBits(getUpperBound()));
378 }
380 hash = (37 * hash) + OBJECTIVE_COEFFICIENT_FIELD_NUMBER;
381 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
382 java.lang.Double.doubleToLongBits(getObjectiveCoefficient()));
383 }
384 if (hasIsInteger()) {
385 hash = (37 * hash) + IS_INTEGER_FIELD_NUMBER;
386 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
387 getIsInteger());
388 }
389 if (hasName()) {
390 hash = (37 * hash) + NAME_FIELD_NUMBER;
391 hash = (53 * hash) + getName().hashCode();
392 }
393 if (hasBranchingPriority()) {
394 hash = (37 * hash) + BRANCHING_PRIORITY_FIELD_NUMBER;
395 hash = (53 * hash) + getBranchingPriority();
396 }
397 hash = (29 * hash) + getUnknownFields().hashCode();
398 memoizedHashCode = hash;
399 return hash;
400 }
401
403 java.nio.ByteBuffer data)
404 throws com.google.protobuf.InvalidProtocolBufferException {
405 return PARSER.parseFrom(data);
406 }
408 java.nio.ByteBuffer data,
409 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
410 throws com.google.protobuf.InvalidProtocolBufferException {
411 return PARSER.parseFrom(data, extensionRegistry);
412 }
414 com.google.protobuf.ByteString data)
415 throws com.google.protobuf.InvalidProtocolBufferException {
416 return PARSER.parseFrom(data);
417 }
419 com.google.protobuf.ByteString data,
420 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
421 throws com.google.protobuf.InvalidProtocolBufferException {
422 return PARSER.parseFrom(data, extensionRegistry);
423 }
425 throws com.google.protobuf.InvalidProtocolBufferException {
426 return PARSER.parseFrom(data);
427 }
429 byte[] data,
430 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
431 throws com.google.protobuf.InvalidProtocolBufferException {
432 return PARSER.parseFrom(data, extensionRegistry);
433 }
434 public static com.google.ortools.linearsolver.MPVariableProto parseFrom(java.io.InputStream input)
435 throws java.io.IOException {
436 return com.google.protobuf.GeneratedMessage
437 .parseWithIOException(PARSER, input);
438 }
440 java.io.InputStream input,
441 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
442 throws java.io.IOException {
443 return com.google.protobuf.GeneratedMessage
444 .parseWithIOException(PARSER, input, extensionRegistry);
445 }
446
448 throws java.io.IOException {
449 return com.google.protobuf.GeneratedMessage
450 .parseDelimitedWithIOException(PARSER, input);
451 }
452
454 java.io.InputStream input,
455 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
456 throws java.io.IOException {
457 return com.google.protobuf.GeneratedMessage
458 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
459 }
461 com.google.protobuf.CodedInputStream input)
462 throws java.io.IOException {
463 return com.google.protobuf.GeneratedMessage
464 .parseWithIOException(PARSER, input);
465 }
467 com.google.protobuf.CodedInputStream input,
468 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
469 throws java.io.IOException {
470 return com.google.protobuf.GeneratedMessage
471 .parseWithIOException(PARSER, input, extensionRegistry);
472 }
473
474 @java.lang.Override
475 public Builder newBuilderForType() { return newBuilder(); }
476 public static Builder newBuilder() {
477 return DEFAULT_INSTANCE.toBuilder();
478 }
479 public static Builder newBuilder(com.google.ortools.linearsolver.MPVariableProto prototype) {
480 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
481 }
482 @java.lang.Override
484 return this == DEFAULT_INSTANCE
485 ? new Builder() : new Builder().mergeFrom(this);
486 }
487
488 @java.lang.Override
490 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
491 Builder builder = new Builder(parent);
492 return builder;
493 }
513 public static final class Builder extends
514 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
515 // @@protoc_insertion_point(builder_implements:operations_research.MPVariableProto)
516 com.google.ortools.linearsolver.MPVariableProtoOrBuilder {
517 public static final com.google.protobuf.Descriptors.Descriptor
519 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPVariableProto_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_MPVariableProto_fieldAccessorTable
526 .ensureFieldAccessorsInitialized(
527 com.google.ortools.linearsolver.MPVariableProto.class, com.google.ortools.linearsolver.MPVariableProto.Builder.class);
528 }
529
530 // Construct using com.google.ortools.linearsolver.MPVariableProto.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 lowerBound_ = Double.NEGATIVE_INFINITY;
545 upperBound_ = Double.POSITIVE_INFINITY;
546 objectiveCoefficient_ = 0D;
547 isInteger_ = false;
548 name_ = "";
549 branchingPriority_ = 0;
550 return this;
551 }
552
553 @java.lang.Override
554 public com.google.protobuf.Descriptors.Descriptor
556 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPVariableProto_descriptor;
557 }
558
559 @java.lang.Override
561 return com.google.ortools.linearsolver.MPVariableProto.getDefaultInstance();
562 }
563
564 @java.lang.Override
567 if (!result.isInitialized()) {
568 throw newUninitializedMessageException(result);
569 }
570 return result;
571 }
572
573 @java.lang.Override
575 com.google.ortools.linearsolver.MPVariableProto result = new com.google.ortools.linearsolver.MPVariableProto(this);
576 if (bitField0_ != 0) { buildPartial0(result); }
577 onBuilt();
578 return result;
579 }
580
581 private void buildPartial0(com.google.ortools.linearsolver.MPVariableProto result) {
582 int from_bitField0_ = bitField0_;
583 int to_bitField0_ = 0;
584 if (((from_bitField0_ & 0x00000001) != 0)) {
585 result.lowerBound_ = lowerBound_;
586 to_bitField0_ |= 0x00000001;
587 }
588 if (((from_bitField0_ & 0x00000002) != 0)) {
589 result.upperBound_ = upperBound_;
590 to_bitField0_ |= 0x00000002;
591 }
592 if (((from_bitField0_ & 0x00000004) != 0)) {
593 result.objectiveCoefficient_ = objectiveCoefficient_;
594 to_bitField0_ |= 0x00000004;
595 }
596 if (((from_bitField0_ & 0x00000008) != 0)) {
597 result.isInteger_ = isInteger_;
598 to_bitField0_ |= 0x00000008;
599 }
600 if (((from_bitField0_ & 0x00000010) != 0)) {
601 result.name_ = name_;
602 to_bitField0_ |= 0x00000010;
603 }
604 if (((from_bitField0_ & 0x00000020) != 0)) {
605 result.branchingPriority_ = branchingPriority_;
606 to_bitField0_ |= 0x00000020;
607 }
608 result.bitField0_ |= to_bitField0_;
609 }
610
611 @java.lang.Override
612 public Builder mergeFrom(com.google.protobuf.Message other) {
613 if (other instanceof com.google.ortools.linearsolver.MPVariableProto) {
614 return mergeFrom((com.google.ortools.linearsolver.MPVariableProto)other);
615 } else {
616 super.mergeFrom(other);
617 return this;
618 }
619 }
620
621 public Builder mergeFrom(com.google.ortools.linearsolver.MPVariableProto other) {
622 if (other == com.google.ortools.linearsolver.MPVariableProto.getDefaultInstance()) return this;
623 if (other.hasLowerBound()) {
624 setLowerBound(other.getLowerBound());
625 }
626 if (other.hasUpperBound()) {
627 setUpperBound(other.getUpperBound());
628 }
629 if (other.hasObjectiveCoefficient()) {
630 setObjectiveCoefficient(other.getObjectiveCoefficient());
631 }
632 if (other.hasIsInteger()) {
633 setIsInteger(other.getIsInteger());
634 }
635 if (other.hasName()) {
636 name_ = other.name_;
637 bitField0_ |= 0x00000010;
638 onChanged();
639 }
640 if (other.hasBranchingPriority()) {
641 setBranchingPriority(other.getBranchingPriority());
642 }
643 this.mergeUnknownFields(other.getUnknownFields());
644 onChanged();
645 return this;
646 }
647
648 @java.lang.Override
649 public final boolean isInitialized() {
650 return true;
651 }
652
653 @java.lang.Override
655 com.google.protobuf.CodedInputStream input,
656 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
657 throws java.io.IOException {
658 if (extensionRegistry == null) {
659 throw new java.lang.NullPointerException();
660 }
661 try {
662 boolean done = false;
663 while (!done) {
664 int tag = input.readTag();
665 switch (tag) {
666 case 0:
667 done = true;
668 break;
669 case 9: {
670 lowerBound_ = input.readDouble();
671 bitField0_ |= 0x00000001;
672 break;
673 } // case 9
674 case 17: {
675 upperBound_ = input.readDouble();
676 bitField0_ |= 0x00000002;
677 break;
678 } // case 17
679 case 25: {
680 objectiveCoefficient_ = input.readDouble();
681 bitField0_ |= 0x00000004;
682 break;
683 } // case 25
684 case 32: {
685 isInteger_ = input.readBool();
686 bitField0_ |= 0x00000008;
687 break;
688 } // case 32
689 case 42: {
690 name_ = input.readBytes();
691 bitField0_ |= 0x00000010;
692 break;
693 } // case 42
694 case 48: {
695 branchingPriority_ = input.readInt32();
696 bitField0_ |= 0x00000020;
697 break;
698 } // case 48
699 default: {
700 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
701 done = true; // was an endgroup tag
702 }
703 break;
704 } // default:
705 } // switch (tag)
706 } // while (!done)
707 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
708 throw e.unwrapIOException();
709 } finally {
710 onChanged();
711 } // finally
712 return this;
713 }
714 private int bitField0_;
715
716 private double lowerBound_ = Double.NEGATIVE_INFINITY;
725 @java.lang.Override
726 public boolean hasLowerBound() {
727 return ((bitField0_ & 0x00000001) != 0);
728 }
737 @java.lang.Override
738 public double getLowerBound() {
739 return lowerBound_;
740 }
750 public Builder setLowerBound(double value) {
751
752 lowerBound_ = value;
753 bitField0_ |= 0x00000001;
754 onChanged();
755 return this;
756 }
766 bitField0_ = (bitField0_ & ~0x00000001);
767 lowerBound_ = Double.NEGATIVE_INFINITY;
768 onChanged();
769 return this;
770 }
771
772 private double upperBound_ = Double.POSITIVE_INFINITY;
777 @java.lang.Override
778 public boolean hasUpperBound() {
779 return ((bitField0_ & 0x00000002) != 0);
780 }
785 @java.lang.Override
786 public double getUpperBound() {
787 return upperBound_;
788 }
794 public Builder setUpperBound(double value) {
795
796 upperBound_ = value;
797 bitField0_ |= 0x00000002;
798 onChanged();
799 return this;
800 }
806 bitField0_ = (bitField0_ & ~0x00000002);
807 upperBound_ = Double.POSITIVE_INFINITY;
808 onChanged();
809 return this;
810 }
811
812 private double objectiveCoefficient_ ;
821 @java.lang.Override
822 public boolean hasObjectiveCoefficient() {
823 return ((bitField0_ & 0x00000004) != 0);
824 }
833 @java.lang.Override
834 public double getObjectiveCoefficient() {
835 return objectiveCoefficient_;
836 }
846 public Builder setObjectiveCoefficient(double value) {
847
848 objectiveCoefficient_ = value;
849 bitField0_ |= 0x00000004;
850 onChanged();
851 return this;
852 }
862 bitField0_ = (bitField0_ & ~0x00000004);
863 objectiveCoefficient_ = 0D;
864 onChanged();
865 return this;
866 }
867
868 private boolean isInteger_ ;
878 @java.lang.Override
879 public boolean hasIsInteger() {
880 return ((bitField0_ & 0x00000008) != 0);
881 }
891 @java.lang.Override
892 public boolean getIsInteger() {
893 return isInteger_;
894 }
905 public Builder setIsInteger(boolean value) {
906
907 isInteger_ = value;
908 bitField0_ |= 0x00000008;
909 onChanged();
910 return this;
911 }
922 bitField0_ = (bitField0_ & ~0x00000008);
923 isInteger_ = false;
924 onChanged();
925 return this;
926 }
927
928 private java.lang.Object name_ = "";
937 public boolean hasName() {
938 return ((bitField0_ & 0x00000010) != 0);
939 }
948 public java.lang.String getName() {
949 java.lang.Object ref = name_;
950 if (!(ref instanceof java.lang.String)) {
951 com.google.protobuf.ByteString bs =
952 (com.google.protobuf.ByteString) ref;
953 java.lang.String s = bs.toStringUtf8();
954 if (bs.isValidUtf8()) {
955 name_ = s;
956 }
957 return s;
958 } else {
959 return (java.lang.String) ref;
960 }
961 }
970 public com.google.protobuf.ByteString
972 java.lang.Object ref = name_;
973 if (ref instanceof String) {
974 com.google.protobuf.ByteString b =
975 com.google.protobuf.ByteString.copyFromUtf8(
976 (java.lang.String) ref);
977 name_ = b;
978 return b;
979 } else {
980 return (com.google.protobuf.ByteString) ref;
981 }
982 }
993 java.lang.String value) {
994 if (value == null) { throw new NullPointerException(); }
995 name_ = value;
996 bitField0_ |= 0x00000010;
997 onChanged();
998 return this;
999 }
1009 name_ = getDefaultInstance().getName();
1010 bitField0_ = (bitField0_ & ~0x00000010);
1011 onChanged();
1012 return this;
1013 }
1024 com.google.protobuf.ByteString value) {
1025 if (value == null) { throw new NullPointerException(); }
1026 name_ = value;
1027 bitField0_ |= 0x00000010;
1028 onChanged();
1029 return this;
1030 }
1031
1032 private int branchingPriority_ ;
1037 @java.lang.Override
1038 public boolean hasBranchingPriority() {
1039 return ((bitField0_ & 0x00000020) != 0);
1040 }
1045 @java.lang.Override
1047 return branchingPriority_;
1048 }
1054 public Builder setBranchingPriority(int value) {
1055
1056 branchingPriority_ = value;
1057 bitField0_ |= 0x00000020;
1058 onChanged();
1059 return this;
1060 }
1066 bitField0_ = (bitField0_ & ~0x00000020);
1067 branchingPriority_ = 0;
1068 onChanged();
1069 return this;
1070 }
1071
1072 // @@protoc_insertion_point(builder_scope:operations_research.MPVariableProto)
1073 }
1074
1075 // @@protoc_insertion_point(class_scope:operations_research.MPVariableProto)
1076 private static final com.google.ortools.linearsolver.MPVariableProto DEFAULT_INSTANCE;
1077 static {
1078 DEFAULT_INSTANCE = new com.google.ortools.linearsolver.MPVariableProto();
1079 }
1080
1082 return DEFAULT_INSTANCE;
1083 }
1084
1085 private static final com.google.protobuf.Parser<MPVariableProto>
1086 PARSER = new com.google.protobuf.AbstractParser<MPVariableProto>() {
1087 @java.lang.Override
1088 public MPVariableProto parsePartialFrom(
1089 com.google.protobuf.CodedInputStream input,
1090 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1091 throws com.google.protobuf.InvalidProtocolBufferException {
1092 Builder builder = newBuilder();
1093 try {
1094 builder.mergeFrom(input, extensionRegistry);
1095 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1096 throw e.setUnfinishedMessage(builder.buildPartial());
1097 } catch (com.google.protobuf.UninitializedMessageException e) {
1098 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1099 } catch (java.io.IOException e) {
1100 throw new com.google.protobuf.InvalidProtocolBufferException(e)
1101 .setUnfinishedMessage(builder.buildPartial());
1102 }
1103 return builder.buildPartial();
1104 }
1105 };
1106
1107 public static com.google.protobuf.Parser<MPVariableProto> parser() {
1108 return PARSER;
1109 }
1110
1111 @java.lang.Override
1112 public com.google.protobuf.Parser<MPVariableProto> getParserForType() {
1113 return PARSER;
1114 }
1115
1116 @java.lang.Override
1120
1121}
1122
com.google.ortools.linearsolver.MPVariableProto buildPartial()
com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
com.google.ortools.linearsolver.MPVariableProto getDefaultInstanceForType()
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Builder setNameBytes(com.google.protobuf.ByteString value)
Builder mergeFrom(com.google.protobuf.Message other)
Builder mergeFrom(com.google.ortools.linearsolver.MPVariableProto other)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
com.google.ortools.linearsolver.MPVariableProto build()
static com.google.ortools.linearsolver.MPVariableProto parseFrom(java.nio.ByteBuffer data)
static com.google.ortools.linearsolver.MPVariableProto parseFrom(com.google.protobuf.ByteString data)
static com.google.ortools.linearsolver.MPVariableProto parseDelimitedFrom(java.io.InputStream input)
static com.google.ortools.linearsolver.MPVariableProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser< MPVariableProto > parser()
static com.google.ortools.linearsolver.MPVariableProto parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
void writeTo(com.google.protobuf.CodedOutputStream output)
static com.google.ortools.linearsolver.MPVariableProto parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.linearsolver.MPVariableProto getDefaultInstance()
static com.google.ortools.linearsolver.MPVariableProto parseFrom(byte[] data)
com.google.ortools.linearsolver.MPVariableProto getDefaultInstanceForType()
com.google.protobuf.ByteString getNameBytes()
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
static Builder newBuilder(com.google.ortools.linearsolver.MPVariableProto prototype)
static com.google.ortools.linearsolver.MPVariableProto parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.protobuf.Parser< MPVariableProto > getParserForType()
boolean equals(final java.lang.Object obj)
static com.google.ortools.linearsolver.MPVariableProto parseFrom(java.io.InputStream input)
static com.google.ortools.linearsolver.MPVariableProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.linearsolver.MPVariableProto parseFrom(com.google.protobuf.CodedInputStream input)
static com.google.ortools.linearsolver.MPVariableProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()