5package com.google.ortools.linearsolver;
11 com.google.protobuf.GeneratedMessage implements
14private static final long serialVersionUID = 0L;
16 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
17 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
25 private MPSolveInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
31 public static final com.google.protobuf.Descriptors.Descriptor
33 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSolveInfo_descriptor;
37 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
39 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSolveInfo_fieldAccessorTable
40 .ensureFieldAccessorsInitialized(
41 com.google.ortools.linearsolver.MPSolveInfo.class, com.google.ortools.linearsolver.MPSolveInfo.Builder.class);
44 private int bitField0_;
46 private double solveWallTimeSeconds_ = 0D;
61 return ((bitField0_ & 0x00000001) != 0);
77 return solveWallTimeSeconds_;
81 private double solveUserTimeSeconds_ = 0D;
88 return ((bitField0_ & 0x00000002) != 0);
96 return solveUserTimeSeconds_;
99 private byte memoizedIsInitialized = -1;
106 memoizedIsInitialized = 1;
111 public void writeTo(com.google.protobuf.CodedOutputStream output)
112 throws java.io.IOException {
113 if (((bitField0_ & 0x00000001) != 0)) {
114 output.writeDouble(1, solveWallTimeSeconds_);
116 if (((bitField0_ & 0x00000002) != 0)) {
117 output.writeDouble(2, solveUserTimeSeconds_);
119 getUnknownFields().writeTo(output);
124 int size = memoizedSize;
125 if (size != -1)
return size;
128 if (((bitField0_ & 0x00000001) != 0)) {
129 size += com.google.protobuf.CodedOutputStream
130 .computeDoubleSize(1, solveWallTimeSeconds_);
132 if (((bitField0_ & 0x00000002) != 0)) {
133 size += com.google.protobuf.CodedOutputStream
134 .computeDoubleSize(2, solveUserTimeSeconds_);
136 size += getUnknownFields().getSerializedSize();
142 public boolean equals(
final java.lang.Object obj) {
146 if (!(obj instanceof com.google.ortools.linearsolver.MPSolveInfo)) {
147 return super.equals(obj);
154 != java.lang.Double.doubleToLongBits(
160 != java.lang.Double.doubleToLongBits(
163 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
169 if (memoizedHashCode != 0) {
170 return memoizedHashCode;
176 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
181 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
184 hash = (29 * hash) + getUnknownFields().hashCode();
185 memoizedHashCode = hash;
190 java.nio.ByteBuffer data)
191 throws com.google.protobuf.InvalidProtocolBufferException {
192 return PARSER.parseFrom(data);
195 java.nio.ByteBuffer data,
196 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
197 throws com.google.protobuf.InvalidProtocolBufferException {
198 return PARSER.parseFrom(data, extensionRegistry);
201 com.google.protobuf.ByteString data)
202 throws com.google.protobuf.InvalidProtocolBufferException {
203 return PARSER.parseFrom(data);
206 com.google.protobuf.ByteString data,
207 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
208 throws com.google.protobuf.InvalidProtocolBufferException {
209 return PARSER.parseFrom(data, extensionRegistry);
212 throws com.google.protobuf.InvalidProtocolBufferException {
213 return PARSER.parseFrom(data);
217 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
218 throws com.google.protobuf.InvalidProtocolBufferException {
219 return PARSER.parseFrom(data, extensionRegistry);
222 throws java.io.IOException {
223 return com.google.protobuf.GeneratedMessage
224 .parseWithIOException(PARSER, input);
227 java.io.InputStream input,
228 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
229 throws java.io.IOException {
230 return com.google.protobuf.GeneratedMessage
231 .parseWithIOException(PARSER, input, extensionRegistry);
235 throws java.io.IOException {
236 return com.google.protobuf.GeneratedMessage
237 .parseDelimitedWithIOException(PARSER, input);
241 java.io.InputStream input,
242 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
243 throws java.io.IOException {
244 return com.google.protobuf.GeneratedMessage
245 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
248 com.google.protobuf.CodedInputStream input)
249 throws java.io.IOException {
250 return com.google.protobuf.GeneratedMessage
251 .parseWithIOException(PARSER, input);
254 com.google.protobuf.CodedInputStream input,
255 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
256 throws java.io.IOException {
257 return com.google.protobuf.GeneratedMessage
258 .parseWithIOException(PARSER, input, extensionRegistry);
271 return this == DEFAULT_INSTANCE
277 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
285 com.google.protobuf.GeneratedMessage.
Builder<Builder> implements
288 public static final com.google.protobuf.Descriptors.Descriptor
290 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSolveInfo_descriptor;
294 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
296 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSolveInfo_fieldAccessorTable
297 .ensureFieldAccessorsInitialized(
298 com.google.ortools.linearsolver.MPSolveInfo.class, com.google.ortools.linearsolver.MPSolveInfo.Builder.class);
307 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
315 solveWallTimeSeconds_ = 0D;
316 solveUserTimeSeconds_ = 0D;
321 public com.google.protobuf.Descriptors.Descriptor
323 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSolveInfo_descriptor;
328 return com.google.ortools.linearsolver.MPSolveInfo.getDefaultInstance();
335 throw newUninitializedMessageException(result);
343 if (bitField0_ != 0) { buildPartial0(result); }
348 private void buildPartial0(com.google.ortools.linearsolver.MPSolveInfo result) {
349 int from_bitField0_ = bitField0_;
350 int to_bitField0_ = 0;
351 if (((from_bitField0_ & 0x00000001) != 0)) {
352 result.solveWallTimeSeconds_ = solveWallTimeSeconds_;
353 to_bitField0_ |= 0x00000001;
355 if (((from_bitField0_ & 0x00000002) != 0)) {
356 result.solveUserTimeSeconds_ = solveUserTimeSeconds_;
357 to_bitField0_ |= 0x00000002;
359 result.bitField0_ |= to_bitField0_;
364 if (other instanceof com.google.ortools.linearsolver.MPSolveInfo) {
365 return mergeFrom((com.google.ortools.linearsolver.MPSolveInfo)other);
367 super.mergeFrom(other);
373 if (other == com.google.ortools.linearsolver.MPSolveInfo.getDefaultInstance())
return this;
374 if (other.hasSolveWallTimeSeconds()) {
377 if (other.hasSolveUserTimeSeconds()) {
380 this.mergeUnknownFields(other.getUnknownFields());
392 com.google.protobuf.CodedInputStream input,
393 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
394 throws java.io.IOException {
395 if (extensionRegistry ==
null) {
396 throw new java.lang.NullPointerException();
399 boolean done =
false;
401 int tag = input.readTag();
407 solveWallTimeSeconds_ = input.readDouble();
408 bitField0_ |= 0x00000001;
412 solveUserTimeSeconds_ = input.readDouble();
413 bitField0_ |= 0x00000002;
417 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
424 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
425 throw e.unwrapIOException();
431 private int bitField0_;
433 private double solveWallTimeSeconds_ ;
448 return ((bitField0_ & 0x00000001) != 0);
464 return solveWallTimeSeconds_;
481 solveWallTimeSeconds_ = value;
482 bitField0_ |= 0x00000001;
499 bitField0_ = (bitField0_ & ~0x00000001);
500 solveWallTimeSeconds_ = 0D;
505 private double solveUserTimeSeconds_ ;
512 return ((bitField0_ & 0x00000002) != 0);
520 return solveUserTimeSeconds_;
529 solveUserTimeSeconds_ = value;
530 bitField0_ |= 0x00000002;
539 bitField0_ = (bitField0_ & ~0x00000002);
540 solveUserTimeSeconds_ = 0D;
551 DEFAULT_INSTANCE =
new com.google.ortools.linearsolver.MPSolveInfo();
555 return DEFAULT_INSTANCE;
558 private static final com.google.protobuf.Parser<
MPSolveInfo>
559 PARSER =
new com.google.protobuf.AbstractParser<
MPSolveInfo>() {
562 com.google.protobuf.CodedInputStream input,
563 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
564 throws com.google.protobuf.InvalidProtocolBufferException {
567 builder.mergeFrom(input, extensionRegistry);
568 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
569 throw e.setUnfinishedMessage(builder.buildPartial());
570 }
catch (com.google.protobuf.UninitializedMessageException e) {
571 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
572 }
catch (java.io.IOException e) {
573 throw new com.google.protobuf.InvalidProtocolBufferException(e)
574 .setUnfinishedMessage(builder.buildPartial());
576 return builder.buildPartial();
591 return DEFAULT_INSTANCE;