4 package com.google.ortools.sat;
15 com.google.protobuf.GeneratedMessageV3 implements
18 private static final long serialVersionUID = 0L;
24 vars_ = emptyIntList();
28 public final com.
google.protobuf.UnknownFieldSet
30 return this.unknownFields;
33 com.
google.protobuf.CodedInputStream input,
34 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
35 throws com.
google.protobuf.InvalidProtocolBufferException {
37 if (extensionRegistry ==
null) {
38 throw new java.lang.NullPointerException();
40 int mutable_bitField0_ = 0;
41 com.
google.protobuf.UnknownFieldSet.Builder unknownFields =
42 com.
google.protobuf.UnknownFieldSet.newBuilder();
46 int tag = input.readTag();
53 index_ = input.readInt32();
58 target_ = input.readInt32();
62 if (!((mutable_bitField0_ & 0x00000004) != 0)) {
64 mutable_bitField0_ |= 0x00000004;
66 vars_.addInt(input.readInt32());
70 int length = input.readRawVarint32();
71 int limit = input.pushLimit(length);
72 if (!((mutable_bitField0_ & 0x00000004) != 0) && input.getBytesUntilLimit() > 0) {
74 mutable_bitField0_ |= 0x00000004;
76 while (input.getBytesUntilLimit() > 0) {
77 vars_.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_ & 0x00000004) != 0)) {
98 vars_.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(
117 private int bitField0_;
137 private com.
google.protobuf.Internal.IntList vars_;
141 public java.util.List<java.lang.Integer>
155 return vars_.getInt(index);
157 private int varsMemoizedSerializedSize = -1;
159 private byte memoizedIsInitialized = -1;
166 memoizedIsInitialized = 1;
172 throws java.io.IOException {
175 output.writeInt32(1, index_);
178 output.writeInt32(2, target_);
181 output.writeUInt32NoTag(26);
182 output.writeUInt32NoTag(varsMemoizedSerializedSize);
184 for (
int i = 0; i < vars_.size(); i++) {
185 output.writeInt32NoTag(vars_.getInt(i));
187 unknownFields.writeTo(output);
192 int size = memoizedSize;
193 if (size != -1)
return size;
197 size +=
com.
google.protobuf.CodedOutputStream
198 .computeInt32Size(1, index_);
201 size +=
com.
google.protobuf.CodedOutputStream
202 .computeInt32Size(2, target_);
206 for (
int i = 0; i < vars_.size(); i++) {
207 dataSize +=
com.
google.protobuf.CodedOutputStream
208 .computeInt32SizeNoTag(vars_.getInt(i));
213 size +=
com.
google.protobuf.CodedOutputStream
214 .computeInt32SizeNoTag(dataSize);
216 varsMemoizedSerializedSize = dataSize;
218 size += unknownFields.getSerializedSize();
224 public boolean equals(
final java.lang.Object obj) {
229 return super.equals(obj);
234 != other.getIndex())
return false;
236 != other.getTarget())
return false;
238 .equals(other.getVarsList()))
return false;
239 if (!unknownFields.equals(other.unknownFields))
return false;
245 if (memoizedHashCode != 0) {
246 return memoizedHashCode;
258 hash = (29 * hash) + unknownFields.hashCode();
259 memoizedHashCode = hash;
264 java.nio.ByteBuffer data)
265 throws com.
google.protobuf.InvalidProtocolBufferException {
266 return PARSER.parseFrom(data);
269 java.nio.ByteBuffer data,
270 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
271 throws com.
google.protobuf.InvalidProtocolBufferException {
272 return PARSER.parseFrom(data, extensionRegistry);
276 throws com.
google.protobuf.InvalidProtocolBufferException {
277 return PARSER.parseFrom(data);
281 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
282 throws com.
google.protobuf.InvalidProtocolBufferException {
283 return PARSER.parseFrom(data, extensionRegistry);
286 throws com.
google.protobuf.InvalidProtocolBufferException {
287 return PARSER.parseFrom(data);
291 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
292 throws com.
google.protobuf.InvalidProtocolBufferException {
293 return PARSER.parseFrom(data, extensionRegistry);
296 throws java.io.IOException {
297 return com.
google.protobuf.GeneratedMessageV3
298 .parseWithIOException(PARSER, input);
301 java.io.InputStream input,
302 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
303 throws java.io.IOException {
304 return com.
google.protobuf.GeneratedMessageV3
305 .parseWithIOException(PARSER, input, extensionRegistry);
308 throws java.io.IOException {
309 return com.
google.protobuf.GeneratedMessageV3
310 .parseDelimitedWithIOException(PARSER, input);
313 java.io.InputStream input,
314 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
315 throws java.io.IOException {
316 return com.
google.protobuf.GeneratedMessageV3
317 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
320 com.
google.protobuf.CodedInputStream input)
321 throws java.io.IOException {
322 return com.
google.protobuf.GeneratedMessageV3
323 .parseWithIOException(PARSER, input);
326 com.
google.protobuf.CodedInputStream input,
327 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
328 throws java.io.IOException {
329 return com.
google.protobuf.GeneratedMessageV3
330 .parseWithIOException(PARSER, input, extensionRegistry);
343 return this == DEFAULT_INSTANCE
349 com.
google.protobuf.GeneratedMessageV3.BuilderParent parent) {
362 com.google.protobuf.GeneratedMessageV3.
Builder<Builder> implements
365 public static final com.
google.protobuf.Descriptors.Descriptor
371 protected com.
google.protobuf.GeneratedMessageV3.FieldAccessorTable
374 .ensureFieldAccessorsInitialized(
380 maybeForceBuilderInitialization();
384 com.
google.protobuf.GeneratedMessageV3.BuilderParent parent) {
386 maybeForceBuilderInitialization();
388 private void maybeForceBuilderInitialization() {
389 if (
com.
google.protobuf.GeneratedMessageV3
390 .alwaysUseFieldBuilders) {
400 vars_ = emptyIntList();
401 bitField0_ = (bitField0_ & ~0x00000004);
406 public com.
google.protobuf.Descriptors.Descriptor
419 if (!result.isInitialized()) {
420 throw newUninitializedMessageException(result);
428 int from_bitField0_ = bitField0_;
429 int to_bitField0_ = 0;
430 result.index_ = index_;
431 result.target_ = target_;
432 if (((bitField0_ & 0x00000004) != 0)) {
433 vars_.makeImmutable();
434 bitField0_ = (bitField0_ & ~0x00000004);
436 result.vars_ = vars_;
437 result.bitField0_ = to_bitField0_;
444 return super.
clone();
448 com.
google.protobuf.Descriptors.FieldDescriptor field,
449 java.lang.Object value) {
450 return super.
setField(field, value);
454 com.
google.protobuf.Descriptors.FieldDescriptor field) {
459 com.
google.protobuf.Descriptors.OneofDescriptor oneof) {
464 com.
google.protobuf.Descriptors.FieldDescriptor field,
465 int index, java.lang.Object value) {
470 com.
google.protobuf.Descriptors.FieldDescriptor field,
471 java.lang.Object value) {
479 super.mergeFrom(other);
486 if (other.getIndex() != 0) {
489 if (other.getTarget() != 0) {
492 if (!other.vars_.isEmpty()) {
493 if (vars_.isEmpty()) {
495 bitField0_ = (bitField0_ & ~0x00000004);
497 ensureVarsIsMutable();
498 vars_.addAll(other.vars_);
514 com.
google.protobuf.CodedInputStream input,
515 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
516 throws java.io.IOException {
519 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
520 }
catch (
com.
google.protobuf.InvalidProtocolBufferException e) {
522 throw e.unwrapIOException();
524 if (parsedMessage !=
null) {
530 private int bitField0_;
558 private int target_ ;
584 private com.
google.protobuf.Internal.IntList vars_ = emptyIntList();
585 private void ensureVarsIsMutable() {
586 if (!((bitField0_ & 0x00000004) != 0)) {
587 vars_ = mutableCopy(vars_);
588 bitField0_ |= 0x00000004;
594 public java.util.List<java.lang.Integer>
596 return ((bitField0_ & 0x00000004) != 0) ?
597 java.util.Collections.unmodifiableList(vars_) : vars_;
609 return vars_.getInt(index);
615 int index,
int value) {
616 ensureVarsIsMutable();
617 vars_.setInt(index, value);
625 ensureVarsIsMutable();
634 java.lang.Iterable<? extends java.lang.Integer> values) {
635 ensureVarsIsMutable();
636 com.
google.protobuf.AbstractMessageLite.Builder.addAll(
645 vars_ = emptyIntList();
646 bitField0_ = (bitField0_ & ~0x00000004);
652 final com.
google.protobuf.UnknownFieldSet unknownFields) {
658 final com.
google.protobuf.UnknownFieldSet unknownFields) {
673 return DEFAULT_INSTANCE;
680 com.
google.protobuf.CodedInputStream input,
681 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
682 throws com.
google.protobuf.InvalidProtocolBufferException {
698 return DEFAULT_INSTANCE;