4 package com.google.ortools.linearsolver;
26 com.google.protobuf.GeneratedMessageV3 implements
29 private static final long serialVersionUID = 0L;
35 lowerBound_ = Double.NEGATIVE_INFINITY;
36 upperBound_ = Double.POSITIVE_INFINITY;
41 @SuppressWarnings({
"unused"})
43 UnusedPrivateParameter unused) {
48 public final com.
google.protobuf.UnknownFieldSet
50 return this.unknownFields;
53 com.
google.protobuf.CodedInputStream input,
54 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
55 throws com.
google.protobuf.InvalidProtocolBufferException {
57 if (extensionRegistry ==
null) {
58 throw new java.lang.NullPointerException();
60 int mutable_bitField0_ = 0;
61 com.
google.protobuf.UnknownFieldSet.Builder unknownFields =
62 com.
google.protobuf.UnknownFieldSet.newBuilder();
66 int tag = input.readTag();
72 bitField0_ |= 0x00000001;
73 lowerBound_ = input.readDouble();
77 bitField0_ |= 0x00000002;
78 upperBound_ = input.readDouble();
82 bitField0_ |= 0x00000004;
83 objectiveCoefficient_ = input.readDouble();
87 bitField0_ |= 0x00000008;
88 isInteger_ = input.readBool();
92 com.
google.protobuf.ByteString bs = input.readBytes();
93 bitField0_ |= 0x00000010;
98 bitField0_ |= 0x00000020;
99 branchingPriority_ = input.readInt32();
103 if (!parseUnknownField(
104 input, unknownFields, extensionRegistry, tag)) {
111 }
catch (
com.
google.protobuf.InvalidProtocolBufferException e) {
112 throw e.setUnfinishedMessage(
this);
113 }
catch (java.io.IOException e) {
114 throw new com.
google.protobuf.InvalidProtocolBufferException(
115 e).setUnfinishedMessage(
this);
117 this.unknownFields = unknownFields.build();
118 makeExtensionsImmutable();
121 public static final com.
google.protobuf.Descriptors.Descriptor
127 protected com.
google.protobuf.GeneratedMessageV3.FieldAccessorTable
130 .ensureFieldAccessorsInitialized(
134 private int bitField0_;
136 private double lowerBound_;
145 return ((bitField0_ & 0x00000001) != 0);
159 private double upperBound_;
164 return ((bitField0_ & 0x00000002) != 0);
174 private double objectiveCoefficient_;
183 return ((bitField0_ & 0x00000004) != 0);
193 return objectiveCoefficient_;
197 private boolean isInteger_;
207 return ((bitField0_ & 0x00000008) != 0);
222 private volatile java.lang.Object name_;
231 return ((bitField0_ & 0x00000010) != 0);
241 java.lang.Object ref = name_;
242 if (ref instanceof java.lang.String) {
243 return (java.lang.String) ref;
247 java.lang.String s = bs.toStringUtf8();
248 if (bs.isValidUtf8()) {
263 java.lang.Object ref = name_;
264 if (ref instanceof java.lang.String) {
266 com.
google.protobuf.ByteString.copyFromUtf8(
267 (java.lang.String) ref);
271 return (
com.
google.protobuf.ByteString) ref;
276 private int branchingPriority_;
281 return ((bitField0_ & 0x00000020) != 0);
287 return branchingPriority_;
290 private byte memoizedIsInitialized = -1;
297 memoizedIsInitialized = 1;
303 throws java.io.IOException {
304 if (((bitField0_ & 0x00000001) != 0)) {
305 output.writeDouble(1, lowerBound_);
307 if (((bitField0_ & 0x00000002) != 0)) {
308 output.writeDouble(2, upperBound_);
310 if (((bitField0_ & 0x00000004) != 0)) {
311 output.writeDouble(3, objectiveCoefficient_);
313 if (((bitField0_ & 0x00000008) != 0)) {
314 output.writeBool(4, isInteger_);
316 if (((bitField0_ & 0x00000010) != 0)) {
317 com.
google.protobuf.GeneratedMessageV3.writeString(output, 5, name_);
319 if (((bitField0_ & 0x00000020) != 0)) {
320 output.writeInt32(6, branchingPriority_);
322 unknownFields.writeTo(output);
327 int size = memoizedSize;
328 if (size != -1)
return size;
331 if (((bitField0_ & 0x00000001) != 0)) {
332 size +=
com.
google.protobuf.CodedOutputStream
333 .computeDoubleSize(1, lowerBound_);
335 if (((bitField0_ & 0x00000002) != 0)) {
336 size +=
com.
google.protobuf.CodedOutputStream
337 .computeDoubleSize(2, upperBound_);
339 if (((bitField0_ & 0x00000004) != 0)) {
340 size +=
com.
google.protobuf.CodedOutputStream
341 .computeDoubleSize(3, objectiveCoefficient_);
343 if (((bitField0_ & 0x00000008) != 0)) {
344 size +=
com.
google.protobuf.CodedOutputStream
345 .computeBoolSize(4, isInteger_);
347 if (((bitField0_ & 0x00000010) != 0)) {
348 size +=
com.
google.protobuf.GeneratedMessageV3.computeStringSize(5, name_);
350 if (((bitField0_ & 0x00000020) != 0)) {
351 size +=
com.
google.protobuf.CodedOutputStream
352 .computeInt32Size(6, branchingPriority_);
354 size += unknownFields.getSerializedSize();
360 public boolean equals(
final java.lang.Object obj) {
365 return super.equals(obj);
372 != java.lang.Double.doubleToLongBits(
373 other.getLowerBound()))
return false;
378 != java.lang.Double.doubleToLongBits(
379 other.getUpperBound()))
return false;
384 != java.lang.Double.doubleToLongBits(
385 other.getObjectiveCoefficient()))
return false;
387 if (
hasIsInteger() != other.hasIsInteger())
return false;
390 != other.getIsInteger())
return false;
392 if (
hasName() != other.hasName())
return false;
395 .equals(other.getName()))
return false;
400 != other.getBranchingPriority())
return false;
402 if (!unknownFields.equals(other.unknownFields))
return false;
408 if (memoizedHashCode != 0) {
409 return memoizedHashCode;
415 hash = (53 * hash) +
com.
google.protobuf.Internal.hashLong(
420 hash = (53 * hash) +
com.
google.protobuf.Internal.hashLong(
425 hash = (53 * hash) +
com.
google.protobuf.Internal.hashLong(
430 hash = (53 * hash) +
com.
google.protobuf.Internal.hashBoolean(
435 hash = (53 * hash) +
getName().hashCode();
441 hash = (29 * hash) + unknownFields.hashCode();
442 memoizedHashCode = hash;
447 java.nio.ByteBuffer data)
448 throws com.
google.protobuf.InvalidProtocolBufferException {
449 return PARSER.parseFrom(data);
452 java.nio.ByteBuffer data,
453 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
454 throws com.
google.protobuf.InvalidProtocolBufferException {
455 return PARSER.parseFrom(data, extensionRegistry);
459 throws com.
google.protobuf.InvalidProtocolBufferException {
460 return PARSER.parseFrom(data);
464 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
465 throws com.
google.protobuf.InvalidProtocolBufferException {
466 return PARSER.parseFrom(data, extensionRegistry);
469 throws com.
google.protobuf.InvalidProtocolBufferException {
470 return PARSER.parseFrom(data);
474 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
475 throws com.
google.protobuf.InvalidProtocolBufferException {
476 return PARSER.parseFrom(data, extensionRegistry);
479 throws java.io.IOException {
480 return com.
google.protobuf.GeneratedMessageV3
481 .parseWithIOException(
PARSER, input);
484 java.io.InputStream input,
485 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
486 throws java.io.IOException {
487 return com.
google.protobuf.GeneratedMessageV3
488 .parseWithIOException(
PARSER, input, extensionRegistry);
491 throws java.io.IOException {
492 return com.
google.protobuf.GeneratedMessageV3
493 .parseDelimitedWithIOException(
PARSER, input);
496 java.io.InputStream input,
497 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
498 throws java.io.IOException {
499 return com.
google.protobuf.GeneratedMessageV3
500 .parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
503 com.
google.protobuf.CodedInputStream input)
504 throws java.io.IOException {
505 return com.
google.protobuf.GeneratedMessageV3
506 .parseWithIOException(
PARSER, input);
509 com.
google.protobuf.CodedInputStream input,
510 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
511 throws java.io.IOException {
512 return com.
google.protobuf.GeneratedMessageV3
513 .parseWithIOException(
PARSER, input, extensionRegistry);
526 return this == DEFAULT_INSTANCE
532 com.
google.protobuf.GeneratedMessageV3.BuilderParent parent) {
556 com.google.protobuf.GeneratedMessageV3.
Builder<Builder> implements
559 public static final com.
google.protobuf.Descriptors.Descriptor
565 protected com.
google.protobuf.GeneratedMessageV3.FieldAccessorTable
568 .ensureFieldAccessorsInitialized(
574 maybeForceBuilderInitialization();
578 com.
google.protobuf.GeneratedMessageV3.BuilderParent parent) {
580 maybeForceBuilderInitialization();
582 private void maybeForceBuilderInitialization() {
583 if (
com.
google.protobuf.GeneratedMessageV3
584 .alwaysUseFieldBuilders) {
590 lowerBound_ = Double.NEGATIVE_INFINITY;
591 bitField0_ = (bitField0_ & ~0x00000001);
592 upperBound_ = Double.POSITIVE_INFINITY;
593 bitField0_ = (bitField0_ & ~0x00000002);
594 objectiveCoefficient_ = 0D;
595 bitField0_ = (bitField0_ & ~0x00000004);
597 bitField0_ = (bitField0_ & ~0x00000008);
599 bitField0_ = (bitField0_ & ~0x00000010);
600 branchingPriority_ = 0;
601 bitField0_ = (bitField0_ & ~0x00000020);
606 public com.
google.protobuf.Descriptors.Descriptor
619 if (!result.isInitialized()) {
620 throw newUninitializedMessageException(result);
628 int from_bitField0_ = bitField0_;
629 int to_bitField0_ = 0;
630 if (((from_bitField0_ & 0x00000001) != 0)) {
631 to_bitField0_ |= 0x00000001;
633 result.lowerBound_ = lowerBound_;
634 if (((from_bitField0_ & 0x00000002) != 0)) {
635 to_bitField0_ |= 0x00000002;
637 result.upperBound_ = upperBound_;
638 if (((from_bitField0_ & 0x00000004) != 0)) {
639 result.objectiveCoefficient_ = objectiveCoefficient_;
640 to_bitField0_ |= 0x00000004;
642 if (((from_bitField0_ & 0x00000008) != 0)) {
643 result.isInteger_ = isInteger_;
644 to_bitField0_ |= 0x00000008;
646 if (((from_bitField0_ & 0x00000010) != 0)) {
647 to_bitField0_ |= 0x00000010;
649 result.name_ = name_;
650 if (((from_bitField0_ & 0x00000020) != 0)) {
651 result.branchingPriority_ = branchingPriority_;
652 to_bitField0_ |= 0x00000020;
654 result.bitField0_ = to_bitField0_;
661 return super.
clone();
665 com.
google.protobuf.Descriptors.FieldDescriptor field,
666 java.lang.Object value) {
667 return super.
setField(field, value);
671 com.
google.protobuf.Descriptors.FieldDescriptor field) {
676 com.
google.protobuf.Descriptors.OneofDescriptor oneof) {
681 com.
google.protobuf.Descriptors.FieldDescriptor field,
682 int index, java.lang.Object value) {
687 com.
google.protobuf.Descriptors.FieldDescriptor field,
688 java.lang.Object value) {
696 super.mergeFrom(other);
703 if (other.hasLowerBound()) {
706 if (other.hasUpperBound()) {
709 if (other.hasObjectiveCoefficient()) {
712 if (other.hasIsInteger()) {
715 if (other.hasName()) {
716 bitField0_ |= 0x00000010;
720 if (other.hasBranchingPriority()) {
735 com.
google.protobuf.CodedInputStream input,
736 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
737 throws java.io.IOException {
740 parsedMessage =
PARSER.parsePartialFrom(input, extensionRegistry);
741 }
catch (
com.
google.protobuf.InvalidProtocolBufferException e) {
743 throw e.unwrapIOException();
745 if (parsedMessage !=
null) {
751 private int bitField0_;
753 private double lowerBound_ = Double.NEGATIVE_INFINITY;
762 return ((bitField0_ & 0x00000001) != 0);
782 bitField0_ |= 0x00000001;
795 bitField0_ = (bitField0_ & ~0x00000001);
796 lowerBound_ = Double.NEGATIVE_INFINITY;
801 private double upperBound_ = Double.POSITIVE_INFINITY;
806 return ((bitField0_ & 0x00000002) != 0);
818 bitField0_ |= 0x00000002;
827 bitField0_ = (bitField0_ & ~0x00000002);
828 upperBound_ = Double.POSITIVE_INFINITY;
833 private double objectiveCoefficient_ ;
842 return ((bitField0_ & 0x00000004) != 0);
852 return objectiveCoefficient_;
862 bitField0_ |= 0x00000004;
863 objectiveCoefficient_ = value;
875 bitField0_ = (bitField0_ & ~0x00000004);
876 objectiveCoefficient_ = 0D;
881 private boolean isInteger_ ;
891 return ((bitField0_ & 0x00000008) != 0);
913 bitField0_ |= 0x00000008;
927 bitField0_ = (bitField0_ & ~0x00000008);
933 private java.lang.Object name_ =
"";
942 return ((bitField0_ & 0x00000010) != 0);
952 java.lang.Object ref = name_;
953 if (!(ref instanceof java.lang.String)) {
956 java.lang.String s = bs.toStringUtf8();
957 if (bs.isValidUtf8()) {
962 return (java.lang.String) ref;
974 java.lang.Object ref = name_;
975 if (ref instanceof String) {
977 com.
google.protobuf.ByteString.copyFromUtf8(
978 (java.lang.String) ref);
982 return (
com.
google.protobuf.ByteString) ref;
993 java.lang.String value) {
995 throw new NullPointerException();
997 bitField0_ |= 0x00000010;
1010 bitField0_ = (bitField0_ & ~0x00000010);
1024 if (value ==
null) {
1025 throw new NullPointerException();
1027 bitField0_ |= 0x00000010;
1033 private int branchingPriority_ ;
1038 return ((bitField0_ & 0x00000020) != 0);
1044 return branchingPriority_;
1050 bitField0_ |= 0x00000020;
1051 branchingPriority_ = value;
1059 bitField0_ = (bitField0_ & ~0x00000020);
1060 branchingPriority_ = 0;
1066 final com.
google.protobuf.UnknownFieldSet unknownFields) {
1072 final com.
google.protobuf.UnknownFieldSet unknownFields) {
1087 return DEFAULT_INSTANCE;
1094 com.
google.protobuf.CodedInputStream input,
1095 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
1096 throws com.
google.protobuf.InvalidProtocolBufferException {
1112 return DEFAULT_INSTANCE;