4 package com.google.ortools.sat;
17 com.google.protobuf.GeneratedMessageV3 implements
20 private static final long serialVersionUID = 0L;
26 xIntervals_ = emptyIntList();
27 yIntervals_ = emptyIntList();
31 @SuppressWarnings({
"unused"})
33 UnusedPrivateParameter unused) {
38 public final com.
google.protobuf.UnknownFieldSet
40 return this.unknownFields;
43 com.
google.protobuf.CodedInputStream input,
44 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
45 throws com.
google.protobuf.InvalidProtocolBufferException {
47 if (extensionRegistry ==
null) {
48 throw new java.lang.NullPointerException();
50 int mutable_bitField0_ = 0;
51 com.
google.protobuf.UnknownFieldSet.Builder unknownFields =
52 com.
google.protobuf.UnknownFieldSet.newBuilder();
56 int tag = input.readTag();
62 if (!((mutable_bitField0_ & 0x00000001) != 0)) {
63 xIntervals_ = newIntList();
64 mutable_bitField0_ |= 0x00000001;
66 xIntervals_.addInt(input.readInt32());
70 int length = input.readRawVarint32();
71 int limit = input.pushLimit(length);
72 if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
73 xIntervals_ = newIntList();
74 mutable_bitField0_ |= 0x00000001;
76 while (input.getBytesUntilLimit() > 0) {
77 xIntervals_.addInt(input.readInt32());
79 input.popLimit(limit);
83 if (!((mutable_bitField0_ & 0x00000002) != 0)) {
84 yIntervals_ = newIntList();
85 mutable_bitField0_ |= 0x00000002;
87 yIntervals_.addInt(input.readInt32());
91 int length = input.readRawVarint32();
92 int limit = input.pushLimit(length);
93 if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
94 yIntervals_ = newIntList();
95 mutable_bitField0_ |= 0x00000002;
97 while (input.getBytesUntilLimit() > 0) {
98 yIntervals_.addInt(input.readInt32());
100 input.popLimit(limit);
104 if (!parseUnknownField(
105 input, unknownFields, extensionRegistry, tag)) {
112 }
catch (
com.
google.protobuf.InvalidProtocolBufferException e) {
113 throw e.setUnfinishedMessage(
this);
114 }
catch (java.io.IOException e) {
115 throw new com.
google.protobuf.InvalidProtocolBufferException(
116 e).setUnfinishedMessage(
this);
118 if (((mutable_bitField0_ & 0x00000001) != 0)) {
119 xIntervals_.makeImmutable();
121 if (((mutable_bitField0_ & 0x00000002) != 0)) {
122 yIntervals_.makeImmutable();
124 this.unknownFields = unknownFields.build();
125 makeExtensionsImmutable();
128 public static final com.
google.protobuf.Descriptors.Descriptor
134 protected com.
google.protobuf.GeneratedMessageV3.FieldAccessorTable
137 .ensureFieldAccessorsInitialized(
142 private com.
google.protobuf.Internal.IntList xIntervals_;
146 public java.util.List<java.lang.Integer>
154 return xIntervals_.size();
160 return xIntervals_.getInt(index);
162 private int xIntervalsMemoizedSerializedSize = -1;
165 private com.
google.protobuf.Internal.IntList yIntervals_;
173 public java.util.List<java.lang.Integer>
185 return yIntervals_.size();
195 return yIntervals_.getInt(index);
197 private int yIntervalsMemoizedSerializedSize = -1;
199 private byte memoizedIsInitialized = -1;
206 memoizedIsInitialized = 1;
212 throws java.io.IOException {
215 output.writeUInt32NoTag(10);
216 output.writeUInt32NoTag(xIntervalsMemoizedSerializedSize);
218 for (
int i = 0; i < xIntervals_.size(); i++) {
219 output.writeInt32NoTag(xIntervals_.getInt(i));
222 output.writeUInt32NoTag(18);
223 output.writeUInt32NoTag(yIntervalsMemoizedSerializedSize);
225 for (
int i = 0; i < yIntervals_.size(); i++) {
226 output.writeInt32NoTag(yIntervals_.getInt(i));
228 unknownFields.writeTo(output);
233 int size = memoizedSize;
234 if (size != -1)
return size;
239 for (
int i = 0; i < xIntervals_.size(); i++) {
240 dataSize +=
com.
google.protobuf.CodedOutputStream
241 .computeInt32SizeNoTag(xIntervals_.getInt(i));
246 size +=
com.
google.protobuf.CodedOutputStream
247 .computeInt32SizeNoTag(dataSize);
249 xIntervalsMemoizedSerializedSize = dataSize;
253 for (
int i = 0; i < yIntervals_.size(); i++) {
254 dataSize +=
com.
google.protobuf.CodedOutputStream
255 .computeInt32SizeNoTag(yIntervals_.getInt(i));
260 size +=
com.
google.protobuf.CodedOutputStream
261 .computeInt32SizeNoTag(dataSize);
263 yIntervalsMemoizedSerializedSize = dataSize;
265 size += unknownFields.getSerializedSize();
271 public boolean equals(
final java.lang.Object obj) {
276 return super.equals(obj);
281 .equals(other.getXIntervalsList()))
return false;
283 .equals(other.getYIntervalsList()))
return false;
284 if (!unknownFields.equals(other.unknownFields))
return false;
290 if (memoizedHashCode != 0) {
291 return memoizedHashCode;
303 hash = (29 * hash) + unknownFields.hashCode();
304 memoizedHashCode = hash;
309 java.nio.ByteBuffer data)
310 throws com.
google.protobuf.InvalidProtocolBufferException {
311 return PARSER.parseFrom(data);
314 java.nio.ByteBuffer data,
315 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
316 throws com.
google.protobuf.InvalidProtocolBufferException {
317 return PARSER.parseFrom(data, extensionRegistry);
321 throws com.
google.protobuf.InvalidProtocolBufferException {
322 return PARSER.parseFrom(data);
326 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
327 throws com.
google.protobuf.InvalidProtocolBufferException {
328 return PARSER.parseFrom(data, extensionRegistry);
331 throws com.
google.protobuf.InvalidProtocolBufferException {
332 return PARSER.parseFrom(data);
336 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
337 throws com.
google.protobuf.InvalidProtocolBufferException {
338 return PARSER.parseFrom(data, extensionRegistry);
341 throws java.io.IOException {
342 return com.
google.protobuf.GeneratedMessageV3
343 .parseWithIOException(PARSER, input);
346 java.io.InputStream input,
347 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
348 throws java.io.IOException {
349 return com.
google.protobuf.GeneratedMessageV3
350 .parseWithIOException(PARSER, input, extensionRegistry);
353 throws java.io.IOException {
354 return com.
google.protobuf.GeneratedMessageV3
355 .parseDelimitedWithIOException(PARSER, input);
358 java.io.InputStream input,
359 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
360 throws java.io.IOException {
361 return com.
google.protobuf.GeneratedMessageV3
362 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
365 com.
google.protobuf.CodedInputStream input)
366 throws java.io.IOException {
367 return com.
google.protobuf.GeneratedMessageV3
368 .parseWithIOException(PARSER, input);
371 com.
google.protobuf.CodedInputStream input,
372 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
373 throws java.io.IOException {
374 return com.
google.protobuf.GeneratedMessageV3
375 .parseWithIOException(PARSER, input, extensionRegistry);
388 return this == DEFAULT_INSTANCE
394 com.
google.protobuf.GeneratedMessageV3.BuilderParent parent) {
409 com.google.protobuf.GeneratedMessageV3.
Builder<Builder> implements
412 public static final com.
google.protobuf.Descriptors.Descriptor
418 protected com.
google.protobuf.GeneratedMessageV3.FieldAccessorTable
421 .ensureFieldAccessorsInitialized(
427 maybeForceBuilderInitialization();
431 com.
google.protobuf.GeneratedMessageV3.BuilderParent parent) {
433 maybeForceBuilderInitialization();
435 private void maybeForceBuilderInitialization() {
436 if (
com.
google.protobuf.GeneratedMessageV3
437 .alwaysUseFieldBuilders) {
443 xIntervals_ = emptyIntList();
444 bitField0_ = (bitField0_ & ~0x00000001);
445 yIntervals_ = emptyIntList();
446 bitField0_ = (bitField0_ & ~0x00000002);
451 public com.
google.protobuf.Descriptors.Descriptor
464 if (!result.isInitialized()) {
465 throw newUninitializedMessageException(result);
473 int from_bitField0_ = bitField0_;
474 if (((bitField0_ & 0x00000001) != 0)) {
475 xIntervals_.makeImmutable();
476 bitField0_ = (bitField0_ & ~0x00000001);
478 result.xIntervals_ = xIntervals_;
479 if (((bitField0_ & 0x00000002) != 0)) {
480 yIntervals_.makeImmutable();
481 bitField0_ = (bitField0_ & ~0x00000002);
483 result.yIntervals_ = yIntervals_;
490 return super.
clone();
494 com.
google.protobuf.Descriptors.FieldDescriptor field,
495 java.lang.Object value) {
496 return super.
setField(field, value);
500 com.
google.protobuf.Descriptors.FieldDescriptor field) {
505 com.
google.protobuf.Descriptors.OneofDescriptor oneof) {
510 com.
google.protobuf.Descriptors.FieldDescriptor field,
511 int index, java.lang.Object value) {
516 com.
google.protobuf.Descriptors.FieldDescriptor field,
517 java.lang.Object value) {
525 super.mergeFrom(other);
532 if (!other.xIntervals_.isEmpty()) {
533 if (xIntervals_.isEmpty()) {
534 xIntervals_ = other.xIntervals_;
535 bitField0_ = (bitField0_ & ~0x00000001);
537 ensureXIntervalsIsMutable();
538 xIntervals_.addAll(other.xIntervals_);
542 if (!other.yIntervals_.isEmpty()) {
543 if (yIntervals_.isEmpty()) {
544 yIntervals_ = other.yIntervals_;
545 bitField0_ = (bitField0_ & ~0x00000002);
547 ensureYIntervalsIsMutable();
548 yIntervals_.addAll(other.yIntervals_);
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 com.
google.protobuf.Internal.IntList xIntervals_ = emptyIntList();
583 private void ensureXIntervalsIsMutable() {
584 if (!((bitField0_ & 0x00000001) != 0)) {
585 xIntervals_ = mutableCopy(xIntervals_);
586 bitField0_ |= 0x00000001;
592 public java.util.List<java.lang.Integer>
594 return ((bitField0_ & 0x00000001) != 0) ?
595 java.util.Collections.unmodifiableList(xIntervals_) : xIntervals_;
601 return xIntervals_.size();
607 return xIntervals_.getInt(index);
613 int index,
int value) {
614 ensureXIntervalsIsMutable();
615 xIntervals_.setInt(index, value);
623 ensureXIntervalsIsMutable();
624 xIntervals_.addInt(value);
632 java.lang.Iterable<? extends java.lang.Integer> values) {
633 ensureXIntervalsIsMutable();
634 com.
google.protobuf.AbstractMessageLite.Builder.addAll(
635 values, xIntervals_);
643 xIntervals_ = emptyIntList();
644 bitField0_ = (bitField0_ & ~0x00000001);
649 private com.
google.protobuf.Internal.IntList yIntervals_ = emptyIntList();
650 private void ensureYIntervalsIsMutable() {
651 if (!((bitField0_ & 0x00000002) != 0)) {
652 yIntervals_ = mutableCopy(yIntervals_);
653 bitField0_ |= 0x00000002;
663 public java.util.List<java.lang.Integer>
665 return ((bitField0_ & 0x00000002) != 0) ?
666 java.util.Collections.unmodifiableList(yIntervals_) : yIntervals_;
676 return yIntervals_.size();
686 return yIntervals_.getInt(index);
696 int index,
int value) {
697 ensureYIntervalsIsMutable();
698 yIntervals_.setInt(index, value);
710 ensureYIntervalsIsMutable();
711 yIntervals_.addInt(value);
723 java.lang.Iterable<? extends java.lang.Integer> values) {
724 ensureYIntervalsIsMutable();
725 com.
google.protobuf.AbstractMessageLite.Builder.addAll(
726 values, yIntervals_);
738 yIntervals_ = emptyIntList();
739 bitField0_ = (bitField0_ & ~0x00000002);
745 final com.
google.protobuf.UnknownFieldSet unknownFields) {
751 final com.
google.protobuf.UnknownFieldSet unknownFields) {
766 return DEFAULT_INSTANCE;
773 com.
google.protobuf.CodedInputStream input,
774 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
775 throws com.
google.protobuf.InvalidProtocolBufferException {
791 return DEFAULT_INSTANCE;