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 public final com.
google.protobuf.UnknownFieldSet
31 return this.unknownFields;
34 com.
google.protobuf.CodedInputStream input,
35 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
36 throws com.
google.protobuf.InvalidProtocolBufferException {
38 if (extensionRegistry ==
null) {
39 throw new java.lang.NullPointerException();
41 int mutable_bitField0_ = 0;
42 com.
google.protobuf.UnknownFieldSet.Builder unknownFields =
43 com.
google.protobuf.UnknownFieldSet.newBuilder();
47 int tag = input.readTag();
53 if (!((mutable_bitField0_ & 0x00000001) != 0)) {
54 fDirect_ = newIntList();
55 mutable_bitField0_ |= 0x00000001;
57 fDirect_.addInt(input.readInt32());
61 int length = input.readRawVarint32();
62 int limit = input.pushLimit(length);
63 if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
64 fDirect_ = newIntList();
65 mutable_bitField0_ |= 0x00000001;
67 while (input.getBytesUntilLimit() > 0) {
68 fDirect_.addInt(input.readInt32());
70 input.popLimit(limit);
74 if (!((mutable_bitField0_ & 0x00000002) != 0)) {
75 fInverse_ = newIntList();
76 mutable_bitField0_ |= 0x00000002;
78 fInverse_.addInt(input.readInt32());
82 int length = input.readRawVarint32();
83 int limit = input.pushLimit(length);
84 if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
85 fInverse_ = newIntList();
86 mutable_bitField0_ |= 0x00000002;
88 while (input.getBytesUntilLimit() > 0) {
89 fInverse_.addInt(input.readInt32());
91 input.popLimit(limit);
95 if (!parseUnknownField(
96 input, unknownFields, extensionRegistry, tag)) {
103 }
catch (
com.
google.protobuf.InvalidProtocolBufferException e) {
104 throw e.setUnfinishedMessage(
this);
105 }
catch (java.io.IOException e) {
106 throw new com.
google.protobuf.InvalidProtocolBufferException(
107 e).setUnfinishedMessage(
this);
109 if (((mutable_bitField0_ & 0x00000001) != 0)) {
110 fDirect_.makeImmutable();
112 if (((mutable_bitField0_ & 0x00000002) != 0)) {
113 fInverse_.makeImmutable();
115 this.unknownFields = unknownFields.build();
116 makeExtensionsImmutable();
119 public static final com.
google.protobuf.Descriptors.Descriptor
125 protected com.
google.protobuf.GeneratedMessageV3.FieldAccessorTable
128 .ensureFieldAccessorsInitialized(
133 private com.
google.protobuf.Internal.IntList fDirect_;
137 public java.util.List<java.lang.Integer>
145 return fDirect_.size();
151 return fDirect_.getInt(index);
153 private int fDirectMemoizedSerializedSize = -1;
156 private com.
google.protobuf.Internal.IntList fInverse_;
160 public java.util.List<java.lang.Integer>
168 return fInverse_.size();
174 return fInverse_.getInt(index);
176 private int fInverseMemoizedSerializedSize = -1;
178 private byte memoizedIsInitialized = -1;
185 memoizedIsInitialized = 1;
191 throws java.io.IOException {
194 output.writeUInt32NoTag(10);
195 output.writeUInt32NoTag(fDirectMemoizedSerializedSize);
197 for (
int i = 0; i < fDirect_.size(); i++) {
198 output.writeInt32NoTag(fDirect_.getInt(i));
201 output.writeUInt32NoTag(18);
202 output.writeUInt32NoTag(fInverseMemoizedSerializedSize);
204 for (
int i = 0; i < fInverse_.size(); i++) {
205 output.writeInt32NoTag(fInverse_.getInt(i));
207 unknownFields.writeTo(output);
212 int size = memoizedSize;
213 if (size != -1)
return size;
218 for (
int i = 0; i < fDirect_.size(); i++) {
219 dataSize +=
com.
google.protobuf.CodedOutputStream
220 .computeInt32SizeNoTag(fDirect_.getInt(i));
225 size +=
com.
google.protobuf.CodedOutputStream
226 .computeInt32SizeNoTag(dataSize);
228 fDirectMemoizedSerializedSize = dataSize;
232 for (
int i = 0; i < fInverse_.size(); i++) {
233 dataSize +=
com.
google.protobuf.CodedOutputStream
234 .computeInt32SizeNoTag(fInverse_.getInt(i));
239 size +=
com.
google.protobuf.CodedOutputStream
240 .computeInt32SizeNoTag(dataSize);
242 fInverseMemoizedSerializedSize = dataSize;
244 size += unknownFields.getSerializedSize();
250 public boolean equals(
final java.lang.Object obj) {
255 return super.equals(obj);
260 .equals(other.getFDirectList()))
return false;
262 .equals(other.getFInverseList()))
return false;
263 if (!unknownFields.equals(other.unknownFields))
return false;
269 if (memoizedHashCode != 0) {
270 return memoizedHashCode;
282 hash = (29 * hash) + unknownFields.hashCode();
283 memoizedHashCode = hash;
288 java.nio.ByteBuffer data)
289 throws com.
google.protobuf.InvalidProtocolBufferException {
290 return PARSER.parseFrom(data);
293 java.nio.ByteBuffer data,
294 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
295 throws com.
google.protobuf.InvalidProtocolBufferException {
296 return PARSER.parseFrom(data, extensionRegistry);
300 throws com.
google.protobuf.InvalidProtocolBufferException {
301 return PARSER.parseFrom(data);
305 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
306 throws com.
google.protobuf.InvalidProtocolBufferException {
307 return PARSER.parseFrom(data, extensionRegistry);
310 throws com.
google.protobuf.InvalidProtocolBufferException {
311 return PARSER.parseFrom(data);
315 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
316 throws com.
google.protobuf.InvalidProtocolBufferException {
317 return PARSER.parseFrom(data, extensionRegistry);
320 throws java.io.IOException {
321 return com.
google.protobuf.GeneratedMessageV3
322 .parseWithIOException(PARSER, input);
325 java.io.InputStream input,
326 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
327 throws java.io.IOException {
328 return com.
google.protobuf.GeneratedMessageV3
329 .parseWithIOException(PARSER, input, extensionRegistry);
332 throws java.io.IOException {
333 return com.
google.protobuf.GeneratedMessageV3
334 .parseDelimitedWithIOException(PARSER, input);
337 java.io.InputStream input,
338 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
339 throws java.io.IOException {
340 return com.
google.protobuf.GeneratedMessageV3
341 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
344 com.
google.protobuf.CodedInputStream input)
345 throws java.io.IOException {
346 return com.
google.protobuf.GeneratedMessageV3
347 .parseWithIOException(PARSER, input);
350 com.
google.protobuf.CodedInputStream input,
351 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
352 throws java.io.IOException {
353 return com.
google.protobuf.GeneratedMessageV3
354 .parseWithIOException(PARSER, input, extensionRegistry);
367 return this == DEFAULT_INSTANCE
373 com.
google.protobuf.GeneratedMessageV3.BuilderParent parent) {
386 com.google.protobuf.GeneratedMessageV3.
Builder<Builder> implements
389 public static final com.
google.protobuf.Descriptors.Descriptor
395 protected com.
google.protobuf.GeneratedMessageV3.FieldAccessorTable
398 .ensureFieldAccessorsInitialized(
404 maybeForceBuilderInitialization();
408 com.
google.protobuf.GeneratedMessageV3.BuilderParent parent) {
410 maybeForceBuilderInitialization();
412 private void maybeForceBuilderInitialization() {
413 if (
com.
google.protobuf.GeneratedMessageV3
414 .alwaysUseFieldBuilders) {
420 fDirect_ = emptyIntList();
421 bitField0_ = (bitField0_ & ~0x00000001);
422 fInverse_ = emptyIntList();
423 bitField0_ = (bitField0_ & ~0x00000002);
428 public com.
google.protobuf.Descriptors.Descriptor
441 if (!result.isInitialized()) {
442 throw newUninitializedMessageException(result);
450 int from_bitField0_ = bitField0_;
451 if (((bitField0_ & 0x00000001) != 0)) {
452 fDirect_.makeImmutable();
453 bitField0_ = (bitField0_ & ~0x00000001);
455 result.fDirect_ = fDirect_;
456 if (((bitField0_ & 0x00000002) != 0)) {
457 fInverse_.makeImmutable();
458 bitField0_ = (bitField0_ & ~0x00000002);
460 result.fInverse_ = fInverse_;
467 return super.
clone();
471 com.
google.protobuf.Descriptors.FieldDescriptor field,
472 java.lang.Object value) {
473 return super.
setField(field, value);
477 com.
google.protobuf.Descriptors.FieldDescriptor field) {
482 com.
google.protobuf.Descriptors.OneofDescriptor oneof) {
487 com.
google.protobuf.Descriptors.FieldDescriptor field,
488 int index, java.lang.Object value) {
493 com.
google.protobuf.Descriptors.FieldDescriptor field,
494 java.lang.Object value) {
502 super.mergeFrom(other);
509 if (!other.fDirect_.isEmpty()) {
510 if (fDirect_.isEmpty()) {
511 fDirect_ = other.fDirect_;
512 bitField0_ = (bitField0_ & ~0x00000001);
514 ensureFDirectIsMutable();
515 fDirect_.addAll(other.fDirect_);
519 if (!other.fInverse_.isEmpty()) {
520 if (fInverse_.isEmpty()) {
521 fInverse_ = other.fInverse_;
522 bitField0_ = (bitField0_ & ~0x00000002);
524 ensureFInverseIsMutable();
525 fInverse_.addAll(other.fInverse_);
541 com.
google.protobuf.CodedInputStream input,
542 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
543 throws java.io.IOException {
546 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
547 }
catch (
com.
google.protobuf.InvalidProtocolBufferException e) {
549 throw e.unwrapIOException();
551 if (parsedMessage !=
null) {
557 private int bitField0_;
559 private com.
google.protobuf.Internal.IntList fDirect_ = emptyIntList();
560 private void ensureFDirectIsMutable() {
561 if (!((bitField0_ & 0x00000001) != 0)) {
562 fDirect_ = mutableCopy(fDirect_);
563 bitField0_ |= 0x00000001;
569 public java.util.List<java.lang.Integer>
571 return ((bitField0_ & 0x00000001) != 0) ?
572 java.util.Collections.unmodifiableList(fDirect_) : fDirect_;
578 return fDirect_.size();
584 return fDirect_.getInt(index);
590 int index,
int value) {
591 ensureFDirectIsMutable();
592 fDirect_.setInt(index, value);
600 ensureFDirectIsMutable();
601 fDirect_.addInt(value);
609 java.lang.Iterable<? extends java.lang.Integer> values) {
610 ensureFDirectIsMutable();
611 com.
google.protobuf.AbstractMessageLite.Builder.addAll(
620 fDirect_ = emptyIntList();
621 bitField0_ = (bitField0_ & ~0x00000001);
626 private com.
google.protobuf.Internal.IntList fInverse_ = emptyIntList();
627 private void ensureFInverseIsMutable() {
628 if (!((bitField0_ & 0x00000002) != 0)) {
629 fInverse_ = mutableCopy(fInverse_);
630 bitField0_ |= 0x00000002;
636 public java.util.List<java.lang.Integer>
638 return ((bitField0_ & 0x00000002) != 0) ?
639 java.util.Collections.unmodifiableList(fInverse_) : fInverse_;
645 return fInverse_.size();
651 return fInverse_.getInt(index);
657 int index,
int value) {
658 ensureFInverseIsMutable();
659 fInverse_.setInt(index, value);
667 ensureFInverseIsMutable();
668 fInverse_.addInt(value);
676 java.lang.Iterable<? extends java.lang.Integer> values) {
677 ensureFInverseIsMutable();
678 com.
google.protobuf.AbstractMessageLite.Builder.addAll(
687 fInverse_ = emptyIntList();
688 bitField0_ = (bitField0_ & ~0x00000002);
694 final com.
google.protobuf.UnknownFieldSet unknownFields) {
700 final com.
google.protobuf.UnknownFieldSet unknownFields) {
715 return DEFAULT_INSTANCE;
722 com.
google.protobuf.CodedInputStream input,
723 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
724 throws com.
google.protobuf.InvalidProtocolBufferException {
740 return DEFAULT_INSTANCE;