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 public final com.
google.protobuf.UnknownFieldSet
33 return this.unknownFields;
36 com.
google.protobuf.CodedInputStream input,
37 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
38 throws com.
google.protobuf.InvalidProtocolBufferException {
40 if (extensionRegistry ==
null) {
41 throw new java.lang.NullPointerException();
43 int mutable_bitField0_ = 0;
44 com.
google.protobuf.UnknownFieldSet.Builder unknownFields =
45 com.
google.protobuf.UnknownFieldSet.newBuilder();
49 int tag = input.readTag();
55 if (!((mutable_bitField0_ & 0x00000001) != 0)) {
56 xIntervals_ = newIntList();
57 mutable_bitField0_ |= 0x00000001;
59 xIntervals_.addInt(input.readInt32());
63 int length = input.readRawVarint32();
64 int limit = input.pushLimit(length);
65 if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
66 xIntervals_ = newIntList();
67 mutable_bitField0_ |= 0x00000001;
69 while (input.getBytesUntilLimit() > 0) {
70 xIntervals_.addInt(input.readInt32());
72 input.popLimit(limit);
76 if (!((mutable_bitField0_ & 0x00000002) != 0)) {
77 yIntervals_ = newIntList();
78 mutable_bitField0_ |= 0x00000002;
80 yIntervals_.addInt(input.readInt32());
84 int length = input.readRawVarint32();
85 int limit = input.pushLimit(length);
86 if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
87 yIntervals_ = newIntList();
88 mutable_bitField0_ |= 0x00000002;
90 while (input.getBytesUntilLimit() > 0) {
91 yIntervals_.addInt(input.readInt32());
93 input.popLimit(limit);
97 if (!parseUnknownField(
98 input, unknownFields, extensionRegistry, tag)) {
105 }
catch (
com.
google.protobuf.InvalidProtocolBufferException e) {
106 throw e.setUnfinishedMessage(
this);
107 }
catch (java.io.IOException e) {
108 throw new com.
google.protobuf.InvalidProtocolBufferException(
109 e).setUnfinishedMessage(
this);
111 if (((mutable_bitField0_ & 0x00000001) != 0)) {
112 xIntervals_.makeImmutable();
114 if (((mutable_bitField0_ & 0x00000002) != 0)) {
115 yIntervals_.makeImmutable();
117 this.unknownFields = unknownFields.build();
118 makeExtensionsImmutable();
121 public static final com.
google.protobuf.Descriptors.Descriptor
127 protected com.
google.protobuf.GeneratedMessageV3.FieldAccessorTable
130 .ensureFieldAccessorsInitialized(
135 private com.
google.protobuf.Internal.IntList xIntervals_;
139 public java.util.List<java.lang.Integer>
147 return xIntervals_.size();
153 return xIntervals_.getInt(index);
155 private int xIntervalsMemoizedSerializedSize = -1;
158 private com.
google.protobuf.Internal.IntList yIntervals_;
166 public java.util.List<java.lang.Integer>
178 return yIntervals_.size();
188 return yIntervals_.getInt(index);
190 private int yIntervalsMemoizedSerializedSize = -1;
192 private byte memoizedIsInitialized = -1;
199 memoizedIsInitialized = 1;
205 throws java.io.IOException {
208 output.writeUInt32NoTag(10);
209 output.writeUInt32NoTag(xIntervalsMemoizedSerializedSize);
211 for (
int i = 0; i < xIntervals_.size(); i++) {
212 output.writeInt32NoTag(xIntervals_.getInt(i));
215 output.writeUInt32NoTag(18);
216 output.writeUInt32NoTag(yIntervalsMemoizedSerializedSize);
218 for (
int i = 0; i < yIntervals_.size(); i++) {
219 output.writeInt32NoTag(yIntervals_.getInt(i));
221 unknownFields.writeTo(output);
226 int size = memoizedSize;
227 if (size != -1)
return size;
232 for (
int i = 0; i < xIntervals_.size(); i++) {
233 dataSize +=
com.
google.protobuf.CodedOutputStream
234 .computeInt32SizeNoTag(xIntervals_.getInt(i));
239 size +=
com.
google.protobuf.CodedOutputStream
240 .computeInt32SizeNoTag(dataSize);
242 xIntervalsMemoizedSerializedSize = dataSize;
246 for (
int i = 0; i < yIntervals_.size(); i++) {
247 dataSize +=
com.
google.protobuf.CodedOutputStream
248 .computeInt32SizeNoTag(yIntervals_.getInt(i));
253 size +=
com.
google.protobuf.CodedOutputStream
254 .computeInt32SizeNoTag(dataSize);
256 yIntervalsMemoizedSerializedSize = dataSize;
258 size += unknownFields.getSerializedSize();
264 public boolean equals(
final java.lang.Object obj) {
269 return super.equals(obj);
274 .equals(other.getXIntervalsList()))
return false;
276 .equals(other.getYIntervalsList()))
return false;
277 if (!unknownFields.equals(other.unknownFields))
return false;
283 if (memoizedHashCode != 0) {
284 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) {
402 com.google.protobuf.GeneratedMessageV3.
Builder<Builder> implements
405 public static final com.
google.protobuf.Descriptors.Descriptor
411 protected com.
google.protobuf.GeneratedMessageV3.FieldAccessorTable
414 .ensureFieldAccessorsInitialized(
420 maybeForceBuilderInitialization();
424 com.
google.protobuf.GeneratedMessageV3.BuilderParent parent) {
426 maybeForceBuilderInitialization();
428 private void maybeForceBuilderInitialization() {
429 if (
com.
google.protobuf.GeneratedMessageV3
430 .alwaysUseFieldBuilders) {
436 xIntervals_ = emptyIntList();
437 bitField0_ = (bitField0_ & ~0x00000001);
438 yIntervals_ = emptyIntList();
439 bitField0_ = (bitField0_ & ~0x00000002);
444 public com.
google.protobuf.Descriptors.Descriptor
457 if (!result.isInitialized()) {
458 throw newUninitializedMessageException(result);
466 int from_bitField0_ = bitField0_;
467 if (((bitField0_ & 0x00000001) != 0)) {
468 xIntervals_.makeImmutable();
469 bitField0_ = (bitField0_ & ~0x00000001);
471 result.xIntervals_ = xIntervals_;
472 if (((bitField0_ & 0x00000002) != 0)) {
473 yIntervals_.makeImmutable();
474 bitField0_ = (bitField0_ & ~0x00000002);
476 result.yIntervals_ = yIntervals_;
483 return super.
clone();
487 com.
google.protobuf.Descriptors.FieldDescriptor field,
488 java.lang.Object value) {
489 return super.
setField(field, value);
493 com.
google.protobuf.Descriptors.FieldDescriptor field) {
498 com.
google.protobuf.Descriptors.OneofDescriptor oneof) {
503 com.
google.protobuf.Descriptors.FieldDescriptor field,
504 int index, java.lang.Object value) {
509 com.
google.protobuf.Descriptors.FieldDescriptor field,
510 java.lang.Object value) {
518 super.mergeFrom(other);
525 if (!other.xIntervals_.isEmpty()) {
526 if (xIntervals_.isEmpty()) {
527 xIntervals_ = other.xIntervals_;
528 bitField0_ = (bitField0_ & ~0x00000001);
530 ensureXIntervalsIsMutable();
531 xIntervals_.addAll(other.xIntervals_);
535 if (!other.yIntervals_.isEmpty()) {
536 if (yIntervals_.isEmpty()) {
537 yIntervals_ = other.yIntervals_;
538 bitField0_ = (bitField0_ & ~0x00000002);
540 ensureYIntervalsIsMutable();
541 yIntervals_.addAll(other.yIntervals_);
557 com.
google.protobuf.CodedInputStream input,
558 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
559 throws java.io.IOException {
562 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
563 }
catch (
com.
google.protobuf.InvalidProtocolBufferException e) {
565 throw e.unwrapIOException();
567 if (parsedMessage !=
null) {
573 private int bitField0_;
575 private com.
google.protobuf.Internal.IntList xIntervals_ = emptyIntList();
576 private void ensureXIntervalsIsMutable() {
577 if (!((bitField0_ & 0x00000001) != 0)) {
578 xIntervals_ = mutableCopy(xIntervals_);
579 bitField0_ |= 0x00000001;
585 public java.util.List<java.lang.Integer>
587 return ((bitField0_ & 0x00000001) != 0) ?
588 java.util.Collections.unmodifiableList(xIntervals_) : xIntervals_;
594 return xIntervals_.size();
600 return xIntervals_.getInt(index);
606 int index,
int value) {
607 ensureXIntervalsIsMutable();
608 xIntervals_.setInt(index, value);
616 ensureXIntervalsIsMutable();
617 xIntervals_.addInt(value);
625 java.lang.Iterable<? extends java.lang.Integer> values) {
626 ensureXIntervalsIsMutable();
627 com.
google.protobuf.AbstractMessageLite.Builder.addAll(
628 values, xIntervals_);
636 xIntervals_ = emptyIntList();
637 bitField0_ = (bitField0_ & ~0x00000001);
642 private com.
google.protobuf.Internal.IntList yIntervals_ = emptyIntList();
643 private void ensureYIntervalsIsMutable() {
644 if (!((bitField0_ & 0x00000002) != 0)) {
645 yIntervals_ = mutableCopy(yIntervals_);
646 bitField0_ |= 0x00000002;
656 public java.util.List<java.lang.Integer>
658 return ((bitField0_ & 0x00000002) != 0) ?
659 java.util.Collections.unmodifiableList(yIntervals_) : yIntervals_;
669 return yIntervals_.size();
679 return yIntervals_.getInt(index);
689 int index,
int value) {
690 ensureYIntervalsIsMutable();
691 yIntervals_.setInt(index, value);
703 ensureYIntervalsIsMutable();
704 yIntervals_.addInt(value);
716 java.lang.Iterable<? extends java.lang.Integer> values) {
717 ensureYIntervalsIsMutable();
718 com.
google.protobuf.AbstractMessageLite.Builder.addAll(
719 values, yIntervals_);
731 yIntervals_ = emptyIntList();
732 bitField0_ = (bitField0_ & ~0x00000002);
738 final com.
google.protobuf.UnknownFieldSet unknownFields) {
744 final com.
google.protobuf.UnknownFieldSet unknownFields) {
759 return DEFAULT_INSTANCE;
766 com.
google.protobuf.CodedInputStream input,
767 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
768 throws com.
google.protobuf.InvalidProtocolBufferException {
784 return DEFAULT_INSTANCE;