6package com.google.ortools.linearsolver;
11@com.google.protobuf.Generated
12public final class MPSolveInfo
extends
13 com.google.protobuf.GeneratedMessage implements
16private static final long serialVersionUID = 0L;
18 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
19 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
24 MPSolveInfo.class.getName());
27 private MPSolveInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
30 private MPSolveInfo() {
33 public static final com.google.protobuf.Descriptors.Descriptor
35 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSolveInfo_descriptor;
39 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
41 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSolveInfo_fieldAccessorTable
42 .ensureFieldAccessorsInitialized(
43 com.google.ortools.linearsolver.MPSolveInfo.class, com.google.ortools.linearsolver.MPSolveInfo.Builder.class);
46 private int bitField0_;
48 private double solveWallTimeSeconds_ = 0D;
63 return ((bitField0_ & 0x00000001) != 0);
79 return solveWallTimeSeconds_;
83 private double solveUserTimeSeconds_ = 0D;
90 return ((bitField0_ & 0x00000002) != 0);
98 return solveUserTimeSeconds_;
101 private byte memoizedIsInitialized = -1;
108 memoizedIsInitialized = 1;
113 public void writeTo(com.google.protobuf.CodedOutputStream output)
114 throws java.io.IOException {
115 if (((bitField0_ & 0x00000001) != 0)) {
116 output.writeDouble(1, solveWallTimeSeconds_);
118 if (((bitField0_ & 0x00000002) != 0)) {
119 output.writeDouble(2, solveUserTimeSeconds_);
121 getUnknownFields().writeTo(output);
126 int size = memoizedSize;
127 if (size != -1)
return size;
130 if (((bitField0_ & 0x00000001) != 0)) {
131 size += com.google.protobuf.CodedOutputStream
132 .computeDoubleSize(1, solveWallTimeSeconds_);
134 if (((bitField0_ & 0x00000002) != 0)) {
135 size += com.google.protobuf.CodedOutputStream
136 .computeDoubleSize(2, solveUserTimeSeconds_);
138 size += getUnknownFields().getSerializedSize();
144 public boolean equals(
final java.lang.Object obj) {
148 if (!(obj instanceof com.google.ortools.linearsolver.MPSolveInfo)) {
149 return super.equals(obj);
156 != java.lang.Double.doubleToLongBits(
162 != java.lang.Double.doubleToLongBits(
165 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
171 if (memoizedHashCode != 0) {
172 return memoizedHashCode;
178 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
183 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
186 hash = (29 * hash) + getUnknownFields().hashCode();
187 memoizedHashCode = hash;
192 java.nio.ByteBuffer data)
193 throws com.google.protobuf.InvalidProtocolBufferException {
194 return PARSER.parseFrom(data);
197 java.nio.ByteBuffer data,
198 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
199 throws com.google.protobuf.InvalidProtocolBufferException {
200 return PARSER.parseFrom(data, extensionRegistry);
203 com.google.protobuf.ByteString data)
204 throws com.google.protobuf.InvalidProtocolBufferException {
205 return PARSER.parseFrom(data);
208 com.google.protobuf.ByteString data,
209 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
210 throws com.google.protobuf.InvalidProtocolBufferException {
211 return PARSER.parseFrom(data, extensionRegistry);
214 throws com.google.protobuf.InvalidProtocolBufferException {
215 return PARSER.parseFrom(data);
219 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
220 throws com.google.protobuf.InvalidProtocolBufferException {
221 return PARSER.parseFrom(data, extensionRegistry);
224 throws java.io.IOException {
225 return com.google.protobuf.GeneratedMessage
226 .parseWithIOException(PARSER, input);
229 java.io.InputStream input,
230 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
231 throws java.io.IOException {
232 return com.google.protobuf.GeneratedMessage
233 .parseWithIOException(PARSER, input, extensionRegistry);
237 throws java.io.IOException {
238 return com.google.protobuf.GeneratedMessage
239 .parseDelimitedWithIOException(PARSER, input);
243 java.io.InputStream input,
244 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
245 throws java.io.IOException {
246 return com.google.protobuf.GeneratedMessage
247 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
250 com.google.protobuf.CodedInputStream input)
251 throws java.io.IOException {
252 return com.google.protobuf.GeneratedMessage
253 .parseWithIOException(PARSER, input);
256 com.google.protobuf.CodedInputStream input,
257 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
258 throws java.io.IOException {
259 return com.google.protobuf.GeneratedMessage
260 .parseWithIOException(PARSER, input, extensionRegistry);
266 return DEFAULT_INSTANCE.toBuilder();
269 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
273 return this == DEFAULT_INSTANCE
279 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
286 public static final class Builder
extends
287 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
290 public static final com.google.protobuf.Descriptors.Descriptor
292 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSolveInfo_descriptor;
296 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
298 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSolveInfo_fieldAccessorTable
299 .ensureFieldAccessorsInitialized(
300 com.google.ortools.linearsolver.MPSolveInfo.class, com.google.ortools.linearsolver.MPSolveInfo.Builder.class);
309 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
317 solveWallTimeSeconds_ = 0D;
318 solveUserTimeSeconds_ = 0D;
323 public com.google.protobuf.Descriptors.Descriptor
325 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSolveInfo_descriptor;
330 return com.google.ortools.linearsolver.MPSolveInfo.getDefaultInstance();
337 throw newUninitializedMessageException(result);
345 if (bitField0_ != 0) { buildPartial0(result); }
350 private void buildPartial0(com.google.ortools.linearsolver.MPSolveInfo result) {
351 int from_bitField0_ = bitField0_;
352 int to_bitField0_ = 0;
353 if (((from_bitField0_ & 0x00000001) != 0)) {
354 result.solveWallTimeSeconds_ = solveWallTimeSeconds_;
355 to_bitField0_ |= 0x00000001;
357 if (((from_bitField0_ & 0x00000002) != 0)) {
358 result.solveUserTimeSeconds_ = solveUserTimeSeconds_;
359 to_bitField0_ |= 0x00000002;
361 result.bitField0_ |= to_bitField0_;
365 public Builder
mergeFrom(com.google.protobuf.Message other) {
366 if (other instanceof com.google.ortools.linearsolver.MPSolveInfo) {
367 return mergeFrom((com.google.ortools.linearsolver.MPSolveInfo)other);
369 super.mergeFrom(other);
374 public Builder
mergeFrom(com.google.ortools.linearsolver.MPSolveInfo other) {
375 if (other == com.google.ortools.linearsolver.MPSolveInfo.getDefaultInstance())
return this;
376 if (other.hasSolveWallTimeSeconds()) {
379 if (other.hasSolveUserTimeSeconds()) {
382 this.mergeUnknownFields(other.getUnknownFields());
394 com.google.protobuf.CodedInputStream input,
395 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
396 throws java.io.IOException {
397 if (extensionRegistry ==
null) {
398 throw new java.lang.NullPointerException();
401 boolean done =
false;
403 int tag = input.readTag();
409 solveWallTimeSeconds_ = input.readDouble();
410 bitField0_ |= 0x00000001;
414 solveUserTimeSeconds_ = input.readDouble();
415 bitField0_ |= 0x00000002;
419 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
426 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
427 throw e.unwrapIOException();
433 private int bitField0_;
435 private double solveWallTimeSeconds_ ;
450 return ((bitField0_ & 0x00000001) != 0);
466 return solveWallTimeSeconds_;
483 solveWallTimeSeconds_ = value;
484 bitField0_ |= 0x00000001;
501 bitField0_ = (bitField0_ & ~0x00000001);
502 solveWallTimeSeconds_ = 0D;
507 private double solveUserTimeSeconds_ ;
514 return ((bitField0_ & 0x00000002) != 0);
522 return solveUserTimeSeconds_;
531 solveUserTimeSeconds_ = value;
532 bitField0_ |= 0x00000002;
541 bitField0_ = (bitField0_ & ~0x00000002);
542 solveUserTimeSeconds_ = 0D;
553 DEFAULT_INSTANCE =
new com.google.ortools.linearsolver.MPSolveInfo();
557 return DEFAULT_INSTANCE;
560 private static final com.google.protobuf.Parser<
MPSolveInfo>
561 PARSER =
new com.google.protobuf.AbstractParser<
MPSolveInfo>() {
564 com.google.protobuf.CodedInputStream input,
565 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
566 throws com.google.protobuf.InvalidProtocolBufferException {
569 builder.mergeFrom(input, extensionRegistry);
570 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
571 throw e.setUnfinishedMessage(builder.buildPartial());
572 }
catch (com.google.protobuf.UninitializedMessageException e) {
573 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
574 }
catch (java.io.IOException e) {
575 throw new com.google.protobuf.InvalidProtocolBufferException(e)
576 .setUnfinishedMessage(builder.buildPartial());
578 return builder.buildPartial();
582 public static com.google.protobuf.Parser<MPSolveInfo>
parser() {
593 return DEFAULT_INSTANCE;