4 package com.google.ortools.sat;
18 com.google.protobuf.GeneratedMessageV3 implements
21 private static final long serialVersionUID = 0L;
27 intervals_ = 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 intervals_ = newIntList();
64 mutable_bitField0_ |= 0x00000001;
66 intervals_.addInt(input.readInt32());
70 int length = input.readRawVarint32();
71 int limit = input.pushLimit(length);
72 if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
73 intervals_ = newIntList();
74 mutable_bitField0_ |= 0x00000001;
76 while (input.getBytesUntilLimit() > 0) {
77 intervals_.addInt(input.readInt32());
79 input.popLimit(limit);
83 if (!parseUnknownField(
84 input, unknownFields, extensionRegistry, tag)) {
91 }
catch (
com.
google.protobuf.InvalidProtocolBufferException e) {
92 throw e.setUnfinishedMessage(
this);
93 }
catch (java.io.IOException e) {
94 throw new com.
google.protobuf.InvalidProtocolBufferException(
95 e).setUnfinishedMessage(
this);
97 if (((mutable_bitField0_ & 0x00000001) != 0)) {
98 intervals_.makeImmutable();
100 this.unknownFields = unknownFields.build();
101 makeExtensionsImmutable();
104 public static final com.
google.protobuf.Descriptors.Descriptor
110 protected com.
google.protobuf.GeneratedMessageV3.FieldAccessorTable
113 .ensureFieldAccessorsInitialized(
118 private com.
google.protobuf.Internal.IntList intervals_;
122 public java.util.List<java.lang.Integer>
130 return intervals_.size();
136 return intervals_.getInt(index);
138 private int intervalsMemoizedSerializedSize = -1;
140 private byte memoizedIsInitialized = -1;
147 memoizedIsInitialized = 1;
153 throws java.io.IOException {
156 output.writeUInt32NoTag(10);
157 output.writeUInt32NoTag(intervalsMemoizedSerializedSize);
159 for (
int i = 0; i < intervals_.size(); i++) {
160 output.writeInt32NoTag(intervals_.getInt(i));
162 unknownFields.writeTo(output);
167 int size = memoizedSize;
168 if (size != -1)
return size;
173 for (
int i = 0; i < intervals_.size(); i++) {
174 dataSize +=
com.
google.protobuf.CodedOutputStream
175 .computeInt32SizeNoTag(intervals_.getInt(i));
180 size +=
com.
google.protobuf.CodedOutputStream
181 .computeInt32SizeNoTag(dataSize);
183 intervalsMemoizedSerializedSize = dataSize;
185 size += unknownFields.getSerializedSize();
191 public boolean equals(
final java.lang.Object obj) {
196 return super.equals(obj);
201 .equals(other.getIntervalsList()))
return false;
202 if (!unknownFields.equals(other.unknownFields))
return false;
208 if (memoizedHashCode != 0) {
209 return memoizedHashCode;
217 hash = (29 * hash) + unknownFields.hashCode();
218 memoizedHashCode = hash;
223 java.nio.ByteBuffer data)
224 throws com.
google.protobuf.InvalidProtocolBufferException {
225 return PARSER.parseFrom(data);
228 java.nio.ByteBuffer data,
229 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
230 throws com.
google.protobuf.InvalidProtocolBufferException {
231 return PARSER.parseFrom(data, extensionRegistry);
235 throws com.
google.protobuf.InvalidProtocolBufferException {
236 return PARSER.parseFrom(data);
240 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
241 throws com.
google.protobuf.InvalidProtocolBufferException {
242 return PARSER.parseFrom(data, extensionRegistry);
245 throws com.
google.protobuf.InvalidProtocolBufferException {
246 return PARSER.parseFrom(data);
250 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
251 throws com.
google.protobuf.InvalidProtocolBufferException {
252 return PARSER.parseFrom(data, extensionRegistry);
255 throws java.io.IOException {
256 return com.
google.protobuf.GeneratedMessageV3
257 .parseWithIOException(PARSER, input);
260 java.io.InputStream input,
261 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
262 throws java.io.IOException {
263 return com.
google.protobuf.GeneratedMessageV3
264 .parseWithIOException(PARSER, input, extensionRegistry);
267 throws java.io.IOException {
268 return com.
google.protobuf.GeneratedMessageV3
269 .parseDelimitedWithIOException(PARSER, input);
272 java.io.InputStream input,
273 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
274 throws java.io.IOException {
275 return com.
google.protobuf.GeneratedMessageV3
276 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
279 com.
google.protobuf.CodedInputStream input)
280 throws java.io.IOException {
281 return com.
google.protobuf.GeneratedMessageV3
282 .parseWithIOException(PARSER, input);
285 com.
google.protobuf.CodedInputStream input,
286 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
287 throws java.io.IOException {
288 return com.
google.protobuf.GeneratedMessageV3
289 .parseWithIOException(PARSER, input, extensionRegistry);
302 return this == DEFAULT_INSTANCE
308 com.
google.protobuf.GeneratedMessageV3.BuilderParent parent) {
324 com.google.protobuf.GeneratedMessageV3.
Builder<Builder> implements
327 public static final com.
google.protobuf.Descriptors.Descriptor
333 protected com.
google.protobuf.GeneratedMessageV3.FieldAccessorTable
336 .ensureFieldAccessorsInitialized(
342 maybeForceBuilderInitialization();
346 com.
google.protobuf.GeneratedMessageV3.BuilderParent parent) {
348 maybeForceBuilderInitialization();
350 private void maybeForceBuilderInitialization() {
351 if (
com.
google.protobuf.GeneratedMessageV3
352 .alwaysUseFieldBuilders) {
358 intervals_ = emptyIntList();
359 bitField0_ = (bitField0_ & ~0x00000001);
364 public com.
google.protobuf.Descriptors.Descriptor
377 if (!result.isInitialized()) {
378 throw newUninitializedMessageException(result);
386 int from_bitField0_ = bitField0_;
387 if (((bitField0_ & 0x00000001) != 0)) {
388 intervals_.makeImmutable();
389 bitField0_ = (bitField0_ & ~0x00000001);
391 result.intervals_ = intervals_;
398 return super.
clone();
402 com.
google.protobuf.Descriptors.FieldDescriptor field,
403 java.lang.Object value) {
404 return super.
setField(field, value);
408 com.
google.protobuf.Descriptors.FieldDescriptor field) {
413 com.
google.protobuf.Descriptors.OneofDescriptor oneof) {
418 com.
google.protobuf.Descriptors.FieldDescriptor field,
419 int index, java.lang.Object value) {
424 com.
google.protobuf.Descriptors.FieldDescriptor field,
425 java.lang.Object value) {
433 super.mergeFrom(other);
440 if (!other.intervals_.isEmpty()) {
441 if (intervals_.isEmpty()) {
442 intervals_ = other.intervals_;
443 bitField0_ = (bitField0_ & ~0x00000001);
445 ensureIntervalsIsMutable();
446 intervals_.addAll(other.intervals_);
462 com.
google.protobuf.CodedInputStream input,
463 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
464 throws java.io.IOException {
467 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
468 }
catch (
com.
google.protobuf.InvalidProtocolBufferException e) {
470 throw e.unwrapIOException();
472 if (parsedMessage !=
null) {
478 private int bitField0_;
480 private com.
google.protobuf.Internal.IntList intervals_ = emptyIntList();
481 private void ensureIntervalsIsMutable() {
482 if (!((bitField0_ & 0x00000001) != 0)) {
483 intervals_ = mutableCopy(intervals_);
484 bitField0_ |= 0x00000001;
490 public java.util.List<java.lang.Integer>
492 return ((bitField0_ & 0x00000001) != 0) ?
493 java.util.Collections.unmodifiableList(intervals_) : intervals_;
499 return intervals_.size();
505 return intervals_.getInt(index);
511 int index,
int value) {
512 ensureIntervalsIsMutable();
513 intervals_.setInt(index, value);
521 ensureIntervalsIsMutable();
522 intervals_.addInt(value);
530 java.lang.Iterable<? extends java.lang.Integer> values) {
531 ensureIntervalsIsMutable();
532 com.
google.protobuf.AbstractMessageLite.Builder.addAll(
541 intervals_ = emptyIntList();
542 bitField0_ = (bitField0_ & ~0x00000001);
548 final com.
google.protobuf.UnknownFieldSet unknownFields) {
554 final com.
google.protobuf.UnknownFieldSet unknownFields) {
569 return DEFAULT_INSTANCE;
576 com.
google.protobuf.CodedInputStream input,
577 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
578 throws com.
google.protobuf.InvalidProtocolBufferException {
594 return DEFAULT_INSTANCE;