6package com.google.ortools.constraintsolver;
15@com.google.protobuf.Generated
16public final class ConstraintSolverStatistics
extends
17 com.google.protobuf.GeneratedMessage implements
20private static final long serialVersionUID = 0L;
22 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
23 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
28 ConstraintSolverStatistics.class.getName());
31 private ConstraintSolverStatistics(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
34 private ConstraintSolverStatistics() {
37 public static final com.google.protobuf.Descriptors.Descriptor
39 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_ConstraintSolverStatistics_descriptor;
43 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
45 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_ConstraintSolverStatistics_fieldAccessorTable
46 .ensureFieldAccessorsInitialized(
47 com.google.ortools.constraintsolver.ConstraintSolverStatistics.class, com.google.ortools.constraintsolver.ConstraintSolverStatistics.Builder.class);
51 private long numBranches_ = 0L;
66 private long numFailures_ = 0L;
81 private long numSolutions_ = 0L;
96 private long bytesUsed_ = 0L;
111 private double durationSeconds_ = 0D;
122 return durationSeconds_;
125 private byte memoizedIsInitialized = -1;
132 memoizedIsInitialized = 1;
137 public void writeTo(com.google.protobuf.CodedOutputStream output)
138 throws java.io.IOException {
139 if (numBranches_ != 0L) {
140 output.writeInt64(1, numBranches_);
142 if (numFailures_ != 0L) {
143 output.writeInt64(2, numFailures_);
145 if (numSolutions_ != 0L) {
146 output.writeInt64(3, numSolutions_);
148 if (bytesUsed_ != 0L) {
149 output.writeInt64(4, bytesUsed_);
151 if (java.lang.Double.doubleToRawLongBits(durationSeconds_) != 0) {
152 output.writeDouble(5, durationSeconds_);
154 getUnknownFields().writeTo(output);
159 int size = memoizedSize;
160 if (size != -1)
return size;
163 if (numBranches_ != 0L) {
164 size += com.google.protobuf.CodedOutputStream
165 .computeInt64Size(1, numBranches_);
167 if (numFailures_ != 0L) {
168 size += com.google.protobuf.CodedOutputStream
169 .computeInt64Size(2, numFailures_);
171 if (numSolutions_ != 0L) {
172 size += com.google.protobuf.CodedOutputStream
173 .computeInt64Size(3, numSolutions_);
175 if (bytesUsed_ != 0L) {
176 size += com.google.protobuf.CodedOutputStream
177 .computeInt64Size(4, bytesUsed_);
179 if (java.lang.Double.doubleToRawLongBits(durationSeconds_) != 0) {
180 size += com.google.protobuf.CodedOutputStream
181 .computeDoubleSize(5, durationSeconds_);
183 size += getUnknownFields().getSerializedSize();
189 public boolean equals(
final java.lang.Object obj) {
193 if (!(obj instanceof com.google.ortools.constraintsolver.ConstraintSolverStatistics)) {
194 return super.equals(obj);
207 != java.lang.Double.doubleToLongBits(
209 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
215 if (memoizedHashCode != 0) {
216 return memoizedHashCode;
221 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
224 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
227 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
230 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
233 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
235 hash = (29 * hash) + getUnknownFields().hashCode();
236 memoizedHashCode = hash;
241 java.nio.ByteBuffer data)
242 throws com.google.protobuf.InvalidProtocolBufferException {
243 return PARSER.parseFrom(data);
246 java.nio.ByteBuffer data,
247 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
248 throws com.google.protobuf.InvalidProtocolBufferException {
249 return PARSER.parseFrom(data, extensionRegistry);
252 com.google.protobuf.ByteString data)
253 throws com.google.protobuf.InvalidProtocolBufferException {
254 return PARSER.parseFrom(data);
257 com.google.protobuf.ByteString data,
258 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
259 throws com.google.protobuf.InvalidProtocolBufferException {
260 return PARSER.parseFrom(data, extensionRegistry);
263 throws com.google.protobuf.InvalidProtocolBufferException {
264 return PARSER.parseFrom(data);
268 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
269 throws com.google.protobuf.InvalidProtocolBufferException {
270 return PARSER.parseFrom(data, extensionRegistry);
273 throws java.io.IOException {
274 return com.google.protobuf.GeneratedMessage
275 .parseWithIOException(PARSER, input);
278 java.io.InputStream input,
279 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
280 throws java.io.IOException {
281 return com.google.protobuf.GeneratedMessage
282 .parseWithIOException(PARSER, input, extensionRegistry);
286 throws java.io.IOException {
287 return com.google.protobuf.GeneratedMessage
288 .parseDelimitedWithIOException(PARSER, input);
292 java.io.InputStream input,
293 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
294 throws java.io.IOException {
295 return com.google.protobuf.GeneratedMessage
296 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
299 com.google.protobuf.CodedInputStream input)
300 throws java.io.IOException {
301 return com.google.protobuf.GeneratedMessage
302 .parseWithIOException(PARSER, input);
305 com.google.protobuf.CodedInputStream input,
306 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
307 throws java.io.IOException {
308 return com.google.protobuf.GeneratedMessage
309 .parseWithIOException(PARSER, input, extensionRegistry);
315 return DEFAULT_INSTANCE.toBuilder();
317 public static Builder newBuilder(com.google.ortools.constraintsolver.ConstraintSolverStatistics prototype) {
318 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
322 return this == DEFAULT_INSTANCE
328 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
339 public static final class Builder
extends
340 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
343 public static final com.google.protobuf.Descriptors.Descriptor
345 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_ConstraintSolverStatistics_descriptor;
349 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
351 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_ConstraintSolverStatistics_fieldAccessorTable
352 .ensureFieldAccessorsInitialized(
353 com.google.ortools.constraintsolver.ConstraintSolverStatistics.class, com.google.ortools.constraintsolver.ConstraintSolverStatistics.Builder.class);
362 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
374 durationSeconds_ = 0D;
379 public com.google.protobuf.Descriptors.Descriptor
381 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_ConstraintSolverStatistics_descriptor;
386 return com.google.ortools.constraintsolver.ConstraintSolverStatistics.getDefaultInstance();
393 throw newUninitializedMessageException(result);
401 if (bitField0_ != 0) { buildPartial0(result); }
406 private void buildPartial0(com.google.ortools.constraintsolver.ConstraintSolverStatistics result) {
407 int from_bitField0_ = bitField0_;
408 if (((from_bitField0_ & 0x00000001) != 0)) {
409 result.numBranches_ = numBranches_;
411 if (((from_bitField0_ & 0x00000002) != 0)) {
412 result.numFailures_ = numFailures_;
414 if (((from_bitField0_ & 0x00000004) != 0)) {
415 result.numSolutions_ = numSolutions_;
417 if (((from_bitField0_ & 0x00000008) != 0)) {
418 result.bytesUsed_ = bytesUsed_;
420 if (((from_bitField0_ & 0x00000010) != 0)) {
421 result.durationSeconds_ = durationSeconds_;
426 public Builder
mergeFrom(com.google.protobuf.Message other) {
427 if (other instanceof com.google.ortools.constraintsolver.ConstraintSolverStatistics) {
428 return mergeFrom((com.google.ortools.constraintsolver.ConstraintSolverStatistics)other);
430 super.mergeFrom(other);
435 public Builder
mergeFrom(com.google.ortools.constraintsolver.ConstraintSolverStatistics other) {
436 if (other == com.google.ortools.constraintsolver.ConstraintSolverStatistics.getDefaultInstance())
return this;
437 if (other.getNumBranches() != 0L) {
440 if (other.getNumFailures() != 0L) {
443 if (other.getNumSolutions() != 0L) {
446 if (other.getBytesUsed() != 0L) {
449 if (java.lang.Double.doubleToRawLongBits(other.getDurationSeconds()) != 0) {
452 this.mergeUnknownFields(other.getUnknownFields());
464 com.google.protobuf.CodedInputStream input,
465 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
466 throws java.io.IOException {
467 if (extensionRegistry ==
null) {
468 throw new java.lang.NullPointerException();
471 boolean done =
false;
473 int tag = input.readTag();
479 numBranches_ = input.readInt64();
480 bitField0_ |= 0x00000001;
484 numFailures_ = input.readInt64();
485 bitField0_ |= 0x00000002;
489 numSolutions_ = input.readInt64();
490 bitField0_ |= 0x00000004;
494 bytesUsed_ = input.readInt64();
495 bitField0_ |= 0x00000008;
499 durationSeconds_ = input.readDouble();
500 bitField0_ |= 0x00000010;
504 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
511 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
512 throw e.unwrapIOException();
518 private int bitField0_;
520 private long numBranches_ ;
544 numBranches_ = value;
545 bitField0_ |= 0x00000001;
558 bitField0_ = (bitField0_ & ~0x00000001);
564 private long numFailures_ ;
588 numFailures_ = value;
589 bitField0_ |= 0x00000002;
602 bitField0_ = (bitField0_ & ~0x00000002);
608 private long numSolutions_ ;
619 return numSolutions_;
632 numSolutions_ = value;
633 bitField0_ |= 0x00000004;
646 bitField0_ = (bitField0_ & ~0x00000004);
652 private long bytesUsed_ ;
677 bitField0_ |= 0x00000008;
690 bitField0_ = (bitField0_ & ~0x00000008);
696 private double durationSeconds_ ;
707 return durationSeconds_;
720 durationSeconds_ = value;
721 bitField0_ |= 0x00000010;
734 bitField0_ = (bitField0_ & ~0x00000010);
735 durationSeconds_ = 0D;
746 DEFAULT_INSTANCE =
new com.google.ortools.constraintsolver.ConstraintSolverStatistics();
750 return DEFAULT_INSTANCE;
757 com.google.protobuf.CodedInputStream input,
758 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
759 throws com.google.protobuf.InvalidProtocolBufferException {
762 builder.mergeFrom(input, extensionRegistry);
763 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
764 throw e.setUnfinishedMessage(builder.buildPartial());
765 }
catch (com.google.protobuf.UninitializedMessageException e) {
766 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
767 }
catch (java.io.IOException e) {
768 throw new com.google.protobuf.InvalidProtocolBufferException(e)
769 .setUnfinishedMessage(builder.buildPartial());
771 return builder.buildPartial();
775 public static com.google.protobuf.Parser<ConstraintSolverStatistics>
parser() {
786 return DEFAULT_INSTANCE;