4 package com.google.ortools.sat;
16 com.google.protobuf.GeneratedMessageV3 implements
19 private static final long serialVersionUID = 0L;
25 nexts_ = emptyIntList();
26 distinguishedNodes_ = emptyLongList();
30 public final com.
google.protobuf.UnknownFieldSet
32 return this.unknownFields;
35 com.
google.protobuf.CodedInputStream input,
36 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
37 throws com.
google.protobuf.InvalidProtocolBufferException {
39 if (extensionRegistry ==
null) {
40 throw new java.lang.NullPointerException();
42 int mutable_bitField0_ = 0;
43 com.
google.protobuf.UnknownFieldSet.Builder unknownFields =
44 com.
google.protobuf.UnknownFieldSet.newBuilder();
48 int tag = input.readTag();
54 if (!((mutable_bitField0_ & 0x00000001) != 0)) {
55 nexts_ = newIntList();
56 mutable_bitField0_ |= 0x00000001;
58 nexts_.addInt(input.readInt32());
62 int length = input.readRawVarint32();
63 int limit = input.pushLimit(length);
64 if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
65 nexts_ = newIntList();
66 mutable_bitField0_ |= 0x00000001;
68 while (input.getBytesUntilLimit() > 0) {
69 nexts_.addInt(input.readInt32());
71 input.popLimit(limit);
75 if (!((mutable_bitField0_ & 0x00000002) != 0)) {
76 distinguishedNodes_ = newLongList();
77 mutable_bitField0_ |= 0x00000002;
79 distinguishedNodes_.addLong(input.readInt64());
83 int length = input.readRawVarint32();
84 int limit = input.pushLimit(length);
85 if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
86 distinguishedNodes_ = newLongList();
87 mutable_bitField0_ |= 0x00000002;
89 while (input.getBytesUntilLimit() > 0) {
90 distinguishedNodes_.addLong(input.readInt64());
92 input.popLimit(limit);
96 if (!parseUnknownField(
97 input, unknownFields, extensionRegistry, tag)) {
104 }
catch (
com.
google.protobuf.InvalidProtocolBufferException e) {
105 throw e.setUnfinishedMessage(
this);
106 }
catch (java.io.IOException e) {
107 throw new com.
google.protobuf.InvalidProtocolBufferException(
108 e).setUnfinishedMessage(
this);
110 if (((mutable_bitField0_ & 0x00000001) != 0)) {
111 nexts_.makeImmutable();
113 if (((mutable_bitField0_ & 0x00000002) != 0)) {
114 distinguishedNodes_.makeImmutable();
116 this.unknownFields = unknownFields.build();
117 makeExtensionsImmutable();
120 public static final com.
google.protobuf.Descriptors.Descriptor
126 protected com.
google.protobuf.GeneratedMessageV3.FieldAccessorTable
129 .ensureFieldAccessorsInitialized(
134 private com.
google.protobuf.Internal.IntList nexts_;
138 public java.util.List<java.lang.Integer>
146 return nexts_.size();
152 return nexts_.getInt(index);
154 private int nextsMemoizedSerializedSize = -1;
157 private com.
google.protobuf.Internal.LongList distinguishedNodes_;
161 public java.util.List<java.lang.Long>
163 return distinguishedNodes_;
169 return distinguishedNodes_.size();
175 return distinguishedNodes_.getLong(index);
177 private int distinguishedNodesMemoizedSerializedSize = -1;
179 private byte memoizedIsInitialized = -1;
186 memoizedIsInitialized = 1;
192 throws java.io.IOException {
195 output.writeUInt32NoTag(10);
196 output.writeUInt32NoTag(nextsMemoizedSerializedSize);
198 for (
int i = 0; i < nexts_.size(); i++) {
199 output.writeInt32NoTag(nexts_.getInt(i));
202 output.writeUInt32NoTag(18);
203 output.writeUInt32NoTag(distinguishedNodesMemoizedSerializedSize);
205 for (
int i = 0; i < distinguishedNodes_.size(); i++) {
206 output.writeInt64NoTag(distinguishedNodes_.getLong(i));
208 unknownFields.writeTo(output);
213 int size = memoizedSize;
214 if (size != -1)
return size;
219 for (
int i = 0; i < nexts_.size(); i++) {
220 dataSize +=
com.
google.protobuf.CodedOutputStream
221 .computeInt32SizeNoTag(nexts_.getInt(i));
226 size +=
com.
google.protobuf.CodedOutputStream
227 .computeInt32SizeNoTag(dataSize);
229 nextsMemoizedSerializedSize = dataSize;
233 for (
int i = 0; i < distinguishedNodes_.size(); i++) {
234 dataSize +=
com.
google.protobuf.CodedOutputStream
235 .computeInt64SizeNoTag(distinguishedNodes_.getLong(i));
240 size +=
com.
google.protobuf.CodedOutputStream
241 .computeInt32SizeNoTag(dataSize);
243 distinguishedNodesMemoizedSerializedSize = dataSize;
245 size += unknownFields.getSerializedSize();
251 public boolean equals(
final java.lang.Object obj) {
256 return super.equals(obj);
261 .equals(other.getNextsList()))
return false;
263 .equals(other.getDistinguishedNodesList()))
return false;
264 if (!unknownFields.equals(other.unknownFields))
return false;
270 if (memoizedHashCode != 0) {
271 return memoizedHashCode;
283 hash = (29 * hash) + unknownFields.hashCode();
284 memoizedHashCode = hash;
289 java.nio.ByteBuffer data)
290 throws com.
google.protobuf.InvalidProtocolBufferException {
291 return PARSER.parseFrom(data);
294 java.nio.ByteBuffer data,
295 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
296 throws com.
google.protobuf.InvalidProtocolBufferException {
297 return PARSER.parseFrom(data, extensionRegistry);
301 throws com.
google.protobuf.InvalidProtocolBufferException {
302 return PARSER.parseFrom(data);
306 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
307 throws com.
google.protobuf.InvalidProtocolBufferException {
308 return PARSER.parseFrom(data, extensionRegistry);
311 throws com.
google.protobuf.InvalidProtocolBufferException {
312 return PARSER.parseFrom(data);
316 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
317 throws com.
google.protobuf.InvalidProtocolBufferException {
318 return PARSER.parseFrom(data, extensionRegistry);
321 throws java.io.IOException {
322 return com.
google.protobuf.GeneratedMessageV3
323 .parseWithIOException(PARSER, input);
326 java.io.InputStream input,
327 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
328 throws java.io.IOException {
329 return com.
google.protobuf.GeneratedMessageV3
330 .parseWithIOException(PARSER, input, extensionRegistry);
333 throws java.io.IOException {
334 return com.
google.protobuf.GeneratedMessageV3
335 .parseDelimitedWithIOException(PARSER, input);
338 java.io.InputStream input,
339 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
340 throws java.io.IOException {
341 return com.
google.protobuf.GeneratedMessageV3
342 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
345 com.
google.protobuf.CodedInputStream input)
346 throws java.io.IOException {
347 return com.
google.protobuf.GeneratedMessageV3
348 .parseWithIOException(PARSER, input);
351 com.
google.protobuf.CodedInputStream input,
352 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
353 throws java.io.IOException {
354 return com.
google.protobuf.GeneratedMessageV3
355 .parseWithIOException(PARSER, input, extensionRegistry);
368 return this == DEFAULT_INSTANCE
374 com.
google.protobuf.GeneratedMessageV3.BuilderParent parent) {
388 com.google.protobuf.GeneratedMessageV3.
Builder<Builder> implements
391 public static final com.
google.protobuf.Descriptors.Descriptor
397 protected com.
google.protobuf.GeneratedMessageV3.FieldAccessorTable
400 .ensureFieldAccessorsInitialized(
406 maybeForceBuilderInitialization();
410 com.
google.protobuf.GeneratedMessageV3.BuilderParent parent) {
412 maybeForceBuilderInitialization();
414 private void maybeForceBuilderInitialization() {
415 if (
com.
google.protobuf.GeneratedMessageV3
416 .alwaysUseFieldBuilders) {
422 nexts_ = emptyIntList();
423 bitField0_ = (bitField0_ & ~0x00000001);
424 distinguishedNodes_ = emptyLongList();
425 bitField0_ = (bitField0_ & ~0x00000002);
430 public com.
google.protobuf.Descriptors.Descriptor
443 if (!result.isInitialized()) {
444 throw newUninitializedMessageException(result);
452 int from_bitField0_ = bitField0_;
453 if (((bitField0_ & 0x00000001) != 0)) {
454 nexts_.makeImmutable();
455 bitField0_ = (bitField0_ & ~0x00000001);
457 result.nexts_ = nexts_;
458 if (((bitField0_ & 0x00000002) != 0)) {
459 distinguishedNodes_.makeImmutable();
460 bitField0_ = (bitField0_ & ~0x00000002);
462 result.distinguishedNodes_ = distinguishedNodes_;
469 return super.
clone();
473 com.
google.protobuf.Descriptors.FieldDescriptor field,
474 java.lang.Object value) {
475 return super.
setField(field, value);
479 com.
google.protobuf.Descriptors.FieldDescriptor field) {
484 com.
google.protobuf.Descriptors.OneofDescriptor oneof) {
489 com.
google.protobuf.Descriptors.FieldDescriptor field,
490 int index, java.lang.Object value) {
495 com.
google.protobuf.Descriptors.FieldDescriptor field,
496 java.lang.Object value) {
504 super.mergeFrom(other);
511 if (!other.nexts_.isEmpty()) {
512 if (nexts_.isEmpty()) {
513 nexts_ = other.nexts_;
514 bitField0_ = (bitField0_ & ~0x00000001);
516 ensureNextsIsMutable();
517 nexts_.addAll(other.nexts_);
521 if (!other.distinguishedNodes_.isEmpty()) {
522 if (distinguishedNodes_.isEmpty()) {
523 distinguishedNodes_ = other.distinguishedNodes_;
524 bitField0_ = (bitField0_ & ~0x00000002);
526 ensureDistinguishedNodesIsMutable();
527 distinguishedNodes_.addAll(other.distinguishedNodes_);
543 com.
google.protobuf.CodedInputStream input,
544 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
545 throws java.io.IOException {
548 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
549 }
catch (
com.
google.protobuf.InvalidProtocolBufferException e) {
551 throw e.unwrapIOException();
553 if (parsedMessage !=
null) {
559 private int bitField0_;
561 private com.
google.protobuf.Internal.IntList nexts_ = emptyIntList();
562 private void ensureNextsIsMutable() {
563 if (!((bitField0_ & 0x00000001) != 0)) {
564 nexts_ = mutableCopy(nexts_);
565 bitField0_ |= 0x00000001;
571 public java.util.List<java.lang.Integer>
573 return ((bitField0_ & 0x00000001) != 0) ?
574 java.util.Collections.unmodifiableList(nexts_) : nexts_;
580 return nexts_.size();
586 return nexts_.getInt(index);
592 int index,
int value) {
593 ensureNextsIsMutable();
594 nexts_.setInt(index, value);
602 ensureNextsIsMutable();
603 nexts_.addInt(value);
611 java.lang.Iterable<? extends java.lang.Integer> values) {
612 ensureNextsIsMutable();
613 com.
google.protobuf.AbstractMessageLite.Builder.addAll(
622 nexts_ = emptyIntList();
623 bitField0_ = (bitField0_ & ~0x00000001);
628 private com.
google.protobuf.Internal.LongList distinguishedNodes_ = emptyLongList();
629 private void ensureDistinguishedNodesIsMutable() {
630 if (!((bitField0_ & 0x00000002) != 0)) {
631 distinguishedNodes_ = mutableCopy(distinguishedNodes_);
632 bitField0_ |= 0x00000002;
638 public java.util.List<java.lang.Long>
640 return ((bitField0_ & 0x00000002) != 0) ?
641 java.util.Collections.unmodifiableList(distinguishedNodes_) : distinguishedNodes_;
647 return distinguishedNodes_.size();
653 return distinguishedNodes_.getLong(index);
659 int index,
long value) {
660 ensureDistinguishedNodesIsMutable();
661 distinguishedNodes_.setLong(index, value);
669 ensureDistinguishedNodesIsMutable();
670 distinguishedNodes_.addLong(value);
678 java.lang.Iterable<? extends java.lang.Long> values) {
679 ensureDistinguishedNodesIsMutable();
680 com.
google.protobuf.AbstractMessageLite.Builder.addAll(
681 values, distinguishedNodes_);
689 distinguishedNodes_ = emptyLongList();
690 bitField0_ = (bitField0_ & ~0x00000002);
696 final com.
google.protobuf.UnknownFieldSet unknownFields) {
702 final com.
google.protobuf.UnknownFieldSet unknownFields) {
717 return DEFAULT_INSTANCE;
724 com.
google.protobuf.CodedInputStream input,
725 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
726 throws com.
google.protobuf.InvalidProtocolBufferException {
742 return DEFAULT_INSTANCE;