6package com.google.ortools.constraintsolver;
15public final class ConstraintSolverStatistics
extends
16 com.google.protobuf.GeneratedMessage implements
19private static final long serialVersionUID = 0L;
21 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
22 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
27 ConstraintSolverStatistics.class.getName());
30 private ConstraintSolverStatistics(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
33 private ConstraintSolverStatistics() {
36 public static final com.google.protobuf.Descriptors.Descriptor
38 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_ConstraintSolverStatistics_descriptor;
42 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
44 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_ConstraintSolverStatistics_fieldAccessorTable
45 .ensureFieldAccessorsInitialized(
46 com.google.ortools.constraintsolver.ConstraintSolverStatistics.class, com.google.ortools.constraintsolver.ConstraintSolverStatistics.Builder.class);
50 private long numBranches_ = 0L;
65 private long numFailures_ = 0L;
80 private long numSolutions_ = 0L;
95 private long bytesUsed_ = 0L;
110 private double durationSeconds_ = 0D;
121 return durationSeconds_;
124 private byte memoizedIsInitialized = -1;
131 memoizedIsInitialized = 1;
136 public void writeTo(com.google.protobuf.CodedOutputStream output)
137 throws java.io.IOException {
138 if (numBranches_ != 0L) {
139 output.writeInt64(1, numBranches_);
141 if (numFailures_ != 0L) {
142 output.writeInt64(2, numFailures_);
144 if (numSolutions_ != 0L) {
145 output.writeInt64(3, numSolutions_);
147 if (bytesUsed_ != 0L) {
148 output.writeInt64(4, bytesUsed_);
150 if (java.lang.Double.doubleToRawLongBits(durationSeconds_) != 0) {
151 output.writeDouble(5, durationSeconds_);
153 getUnknownFields().writeTo(output);
158 int size = memoizedSize;
159 if (size != -1)
return size;
162 if (numBranches_ != 0L) {
163 size += com.google.protobuf.CodedOutputStream
164 .computeInt64Size(1, numBranches_);
166 if (numFailures_ != 0L) {
167 size += com.google.protobuf.CodedOutputStream
168 .computeInt64Size(2, numFailures_);
170 if (numSolutions_ != 0L) {
171 size += com.google.protobuf.CodedOutputStream
172 .computeInt64Size(3, numSolutions_);
174 if (bytesUsed_ != 0L) {
175 size += com.google.protobuf.CodedOutputStream
176 .computeInt64Size(4, bytesUsed_);
178 if (java.lang.Double.doubleToRawLongBits(durationSeconds_) != 0) {
179 size += com.google.protobuf.CodedOutputStream
180 .computeDoubleSize(5, durationSeconds_);
182 size += getUnknownFields().getSerializedSize();
188 public boolean equals(
final java.lang.Object obj) {
192 if (!(obj instanceof com.google.ortools.constraintsolver.ConstraintSolverStatistics)) {
193 return super.equals(obj);
206 != java.lang.Double.doubleToLongBits(
208 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
214 if (memoizedHashCode != 0) {
215 return memoizedHashCode;
220 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
223 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
226 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
229 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
232 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
234 hash = (29 * hash) + getUnknownFields().hashCode();
235 memoizedHashCode = hash;
240 java.nio.ByteBuffer data)
241 throws com.google.protobuf.InvalidProtocolBufferException {
242 return PARSER.parseFrom(data);
245 java.nio.ByteBuffer data,
246 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
247 throws com.google.protobuf.InvalidProtocolBufferException {
248 return PARSER.parseFrom(data, extensionRegistry);
251 com.google.protobuf.ByteString data)
252 throws com.google.protobuf.InvalidProtocolBufferException {
253 return PARSER.parseFrom(data);
256 com.google.protobuf.ByteString data,
257 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
258 throws com.google.protobuf.InvalidProtocolBufferException {
259 return PARSER.parseFrom(data, extensionRegistry);
262 throws com.google.protobuf.InvalidProtocolBufferException {
263 return PARSER.parseFrom(data);
267 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
268 throws com.google.protobuf.InvalidProtocolBufferException {
269 return PARSER.parseFrom(data, extensionRegistry);
272 throws java.io.IOException {
273 return com.google.protobuf.GeneratedMessage
274 .parseWithIOException(PARSER, input);
277 java.io.InputStream input,
278 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
279 throws java.io.IOException {
280 return com.google.protobuf.GeneratedMessage
281 .parseWithIOException(PARSER, input, extensionRegistry);
285 throws java.io.IOException {
286 return com.google.protobuf.GeneratedMessage
287 .parseDelimitedWithIOException(PARSER, input);
291 java.io.InputStream input,
292 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
293 throws java.io.IOException {
294 return com.google.protobuf.GeneratedMessage
295 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
298 com.google.protobuf.CodedInputStream input)
299 throws java.io.IOException {
300 return com.google.protobuf.GeneratedMessage
301 .parseWithIOException(PARSER, input);
304 com.google.protobuf.CodedInputStream input,
305 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
306 throws java.io.IOException {
307 return com.google.protobuf.GeneratedMessage
308 .parseWithIOException(PARSER, input, extensionRegistry);
314 return DEFAULT_INSTANCE.toBuilder();
316 public static Builder newBuilder(com.google.ortools.constraintsolver.ConstraintSolverStatistics prototype) {
317 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
321 return this == DEFAULT_INSTANCE
327 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
338 public static final class Builder
extends
339 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
342 public static final com.google.protobuf.Descriptors.Descriptor
344 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_ConstraintSolverStatistics_descriptor;
348 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
350 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_ConstraintSolverStatistics_fieldAccessorTable
351 .ensureFieldAccessorsInitialized(
352 com.google.ortools.constraintsolver.ConstraintSolverStatistics.class, com.google.ortools.constraintsolver.ConstraintSolverStatistics.Builder.class);
361 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
373 durationSeconds_ = 0D;
378 public com.google.protobuf.Descriptors.Descriptor
380 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_ConstraintSolverStatistics_descriptor;
385 return com.google.ortools.constraintsolver.ConstraintSolverStatistics.getDefaultInstance();
392 throw newUninitializedMessageException(result);
400 if (bitField0_ != 0) { buildPartial0(result); }
405 private void buildPartial0(com.google.ortools.constraintsolver.ConstraintSolverStatistics result) {
406 int from_bitField0_ = bitField0_;
407 if (((from_bitField0_ & 0x00000001) != 0)) {
408 result.numBranches_ = numBranches_;
410 if (((from_bitField0_ & 0x00000002) != 0)) {
411 result.numFailures_ = numFailures_;
413 if (((from_bitField0_ & 0x00000004) != 0)) {
414 result.numSolutions_ = numSolutions_;
416 if (((from_bitField0_ & 0x00000008) != 0)) {
417 result.bytesUsed_ = bytesUsed_;
419 if (((from_bitField0_ & 0x00000010) != 0)) {
420 result.durationSeconds_ = durationSeconds_;
425 public Builder
mergeFrom(com.google.protobuf.Message other) {
426 if (other instanceof com.google.ortools.constraintsolver.ConstraintSolverStatistics) {
427 return mergeFrom((com.google.ortools.constraintsolver.ConstraintSolverStatistics)other);
429 super.mergeFrom(other);
434 public Builder
mergeFrom(com.google.ortools.constraintsolver.ConstraintSolverStatistics other) {
435 if (other == com.google.ortools.constraintsolver.ConstraintSolverStatistics.getDefaultInstance())
return this;
436 if (other.getNumBranches() != 0L) {
439 if (other.getNumFailures() != 0L) {
442 if (other.getNumSolutions() != 0L) {
445 if (other.getBytesUsed() != 0L) {
448 if (other.getDurationSeconds() != 0D) {
451 this.mergeUnknownFields(other.getUnknownFields());
463 com.google.protobuf.CodedInputStream input,
464 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
465 throws java.io.IOException {
466 if (extensionRegistry ==
null) {
467 throw new java.lang.NullPointerException();
470 boolean done =
false;
472 int tag = input.readTag();
478 numBranches_ = input.readInt64();
479 bitField0_ |= 0x00000001;
483 numFailures_ = input.readInt64();
484 bitField0_ |= 0x00000002;
488 numSolutions_ = input.readInt64();
489 bitField0_ |= 0x00000004;
493 bytesUsed_ = input.readInt64();
494 bitField0_ |= 0x00000008;
498 durationSeconds_ = input.readDouble();
499 bitField0_ |= 0x00000010;
503 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
510 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
511 throw e.unwrapIOException();
517 private int bitField0_;
519 private long numBranches_ ;
543 numBranches_ = value;
544 bitField0_ |= 0x00000001;
557 bitField0_ = (bitField0_ & ~0x00000001);
563 private long numFailures_ ;
587 numFailures_ = value;
588 bitField0_ |= 0x00000002;
601 bitField0_ = (bitField0_ & ~0x00000002);
607 private long numSolutions_ ;
618 return numSolutions_;
631 numSolutions_ = value;
632 bitField0_ |= 0x00000004;
645 bitField0_ = (bitField0_ & ~0x00000004);
651 private long bytesUsed_ ;
676 bitField0_ |= 0x00000008;
689 bitField0_ = (bitField0_ & ~0x00000008);
695 private double durationSeconds_ ;
706 return durationSeconds_;
719 durationSeconds_ = value;
720 bitField0_ |= 0x00000010;
733 bitField0_ = (bitField0_ & ~0x00000010);
734 durationSeconds_ = 0D;
745 DEFAULT_INSTANCE =
new com.google.ortools.constraintsolver.ConstraintSolverStatistics();
749 return DEFAULT_INSTANCE;
756 com.google.protobuf.CodedInputStream input,
757 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
758 throws com.google.protobuf.InvalidProtocolBufferException {
761 builder.mergeFrom(input, extensionRegistry);
762 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
763 throw e.setUnfinishedMessage(builder.buildPartial());
764 }
catch (com.google.protobuf.UninitializedMessageException e) {
765 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
766 }
catch (java.io.IOException e) {
767 throw new com.google.protobuf.InvalidProtocolBufferException(e)
768 .setUnfinishedMessage(builder.buildPartial());
770 return builder.buildPartial();
774 public static com.google.protobuf.Parser<ConstraintSolverStatistics>
parser() {
785 return DEFAULT_INSTANCE;