4 package com.google.ortools.constraintsolver;
15 com.google.protobuf.GeneratedMessageV3 implements
18 private static final long serialVersionUID = 0L;
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();
52 time_ = input.readInt64();
57 branches_ = input.readInt64();
62 failures_ = input.readInt64();
67 solutions_ = input.readInt64();
72 smartTimeCheck_ = input.readBool();
77 cumulative_ = input.readBool();
81 if (!parseUnknownField(
82 input, unknownFields, extensionRegistry, tag)) {
89 }
catch (
com.
google.protobuf.InvalidProtocolBufferException e) {
90 throw e.setUnfinishedMessage(
this);
91 }
catch (java.io.IOException e) {
92 throw new com.
google.protobuf.InvalidProtocolBufferException(
93 e).setUnfinishedMessage(
this);
95 this.unknownFields = unknownFields.build();
96 makeExtensionsImmutable();
99 public static final com.
google.protobuf.Descriptors.Descriptor
105 protected com.
google.protobuf.GeneratedMessageV3.FieldAccessorTable
108 .ensureFieldAccessorsInitialized(
122 private long branches_;
131 private long failures_;
140 private long solutions_;
149 private boolean smartTimeCheck_;
154 return smartTimeCheck_;
158 private boolean cumulative_;
166 private byte memoizedIsInitialized = -1;
173 memoizedIsInitialized = 1;
179 throws java.io.IOException {
181 output.writeInt64(1, time_);
183 if (branches_ != 0L) {
184 output.writeInt64(2, branches_);
186 if (failures_ != 0L) {
187 output.writeInt64(3, failures_);
189 if (solutions_ != 0L) {
190 output.writeInt64(4, solutions_);
192 if (smartTimeCheck_ !=
false) {
193 output.writeBool(5, smartTimeCheck_);
195 if (cumulative_ !=
false) {
196 output.writeBool(6, cumulative_);
198 unknownFields.writeTo(output);
203 int size = memoizedSize;
204 if (size != -1)
return size;
208 size +=
com.
google.protobuf.CodedOutputStream
209 .computeInt64Size(1, time_);
211 if (branches_ != 0L) {
212 size +=
com.
google.protobuf.CodedOutputStream
213 .computeInt64Size(2, branches_);
215 if (failures_ != 0L) {
216 size +=
com.
google.protobuf.CodedOutputStream
217 .computeInt64Size(3, failures_);
219 if (solutions_ != 0L) {
220 size +=
com.
google.protobuf.CodedOutputStream
221 .computeInt64Size(4, solutions_);
223 if (smartTimeCheck_ !=
false) {
224 size +=
com.
google.protobuf.CodedOutputStream
225 .computeBoolSize(5, smartTimeCheck_);
227 if (cumulative_ !=
false) {
228 size +=
com.
google.protobuf.CodedOutputStream
229 .computeBoolSize(6, cumulative_);
231 size += unknownFields.getSerializedSize();
237 public boolean equals(
final java.lang.Object obj) {
242 return super.equals(obj);
247 != other.getTime())
return false;
249 != other.getBranches())
return false;
251 != other.getFailures())
return false;
253 != other.getSolutions())
return false;
255 != other.getSmartTimeCheck())
return false;
257 != other.getCumulative())
return false;
258 if (!unknownFields.equals(other.unknownFields))
return false;
264 if (memoizedHashCode != 0) {
265 return memoizedHashCode;
270 hash = (53 * hash) +
com.
google.protobuf.Internal.hashLong(
273 hash = (53 * hash) +
com.
google.protobuf.Internal.hashLong(
276 hash = (53 * hash) +
com.
google.protobuf.Internal.hashLong(
279 hash = (53 * hash) +
com.
google.protobuf.Internal.hashLong(
282 hash = (53 * hash) +
com.
google.protobuf.Internal.hashBoolean(
285 hash = (53 * hash) +
com.
google.protobuf.Internal.hashBoolean(
287 hash = (29 * hash) + unknownFields.hashCode();
288 memoizedHashCode = hash;
293 java.nio.ByteBuffer data)
294 throws com.
google.protobuf.InvalidProtocolBufferException {
295 return PARSER.parseFrom(data);
298 java.nio.ByteBuffer data,
299 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
300 throws com.
google.protobuf.InvalidProtocolBufferException {
301 return PARSER.parseFrom(data, extensionRegistry);
305 throws com.
google.protobuf.InvalidProtocolBufferException {
306 return PARSER.parseFrom(data);
310 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
311 throws com.
google.protobuf.InvalidProtocolBufferException {
312 return PARSER.parseFrom(data, extensionRegistry);
315 throws com.
google.protobuf.InvalidProtocolBufferException {
316 return PARSER.parseFrom(data);
320 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
321 throws com.
google.protobuf.InvalidProtocolBufferException {
322 return PARSER.parseFrom(data, extensionRegistry);
325 throws java.io.IOException {
326 return com.
google.protobuf.GeneratedMessageV3
327 .parseWithIOException(PARSER, input);
330 java.io.InputStream input,
331 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
332 throws java.io.IOException {
333 return com.
google.protobuf.GeneratedMessageV3
334 .parseWithIOException(PARSER, input, extensionRegistry);
337 throws java.io.IOException {
338 return com.
google.protobuf.GeneratedMessageV3
339 .parseDelimitedWithIOException(PARSER, input);
342 java.io.InputStream input,
343 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
344 throws java.io.IOException {
345 return com.
google.protobuf.GeneratedMessageV3
346 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
349 com.
google.protobuf.CodedInputStream input)
350 throws java.io.IOException {
351 return com.
google.protobuf.GeneratedMessageV3
352 .parseWithIOException(PARSER, input);
355 com.
google.protobuf.CodedInputStream input,
356 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
357 throws java.io.IOException {
358 return com.
google.protobuf.GeneratedMessageV3
359 .parseWithIOException(PARSER, input, extensionRegistry);
372 return this == DEFAULT_INSTANCE
378 com.
google.protobuf.GeneratedMessageV3.BuilderParent parent) {
391 com.google.protobuf.GeneratedMessageV3.
Builder<Builder> implements
394 public static final com.
google.protobuf.Descriptors.Descriptor
400 protected com.
google.protobuf.GeneratedMessageV3.FieldAccessorTable
403 .ensureFieldAccessorsInitialized(
409 maybeForceBuilderInitialization();
413 com.
google.protobuf.GeneratedMessageV3.BuilderParent parent) {
415 maybeForceBuilderInitialization();
417 private void maybeForceBuilderInitialization() {
418 if (
com.
google.protobuf.GeneratedMessageV3
419 .alwaysUseFieldBuilders) {
433 smartTimeCheck_ =
false;
441 public com.
google.protobuf.Descriptors.Descriptor
454 if (!result.isInitialized()) {
455 throw newUninitializedMessageException(result);
463 result.time_ = time_;
464 result.branches_ = branches_;
465 result.failures_ = failures_;
466 result.solutions_ = solutions_;
467 result.smartTimeCheck_ = smartTimeCheck_;
468 result.cumulative_ = cumulative_;
475 return super.
clone();
479 com.
google.protobuf.Descriptors.FieldDescriptor field,
480 java.lang.Object value) {
481 return super.
setField(field, value);
485 com.
google.protobuf.Descriptors.FieldDescriptor field) {
490 com.
google.protobuf.Descriptors.OneofDescriptor oneof) {
495 com.
google.protobuf.Descriptors.FieldDescriptor field,
496 int index, java.lang.Object value) {
501 com.
google.protobuf.Descriptors.FieldDescriptor field,
502 java.lang.Object value) {
510 super.mergeFrom(other);
517 if (other.getTime() != 0L) {
520 if (other.getBranches() != 0L) {
523 if (other.getFailures() != 0L) {
526 if (other.getSolutions() != 0L) {
529 if (other.getSmartTimeCheck() !=
false) {
532 if (other.getCumulative() !=
false) {
547 com.
google.protobuf.CodedInputStream input,
548 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
549 throws java.io.IOException {
552 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
553 }
catch (
com.
google.protobuf.InvalidProtocolBufferException e) {
555 throw e.unwrapIOException();
557 if (parsedMessage !=
null) {
590 private long branches_ ;
616 private long failures_ ;
642 private long solutions_ ;
668 private boolean smartTimeCheck_ ;
673 return smartTimeCheck_;
680 smartTimeCheck_ = value;
689 smartTimeCheck_ =
false;
694 private boolean cumulative_ ;
721 final com.
google.protobuf.UnknownFieldSet unknownFields) {
727 final com.
google.protobuf.UnknownFieldSet unknownFields) {
742 return DEFAULT_INSTANCE;
749 com.
google.protobuf.CodedInputStream input,
750 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
751 throws com.
google.protobuf.InvalidProtocolBufferException {
767 return DEFAULT_INSTANCE;