6package com.google.ortools.constraintsolver;
15@com.google.protobuf.Generated
16public final class SubSolverStatistics
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 "SubSolverStatistics");
31 private SubSolverStatistics(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
34 private SubSolverStatistics() {
37 public static final com.google.protobuf.Descriptors.Descriptor
39 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_SubSolverStatistics_descriptor;
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);
51 private long numGlopCallsInLpScheduling_ = 0L;
62 return numGlopCallsInLpScheduling_;
66 private long numCpSatCallsInLpScheduling_ = 0L;
77 return numCpSatCallsInLpScheduling_;
81 private long numMinCostFlowCalls_ = 0L;
92 return numMinCostFlowCalls_;
95 private byte memoizedIsInitialized = -1;
102 memoizedIsInitialized = 1;
107 public void writeTo(com.google.protobuf.CodedOutputStream output)
108 throws java.io.IOException {
109 if (numGlopCallsInLpScheduling_ != 0L) {
110 output.writeInt64(1, numGlopCallsInLpScheduling_);
112 if (numCpSatCallsInLpScheduling_ != 0L) {
113 output.writeInt64(2, numCpSatCallsInLpScheduling_);
115 if (numMinCostFlowCalls_ != 0L) {
116 output.writeInt64(3, numMinCostFlowCalls_);
118 getUnknownFields().writeTo(output);
123 int size = memoizedSize;
124 if (size != -1)
return size;
127 if (numGlopCallsInLpScheduling_ != 0L) {
128 size += com.google.protobuf.CodedOutputStream
129 .computeInt64Size(1, numGlopCallsInLpScheduling_);
131 if (numCpSatCallsInLpScheduling_ != 0L) {
132 size += com.google.protobuf.CodedOutputStream
133 .computeInt64Size(2, numCpSatCallsInLpScheduling_);
135 if (numMinCostFlowCalls_ != 0L) {
136 size += com.google.protobuf.CodedOutputStream
137 .computeInt64Size(3, numMinCostFlowCalls_);
139 size += getUnknownFields().getSerializedSize();
145 public boolean equals(
final java.lang.Object obj) {
149 if (!(obj instanceof com.google.ortools.constraintsolver.SubSolverStatistics)) {
150 return super.equals(obj);
160 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
166 if (memoizedHashCode != 0) {
167 return memoizedHashCode;
172 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
175 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
178 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
180 hash = (29 * hash) + getUnknownFields().hashCode();
181 memoizedHashCode = hash;
186 java.nio.ByteBuffer data)
187 throws com.google.protobuf.InvalidProtocolBufferException {
188 return PARSER.parseFrom(data);
191 java.nio.ByteBuffer data,
192 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
193 throws com.google.protobuf.InvalidProtocolBufferException {
194 return PARSER.parseFrom(data, extensionRegistry);
197 com.google.protobuf.ByteString data)
198 throws com.google.protobuf.InvalidProtocolBufferException {
199 return PARSER.parseFrom(data);
202 com.google.protobuf.ByteString data,
203 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
204 throws com.google.protobuf.InvalidProtocolBufferException {
205 return PARSER.parseFrom(data, extensionRegistry);
208 throws com.google.protobuf.InvalidProtocolBufferException {
209 return PARSER.parseFrom(data);
213 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
214 throws com.google.protobuf.InvalidProtocolBufferException {
215 return PARSER.parseFrom(data, extensionRegistry);
218 throws java.io.IOException {
219 return com.google.protobuf.GeneratedMessage
220 .parseWithIOException(PARSER, input);
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);
231 throws java.io.IOException {
232 return com.google.protobuf.GeneratedMessage
233 .parseDelimitedWithIOException(PARSER, input);
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);
244 com.google.protobuf.CodedInputStream input)
245 throws java.io.IOException {
246 return com.google.protobuf.GeneratedMessage
247 .parseWithIOException(PARSER, input);
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);
260 return DEFAULT_INSTANCE.toBuilder();
262 public static Builder newBuilder(com.google.ortools.constraintsolver.SubSolverStatistics prototype) {
263 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
267 return this == DEFAULT_INSTANCE
273 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
284 public static final class Builder
extends
285 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
288 public static final com.google.protobuf.Descriptors.Descriptor
290 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_SubSolverStatistics_descriptor;
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);
307 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
315 numGlopCallsInLpScheduling_ = 0L;
316 numCpSatCallsInLpScheduling_ = 0L;
317 numMinCostFlowCalls_ = 0L;
322 public com.google.protobuf.Descriptors.Descriptor
324 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_SubSolverStatistics_descriptor;
329 return com.google.ortools.constraintsolver.SubSolverStatistics.getDefaultInstance();
336 throw newUninitializedMessageException(result);
344 if (bitField0_ != 0) { buildPartial0(result); }
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_;
354 if (((from_bitField0_ & 0x00000002) != 0)) {
355 result.numCpSatCallsInLpScheduling_ = numCpSatCallsInLpScheduling_;
357 if (((from_bitField0_ & 0x00000004) != 0)) {
358 result.numMinCostFlowCalls_ = numMinCostFlowCalls_;
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);
367 super.mergeFrom(other);
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) {
377 if (other.getNumCpSatCallsInLpScheduling() != 0L) {
380 if (other.getNumMinCostFlowCalls() != 0L) {
383 this.mergeUnknownFields(other.getUnknownFields());
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();
402 boolean done =
false;
404 int tag = input.readTag();
410 numGlopCallsInLpScheduling_ = input.readInt64();
411 bitField0_ |= 0x00000001;
415 numCpSatCallsInLpScheduling_ = input.readInt64();
416 bitField0_ |= 0x00000002;
420 numMinCostFlowCalls_ = input.readInt64();
421 bitField0_ |= 0x00000004;
425 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
432 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
433 throw e.unwrapIOException();
439 private int bitField0_;
441 private long numGlopCallsInLpScheduling_ ;
452 return numGlopCallsInLpScheduling_;
465 numGlopCallsInLpScheduling_ = value;
466 bitField0_ |= 0x00000001;
479 bitField0_ = (bitField0_ & ~0x00000001);
480 numGlopCallsInLpScheduling_ = 0L;
485 private long numCpSatCallsInLpScheduling_ ;
496 return numCpSatCallsInLpScheduling_;
509 numCpSatCallsInLpScheduling_ = value;
510 bitField0_ |= 0x00000002;
523 bitField0_ = (bitField0_ & ~0x00000002);
524 numCpSatCallsInLpScheduling_ = 0L;
529 private long numMinCostFlowCalls_ ;
540 return numMinCostFlowCalls_;
553 numMinCostFlowCalls_ = value;
554 bitField0_ |= 0x00000004;
567 bitField0_ = (bitField0_ & ~0x00000004);
568 numMinCostFlowCalls_ = 0L;
579 DEFAULT_INSTANCE =
new com.google.ortools.constraintsolver.SubSolverStatistics();
583 return DEFAULT_INSTANCE;
590 com.google.protobuf.CodedInputStream input,
591 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
592 throws com.google.protobuf.InvalidProtocolBufferException {
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());
604 return builder.buildPartial();
608 public static com.google.protobuf.Parser<SubSolverStatistics>
parser() {
619 return DEFAULT_INSTANCE;