Google OR-Tools v9.12
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
LinearBooleanProblem.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.29.3
5
6package com.google.ortools.sat;
7
15public final class LinearBooleanProblem extends
16 com.google.protobuf.GeneratedMessage implements
17 // @@protoc_insertion_point(message_implements:operations_research.sat.LinearBooleanProblem)
19private static final long serialVersionUID = 0L;
20 static {
21 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
22 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
23 /* major= */ 4,
24 /* minor= */ 29,
25 /* patch= */ 3,
26 /* suffix= */ "",
27 LinearBooleanProblem.class.getName());
28 }
29 // Use LinearBooleanProblem.newBuilder() to construct.
30 private LinearBooleanProblem(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
31 super(builder);
32 }
33 private LinearBooleanProblem() {
34 name_ = "";
35 constraints_ = java.util.Collections.emptyList();
36 varNames_ =
37 com.google.protobuf.LazyStringArrayList.emptyList();
38 }
39
40 public static final com.google.protobuf.Descriptors.Descriptor
42 return com.google.ortools.sat.BooleanProblem.internal_static_operations_research_sat_LinearBooleanProblem_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_LinearBooleanProblem_fieldAccessorTable
49 .ensureFieldAccessorsInitialized(
50 com.google.ortools.sat.LinearBooleanProblem.class, com.google.ortools.sat.LinearBooleanProblem.Builder.class);
51 }
52
53 private int bitField0_;
54 public static final int NAME_FIELD_NUMBER = 1;
55 @SuppressWarnings("serial")
56 private volatile java.lang.Object name_ = "";
65 @java.lang.Override
66 public boolean hasName() {
67 return ((bitField0_ & 0x00000001) != 0);
68 }
69
77 @java.lang.Override
78 public java.lang.String getName() {
79 java.lang.Object ref = name_;
80 if (ref instanceof java.lang.String) {
81 return (java.lang.String) ref;
82 } else {
83 com.google.protobuf.ByteString bs =
84 (com.google.protobuf.ByteString) ref;
85 java.lang.String s = bs.toStringUtf8();
86 if (bs.isValidUtf8()) {
87 name_ = s;
88 }
89 return s;
90 }
91 }
92
100 @java.lang.Override
101 public com.google.protobuf.ByteString
103 java.lang.Object ref = name_;
104 if (ref instanceof java.lang.String) {
105 com.google.protobuf.ByteString b =
106 com.google.protobuf.ByteString.copyFromUtf8(
107 (java.lang.String) ref);
108 name_ = b;
109 return b;
110 } else {
111 return (com.google.protobuf.ByteString) ref;
112 }
113 }
114
115 public static final int NUM_VARIABLES_FIELD_NUMBER = 3;
116 private int numVariables_ = 0;
127 @java.lang.Override
128 public boolean hasNumVariables() {
129 return ((bitField0_ & 0x00000002) != 0);
130 }
131
141 @java.lang.Override
142 public int getNumVariables() {
143 return numVariables_;
144 }
145
146 public static final int CONSTRAINTS_FIELD_NUMBER = 4;
147 @SuppressWarnings("serial")
148 private java.util.List<com.google.ortools.sat.LinearBooleanConstraint> constraints_;
156 @java.lang.Override
158 return constraints_;
159 }
160
167 @java.lang.Override
168 public java.util.List<? extends com.google.ortools.sat.LinearBooleanConstraintOrBuilder>
170 return constraints_;
171 }
172
179 @java.lang.Override
180 public int getConstraintsCount() {
181 return constraints_.size();
182 }
183
190 @java.lang.Override
192 return constraints_.get(index);
193 }
194
201 @java.lang.Override
203 int index) {
204 return constraints_.get(index);
205 }
206
207 public static final int OBJECTIVE_FIELD_NUMBER = 5;
218 @java.lang.Override
219 public boolean hasObjective() {
220 return ((bitField0_ & 0x00000004) != 0);
221 }
222
231 @java.lang.Override
233 return objective_ == null ? com.google.ortools.sat.LinearObjective.getDefaultInstance() : objective_;
234 }
235
243 @java.lang.Override
245 return objective_ == null ? com.google.ortools.sat.LinearObjective.getDefaultInstance() : objective_;
246 }
247
248 public static final int VAR_NAMES_FIELD_NUMBER = 6;
249 @SuppressWarnings("serial")
250 private com.google.protobuf.LazyStringArrayList varNames_ =
251 com.google.protobuf.LazyStringArrayList.emptyList();
262 public com.google.protobuf.ProtocolStringList
264 return varNames_;
265 }
266
276 public int getVarNamesCount() {
277 return varNames_.size();
278 }
279
290 public java.lang.String getVarNames(int index) {
291 return varNames_.get(index);
292 }
293
304 public com.google.protobuf.ByteString
305 getVarNamesBytes(int index) {
306 return varNames_.getByteString(index);
307 }
308
309 public static final int ASSIGNMENT_FIELD_NUMBER = 7;
320 @java.lang.Override
321 public boolean hasAssignment() {
322 return ((bitField0_ & 0x00000008) != 0);
323 }
324
333 @java.lang.Override
335 return assignment_ == null ? com.google.ortools.sat.BooleanAssignment.getDefaultInstance() : assignment_;
336 }
337
345 @java.lang.Override
347 return assignment_ == null ? com.google.ortools.sat.BooleanAssignment.getDefaultInstance() : assignment_;
348 }
349
350 public static final int ORIGINAL_NUM_VARIABLES_FIELD_NUMBER = 8;
351 private int originalNumVariables_ = 0;
363 @java.lang.Override
364 public boolean hasOriginalNumVariables() {
365 return ((bitField0_ & 0x00000010) != 0);
366 }
367
378 @java.lang.Override
380 return originalNumVariables_;
381 }
382
383 private byte memoizedIsInitialized = -1;
384 @java.lang.Override
385 public final boolean isInitialized() {
386 byte isInitialized = memoizedIsInitialized;
387 if (isInitialized == 1) return true;
388 if (isInitialized == 0) return false;
389
390 memoizedIsInitialized = 1;
391 return true;
392 }
393
394 @java.lang.Override
395 public void writeTo(com.google.protobuf.CodedOutputStream output)
396 throws java.io.IOException {
397 if (((bitField0_ & 0x00000001) != 0)) {
398 com.google.protobuf.GeneratedMessage.writeString(output, 1, name_);
399 }
400 if (((bitField0_ & 0x00000002) != 0)) {
401 output.writeInt32(3, numVariables_);
402 }
403 for (int i = 0; i < constraints_.size(); i++) {
404 output.writeMessage(4, constraints_.get(i));
405 }
406 if (((bitField0_ & 0x00000004) != 0)) {
407 output.writeMessage(5, getObjective());
408 }
409 for (int i = 0; i < varNames_.size(); i++) {
410 com.google.protobuf.GeneratedMessage.writeString(output, 6, varNames_.getRaw(i));
411 }
412 if (((bitField0_ & 0x00000008) != 0)) {
413 output.writeMessage(7, getAssignment());
414 }
415 if (((bitField0_ & 0x00000010) != 0)) {
416 output.writeInt32(8, originalNumVariables_);
417 }
418 getUnknownFields().writeTo(output);
419 }
420
421 @java.lang.Override
422 public int getSerializedSize() {
423 int size = memoizedSize;
424 if (size != -1) return size;
425
426 size = 0;
427 if (((bitField0_ & 0x00000001) != 0)) {
428 size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_);
429 }
430 if (((bitField0_ & 0x00000002) != 0)) {
431 size += com.google.protobuf.CodedOutputStream
432 .computeInt32Size(3, numVariables_);
433 }
434 for (int i = 0; i < constraints_.size(); i++) {
435 size += com.google.protobuf.CodedOutputStream
436 .computeMessageSize(4, constraints_.get(i));
437 }
438 if (((bitField0_ & 0x00000004) != 0)) {
439 size += com.google.protobuf.CodedOutputStream
440 .computeMessageSize(5, getObjective());
441 }
442 {
443 int dataSize = 0;
444 for (int i = 0; i < varNames_.size(); i++) {
445 dataSize += computeStringSizeNoTag(varNames_.getRaw(i));
446 }
447 size += dataSize;
448 size += 1 * getVarNamesList().size();
449 }
450 if (((bitField0_ & 0x00000008) != 0)) {
451 size += com.google.protobuf.CodedOutputStream
452 .computeMessageSize(7, getAssignment());
453 }
454 if (((bitField0_ & 0x00000010) != 0)) {
455 size += com.google.protobuf.CodedOutputStream
456 .computeInt32Size(8, originalNumVariables_);
457 }
458 size += getUnknownFields().getSerializedSize();
459 memoizedSize = size;
460 return size;
461 }
462
463 @java.lang.Override
464 public boolean equals(final java.lang.Object obj) {
465 if (obj == this) {
466 return true;
467 }
468 if (!(obj instanceof com.google.ortools.sat.LinearBooleanProblem)) {
469 return super.equals(obj);
470 }
471 com.google.ortools.sat.LinearBooleanProblem other = (com.google.ortools.sat.LinearBooleanProblem) obj;
472
473 if (hasName() != other.hasName()) return false;
474 if (hasName()) {
475 if (!getName()
476 .equals(other.getName())) return false;
477 }
478 if (hasNumVariables() != other.hasNumVariables()) return false;
479 if (hasNumVariables()) {
480 if (getNumVariables()
481 != other.getNumVariables()) return false;
482 }
483 if (!getConstraintsList()
484 .equals(other.getConstraintsList())) return false;
485 if (hasObjective() != other.hasObjective()) return false;
486 if (hasObjective()) {
487 if (!getObjective()
488 .equals(other.getObjective())) return false;
489 }
490 if (!getVarNamesList()
491 .equals(other.getVarNamesList())) return false;
492 if (hasAssignment() != other.hasAssignment()) return false;
493 if (hasAssignment()) {
494 if (!getAssignment()
495 .equals(other.getAssignment())) return false;
496 }
497 if (hasOriginalNumVariables() != other.hasOriginalNumVariables()) return false;
500 != other.getOriginalNumVariables()) return false;
501 }
502 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
503 return true;
504 }
505
506 @java.lang.Override
507 public int hashCode() {
508 if (memoizedHashCode != 0) {
509 return memoizedHashCode;
510 }
511 int hash = 41;
512 hash = (19 * hash) + getDescriptor().hashCode();
513 if (hasName()) {
514 hash = (37 * hash) + NAME_FIELD_NUMBER;
515 hash = (53 * hash) + getName().hashCode();
516 }
517 if (hasNumVariables()) {
518 hash = (37 * hash) + NUM_VARIABLES_FIELD_NUMBER;
519 hash = (53 * hash) + getNumVariables();
520 }
521 if (getConstraintsCount() > 0) {
522 hash = (37 * hash) + CONSTRAINTS_FIELD_NUMBER;
523 hash = (53 * hash) + getConstraintsList().hashCode();
524 }
525 if (hasObjective()) {
526 hash = (37 * hash) + OBJECTIVE_FIELD_NUMBER;
527 hash = (53 * hash) + getObjective().hashCode();
528 }
529 if (getVarNamesCount() > 0) {
530 hash = (37 * hash) + VAR_NAMES_FIELD_NUMBER;
531 hash = (53 * hash) + getVarNamesList().hashCode();
532 }
533 if (hasAssignment()) {
534 hash = (37 * hash) + ASSIGNMENT_FIELD_NUMBER;
535 hash = (53 * hash) + getAssignment().hashCode();
536 }
538 hash = (37 * hash) + ORIGINAL_NUM_VARIABLES_FIELD_NUMBER;
539 hash = (53 * hash) + getOriginalNumVariables();
540 }
541 hash = (29 * hash) + getUnknownFields().hashCode();
542 memoizedHashCode = hash;
543 return hash;
544 }
545
547 java.nio.ByteBuffer data)
548 throws com.google.protobuf.InvalidProtocolBufferException {
549 return PARSER.parseFrom(data);
550 }
552 java.nio.ByteBuffer data,
553 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
554 throws com.google.protobuf.InvalidProtocolBufferException {
555 return PARSER.parseFrom(data, extensionRegistry);
556 }
558 com.google.protobuf.ByteString data)
559 throws com.google.protobuf.InvalidProtocolBufferException {
560 return PARSER.parseFrom(data);
561 }
563 com.google.protobuf.ByteString data,
564 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
565 throws com.google.protobuf.InvalidProtocolBufferException {
566 return PARSER.parseFrom(data, extensionRegistry);
567 }
569 throws com.google.protobuf.InvalidProtocolBufferException {
570 return PARSER.parseFrom(data);
571 }
573 byte[] data,
574 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
575 throws com.google.protobuf.InvalidProtocolBufferException {
576 return PARSER.parseFrom(data, extensionRegistry);
577 }
578 public static com.google.ortools.sat.LinearBooleanProblem parseFrom(java.io.InputStream input)
579 throws java.io.IOException {
580 return com.google.protobuf.GeneratedMessage
581 .parseWithIOException(PARSER, input);
582 }
584 java.io.InputStream input,
585 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
586 throws java.io.IOException {
587 return com.google.protobuf.GeneratedMessage
588 .parseWithIOException(PARSER, input, extensionRegistry);
589 }
590
592 throws java.io.IOException {
593 return com.google.protobuf.GeneratedMessage
594 .parseDelimitedWithIOException(PARSER, input);
595 }
596
598 java.io.InputStream input,
599 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
600 throws java.io.IOException {
601 return com.google.protobuf.GeneratedMessage
602 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
603 }
605 com.google.protobuf.CodedInputStream input)
606 throws java.io.IOException {
607 return com.google.protobuf.GeneratedMessage
608 .parseWithIOException(PARSER, input);
609 }
611 com.google.protobuf.CodedInputStream input,
612 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
613 throws java.io.IOException {
614 return com.google.protobuf.GeneratedMessage
615 .parseWithIOException(PARSER, input, extensionRegistry);
616 }
617
618 @java.lang.Override
619 public Builder newBuilderForType() { return newBuilder(); }
620 public static Builder newBuilder() {
621 return DEFAULT_INSTANCE.toBuilder();
622 }
623 public static Builder newBuilder(com.google.ortools.sat.LinearBooleanProblem prototype) {
624 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
625 }
626 @java.lang.Override
628 return this == DEFAULT_INSTANCE
629 ? new Builder() : new Builder().mergeFrom(this);
630 }
631
632 @java.lang.Override
634 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
635 Builder builder = new Builder(parent);
636 return builder;
637 }
638
645 public static final class Builder extends
646 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
647 // @@protoc_insertion_point(builder_implements:operations_research.sat.LinearBooleanProblem)
649 public static final com.google.protobuf.Descriptors.Descriptor
651 return com.google.ortools.sat.BooleanProblem.internal_static_operations_research_sat_LinearBooleanProblem_descriptor;
652 }
653
654 @java.lang.Override
655 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
657 return com.google.ortools.sat.BooleanProblem.internal_static_operations_research_sat_LinearBooleanProblem_fieldAccessorTable
658 .ensureFieldAccessorsInitialized(
659 com.google.ortools.sat.LinearBooleanProblem.class, com.google.ortools.sat.LinearBooleanProblem.Builder.class);
660 }
661
662 // Construct using com.google.ortools.sat.LinearBooleanProblem.newBuilder()
663 private Builder() {
664 maybeForceBuilderInitialization();
665 }
666
667 private Builder(
668 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
669 super(parent);
670 maybeForceBuilderInitialization();
671 }
672 private void maybeForceBuilderInitialization() {
673 if (com.google.protobuf.GeneratedMessage
674 .alwaysUseFieldBuilders) {
675 getConstraintsFieldBuilder();
676 getObjectiveFieldBuilder();
677 getAssignmentFieldBuilder();
678 }
679 }
680 @java.lang.Override
681 public Builder clear() {
682 super.clear();
683 bitField0_ = 0;
684 name_ = "";
685 numVariables_ = 0;
686 if (constraintsBuilder_ == null) {
687 constraints_ = java.util.Collections.emptyList();
688 } else {
689 constraints_ = null;
690 constraintsBuilder_.clear();
691 }
692 bitField0_ = (bitField0_ & ~0x00000004);
693 objective_ = null;
694 if (objectiveBuilder_ != null) {
695 objectiveBuilder_.dispose();
696 objectiveBuilder_ = null;
697 }
698 varNames_ =
699 com.google.protobuf.LazyStringArrayList.emptyList();
700 assignment_ = null;
701 if (assignmentBuilder_ != null) {
702 assignmentBuilder_.dispose();
703 assignmentBuilder_ = null;
704 }
705 originalNumVariables_ = 0;
706 return this;
707 }
708
709 @java.lang.Override
710 public com.google.protobuf.Descriptors.Descriptor
712 return com.google.ortools.sat.BooleanProblem.internal_static_operations_research_sat_LinearBooleanProblem_descriptor;
713 }
714
715 @java.lang.Override
717 return com.google.ortools.sat.LinearBooleanProblem.getDefaultInstance();
718 }
719
720 @java.lang.Override
723 if (!result.isInitialized()) {
724 throw newUninitializedMessageException(result);
725 }
726 return result;
727 }
728
729 @java.lang.Override
731 com.google.ortools.sat.LinearBooleanProblem result = new com.google.ortools.sat.LinearBooleanProblem(this);
732 buildPartialRepeatedFields(result);
733 if (bitField0_ != 0) { buildPartial0(result); }
734 onBuilt();
735 return result;
736 }
737
738 private void buildPartialRepeatedFields(com.google.ortools.sat.LinearBooleanProblem result) {
739 if (constraintsBuilder_ == null) {
740 if (((bitField0_ & 0x00000004) != 0)) {
741 constraints_ = java.util.Collections.unmodifiableList(constraints_);
742 bitField0_ = (bitField0_ & ~0x00000004);
743 }
744 result.constraints_ = constraints_;
745 } else {
746 result.constraints_ = constraintsBuilder_.build();
747 }
748 }
749
750 private void buildPartial0(com.google.ortools.sat.LinearBooleanProblem result) {
751 int from_bitField0_ = bitField0_;
752 int to_bitField0_ = 0;
753 if (((from_bitField0_ & 0x00000001) != 0)) {
754 result.name_ = name_;
755 to_bitField0_ |= 0x00000001;
756 }
757 if (((from_bitField0_ & 0x00000002) != 0)) {
758 result.numVariables_ = numVariables_;
759 to_bitField0_ |= 0x00000002;
760 }
761 if (((from_bitField0_ & 0x00000008) != 0)) {
762 result.objective_ = objectiveBuilder_ == null
763 ? objective_
764 : objectiveBuilder_.build();
765 to_bitField0_ |= 0x00000004;
766 }
767 if (((from_bitField0_ & 0x00000010) != 0)) {
768 varNames_.makeImmutable();
769 result.varNames_ = varNames_;
770 }
771 if (((from_bitField0_ & 0x00000020) != 0)) {
772 result.assignment_ = assignmentBuilder_ == null
773 ? assignment_
774 : assignmentBuilder_.build();
775 to_bitField0_ |= 0x00000008;
776 }
777 if (((from_bitField0_ & 0x00000040) != 0)) {
778 result.originalNumVariables_ = originalNumVariables_;
779 to_bitField0_ |= 0x00000010;
780 }
781 result.bitField0_ |= to_bitField0_;
782 }
783
784 @java.lang.Override
785 public Builder mergeFrom(com.google.protobuf.Message other) {
786 if (other instanceof com.google.ortools.sat.LinearBooleanProblem) {
787 return mergeFrom((com.google.ortools.sat.LinearBooleanProblem)other);
788 } else {
789 super.mergeFrom(other);
790 return this;
791 }
792 }
793
794 public Builder mergeFrom(com.google.ortools.sat.LinearBooleanProblem other) {
795 if (other == com.google.ortools.sat.LinearBooleanProblem.getDefaultInstance()) return this;
796 if (other.hasName()) {
797 name_ = other.name_;
798 bitField0_ |= 0x00000001;
799 onChanged();
800 }
801 if (other.hasNumVariables()) {
802 setNumVariables(other.getNumVariables());
803 }
804 if (constraintsBuilder_ == null) {
805 if (!other.constraints_.isEmpty()) {
806 if (constraints_.isEmpty()) {
807 constraints_ = other.constraints_;
808 bitField0_ = (bitField0_ & ~0x00000004);
809 } else {
810 ensureConstraintsIsMutable();
811 constraints_.addAll(other.constraints_);
812 }
813 onChanged();
814 }
815 } else {
816 if (!other.constraints_.isEmpty()) {
817 if (constraintsBuilder_.isEmpty()) {
818 constraintsBuilder_.dispose();
819 constraintsBuilder_ = null;
820 constraints_ = other.constraints_;
821 bitField0_ = (bitField0_ & ~0x00000004);
822 constraintsBuilder_ =
823 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
824 getConstraintsFieldBuilder() : null;
825 } else {
826 constraintsBuilder_.addAllMessages(other.constraints_);
827 }
828 }
829 }
830 if (other.hasObjective()) {
831 mergeObjective(other.getObjective());
832 }
833 if (!other.varNames_.isEmpty()) {
834 if (varNames_.isEmpty()) {
835 varNames_ = other.varNames_;
836 bitField0_ |= 0x00000010;
837 } else {
838 ensureVarNamesIsMutable();
839 varNames_.addAll(other.varNames_);
840 }
841 onChanged();
842 }
843 if (other.hasAssignment()) {
844 mergeAssignment(other.getAssignment());
845 }
846 if (other.hasOriginalNumVariables()) {
847 setOriginalNumVariables(other.getOriginalNumVariables());
848 }
849 this.mergeUnknownFields(other.getUnknownFields());
850 onChanged();
851 return this;
852 }
853
854 @java.lang.Override
855 public final boolean isInitialized() {
856 return true;
857 }
858
859 @java.lang.Override
860 public Builder mergeFrom(
861 com.google.protobuf.CodedInputStream input,
862 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
863 throws java.io.IOException {
864 if (extensionRegistry == null) {
865 throw new java.lang.NullPointerException();
866 }
867 try {
868 boolean done = false;
869 while (!done) {
870 int tag = input.readTag();
871 switch (tag) {
872 case 0:
873 done = true;
874 break;
875 case 10: {
876 name_ = input.readBytes();
877 bitField0_ |= 0x00000001;
878 break;
879 } // case 10
880 case 24: {
881 numVariables_ = input.readInt32();
882 bitField0_ |= 0x00000002;
883 break;
884 } // case 24
885 case 34: {
887 input.readMessage(
888 com.google.ortools.sat.LinearBooleanConstraint.parser(),
889 extensionRegistry);
890 if (constraintsBuilder_ == null) {
891 ensureConstraintsIsMutable();
892 constraints_.add(m);
893 } else {
894 constraintsBuilder_.addMessage(m);
895 }
896 break;
897 } // case 34
898 case 42: {
899 input.readMessage(
900 getObjectiveFieldBuilder().getBuilder(),
901 extensionRegistry);
902 bitField0_ |= 0x00000008;
903 break;
904 } // case 42
905 case 50: {
906 com.google.protobuf.ByteString bs = input.readBytes();
907 ensureVarNamesIsMutable();
908 varNames_.add(bs);
909 break;
910 } // case 50
911 case 58: {
912 input.readMessage(
913 getAssignmentFieldBuilder().getBuilder(),
914 extensionRegistry);
915 bitField0_ |= 0x00000020;
916 break;
917 } // case 58
918 case 64: {
919 originalNumVariables_ = input.readInt32();
920 bitField0_ |= 0x00000040;
921 break;
922 } // case 64
923 default: {
924 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
925 done = true; // was an endgroup tag
926 }
927 break;
928 } // default:
929 } // switch (tag)
930 } // while (!done)
931 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
932 throw e.unwrapIOException();
933 } finally {
934 onChanged();
935 } // finally
936 return this;
937 }
938 private int bitField0_;
939
940 private java.lang.Object name_ = "";
949 public boolean hasName() {
950 return ((bitField0_ & 0x00000001) != 0);
951 }
952
960 public java.lang.String getName() {
961 java.lang.Object ref = name_;
962 if (!(ref instanceof java.lang.String)) {
963 com.google.protobuf.ByteString bs =
964 (com.google.protobuf.ByteString) ref;
965 java.lang.String s = bs.toStringUtf8();
966 if (bs.isValidUtf8()) {
967 name_ = s;
968 }
969 return s;
970 } else {
971 return (java.lang.String) ref;
972 }
973 }
974
982 public com.google.protobuf.ByteString
984 java.lang.Object ref = name_;
985 if (ref instanceof String) {
986 com.google.protobuf.ByteString b =
987 com.google.protobuf.ByteString.copyFromUtf8(
988 (java.lang.String) ref);
989 name_ = b;
990 return b;
991 } else {
992 return (com.google.protobuf.ByteString) ref;
993 }
994 }
995
1004 public Builder setName(
1005 java.lang.String value) {
1006 if (value == null) { throw new NullPointerException(); }
1007 name_ = value;
1008 bitField0_ |= 0x00000001;
1009 onChanged();
1010 return this;
1011 }
1012
1020 public Builder clearName() {
1021 name_ = getDefaultInstance().getName();
1022 bitField0_ = (bitField0_ & ~0x00000001);
1023 onChanged();
1024 return this;
1025 }
1026
1035 public Builder setNameBytes(
1036 com.google.protobuf.ByteString value) {
1037 if (value == null) { throw new NullPointerException(); }
1038 name_ = value;
1039 bitField0_ |= 0x00000001;
1040 onChanged();
1041 return this;
1042 }
1043
1044 private int numVariables_ ;
1055 @java.lang.Override
1056 public boolean hasNumVariables() {
1057 return ((bitField0_ & 0x00000002) != 0);
1058 }
1059
1069 @java.lang.Override
1070 public int getNumVariables() {
1071 return numVariables_;
1072 }
1073
1084 public Builder setNumVariables(int value) {
1085
1086 numVariables_ = value;
1087 bitField0_ |= 0x00000002;
1088 onChanged();
1089 return this;
1090 }
1091
1101 public Builder clearNumVariables() {
1102 bitField0_ = (bitField0_ & ~0x00000002);
1103 numVariables_ = 0;
1104 onChanged();
1105 return this;
1106 }
1107
1108 private java.util.List<com.google.ortools.sat.LinearBooleanConstraint> constraints_ =
1109 java.util.Collections.emptyList();
1110 private void ensureConstraintsIsMutable() {
1111 if (!((bitField0_ & 0x00000004) != 0)) {
1112 constraints_ = new java.util.ArrayList<com.google.ortools.sat.LinearBooleanConstraint>(constraints_);
1113 bitField0_ |= 0x00000004;
1114 }
1115 }
1116
1117 private com.google.protobuf.RepeatedFieldBuilder<
1118 com.google.ortools.sat.LinearBooleanConstraint, com.google.ortools.sat.LinearBooleanConstraint.Builder, com.google.ortools.sat.LinearBooleanConstraintOrBuilder> constraintsBuilder_;
1119
1127 public java.util.List<com.google.ortools.sat.LinearBooleanConstraint> getConstraintsList() {
1128 if (constraintsBuilder_ == null) {
1129 return java.util.Collections.unmodifiableList(constraints_);
1130 } else {
1131 return constraintsBuilder_.getMessageList();
1132 }
1133 }
1134
1141 public int getConstraintsCount() {
1142 if (constraintsBuilder_ == null) {
1143 return constraints_.size();
1144 } else {
1145 return constraintsBuilder_.getCount();
1146 }
1147 }
1148
1156 if (constraintsBuilder_ == null) {
1157 return constraints_.get(index);
1158 } else {
1159 return constraintsBuilder_.getMessage(index);
1160 }
1161 }
1162
1169 public Builder setConstraints(
1170 int index, com.google.ortools.sat.LinearBooleanConstraint value) {
1171 if (constraintsBuilder_ == null) {
1172 if (value == null) {
1173 throw new NullPointerException();
1174 }
1175 ensureConstraintsIsMutable();
1176 constraints_.set(index, value);
1177 onChanged();
1178 } else {
1179 constraintsBuilder_.setMessage(index, value);
1180 }
1181 return this;
1182 }
1183
1190 public Builder setConstraints(
1191 int index, com.google.ortools.sat.LinearBooleanConstraint.Builder builderForValue) {
1192 if (constraintsBuilder_ == null) {
1193 ensureConstraintsIsMutable();
1194 constraints_.set(index, builderForValue.build());
1195 onChanged();
1196 } else {
1197 constraintsBuilder_.setMessage(index, builderForValue.build());
1198 }
1199 return this;
1200 }
1201
1208 public Builder addConstraints(com.google.ortools.sat.LinearBooleanConstraint value) {
1209 if (constraintsBuilder_ == null) {
1210 if (value == null) {
1211 throw new NullPointerException();
1212 }
1213 ensureConstraintsIsMutable();
1214 constraints_.add(value);
1215 onChanged();
1216 } else {
1217 constraintsBuilder_.addMessage(value);
1218 }
1219 return this;
1220 }
1221
1228 public Builder addConstraints(
1229 int index, com.google.ortools.sat.LinearBooleanConstraint value) {
1230 if (constraintsBuilder_ == null) {
1231 if (value == null) {
1232 throw new NullPointerException();
1233 }
1234 ensureConstraintsIsMutable();
1235 constraints_.add(index, value);
1236 onChanged();
1237 } else {
1238 constraintsBuilder_.addMessage(index, value);
1239 }
1240 return this;
1241 }
1242
1249 public Builder addConstraints(
1250 com.google.ortools.sat.LinearBooleanConstraint.Builder builderForValue) {
1251 if (constraintsBuilder_ == null) {
1252 ensureConstraintsIsMutable();
1253 constraints_.add(builderForValue.build());
1254 onChanged();
1255 } else {
1256 constraintsBuilder_.addMessage(builderForValue.build());
1257 }
1258 return this;
1259 }
1260
1267 public Builder addConstraints(
1268 int index, com.google.ortools.sat.LinearBooleanConstraint.Builder builderForValue) {
1269 if (constraintsBuilder_ == null) {
1270 ensureConstraintsIsMutable();
1271 constraints_.add(index, builderForValue.build());
1272 onChanged();
1273 } else {
1274 constraintsBuilder_.addMessage(index, builderForValue.build());
1275 }
1276 return this;
1277 }
1278
1285 public Builder addAllConstraints(
1286 java.lang.Iterable<? extends com.google.ortools.sat.LinearBooleanConstraint> values) {
1287 if (constraintsBuilder_ == null) {
1288 ensureConstraintsIsMutable();
1289 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1290 values, constraints_);
1291 onChanged();
1292 } else {
1293 constraintsBuilder_.addAllMessages(values);
1294 }
1295 return this;
1296 }
1297
1304 public Builder clearConstraints() {
1305 if (constraintsBuilder_ == null) {
1306 constraints_ = java.util.Collections.emptyList();
1307 bitField0_ = (bitField0_ & ~0x00000004);
1308 onChanged();
1309 } else {
1310 constraintsBuilder_.clear();
1311 }
1312 return this;
1313 }
1314
1321 public Builder removeConstraints(int index) {
1322 if (constraintsBuilder_ == null) {
1323 ensureConstraintsIsMutable();
1324 constraints_.remove(index);
1325 onChanged();
1326 } else {
1327 constraintsBuilder_.remove(index);
1328 }
1329 return this;
1330 }
1331
1339 int index) {
1340 return getConstraintsFieldBuilder().getBuilder(index);
1341 }
1342
1350 int index) {
1351 if (constraintsBuilder_ == null) {
1352 return constraints_.get(index); } else {
1353 return constraintsBuilder_.getMessageOrBuilder(index);
1354 }
1355 }
1356
1363 public java.util.List<? extends com.google.ortools.sat.LinearBooleanConstraintOrBuilder>
1365 if (constraintsBuilder_ != null) {
1366 return constraintsBuilder_.getMessageOrBuilderList();
1367 } else {
1368 return java.util.Collections.unmodifiableList(constraints_);
1369 }
1370 }
1371
1379 return getConstraintsFieldBuilder().addBuilder(
1380 com.google.ortools.sat.LinearBooleanConstraint.getDefaultInstance());
1381 }
1382
1390 int index) {
1391 return getConstraintsFieldBuilder().addBuilder(
1392 index, com.google.ortools.sat.LinearBooleanConstraint.getDefaultInstance());
1393 }
1394
1401 public java.util.List<com.google.ortools.sat.LinearBooleanConstraint.Builder>
1403 return getConstraintsFieldBuilder().getBuilderList();
1404 }
1405 private com.google.protobuf.RepeatedFieldBuilder<
1406 com.google.ortools.sat.LinearBooleanConstraint, com.google.ortools.sat.LinearBooleanConstraint.Builder, com.google.ortools.sat.LinearBooleanConstraintOrBuilder>
1407 getConstraintsFieldBuilder() {
1408 if (constraintsBuilder_ == null) {
1409 constraintsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
1410 com.google.ortools.sat.LinearBooleanConstraint, com.google.ortools.sat.LinearBooleanConstraint.Builder, com.google.ortools.sat.LinearBooleanConstraintOrBuilder>(
1411 constraints_,
1412 ((bitField0_ & 0x00000004) != 0),
1413 getParentForChildren(),
1414 isClean());
1415 constraints_ = null;
1416 }
1417 return constraintsBuilder_;
1418 }
1419
1420 private com.google.ortools.sat.LinearObjective objective_;
1421 private com.google.protobuf.SingleFieldBuilder<
1422 com.google.ortools.sat.LinearObjective, com.google.ortools.sat.LinearObjective.Builder, com.google.ortools.sat.LinearObjectiveOrBuilder> objectiveBuilder_;
1432 public boolean hasObjective() {
1433 return ((bitField0_ & 0x00000008) != 0);
1434 }
1435
1445 if (objectiveBuilder_ == null) {
1446 return objective_ == null ? com.google.ortools.sat.LinearObjective.getDefaultInstance() : objective_;
1447 } else {
1448 return objectiveBuilder_.getMessage();
1449 }
1450 }
1451
1459 public Builder setObjective(com.google.ortools.sat.LinearObjective value) {
1460 if (objectiveBuilder_ == null) {
1461 if (value == null) {
1462 throw new NullPointerException();
1463 }
1464 objective_ = value;
1465 } else {
1466 objectiveBuilder_.setMessage(value);
1467 }
1468 bitField0_ |= 0x00000008;
1469 onChanged();
1470 return this;
1471 }
1472
1480 public Builder setObjective(
1481 com.google.ortools.sat.LinearObjective.Builder builderForValue) {
1482 if (objectiveBuilder_ == null) {
1483 objective_ = builderForValue.build();
1484 } else {
1485 objectiveBuilder_.setMessage(builderForValue.build());
1486 }
1487 bitField0_ |= 0x00000008;
1488 onChanged();
1489 return this;
1490 }
1491
1499 public Builder mergeObjective(com.google.ortools.sat.LinearObjective value) {
1500 if (objectiveBuilder_ == null) {
1501 if (((bitField0_ & 0x00000008) != 0) &&
1502 objective_ != null &&
1503 objective_ != com.google.ortools.sat.LinearObjective.getDefaultInstance()) {
1504 getObjectiveBuilder().mergeFrom(value);
1505 } else {
1506 objective_ = value;
1507 }
1508 } else {
1509 objectiveBuilder_.mergeFrom(value);
1510 }
1511 if (objective_ != null) {
1512 bitField0_ |= 0x00000008;
1513 onChanged();
1514 }
1515 return this;
1516 }
1517
1525 public Builder clearObjective() {
1526 bitField0_ = (bitField0_ & ~0x00000008);
1527 objective_ = null;
1528 if (objectiveBuilder_ != null) {
1529 objectiveBuilder_.dispose();
1530 objectiveBuilder_ = null;
1531 }
1532 onChanged();
1533 return this;
1534 }
1535
1544 bitField0_ |= 0x00000008;
1545 onChanged();
1546 return getObjectiveFieldBuilder().getBuilder();
1547 }
1548
1557 if (objectiveBuilder_ != null) {
1558 return objectiveBuilder_.getMessageOrBuilder();
1559 } else {
1560 return objective_ == null ?
1561 com.google.ortools.sat.LinearObjective.getDefaultInstance() : objective_;
1562 }
1563 }
1564
1572 private com.google.protobuf.SingleFieldBuilder<
1573 com.google.ortools.sat.LinearObjective, com.google.ortools.sat.LinearObjective.Builder, com.google.ortools.sat.LinearObjectiveOrBuilder>
1574 getObjectiveFieldBuilder() {
1575 if (objectiveBuilder_ == null) {
1576 objectiveBuilder_ = new com.google.protobuf.SingleFieldBuilder<
1577 com.google.ortools.sat.LinearObjective, com.google.ortools.sat.LinearObjective.Builder, com.google.ortools.sat.LinearObjectiveOrBuilder>(
1578 getObjective(),
1579 getParentForChildren(),
1580 isClean());
1581 objective_ = null;
1582 }
1583 return objectiveBuilder_;
1584 }
1585
1586 private com.google.protobuf.LazyStringArrayList varNames_ =
1587 com.google.protobuf.LazyStringArrayList.emptyList();
1588 private void ensureVarNamesIsMutable() {
1589 if (!varNames_.isModifiable()) {
1590 varNames_ = new com.google.protobuf.LazyStringArrayList(varNames_);
1591 }
1592 bitField0_ |= 0x00000010;
1593 }
1604 public com.google.protobuf.ProtocolStringList
1606 varNames_.makeImmutable();
1607 return varNames_;
1608 }
1609
1619 public int getVarNamesCount() {
1620 return varNames_.size();
1621 }
1622
1633 public java.lang.String getVarNames(int index) {
1634 return varNames_.get(index);
1635 }
1636
1647 public com.google.protobuf.ByteString
1648 getVarNamesBytes(int index) {
1649 return varNames_.getByteString(index);
1650 }
1651
1663 public Builder setVarNames(
1664 int index, java.lang.String value) {
1665 if (value == null) { throw new NullPointerException(); }
1666 ensureVarNamesIsMutable();
1667 varNames_.set(index, value);
1668 bitField0_ |= 0x00000010;
1669 onChanged();
1670 return this;
1671 }
1672
1683 public Builder addVarNames(
1684 java.lang.String value) {
1685 if (value == null) { throw new NullPointerException(); }
1686 ensureVarNamesIsMutable();
1687 varNames_.add(value);
1688 bitField0_ |= 0x00000010;
1689 onChanged();
1690 return this;
1691 }
1692
1703 public Builder addAllVarNames(
1704 java.lang.Iterable<java.lang.String> values) {
1705 ensureVarNamesIsMutable();
1706 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1707 values, varNames_);
1708 bitField0_ |= 0x00000010;
1709 onChanged();
1710 return this;
1711 }
1712
1722 public Builder clearVarNames() {
1723 varNames_ =
1724 com.google.protobuf.LazyStringArrayList.emptyList();
1725 bitField0_ = (bitField0_ & ~0x00000010);;
1726 onChanged();
1727 return this;
1728 }
1729
1740 public Builder addVarNamesBytes(
1741 com.google.protobuf.ByteString value) {
1742 if (value == null) { throw new NullPointerException(); }
1743 ensureVarNamesIsMutable();
1744 varNames_.add(value);
1745 bitField0_ |= 0x00000010;
1746 onChanged();
1747 return this;
1748 }
1749
1750 private com.google.ortools.sat.BooleanAssignment assignment_;
1751 private com.google.protobuf.SingleFieldBuilder<
1752 com.google.ortools.sat.BooleanAssignment, com.google.ortools.sat.BooleanAssignment.Builder, com.google.ortools.sat.BooleanAssignmentOrBuilder> assignmentBuilder_;
1762 public boolean hasAssignment() {
1763 return ((bitField0_ & 0x00000020) != 0);
1764 }
1765
1775 if (assignmentBuilder_ == null) {
1776 return assignment_ == null ? com.google.ortools.sat.BooleanAssignment.getDefaultInstance() : assignment_;
1777 } else {
1778 return assignmentBuilder_.getMessage();
1779 }
1780 }
1781
1789 public Builder setAssignment(com.google.ortools.sat.BooleanAssignment value) {
1790 if (assignmentBuilder_ == null) {
1791 if (value == null) {
1792 throw new NullPointerException();
1793 }
1794 assignment_ = value;
1795 } else {
1796 assignmentBuilder_.setMessage(value);
1797 }
1798 bitField0_ |= 0x00000020;
1799 onChanged();
1800 return this;
1801 }
1802
1810 public Builder setAssignment(
1811 com.google.ortools.sat.BooleanAssignment.Builder builderForValue) {
1812 if (assignmentBuilder_ == null) {
1813 assignment_ = builderForValue.build();
1814 } else {
1815 assignmentBuilder_.setMessage(builderForValue.build());
1816 }
1817 bitField0_ |= 0x00000020;
1818 onChanged();
1819 return this;
1820 }
1821
1829 public Builder mergeAssignment(com.google.ortools.sat.BooleanAssignment value) {
1830 if (assignmentBuilder_ == null) {
1831 if (((bitField0_ & 0x00000020) != 0) &&
1832 assignment_ != null &&
1833 assignment_ != com.google.ortools.sat.BooleanAssignment.getDefaultInstance()) {
1834 getAssignmentBuilder().mergeFrom(value);
1835 } else {
1836 assignment_ = value;
1837 }
1838 } else {
1839 assignmentBuilder_.mergeFrom(value);
1840 }
1841 if (assignment_ != null) {
1842 bitField0_ |= 0x00000020;
1843 onChanged();
1844 }
1845 return this;
1846 }
1847
1855 public Builder clearAssignment() {
1856 bitField0_ = (bitField0_ & ~0x00000020);
1857 assignment_ = null;
1858 if (assignmentBuilder_ != null) {
1859 assignmentBuilder_.dispose();
1860 assignmentBuilder_ = null;
1861 }
1862 onChanged();
1863 return this;
1864 }
1865
1874 bitField0_ |= 0x00000020;
1875 onChanged();
1876 return getAssignmentFieldBuilder().getBuilder();
1877 }
1878
1887 if (assignmentBuilder_ != null) {
1888 return assignmentBuilder_.getMessageOrBuilder();
1889 } else {
1890 return assignment_ == null ?
1891 com.google.ortools.sat.BooleanAssignment.getDefaultInstance() : assignment_;
1892 }
1893 }
1894
1902 private com.google.protobuf.SingleFieldBuilder<
1903 com.google.ortools.sat.BooleanAssignment, com.google.ortools.sat.BooleanAssignment.Builder, com.google.ortools.sat.BooleanAssignmentOrBuilder>
1904 getAssignmentFieldBuilder() {
1905 if (assignmentBuilder_ == null) {
1906 assignmentBuilder_ = new com.google.protobuf.SingleFieldBuilder<
1907 com.google.ortools.sat.BooleanAssignment, com.google.ortools.sat.BooleanAssignment.Builder, com.google.ortools.sat.BooleanAssignmentOrBuilder>(
1908 getAssignment(),
1909 getParentForChildren(),
1910 isClean());
1911 assignment_ = null;
1912 }
1913 return assignmentBuilder_;
1914 }
1915
1916 private int originalNumVariables_ ;
1928 @java.lang.Override
1929 public boolean hasOriginalNumVariables() {
1930 return ((bitField0_ & 0x00000040) != 0);
1931 }
1932
1943 @java.lang.Override
1945 return originalNumVariables_;
1946 }
1947
1959 public Builder setOriginalNumVariables(int value) {
1960
1961 originalNumVariables_ = value;
1962 bitField0_ |= 0x00000040;
1963 onChanged();
1964 return this;
1965 }
1966
1977 public Builder clearOriginalNumVariables() {
1978 bitField0_ = (bitField0_ & ~0x00000040);
1979 originalNumVariables_ = 0;
1980 onChanged();
1981 return this;
1982 }
1983
1984 // @@protoc_insertion_point(builder_scope:operations_research.sat.LinearBooleanProblem)
1985 }
1986
1987 // @@protoc_insertion_point(class_scope:operations_research.sat.LinearBooleanProblem)
1988 private static final com.google.ortools.sat.LinearBooleanProblem DEFAULT_INSTANCE;
1989 static {
1990 DEFAULT_INSTANCE = new com.google.ortools.sat.LinearBooleanProblem();
1991 }
1992
1994 return DEFAULT_INSTANCE;
1995 }
1996
1997 private static final com.google.protobuf.Parser<LinearBooleanProblem>
1998 PARSER = new com.google.protobuf.AbstractParser<LinearBooleanProblem>() {
1999 @java.lang.Override
2000 public LinearBooleanProblem parsePartialFrom(
2001 com.google.protobuf.CodedInputStream input,
2002 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2003 throws com.google.protobuf.InvalidProtocolBufferException {
2004 Builder builder = newBuilder();
2005 try {
2006 builder.mergeFrom(input, extensionRegistry);
2007 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2008 throw e.setUnfinishedMessage(builder.buildPartial());
2009 } catch (com.google.protobuf.UninitializedMessageException e) {
2010 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
2011 } catch (java.io.IOException e) {
2012 throw new com.google.protobuf.InvalidProtocolBufferException(e)
2013 .setUnfinishedMessage(builder.buildPartial());
2014 }
2015 return builder.buildPartial();
2016 }
2017 };
2018
2019 public static com.google.protobuf.Parser<LinearBooleanProblem> parser() {
2020 return PARSER;
2021 }
2022
2023 @java.lang.Override
2024 public com.google.protobuf.Parser<LinearBooleanProblem> getParserForType() {
2025 return PARSER;
2026 }
2027
2028 @java.lang.Override
2030 return DEFAULT_INSTANCE;
2031 }
2032
2033}
2034
Builder setConstraints(int index, com.google.ortools.sat.LinearBooleanConstraint value)
com.google.ortools.sat.LinearObjective getObjective()
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
java.util.List< com.google.ortools.sat.LinearBooleanConstraint > getConstraintsList()
java.util.List<? extends com.google.ortools.sat.LinearBooleanConstraintOrBuilder > getConstraintsOrBuilderList()
Builder mergeFrom(com.google.ortools.sat.LinearBooleanProblem other)
com.google.ortools.sat.LinearObjective.Builder getObjectiveBuilder()
com.google.ortools.sat.LinearBooleanConstraint.Builder addConstraintsBuilder(int index)
com.google.protobuf.ByteString getVarNamesBytes(int index)
Builder mergeAssignment(com.google.ortools.sat.BooleanAssignment value)
java.util.List< com.google.ortools.sat.LinearBooleanConstraint.Builder > getConstraintsBuilderList()
com.google.ortools.sat.LinearBooleanProblem getDefaultInstanceForType()
Builder addConstraints(int index, com.google.ortools.sat.LinearBooleanConstraint value)
Builder setNameBytes(com.google.protobuf.ByteString value)
com.google.protobuf.ProtocolStringList getVarNamesList()
com.google.ortools.sat.LinearBooleanProblem build()
com.google.ortools.sat.BooleanAssignmentOrBuilder getAssignmentOrBuilder()
Builder setObjective(com.google.ortools.sat.LinearObjective.Builder builderForValue)
Builder setObjective(com.google.ortools.sat.LinearObjective value)
com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
Builder setAssignment(com.google.ortools.sat.BooleanAssignment.Builder builderForValue)
Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.sat.LinearBooleanConstraint getConstraints(int index)
Builder addConstraints(int index, com.google.ortools.sat.LinearBooleanConstraint.Builder builderForValue)
Builder mergeFrom(com.google.protobuf.Message other)
Builder addConstraints(com.google.ortools.sat.LinearBooleanConstraint value)
Builder setConstraints(int index, com.google.ortools.sat.LinearBooleanConstraint.Builder builderForValue)
com.google.ortools.sat.LinearBooleanProblem buildPartial()
Builder setAssignment(com.google.ortools.sat.BooleanAssignment value)
com.google.ortools.sat.LinearBooleanConstraint.Builder addConstraintsBuilder()
com.google.ortools.sat.LinearBooleanConstraintOrBuilder getConstraintsOrBuilder(int index)
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Builder addConstraints(com.google.ortools.sat.LinearBooleanConstraint.Builder builderForValue)
com.google.ortools.sat.BooleanAssignment getAssignment()
Builder addVarNamesBytes(com.google.protobuf.ByteString value)
Builder setVarNames(int index, java.lang.String value)
com.google.ortools.sat.LinearObjectiveOrBuilder getObjectiveOrBuilder()
com.google.ortools.sat.BooleanAssignment.Builder getAssignmentBuilder()
Builder addAllConstraints(java.lang.Iterable<? extends com.google.ortools.sat.LinearBooleanConstraint > values)
Builder addAllVarNames(java.lang.Iterable< java.lang.String > values)
Builder mergeObjective(com.google.ortools.sat.LinearObjective value)
com.google.ortools.sat.LinearBooleanConstraint.Builder getConstraintsBuilder(int index)
static com.google.protobuf.Parser< LinearBooleanProblem > parser()
static com.google.ortools.sat.LinearBooleanProblem parseFrom(java.io.InputStream input)
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
static com.google.ortools.sat.LinearBooleanProblem parseFrom(byte[] data)
static com.google.ortools.sat.LinearBooleanProblem parseFrom(com.google.protobuf.CodedInputStream input)
com.google.ortools.sat.BooleanAssignment getAssignment()
com.google.ortools.sat.LinearObjectiveOrBuilder getObjectiveOrBuilder()
static com.google.ortools.sat.LinearBooleanProblem parseFrom(com.google.protobuf.ByteString data)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
static com.google.ortools.sat.LinearBooleanProblem parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.sat.LinearBooleanProblem parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.sat.LinearBooleanProblem parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.sat.LinearBooleanProblem parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
java.util.List<? extends com.google.ortools.sat.LinearBooleanConstraintOrBuilder > getConstraintsOrBuilderList()
static com.google.ortools.sat.LinearBooleanProblem parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
static com.google.ortools.sat.LinearBooleanProblem parseDelimitedFrom(java.io.InputStream input)
void writeTo(com.google.protobuf.CodedOutputStream output)
com.google.ortools.sat.LinearBooleanProblem getDefaultInstanceForType()
java.util.List< com.google.ortools.sat.LinearBooleanConstraint > getConstraintsList()
com.google.protobuf.Parser< LinearBooleanProblem > getParserForType()
static com.google.ortools.sat.LinearBooleanProblem parseFrom(java.nio.ByteBuffer data)
static Builder newBuilder(com.google.ortools.sat.LinearBooleanProblem prototype)
static com.google.ortools.sat.LinearBooleanProblem parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
boolean equals(final java.lang.Object obj)
com.google.ortools.sat.LinearObjective getObjective()
com.google.protobuf.ByteString getVarNamesBytes(int index)
com.google.protobuf.ProtocolStringList getVarNamesList()
com.google.ortools.sat.LinearBooleanConstraintOrBuilder getConstraintsOrBuilder(int index)
com.google.ortools.sat.BooleanAssignmentOrBuilder getAssignmentOrBuilder()
com.google.ortools.sat.LinearBooleanConstraint getConstraints(int index)
static com.google.ortools.sat.LinearBooleanProblem getDefaultInstance()