5package com.google.ortools.linearsolver;
11 com.google.protobuf.GeneratedMessageV3 implements
14private static final long serialVersionUID = 0L;
16 private MPSolveInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
23 @SuppressWarnings({
"unused"})
25 UnusedPrivateParameter unused) {
29 public static final com.google.protobuf.Descriptors.Descriptor
31 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSolveInfo_descriptor;
35 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
37 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSolveInfo_fieldAccessorTable
38 .ensureFieldAccessorsInitialized(
39 com.google.ortools.linearsolver.MPSolveInfo.class, com.google.ortools.linearsolver.MPSolveInfo.Builder.class);
42 private int bitField0_;
44 private double solveWallTimeSeconds_ = 0D;
59 return ((bitField0_ & 0x00000001) != 0);
75 return solveWallTimeSeconds_;
79 private double solveUserTimeSeconds_ = 0D;
86 return ((bitField0_ & 0x00000002) != 0);
94 return solveUserTimeSeconds_;
97 private byte memoizedIsInitialized = -1;
104 memoizedIsInitialized = 1;
109 public void writeTo(com.google.protobuf.CodedOutputStream output)
110 throws java.io.IOException {
111 if (((bitField0_ & 0x00000001) != 0)) {
112 output.writeDouble(1, solveWallTimeSeconds_);
114 if (((bitField0_ & 0x00000002) != 0)) {
115 output.writeDouble(2, solveUserTimeSeconds_);
117 getUnknownFields().writeTo(output);
122 int size = memoizedSize;
123 if (size != -1)
return size;
126 if (((bitField0_ & 0x00000001) != 0)) {
127 size += com.google.protobuf.CodedOutputStream
128 .computeDoubleSize(1, solveWallTimeSeconds_);
130 if (((bitField0_ & 0x00000002) != 0)) {
131 size += com.google.protobuf.CodedOutputStream
132 .computeDoubleSize(2, solveUserTimeSeconds_);
134 size += getUnknownFields().getSerializedSize();
140 public boolean equals(
final java.lang.Object obj) {
144 if (!(obj instanceof com.google.ortools.linearsolver.MPSolveInfo)) {
145 return super.equals(obj);
152 != java.lang.Double.doubleToLongBits(
158 != java.lang.Double.doubleToLongBits(
161 if (!getUnknownFields().equals(other.getUnknownFields()))
return false;
167 if (memoizedHashCode != 0) {
168 return memoizedHashCode;
174 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
179 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
182 hash = (29 * hash) + getUnknownFields().hashCode();
183 memoizedHashCode = hash;
188 java.nio.ByteBuffer data)
189 throws com.google.protobuf.InvalidProtocolBufferException {
193 java.nio.ByteBuffer data,
194 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
195 throws com.google.protobuf.InvalidProtocolBufferException {
199 com.google.protobuf.ByteString data)
200 throws com.google.protobuf.InvalidProtocolBufferException {
204 com.google.protobuf.ByteString data,
205 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
206 throws com.google.protobuf.InvalidProtocolBufferException {
210 throws com.google.protobuf.InvalidProtocolBufferException {
215 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
216 throws com.google.protobuf.InvalidProtocolBufferException {
220 throws java.io.IOException {
221 return com.google.protobuf.GeneratedMessageV3
222 .parseWithIOException(
PARSER, input);
225 java.io.InputStream input,
226 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
227 throws java.io.IOException {
228 return com.google.protobuf.GeneratedMessageV3
229 .parseWithIOException(
PARSER, input, extensionRegistry);
233 throws java.io.IOException {
234 return com.google.protobuf.GeneratedMessageV3
235 .parseDelimitedWithIOException(
PARSER, input);
239 java.io.InputStream input,
240 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
241 throws java.io.IOException {
242 return com.google.protobuf.GeneratedMessageV3
243 .parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
246 com.google.protobuf.CodedInputStream input)
247 throws java.io.IOException {
248 return com.google.protobuf.GeneratedMessageV3
249 .parseWithIOException(
PARSER, input);
252 com.google.protobuf.CodedInputStream input,
253 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
254 throws java.io.IOException {
255 return com.google.protobuf.GeneratedMessageV3
256 .parseWithIOException(
PARSER, input, extensionRegistry);
269 return this == DEFAULT_INSTANCE
275 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
283 com.google.protobuf.GeneratedMessageV3.
Builder<Builder> implements
286 public static final com.google.protobuf.Descriptors.Descriptor
288 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSolveInfo_descriptor;
292 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
294 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSolveInfo_fieldAccessorTable
295 .ensureFieldAccessorsInitialized(
296 com.google.ortools.linearsolver.MPSolveInfo.class, com.google.ortools.linearsolver.MPSolveInfo.Builder.class);
305 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
313 solveWallTimeSeconds_ = 0D;
314 solveUserTimeSeconds_ = 0D;
319 public com.google.protobuf.Descriptors.Descriptor
321 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSolveInfo_descriptor;
326 return com.google.ortools.linearsolver.MPSolveInfo.getDefaultInstance();
333 throw newUninitializedMessageException(result);
341 if (bitField0_ != 0) { buildPartial0(result); }
346 private void buildPartial0(com.google.ortools.linearsolver.MPSolveInfo result) {
347 int from_bitField0_ = bitField0_;
348 int to_bitField0_ = 0;
349 if (((from_bitField0_ & 0x00000001) != 0)) {
350 result.solveWallTimeSeconds_ = solveWallTimeSeconds_;
351 to_bitField0_ |= 0x00000001;
353 if (((from_bitField0_ & 0x00000002) != 0)) {
354 result.solveUserTimeSeconds_ = solveUserTimeSeconds_;
355 to_bitField0_ |= 0x00000002;
357 result.bitField0_ |= to_bitField0_;
362 return super.
clone();
366 com.google.protobuf.Descriptors.FieldDescriptor field,
367 java.lang.Object value) {
368 return super.
setField(field, value);
372 com.google.protobuf.Descriptors.FieldDescriptor field) {
377 com.google.protobuf.Descriptors.OneofDescriptor oneof) {
382 com.google.protobuf.Descriptors.FieldDescriptor field,
383 int index, java.lang.Object value) {
388 com.google.protobuf.Descriptors.FieldDescriptor field,
389 java.lang.Object value) {
394 if (other instanceof com.google.ortools.linearsolver.MPSolveInfo) {
395 return mergeFrom((com.google.ortools.linearsolver.MPSolveInfo)other);
397 super.mergeFrom(other);
403 if (other == com.google.ortools.linearsolver.MPSolveInfo.getDefaultInstance())
return this;
404 if (other.hasSolveWallTimeSeconds()) {
407 if (other.hasSolveUserTimeSeconds()) {
422 com.google.protobuf.CodedInputStream input,
423 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
424 throws java.io.IOException {
425 if (extensionRegistry ==
null) {
426 throw new java.lang.NullPointerException();
429 boolean done =
false;
431 int tag = input.readTag();
437 solveWallTimeSeconds_ = input.readDouble();
438 bitField0_ |= 0x00000001;
442 solveUserTimeSeconds_ = input.readDouble();
443 bitField0_ |= 0x00000002;
447 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
454 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
455 throw e.unwrapIOException();
461 private int bitField0_;
463 private double solveWallTimeSeconds_ ;
478 return ((bitField0_ & 0x00000001) != 0);
494 return solveWallTimeSeconds_;
511 solveWallTimeSeconds_ = value;
512 bitField0_ |= 0x00000001;
529 bitField0_ = (bitField0_ & ~0x00000001);
530 solveWallTimeSeconds_ = 0D;
535 private double solveUserTimeSeconds_ ;
542 return ((bitField0_ & 0x00000002) != 0);
550 return solveUserTimeSeconds_;
559 solveUserTimeSeconds_ = value;
560 bitField0_ |= 0x00000002;
569 bitField0_ = (bitField0_ & ~0x00000002);
570 solveUserTimeSeconds_ = 0D;
576 final com.google.protobuf.UnknownFieldSet unknownFields) {
582 final com.google.protobuf.UnknownFieldSet unknownFields) {
593 DEFAULT_INSTANCE =
new com.google.ortools.linearsolver.MPSolveInfo();
597 return DEFAULT_INSTANCE;
600 @java.lang.Deprecated
public static final com.google.protobuf.Parser<
MPSolveInfo>
604 com.google.protobuf.CodedInputStream input,
605 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
606 throws com.google.protobuf.InvalidProtocolBufferException {
609 builder.
mergeFrom(input, extensionRegistry);
610 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
612 }
catch (com.google.protobuf.UninitializedMessageException e) {
613 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.
buildPartial());
614 }
catch (java.io.IOException e) {
615 throw new com.google.protobuf.InvalidProtocolBufferException(e)
633 return DEFAULT_INSTANCE;