4 package com.google.ortools.sat;
14 com.google.protobuf.GeneratedMessageV3 implements
17 private static final long serialVersionUID = 0L;
23 literals_ = emptyIntList();
27 public final com.
google.protobuf.UnknownFieldSet
29 return this.unknownFields;
32 com.
google.protobuf.CodedInputStream input,
33 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
34 throws com.
google.protobuf.InvalidProtocolBufferException {
36 if (extensionRegistry ==
null) {
37 throw new java.lang.NullPointerException();
39 int mutable_bitField0_ = 0;
40 com.
google.protobuf.UnknownFieldSet.Builder unknownFields =
41 com.
google.protobuf.UnknownFieldSet.newBuilder();
45 int tag = input.readTag();
51 if (!((mutable_bitField0_ & 0x00000001) != 0)) {
52 literals_ = newIntList();
53 mutable_bitField0_ |= 0x00000001;
55 literals_.addInt(input.readInt32());
59 int length = input.readRawVarint32();
60 int limit = input.pushLimit(length);
61 if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
62 literals_ = newIntList();
63 mutable_bitField0_ |= 0x00000001;
65 while (input.getBytesUntilLimit() > 0) {
66 literals_.addInt(input.readInt32());
68 input.popLimit(limit);
72 if (!parseUnknownField(
73 input, unknownFields, extensionRegistry, tag)) {
80 }
catch (
com.
google.protobuf.InvalidProtocolBufferException e) {
81 throw e.setUnfinishedMessage(
this);
82 }
catch (java.io.IOException e) {
83 throw new com.
google.protobuf.InvalidProtocolBufferException(
84 e).setUnfinishedMessage(
this);
86 if (((mutable_bitField0_ & 0x00000001) != 0)) {
87 literals_.makeImmutable();
89 this.unknownFields = unknownFields.build();
90 makeExtensionsImmutable();
93 public static final com.
google.protobuf.Descriptors.Descriptor
99 protected com.
google.protobuf.GeneratedMessageV3.FieldAccessorTable
102 .ensureFieldAccessorsInitialized(
107 private com.
google.protobuf.Internal.IntList literals_;
111 public java.util.List<java.lang.Integer>
119 return literals_.size();
125 return literals_.getInt(index);
127 private int literalsMemoizedSerializedSize = -1;
129 private byte memoizedIsInitialized = -1;
136 memoizedIsInitialized = 1;
142 throws java.io.IOException {
145 output.writeUInt32NoTag(10);
146 output.writeUInt32NoTag(literalsMemoizedSerializedSize);
148 for (
int i = 0; i < literals_.size(); i++) {
149 output.writeInt32NoTag(literals_.getInt(i));
151 unknownFields.writeTo(output);
156 int size = memoizedSize;
157 if (size != -1)
return size;
162 for (
int i = 0; i < literals_.size(); i++) {
163 dataSize +=
com.
google.protobuf.CodedOutputStream
164 .computeInt32SizeNoTag(literals_.getInt(i));
169 size +=
com.
google.protobuf.CodedOutputStream
170 .computeInt32SizeNoTag(dataSize);
172 literalsMemoizedSerializedSize = dataSize;
174 size += unknownFields.getSerializedSize();
180 public boolean equals(
final java.lang.Object obj) {
185 return super.equals(obj);
190 .equals(other.getLiteralsList()))
return false;
191 if (!unknownFields.equals(other.unknownFields))
return false;
197 if (memoizedHashCode != 0) {
198 return memoizedHashCode;
206 hash = (29 * hash) + unknownFields.hashCode();
207 memoizedHashCode = hash;
212 java.nio.ByteBuffer data)
213 throws com.
google.protobuf.InvalidProtocolBufferException {
214 return PARSER.parseFrom(data);
217 java.nio.ByteBuffer data,
218 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
219 throws com.
google.protobuf.InvalidProtocolBufferException {
220 return PARSER.parseFrom(data, extensionRegistry);
224 throws com.
google.protobuf.InvalidProtocolBufferException {
225 return PARSER.parseFrom(data);
229 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
230 throws com.
google.protobuf.InvalidProtocolBufferException {
231 return PARSER.parseFrom(data, extensionRegistry);
234 throws com.
google.protobuf.InvalidProtocolBufferException {
235 return PARSER.parseFrom(data);
239 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
240 throws com.
google.protobuf.InvalidProtocolBufferException {
241 return PARSER.parseFrom(data, extensionRegistry);
244 throws java.io.IOException {
245 return com.
google.protobuf.GeneratedMessageV3
246 .parseWithIOException(PARSER, input);
249 java.io.InputStream input,
250 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
251 throws java.io.IOException {
252 return com.
google.protobuf.GeneratedMessageV3
253 .parseWithIOException(PARSER, input, extensionRegistry);
256 throws java.io.IOException {
257 return com.
google.protobuf.GeneratedMessageV3
258 .parseDelimitedWithIOException(PARSER, input);
261 java.io.InputStream input,
262 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
263 throws java.io.IOException {
264 return com.
google.protobuf.GeneratedMessageV3
265 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
268 com.
google.protobuf.CodedInputStream input)
269 throws java.io.IOException {
270 return com.
google.protobuf.GeneratedMessageV3
271 .parseWithIOException(PARSER, input);
274 com.
google.protobuf.CodedInputStream input,
275 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
276 throws java.io.IOException {
277 return com.
google.protobuf.GeneratedMessageV3
278 .parseWithIOException(PARSER, input, extensionRegistry);
291 return this == DEFAULT_INSTANCE
297 com.
google.protobuf.GeneratedMessageV3.BuilderParent parent) {
309 com.google.protobuf.GeneratedMessageV3.
Builder<Builder> implements
312 public static final com.
google.protobuf.Descriptors.Descriptor
318 protected com.
google.protobuf.GeneratedMessageV3.FieldAccessorTable
321 .ensureFieldAccessorsInitialized(
327 maybeForceBuilderInitialization();
331 com.
google.protobuf.GeneratedMessageV3.BuilderParent parent) {
333 maybeForceBuilderInitialization();
335 private void maybeForceBuilderInitialization() {
336 if (
com.
google.protobuf.GeneratedMessageV3
337 .alwaysUseFieldBuilders) {
343 literals_ = emptyIntList();
344 bitField0_ = (bitField0_ & ~0x00000001);
349 public com.
google.protobuf.Descriptors.Descriptor
362 if (!result.isInitialized()) {
363 throw newUninitializedMessageException(result);
371 int from_bitField0_ = bitField0_;
372 if (((bitField0_ & 0x00000001) != 0)) {
373 literals_.makeImmutable();
374 bitField0_ = (bitField0_ & ~0x00000001);
376 result.literals_ = literals_;
383 return super.
clone();
387 com.
google.protobuf.Descriptors.FieldDescriptor field,
388 java.lang.Object value) {
389 return super.
setField(field, value);
393 com.
google.protobuf.Descriptors.FieldDescriptor field) {
398 com.
google.protobuf.Descriptors.OneofDescriptor oneof) {
403 com.
google.protobuf.Descriptors.FieldDescriptor field,
404 int index, java.lang.Object value) {
409 com.
google.protobuf.Descriptors.FieldDescriptor field,
410 java.lang.Object value) {
418 super.mergeFrom(other);
425 if (!other.literals_.isEmpty()) {
426 if (literals_.isEmpty()) {
427 literals_ = other.literals_;
428 bitField0_ = (bitField0_ & ~0x00000001);
430 ensureLiteralsIsMutable();
431 literals_.addAll(other.literals_);
447 com.
google.protobuf.CodedInputStream input,
448 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
449 throws java.io.IOException {
452 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
453 }
catch (
com.
google.protobuf.InvalidProtocolBufferException e) {
455 throw e.unwrapIOException();
457 if (parsedMessage !=
null) {
463 private int bitField0_;
465 private com.
google.protobuf.Internal.IntList literals_ = emptyIntList();
466 private void ensureLiteralsIsMutable() {
467 if (!((bitField0_ & 0x00000001) != 0)) {
468 literals_ = mutableCopy(literals_);
469 bitField0_ |= 0x00000001;
475 public java.util.List<java.lang.Integer>
477 return ((bitField0_ & 0x00000001) != 0) ?
478 java.util.Collections.unmodifiableList(literals_) : literals_;
484 return literals_.size();
490 return literals_.getInt(index);
496 int index,
int value) {
497 ensureLiteralsIsMutable();
498 literals_.setInt(index, value);
506 ensureLiteralsIsMutable();
507 literals_.addInt(value);
515 java.lang.Iterable<? extends java.lang.Integer> values) {
516 ensureLiteralsIsMutable();
517 com.
google.protobuf.AbstractMessageLite.Builder.addAll(
526 literals_ = emptyIntList();
527 bitField0_ = (bitField0_ & ~0x00000001);
533 final com.
google.protobuf.UnknownFieldSet unknownFields) {
539 final com.
google.protobuf.UnknownFieldSet unknownFields) {
554 return DEFAULT_INSTANCE;
561 com.
google.protobuf.CodedInputStream input,
562 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
563 throws com.
google.protobuf.InvalidProtocolBufferException {
579 return DEFAULT_INSTANCE;