4 package com.google.ortools.sat;
15 com.google.protobuf.GeneratedMessageV3 implements
18 private static final long serialVersionUID = 0L;
24 fDirect_ = emptyIntList();
25 fInverse_ = emptyIntList();
29 @SuppressWarnings({
"unused"})
31 UnusedPrivateParameter unused) {
36 public final com.
google.protobuf.UnknownFieldSet
38 return this.unknownFields;
41 com.
google.protobuf.CodedInputStream input,
42 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
43 throws com.
google.protobuf.InvalidProtocolBufferException {
45 if (extensionRegistry ==
null) {
46 throw new java.lang.NullPointerException();
48 int mutable_bitField0_ = 0;
49 com.
google.protobuf.UnknownFieldSet.Builder unknownFields =
50 com.
google.protobuf.UnknownFieldSet.newBuilder();
54 int tag = input.readTag();
60 if (!((mutable_bitField0_ & 0x00000001) != 0)) {
61 fDirect_ = newIntList();
62 mutable_bitField0_ |= 0x00000001;
64 fDirect_.addInt(input.readInt32());
68 int length = input.readRawVarint32();
69 int limit = input.pushLimit(length);
70 if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
71 fDirect_ = newIntList();
72 mutable_bitField0_ |= 0x00000001;
74 while (input.getBytesUntilLimit() > 0) {
75 fDirect_.addInt(input.readInt32());
77 input.popLimit(limit);
81 if (!((mutable_bitField0_ & 0x00000002) != 0)) {
82 fInverse_ = newIntList();
83 mutable_bitField0_ |= 0x00000002;
85 fInverse_.addInt(input.readInt32());
89 int length = input.readRawVarint32();
90 int limit = input.pushLimit(length);
91 if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
92 fInverse_ = newIntList();
93 mutable_bitField0_ |= 0x00000002;
95 while (input.getBytesUntilLimit() > 0) {
96 fInverse_.addInt(input.readInt32());
98 input.popLimit(limit);
102 if (!parseUnknownField(
103 input, unknownFields, extensionRegistry, tag)) {
110 }
catch (
com.
google.protobuf.InvalidProtocolBufferException e) {
111 throw e.setUnfinishedMessage(
this);
112 }
catch (java.io.IOException e) {
113 throw new com.
google.protobuf.InvalidProtocolBufferException(
114 e).setUnfinishedMessage(
this);
116 if (((mutable_bitField0_ & 0x00000001) != 0)) {
117 fDirect_.makeImmutable();
119 if (((mutable_bitField0_ & 0x00000002) != 0)) {
120 fInverse_.makeImmutable();
122 this.unknownFields = unknownFields.build();
123 makeExtensionsImmutable();
126 public static final com.
google.protobuf.Descriptors.Descriptor
132 protected com.
google.protobuf.GeneratedMessageV3.FieldAccessorTable
135 .ensureFieldAccessorsInitialized(
140 private com.
google.protobuf.Internal.IntList fDirect_;
144 public java.util.List<java.lang.Integer>
152 return fDirect_.size();
158 return fDirect_.getInt(index);
160 private int fDirectMemoizedSerializedSize = -1;
163 private com.
google.protobuf.Internal.IntList fInverse_;
167 public java.util.List<java.lang.Integer>
175 return fInverse_.size();
181 return fInverse_.getInt(index);
183 private int fInverseMemoizedSerializedSize = -1;
185 private byte memoizedIsInitialized = -1;
192 memoizedIsInitialized = 1;
198 throws java.io.IOException {
201 output.writeUInt32NoTag(10);
202 output.writeUInt32NoTag(fDirectMemoizedSerializedSize);
204 for (
int i = 0; i < fDirect_.size(); i++) {
205 output.writeInt32NoTag(fDirect_.getInt(i));
208 output.writeUInt32NoTag(18);
209 output.writeUInt32NoTag(fInverseMemoizedSerializedSize);
211 for (
int i = 0; i < fInverse_.size(); i++) {
212 output.writeInt32NoTag(fInverse_.getInt(i));
214 unknownFields.writeTo(output);
219 int size = memoizedSize;
220 if (size != -1)
return size;
225 for (
int i = 0; i < fDirect_.size(); i++) {
226 dataSize +=
com.
google.protobuf.CodedOutputStream
227 .computeInt32SizeNoTag(fDirect_.getInt(i));
232 size +=
com.
google.protobuf.CodedOutputStream
233 .computeInt32SizeNoTag(dataSize);
235 fDirectMemoizedSerializedSize = dataSize;
239 for (
int i = 0; i < fInverse_.size(); i++) {
240 dataSize +=
com.
google.protobuf.CodedOutputStream
241 .computeInt32SizeNoTag(fInverse_.getInt(i));
246 size +=
com.
google.protobuf.CodedOutputStream
247 .computeInt32SizeNoTag(dataSize);
249 fInverseMemoizedSerializedSize = dataSize;
251 size += unknownFields.getSerializedSize();
257 public boolean equals(
final java.lang.Object obj) {
262 return super.equals(obj);
267 .equals(other.getFDirectList()))
return false;
269 .equals(other.getFInverseList()))
return false;
270 if (!unknownFields.equals(other.unknownFields))
return false;
276 if (memoizedHashCode != 0) {
277 return memoizedHashCode;
289 hash = (29 * hash) + unknownFields.hashCode();
290 memoizedHashCode = hash;
295 java.nio.ByteBuffer data)
296 throws com.
google.protobuf.InvalidProtocolBufferException {
297 return PARSER.parseFrom(data);
300 java.nio.ByteBuffer data,
301 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
302 throws com.
google.protobuf.InvalidProtocolBufferException {
303 return PARSER.parseFrom(data, extensionRegistry);
307 throws com.
google.protobuf.InvalidProtocolBufferException {
308 return PARSER.parseFrom(data);
312 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
313 throws com.
google.protobuf.InvalidProtocolBufferException {
314 return PARSER.parseFrom(data, extensionRegistry);
317 throws com.
google.protobuf.InvalidProtocolBufferException {
318 return PARSER.parseFrom(data);
322 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
323 throws com.
google.protobuf.InvalidProtocolBufferException {
324 return PARSER.parseFrom(data, extensionRegistry);
327 throws java.io.IOException {
328 return com.
google.protobuf.GeneratedMessageV3
329 .parseWithIOException(PARSER, input);
332 java.io.InputStream input,
333 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
334 throws java.io.IOException {
335 return com.
google.protobuf.GeneratedMessageV3
336 .parseWithIOException(PARSER, input, extensionRegistry);
339 throws java.io.IOException {
340 return com.
google.protobuf.GeneratedMessageV3
341 .parseDelimitedWithIOException(PARSER, input);
344 java.io.InputStream input,
345 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
346 throws java.io.IOException {
347 return com.
google.protobuf.GeneratedMessageV3
348 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
351 com.
google.protobuf.CodedInputStream input)
352 throws java.io.IOException {
353 return com.
google.protobuf.GeneratedMessageV3
354 .parseWithIOException(PARSER, input);
357 com.
google.protobuf.CodedInputStream input,
358 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
359 throws java.io.IOException {
360 return com.
google.protobuf.GeneratedMessageV3
361 .parseWithIOException(PARSER, input, extensionRegistry);
374 return this == DEFAULT_INSTANCE
380 com.
google.protobuf.GeneratedMessageV3.BuilderParent parent) {
393 com.google.protobuf.GeneratedMessageV3.
Builder<Builder> implements
396 public static final com.
google.protobuf.Descriptors.Descriptor
402 protected com.
google.protobuf.GeneratedMessageV3.FieldAccessorTable
405 .ensureFieldAccessorsInitialized(
411 maybeForceBuilderInitialization();
415 com.
google.protobuf.GeneratedMessageV3.BuilderParent parent) {
417 maybeForceBuilderInitialization();
419 private void maybeForceBuilderInitialization() {
420 if (
com.
google.protobuf.GeneratedMessageV3
421 .alwaysUseFieldBuilders) {
427 fDirect_ = emptyIntList();
428 bitField0_ = (bitField0_ & ~0x00000001);
429 fInverse_ = emptyIntList();
430 bitField0_ = (bitField0_ & ~0x00000002);
435 public com.
google.protobuf.Descriptors.Descriptor
448 if (!result.isInitialized()) {
449 throw newUninitializedMessageException(result);
457 int from_bitField0_ = bitField0_;
458 if (((bitField0_ & 0x00000001) != 0)) {
459 fDirect_.makeImmutable();
460 bitField0_ = (bitField0_ & ~0x00000001);
462 result.fDirect_ = fDirect_;
463 if (((bitField0_ & 0x00000002) != 0)) {
464 fInverse_.makeImmutable();
465 bitField0_ = (bitField0_ & ~0x00000002);
467 result.fInverse_ = fInverse_;
474 return super.
clone();
478 com.
google.protobuf.Descriptors.FieldDescriptor field,
479 java.lang.Object value) {
480 return super.
setField(field, value);
484 com.
google.protobuf.Descriptors.FieldDescriptor field) {
489 com.
google.protobuf.Descriptors.OneofDescriptor oneof) {
494 com.
google.protobuf.Descriptors.FieldDescriptor field,
495 int index, java.lang.Object value) {
500 com.
google.protobuf.Descriptors.FieldDescriptor field,
501 java.lang.Object value) {
509 super.mergeFrom(other);
516 if (!other.fDirect_.isEmpty()) {
517 if (fDirect_.isEmpty()) {
518 fDirect_ = other.fDirect_;
519 bitField0_ = (bitField0_ & ~0x00000001);
521 ensureFDirectIsMutable();
522 fDirect_.addAll(other.fDirect_);
526 if (!other.fInverse_.isEmpty()) {
527 if (fInverse_.isEmpty()) {
528 fInverse_ = other.fInverse_;
529 bitField0_ = (bitField0_ & ~0x00000002);
531 ensureFInverseIsMutable();
532 fInverse_.addAll(other.fInverse_);
548 com.
google.protobuf.CodedInputStream input,
549 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
550 throws java.io.IOException {
553 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
554 }
catch (
com.
google.protobuf.InvalidProtocolBufferException e) {
556 throw e.unwrapIOException();
558 if (parsedMessage !=
null) {
564 private int bitField0_;
566 private com.
google.protobuf.Internal.IntList fDirect_ = emptyIntList();
567 private void ensureFDirectIsMutable() {
568 if (!((bitField0_ & 0x00000001) != 0)) {
569 fDirect_ = mutableCopy(fDirect_);
570 bitField0_ |= 0x00000001;
576 public java.util.List<java.lang.Integer>
578 return ((bitField0_ & 0x00000001) != 0) ?
579 java.util.Collections.unmodifiableList(fDirect_) : fDirect_;
585 return fDirect_.size();
591 return fDirect_.getInt(index);
597 int index,
int value) {
598 ensureFDirectIsMutable();
599 fDirect_.setInt(index, value);
607 ensureFDirectIsMutable();
608 fDirect_.addInt(value);
616 java.lang.Iterable<? extends java.lang.Integer> values) {
617 ensureFDirectIsMutable();
618 com.
google.protobuf.AbstractMessageLite.Builder.addAll(
627 fDirect_ = emptyIntList();
628 bitField0_ = (bitField0_ & ~0x00000001);
633 private com.
google.protobuf.Internal.IntList fInverse_ = emptyIntList();
634 private void ensureFInverseIsMutable() {
635 if (!((bitField0_ & 0x00000002) != 0)) {
636 fInverse_ = mutableCopy(fInverse_);
637 bitField0_ |= 0x00000002;
643 public java.util.List<java.lang.Integer>
645 return ((bitField0_ & 0x00000002) != 0) ?
646 java.util.Collections.unmodifiableList(fInverse_) : fInverse_;
652 return fInverse_.size();
658 return fInverse_.getInt(index);
664 int index,
int value) {
665 ensureFInverseIsMutable();
666 fInverse_.setInt(index, value);
674 ensureFInverseIsMutable();
675 fInverse_.addInt(value);
683 java.lang.Iterable<? extends java.lang.Integer> values) {
684 ensureFInverseIsMutable();
685 com.
google.protobuf.AbstractMessageLite.Builder.addAll(
694 fInverse_ = emptyIntList();
695 bitField0_ = (bitField0_ & ~0x00000002);
701 final com.
google.protobuf.UnknownFieldSet unknownFields) {
707 final com.
google.protobuf.UnknownFieldSet unknownFields) {
722 return DEFAULT_INSTANCE;
729 com.
google.protobuf.CodedInputStream input,
730 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
731 throws com.
google.protobuf.InvalidProtocolBufferException {
747 return DEFAULT_INSTANCE;