4 package com.google.ortools.sat;
18 com.google.protobuf.GeneratedMessageV3 implements
21 private static final long serialVersionUID = 0L;
27 intervals_ = 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 intervals_ = newIntList();
57 mutable_bitField0_ |= 0x00000001;
59 intervals_.addInt(input.readInt32());
63 int length = input.readRawVarint32();
64 int limit = input.pushLimit(length);
65 if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
66 intervals_ = newIntList();
67 mutable_bitField0_ |= 0x00000001;
69 while (input.getBytesUntilLimit() > 0) {
70 intervals_.addInt(input.readInt32());
72 input.popLimit(limit);
76 if (!parseUnknownField(
77 input, unknownFields, extensionRegistry, tag)) {
84 }
catch (
com.
google.protobuf.InvalidProtocolBufferException e) {
85 throw e.setUnfinishedMessage(
this);
86 }
catch (java.io.IOException e) {
87 throw new com.
google.protobuf.InvalidProtocolBufferException(
88 e).setUnfinishedMessage(
this);
90 if (((mutable_bitField0_ & 0x00000001) != 0)) {
91 intervals_.makeImmutable();
93 this.unknownFields = unknownFields.build();
94 makeExtensionsImmutable();
97 public static final com.
google.protobuf.Descriptors.Descriptor
103 protected com.
google.protobuf.GeneratedMessageV3.FieldAccessorTable
106 .ensureFieldAccessorsInitialized(
111 private com.
google.protobuf.Internal.IntList intervals_;
115 public java.util.List<java.lang.Integer>
123 return intervals_.size();
129 return intervals_.getInt(index);
131 private int intervalsMemoizedSerializedSize = -1;
133 private byte memoizedIsInitialized = -1;
140 memoizedIsInitialized = 1;
146 throws java.io.IOException {
149 output.writeUInt32NoTag(10);
150 output.writeUInt32NoTag(intervalsMemoizedSerializedSize);
152 for (
int i = 0; i < intervals_.size(); i++) {
153 output.writeInt32NoTag(intervals_.getInt(i));
155 unknownFields.writeTo(output);
160 int size = memoizedSize;
161 if (size != -1)
return size;
166 for (
int i = 0; i < intervals_.size(); i++) {
167 dataSize +=
com.
google.protobuf.CodedOutputStream
168 .computeInt32SizeNoTag(intervals_.getInt(i));
173 size +=
com.
google.protobuf.CodedOutputStream
174 .computeInt32SizeNoTag(dataSize);
176 intervalsMemoizedSerializedSize = dataSize;
178 size += unknownFields.getSerializedSize();
184 public boolean equals(
final java.lang.Object obj) {
189 return super.equals(obj);
194 .equals(other.getIntervalsList()))
return false;
195 if (!unknownFields.equals(other.unknownFields))
return false;
201 if (memoizedHashCode != 0) {
202 return memoizedHashCode;
210 hash = (29 * hash) + unknownFields.hashCode();
211 memoizedHashCode = hash;
216 java.nio.ByteBuffer data)
217 throws com.
google.protobuf.InvalidProtocolBufferException {
218 return PARSER.parseFrom(data);
221 java.nio.ByteBuffer data,
222 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
223 throws com.
google.protobuf.InvalidProtocolBufferException {
224 return PARSER.parseFrom(data, extensionRegistry);
228 throws com.
google.protobuf.InvalidProtocolBufferException {
229 return PARSER.parseFrom(data);
233 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
234 throws com.
google.protobuf.InvalidProtocolBufferException {
235 return PARSER.parseFrom(data, extensionRegistry);
238 throws com.
google.protobuf.InvalidProtocolBufferException {
239 return PARSER.parseFrom(data);
243 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
244 throws com.
google.protobuf.InvalidProtocolBufferException {
245 return PARSER.parseFrom(data, extensionRegistry);
248 throws java.io.IOException {
249 return com.
google.protobuf.GeneratedMessageV3
250 .parseWithIOException(PARSER, input);
253 java.io.InputStream input,
254 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
255 throws java.io.IOException {
256 return com.
google.protobuf.GeneratedMessageV3
257 .parseWithIOException(PARSER, input, extensionRegistry);
260 throws java.io.IOException {
261 return com.
google.protobuf.GeneratedMessageV3
262 .parseDelimitedWithIOException(PARSER, input);
265 java.io.InputStream input,
266 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
267 throws java.io.IOException {
268 return com.
google.protobuf.GeneratedMessageV3
269 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
272 com.
google.protobuf.CodedInputStream input)
273 throws java.io.IOException {
274 return com.
google.protobuf.GeneratedMessageV3
275 .parseWithIOException(PARSER, input);
278 com.
google.protobuf.CodedInputStream input,
279 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
280 throws java.io.IOException {
281 return com.
google.protobuf.GeneratedMessageV3
282 .parseWithIOException(PARSER, input, extensionRegistry);
295 return this == DEFAULT_INSTANCE
301 com.
google.protobuf.GeneratedMessageV3.BuilderParent parent) {
317 com.google.protobuf.GeneratedMessageV3.
Builder<Builder> implements
320 public static final com.
google.protobuf.Descriptors.Descriptor
326 protected com.
google.protobuf.GeneratedMessageV3.FieldAccessorTable
329 .ensureFieldAccessorsInitialized(
335 maybeForceBuilderInitialization();
339 com.
google.protobuf.GeneratedMessageV3.BuilderParent parent) {
341 maybeForceBuilderInitialization();
343 private void maybeForceBuilderInitialization() {
344 if (
com.
google.protobuf.GeneratedMessageV3
345 .alwaysUseFieldBuilders) {
351 intervals_ = emptyIntList();
352 bitField0_ = (bitField0_ & ~0x00000001);
357 public com.
google.protobuf.Descriptors.Descriptor
370 if (!result.isInitialized()) {
371 throw newUninitializedMessageException(result);
379 int from_bitField0_ = bitField0_;
380 if (((bitField0_ & 0x00000001) != 0)) {
381 intervals_.makeImmutable();
382 bitField0_ = (bitField0_ & ~0x00000001);
384 result.intervals_ = intervals_;
391 return super.
clone();
395 com.
google.protobuf.Descriptors.FieldDescriptor field,
396 java.lang.Object value) {
397 return super.
setField(field, value);
401 com.
google.protobuf.Descriptors.FieldDescriptor field) {
406 com.
google.protobuf.Descriptors.OneofDescriptor oneof) {
411 com.
google.protobuf.Descriptors.FieldDescriptor field,
412 int index, java.lang.Object value) {
417 com.
google.protobuf.Descriptors.FieldDescriptor field,
418 java.lang.Object value) {
426 super.mergeFrom(other);
433 if (!other.intervals_.isEmpty()) {
434 if (intervals_.isEmpty()) {
435 intervals_ = other.intervals_;
436 bitField0_ = (bitField0_ & ~0x00000001);
438 ensureIntervalsIsMutable();
439 intervals_.addAll(other.intervals_);
455 com.
google.protobuf.CodedInputStream input,
456 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
457 throws java.io.IOException {
460 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
461 }
catch (
com.
google.protobuf.InvalidProtocolBufferException e) {
463 throw e.unwrapIOException();
465 if (parsedMessage !=
null) {
471 private int bitField0_;
473 private com.
google.protobuf.Internal.IntList intervals_ = emptyIntList();
474 private void ensureIntervalsIsMutable() {
475 if (!((bitField0_ & 0x00000001) != 0)) {
476 intervals_ = mutableCopy(intervals_);
477 bitField0_ |= 0x00000001;
483 public java.util.List<java.lang.Integer>
485 return ((bitField0_ & 0x00000001) != 0) ?
486 java.util.Collections.unmodifiableList(intervals_) : intervals_;
492 return intervals_.size();
498 return intervals_.getInt(index);
504 int index,
int value) {
505 ensureIntervalsIsMutable();
506 intervals_.setInt(index, value);
514 ensureIntervalsIsMutable();
515 intervals_.addInt(value);
523 java.lang.Iterable<? extends java.lang.Integer> values) {
524 ensureIntervalsIsMutable();
525 com.
google.protobuf.AbstractMessageLite.Builder.addAll(
534 intervals_ = emptyIntList();
535 bitField0_ = (bitField0_ & ~0x00000001);
541 final com.
google.protobuf.UnknownFieldSet unknownFields) {
547 final com.
google.protobuf.UnknownFieldSet unknownFields) {
562 return DEFAULT_INSTANCE;
569 com.
google.protobuf.CodedInputStream input,
570 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
571 throws com.
google.protobuf.InvalidProtocolBufferException {
587 return DEFAULT_INSTANCE;