Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
ConstraintSolverStatistics.java
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: ortools/constraint_solver/search_stats.proto
3
4// Protobuf Java Version: 4.26.1
5package com.google.ortools.constraintsolver;
6
14public final class ConstraintSolverStatistics extends
15 com.google.protobuf.GeneratedMessage implements
16 // @@protoc_insertion_point(message_implements:operations_research.ConstraintSolverStatistics)
18private static final long serialVersionUID = 0L;
19 static {
20 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
21 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
22 /* major= */ 4,
23 /* minor= */ 26,
24 /* patch= */ 1,
25 /* suffix= */ "",
26 ConstraintSolverStatistics.class.getName());
27 }
28 // Use ConstraintSolverStatistics.newBuilder() to construct.
29 private ConstraintSolverStatistics(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
30 super(builder);
31 }
33 }
34
35 public static final com.google.protobuf.Descriptors.Descriptor
37 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_ConstraintSolverStatistics_descriptor;
38 }
39
40 @java.lang.Override
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);
46 }
47
48 public static final int NUM_BRANCHES_FIELD_NUMBER = 1;
49 private long numBranches_ = 0L;
58 @java.lang.Override
59 public long getNumBranches() {
60 return numBranches_;
61 }
62
63 public static final int NUM_FAILURES_FIELD_NUMBER = 2;
64 private long numFailures_ = 0L;
73 @java.lang.Override
74 public long getNumFailures() {
75 return numFailures_;
76 }
77
78 public static final int NUM_SOLUTIONS_FIELD_NUMBER = 3;
79 private long numSolutions_ = 0L;
88 @java.lang.Override
89 public long getNumSolutions() {
90 return numSolutions_;
91 }
92
93 public static final int BYTES_USED_FIELD_NUMBER = 4;
94 private long bytesUsed_ = 0L;
103 @java.lang.Override
104 public long getBytesUsed() {
105 return bytesUsed_;
106 }
107
108 public static final int DURATION_SECONDS_FIELD_NUMBER = 5;
109 private double durationSeconds_ = 0D;
118 @java.lang.Override
119 public double getDurationSeconds() {
120 return durationSeconds_;
121 }
122
123 private byte memoizedIsInitialized = -1;
124 @java.lang.Override
125 public final boolean isInitialized() {
126 byte isInitialized = memoizedIsInitialized;
127 if (isInitialized == 1) return true;
128 if (isInitialized == 0) return false;
129
130 memoizedIsInitialized = 1;
131 return true;
132 }
133
134 @java.lang.Override
135 public void writeTo(com.google.protobuf.CodedOutputStream output)
136 throws java.io.IOException {
137 if (numBranches_ != 0L) {
138 output.writeInt64(1, numBranches_);
139 }
140 if (numFailures_ != 0L) {
141 output.writeInt64(2, numFailures_);
142 }
143 if (numSolutions_ != 0L) {
144 output.writeInt64(3, numSolutions_);
145 }
146 if (bytesUsed_ != 0L) {
147 output.writeInt64(4, bytesUsed_);
148 }
149 if (java.lang.Double.doubleToRawLongBits(durationSeconds_) != 0) {
150 output.writeDouble(5, durationSeconds_);
151 }
152 getUnknownFields().writeTo(output);
153 }
154
155 @java.lang.Override
156 public int getSerializedSize() {
157 int size = memoizedSize;
158 if (size != -1) return size;
159
160 size = 0;
161 if (numBranches_ != 0L) {
162 size += com.google.protobuf.CodedOutputStream
163 .computeInt64Size(1, numBranches_);
164 }
165 if (numFailures_ != 0L) {
166 size += com.google.protobuf.CodedOutputStream
167 .computeInt64Size(2, numFailures_);
168 }
169 if (numSolutions_ != 0L) {
170 size += com.google.protobuf.CodedOutputStream
171 .computeInt64Size(3, numSolutions_);
172 }
173 if (bytesUsed_ != 0L) {
174 size += com.google.protobuf.CodedOutputStream
175 .computeInt64Size(4, bytesUsed_);
176 }
177 if (java.lang.Double.doubleToRawLongBits(durationSeconds_) != 0) {
178 size += com.google.protobuf.CodedOutputStream
179 .computeDoubleSize(5, durationSeconds_);
180 }
181 size += getUnknownFields().getSerializedSize();
182 memoizedSize = size;
183 return size;
184 }
185
186 @java.lang.Override
187 public boolean equals(final java.lang.Object obj) {
188 if (obj == this) {
189 return true;
190 }
191 if (!(obj instanceof com.google.ortools.constraintsolver.ConstraintSolverStatistics)) {
192 return super.equals(obj);
193 }
194 com.google.ortools.constraintsolver.ConstraintSolverStatistics other = (com.google.ortools.constraintsolver.ConstraintSolverStatistics) obj;
195
196 if (getNumBranches()
197 != other.getNumBranches()) return false;
198 if (getNumFailures()
199 != other.getNumFailures()) return false;
200 if (getNumSolutions()
201 != other.getNumSolutions()) return false;
202 if (getBytesUsed()
203 != other.getBytesUsed()) return false;
204 if (java.lang.Double.doubleToLongBits(getDurationSeconds())
205 != java.lang.Double.doubleToLongBits(
206 other.getDurationSeconds())) return false;
207 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
208 return true;
209 }
210
211 @java.lang.Override
212 public int hashCode() {
213 if (memoizedHashCode != 0) {
214 return memoizedHashCode;
215 }
216 int hash = 41;
217 hash = (19 * hash) + getDescriptor().hashCode();
218 hash = (37 * hash) + NUM_BRANCHES_FIELD_NUMBER;
219 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
221 hash = (37 * hash) + NUM_FAILURES_FIELD_NUMBER;
222 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
224 hash = (37 * hash) + NUM_SOLUTIONS_FIELD_NUMBER;
225 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
227 hash = (37 * hash) + BYTES_USED_FIELD_NUMBER;
228 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
229 getBytesUsed());
230 hash = (37 * hash) + DURATION_SECONDS_FIELD_NUMBER;
231 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
232 java.lang.Double.doubleToLongBits(getDurationSeconds()));
233 hash = (29 * hash) + getUnknownFields().hashCode();
234 memoizedHashCode = hash;
235 return hash;
236 }
237
239 java.nio.ByteBuffer data)
240 throws com.google.protobuf.InvalidProtocolBufferException {
241 return PARSER.parseFrom(data);
242 }
244 java.nio.ByteBuffer data,
245 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
246 throws com.google.protobuf.InvalidProtocolBufferException {
247 return PARSER.parseFrom(data, extensionRegistry);
248 }
250 com.google.protobuf.ByteString data)
251 throws com.google.protobuf.InvalidProtocolBufferException {
252 return PARSER.parseFrom(data);
253 }
255 com.google.protobuf.ByteString data,
256 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
257 throws com.google.protobuf.InvalidProtocolBufferException {
258 return PARSER.parseFrom(data, extensionRegistry);
259 }
261 throws com.google.protobuf.InvalidProtocolBufferException {
262 return PARSER.parseFrom(data);
263 }
265 byte[] data,
266 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
267 throws com.google.protobuf.InvalidProtocolBufferException {
268 return PARSER.parseFrom(data, extensionRegistry);
269 }
271 throws java.io.IOException {
272 return com.google.protobuf.GeneratedMessage
273 .parseWithIOException(PARSER, input);
274 }
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);
281 }
282
284 throws java.io.IOException {
285 return com.google.protobuf.GeneratedMessage
286 .parseDelimitedWithIOException(PARSER, input);
287 }
288
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);
295 }
297 com.google.protobuf.CodedInputStream input)
298 throws java.io.IOException {
299 return com.google.protobuf.GeneratedMessage
300 .parseWithIOException(PARSER, input);
301 }
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);
308 }
309
310 @java.lang.Override
311 public Builder newBuilderForType() { return newBuilder(); }
312 public static Builder newBuilder() {
313 return DEFAULT_INSTANCE.toBuilder();
314 }
315 public static Builder newBuilder(com.google.ortools.constraintsolver.ConstraintSolverStatistics prototype) {
316 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
317 }
318 @java.lang.Override
320 return this == DEFAULT_INSTANCE
321 ? new Builder() : new Builder().mergeFrom(this);
322 }
323
324 @java.lang.Override
326 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
327 Builder builder = new Builder(parent);
328 return builder;
329 }
337 public static final class Builder extends
338 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
339 // @@protoc_insertion_point(builder_implements:operations_research.ConstraintSolverStatistics)
340 com.google.ortools.constraintsolver.ConstraintSolverStatisticsOrBuilder {
341 public static final com.google.protobuf.Descriptors.Descriptor
343 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_ConstraintSolverStatistics_descriptor;
344 }
345
346 @java.lang.Override
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);
352 }
353
354 // Construct using com.google.ortools.constraintsolver.ConstraintSolverStatistics.newBuilder()
355 private Builder() {
356
357 }
358
359 private Builder(
360 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
361 super(parent);
362
363 }
364 @java.lang.Override
365 public Builder clear() {
366 super.clear();
367 bitField0_ = 0;
368 numBranches_ = 0L;
369 numFailures_ = 0L;
370 numSolutions_ = 0L;
371 bytesUsed_ = 0L;
372 durationSeconds_ = 0D;
373 return this;
374 }
375
376 @java.lang.Override
377 public com.google.protobuf.Descriptors.Descriptor
379 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_ConstraintSolverStatistics_descriptor;
380 }
381
382 @java.lang.Override
384 return com.google.ortools.constraintsolver.ConstraintSolverStatistics.getDefaultInstance();
385 }
386
387 @java.lang.Override
390 if (!result.isInitialized()) {
391 throw newUninitializedMessageException(result);
392 }
393 return result;
394 }
395
396 @java.lang.Override
398 com.google.ortools.constraintsolver.ConstraintSolverStatistics result = new com.google.ortools.constraintsolver.ConstraintSolverStatistics(this);
399 if (bitField0_ != 0) { buildPartial0(result); }
400 onBuilt();
401 return result;
402 }
403
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_;
408 }
409 if (((from_bitField0_ & 0x00000002) != 0)) {
410 result.numFailures_ = numFailures_;
411 }
412 if (((from_bitField0_ & 0x00000004) != 0)) {
413 result.numSolutions_ = numSolutions_;
414 }
415 if (((from_bitField0_ & 0x00000008) != 0)) {
416 result.bytesUsed_ = bytesUsed_;
417 }
418 if (((from_bitField0_ & 0x00000010) != 0)) {
419 result.durationSeconds_ = durationSeconds_;
420 }
421 }
422
423 @java.lang.Override
424 public Builder mergeFrom(com.google.protobuf.Message other) {
425 if (other instanceof com.google.ortools.constraintsolver.ConstraintSolverStatistics) {
426 return mergeFrom((com.google.ortools.constraintsolver.ConstraintSolverStatistics)other);
427 } else {
428 super.mergeFrom(other);
429 return this;
430 }
431 }
432
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) {
436 setNumBranches(other.getNumBranches());
437 }
438 if (other.getNumFailures() != 0L) {
439 setNumFailures(other.getNumFailures());
440 }
441 if (other.getNumSolutions() != 0L) {
442 setNumSolutions(other.getNumSolutions());
443 }
444 if (other.getBytesUsed() != 0L) {
445 setBytesUsed(other.getBytesUsed());
446 }
447 if (other.getDurationSeconds() != 0D) {
448 setDurationSeconds(other.getDurationSeconds());
449 }
450 this.mergeUnknownFields(other.getUnknownFields());
451 onChanged();
452 return this;
453 }
454
455 @java.lang.Override
456 public final boolean isInitialized() {
457 return true;
458 }
459
460 @java.lang.Override
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();
467 }
468 try {
469 boolean done = false;
470 while (!done) {
471 int tag = input.readTag();
472 switch (tag) {
473 case 0:
474 done = true;
475 break;
476 case 8: {
477 numBranches_ = input.readInt64();
478 bitField0_ |= 0x00000001;
479 break;
480 } // case 8
481 case 16: {
482 numFailures_ = input.readInt64();
483 bitField0_ |= 0x00000002;
484 break;
485 } // case 16
486 case 24: {
487 numSolutions_ = input.readInt64();
488 bitField0_ |= 0x00000004;
489 break;
490 } // case 24
491 case 32: {
492 bytesUsed_ = input.readInt64();
493 bitField0_ |= 0x00000008;
494 break;
495 } // case 32
496 case 41: {
497 durationSeconds_ = input.readDouble();
498 bitField0_ |= 0x00000010;
499 break;
500 } // case 41
501 default: {
502 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
503 done = true; // was an endgroup tag
504 }
505 break;
506 } // default:
507 } // switch (tag)
508 } // while (!done)
509 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
510 throw e.unwrapIOException();
511 } finally {
512 onChanged();
513 } // finally
514 return this;
515 }
516 private int bitField0_;
517
518 private long numBranches_ ;
527 @java.lang.Override
528 public long getNumBranches() {
529 return numBranches_;
530 }
540 public Builder setNumBranches(long value) {
541
542 numBranches_ = value;
543 bitField0_ |= 0x00000001;
544 onChanged();
545 return this;
546 }
556 bitField0_ = (bitField0_ & ~0x00000001);
557 numBranches_ = 0L;
558 onChanged();
559 return this;
560 }
561
562 private long numFailures_ ;
571 @java.lang.Override
572 public long getNumFailures() {
573 return numFailures_;
574 }
584 public Builder setNumFailures(long value) {
585
586 numFailures_ = value;
587 bitField0_ |= 0x00000002;
588 onChanged();
589 return this;
590 }
600 bitField0_ = (bitField0_ & ~0x00000002);
601 numFailures_ = 0L;
602 onChanged();
603 return this;
604 }
605
606 private long numSolutions_ ;
615 @java.lang.Override
616 public long getNumSolutions() {
617 return numSolutions_;
618 }
628 public Builder setNumSolutions(long value) {
629
630 numSolutions_ = value;
631 bitField0_ |= 0x00000004;
632 onChanged();
633 return this;
634 }
644 bitField0_ = (bitField0_ & ~0x00000004);
645 numSolutions_ = 0L;
646 onChanged();
647 return this;
648 }
649
650 private long bytesUsed_ ;
659 @java.lang.Override
660 public long getBytesUsed() {
661 return bytesUsed_;
662 }
672 public Builder setBytesUsed(long value) {
673
674 bytesUsed_ = value;
675 bitField0_ |= 0x00000008;
676 onChanged();
677 return this;
678 }
688 bitField0_ = (bitField0_ & ~0x00000008);
689 bytesUsed_ = 0L;
690 onChanged();
691 return this;
692 }
693
694 private double durationSeconds_ ;
703 @java.lang.Override
704 public double getDurationSeconds() {
705 return durationSeconds_;
706 }
716 public Builder setDurationSeconds(double value) {
717
718 durationSeconds_ = value;
719 bitField0_ |= 0x00000010;
720 onChanged();
721 return this;
722 }
732 bitField0_ = (bitField0_ & ~0x00000010);
733 durationSeconds_ = 0D;
734 onChanged();
735 return this;
736 }
737
738 // @@protoc_insertion_point(builder_scope:operations_research.ConstraintSolverStatistics)
739 }
740
741 // @@protoc_insertion_point(class_scope:operations_research.ConstraintSolverStatistics)
742 private static final com.google.ortools.constraintsolver.ConstraintSolverStatistics DEFAULT_INSTANCE;
743 static {
744 DEFAULT_INSTANCE = new com.google.ortools.constraintsolver.ConstraintSolverStatistics();
745 }
746
748 return DEFAULT_INSTANCE;
749 }
750
751 private static final com.google.protobuf.Parser<ConstraintSolverStatistics>
752 PARSER = new com.google.protobuf.AbstractParser<ConstraintSolverStatistics>() {
753 @java.lang.Override
754 public ConstraintSolverStatistics parsePartialFrom(
755 com.google.protobuf.CodedInputStream input,
756 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
757 throws com.google.protobuf.InvalidProtocolBufferException {
758 Builder builder = newBuilder();
759 try {
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());
768 }
769 return builder.buildPartial();
770 }
771 };
772
773 public static com.google.protobuf.Parser<ConstraintSolverStatistics> parser() {
774 return PARSER;
775 }
776
777 @java.lang.Override
778 public com.google.protobuf.Parser<ConstraintSolverStatistics> getParserForType() {
779 return PARSER;
780 }
781
782 @java.lang.Override
786
787}
788
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
com.google.ortools.constraintsolver.ConstraintSolverStatistics getDefaultInstanceForType()
Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.constraintsolver.ConstraintSolverStatistics buildPartial()
Builder mergeFrom(com.google.ortools.constraintsolver.ConstraintSolverStatistics other)
com.google.ortools.constraintsolver.ConstraintSolverStatistics build()
Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
static com.google.ortools.constraintsolver.ConstraintSolverStatistics parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.constraintsolver.ConstraintSolverStatistics parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.constraintsolver.ConstraintSolverStatistics parseFrom(java.nio.ByteBuffer data)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
static com.google.ortools.constraintsolver.ConstraintSolverStatistics parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.constraintsolver.ConstraintSolverStatistics parseFrom(byte[] data)
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
com.google.protobuf.Parser< ConstraintSolverStatistics > getParserForType()
com.google.ortools.constraintsolver.ConstraintSolverStatistics getDefaultInstanceForType()
static com.google.ortools.constraintsolver.ConstraintSolverStatistics parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.constraintsolver.ConstraintSolverStatistics parseFrom(java.io.InputStream input)
static com.google.ortools.constraintsolver.ConstraintSolverStatistics parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.constraintsolver.ConstraintSolverStatistics parseDelimitedFrom(java.io.InputStream input)
static Builder newBuilder(com.google.ortools.constraintsolver.ConstraintSolverStatistics prototype)
static com.google.protobuf.Parser< ConstraintSolverStatistics > parser()
static com.google.ortools.constraintsolver.ConstraintSolverStatistics parseFrom(com.google.protobuf.ByteString data)
static com.google.ortools.constraintsolver.ConstraintSolverStatistics parseFrom(com.google.protobuf.CodedInputStream input)
static com.google.ortools.constraintsolver.ConstraintSolverStatistics parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.constraintsolver.ConstraintSolverStatistics getDefaultInstance()