Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
MPSolveInfo.java
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: ortools/linear_solver/linear_solver.proto
3
4// Protobuf Java Version: 4.26.1
5package com.google.ortools.linearsolver;
6
10public final class MPSolveInfo extends
11 com.google.protobuf.GeneratedMessage implements
12 // @@protoc_insertion_point(message_implements:operations_research.MPSolveInfo)
14private static final long serialVersionUID = 0L;
15 static {
16 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
17 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
18 /* major= */ 4,
19 /* minor= */ 26,
20 /* patch= */ 1,
21 /* suffix= */ "",
22 MPSolveInfo.class.getName());
23 }
24 // Use MPSolveInfo.newBuilder() to construct.
25 private MPSolveInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
26 super(builder);
27 }
28 private MPSolveInfo() {
29 }
30
31 public static final com.google.protobuf.Descriptors.Descriptor
33 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSolveInfo_descriptor;
34 }
35
36 @java.lang.Override
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);
42 }
43
44 private int bitField0_;
45 public static final int SOLVE_WALL_TIME_SECONDS_FIELD_NUMBER = 1;
46 private double solveWallTimeSeconds_ = 0D;
59 @java.lang.Override
60 public boolean hasSolveWallTimeSeconds() {
61 return ((bitField0_ & 0x00000001) != 0);
62 }
75 @java.lang.Override
76 public double getSolveWallTimeSeconds() {
77 return solveWallTimeSeconds_;
78 }
79
80 public static final int SOLVE_USER_TIME_SECONDS_FIELD_NUMBER = 2;
81 private double solveUserTimeSeconds_ = 0D;
86 @java.lang.Override
87 public boolean hasSolveUserTimeSeconds() {
88 return ((bitField0_ & 0x00000002) != 0);
89 }
94 @java.lang.Override
95 public double getSolveUserTimeSeconds() {
96 return solveUserTimeSeconds_;
97 }
98
99 private byte memoizedIsInitialized = -1;
100 @java.lang.Override
101 public final boolean isInitialized() {
102 byte isInitialized = memoizedIsInitialized;
103 if (isInitialized == 1) return true;
104 if (isInitialized == 0) return false;
105
106 memoizedIsInitialized = 1;
107 return true;
108 }
109
110 @java.lang.Override
111 public void writeTo(com.google.protobuf.CodedOutputStream output)
112 throws java.io.IOException {
113 if (((bitField0_ & 0x00000001) != 0)) {
114 output.writeDouble(1, solveWallTimeSeconds_);
115 }
116 if (((bitField0_ & 0x00000002) != 0)) {
117 output.writeDouble(2, solveUserTimeSeconds_);
118 }
119 getUnknownFields().writeTo(output);
120 }
121
122 @java.lang.Override
123 public int getSerializedSize() {
124 int size = memoizedSize;
125 if (size != -1) return size;
126
127 size = 0;
128 if (((bitField0_ & 0x00000001) != 0)) {
129 size += com.google.protobuf.CodedOutputStream
130 .computeDoubleSize(1, solveWallTimeSeconds_);
131 }
132 if (((bitField0_ & 0x00000002) != 0)) {
133 size += com.google.protobuf.CodedOutputStream
134 .computeDoubleSize(2, solveUserTimeSeconds_);
135 }
136 size += getUnknownFields().getSerializedSize();
137 memoizedSize = size;
138 return size;
139 }
140
141 @java.lang.Override
142 public boolean equals(final java.lang.Object obj) {
143 if (obj == this) {
144 return true;
145 }
146 if (!(obj instanceof com.google.ortools.linearsolver.MPSolveInfo)) {
147 return super.equals(obj);
148 }
149 com.google.ortools.linearsolver.MPSolveInfo other = (com.google.ortools.linearsolver.MPSolveInfo) obj;
150
151 if (hasSolveWallTimeSeconds() != other.hasSolveWallTimeSeconds()) return false;
153 if (java.lang.Double.doubleToLongBits(getSolveWallTimeSeconds())
154 != java.lang.Double.doubleToLongBits(
155 other.getSolveWallTimeSeconds())) return false;
156 }
157 if (hasSolveUserTimeSeconds() != other.hasSolveUserTimeSeconds()) return false;
159 if (java.lang.Double.doubleToLongBits(getSolveUserTimeSeconds())
160 != java.lang.Double.doubleToLongBits(
161 other.getSolveUserTimeSeconds())) return false;
162 }
163 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
164 return true;
165 }
166
167 @java.lang.Override
168 public int hashCode() {
169 if (memoizedHashCode != 0) {
170 return memoizedHashCode;
171 }
172 int hash = 41;
173 hash = (19 * hash) + getDescriptor().hashCode();
175 hash = (37 * hash) + SOLVE_WALL_TIME_SECONDS_FIELD_NUMBER;
176 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
177 java.lang.Double.doubleToLongBits(getSolveWallTimeSeconds()));
178 }
180 hash = (37 * hash) + SOLVE_USER_TIME_SECONDS_FIELD_NUMBER;
181 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
182 java.lang.Double.doubleToLongBits(getSolveUserTimeSeconds()));
183 }
184 hash = (29 * hash) + getUnknownFields().hashCode();
185 memoizedHashCode = hash;
186 return hash;
187 }
188
190 java.nio.ByteBuffer data)
191 throws com.google.protobuf.InvalidProtocolBufferException {
192 return PARSER.parseFrom(data);
193 }
195 java.nio.ByteBuffer data,
196 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
197 throws com.google.protobuf.InvalidProtocolBufferException {
198 return PARSER.parseFrom(data, extensionRegistry);
199 }
201 com.google.protobuf.ByteString data)
202 throws com.google.protobuf.InvalidProtocolBufferException {
203 return PARSER.parseFrom(data);
204 }
206 com.google.protobuf.ByteString data,
207 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
208 throws com.google.protobuf.InvalidProtocolBufferException {
209 return PARSER.parseFrom(data, extensionRegistry);
210 }
212 throws com.google.protobuf.InvalidProtocolBufferException {
213 return PARSER.parseFrom(data);
214 }
216 byte[] data,
217 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
218 throws com.google.protobuf.InvalidProtocolBufferException {
219 return PARSER.parseFrom(data, extensionRegistry);
220 }
221 public static com.google.ortools.linearsolver.MPSolveInfo parseFrom(java.io.InputStream input)
222 throws java.io.IOException {
223 return com.google.protobuf.GeneratedMessage
224 .parseWithIOException(PARSER, input);
225 }
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);
232 }
233
235 throws java.io.IOException {
236 return com.google.protobuf.GeneratedMessage
237 .parseDelimitedWithIOException(PARSER, input);
238 }
239
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);
246 }
248 com.google.protobuf.CodedInputStream input)
249 throws java.io.IOException {
250 return com.google.protobuf.GeneratedMessage
251 .parseWithIOException(PARSER, input);
252 }
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);
259 }
260
261 @java.lang.Override
262 public Builder newBuilderForType() { return newBuilder(); }
263 public static Builder newBuilder() {
264 return DEFAULT_INSTANCE.toBuilder();
265 }
266 public static Builder newBuilder(com.google.ortools.linearsolver.MPSolveInfo prototype) {
267 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
268 }
269 @java.lang.Override
271 return this == DEFAULT_INSTANCE
272 ? new Builder() : new Builder().mergeFrom(this);
273 }
274
275 @java.lang.Override
277 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
278 Builder builder = new Builder(parent);
279 return builder;
280 }
284 public static final class Builder extends
285 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
286 // @@protoc_insertion_point(builder_implements:operations_research.MPSolveInfo)
287 com.google.ortools.linearsolver.MPSolveInfoOrBuilder {
288 public static final com.google.protobuf.Descriptors.Descriptor
290 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSolveInfo_descriptor;
291 }
292
293 @java.lang.Override
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);
299 }
300
301 // Construct using com.google.ortools.linearsolver.MPSolveInfo.newBuilder()
302 private Builder() {
303
304 }
305
306 private Builder(
307 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
308 super(parent);
309
310 }
311 @java.lang.Override
312 public Builder clear() {
313 super.clear();
314 bitField0_ = 0;
315 solveWallTimeSeconds_ = 0D;
316 solveUserTimeSeconds_ = 0D;
317 return this;
318 }
319
320 @java.lang.Override
321 public com.google.protobuf.Descriptors.Descriptor
323 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSolveInfo_descriptor;
324 }
325
326 @java.lang.Override
328 return com.google.ortools.linearsolver.MPSolveInfo.getDefaultInstance();
329 }
330
331 @java.lang.Override
334 if (!result.isInitialized()) {
335 throw newUninitializedMessageException(result);
336 }
337 return result;
338 }
339
340 @java.lang.Override
342 com.google.ortools.linearsolver.MPSolveInfo result = new com.google.ortools.linearsolver.MPSolveInfo(this);
343 if (bitField0_ != 0) { buildPartial0(result); }
344 onBuilt();
345 return result;
346 }
347
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;
354 }
355 if (((from_bitField0_ & 0x00000002) != 0)) {
356 result.solveUserTimeSeconds_ = solveUserTimeSeconds_;
357 to_bitField0_ |= 0x00000002;
358 }
359 result.bitField0_ |= to_bitField0_;
360 }
361
362 @java.lang.Override
363 public Builder mergeFrom(com.google.protobuf.Message other) {
364 if (other instanceof com.google.ortools.linearsolver.MPSolveInfo) {
365 return mergeFrom((com.google.ortools.linearsolver.MPSolveInfo)other);
366 } else {
367 super.mergeFrom(other);
368 return this;
369 }
370 }
371
372 public Builder mergeFrom(com.google.ortools.linearsolver.MPSolveInfo other) {
373 if (other == com.google.ortools.linearsolver.MPSolveInfo.getDefaultInstance()) return this;
374 if (other.hasSolveWallTimeSeconds()) {
375 setSolveWallTimeSeconds(other.getSolveWallTimeSeconds());
376 }
377 if (other.hasSolveUserTimeSeconds()) {
378 setSolveUserTimeSeconds(other.getSolveUserTimeSeconds());
379 }
380 this.mergeUnknownFields(other.getUnknownFields());
381 onChanged();
382 return this;
383 }
384
385 @java.lang.Override
386 public final boolean isInitialized() {
387 return true;
388 }
389
390 @java.lang.Override
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();
397 }
398 try {
399 boolean done = false;
400 while (!done) {
401 int tag = input.readTag();
402 switch (tag) {
403 case 0:
404 done = true;
405 break;
406 case 9: {
407 solveWallTimeSeconds_ = input.readDouble();
408 bitField0_ |= 0x00000001;
409 break;
410 } // case 9
411 case 17: {
412 solveUserTimeSeconds_ = input.readDouble();
413 bitField0_ |= 0x00000002;
414 break;
415 } // case 17
416 default: {
417 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
418 done = true; // was an endgroup tag
419 }
420 break;
421 } // default:
422 } // switch (tag)
423 } // while (!done)
424 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
425 throw e.unwrapIOException();
426 } finally {
427 onChanged();
428 } // finally
429 return this;
430 }
431 private int bitField0_;
432
433 private double solveWallTimeSeconds_ ;
446 @java.lang.Override
447 public boolean hasSolveWallTimeSeconds() {
448 return ((bitField0_ & 0x00000001) != 0);
449 }
462 @java.lang.Override
463 public double getSolveWallTimeSeconds() {
464 return solveWallTimeSeconds_;
465 }
479 public Builder setSolveWallTimeSeconds(double value) {
480
481 solveWallTimeSeconds_ = value;
482 bitField0_ |= 0x00000001;
483 onChanged();
484 return this;
485 }
499 bitField0_ = (bitField0_ & ~0x00000001);
500 solveWallTimeSeconds_ = 0D;
501 onChanged();
502 return this;
503 }
504
505 private double solveUserTimeSeconds_ ;
510 @java.lang.Override
511 public boolean hasSolveUserTimeSeconds() {
512 return ((bitField0_ & 0x00000002) != 0);
513 }
518 @java.lang.Override
519 public double getSolveUserTimeSeconds() {
520 return solveUserTimeSeconds_;
521 }
527 public Builder setSolveUserTimeSeconds(double value) {
528
529 solveUserTimeSeconds_ = value;
530 bitField0_ |= 0x00000002;
531 onChanged();
532 return this;
533 }
539 bitField0_ = (bitField0_ & ~0x00000002);
540 solveUserTimeSeconds_ = 0D;
541 onChanged();
542 return this;
543 }
544
545 // @@protoc_insertion_point(builder_scope:operations_research.MPSolveInfo)
546 }
547
548 // @@protoc_insertion_point(class_scope:operations_research.MPSolveInfo)
549 private static final com.google.ortools.linearsolver.MPSolveInfo DEFAULT_INSTANCE;
550 static {
551 DEFAULT_INSTANCE = new com.google.ortools.linearsolver.MPSolveInfo();
552 }
553
555 return DEFAULT_INSTANCE;
556 }
557
558 private static final com.google.protobuf.Parser<MPSolveInfo>
559 PARSER = new com.google.protobuf.AbstractParser<MPSolveInfo>() {
560 @java.lang.Override
561 public MPSolveInfo parsePartialFrom(
562 com.google.protobuf.CodedInputStream input,
563 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
564 throws com.google.protobuf.InvalidProtocolBufferException {
565 Builder builder = newBuilder();
566 try {
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());
575 }
576 return builder.buildPartial();
577 }
578 };
579
580 public static com.google.protobuf.Parser<MPSolveInfo> parser() {
581 return PARSER;
582 }
583
584 @java.lang.Override
585 public com.google.protobuf.Parser<MPSolveInfo> getParserForType() {
586 return PARSER;
587 }
588
589 @java.lang.Override
591 return DEFAULT_INSTANCE;
592 }
593
594}
595
com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
com.google.ortools.linearsolver.MPSolveInfo buildPartial()
Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.linearsolver.MPSolveInfo getDefaultInstanceForType()
com.google.ortools.linearsolver.MPSolveInfo build()
Builder mergeFrom(com.google.protobuf.Message other)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Builder mergeFrom(com.google.ortools.linearsolver.MPSolveInfo other)
Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
static com.google.ortools.linearsolver.MPSolveInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.linearsolver.MPSolveInfo parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.linearsolver.MPSolveInfo parseFrom(java.io.InputStream input)
static com.google.ortools.linearsolver.MPSolveInfo parseFrom(com.google.protobuf.CodedInputStream input)
boolean equals(final java.lang.Object obj)
static com.google.ortools.linearsolver.MPSolveInfo parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.protobuf.Parser< MPSolveInfo > getParserForType()
static com.google.ortools.linearsolver.MPSolveInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
void writeTo(com.google.protobuf.CodedOutputStream output)
static com.google.ortools.linearsolver.MPSolveInfo getDefaultInstance()
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
static com.google.ortools.linearsolver.MPSolveInfo parseFrom(java.nio.ByteBuffer data)
static com.google.ortools.linearsolver.MPSolveInfo parseFrom(byte[] data)
com.google.ortools.linearsolver.MPSolveInfo getDefaultInstanceForType()
static com.google.ortools.linearsolver.MPSolveInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.linearsolver.MPSolveInfo parseDelimitedFrom(java.io.InputStream input)
static com.google.ortools.linearsolver.MPSolveInfo parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
static com.google.ortools.linearsolver.MPSolveInfo parseFrom(com.google.protobuf.ByteString data)
static Builder newBuilder(com.google.ortools.linearsolver.MPSolveInfo prototype)
static com.google.protobuf.Parser< MPSolveInfo > parser()