5package com.google.ortools.constraintsolver;
15 com.google.protobuf.GeneratedMessage implements
18private static final long serialVersionUID = 0L;
20 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
21 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
35 public static final com.google.protobuf.Descriptors.Descriptor
37 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_ConstraintSolverStatistics_descriptor;
41 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
43 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_ConstraintSolverStatistics_fieldAccessorTable
44 .ensureFieldAccessorsInitialized(
45 com.google.ortools.constraintsolver.ConstraintSolverStatistics.class, com.google.ortools.constraintsolver.ConstraintSolverStatistics.Builder.class);
49 private long numBranches_ = 0L;
64 private long numFailures_ = 0L;
79 private long numSolutions_ = 0L;
94 private long bytesUsed_ = 0L;
109 private double durationSeconds_ = 0D;
120 return durationSeconds_;
123 private byte memoizedIsInitialized = -1;
130 memoizedIsInitialized = 1;
135 public void writeTo(com.google.protobuf.CodedOutputStream output)
136 throws java.io.IOException {
137 if (numBranches_ != 0L) {
138 output.writeInt64(1, numBranches_);
140 if (numFailures_ != 0L) {
141 output.writeInt64(2, numFailures_);
143 if (numSolutions_ != 0L) {
144 output.writeInt64(3, numSolutions_);
146 if (bytesUsed_ != 0L) {
147 output.writeInt64(4, bytesUsed_);
149 if (java.lang.Double.doubleToRawLongBits(durationSeconds_) != 0) {
150 output.writeDouble(5, durationSeconds_);
152 getUnknownFields().writeTo(output);
157 int size = memoizedSize;
158 if (size != -1)
return size;
161 if (numBranches_ != 0L) {
162 size += com.google.protobuf.CodedOutputStream
163 .computeInt64Size(1, numBranches_);
165 if (numFailures_ != 0L) {
166 size += com.google.protobuf.CodedOutputStream
167 .computeInt64Size(2, numFailures_);
169 if (numSolutions_ != 0L) {
170 size += com.google.protobuf.CodedOutputStream
171 .computeInt64Size(3, numSolutions_);
173 if (bytesUsed_ != 0L) {
174 size += com.google.protobuf.CodedOutputStream
175 .computeInt64Size(4, bytesUsed_);
177 if (java.lang.Double.doubleToRawLongBits(durationSeconds_) != 0) {
178 size += com.google.protobuf.CodedOutputStream
179 .computeDoubleSize(5, durationSeconds_);
181 size += getUnknownFields().getSerializedSize();
187 public boolean equals(
final java.lang.Object obj) {
191 if (!(obj instanceof com.google.ortools.constraintsolver.ConstraintSolverStatistics)) {
192 return super.equals(obj);
205 != java.lang.Double.doubleToLongBits(
207 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
213 if (memoizedHashCode != 0) {
214 return memoizedHashCode;
219 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
222 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
225 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
228 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
231 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
233 hash = (29 * hash) + getUnknownFields().hashCode();
234 memoizedHashCode = hash;
239 java.nio.ByteBuffer data)
240 throws com.google.protobuf.InvalidProtocolBufferException {
241 return PARSER.parseFrom(data);
244 java.nio.ByteBuffer data,
245 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
246 throws com.google.protobuf.InvalidProtocolBufferException {
247 return PARSER.parseFrom(data, extensionRegistry);
250 com.google.protobuf.ByteString data)
251 throws com.google.protobuf.InvalidProtocolBufferException {
252 return PARSER.parseFrom(data);
255 com.google.protobuf.ByteString data,
256 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
257 throws com.google.protobuf.InvalidProtocolBufferException {
258 return PARSER.parseFrom(data, extensionRegistry);
261 throws com.google.protobuf.InvalidProtocolBufferException {
262 return PARSER.parseFrom(data);
266 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
267 throws com.google.protobuf.InvalidProtocolBufferException {
268 return PARSER.parseFrom(data, extensionRegistry);
271 throws java.io.IOException {
272 return com.google.protobuf.GeneratedMessage
273 .parseWithIOException(PARSER, input);
276 java.io.InputStream input,
277 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
278 throws java.io.IOException {
279 return com.google.protobuf.GeneratedMessage
280 .parseWithIOException(PARSER, input, extensionRegistry);
284 throws java.io.IOException {
285 return com.google.protobuf.GeneratedMessage
286 .parseDelimitedWithIOException(PARSER, input);
290 java.io.InputStream input,
291 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
292 throws java.io.IOException {
293 return com.google.protobuf.GeneratedMessage
294 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
297 com.google.protobuf.CodedInputStream input)
298 throws java.io.IOException {
299 return com.google.protobuf.GeneratedMessage
300 .parseWithIOException(PARSER, input);
303 com.google.protobuf.CodedInputStream input,
304 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
305 throws java.io.IOException {
306 return com.google.protobuf.GeneratedMessage
307 .parseWithIOException(PARSER, input, extensionRegistry);
315 public static Builder newBuilder(com.google.ortools.constraintsolver.ConstraintSolverStatistics prototype) {
320 return this == DEFAULT_INSTANCE
326 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
338 com.google.protobuf.GeneratedMessage.
Builder<Builder> implements
341 public static final com.google.protobuf.Descriptors.Descriptor
343 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_ConstraintSolverStatistics_descriptor;
347 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
349 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_ConstraintSolverStatistics_fieldAccessorTable
350 .ensureFieldAccessorsInitialized(
351 com.google.ortools.constraintsolver.ConstraintSolverStatistics.class, com.google.ortools.constraintsolver.ConstraintSolverStatistics.Builder.class);
360 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
372 durationSeconds_ = 0D;
377 public com.google.protobuf.Descriptors.Descriptor
379 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_ConstraintSolverStatistics_descriptor;
384 return com.google.ortools.constraintsolver.ConstraintSolverStatistics.getDefaultInstance();
391 throw newUninitializedMessageException(result);
399 if (bitField0_ != 0) { buildPartial0(result); }
404 private void buildPartial0(com.google.ortools.constraintsolver.ConstraintSolverStatistics result) {
405 int from_bitField0_ = bitField0_;
406 if (((from_bitField0_ & 0x00000001) != 0)) {
407 result.numBranches_ = numBranches_;
409 if (((from_bitField0_ & 0x00000002) != 0)) {
410 result.numFailures_ = numFailures_;
412 if (((from_bitField0_ & 0x00000004) != 0)) {
413 result.numSolutions_ = numSolutions_;
415 if (((from_bitField0_ & 0x00000008) != 0)) {
416 result.bytesUsed_ = bytesUsed_;
418 if (((from_bitField0_ & 0x00000010) != 0)) {
419 result.durationSeconds_ = durationSeconds_;
425 if (other instanceof com.google.ortools.constraintsolver.ConstraintSolverStatistics) {
426 return mergeFrom((com.google.ortools.constraintsolver.ConstraintSolverStatistics)other);
428 super.mergeFrom(other);
433 public Builder mergeFrom(com.google.ortools.constraintsolver.ConstraintSolverStatistics other) {
434 if (other == com.google.ortools.constraintsolver.ConstraintSolverStatistics.getDefaultInstance())
return this;
435 if (other.getNumBranches() != 0L) {
438 if (other.getNumFailures() != 0L) {
441 if (other.getNumSolutions() != 0L) {
444 if (other.getBytesUsed() != 0L) {
447 if (other.getDurationSeconds() != 0D) {
450 this.mergeUnknownFields(other.getUnknownFields());
462 com.google.protobuf.CodedInputStream input,
463 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
464 throws java.io.IOException {
465 if (extensionRegistry ==
null) {
466 throw new java.lang.NullPointerException();
469 boolean done =
false;
471 int tag = input.readTag();
477 numBranches_ = input.readInt64();
478 bitField0_ |= 0x00000001;
482 numFailures_ = input.readInt64();
483 bitField0_ |= 0x00000002;
487 numSolutions_ = input.readInt64();
488 bitField0_ |= 0x00000004;
492 bytesUsed_ = input.readInt64();
493 bitField0_ |= 0x00000008;
497 durationSeconds_ = input.readDouble();
498 bitField0_ |= 0x00000010;
502 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
509 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
510 throw e.unwrapIOException();
516 private int bitField0_;
518 private long numBranches_ ;
542 numBranches_ = value;
543 bitField0_ |= 0x00000001;
556 bitField0_ = (bitField0_ & ~0x00000001);
562 private long numFailures_ ;
586 numFailures_ = value;
587 bitField0_ |= 0x00000002;
600 bitField0_ = (bitField0_ & ~0x00000002);
606 private long numSolutions_ ;
617 return numSolutions_;
630 numSolutions_ = value;
631 bitField0_ |= 0x00000004;
644 bitField0_ = (bitField0_ & ~0x00000004);
650 private long bytesUsed_ ;
675 bitField0_ |= 0x00000008;
688 bitField0_ = (bitField0_ & ~0x00000008);
694 private double durationSeconds_ ;
705 return durationSeconds_;
718 durationSeconds_ = value;
719 bitField0_ |= 0x00000010;
732 bitField0_ = (bitField0_ & ~0x00000010);
733 durationSeconds_ = 0D;
744 DEFAULT_INSTANCE =
new com.google.ortools.constraintsolver.ConstraintSolverStatistics();
748 return DEFAULT_INSTANCE;
755 com.google.protobuf.CodedInputStream input,
756 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
757 throws com.google.protobuf.InvalidProtocolBufferException {
760 builder.mergeFrom(input, extensionRegistry);
761 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
762 throw e.setUnfinishedMessage(builder.buildPartial());
763 }
catch (com.google.protobuf.UninitializedMessageException e) {
764 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
765 }
catch (java.io.IOException e) {
766 throw new com.google.protobuf.InvalidProtocolBufferException(e)
767 .setUnfinishedMessage(builder.buildPartial());
769 return builder.buildPartial();
784 return DEFAULT_INSTANCE;