6package com.google.ortools.linearsolver;
11public final class MPSolveInfo
extends
12 com.google.protobuf.GeneratedMessage implements
15private static final long serialVersionUID = 0L;
17 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
18 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
23 MPSolveInfo.class.getName());
26 private MPSolveInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
29 private MPSolveInfo() {
32 public static final com.google.protobuf.Descriptors.Descriptor
34 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSolveInfo_descriptor;
38 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
40 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSolveInfo_fieldAccessorTable
41 .ensureFieldAccessorsInitialized(
42 com.google.ortools.linearsolver.MPSolveInfo.class, com.google.ortools.linearsolver.MPSolveInfo.Builder.class);
45 private int bitField0_;
47 private double solveWallTimeSeconds_ = 0D;
62 return ((bitField0_ & 0x00000001) != 0);
78 return solveWallTimeSeconds_;
82 private double solveUserTimeSeconds_ = 0D;
89 return ((bitField0_ & 0x00000002) != 0);
97 return solveUserTimeSeconds_;
100 private byte memoizedIsInitialized = -1;
107 memoizedIsInitialized = 1;
112 public void writeTo(com.google.protobuf.CodedOutputStream output)
113 throws java.io.IOException {
114 if (((bitField0_ & 0x00000001) != 0)) {
115 output.writeDouble(1, solveWallTimeSeconds_);
117 if (((bitField0_ & 0x00000002) != 0)) {
118 output.writeDouble(2, solveUserTimeSeconds_);
120 getUnknownFields().writeTo(output);
125 int size = memoizedSize;
126 if (size != -1)
return size;
129 if (((bitField0_ & 0x00000001) != 0)) {
130 size += com.google.protobuf.CodedOutputStream
131 .computeDoubleSize(1, solveWallTimeSeconds_);
133 if (((bitField0_ & 0x00000002) != 0)) {
134 size += com.google.protobuf.CodedOutputStream
135 .computeDoubleSize(2, solveUserTimeSeconds_);
137 size += getUnknownFields().getSerializedSize();
143 public boolean equals(
final java.lang.Object obj) {
147 if (!(obj instanceof com.google.ortools.linearsolver.MPSolveInfo)) {
148 return super.equals(obj);
155 != java.lang.Double.doubleToLongBits(
161 != java.lang.Double.doubleToLongBits(
164 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
170 if (memoizedHashCode != 0) {
171 return memoizedHashCode;
177 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
182 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
185 hash = (29 * hash) + getUnknownFields().hashCode();
186 memoizedHashCode = hash;
191 java.nio.ByteBuffer data)
192 throws com.google.protobuf.InvalidProtocolBufferException {
193 return PARSER.parseFrom(data);
196 java.nio.ByteBuffer data,
197 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
198 throws com.google.protobuf.InvalidProtocolBufferException {
199 return PARSER.parseFrom(data, extensionRegistry);
202 com.google.protobuf.ByteString data)
203 throws com.google.protobuf.InvalidProtocolBufferException {
204 return PARSER.parseFrom(data);
207 com.google.protobuf.ByteString data,
208 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
209 throws com.google.protobuf.InvalidProtocolBufferException {
210 return PARSER.parseFrom(data, extensionRegistry);
213 throws com.google.protobuf.InvalidProtocolBufferException {
214 return PARSER.parseFrom(data);
218 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
219 throws com.google.protobuf.InvalidProtocolBufferException {
220 return PARSER.parseFrom(data, extensionRegistry);
223 throws java.io.IOException {
224 return com.google.protobuf.GeneratedMessage
225 .parseWithIOException(PARSER, input);
228 java.io.InputStream input,
229 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
230 throws java.io.IOException {
231 return com.google.protobuf.GeneratedMessage
232 .parseWithIOException(PARSER, input, extensionRegistry);
236 throws java.io.IOException {
237 return com.google.protobuf.GeneratedMessage
238 .parseDelimitedWithIOException(PARSER, input);
242 java.io.InputStream input,
243 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
244 throws java.io.IOException {
245 return com.google.protobuf.GeneratedMessage
246 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
249 com.google.protobuf.CodedInputStream input)
250 throws java.io.IOException {
251 return com.google.protobuf.GeneratedMessage
252 .parseWithIOException(PARSER, input);
255 com.google.protobuf.CodedInputStream input,
256 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
257 throws java.io.IOException {
258 return com.google.protobuf.GeneratedMessage
259 .parseWithIOException(PARSER, input, extensionRegistry);
265 return DEFAULT_INSTANCE.toBuilder();
268 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
272 return this == DEFAULT_INSTANCE
278 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
285 public static final class Builder
extends
286 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
289 public static final com.google.protobuf.Descriptors.Descriptor
291 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSolveInfo_descriptor;
295 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
297 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSolveInfo_fieldAccessorTable
298 .ensureFieldAccessorsInitialized(
299 com.google.ortools.linearsolver.MPSolveInfo.class, com.google.ortools.linearsolver.MPSolveInfo.Builder.class);
308 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
316 solveWallTimeSeconds_ = 0D;
317 solveUserTimeSeconds_ = 0D;
322 public com.google.protobuf.Descriptors.Descriptor
324 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSolveInfo_descriptor;
329 return com.google.ortools.linearsolver.MPSolveInfo.getDefaultInstance();
336 throw newUninitializedMessageException(result);
344 if (bitField0_ != 0) { buildPartial0(result); }
349 private void buildPartial0(com.google.ortools.linearsolver.MPSolveInfo result) {
350 int from_bitField0_ = bitField0_;
351 int to_bitField0_ = 0;
352 if (((from_bitField0_ & 0x00000001) != 0)) {
353 result.solveWallTimeSeconds_ = solveWallTimeSeconds_;
354 to_bitField0_ |= 0x00000001;
356 if (((from_bitField0_ & 0x00000002) != 0)) {
357 result.solveUserTimeSeconds_ = solveUserTimeSeconds_;
358 to_bitField0_ |= 0x00000002;
360 result.bitField0_ |= to_bitField0_;
364 public Builder
mergeFrom(com.google.protobuf.Message other) {
365 if (other instanceof com.google.ortools.linearsolver.MPSolveInfo) {
366 return mergeFrom((com.google.ortools.linearsolver.MPSolveInfo)other);
368 super.mergeFrom(other);
373 public Builder
mergeFrom(com.google.ortools.linearsolver.MPSolveInfo other) {
374 if (other == com.google.ortools.linearsolver.MPSolveInfo.getDefaultInstance())
return this;
375 if (other.hasSolveWallTimeSeconds()) {
378 if (other.hasSolveUserTimeSeconds()) {
381 this.mergeUnknownFields(other.getUnknownFields());
393 com.google.protobuf.CodedInputStream input,
394 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
395 throws java.io.IOException {
396 if (extensionRegistry ==
null) {
397 throw new java.lang.NullPointerException();
400 boolean done =
false;
402 int tag = input.readTag();
408 solveWallTimeSeconds_ = input.readDouble();
409 bitField0_ |= 0x00000001;
413 solveUserTimeSeconds_ = input.readDouble();
414 bitField0_ |= 0x00000002;
418 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
425 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
426 throw e.unwrapIOException();
432 private int bitField0_;
434 private double solveWallTimeSeconds_ ;
449 return ((bitField0_ & 0x00000001) != 0);
465 return solveWallTimeSeconds_;
482 solveWallTimeSeconds_ = value;
483 bitField0_ |= 0x00000001;
500 bitField0_ = (bitField0_ & ~0x00000001);
501 solveWallTimeSeconds_ = 0D;
506 private double solveUserTimeSeconds_ ;
513 return ((bitField0_ & 0x00000002) != 0);
521 return solveUserTimeSeconds_;
530 solveUserTimeSeconds_ = value;
531 bitField0_ |= 0x00000002;
540 bitField0_ = (bitField0_ & ~0x00000002);
541 solveUserTimeSeconds_ = 0D;
552 DEFAULT_INSTANCE =
new com.google.ortools.linearsolver.MPSolveInfo();
556 return DEFAULT_INSTANCE;
559 private static final com.google.protobuf.Parser<
MPSolveInfo>
560 PARSER =
new com.google.protobuf.AbstractParser<
MPSolveInfo>() {
563 com.google.protobuf.CodedInputStream input,
564 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
565 throws com.google.protobuf.InvalidProtocolBufferException {
568 builder.mergeFrom(input, extensionRegistry);
569 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
570 throw e.setUnfinishedMessage(builder.buildPartial());
571 }
catch (com.google.protobuf.UninitializedMessageException e) {
572 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
573 }
catch (java.io.IOException e) {
574 throw new com.google.protobuf.InvalidProtocolBufferException(e)
575 .setUnfinishedMessage(builder.buildPartial());
577 return builder.buildPartial();
581 public static com.google.protobuf.Parser<MPSolveInfo>
parser() {
592 return DEFAULT_INSTANCE;