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