Java Reference

Java Reference

MPSolution.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
4package com.google.ortools.linearsolver;
5
9public final class MPSolution extends
10 com.google.protobuf.GeneratedMessageV3 implements
11 // @@protoc_insertion_point(message_implements:operations_research.MPSolution)
13private static final long serialVersionUID = 0L;
14 // Use MPSolution.newBuilder() to construct.
15 private MPSolution(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
16 super(builder);
17 }
18 private MPSolution() {
19 variableValue_ = emptyDoubleList();
20 }
21
22 @java.lang.Override
23 @SuppressWarnings({"unused"})
24 protected java.lang.Object newInstance(
25 UnusedPrivateParameter unused) {
26 return new MPSolution();
27 }
28
29 @java.lang.Override
30 public final com.google.protobuf.UnknownFieldSet
32 return this.unknownFields;
33 }
34 private MPSolution(
35 com.google.protobuf.CodedInputStream input,
36 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
37 throws com.google.protobuf.InvalidProtocolBufferException {
38 this();
39 if (extensionRegistry == null) {
40 throw new java.lang.NullPointerException();
41 }
42 int mutable_bitField0_ = 0;
43 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
44 com.google.protobuf.UnknownFieldSet.newBuilder();
45 try {
46 boolean done = false;
47 while (!done) {
48 int tag = input.readTag();
49 switch (tag) {
50 case 0:
51 done = true;
52 break;
53 case 9: {
54 bitField0_ |= 0x00000001;
55 objectiveValue_ = input.readDouble();
56 break;
57 }
58 case 17: {
59 if (!((mutable_bitField0_ & 0x00000002) != 0)) {
60 variableValue_ = newDoubleList();
61 mutable_bitField0_ |= 0x00000002;
62 }
63 variableValue_.addDouble(input.readDouble());
64 break;
65 }
66 case 18: {
67 int length = input.readRawVarint32();
68 int limit = input.pushLimit(length);
69 if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
70 variableValue_ = newDoubleList();
71 mutable_bitField0_ |= 0x00000002;
72 }
73 while (input.getBytesUntilLimit() > 0) {
74 variableValue_.addDouble(input.readDouble());
75 }
76 input.popLimit(limit);
77 break;
78 }
79 default: {
80 if (!parseUnknownField(
81 input, unknownFields, extensionRegistry, tag)) {
82 done = true;
83 }
84 break;
85 }
86 }
87 }
88 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
89 throw e.setUnfinishedMessage(this);
90 } catch (java.io.IOException e) {
91 throw new com.google.protobuf.InvalidProtocolBufferException(
92 e).setUnfinishedMessage(this);
93 } finally {
94 if (((mutable_bitField0_ & 0x00000002) != 0)) {
95 variableValue_.makeImmutable(); // C
96 }
97 this.unknownFields = unknownFields.build();
98 makeExtensionsImmutable();
99 }
100 }
101 public static final com.google.protobuf.Descriptors.Descriptor
103 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSolution_descriptor;
104 }
105
106 @java.lang.Override
107 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
109 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSolution_fieldAccessorTable
110 .ensureFieldAccessorsInitialized(
111 com.google.ortools.linearsolver.MPSolution.class, com.google.ortools.linearsolver.MPSolution.Builder.class);
112 }
113
114 private int bitField0_;
115 public static final int OBJECTIVE_VALUE_FIELD_NUMBER = 1;
116 private double objectiveValue_;
121 @java.lang.Override
122 public boolean hasObjectiveValue() {
123 return ((bitField0_ & 0x00000001) != 0);
124 }
129 @java.lang.Override
130 public double getObjectiveValue() {
131 return objectiveValue_;
132 }
133
134 public static final int VARIABLE_VALUE_FIELD_NUMBER = 2;
135 private com.google.protobuf.Internal.DoubleList variableValue_;
140 @java.lang.Override
141 public java.util.List<java.lang.Double>
143 return variableValue_;
144 }
150 return variableValue_.size();
151 }
157 public double getVariableValue(int index) {
158 return variableValue_.getDouble(index);
159 }
160 private int variableValueMemoizedSerializedSize = -1;
161
162 private byte memoizedIsInitialized = -1;
163 @java.lang.Override
164 public final boolean isInitialized() {
165 byte isInitialized = memoizedIsInitialized;
166 if (isInitialized == 1) return true;
167 if (isInitialized == 0) return false;
168
169 memoizedIsInitialized = 1;
170 return true;
171 }
172
173 @java.lang.Override
174 public void writeTo(com.google.protobuf.CodedOutputStream output)
175 throws java.io.IOException {
177 if (((bitField0_ & 0x00000001) != 0)) {
178 output.writeDouble(1, objectiveValue_);
179 }
180 if (getVariableValueList().size() > 0) {
181 output.writeUInt32NoTag(18);
182 output.writeUInt32NoTag(variableValueMemoizedSerializedSize);
183 }
184 for (int i = 0; i < variableValue_.size(); i++) {
185 output.writeDoubleNoTag(variableValue_.getDouble(i));
186 }
187 unknownFields.writeTo(output);
188 }
189
190 @java.lang.Override
191 public int getSerializedSize() {
192 int size = memoizedSize;
193 if (size != -1) return size;
194
195 size = 0;
196 if (((bitField0_ & 0x00000001) != 0)) {
197 size += com.google.protobuf.CodedOutputStream
198 .computeDoubleSize(1, objectiveValue_);
199 }
200 {
201 int dataSize = 0;
202 dataSize = 8 * getVariableValueList().size();
203 size += dataSize;
204 if (!getVariableValueList().isEmpty()) {
205 size += 1;
206 size += com.google.protobuf.CodedOutputStream
207 .computeInt32SizeNoTag(dataSize);
208 }
209 variableValueMemoizedSerializedSize = dataSize;
210 }
211 size += unknownFields.getSerializedSize();
212 memoizedSize = size;
213 return size;
214 }
215
216 @java.lang.Override
217 public boolean equals(final java.lang.Object obj) {
218 if (obj == this) {
219 return true;
220 }
221 if (!(obj instanceof com.google.ortools.linearsolver.MPSolution)) {
222 return super.equals(obj);
223 }
224 com.google.ortools.linearsolver.MPSolution other = (com.google.ortools.linearsolver.MPSolution) obj;
225
226 if (hasObjectiveValue() != other.hasObjectiveValue()) return false;
227 if (hasObjectiveValue()) {
228 if (java.lang.Double.doubleToLongBits(getObjectiveValue())
229 != java.lang.Double.doubleToLongBits(
230 other.getObjectiveValue())) return false;
231 }
233 .equals(other.getVariableValueList())) return false;
234 if (!unknownFields.equals(other.unknownFields)) return false;
235 return true;
236 }
237
238 @java.lang.Override
239 public int hashCode() {
240 if (memoizedHashCode != 0) {
241 return memoizedHashCode;
242 }
243 int hash = 41;
244 hash = (19 * hash) + getDescriptor().hashCode();
245 if (hasObjectiveValue()) {
246 hash = (37 * hash) + OBJECTIVE_VALUE_FIELD_NUMBER;
247 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
248 java.lang.Double.doubleToLongBits(getObjectiveValue()));
249 }
250 if (getVariableValueCount() > 0) {
251 hash = (37 * hash) + VARIABLE_VALUE_FIELD_NUMBER;
252 hash = (53 * hash) + getVariableValueList().hashCode();
253 }
254 hash = (29 * hash) + unknownFields.hashCode();
255 memoizedHashCode = hash;
256 return hash;
257 }
258
259 public static com.google.ortools.linearsolver.MPSolution parseFrom(
260 java.nio.ByteBuffer data)
261 throws com.google.protobuf.InvalidProtocolBufferException {
262 return PARSER.parseFrom(data);
263 }
264 public static com.google.ortools.linearsolver.MPSolution parseFrom(
265 java.nio.ByteBuffer data,
266 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
267 throws com.google.protobuf.InvalidProtocolBufferException {
268 return PARSER.parseFrom(data, extensionRegistry);
269 }
270 public static com.google.ortools.linearsolver.MPSolution parseFrom(
271 com.google.protobuf.ByteString data)
272 throws com.google.protobuf.InvalidProtocolBufferException {
273 return PARSER.parseFrom(data);
274 }
275 public static com.google.ortools.linearsolver.MPSolution parseFrom(
276 com.google.protobuf.ByteString data,
277 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
278 throws com.google.protobuf.InvalidProtocolBufferException {
279 return PARSER.parseFrom(data, extensionRegistry);
280 }
281 public static com.google.ortools.linearsolver.MPSolution parseFrom(byte[] data)
282 throws com.google.protobuf.InvalidProtocolBufferException {
283 return PARSER.parseFrom(data);
284 }
285 public static com.google.ortools.linearsolver.MPSolution parseFrom(
286 byte[] data,
287 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
288 throws com.google.protobuf.InvalidProtocolBufferException {
289 return PARSER.parseFrom(data, extensionRegistry);
290 }
291 public static com.google.ortools.linearsolver.MPSolution parseFrom(java.io.InputStream input)
292 throws java.io.IOException {
293 return com.google.protobuf.GeneratedMessageV3
294 .parseWithIOException(PARSER, input);
295 }
296 public static com.google.ortools.linearsolver.MPSolution parseFrom(
297 java.io.InputStream input,
298 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
299 throws java.io.IOException {
300 return com.google.protobuf.GeneratedMessageV3
301 .parseWithIOException(PARSER, input, extensionRegistry);
302 }
303 public static com.google.ortools.linearsolver.MPSolution parseDelimitedFrom(java.io.InputStream input)
304 throws java.io.IOException {
305 return com.google.protobuf.GeneratedMessageV3
306 .parseDelimitedWithIOException(PARSER, input);
307 }
308 public static com.google.ortools.linearsolver.MPSolution parseDelimitedFrom(
309 java.io.InputStream input,
310 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
311 throws java.io.IOException {
312 return com.google.protobuf.GeneratedMessageV3
313 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
314 }
315 public static com.google.ortools.linearsolver.MPSolution parseFrom(
316 com.google.protobuf.CodedInputStream input)
317 throws java.io.IOException {
318 return com.google.protobuf.GeneratedMessageV3
319 .parseWithIOException(PARSER, input);
320 }
321 public static com.google.ortools.linearsolver.MPSolution parseFrom(
322 com.google.protobuf.CodedInputStream input,
323 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
324 throws java.io.IOException {
325 return com.google.protobuf.GeneratedMessageV3
326 .parseWithIOException(PARSER, input, extensionRegistry);
327 }
328
329 @java.lang.Override
330 public Builder newBuilderForType() { return newBuilder(); }
331 public static Builder newBuilder() {
332 return DEFAULT_INSTANCE.toBuilder();
333 }
334 public static Builder newBuilder(com.google.ortools.linearsolver.MPSolution prototype) {
335 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
336 }
337 @java.lang.Override
339 return this == DEFAULT_INSTANCE
340 ? new Builder() : new Builder().mergeFrom(this);
341 }
342
343 @java.lang.Override
345 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
346 Builder builder = new Builder(parent);
347 return builder;
348 }
352 public static final class Builder extends
353 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
354 // @@protoc_insertion_point(builder_implements:operations_research.MPSolution)
355 com.google.ortools.linearsolver.MPSolutionOrBuilder {
356 public static final com.google.protobuf.Descriptors.Descriptor
358 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSolution_descriptor;
359 }
360
361 @java.lang.Override
362 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
364 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSolution_fieldAccessorTable
365 .ensureFieldAccessorsInitialized(
366 com.google.ortools.linearsolver.MPSolution.class, com.google.ortools.linearsolver.MPSolution.Builder.class);
367 }
368
369 // Construct using com.google.ortools.linearsolver.MPSolution.newBuilder()
370 private Builder() {
371 maybeForceBuilderInitialization();
372 }
373
374 private Builder(
375 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
376 super(parent);
377 maybeForceBuilderInitialization();
378 }
379 private void maybeForceBuilderInitialization() {
380 if (com.google.protobuf.GeneratedMessageV3
381 .alwaysUseFieldBuilders) {
382 }
383 }
384 @java.lang.Override
385 public Builder clear() {
386 super.clear();
387 objectiveValue_ = 0D;
388 bitField0_ = (bitField0_ & ~0x00000001);
389 variableValue_ = emptyDoubleList();
390 bitField0_ = (bitField0_ & ~0x00000002);
391 return this;
392 }
393
394 @java.lang.Override
395 public com.google.protobuf.Descriptors.Descriptor
397 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPSolution_descriptor;
398 }
399
400 @java.lang.Override
401 public com.google.ortools.linearsolver.MPSolution getDefaultInstanceForType() {
402 return com.google.ortools.linearsolver.MPSolution.getDefaultInstance();
403 }
404
405 @java.lang.Override
406 public com.google.ortools.linearsolver.MPSolution build() {
407 com.google.ortools.linearsolver.MPSolution result = buildPartial();
408 if (!result.isInitialized()) {
409 throw newUninitializedMessageException(result);
410 }
411 return result;
412 }
413
414 @java.lang.Override
415 public com.google.ortools.linearsolver.MPSolution buildPartial() {
416 com.google.ortools.linearsolver.MPSolution result = new com.google.ortools.linearsolver.MPSolution(this);
417 int from_bitField0_ = bitField0_;
418 int to_bitField0_ = 0;
419 if (((from_bitField0_ & 0x00000001) != 0)) {
420 result.objectiveValue_ = objectiveValue_;
421 to_bitField0_ |= 0x00000001;
422 }
423 if (((bitField0_ & 0x00000002) != 0)) {
424 variableValue_.makeImmutable();
425 bitField0_ = (bitField0_ & ~0x00000002);
426 }
427 result.variableValue_ = variableValue_;
428 result.bitField0_ = to_bitField0_;
429 onBuilt();
430 return result;
431 }
432
433 @java.lang.Override
434 public Builder clone() {
435 return super.clone();
436 }
437 @java.lang.Override
439 com.google.protobuf.Descriptors.FieldDescriptor field,
440 java.lang.Object value) {
441 return super.setField(field, value);
442 }
443 @java.lang.Override
445 com.google.protobuf.Descriptors.FieldDescriptor field) {
446 return super.clearField(field);
447 }
448 @java.lang.Override
450 com.google.protobuf.Descriptors.OneofDescriptor oneof) {
451 return super.clearOneof(oneof);
452 }
453 @java.lang.Override
455 com.google.protobuf.Descriptors.FieldDescriptor field,
456 int index, java.lang.Object value) {
457 return super.setRepeatedField(field, index, value);
458 }
459 @java.lang.Override
461 com.google.protobuf.Descriptors.FieldDescriptor field,
462 java.lang.Object value) {
463 return super.addRepeatedField(field, value);
464 }
465 @java.lang.Override
466 public Builder mergeFrom(com.google.protobuf.Message other) {
467 if (other instanceof com.google.ortools.linearsolver.MPSolution) {
468 return mergeFrom((com.google.ortools.linearsolver.MPSolution)other);
469 } else {
470 super.mergeFrom(other);
471 return this;
472 }
473 }
474
475 public Builder mergeFrom(com.google.ortools.linearsolver.MPSolution other) {
476 if (other == com.google.ortools.linearsolver.MPSolution.getDefaultInstance()) return this;
477 if (other.hasObjectiveValue()) {
478 setObjectiveValue(other.getObjectiveValue());
479 }
480 if (!other.variableValue_.isEmpty()) {
481 if (variableValue_.isEmpty()) {
482 variableValue_ = other.variableValue_;
483 bitField0_ = (bitField0_ & ~0x00000002);
484 } else {
485 ensureVariableValueIsMutable();
486 variableValue_.addAll(other.variableValue_);
487 }
488 onChanged();
489 }
490 this.mergeUnknownFields(other.unknownFields);
491 onChanged();
492 return this;
493 }
494
495 @java.lang.Override
496 public final boolean isInitialized() {
497 return true;
498 }
499
500 @java.lang.Override
502 com.google.protobuf.CodedInputStream input,
503 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
504 throws java.io.IOException {
505 com.google.ortools.linearsolver.MPSolution parsedMessage = null;
506 try {
507 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
508 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
509 parsedMessage = (com.google.ortools.linearsolver.MPSolution) e.getUnfinishedMessage();
510 throw e.unwrapIOException();
511 } finally {
512 if (parsedMessage != null) {
513 mergeFrom(parsedMessage);
514 }
515 }
516 return this;
517 }
518 private int bitField0_;
519
520 private double objectiveValue_ ;
525 @java.lang.Override
526 public boolean hasObjectiveValue() {
527 return ((bitField0_ & 0x00000001) != 0);
528 }
533 @java.lang.Override
534 public double getObjectiveValue() {
535 return objectiveValue_;
536 }
542 public Builder setObjectiveValue(double value) {
543 bitField0_ |= 0x00000001;
544 objectiveValue_ = value;
545 onChanged();
546 return this;
547 }
553 bitField0_ = (bitField0_ & ~0x00000001);
554 objectiveValue_ = 0D;
555 onChanged();
556 return this;
557 }
558
559 private com.google.protobuf.Internal.DoubleList variableValue_ = emptyDoubleList();
560 private void ensureVariableValueIsMutable() {
561 if (!((bitField0_ & 0x00000002) != 0)) {
562 variableValue_ = mutableCopy(variableValue_);
563 bitField0_ |= 0x00000002;
564 }
565 }
570 public java.util.List<java.lang.Double>
572 return ((bitField0_ & 0x00000002) != 0) ?
573 java.util.Collections.unmodifiableList(variableValue_) : variableValue_;
574 }
580 return variableValue_.size();
581 }
587 public double getVariableValue(int index) {
588 return variableValue_.getDouble(index);
589 }
597 int index, double value) {
598 ensureVariableValueIsMutable();
599 variableValue_.setDouble(index, value);
600 onChanged();
601 return this;
602 }
608 public Builder addVariableValue(double value) {
609 ensureVariableValueIsMutable();
610 variableValue_.addDouble(value);
611 onChanged();
612 return this;
613 }
620 java.lang.Iterable<? extends java.lang.Double> values) {
621 ensureVariableValueIsMutable();
622 com.google.protobuf.AbstractMessageLite.Builder.addAll(
623 values, variableValue_);
624 onChanged();
625 return this;
626 }
632 variableValue_ = emptyDoubleList();
633 bitField0_ = (bitField0_ & ~0x00000002);
634 onChanged();
635 return this;
636 }
637 @java.lang.Override
639 final com.google.protobuf.UnknownFieldSet unknownFields) {
640 return super.setUnknownFields(unknownFields);
641 }
642
643 @java.lang.Override
645 final com.google.protobuf.UnknownFieldSet unknownFields) {
646 return super.mergeUnknownFields(unknownFields);
647 }
648
649
650 // @@protoc_insertion_point(builder_scope:operations_research.MPSolution)
651 }
652
653 // @@protoc_insertion_point(class_scope:operations_research.MPSolution)
654 private static final com.google.ortools.linearsolver.MPSolution DEFAULT_INSTANCE;
655 static {
656 DEFAULT_INSTANCE = new com.google.ortools.linearsolver.MPSolution();
657 }
658
659 public static com.google.ortools.linearsolver.MPSolution getDefaultInstance() {
660 return DEFAULT_INSTANCE;
661 }
662
663 @java.lang.Deprecated public static final com.google.protobuf.Parser<MPSolution>
664 PARSER = new com.google.protobuf.AbstractParser<MPSolution>() {
665 @java.lang.Override
666 public MPSolution parsePartialFrom(
667 com.google.protobuf.CodedInputStream input,
668 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
669 throws com.google.protobuf.InvalidProtocolBufferException {
670 return new MPSolution(input, extensionRegistry);
671 }
672 };
673
674 public static com.google.protobuf.Parser<MPSolution> parser() {
675 return PARSER;
676 }
677
678 @java.lang.Override
679 public com.google.protobuf.Parser<MPSolution> getParserForType() {
680 return PARSER;
681 }
682
683 @java.lang.Override
684 public com.google.ortools.linearsolver.MPSolution getDefaultInstanceForType() {
685 return DEFAULT_INSTANCE;
686 }
687
688}
689
Protobuf type operations_research.MPSolution @endiliteral.
final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
Builder setObjectiveValue(double value)
optional double objective_value = 1;
Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
double getObjectiveValue()
optional double objective_value = 1;
Builder clearObjectiveValue()
optional double objective_value = 1;
com.google.ortools.linearsolver.MPSolution build()
com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
Builder clearVariableValue()
repeated double variable_value = 2 [packed = true];
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Builder addAllVariableValue(java.lang.Iterable<? extends java.lang.Double > values)
repeated double variable_value = 2 [packed = true];
Builder setVariableValue(int index, double value)
repeated double variable_value = 2 [packed = true];
Builder mergeFrom(com.google.protobuf.Message other)
boolean hasObjectiveValue()
optional double objective_value = 1;
double getVariableValue(int index)
repeated double variable_value = 2 [packed = true];
Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
Builder mergeFrom(com.google.ortools.linearsolver.MPSolution other)
Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
int getVariableValueCount()
repeated double variable_value = 2 [packed = true];
Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
java.util.List< java.lang.Double > getVariableValueList()
repeated double variable_value = 2 [packed = true];
com.google.ortools.linearsolver.MPSolution getDefaultInstanceForType()
com.google.ortools.linearsolver.MPSolution buildPartial()
Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
Builder addVariableValue(double value)
repeated double variable_value = 2 [packed = true];
Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Protobuf type operations_research.MPSolution @endiliteral.
Definition: MPSolution.java:12
static com.google.ortools.linearsolver.MPSolution parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser< MPSolution > parser()
void writeTo(com.google.protobuf.CodedOutputStream output)
static com.google.ortools.linearsolver.MPSolution parseDelimitedFrom(java.io.InputStream input)
static com.google.ortools.linearsolver.MPSolution parseFrom(java.io.InputStream input)
double getObjectiveValue()
optional double objective_value = 1;
static com.google.ortools.linearsolver.MPSolution parseFrom(byte[] data)
static com.google.ortools.linearsolver.MPSolution parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
static com.google.ortools.linearsolver.MPSolution parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.linearsolver.MPSolution parseFrom(com.google.protobuf.ByteString data)
boolean hasObjectiveValue()
optional double objective_value = 1;
boolean equals(final java.lang.Object obj)
static com.google.ortools.linearsolver.MPSolution getDefaultInstance()
double getVariableValue(int index)
repeated double variable_value = 2 [packed = true];
static com.google.ortools.linearsolver.MPSolution parseFrom(com.google.protobuf.CodedInputStream input)
final com.google.protobuf.UnknownFieldSet getUnknownFields()
Definition: MPSolution.java:31
int getVariableValueCount()
repeated double variable_value = 2 [packed = true];
com.google.protobuf.Parser< MPSolution > getParserForType()
static final com.google.protobuf.Parser< MPSolution > PARSER
java.util.List< java.lang.Double > getVariableValueList()
repeated double variable_value = 2 [packed = true];
com.google.ortools.linearsolver.MPSolution getDefaultInstanceForType()
static com.google.ortools.linearsolver.MPSolution parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.linearsolver.MPSolution parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
java.lang.Object newInstance(UnusedPrivateParameter unused)
Definition: MPSolution.java:24
static Builder newBuilder(com.google.ortools.linearsolver.MPSolution prototype)
static com.google.ortools.linearsolver.MPSolution parseFrom(java.nio.ByteBuffer data)
static com.google.ortools.linearsolver.MPSolution parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)