Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
LinearObjective.java
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// NO CHECKED-IN PROTOBUF GENCODE
3// source: ortools/sat/boolean_problem.proto
4// Protobuf Java Version: 4.31.1
5
6package com.google.ortools.sat;
7
15@com.google.protobuf.Generated
16public final class LinearObjective extends
17 com.google.protobuf.GeneratedMessage implements
18 // @@protoc_insertion_point(message_implements:operations_research.sat.LinearObjective)
20private static final long serialVersionUID = 0L;
21 static {
22 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
23 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
24 /* major= */ 4,
25 /* minor= */ 31,
26 /* patch= */ 1,
27 /* suffix= */ "",
28 LinearObjective.class.getName());
29 }
30 // Use LinearObjective.newBuilder() to construct.
31 private LinearObjective(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
32 super(builder);
33 }
34 private LinearObjective() {
35 literals_ = emptyIntList();
36 coefficients_ = emptyLongList();
37 scalingFactor_ = 1D;
38 }
39
40 public static final com.google.protobuf.Descriptors.Descriptor
42 return com.google.ortools.sat.BooleanProblem.internal_static_operations_research_sat_LinearObjective_descriptor;
43 }
44
45 @java.lang.Override
46 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
48 return com.google.ortools.sat.BooleanProblem.internal_static_operations_research_sat_LinearObjective_fieldAccessorTable
49 .ensureFieldAccessorsInitialized(
50 com.google.ortools.sat.LinearObjective.class, com.google.ortools.sat.LinearObjective.Builder.class);
51 }
52
53 private int bitField0_;
54 public static final int LITERALS_FIELD_NUMBER = 1;
55 @SuppressWarnings("serial")
56 private com.google.protobuf.Internal.IntList literals_ =
57 emptyIntList();
71 @java.lang.Override
72 public java.util.List<java.lang.Integer>
74 return literals_;
75 }
76
89 public int getLiteralsCount() {
90 return literals_.size();
91 }
92
106 public int getLiterals(int index) {
107 return literals_.getInt(index);
108 }
109
110 public static final int COEFFICIENTS_FIELD_NUMBER = 2;
111 @SuppressWarnings("serial")
112 private com.google.protobuf.Internal.LongList coefficients_ =
113 emptyLongList();
118 @java.lang.Override
119 public java.util.List<java.lang.Long>
121 return coefficients_;
122 }
123
127 public int getCoefficientsCount() {
128 return coefficients_.size();
129 }
130
135 public long getCoefficients(int index) {
136 return coefficients_.getLong(index);
137 }
138
139 public static final int OFFSET_FIELD_NUMBER = 3;
140 private double offset_ = 0D;
155 @java.lang.Override
156 public boolean hasOffset() {
157 return ((bitField0_ & 0x00000001) != 0);
158 }
159
173 @java.lang.Override
174 public double getOffset() {
175 return offset_;
176 }
177
178 public static final int SCALING_FACTOR_FIELD_NUMBER = 4;
179 private double scalingFactor_ = 1D;
184 @java.lang.Override
185 public boolean hasScalingFactor() {
186 return ((bitField0_ & 0x00000002) != 0);
187 }
188
192 @java.lang.Override
193 public double getScalingFactor() {
194 return scalingFactor_;
195 }
196
197 private byte memoizedIsInitialized = -1;
198 @java.lang.Override
199 public final boolean isInitialized() {
200 byte isInitialized = memoizedIsInitialized;
201 if (isInitialized == 1) return true;
202 if (isInitialized == 0) return false;
203
204 memoizedIsInitialized = 1;
205 return true;
206 }
207
208 @java.lang.Override
209 public void writeTo(com.google.protobuf.CodedOutputStream output)
210 throws java.io.IOException {
211 for (int i = 0; i < literals_.size(); i++) {
212 output.writeInt32(1, literals_.getInt(i));
213 }
214 for (int i = 0; i < coefficients_.size(); i++) {
215 output.writeInt64(2, coefficients_.getLong(i));
216 }
217 if (((bitField0_ & 0x00000001) != 0)) {
218 output.writeDouble(3, offset_);
219 }
220 if (((bitField0_ & 0x00000002) != 0)) {
221 output.writeDouble(4, scalingFactor_);
222 }
223 getUnknownFields().writeTo(output);
224 }
225
226 @java.lang.Override
227 public int getSerializedSize() {
228 int size = memoizedSize;
229 if (size != -1) return size;
230
231 size = 0;
232 {
233 int dataSize = 0;
234 for (int i = 0; i < literals_.size(); i++) {
235 dataSize += com.google.protobuf.CodedOutputStream
236 .computeInt32SizeNoTag(literals_.getInt(i));
237 }
238 size += dataSize;
239 size += 1 * getLiteralsList().size();
240 }
241 {
242 int dataSize = 0;
243 for (int i = 0; i < coefficients_.size(); i++) {
244 dataSize += com.google.protobuf.CodedOutputStream
245 .computeInt64SizeNoTag(coefficients_.getLong(i));
246 }
247 size += dataSize;
248 size += 1 * getCoefficientsList().size();
249 }
250 if (((bitField0_ & 0x00000001) != 0)) {
251 size += com.google.protobuf.CodedOutputStream
252 .computeDoubleSize(3, offset_);
253 }
254 if (((bitField0_ & 0x00000002) != 0)) {
255 size += com.google.protobuf.CodedOutputStream
256 .computeDoubleSize(4, scalingFactor_);
257 }
258 size += getUnknownFields().getSerializedSize();
259 memoizedSize = size;
260 return size;
261 }
262
263 @java.lang.Override
264 public boolean equals(final java.lang.Object obj) {
265 if (obj == this) {
266 return true;
267 }
268 if (!(obj instanceof com.google.ortools.sat.LinearObjective)) {
269 return super.equals(obj);
270 }
271 com.google.ortools.sat.LinearObjective other = (com.google.ortools.sat.LinearObjective) obj;
272
273 if (!getLiteralsList()
274 .equals(other.getLiteralsList())) return false;
276 .equals(other.getCoefficientsList())) return false;
277 if (hasOffset() != other.hasOffset()) return false;
278 if (hasOffset()) {
279 if (java.lang.Double.doubleToLongBits(getOffset())
280 != java.lang.Double.doubleToLongBits(
281 other.getOffset())) return false;
282 }
283 if (hasScalingFactor() != other.hasScalingFactor()) return false;
284 if (hasScalingFactor()) {
285 if (java.lang.Double.doubleToLongBits(getScalingFactor())
286 != java.lang.Double.doubleToLongBits(
287 other.getScalingFactor())) return false;
288 }
289 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
290 return true;
291 }
292
293 @java.lang.Override
294 public int hashCode() {
295 if (memoizedHashCode != 0) {
296 return memoizedHashCode;
297 }
298 int hash = 41;
299 hash = (19 * hash) + getDescriptor().hashCode();
300 if (getLiteralsCount() > 0) {
301 hash = (37 * hash) + LITERALS_FIELD_NUMBER;
302 hash = (53 * hash) + getLiteralsList().hashCode();
303 }
304 if (getCoefficientsCount() > 0) {
305 hash = (37 * hash) + COEFFICIENTS_FIELD_NUMBER;
306 hash = (53 * hash) + getCoefficientsList().hashCode();
307 }
308 if (hasOffset()) {
309 hash = (37 * hash) + OFFSET_FIELD_NUMBER;
310 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
311 java.lang.Double.doubleToLongBits(getOffset()));
312 }
313 if (hasScalingFactor()) {
314 hash = (37 * hash) + SCALING_FACTOR_FIELD_NUMBER;
315 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
316 java.lang.Double.doubleToLongBits(getScalingFactor()));
317 }
318 hash = (29 * hash) + getUnknownFields().hashCode();
319 memoizedHashCode = hash;
320 return hash;
321 }
322
324 java.nio.ByteBuffer data)
325 throws com.google.protobuf.InvalidProtocolBufferException {
326 return PARSER.parseFrom(data);
327 }
329 java.nio.ByteBuffer data,
330 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
331 throws com.google.protobuf.InvalidProtocolBufferException {
332 return PARSER.parseFrom(data, extensionRegistry);
333 }
335 com.google.protobuf.ByteString data)
336 throws com.google.protobuf.InvalidProtocolBufferException {
337 return PARSER.parseFrom(data);
338 }
340 com.google.protobuf.ByteString data,
341 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
342 throws com.google.protobuf.InvalidProtocolBufferException {
343 return PARSER.parseFrom(data, extensionRegistry);
344 }
346 throws com.google.protobuf.InvalidProtocolBufferException {
347 return PARSER.parseFrom(data);
348 }
350 byte[] data,
351 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
352 throws com.google.protobuf.InvalidProtocolBufferException {
353 return PARSER.parseFrom(data, extensionRegistry);
354 }
355 public static com.google.ortools.sat.LinearObjective parseFrom(java.io.InputStream input)
356 throws java.io.IOException {
357 return com.google.protobuf.GeneratedMessage
358 .parseWithIOException(PARSER, input);
359 }
361 java.io.InputStream input,
362 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
363 throws java.io.IOException {
364 return com.google.protobuf.GeneratedMessage
365 .parseWithIOException(PARSER, input, extensionRegistry);
366 }
367
368 public static com.google.ortools.sat.LinearObjective parseDelimitedFrom(java.io.InputStream input)
369 throws java.io.IOException {
370 return com.google.protobuf.GeneratedMessage
371 .parseDelimitedWithIOException(PARSER, input);
372 }
373
375 java.io.InputStream input,
376 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
377 throws java.io.IOException {
378 return com.google.protobuf.GeneratedMessage
379 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
380 }
382 com.google.protobuf.CodedInputStream input)
383 throws java.io.IOException {
384 return com.google.protobuf.GeneratedMessage
385 .parseWithIOException(PARSER, input);
386 }
388 com.google.protobuf.CodedInputStream input,
389 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
390 throws java.io.IOException {
391 return com.google.protobuf.GeneratedMessage
392 .parseWithIOException(PARSER, input, extensionRegistry);
393 }
394
395 @java.lang.Override
396 public Builder newBuilderForType() { return newBuilder(); }
397 public static Builder newBuilder() {
398 return DEFAULT_INSTANCE.toBuilder();
399 }
400 public static Builder newBuilder(com.google.ortools.sat.LinearObjective prototype) {
401 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
402 }
403 @java.lang.Override
405 return this == DEFAULT_INSTANCE
406 ? new Builder() : new Builder().mergeFrom(this);
407 }
408
409 @java.lang.Override
411 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
412 Builder builder = new Builder(parent);
413 return builder;
414 }
415
422 public static final class Builder extends
423 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
424 // @@protoc_insertion_point(builder_implements:operations_research.sat.LinearObjective)
426 public static final com.google.protobuf.Descriptors.Descriptor
428 return com.google.ortools.sat.BooleanProblem.internal_static_operations_research_sat_LinearObjective_descriptor;
429 }
430
431 @java.lang.Override
432 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
434 return com.google.ortools.sat.BooleanProblem.internal_static_operations_research_sat_LinearObjective_fieldAccessorTable
435 .ensureFieldAccessorsInitialized(
436 com.google.ortools.sat.LinearObjective.class, com.google.ortools.sat.LinearObjective.Builder.class);
437 }
438
439 // Construct using com.google.ortools.sat.LinearObjective.newBuilder()
440 private Builder() {
441
442 }
443
444 private Builder(
445 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
446 super(parent);
447
448 }
449 @java.lang.Override
450 public Builder clear() {
451 super.clear();
452 bitField0_ = 0;
453 literals_ = emptyIntList();
454 coefficients_ = emptyLongList();
455 offset_ = 0D;
456 scalingFactor_ = 1D;
457 return this;
458 }
459
460 @java.lang.Override
461 public com.google.protobuf.Descriptors.Descriptor
463 return com.google.ortools.sat.BooleanProblem.internal_static_operations_research_sat_LinearObjective_descriptor;
464 }
465
466 @java.lang.Override
468 return com.google.ortools.sat.LinearObjective.getDefaultInstance();
469 }
470
471 @java.lang.Override
474 if (!result.isInitialized()) {
475 throw newUninitializedMessageException(result);
476 }
477 return result;
478 }
479
480 @java.lang.Override
482 com.google.ortools.sat.LinearObjective result = new com.google.ortools.sat.LinearObjective(this);
483 if (bitField0_ != 0) { buildPartial0(result); }
484 onBuilt();
485 return result;
486 }
487
488 private void buildPartial0(com.google.ortools.sat.LinearObjective result) {
489 int from_bitField0_ = bitField0_;
490 if (((from_bitField0_ & 0x00000001) != 0)) {
491 literals_.makeImmutable();
492 result.literals_ = literals_;
493 }
494 if (((from_bitField0_ & 0x00000002) != 0)) {
495 coefficients_.makeImmutable();
496 result.coefficients_ = coefficients_;
497 }
498 int to_bitField0_ = 0;
499 if (((from_bitField0_ & 0x00000004) != 0)) {
500 result.offset_ = offset_;
501 to_bitField0_ |= 0x00000001;
502 }
503 if (((from_bitField0_ & 0x00000008) != 0)) {
504 result.scalingFactor_ = scalingFactor_;
505 to_bitField0_ |= 0x00000002;
506 }
507 result.bitField0_ |= to_bitField0_;
508 }
509
510 @java.lang.Override
511 public Builder mergeFrom(com.google.protobuf.Message other) {
512 if (other instanceof com.google.ortools.sat.LinearObjective) {
513 return mergeFrom((com.google.ortools.sat.LinearObjective)other);
514 } else {
515 super.mergeFrom(other);
516 return this;
517 }
518 }
519
520 public Builder mergeFrom(com.google.ortools.sat.LinearObjective other) {
521 if (other == com.google.ortools.sat.LinearObjective.getDefaultInstance()) return this;
522 if (!other.literals_.isEmpty()) {
523 if (literals_.isEmpty()) {
524 literals_ = other.literals_;
525 literals_.makeImmutable();
526 bitField0_ |= 0x00000001;
527 } else {
528 ensureLiteralsIsMutable();
529 literals_.addAll(other.literals_);
530 }
531 onChanged();
532 }
533 if (!other.coefficients_.isEmpty()) {
534 if (coefficients_.isEmpty()) {
535 coefficients_ = other.coefficients_;
536 coefficients_.makeImmutable();
537 bitField0_ |= 0x00000002;
538 } else {
539 ensureCoefficientsIsMutable();
540 coefficients_.addAll(other.coefficients_);
541 }
542 onChanged();
543 }
544 if (other.hasOffset()) {
545 setOffset(other.getOffset());
546 }
547 if (other.hasScalingFactor()) {
548 setScalingFactor(other.getScalingFactor());
549 }
550 this.mergeUnknownFields(other.getUnknownFields());
551 onChanged();
552 return this;
553 }
554
555 @java.lang.Override
556 public final boolean isInitialized() {
557 return true;
558 }
559
560 @java.lang.Override
561 public Builder mergeFrom(
562 com.google.protobuf.CodedInputStream input,
563 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
564 throws java.io.IOException {
565 if (extensionRegistry == null) {
566 throw new java.lang.NullPointerException();
567 }
568 try {
569 boolean done = false;
570 while (!done) {
571 int tag = input.readTag();
572 switch (tag) {
573 case 0:
574 done = true;
575 break;
576 case 8: {
577 int v = input.readInt32();
578 ensureLiteralsIsMutable();
579 literals_.addInt(v);
580 break;
581 } // case 8
582 case 10: {
583 int length = input.readRawVarint32();
584 int limit = input.pushLimit(length);
585 ensureLiteralsIsMutable();
586 while (input.getBytesUntilLimit() > 0) {
587 literals_.addInt(input.readInt32());
588 }
589 input.popLimit(limit);
590 break;
591 } // case 10
592 case 16: {
593 long v = input.readInt64();
594 ensureCoefficientsIsMutable();
595 coefficients_.addLong(v);
596 break;
597 } // case 16
598 case 18: {
599 int length = input.readRawVarint32();
600 int limit = input.pushLimit(length);
601 ensureCoefficientsIsMutable();
602 while (input.getBytesUntilLimit() > 0) {
603 coefficients_.addLong(input.readInt64());
604 }
605 input.popLimit(limit);
606 break;
607 } // case 18
608 case 25: {
609 offset_ = input.readDouble();
610 bitField0_ |= 0x00000004;
611 break;
612 } // case 25
613 case 33: {
614 scalingFactor_ = input.readDouble();
615 bitField0_ |= 0x00000008;
616 break;
617 } // case 33
618 default: {
619 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
620 done = true; // was an endgroup tag
621 }
622 break;
623 } // default:
624 } // switch (tag)
625 } // while (!done)
626 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
627 throw e.unwrapIOException();
628 } finally {
629 onChanged();
630 } // finally
631 return this;
632 }
633 private int bitField0_;
634
635 private com.google.protobuf.Internal.IntList literals_ = emptyIntList();
636 private void ensureLiteralsIsMutable() {
637 if (!literals_.isModifiable()) {
638 literals_ = makeMutableCopy(literals_);
639 }
640 bitField0_ |= 0x00000001;
641 }
655 public java.util.List<java.lang.Integer>
657 literals_.makeImmutable();
658 return literals_;
659 }
660
673 public int getLiteralsCount() {
674 return literals_.size();
675 }
676
690 public int getLiterals(int index) {
691 return literals_.getInt(index);
692 }
693
708 public Builder setLiterals(
709 int index, int value) {
710
711 ensureLiteralsIsMutable();
712 literals_.setInt(index, value);
713 bitField0_ |= 0x00000001;
714 onChanged();
715 return this;
716 }
717
731 public Builder addLiterals(int value) {
732
733 ensureLiteralsIsMutable();
734 literals_.addInt(value);
735 bitField0_ |= 0x00000001;
736 onChanged();
737 return this;
738 }
739
753 public Builder addAllLiterals(
754 java.lang.Iterable<? extends java.lang.Integer> values) {
755 ensureLiteralsIsMutable();
756 com.google.protobuf.AbstractMessageLite.Builder.addAll(
757 values, literals_);
758 bitField0_ |= 0x00000001;
759 onChanged();
760 return this;
761 }
762
775 public Builder clearLiterals() {
776 literals_ = emptyIntList();
777 bitField0_ = (bitField0_ & ~0x00000001);
778 onChanged();
779 return this;
780 }
781
782 private com.google.protobuf.Internal.LongList coefficients_ = emptyLongList();
783 private void ensureCoefficientsIsMutable() {
784 if (!coefficients_.isModifiable()) {
785 coefficients_ = makeMutableCopy(coefficients_);
786 }
787 bitField0_ |= 0x00000002;
788 }
793 public java.util.List<java.lang.Long>
795 coefficients_.makeImmutable();
796 return coefficients_;
797 }
798
802 public int getCoefficientsCount() {
803 return coefficients_.size();
804 }
805
810 public long getCoefficients(int index) {
811 return coefficients_.getLong(index);
812 }
813
819 public Builder setCoefficients(
820 int index, long value) {
821
822 ensureCoefficientsIsMutable();
823 coefficients_.setLong(index, value);
824 bitField0_ |= 0x00000002;
825 onChanged();
826 return this;
827 }
828
833 public Builder addCoefficients(long value) {
834
835 ensureCoefficientsIsMutable();
836 coefficients_.addLong(value);
837 bitField0_ |= 0x00000002;
838 onChanged();
839 return this;
840 }
841
846 public Builder addAllCoefficients(
847 java.lang.Iterable<? extends java.lang.Long> values) {
848 ensureCoefficientsIsMutable();
849 com.google.protobuf.AbstractMessageLite.Builder.addAll(
850 values, coefficients_);
851 bitField0_ |= 0x00000002;
852 onChanged();
853 return this;
854 }
855
859 public Builder clearCoefficients() {
860 coefficients_ = emptyLongList();
861 bitField0_ = (bitField0_ & ~0x00000002);
862 onChanged();
863 return this;
864 }
865
866 private double offset_ ;
881 @java.lang.Override
882 public boolean hasOffset() {
883 return ((bitField0_ & 0x00000004) != 0);
884 }
885
899 @java.lang.Override
900 public double getOffset() {
901 return offset_;
902 }
903
918 public Builder setOffset(double value) {
919
920 offset_ = value;
921 bitField0_ |= 0x00000004;
922 onChanged();
923 return this;
924 }
925
939 public Builder clearOffset() {
940 bitField0_ = (bitField0_ & ~0x00000004);
941 offset_ = 0D;
942 onChanged();
943 return this;
944 }
945
946 private double scalingFactor_ = 1D;
951 @java.lang.Override
952 public boolean hasScalingFactor() {
953 return ((bitField0_ & 0x00000008) != 0);
954 }
955
959 @java.lang.Override
960 public double getScalingFactor() {
961 return scalingFactor_;
962 }
963
968 public Builder setScalingFactor(double value) {
969
970 scalingFactor_ = value;
971 bitField0_ |= 0x00000008;
972 onChanged();
973 return this;
974 }
975
979 public Builder clearScalingFactor() {
980 bitField0_ = (bitField0_ & ~0x00000008);
981 scalingFactor_ = 1D;
982 onChanged();
983 return this;
984 }
985
986 // @@protoc_insertion_point(builder_scope:operations_research.sat.LinearObjective)
987 }
988
989 // @@protoc_insertion_point(class_scope:operations_research.sat.LinearObjective)
990 private static final com.google.ortools.sat.LinearObjective DEFAULT_INSTANCE;
991 static {
992 DEFAULT_INSTANCE = new com.google.ortools.sat.LinearObjective();
993 }
994
996 return DEFAULT_INSTANCE;
997 }
998
999 private static final com.google.protobuf.Parser<LinearObjective>
1000 PARSER = new com.google.protobuf.AbstractParser<LinearObjective>() {
1001 @java.lang.Override
1002 public LinearObjective parsePartialFrom(
1003 com.google.protobuf.CodedInputStream input,
1004 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1005 throws com.google.protobuf.InvalidProtocolBufferException {
1006 Builder builder = newBuilder();
1007 try {
1008 builder.mergeFrom(input, extensionRegistry);
1009 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1010 throw e.setUnfinishedMessage(builder.buildPartial());
1011 } catch (com.google.protobuf.UninitializedMessageException e) {
1012 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1013 } catch (java.io.IOException e) {
1014 throw new com.google.protobuf.InvalidProtocolBufferException(e)
1015 .setUnfinishedMessage(builder.buildPartial());
1016 }
1017 return builder.buildPartial();
1018 }
1019 };
1020
1021 public static com.google.protobuf.Parser<LinearObjective> parser() {
1022 return PARSER;
1023 }
1024
1025 @java.lang.Override
1026 public com.google.protobuf.Parser<LinearObjective> getParserForType() {
1027 return PARSER;
1028 }
1029
1030 @java.lang.Override
1032 return DEFAULT_INSTANCE;
1033 }
1034
1035}
1036
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Builder mergeFrom(com.google.protobuf.Message other)
java.util.List< java.lang.Integer > getLiteralsList()
com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
Builder addAllCoefficients(java.lang.Iterable<? extends java.lang.Long > values)
com.google.ortools.sat.LinearObjective build()
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
java.util.List< java.lang.Long > getCoefficientsList()
com.google.ortools.sat.LinearObjective getDefaultInstanceForType()
Builder addAllLiterals(java.lang.Iterable<? extends java.lang.Integer > values)
com.google.ortools.sat.LinearObjective buildPartial()
Builder mergeFrom(com.google.ortools.sat.LinearObjective other)
Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.sat.LinearObjective parseFrom(java.nio.ByteBuffer data)
static com.google.ortools.sat.LinearObjective parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
java.util.List< java.lang.Integer > getLiteralsList()
static com.google.ortools.sat.LinearObjective parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.sat.LinearObjective parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.sat.LinearObjective parseFrom(byte[] data)
com.google.ortools.sat.LinearObjective getDefaultInstanceForType()
com.google.protobuf.Parser< LinearObjective > getParserForType()
static com.google.ortools.sat.LinearObjective parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
java.util.List< java.lang.Long > getCoefficientsList()
static com.google.ortools.sat.LinearObjective getDefaultInstance()
void writeTo(com.google.protobuf.CodedOutputStream output)
Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
static com.google.ortools.sat.LinearObjective parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Builder newBuilder(com.google.ortools.sat.LinearObjective prototype)
boolean equals(final java.lang.Object obj)
static com.google.ortools.sat.LinearObjective parseFrom(java.io.InputStream input)
static com.google.ortools.sat.LinearObjective parseDelimitedFrom(java.io.InputStream input)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
static com.google.protobuf.Parser< LinearObjective > parser()
static com.google.ortools.sat.LinearObjective parseFrom(com.google.protobuf.CodedInputStream input)
static com.google.ortools.sat.LinearObjective parseFrom(com.google.protobuf.ByteString data)
static com.google.ortools.sat.LinearObjective parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)