4 package com.google.ortools.sat;
15 com.google.protobuf.GeneratedMessageV3 implements
18 private static final long serialVersionUID = 0L;
24 vars_ = emptyIntList();
28 @SuppressWarnings({
"unused"})
30 UnusedPrivateParameter unused) {
35 public final com.
google.protobuf.UnknownFieldSet
37 return this.unknownFields;
40 com.
google.protobuf.CodedInputStream input,
41 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
42 throws com.
google.protobuf.InvalidProtocolBufferException {
44 if (extensionRegistry ==
null) {
45 throw new java.lang.NullPointerException();
47 int mutable_bitField0_ = 0;
48 com.
google.protobuf.UnknownFieldSet.Builder unknownFields =
49 com.
google.protobuf.UnknownFieldSet.newBuilder();
53 int tag = input.readTag();
60 index_ = input.readInt32();
65 target_ = input.readInt32();
69 if (!((mutable_bitField0_ & 0x00000001) != 0)) {
71 mutable_bitField0_ |= 0x00000001;
73 vars_.addInt(input.readInt32());
77 int length = input.readRawVarint32();
78 int limit = input.pushLimit(length);
79 if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
81 mutable_bitField0_ |= 0x00000001;
83 while (input.getBytesUntilLimit() > 0) {
84 vars_.addInt(input.readInt32());
86 input.popLimit(limit);
90 if (!parseUnknownField(
91 input, unknownFields, extensionRegistry, tag)) {
98 }
catch (
com.
google.protobuf.InvalidProtocolBufferException e) {
99 throw e.setUnfinishedMessage(
this);
100 }
catch (java.io.IOException e) {
101 throw new com.
google.protobuf.InvalidProtocolBufferException(
102 e).setUnfinishedMessage(
this);
104 if (((mutable_bitField0_ & 0x00000001) != 0)) {
105 vars_.makeImmutable();
107 this.unknownFields = unknownFields.build();
108 makeExtensionsImmutable();
111 public static final com.
google.protobuf.Descriptors.Descriptor
117 protected com.
google.protobuf.GeneratedMessageV3.FieldAccessorTable
120 .ensureFieldAccessorsInitialized(
143 private com.
google.protobuf.Internal.IntList vars_;
147 public java.util.List<java.lang.Integer>
161 return vars_.getInt(index);
163 private int varsMemoizedSerializedSize = -1;
165 private byte memoizedIsInitialized = -1;
172 memoizedIsInitialized = 1;
178 throws java.io.IOException {
181 output.writeInt32(1, index_);
184 output.writeInt32(2, target_);
187 output.writeUInt32NoTag(26);
188 output.writeUInt32NoTag(varsMemoizedSerializedSize);
190 for (
int i = 0; i < vars_.size(); i++) {
191 output.writeInt32NoTag(vars_.getInt(i));
193 unknownFields.writeTo(output);
198 int size = memoizedSize;
199 if (size != -1)
return size;
203 size +=
com.
google.protobuf.CodedOutputStream
204 .computeInt32Size(1, index_);
207 size +=
com.
google.protobuf.CodedOutputStream
208 .computeInt32Size(2, target_);
212 for (
int i = 0; i < vars_.size(); i++) {
213 dataSize +=
com.
google.protobuf.CodedOutputStream
214 .computeInt32SizeNoTag(vars_.getInt(i));
219 size +=
com.
google.protobuf.CodedOutputStream
220 .computeInt32SizeNoTag(dataSize);
222 varsMemoizedSerializedSize = dataSize;
224 size += unknownFields.getSerializedSize();
230 public boolean equals(
final java.lang.Object obj) {
235 return super.equals(obj);
240 != other.getIndex())
return false;
242 != other.getTarget())
return false;
244 .equals(other.getVarsList()))
return false;
245 if (!unknownFields.equals(other.unknownFields))
return false;
251 if (memoizedHashCode != 0) {
252 return memoizedHashCode;
264 hash = (29 * hash) + unknownFields.hashCode();
265 memoizedHashCode = hash;
270 java.nio.ByteBuffer data)
271 throws com.
google.protobuf.InvalidProtocolBufferException {
272 return PARSER.parseFrom(data);
275 java.nio.ByteBuffer data,
276 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
277 throws com.
google.protobuf.InvalidProtocolBufferException {
278 return PARSER.parseFrom(data, extensionRegistry);
282 throws com.
google.protobuf.InvalidProtocolBufferException {
283 return PARSER.parseFrom(data);
287 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
288 throws com.
google.protobuf.InvalidProtocolBufferException {
289 return PARSER.parseFrom(data, extensionRegistry);
292 throws com.
google.protobuf.InvalidProtocolBufferException {
293 return PARSER.parseFrom(data);
297 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
298 throws com.
google.protobuf.InvalidProtocolBufferException {
299 return PARSER.parseFrom(data, extensionRegistry);
302 throws java.io.IOException {
303 return com.
google.protobuf.GeneratedMessageV3
304 .parseWithIOException(PARSER, input);
307 java.io.InputStream input,
308 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
309 throws java.io.IOException {
310 return com.
google.protobuf.GeneratedMessageV3
311 .parseWithIOException(PARSER, input, extensionRegistry);
314 throws java.io.IOException {
315 return com.
google.protobuf.GeneratedMessageV3
316 .parseDelimitedWithIOException(PARSER, input);
319 java.io.InputStream input,
320 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
321 throws java.io.IOException {
322 return com.
google.protobuf.GeneratedMessageV3
323 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
326 com.
google.protobuf.CodedInputStream input)
327 throws java.io.IOException {
328 return com.
google.protobuf.GeneratedMessageV3
329 .parseWithIOException(PARSER, input);
332 com.
google.protobuf.CodedInputStream input,
333 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
334 throws java.io.IOException {
335 return com.
google.protobuf.GeneratedMessageV3
336 .parseWithIOException(PARSER, input, extensionRegistry);
349 return this == DEFAULT_INSTANCE
355 com.
google.protobuf.GeneratedMessageV3.BuilderParent parent) {
368 com.google.protobuf.GeneratedMessageV3.
Builder<Builder> implements
371 public static final com.
google.protobuf.Descriptors.Descriptor
377 protected com.
google.protobuf.GeneratedMessageV3.FieldAccessorTable
380 .ensureFieldAccessorsInitialized(
386 maybeForceBuilderInitialization();
390 com.
google.protobuf.GeneratedMessageV3.BuilderParent parent) {
392 maybeForceBuilderInitialization();
394 private void maybeForceBuilderInitialization() {
395 if (
com.
google.protobuf.GeneratedMessageV3
396 .alwaysUseFieldBuilders) {
406 vars_ = emptyIntList();
407 bitField0_ = (bitField0_ & ~0x00000001);
412 public com.
google.protobuf.Descriptors.Descriptor
425 if (!result.isInitialized()) {
426 throw newUninitializedMessageException(result);
434 int from_bitField0_ = bitField0_;
435 result.index_ = index_;
436 result.target_ = target_;
437 if (((bitField0_ & 0x00000001) != 0)) {
438 vars_.makeImmutable();
439 bitField0_ = (bitField0_ & ~0x00000001);
441 result.vars_ = vars_;
448 return super.
clone();
452 com.
google.protobuf.Descriptors.FieldDescriptor field,
453 java.lang.Object value) {
454 return super.
setField(field, value);
458 com.
google.protobuf.Descriptors.FieldDescriptor field) {
463 com.
google.protobuf.Descriptors.OneofDescriptor oneof) {
468 com.
google.protobuf.Descriptors.FieldDescriptor field,
469 int index, java.lang.Object value) {
474 com.
google.protobuf.Descriptors.FieldDescriptor field,
475 java.lang.Object value) {
483 super.mergeFrom(other);
490 if (other.getIndex() != 0) {
493 if (other.getTarget() != 0) {
496 if (!other.vars_.isEmpty()) {
497 if (vars_.isEmpty()) {
499 bitField0_ = (bitField0_ & ~0x00000001);
501 ensureVarsIsMutable();
502 vars_.addAll(other.vars_);
518 com.
google.protobuf.CodedInputStream input,
519 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
520 throws java.io.IOException {
523 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
524 }
catch (
com.
google.protobuf.InvalidProtocolBufferException e) {
526 throw e.unwrapIOException();
528 if (parsedMessage !=
null) {
534 private int bitField0_;
562 private int target_ ;
588 private com.
google.protobuf.Internal.IntList vars_ = emptyIntList();
589 private void ensureVarsIsMutable() {
590 if (!((bitField0_ & 0x00000001) != 0)) {
591 vars_ = mutableCopy(vars_);
592 bitField0_ |= 0x00000001;
598 public java.util.List<java.lang.Integer>
600 return ((bitField0_ & 0x00000001) != 0) ?
601 java.util.Collections.unmodifiableList(vars_) : vars_;
613 return vars_.getInt(index);
619 int index,
int value) {
620 ensureVarsIsMutable();
621 vars_.setInt(index, value);
629 ensureVarsIsMutable();
638 java.lang.Iterable<? extends java.lang.Integer> values) {
639 ensureVarsIsMutable();
640 com.
google.protobuf.AbstractMessageLite.Builder.addAll(
649 vars_ = emptyIntList();
650 bitField0_ = (bitField0_ & ~0x00000001);
656 final com.
google.protobuf.UnknownFieldSet unknownFields) {
662 final com.
google.protobuf.UnknownFieldSet unknownFields) {
677 return DEFAULT_INSTANCE;
684 com.
google.protobuf.CodedInputStream input,
685 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
686 throws com.
google.protobuf.InvalidProtocolBufferException {
702 return DEFAULT_INSTANCE;