5package com.google.ortools.constraintsolver;
15 com.google.protobuf.GeneratedMessageV3 implements
18private static final long serialVersionUID = 0L;
27 @SuppressWarnings({
"unused"})
29 UnusedPrivateParameter unused) {
33 public static final com.google.protobuf.Descriptors.Descriptor
35 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_ConstraintSolverStatistics_descriptor;
39 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
41 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_ConstraintSolverStatistics_fieldAccessorTable
42 .ensureFieldAccessorsInitialized(
43 com.google.ortools.constraintsolver.ConstraintSolverStatistics.class, com.google.ortools.constraintsolver.ConstraintSolverStatistics.Builder.class);
47 private long numBranches_ = 0L;
62 private long numFailures_ = 0L;
77 private long numSolutions_ = 0L;
92 private long bytesUsed_ = 0L;
107 private double durationSeconds_ = 0D;
118 return durationSeconds_;
121 private byte memoizedIsInitialized = -1;
128 memoizedIsInitialized = 1;
133 public void writeTo(com.google.protobuf.CodedOutputStream output)
134 throws java.io.IOException {
135 if (numBranches_ != 0L) {
136 output.writeInt64(1, numBranches_);
138 if (numFailures_ != 0L) {
139 output.writeInt64(2, numFailures_);
141 if (numSolutions_ != 0L) {
142 output.writeInt64(3, numSolutions_);
144 if (bytesUsed_ != 0L) {
145 output.writeInt64(4, bytesUsed_);
147 if (java.lang.Double.doubleToRawLongBits(durationSeconds_) != 0) {
148 output.writeDouble(5, durationSeconds_);
150 getUnknownFields().writeTo(output);
155 int size = memoizedSize;
156 if (size != -1)
return size;
159 if (numBranches_ != 0L) {
160 size += com.google.protobuf.CodedOutputStream
161 .computeInt64Size(1, numBranches_);
163 if (numFailures_ != 0L) {
164 size += com.google.protobuf.CodedOutputStream
165 .computeInt64Size(2, numFailures_);
167 if (numSolutions_ != 0L) {
168 size += com.google.protobuf.CodedOutputStream
169 .computeInt64Size(3, numSolutions_);
171 if (bytesUsed_ != 0L) {
172 size += com.google.protobuf.CodedOutputStream
173 .computeInt64Size(4, bytesUsed_);
175 if (java.lang.Double.doubleToRawLongBits(durationSeconds_) != 0) {
176 size += com.google.protobuf.CodedOutputStream
177 .computeDoubleSize(5, durationSeconds_);
179 size += getUnknownFields().getSerializedSize();
185 public boolean equals(
final java.lang.Object obj) {
189 if (!(obj instanceof com.google.ortools.constraintsolver.ConstraintSolverStatistics)) {
190 return super.equals(obj);
203 != java.lang.Double.doubleToLongBits(
205 if (!getUnknownFields().equals(other.getUnknownFields()))
return false;
211 if (memoizedHashCode != 0) {
212 return memoizedHashCode;
217 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
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(
231 hash = (29 * hash) + getUnknownFields().hashCode();
232 memoizedHashCode = hash;
237 java.nio.ByteBuffer data)
238 throws com.google.protobuf.InvalidProtocolBufferException {
239 return PARSER.parseFrom(data);
242 java.nio.ByteBuffer data,
243 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
244 throws com.google.protobuf.InvalidProtocolBufferException {
245 return PARSER.parseFrom(data, extensionRegistry);
248 com.google.protobuf.ByteString data)
249 throws com.google.protobuf.InvalidProtocolBufferException {
250 return PARSER.parseFrom(data);
253 com.google.protobuf.ByteString data,
254 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
255 throws com.google.protobuf.InvalidProtocolBufferException {
256 return PARSER.parseFrom(data, extensionRegistry);
259 throws com.google.protobuf.InvalidProtocolBufferException {
260 return PARSER.parseFrom(data);
264 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
265 throws com.google.protobuf.InvalidProtocolBufferException {
266 return PARSER.parseFrom(data, extensionRegistry);
269 throws java.io.IOException {
270 return com.google.protobuf.GeneratedMessageV3
271 .parseWithIOException(PARSER, input);
274 java.io.InputStream input,
275 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
276 throws java.io.IOException {
277 return com.google.protobuf.GeneratedMessageV3
278 .parseWithIOException(PARSER, input, extensionRegistry);
282 throws java.io.IOException {
283 return com.google.protobuf.GeneratedMessageV3
284 .parseDelimitedWithIOException(PARSER, input);
288 java.io.InputStream input,
289 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
290 throws java.io.IOException {
291 return com.google.protobuf.GeneratedMessageV3
292 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
295 com.google.protobuf.CodedInputStream input)
296 throws java.io.IOException {
297 return com.google.protobuf.GeneratedMessageV3
298 .parseWithIOException(PARSER, input);
301 com.google.protobuf.CodedInputStream input,
302 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
303 throws java.io.IOException {
304 return com.google.protobuf.GeneratedMessageV3
305 .parseWithIOException(PARSER, input, extensionRegistry);
313 public static Builder newBuilder(com.google.ortools.constraintsolver.ConstraintSolverStatistics prototype) {
318 return this == DEFAULT_INSTANCE
324 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
336 com.google.protobuf.GeneratedMessageV3.
Builder<Builder> implements
339 public static final com.google.protobuf.Descriptors.Descriptor
341 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_ConstraintSolverStatistics_descriptor;
345 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
347 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_ConstraintSolverStatistics_fieldAccessorTable
348 .ensureFieldAccessorsInitialized(
349 com.google.ortools.constraintsolver.ConstraintSolverStatistics.class, com.google.ortools.constraintsolver.ConstraintSolverStatistics.Builder.class);
358 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
370 durationSeconds_ = 0D;
375 public com.google.protobuf.Descriptors.Descriptor
377 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_ConstraintSolverStatistics_descriptor;
382 return com.google.ortools.constraintsolver.ConstraintSolverStatistics.getDefaultInstance();
389 throw newUninitializedMessageException(result);
397 if (bitField0_ != 0) { buildPartial0(result); }
402 private void buildPartial0(com.google.ortools.constraintsolver.ConstraintSolverStatistics result) {
403 int from_bitField0_ = bitField0_;
404 if (((from_bitField0_ & 0x00000001) != 0)) {
405 result.numBranches_ = numBranches_;
407 if (((from_bitField0_ & 0x00000002) != 0)) {
408 result.numFailures_ = numFailures_;
410 if (((from_bitField0_ & 0x00000004) != 0)) {
411 result.numSolutions_ = numSolutions_;
413 if (((from_bitField0_ & 0x00000008) != 0)) {
414 result.bytesUsed_ = bytesUsed_;
416 if (((from_bitField0_ & 0x00000010) != 0)) {
417 result.durationSeconds_ = durationSeconds_;
423 return super.
clone();
427 com.google.protobuf.Descriptors.FieldDescriptor field,
428 java.lang.Object value) {
429 return super.
setField(field, value);
433 com.google.protobuf.Descriptors.FieldDescriptor field) {
438 com.google.protobuf.Descriptors.OneofDescriptor oneof) {
443 com.google.protobuf.Descriptors.FieldDescriptor field,
444 int index, java.lang.Object value) {
449 com.google.protobuf.Descriptors.FieldDescriptor field,
450 java.lang.Object value) {
455 if (other instanceof com.google.ortools.constraintsolver.ConstraintSolverStatistics) {
456 return mergeFrom((com.google.ortools.constraintsolver.ConstraintSolverStatistics)other);
458 super.mergeFrom(other);
463 public Builder mergeFrom(com.google.ortools.constraintsolver.ConstraintSolverStatistics other) {
464 if (other == com.google.ortools.constraintsolver.ConstraintSolverStatistics.getDefaultInstance())
return this;
465 if (other.getNumBranches() != 0L) {
468 if (other.getNumFailures() != 0L) {
471 if (other.getNumSolutions() != 0L) {
474 if (other.getBytesUsed() != 0L) {
477 if (other.getDurationSeconds() != 0D) {
492 com.google.protobuf.CodedInputStream input,
493 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
494 throws java.io.IOException {
495 if (extensionRegistry ==
null) {
496 throw new java.lang.NullPointerException();
499 boolean done =
false;
501 int tag = input.readTag();
507 numBranches_ = input.readInt64();
508 bitField0_ |= 0x00000001;
512 numFailures_ = input.readInt64();
513 bitField0_ |= 0x00000002;
517 numSolutions_ = input.readInt64();
518 bitField0_ |= 0x00000004;
522 bytesUsed_ = input.readInt64();
523 bitField0_ |= 0x00000008;
527 durationSeconds_ = input.readDouble();
528 bitField0_ |= 0x00000010;
532 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
539 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
540 throw e.unwrapIOException();
546 private int bitField0_;
548 private long numBranches_ ;
572 numBranches_ = value;
573 bitField0_ |= 0x00000001;
586 bitField0_ = (bitField0_ & ~0x00000001);
592 private long numFailures_ ;
616 numFailures_ = value;
617 bitField0_ |= 0x00000002;
630 bitField0_ = (bitField0_ & ~0x00000002);
636 private long numSolutions_ ;
647 return numSolutions_;
660 numSolutions_ = value;
661 bitField0_ |= 0x00000004;
674 bitField0_ = (bitField0_ & ~0x00000004);
680 private long bytesUsed_ ;
705 bitField0_ |= 0x00000008;
718 bitField0_ = (bitField0_ & ~0x00000008);
724 private double durationSeconds_ ;
735 return durationSeconds_;
748 durationSeconds_ = value;
749 bitField0_ |= 0x00000010;
762 bitField0_ = (bitField0_ & ~0x00000010);
763 durationSeconds_ = 0D;
769 final com.google.protobuf.UnknownFieldSet unknownFields) {
775 final com.google.protobuf.UnknownFieldSet unknownFields) {
786 DEFAULT_INSTANCE =
new com.google.ortools.constraintsolver.ConstraintSolverStatistics();
790 return DEFAULT_INSTANCE;
797 com.google.protobuf.CodedInputStream input,
798 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
799 throws com.google.protobuf.InvalidProtocolBufferException {
802 builder.mergeFrom(input, extensionRegistry);
803 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
804 throw e.setUnfinishedMessage(builder.buildPartial());
805 }
catch (com.google.protobuf.UninitializedMessageException e) {
806 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
807 }
catch (java.io.IOException e) {
808 throw new com.google.protobuf.InvalidProtocolBufferException(e)
809 .setUnfinishedMessage(builder.buildPartial());
811 return builder.buildPartial();
826 return DEFAULT_INSTANCE;