4 package com.google.ortools.sat;
14 com.google.protobuf.GeneratedMessageV3 implements
17 private static final long serialVersionUID = 0L;
23 literals_ = emptyIntList();
27 @SuppressWarnings({
"unused"})
29 UnusedPrivateParameter unused) {
34 public final com.
google.protobuf.UnknownFieldSet
36 return this.unknownFields;
39 com.
google.protobuf.CodedInputStream input,
40 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
41 throws com.
google.protobuf.InvalidProtocolBufferException {
43 if (extensionRegistry ==
null) {
44 throw new java.lang.NullPointerException();
46 int mutable_bitField0_ = 0;
47 com.
google.protobuf.UnknownFieldSet.Builder unknownFields =
48 com.
google.protobuf.UnknownFieldSet.newBuilder();
52 int tag = input.readTag();
58 if (!((mutable_bitField0_ & 0x00000001) != 0)) {
59 literals_ = newIntList();
60 mutable_bitField0_ |= 0x00000001;
62 literals_.addInt(input.readInt32());
66 int length = input.readRawVarint32();
67 int limit = input.pushLimit(length);
68 if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
69 literals_ = newIntList();
70 mutable_bitField0_ |= 0x00000001;
72 while (input.getBytesUntilLimit() > 0) {
73 literals_.addInt(input.readInt32());
75 input.popLimit(limit);
79 if (!parseUnknownField(
80 input, unknownFields, extensionRegistry, tag)) {
87 }
catch (
com.
google.protobuf.InvalidProtocolBufferException e) {
88 throw e.setUnfinishedMessage(
this);
89 }
catch (java.io.IOException e) {
90 throw new com.
google.protobuf.InvalidProtocolBufferException(
91 e).setUnfinishedMessage(
this);
93 if (((mutable_bitField0_ & 0x00000001) != 0)) {
94 literals_.makeImmutable();
96 this.unknownFields = unknownFields.build();
97 makeExtensionsImmutable();
100 public static final com.
google.protobuf.Descriptors.Descriptor
106 protected com.
google.protobuf.GeneratedMessageV3.FieldAccessorTable
109 .ensureFieldAccessorsInitialized(
114 private com.
google.protobuf.Internal.IntList literals_;
118 public java.util.List<java.lang.Integer>
126 return literals_.size();
132 return literals_.getInt(index);
134 private int literalsMemoizedSerializedSize = -1;
136 private byte memoizedIsInitialized = -1;
143 memoizedIsInitialized = 1;
149 throws java.io.IOException {
152 output.writeUInt32NoTag(10);
153 output.writeUInt32NoTag(literalsMemoizedSerializedSize);
155 for (
int i = 0; i < literals_.size(); i++) {
156 output.writeInt32NoTag(literals_.getInt(i));
158 unknownFields.writeTo(output);
163 int size = memoizedSize;
164 if (size != -1)
return size;
169 for (
int i = 0; i < literals_.size(); i++) {
170 dataSize +=
com.
google.protobuf.CodedOutputStream
171 .computeInt32SizeNoTag(literals_.getInt(i));
176 size +=
com.
google.protobuf.CodedOutputStream
177 .computeInt32SizeNoTag(dataSize);
179 literalsMemoizedSerializedSize = dataSize;
181 size += unknownFields.getSerializedSize();
187 public boolean equals(
final java.lang.Object obj) {
192 return super.equals(obj);
197 .equals(other.getLiteralsList()))
return false;
198 if (!unknownFields.equals(other.unknownFields))
return false;
204 if (memoizedHashCode != 0) {
205 return memoizedHashCode;
213 hash = (29 * hash) + unknownFields.hashCode();
214 memoizedHashCode = hash;
219 java.nio.ByteBuffer data)
220 throws com.
google.protobuf.InvalidProtocolBufferException {
221 return PARSER.parseFrom(data);
224 java.nio.ByteBuffer data,
225 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
226 throws com.
google.protobuf.InvalidProtocolBufferException {
227 return PARSER.parseFrom(data, extensionRegistry);
231 throws com.
google.protobuf.InvalidProtocolBufferException {
232 return PARSER.parseFrom(data);
236 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
237 throws com.
google.protobuf.InvalidProtocolBufferException {
238 return PARSER.parseFrom(data, extensionRegistry);
241 throws com.
google.protobuf.InvalidProtocolBufferException {
242 return PARSER.parseFrom(data);
246 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
247 throws com.
google.protobuf.InvalidProtocolBufferException {
248 return PARSER.parseFrom(data, extensionRegistry);
251 throws java.io.IOException {
252 return com.
google.protobuf.GeneratedMessageV3
253 .parseWithIOException(PARSER, input);
256 java.io.InputStream input,
257 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
258 throws java.io.IOException {
259 return com.
google.protobuf.GeneratedMessageV3
260 .parseWithIOException(PARSER, input, extensionRegistry);
263 throws java.io.IOException {
264 return com.
google.protobuf.GeneratedMessageV3
265 .parseDelimitedWithIOException(PARSER, input);
268 java.io.InputStream input,
269 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
270 throws java.io.IOException {
271 return com.
google.protobuf.GeneratedMessageV3
272 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
275 com.
google.protobuf.CodedInputStream input)
276 throws java.io.IOException {
277 return com.
google.protobuf.GeneratedMessageV3
278 .parseWithIOException(PARSER, input);
281 com.
google.protobuf.CodedInputStream input,
282 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
283 throws java.io.IOException {
284 return com.
google.protobuf.GeneratedMessageV3
285 .parseWithIOException(PARSER, input, extensionRegistry);
298 return this == DEFAULT_INSTANCE
304 com.
google.protobuf.GeneratedMessageV3.BuilderParent parent) {
316 com.google.protobuf.GeneratedMessageV3.
Builder<Builder> implements
319 public static final com.
google.protobuf.Descriptors.Descriptor
325 protected com.
google.protobuf.GeneratedMessageV3.FieldAccessorTable
328 .ensureFieldAccessorsInitialized(
334 maybeForceBuilderInitialization();
338 com.
google.protobuf.GeneratedMessageV3.BuilderParent parent) {
340 maybeForceBuilderInitialization();
342 private void maybeForceBuilderInitialization() {
343 if (
com.
google.protobuf.GeneratedMessageV3
344 .alwaysUseFieldBuilders) {
350 literals_ = emptyIntList();
351 bitField0_ = (bitField0_ & ~0x00000001);
356 public com.
google.protobuf.Descriptors.Descriptor
369 if (!result.isInitialized()) {
370 throw newUninitializedMessageException(result);
378 int from_bitField0_ = bitField0_;
379 if (((bitField0_ & 0x00000001) != 0)) {
380 literals_.makeImmutable();
381 bitField0_ = (bitField0_ & ~0x00000001);
383 result.literals_ = literals_;
390 return super.
clone();
394 com.
google.protobuf.Descriptors.FieldDescriptor field,
395 java.lang.Object value) {
396 return super.
setField(field, value);
400 com.
google.protobuf.Descriptors.FieldDescriptor field) {
405 com.
google.protobuf.Descriptors.OneofDescriptor oneof) {
410 com.
google.protobuf.Descriptors.FieldDescriptor field,
411 int index, java.lang.Object value) {
416 com.
google.protobuf.Descriptors.FieldDescriptor field,
417 java.lang.Object value) {
425 super.mergeFrom(other);
432 if (!other.literals_.isEmpty()) {
433 if (literals_.isEmpty()) {
434 literals_ = other.literals_;
435 bitField0_ = (bitField0_ & ~0x00000001);
437 ensureLiteralsIsMutable();
438 literals_.addAll(other.literals_);
454 com.
google.protobuf.CodedInputStream input,
455 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
456 throws java.io.IOException {
459 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
460 }
catch (
com.
google.protobuf.InvalidProtocolBufferException e) {
462 throw e.unwrapIOException();
464 if (parsedMessage !=
null) {
470 private int bitField0_;
472 private com.
google.protobuf.Internal.IntList literals_ = emptyIntList();
473 private void ensureLiteralsIsMutable() {
474 if (!((bitField0_ & 0x00000001) != 0)) {
475 literals_ = mutableCopy(literals_);
476 bitField0_ |= 0x00000001;
482 public java.util.List<java.lang.Integer>
484 return ((bitField0_ & 0x00000001) != 0) ?
485 java.util.Collections.unmodifiableList(literals_) : literals_;
491 return literals_.size();
497 return literals_.getInt(index);
503 int index,
int value) {
504 ensureLiteralsIsMutable();
505 literals_.setInt(index, value);
513 ensureLiteralsIsMutable();
514 literals_.addInt(value);
522 java.lang.Iterable<? extends java.lang.Integer> values) {
523 ensureLiteralsIsMutable();
524 com.
google.protobuf.AbstractMessageLite.Builder.addAll(
533 literals_ = emptyIntList();
534 bitField0_ = (bitField0_ & ~0x00000001);
540 final com.
google.protobuf.UnknownFieldSet unknownFields) {
546 final com.
google.protobuf.UnknownFieldSet unknownFields) {
561 return DEFAULT_INSTANCE;
568 com.
google.protobuf.CodedInputStream input,
569 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
570 throws com.
google.protobuf.InvalidProtocolBufferException {
586 return DEFAULT_INSTANCE;