Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
SubSolverStatistics.java
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// NO CHECKED-IN PROTOBUF GENCODE
3// source: ortools/constraint_solver/search_stats.proto
4// Protobuf Java Version: 4.33.1
5
6package com.google.ortools.constraintsolver;
7
15@com.google.protobuf.Generated
16public final class SubSolverStatistics extends
17 com.google.protobuf.GeneratedMessage implements
18 // @@protoc_insertion_point(message_implements:operations_research.SubSolverStatistics)
20private static final long serialVersionUID = 0L;
21 static {
22 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
23 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
24 /* major= */ 4,
25 /* minor= */ 33,
26 /* patch= */ 1,
27 /* suffix= */ "",
28 "SubSolverStatistics");
29 }
30 // Use SubSolverStatistics.newBuilder() to construct.
31 private SubSolverStatistics(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
32 super(builder);
33 }
34 private SubSolverStatistics() {
35 }
36
37 public static final com.google.protobuf.Descriptors.Descriptor
39 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_SubSolverStatistics_descriptor;
40 }
41
42 @java.lang.Override
43 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
45 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_SubSolverStatistics_fieldAccessorTable
46 .ensureFieldAccessorsInitialized(
47 com.google.ortools.constraintsolver.SubSolverStatistics.class, com.google.ortools.constraintsolver.SubSolverStatistics.Builder.class);
48 }
49
51 private long numGlopCallsInLpScheduling_ = 0L;
60 @java.lang.Override
62 return numGlopCallsInLpScheduling_;
63 }
64
66 private long numCpSatCallsInLpScheduling_ = 0L;
75 @java.lang.Override
77 return numCpSatCallsInLpScheduling_;
78 }
79
80 public static final int NUM_MIN_COST_FLOW_CALLS_FIELD_NUMBER = 3;
81 private long numMinCostFlowCalls_ = 0L;
90 @java.lang.Override
91 public long getNumMinCostFlowCalls() {
92 return numMinCostFlowCalls_;
93 }
94
95 private byte memoizedIsInitialized = -1;
96 @java.lang.Override
97 public final boolean isInitialized() {
98 byte isInitialized = memoizedIsInitialized;
99 if (isInitialized == 1) return true;
100 if (isInitialized == 0) return false;
101
102 memoizedIsInitialized = 1;
103 return true;
104 }
105
106 @java.lang.Override
107 public void writeTo(com.google.protobuf.CodedOutputStream output)
108 throws java.io.IOException {
109 if (numGlopCallsInLpScheduling_ != 0L) {
110 output.writeInt64(1, numGlopCallsInLpScheduling_);
111 }
112 if (numCpSatCallsInLpScheduling_ != 0L) {
113 output.writeInt64(2, numCpSatCallsInLpScheduling_);
114 }
115 if (numMinCostFlowCalls_ != 0L) {
116 output.writeInt64(3, numMinCostFlowCalls_);
117 }
118 getUnknownFields().writeTo(output);
119 }
120
121 @java.lang.Override
122 public int getSerializedSize() {
123 int size = memoizedSize;
124 if (size != -1) return size;
125
126 size = 0;
127 if (numGlopCallsInLpScheduling_ != 0L) {
128 size += com.google.protobuf.CodedOutputStream
129 .computeInt64Size(1, numGlopCallsInLpScheduling_);
130 }
131 if (numCpSatCallsInLpScheduling_ != 0L) {
132 size += com.google.protobuf.CodedOutputStream
133 .computeInt64Size(2, numCpSatCallsInLpScheduling_);
134 }
135 if (numMinCostFlowCalls_ != 0L) {
136 size += com.google.protobuf.CodedOutputStream
137 .computeInt64Size(3, numMinCostFlowCalls_);
138 }
139 size += getUnknownFields().getSerializedSize();
140 memoizedSize = size;
141 return size;
142 }
143
144 @java.lang.Override
145 public boolean equals(final java.lang.Object obj) {
146 if (obj == this) {
147 return true;
148 }
149 if (!(obj instanceof com.google.ortools.constraintsolver.SubSolverStatistics)) {
150 return super.equals(obj);
151 }
152 com.google.ortools.constraintsolver.SubSolverStatistics other = (com.google.ortools.constraintsolver.SubSolverStatistics) obj;
153
155 != other.getNumGlopCallsInLpScheduling()) return false;
157 != other.getNumCpSatCallsInLpScheduling()) return false;
159 != other.getNumMinCostFlowCalls()) return false;
160 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
161 return true;
162 }
163
164 @java.lang.Override
165 public int hashCode() {
166 if (memoizedHashCode != 0) {
167 return memoizedHashCode;
168 }
169 int hash = 41;
170 hash = (19 * hash) + getDescriptor().hashCode();
172 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
175 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
177 hash = (37 * hash) + NUM_MIN_COST_FLOW_CALLS_FIELD_NUMBER;
178 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
180 hash = (29 * hash) + getUnknownFields().hashCode();
181 memoizedHashCode = hash;
182 return hash;
183 }
184
186 java.nio.ByteBuffer data)
187 throws com.google.protobuf.InvalidProtocolBufferException {
188 return PARSER.parseFrom(data);
189 }
191 java.nio.ByteBuffer data,
192 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
193 throws com.google.protobuf.InvalidProtocolBufferException {
194 return PARSER.parseFrom(data, extensionRegistry);
195 }
197 com.google.protobuf.ByteString data)
198 throws com.google.protobuf.InvalidProtocolBufferException {
199 return PARSER.parseFrom(data);
200 }
202 com.google.protobuf.ByteString data,
203 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
204 throws com.google.protobuf.InvalidProtocolBufferException {
205 return PARSER.parseFrom(data, extensionRegistry);
206 }
208 throws com.google.protobuf.InvalidProtocolBufferException {
209 return PARSER.parseFrom(data);
210 }
212 byte[] data,
213 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
214 throws com.google.protobuf.InvalidProtocolBufferException {
215 return PARSER.parseFrom(data, extensionRegistry);
216 }
218 throws java.io.IOException {
219 return com.google.protobuf.GeneratedMessage
220 .parseWithIOException(PARSER, input);
221 }
223 java.io.InputStream input,
224 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
225 throws java.io.IOException {
226 return com.google.protobuf.GeneratedMessage
227 .parseWithIOException(PARSER, input, extensionRegistry);
228 }
229
231 throws java.io.IOException {
232 return com.google.protobuf.GeneratedMessage
233 .parseDelimitedWithIOException(PARSER, input);
234 }
235
237 java.io.InputStream input,
238 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
239 throws java.io.IOException {
240 return com.google.protobuf.GeneratedMessage
241 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
242 }
244 com.google.protobuf.CodedInputStream input)
245 throws java.io.IOException {
246 return com.google.protobuf.GeneratedMessage
247 .parseWithIOException(PARSER, input);
248 }
250 com.google.protobuf.CodedInputStream input,
251 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
252 throws java.io.IOException {
253 return com.google.protobuf.GeneratedMessage
254 .parseWithIOException(PARSER, input, extensionRegistry);
255 }
256
257 @java.lang.Override
258 public Builder newBuilderForType() { return newBuilder(); }
259 public static Builder newBuilder() {
260 return DEFAULT_INSTANCE.toBuilder();
261 }
262 public static Builder newBuilder(com.google.ortools.constraintsolver.SubSolverStatistics prototype) {
263 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
264 }
265 @java.lang.Override
267 return this == DEFAULT_INSTANCE
268 ? new Builder() : new Builder().mergeFrom(this);
269 }
270
271 @java.lang.Override
273 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
274 Builder builder = new Builder(parent);
275 return builder;
276 }
277
284 public static final class Builder extends
285 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
286 // @@protoc_insertion_point(builder_implements:operations_research.SubSolverStatistics)
288 public static final com.google.protobuf.Descriptors.Descriptor
290 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_SubSolverStatistics_descriptor;
291 }
292
293 @java.lang.Override
294 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
296 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_SubSolverStatistics_fieldAccessorTable
297 .ensureFieldAccessorsInitialized(
298 com.google.ortools.constraintsolver.SubSolverStatistics.class, com.google.ortools.constraintsolver.SubSolverStatistics.Builder.class);
299 }
300
301 // Construct using com.google.ortools.constraintsolver.SubSolverStatistics.newBuilder()
302 private Builder() {
303
304 }
305
306 private Builder(
307 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
308 super(parent);
309
310 }
311 @java.lang.Override
312 public Builder clear() {
313 super.clear();
314 bitField0_ = 0;
315 numGlopCallsInLpScheduling_ = 0L;
316 numCpSatCallsInLpScheduling_ = 0L;
317 numMinCostFlowCalls_ = 0L;
318 return this;
319 }
320
321 @java.lang.Override
322 public com.google.protobuf.Descriptors.Descriptor
324 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_SubSolverStatistics_descriptor;
325 }
326
327 @java.lang.Override
329 return com.google.ortools.constraintsolver.SubSolverStatistics.getDefaultInstance();
330 }
331
332 @java.lang.Override
335 if (!result.isInitialized()) {
336 throw newUninitializedMessageException(result);
337 }
338 return result;
339 }
340
341 @java.lang.Override
343 com.google.ortools.constraintsolver.SubSolverStatistics result = new com.google.ortools.constraintsolver.SubSolverStatistics(this);
344 if (bitField0_ != 0) { buildPartial0(result); }
345 onBuilt();
346 return result;
347 }
348
349 private void buildPartial0(com.google.ortools.constraintsolver.SubSolverStatistics result) {
350 int from_bitField0_ = bitField0_;
351 if (((from_bitField0_ & 0x00000001) != 0)) {
352 result.numGlopCallsInLpScheduling_ = numGlopCallsInLpScheduling_;
353 }
354 if (((from_bitField0_ & 0x00000002) != 0)) {
355 result.numCpSatCallsInLpScheduling_ = numCpSatCallsInLpScheduling_;
356 }
357 if (((from_bitField0_ & 0x00000004) != 0)) {
358 result.numMinCostFlowCalls_ = numMinCostFlowCalls_;
359 }
360 }
361
362 @java.lang.Override
363 public Builder mergeFrom(com.google.protobuf.Message other) {
364 if (other instanceof com.google.ortools.constraintsolver.SubSolverStatistics) {
365 return mergeFrom((com.google.ortools.constraintsolver.SubSolverStatistics)other);
366 } else {
367 super.mergeFrom(other);
368 return this;
369 }
370 }
371
372 public Builder mergeFrom(com.google.ortools.constraintsolver.SubSolverStatistics other) {
373 if (other == com.google.ortools.constraintsolver.SubSolverStatistics.getDefaultInstance()) return this;
374 if (other.getNumGlopCallsInLpScheduling() != 0L) {
375 setNumGlopCallsInLpScheduling(other.getNumGlopCallsInLpScheduling());
376 }
377 if (other.getNumCpSatCallsInLpScheduling() != 0L) {
378 setNumCpSatCallsInLpScheduling(other.getNumCpSatCallsInLpScheduling());
379 }
380 if (other.getNumMinCostFlowCalls() != 0L) {
381 setNumMinCostFlowCalls(other.getNumMinCostFlowCalls());
382 }
383 this.mergeUnknownFields(other.getUnknownFields());
384 onChanged();
385 return this;
386 }
387
388 @java.lang.Override
389 public final boolean isInitialized() {
390 return true;
391 }
392
393 @java.lang.Override
394 public Builder mergeFrom(
395 com.google.protobuf.CodedInputStream input,
396 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
397 throws java.io.IOException {
398 if (extensionRegistry == null) {
399 throw new java.lang.NullPointerException();
400 }
401 try {
402 boolean done = false;
403 while (!done) {
404 int tag = input.readTag();
405 switch (tag) {
406 case 0:
407 done = true;
408 break;
409 case 8: {
410 numGlopCallsInLpScheduling_ = input.readInt64();
411 bitField0_ |= 0x00000001;
412 break;
413 } // case 8
414 case 16: {
415 numCpSatCallsInLpScheduling_ = input.readInt64();
416 bitField0_ |= 0x00000002;
417 break;
418 } // case 16
419 case 24: {
420 numMinCostFlowCalls_ = input.readInt64();
421 bitField0_ |= 0x00000004;
422 break;
423 } // case 24
424 default: {
425 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
426 done = true; // was an endgroup tag
427 }
428 break;
429 } // default:
430 } // switch (tag)
431 } // while (!done)
432 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
433 throw e.unwrapIOException();
434 } finally {
435 onChanged();
436 } // finally
437 return this;
438 }
439 private int bitField0_;
440
441 private long numGlopCallsInLpScheduling_ ;
450 @java.lang.Override
452 return numGlopCallsInLpScheduling_;
453 }
454
463 public Builder setNumGlopCallsInLpScheduling(long value) {
464
465 numGlopCallsInLpScheduling_ = value;
466 bitField0_ |= 0x00000001;
467 onChanged();
468 return this;
469 }
470
479 bitField0_ = (bitField0_ & ~0x00000001);
480 numGlopCallsInLpScheduling_ = 0L;
481 onChanged();
482 return this;
483 }
484
485 private long numCpSatCallsInLpScheduling_ ;
494 @java.lang.Override
496 return numCpSatCallsInLpScheduling_;
497 }
498
507 public Builder setNumCpSatCallsInLpScheduling(long value) {
508
509 numCpSatCallsInLpScheduling_ = value;
510 bitField0_ |= 0x00000002;
511 onChanged();
512 return this;
513 }
514
523 bitField0_ = (bitField0_ & ~0x00000002);
524 numCpSatCallsInLpScheduling_ = 0L;
525 onChanged();
526 return this;
527 }
528
529 private long numMinCostFlowCalls_ ;
538 @java.lang.Override
540 return numMinCostFlowCalls_;
541 }
542
551 public Builder setNumMinCostFlowCalls(long value) {
552
553 numMinCostFlowCalls_ = value;
554 bitField0_ |= 0x00000004;
555 onChanged();
556 return this;
557 }
558
566 public Builder clearNumMinCostFlowCalls() {
567 bitField0_ = (bitField0_ & ~0x00000004);
568 numMinCostFlowCalls_ = 0L;
569 onChanged();
570 return this;
571 }
572
573 // @@protoc_insertion_point(builder_scope:operations_research.SubSolverStatistics)
574 }
575
576 // @@protoc_insertion_point(class_scope:operations_research.SubSolverStatistics)
577 private static final com.google.ortools.constraintsolver.SubSolverStatistics DEFAULT_INSTANCE;
578 static {
579 DEFAULT_INSTANCE = new com.google.ortools.constraintsolver.SubSolverStatistics();
580 }
581
583 return DEFAULT_INSTANCE;
584 }
585
586 private static final com.google.protobuf.Parser<SubSolverStatistics>
587 PARSER = new com.google.protobuf.AbstractParser<SubSolverStatistics>() {
588 @java.lang.Override
589 public SubSolverStatistics parsePartialFrom(
590 com.google.protobuf.CodedInputStream input,
591 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
592 throws com.google.protobuf.InvalidProtocolBufferException {
593 Builder builder = newBuilder();
594 try {
595 builder.mergeFrom(input, extensionRegistry);
596 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
597 throw e.setUnfinishedMessage(builder.buildPartial());
598 } catch (com.google.protobuf.UninitializedMessageException e) {
599 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
600 } catch (java.io.IOException e) {
601 throw new com.google.protobuf.InvalidProtocolBufferException(e)
602 .setUnfinishedMessage(builder.buildPartial());
603 }
604 return builder.buildPartial();
605 }
606 };
607
608 public static com.google.protobuf.Parser<SubSolverStatistics> parser() {
609 return PARSER;
610 }
611
612 @java.lang.Override
613 public com.google.protobuf.Parser<SubSolverStatistics> getParserForType() {
614 return PARSER;
615 }
616
617 @java.lang.Override
621
622}
623
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
com.google.ortools.constraintsolver.SubSolverStatistics getDefaultInstanceForType()
com.google.ortools.constraintsolver.SubSolverStatistics build()
Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
com.google.ortools.constraintsolver.SubSolverStatistics buildPartial()
Builder mergeFrom(com.google.ortools.constraintsolver.SubSolverStatistics other)
void writeTo(com.google.protobuf.CodedOutputStream output)
Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
com.google.protobuf.Parser< SubSolverStatistics > getParserForType()
static com.google.ortools.constraintsolver.SubSolverStatistics parseDelimitedFrom(java.io.InputStream input)
static com.google.ortools.constraintsolver.SubSolverStatistics parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.constraintsolver.SubSolverStatistics getDefaultInstanceForType()
static com.google.ortools.constraintsolver.SubSolverStatistics parseFrom(com.google.protobuf.ByteString data)
static com.google.ortools.constraintsolver.SubSolverStatistics parseFrom(java.io.InputStream input)
static com.google.protobuf.Parser< SubSolverStatistics > parser()
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
static com.google.ortools.constraintsolver.SubSolverStatistics parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.constraintsolver.SubSolverStatistics parseFrom(java.nio.ByteBuffer data)
static com.google.ortools.constraintsolver.SubSolverStatistics parseFrom(com.google.protobuf.CodedInputStream input)
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
static Builder newBuilder(com.google.ortools.constraintsolver.SubSolverStatistics prototype)
static com.google.ortools.constraintsolver.SubSolverStatistics parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.constraintsolver.SubSolverStatistics getDefaultInstance()
static com.google.ortools.constraintsolver.SubSolverStatistics parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.constraintsolver.SubSolverStatistics parseFrom(byte[] data)
static com.google.ortools.constraintsolver.SubSolverStatistics parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.constraintsolver.SubSolverStatistics parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)