4 package com.google.ortools.linearsolver;
20 com.google.protobuf.GeneratedMessageV3 implements
23 private static final long serialVersionUID = 0L;
32 @SuppressWarnings({
"unused"})
34 UnusedPrivateParameter unused) {
39 public final com.
google.protobuf.UnknownFieldSet
41 return this.unknownFields;
44 com.
google.protobuf.CodedInputStream input,
45 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
46 throws com.
google.protobuf.InvalidProtocolBufferException {
48 if (extensionRegistry ==
null) {
49 throw new java.lang.NullPointerException();
51 int mutable_bitField0_ = 0;
52 com.
google.protobuf.UnknownFieldSet.Builder unknownFields =
53 com.
google.protobuf.UnknownFieldSet.newBuilder();
57 int tag = input.readTag();
63 bitField0_ |= 0x00000001;
64 varIndex_ = input.readInt32();
68 bitField0_ |= 0x00000002;
69 varValue_ = input.readInt32();
74 if (((bitField0_ & 0x00000004) != 0)) {
78 if (subBuilder !=
null) {
79 subBuilder.mergeFrom(constraint_);
80 constraint_ = subBuilder.buildPartial();
82 bitField0_ |= 0x00000004;
86 if (!parseUnknownField(
87 input, unknownFields, extensionRegistry, tag)) {
94 }
catch (
com.
google.protobuf.InvalidProtocolBufferException e) {
95 throw e.setUnfinishedMessage(
this);
96 }
catch (java.io.IOException e) {
97 throw new com.
google.protobuf.InvalidProtocolBufferException(
98 e).setUnfinishedMessage(
this);
100 this.unknownFields = unknownFields.build();
101 makeExtensionsImmutable();
104 public static final com.
google.protobuf.Descriptors.Descriptor
110 protected com.
google.protobuf.GeneratedMessageV3.FieldAccessorTable
113 .ensureFieldAccessorsInitialized(
117 private int bitField0_;
119 private int varIndex_;
129 return ((bitField0_ & 0x00000001) != 0);
144 private int varValue_;
153 return ((bitField0_ & 0x00000002) != 0);
176 return ((bitField0_ & 0x00000004) != 0);
199 private byte memoizedIsInitialized = -1;
206 memoizedIsInitialized = 1;
212 throws java.io.IOException {
213 if (((bitField0_ & 0x00000001) != 0)) {
214 output.writeInt32(1, varIndex_);
216 if (((bitField0_ & 0x00000002) != 0)) {
217 output.writeInt32(2, varValue_);
219 if (((bitField0_ & 0x00000004) != 0)) {
222 unknownFields.writeTo(output);
227 int size = memoizedSize;
228 if (size != -1)
return size;
231 if (((bitField0_ & 0x00000001) != 0)) {
232 size +=
com.
google.protobuf.CodedOutputStream
233 .computeInt32Size(1, varIndex_);
235 if (((bitField0_ & 0x00000002) != 0)) {
236 size +=
com.
google.protobuf.CodedOutputStream
237 .computeInt32Size(2, varValue_);
239 if (((bitField0_ & 0x00000004) != 0)) {
240 size +=
com.
google.protobuf.CodedOutputStream
243 size += unknownFields.getSerializedSize();
249 public boolean equals(
final java.lang.Object obj) {
254 return super.equals(obj);
258 if (
hasVarIndex() != other.hasVarIndex())
return false;
261 != other.getVarIndex())
return false;
263 if (
hasVarValue() != other.hasVarValue())
return false;
266 != other.getVarValue())
return false;
271 .
equals(other.getConstraint()))
return false;
273 if (!unknownFields.equals(other.unknownFields))
return false;
279 if (memoizedHashCode != 0) {
280 return memoizedHashCode;
296 hash = (29 * hash) + unknownFields.hashCode();
297 memoizedHashCode = hash;
302 java.nio.ByteBuffer data)
303 throws com.
google.protobuf.InvalidProtocolBufferException {
304 return PARSER.parseFrom(data);
307 java.nio.ByteBuffer data,
308 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
309 throws com.
google.protobuf.InvalidProtocolBufferException {
310 return PARSER.parseFrom(data, extensionRegistry);
314 throws com.
google.protobuf.InvalidProtocolBufferException {
315 return PARSER.parseFrom(data);
319 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
320 throws com.
google.protobuf.InvalidProtocolBufferException {
321 return PARSER.parseFrom(data, extensionRegistry);
324 throws com.
google.protobuf.InvalidProtocolBufferException {
325 return PARSER.parseFrom(data);
329 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
330 throws com.
google.protobuf.InvalidProtocolBufferException {
331 return PARSER.parseFrom(data, extensionRegistry);
334 throws java.io.IOException {
335 return com.
google.protobuf.GeneratedMessageV3
336 .parseWithIOException(
PARSER, input);
339 java.io.InputStream input,
340 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
341 throws java.io.IOException {
342 return com.
google.protobuf.GeneratedMessageV3
343 .parseWithIOException(
PARSER, input, extensionRegistry);
346 throws java.io.IOException {
347 return com.
google.protobuf.GeneratedMessageV3
348 .parseDelimitedWithIOException(
PARSER, input);
351 java.io.InputStream input,
352 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
353 throws java.io.IOException {
354 return com.
google.protobuf.GeneratedMessageV3
355 .parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
358 com.
google.protobuf.CodedInputStream input)
359 throws java.io.IOException {
360 return com.
google.protobuf.GeneratedMessageV3
361 .parseWithIOException(
PARSER, input);
364 com.
google.protobuf.CodedInputStream input,
365 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
366 throws java.io.IOException {
367 return com.
google.protobuf.GeneratedMessageV3
368 .parseWithIOException(
PARSER, input, extensionRegistry);
381 return this == DEFAULT_INSTANCE
387 com.
google.protobuf.GeneratedMessageV3.BuilderParent parent) {
405 com.google.protobuf.GeneratedMessageV3.
Builder<Builder> implements
408 public static final com.
google.protobuf.Descriptors.Descriptor
414 protected com.
google.protobuf.GeneratedMessageV3.FieldAccessorTable
417 .ensureFieldAccessorsInitialized(
423 maybeForceBuilderInitialization();
427 com.
google.protobuf.GeneratedMessageV3.BuilderParent parent) {
429 maybeForceBuilderInitialization();
431 private void maybeForceBuilderInitialization() {
432 if (
com.
google.protobuf.GeneratedMessageV3
433 .alwaysUseFieldBuilders) {
434 getConstraintFieldBuilder();
441 bitField0_ = (bitField0_ & ~0x00000001);
443 bitField0_ = (bitField0_ & ~0x00000002);
444 if (constraintBuilder_ ==
null) {
447 constraintBuilder_.clear();
449 bitField0_ = (bitField0_ & ~0x00000004);
454 public com.
google.protobuf.Descriptors.Descriptor
467 if (!result.isInitialized()) {
468 throw newUninitializedMessageException(result);
476 int from_bitField0_ = bitField0_;
477 int to_bitField0_ = 0;
478 if (((from_bitField0_ & 0x00000001) != 0)) {
479 result.varIndex_ = varIndex_;
480 to_bitField0_ |= 0x00000001;
482 if (((from_bitField0_ & 0x00000002) != 0)) {
483 result.varValue_ = varValue_;
484 to_bitField0_ |= 0x00000002;
486 if (((from_bitField0_ & 0x00000004) != 0)) {
487 if (constraintBuilder_ ==
null) {
488 result.constraint_ = constraint_;
490 result.constraint_ = constraintBuilder_.build();
492 to_bitField0_ |= 0x00000004;
494 result.bitField0_ = to_bitField0_;
501 return super.
clone();
505 com.
google.protobuf.Descriptors.FieldDescriptor field,
506 java.lang.Object value) {
507 return super.
setField(field, value);
511 com.
google.protobuf.Descriptors.FieldDescriptor field) {
516 com.
google.protobuf.Descriptors.OneofDescriptor oneof) {
521 com.
google.protobuf.Descriptors.FieldDescriptor field,
522 int index, java.lang.Object value) {
527 com.
google.protobuf.Descriptors.FieldDescriptor field,
528 java.lang.Object value) {
536 super.mergeFrom(other);
543 if (other.hasVarIndex()) {
546 if (other.hasVarValue()) {
549 if (other.hasConstraint()) {
564 com.
google.protobuf.CodedInputStream input,
565 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
566 throws java.io.IOException {
569 parsedMessage =
PARSER.parsePartialFrom(input, extensionRegistry);
570 }
catch (
com.
google.protobuf.InvalidProtocolBufferException e) {
572 throw e.unwrapIOException();
574 if (parsedMessage !=
null) {
580 private int bitField0_;
582 private int varIndex_ ;
592 return ((bitField0_ & 0x00000001) != 0);
614 bitField0_ |= 0x00000001;
628 bitField0_ = (bitField0_ & ~0x00000001);
634 private int varValue_ ;
643 return ((bitField0_ & 0x00000002) != 0);
663 bitField0_ |= 0x00000002;
676 bitField0_ = (bitField0_ & ~0x00000002);
683 private com.
google.protobuf.SingleFieldBuilderV3<
693 return ((bitField0_ & 0x00000004) != 0);
703 if (constraintBuilder_ ==
null) {
706 return constraintBuilder_.getMessage();
717 if (constraintBuilder_ ==
null) {
719 throw new NullPointerException();
724 constraintBuilder_.setMessage(value);
726 bitField0_ |= 0x00000004;
738 if (constraintBuilder_ ==
null) {
739 constraint_ = builderForValue.build();
742 constraintBuilder_.setMessage(builderForValue.build());
744 bitField0_ |= 0x00000004;
755 if (constraintBuilder_ ==
null) {
756 if (((bitField0_ & 0x00000004) != 0) &&
757 constraint_ !=
null &&
766 constraintBuilder_.mergeFrom(value);
768 bitField0_ |= 0x00000004;
779 if (constraintBuilder_ ==
null) {
783 constraintBuilder_.clear();
785 bitField0_ = (bitField0_ & ~0x00000004);
796 bitField0_ |= 0x00000004;
798 return getConstraintFieldBuilder().getBuilder();
808 if (constraintBuilder_ !=
null) {
809 return constraintBuilder_.getMessageOrBuilder();
811 return constraint_ ==
null ?
822 private com.
google.protobuf.SingleFieldBuilderV3<
824 getConstraintFieldBuilder() {
825 if (constraintBuilder_ ==
null) {
826 constraintBuilder_ =
new com.
google.protobuf.SingleFieldBuilderV3<
829 getParentForChildren(),
833 return constraintBuilder_;
837 final com.
google.protobuf.UnknownFieldSet unknownFields) {
843 final com.
google.protobuf.UnknownFieldSet unknownFields) {
858 return DEFAULT_INSTANCE;
865 com.
google.protobuf.CodedInputStream input,
866 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
867 throws com.
google.protobuf.InvalidProtocolBufferException {
883 return DEFAULT_INSTANCE;