Google OR-Tools v9.9
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// source: ortools/sat/boolean_problem.proto
3
4// Protobuf Java Version: 3.25.3
5package com.google.ortools.sat;
6
14public final class LinearBooleanProblem extends
15 com.google.protobuf.GeneratedMessageV3 implements
16 // @@protoc_insertion_point(message_implements:operations_research.sat.LinearBooleanProblem)
18private static final long serialVersionUID = 0L;
19 // Use LinearBooleanProblem.newBuilder() to construct.
20 private LinearBooleanProblem(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
21 super(builder);
22 }
23 private LinearBooleanProblem() {
24 name_ = "";
25 constraints_ = java.util.Collections.emptyList();
26 varNames_ =
27 com.google.protobuf.LazyStringArrayList.emptyList();
28 }
29
30 @java.lang.Override
31 @SuppressWarnings({"unused"})
32 protected java.lang.Object newInstance(
33 UnusedPrivateParameter unused) {
34 return new LinearBooleanProblem();
35 }
36
37 public static final com.google.protobuf.Descriptors.Descriptor
39 return com.google.ortools.sat.BooleanProblem.internal_static_operations_research_sat_LinearBooleanProblem_descriptor;
40 }
41
42 @java.lang.Override
43 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
45 return com.google.ortools.sat.BooleanProblem.internal_static_operations_research_sat_LinearBooleanProblem_fieldAccessorTable
46 .ensureFieldAccessorsInitialized(
47 com.google.ortools.sat.LinearBooleanProblem.class, com.google.ortools.sat.LinearBooleanProblem.Builder.class);
48 }
49
50 private int bitField0_;
51 public static final int NAME_FIELD_NUMBER = 1;
52 @SuppressWarnings("serial")
53 private volatile java.lang.Object name_ = "";
62 @java.lang.Override
63 public boolean hasName() {
64 return ((bitField0_ & 0x00000001) != 0);
65 }
74 @java.lang.Override
75 public java.lang.String getName() {
76 java.lang.Object ref = name_;
77 if (ref instanceof java.lang.String) {
78 return (java.lang.String) ref;
79 } else {
80 com.google.protobuf.ByteString bs =
81 (com.google.protobuf.ByteString) ref;
82 java.lang.String s = bs.toStringUtf8();
83 if (bs.isValidUtf8()) {
84 name_ = s;
85 }
86 return s;
87 }
88 }
97 @java.lang.Override
98 public com.google.protobuf.ByteString
100 java.lang.Object ref = name_;
101 if (ref instanceof java.lang.String) {
102 com.google.protobuf.ByteString b =
103 com.google.protobuf.ByteString.copyFromUtf8(
104 (java.lang.String) ref);
105 name_ = b;
106 return b;
107 } else {
108 return (com.google.protobuf.ByteString) ref;
109 }
110 }
111
112 public static final int NUM_VARIABLES_FIELD_NUMBER = 3;
113 private int numVariables_ = 0;
124 @java.lang.Override
125 public boolean hasNumVariables() {
126 return ((bitField0_ & 0x00000002) != 0);
127 }
138 @java.lang.Override
139 public int getNumVariables() {
140 return numVariables_;
141 }
142
143 public static final int CONSTRAINTS_FIELD_NUMBER = 4;
144 @SuppressWarnings("serial")
145 private java.util.List<com.google.ortools.sat.LinearBooleanConstraint> constraints_;
153 @java.lang.Override
154 public java.util.List<com.google.ortools.sat.LinearBooleanConstraint> getConstraintsList() {
155 return constraints_;
156 }
164 @java.lang.Override
165 public java.util.List<? extends com.google.ortools.sat.LinearBooleanConstraintOrBuilder>
167 return constraints_;
168 }
176 @java.lang.Override
177 public int getConstraintsCount() {
178 return constraints_.size();
179 }
187 @java.lang.Override
189 return constraints_.get(index);
190 }
198 @java.lang.Override
200 int index) {
201 return constraints_.get(index);
202 }
203
204 public static final int OBJECTIVE_FIELD_NUMBER = 5;
215 @java.lang.Override
216 public boolean hasObjective() {
217 return ((bitField0_ & 0x00000004) != 0);
218 }
228 @java.lang.Override
230 return objective_ == null ? com.google.ortools.sat.LinearObjective.getDefaultInstance() : objective_;
231 }
240 @java.lang.Override
242 return objective_ == null ? com.google.ortools.sat.LinearObjective.getDefaultInstance() : objective_;
243 }
244
245 public static final int VAR_NAMES_FIELD_NUMBER = 6;
246 @SuppressWarnings("serial")
247 private com.google.protobuf.LazyStringArrayList varNames_ =
248 com.google.protobuf.LazyStringArrayList.emptyList();
259 public com.google.protobuf.ProtocolStringList
261 return varNames_;
262 }
273 public int getVarNamesCount() {
274 return varNames_.size();
275 }
287 public java.lang.String getVarNames(int index) {
288 return varNames_.get(index);
289 }
301 public com.google.protobuf.ByteString
302 getVarNamesBytes(int index) {
303 return varNames_.getByteString(index);
304 }
305
306 public static final int ASSIGNMENT_FIELD_NUMBER = 7;
317 @java.lang.Override
318 public boolean hasAssignment() {
319 return ((bitField0_ & 0x00000008) != 0);
320 }
330 @java.lang.Override
332 return assignment_ == null ? com.google.ortools.sat.BooleanAssignment.getDefaultInstance() : assignment_;
333 }
342 @java.lang.Override
344 return assignment_ == null ? com.google.ortools.sat.BooleanAssignment.getDefaultInstance() : assignment_;
345 }
346
347 public static final int ORIGINAL_NUM_VARIABLES_FIELD_NUMBER = 8;
348 private int originalNumVariables_ = 0;
360 @java.lang.Override
361 public boolean hasOriginalNumVariables() {
362 return ((bitField0_ & 0x00000010) != 0);
363 }
375 @java.lang.Override
377 return originalNumVariables_;
378 }
379
380 private byte memoizedIsInitialized = -1;
381 @java.lang.Override
382 public final boolean isInitialized() {
383 byte isInitialized = memoizedIsInitialized;
384 if (isInitialized == 1) return true;
385 if (isInitialized == 0) return false;
386
387 memoizedIsInitialized = 1;
388 return true;
389 }
390
391 @java.lang.Override
392 public void writeTo(com.google.protobuf.CodedOutputStream output)
393 throws java.io.IOException {
394 if (((bitField0_ & 0x00000001) != 0)) {
395 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
396 }
397 if (((bitField0_ & 0x00000002) != 0)) {
398 output.writeInt32(3, numVariables_);
399 }
400 for (int i = 0; i < constraints_.size(); i++) {
401 output.writeMessage(4, constraints_.get(i));
402 }
403 if (((bitField0_ & 0x00000004) != 0)) {
404 output.writeMessage(5, getObjective());
405 }
406 for (int i = 0; i < varNames_.size(); i++) {
407 com.google.protobuf.GeneratedMessageV3.writeString(output, 6, varNames_.getRaw(i));
408 }
409 if (((bitField0_ & 0x00000008) != 0)) {
410 output.writeMessage(7, getAssignment());
411 }
412 if (((bitField0_ & 0x00000010) != 0)) {
413 output.writeInt32(8, originalNumVariables_);
414 }
415 getUnknownFields().writeTo(output);
416 }
417
418 @java.lang.Override
419 public int getSerializedSize() {
420 int size = memoizedSize;
421 if (size != -1) return size;
422
423 size = 0;
424 if (((bitField0_ & 0x00000001) != 0)) {
425 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
426 }
427 if (((bitField0_ & 0x00000002) != 0)) {
428 size += com.google.protobuf.CodedOutputStream
429 .computeInt32Size(3, numVariables_);
430 }
431 for (int i = 0; i < constraints_.size(); i++) {
432 size += com.google.protobuf.CodedOutputStream
433 .computeMessageSize(4, constraints_.get(i));
434 }
435 if (((bitField0_ & 0x00000004) != 0)) {
436 size += com.google.protobuf.CodedOutputStream
437 .computeMessageSize(5, getObjective());
438 }
439 {
440 int dataSize = 0;
441 for (int i = 0; i < varNames_.size(); i++) {
442 dataSize += computeStringSizeNoTag(varNames_.getRaw(i));
443 }
444 size += dataSize;
445 size += 1 * getVarNamesList().size();
446 }
447 if (((bitField0_ & 0x00000008) != 0)) {
448 size += com.google.protobuf.CodedOutputStream
449 .computeMessageSize(7, getAssignment());
450 }
451 if (((bitField0_ & 0x00000010) != 0)) {
452 size += com.google.protobuf.CodedOutputStream
453 .computeInt32Size(8, originalNumVariables_);
454 }
455 size += getUnknownFields().getSerializedSize();
456 memoizedSize = size;
457 return size;
458 }
459
460 @java.lang.Override
461 public boolean equals(final java.lang.Object obj) {
462 if (obj == this) {
463 return true;
464 }
465 if (!(obj instanceof com.google.ortools.sat.LinearBooleanProblem)) {
466 return super.equals(obj);
467 }
468 com.google.ortools.sat.LinearBooleanProblem other = (com.google.ortools.sat.LinearBooleanProblem) obj;
469
470 if (hasName() != other.hasName()) return false;
471 if (hasName()) {
472 if (!getName()
473 .equals(other.getName())) return false;
474 }
475 if (hasNumVariables() != other.hasNumVariables()) return false;
476 if (hasNumVariables()) {
477 if (getNumVariables()
478 != other.getNumVariables()) return false;
479 }
480 if (!getConstraintsList()
481 .equals(other.getConstraintsList())) return false;
482 if (hasObjective() != other.hasObjective()) return false;
483 if (hasObjective()) {
484 if (!getObjective()
485 .equals(other.getObjective())) return false;
486 }
487 if (!getVarNamesList()
488 .equals(other.getVarNamesList())) return false;
489 if (hasAssignment() != other.hasAssignment()) return false;
490 if (hasAssignment()) {
491 if (!getAssignment()
492 .equals(other.getAssignment())) return false;
493 }
494 if (hasOriginalNumVariables() != other.hasOriginalNumVariables()) return false;
497 != other.getOriginalNumVariables()) return false;
498 }
499 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
500 return true;
501 }
502
503 @java.lang.Override
504 public int hashCode() {
505 if (memoizedHashCode != 0) {
506 return memoizedHashCode;
507 }
508 int hash = 41;
509 hash = (19 * hash) + getDescriptor().hashCode();
510 if (hasName()) {
511 hash = (37 * hash) + NAME_FIELD_NUMBER;
512 hash = (53 * hash) + getName().hashCode();
513 }
514 if (hasNumVariables()) {
515 hash = (37 * hash) + NUM_VARIABLES_FIELD_NUMBER;
516 hash = (53 * hash) + getNumVariables();
517 }
518 if (getConstraintsCount() > 0) {
519 hash = (37 * hash) + CONSTRAINTS_FIELD_NUMBER;
520 hash = (53 * hash) + getConstraintsList().hashCode();
521 }
522 if (hasObjective()) {
523 hash = (37 * hash) + OBJECTIVE_FIELD_NUMBER;
524 hash = (53 * hash) + getObjective().hashCode();
525 }
526 if (getVarNamesCount() > 0) {
527 hash = (37 * hash) + VAR_NAMES_FIELD_NUMBER;
528 hash = (53 * hash) + getVarNamesList().hashCode();
529 }
530 if (hasAssignment()) {
531 hash = (37 * hash) + ASSIGNMENT_FIELD_NUMBER;
532 hash = (53 * hash) + getAssignment().hashCode();
533 }
535 hash = (37 * hash) + ORIGINAL_NUM_VARIABLES_FIELD_NUMBER;
536 hash = (53 * hash) + getOriginalNumVariables();
537 }
538 hash = (29 * hash) + getUnknownFields().hashCode();
539 memoizedHashCode = hash;
540 return hash;
541 }
542
544 java.nio.ByteBuffer data)
545 throws com.google.protobuf.InvalidProtocolBufferException {
546 return PARSER.parseFrom(data);
547 }
549 java.nio.ByteBuffer data,
550 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
551 throws com.google.protobuf.InvalidProtocolBufferException {
552 return PARSER.parseFrom(data, extensionRegistry);
553 }
555 com.google.protobuf.ByteString data)
556 throws com.google.protobuf.InvalidProtocolBufferException {
557 return PARSER.parseFrom(data);
558 }
560 com.google.protobuf.ByteString data,
561 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
562 throws com.google.protobuf.InvalidProtocolBufferException {
563 return PARSER.parseFrom(data, extensionRegistry);
564 }
566 throws com.google.protobuf.InvalidProtocolBufferException {
567 return PARSER.parseFrom(data);
568 }
570 byte[] data,
571 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
572 throws com.google.protobuf.InvalidProtocolBufferException {
573 return PARSER.parseFrom(data, extensionRegistry);
574 }
575 public static com.google.ortools.sat.LinearBooleanProblem parseFrom(java.io.InputStream input)
576 throws java.io.IOException {
577 return com.google.protobuf.GeneratedMessageV3
578 .parseWithIOException(PARSER, input);
579 }
581 java.io.InputStream input,
582 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
583 throws java.io.IOException {
584 return com.google.protobuf.GeneratedMessageV3
585 .parseWithIOException(PARSER, input, extensionRegistry);
586 }
587
589 throws java.io.IOException {
590 return com.google.protobuf.GeneratedMessageV3
591 .parseDelimitedWithIOException(PARSER, input);
592 }
593
595 java.io.InputStream input,
596 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
597 throws java.io.IOException {
598 return com.google.protobuf.GeneratedMessageV3
599 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
600 }
602 com.google.protobuf.CodedInputStream input)
603 throws java.io.IOException {
604 return com.google.protobuf.GeneratedMessageV3
605 .parseWithIOException(PARSER, input);
606 }
608 com.google.protobuf.CodedInputStream input,
609 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
610 throws java.io.IOException {
611 return com.google.protobuf.GeneratedMessageV3
612 .parseWithIOException(PARSER, input, extensionRegistry);
613 }
614
615 @java.lang.Override
616 public Builder newBuilderForType() { return newBuilder(); }
617 public static Builder newBuilder() {
618 return DEFAULT_INSTANCE.toBuilder();
619 }
620 public static Builder newBuilder(com.google.ortools.sat.LinearBooleanProblem prototype) {
621 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
622 }
623 @java.lang.Override
625 return this == DEFAULT_INSTANCE
626 ? new Builder() : new Builder().mergeFrom(this);
627 }
628
629 @java.lang.Override
631 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
632 Builder builder = new Builder(parent);
633 return builder;
634 }
642 public static final class Builder extends
643 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
644 // @@protoc_insertion_point(builder_implements:operations_research.sat.LinearBooleanProblem)
645 com.google.ortools.sat.LinearBooleanProblemOrBuilder {
646 public static final com.google.protobuf.Descriptors.Descriptor
648 return com.google.ortools.sat.BooleanProblem.internal_static_operations_research_sat_LinearBooleanProblem_descriptor;
649 }
650
651 @java.lang.Override
652 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
654 return com.google.ortools.sat.BooleanProblem.internal_static_operations_research_sat_LinearBooleanProblem_fieldAccessorTable
655 .ensureFieldAccessorsInitialized(
656 com.google.ortools.sat.LinearBooleanProblem.class, com.google.ortools.sat.LinearBooleanProblem.Builder.class);
657 }
658
659 // Construct using com.google.ortools.sat.LinearBooleanProblem.newBuilder()
660 private Builder() {
661 maybeForceBuilderInitialization();
662 }
663
664 private Builder(
665 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
666 super(parent);
667 maybeForceBuilderInitialization();
668 }
669 private void maybeForceBuilderInitialization() {
670 if (com.google.protobuf.GeneratedMessageV3
671 .alwaysUseFieldBuilders) {
672 getConstraintsFieldBuilder();
673 getObjectiveFieldBuilder();
674 getAssignmentFieldBuilder();
675 }
676 }
677 @java.lang.Override
678 public Builder clear() {
679 super.clear();
680 bitField0_ = 0;
681 name_ = "";
682 numVariables_ = 0;
683 if (constraintsBuilder_ == null) {
684 constraints_ = java.util.Collections.emptyList();
685 } else {
686 constraints_ = null;
687 constraintsBuilder_.clear();
688 }
689 bitField0_ = (bitField0_ & ~0x00000004);
690 objective_ = null;
691 if (objectiveBuilder_ != null) {
692 objectiveBuilder_.dispose();
693 objectiveBuilder_ = null;
694 }
695 varNames_ =
696 com.google.protobuf.LazyStringArrayList.emptyList();
697 assignment_ = null;
698 if (assignmentBuilder_ != null) {
699 assignmentBuilder_.dispose();
700 assignmentBuilder_ = null;
701 }
702 originalNumVariables_ = 0;
703 return this;
704 }
705
706 @java.lang.Override
707 public com.google.protobuf.Descriptors.Descriptor
709 return com.google.ortools.sat.BooleanProblem.internal_static_operations_research_sat_LinearBooleanProblem_descriptor;
710 }
711
712 @java.lang.Override
714 return com.google.ortools.sat.LinearBooleanProblem.getDefaultInstance();
715 }
716
717 @java.lang.Override
720 if (!result.isInitialized()) {
721 throw newUninitializedMessageException(result);
722 }
723 return result;
724 }
725
726 @java.lang.Override
728 com.google.ortools.sat.LinearBooleanProblem result = new com.google.ortools.sat.LinearBooleanProblem(this);
729 buildPartialRepeatedFields(result);
730 if (bitField0_ != 0) { buildPartial0(result); }
731 onBuilt();
732 return result;
733 }
734
735 private void buildPartialRepeatedFields(com.google.ortools.sat.LinearBooleanProblem result) {
736 if (constraintsBuilder_ == null) {
737 if (((bitField0_ & 0x00000004) != 0)) {
738 constraints_ = java.util.Collections.unmodifiableList(constraints_);
739 bitField0_ = (bitField0_ & ~0x00000004);
740 }
741 result.constraints_ = constraints_;
742 } else {
743 result.constraints_ = constraintsBuilder_.build();
744 }
745 }
746
747 private void buildPartial0(com.google.ortools.sat.LinearBooleanProblem result) {
748 int from_bitField0_ = bitField0_;
749 int to_bitField0_ = 0;
750 if (((from_bitField0_ & 0x00000001) != 0)) {
751 result.name_ = name_;
752 to_bitField0_ |= 0x00000001;
753 }
754 if (((from_bitField0_ & 0x00000002) != 0)) {
755 result.numVariables_ = numVariables_;
756 to_bitField0_ |= 0x00000002;
757 }
758 if (((from_bitField0_ & 0x00000008) != 0)) {
759 result.objective_ = objectiveBuilder_ == null
760 ? objective_
761 : objectiveBuilder_.build();
762 to_bitField0_ |= 0x00000004;
763 }
764 if (((from_bitField0_ & 0x00000010) != 0)) {
765 varNames_.makeImmutable();
766 result.varNames_ = varNames_;
767 }
768 if (((from_bitField0_ & 0x00000020) != 0)) {
769 result.assignment_ = assignmentBuilder_ == null
770 ? assignment_
771 : assignmentBuilder_.build();
772 to_bitField0_ |= 0x00000008;
773 }
774 if (((from_bitField0_ & 0x00000040) != 0)) {
775 result.originalNumVariables_ = originalNumVariables_;
776 to_bitField0_ |= 0x00000010;
777 }
778 result.bitField0_ |= to_bitField0_;
779 }
780
781 @java.lang.Override
782 public Builder clone() {
783 return super.clone();
784 }
785 @java.lang.Override
787 com.google.protobuf.Descriptors.FieldDescriptor field,
788 java.lang.Object value) {
789 return super.setField(field, value);
790 }
791 @java.lang.Override
793 com.google.protobuf.Descriptors.FieldDescriptor field) {
794 return super.clearField(field);
795 }
796 @java.lang.Override
798 com.google.protobuf.Descriptors.OneofDescriptor oneof) {
799 return super.clearOneof(oneof);
800 }
801 @java.lang.Override
803 com.google.protobuf.Descriptors.FieldDescriptor field,
804 int index, java.lang.Object value) {
805 return super.setRepeatedField(field, index, value);
806 }
807 @java.lang.Override
809 com.google.protobuf.Descriptors.FieldDescriptor field,
810 java.lang.Object value) {
811 return super.addRepeatedField(field, value);
812 }
813 @java.lang.Override
814 public Builder mergeFrom(com.google.protobuf.Message other) {
815 if (other instanceof com.google.ortools.sat.LinearBooleanProblem) {
816 return mergeFrom((com.google.ortools.sat.LinearBooleanProblem)other);
817 } else {
818 super.mergeFrom(other);
819 return this;
820 }
821 }
822
823 public Builder mergeFrom(com.google.ortools.sat.LinearBooleanProblem other) {
824 if (other == com.google.ortools.sat.LinearBooleanProblem.getDefaultInstance()) return this;
825 if (other.hasName()) {
826 name_ = other.name_;
827 bitField0_ |= 0x00000001;
828 onChanged();
829 }
830 if (other.hasNumVariables()) {
831 setNumVariables(other.getNumVariables());
832 }
833 if (constraintsBuilder_ == null) {
834 if (!other.constraints_.isEmpty()) {
835 if (constraints_.isEmpty()) {
836 constraints_ = other.constraints_;
837 bitField0_ = (bitField0_ & ~0x00000004);
838 } else {
839 ensureConstraintsIsMutable();
840 constraints_.addAll(other.constraints_);
841 }
842 onChanged();
843 }
844 } else {
845 if (!other.constraints_.isEmpty()) {
846 if (constraintsBuilder_.isEmpty()) {
847 constraintsBuilder_.dispose();
848 constraintsBuilder_ = null;
849 constraints_ = other.constraints_;
850 bitField0_ = (bitField0_ & ~0x00000004);
851 constraintsBuilder_ =
852 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
853 getConstraintsFieldBuilder() : null;
854 } else {
855 constraintsBuilder_.addAllMessages(other.constraints_);
856 }
857 }
858 }
859 if (other.hasObjective()) {
860 mergeObjective(other.getObjective());
861 }
862 if (!other.varNames_.isEmpty()) {
863 if (varNames_.isEmpty()) {
864 varNames_ = other.varNames_;
865 bitField0_ |= 0x00000010;
866 } else {
867 ensureVarNamesIsMutable();
868 varNames_.addAll(other.varNames_);
869 }
870 onChanged();
871 }
872 if (other.hasAssignment()) {
873 mergeAssignment(other.getAssignment());
874 }
875 if (other.hasOriginalNumVariables()) {
876 setOriginalNumVariables(other.getOriginalNumVariables());
877 }
878 this.mergeUnknownFields(other.getUnknownFields());
879 onChanged();
880 return this;
881 }
882
883 @java.lang.Override
884 public final boolean isInitialized() {
885 return true;
886 }
887
888 @java.lang.Override
890 com.google.protobuf.CodedInputStream input,
891 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
892 throws java.io.IOException {
893 if (extensionRegistry == null) {
894 throw new java.lang.NullPointerException();
895 }
896 try {
897 boolean done = false;
898 while (!done) {
899 int tag = input.readTag();
900 switch (tag) {
901 case 0:
902 done = true;
903 break;
904 case 10: {
905 name_ = input.readBytes();
906 bitField0_ |= 0x00000001;
907 break;
908 } // case 10
909 case 24: {
910 numVariables_ = input.readInt32();
911 bitField0_ |= 0x00000002;
912 break;
913 } // case 24
914 case 34: {
916 input.readMessage(
917 com.google.ortools.sat.LinearBooleanConstraint.PARSER,
918 extensionRegistry);
919 if (constraintsBuilder_ == null) {
920 ensureConstraintsIsMutable();
921 constraints_.add(m);
922 } else {
923 constraintsBuilder_.addMessage(m);
924 }
925 break;
926 } // case 34
927 case 42: {
928 input.readMessage(
929 getObjectiveFieldBuilder().getBuilder(),
930 extensionRegistry);
931 bitField0_ |= 0x00000008;
932 break;
933 } // case 42
934 case 50: {
935 com.google.protobuf.ByteString bs = input.readBytes();
936 ensureVarNamesIsMutable();
937 varNames_.add(bs);
938 break;
939 } // case 50
940 case 58: {
941 input.readMessage(
942 getAssignmentFieldBuilder().getBuilder(),
943 extensionRegistry);
944 bitField0_ |= 0x00000020;
945 break;
946 } // case 58
947 case 64: {
948 originalNumVariables_ = input.readInt32();
949 bitField0_ |= 0x00000040;
950 break;
951 } // case 64
952 default: {
953 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
954 done = true; // was an endgroup tag
955 }
956 break;
957 } // default:
958 } // switch (tag)
959 } // while (!done)
960 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
961 throw e.unwrapIOException();
962 } finally {
963 onChanged();
964 } // finally
965 return this;
966 }
967 private int bitField0_;
968
969 private java.lang.Object name_ = "";
978 public boolean hasName() {
979 return ((bitField0_ & 0x00000001) != 0);
980 }
989 public java.lang.String getName() {
990 java.lang.Object ref = name_;
991 if (!(ref instanceof java.lang.String)) {
992 com.google.protobuf.ByteString bs =
993 (com.google.protobuf.ByteString) ref;
994 java.lang.String s = bs.toStringUtf8();
995 if (bs.isValidUtf8()) {
996 name_ = s;
997 }
998 return s;
999 } else {
1000 return (java.lang.String) ref;
1001 }
1002 }
1011 public com.google.protobuf.ByteString
1013 java.lang.Object ref = name_;
1014 if (ref instanceof String) {
1015 com.google.protobuf.ByteString b =
1016 com.google.protobuf.ByteString.copyFromUtf8(
1017 (java.lang.String) ref);
1018 name_ = b;
1019 return b;
1020 } else {
1021 return (com.google.protobuf.ByteString) ref;
1022 }
1023 }
1034 java.lang.String value) {
1035 if (value == null) { throw new NullPointerException(); }
1036 name_ = value;
1037 bitField0_ |= 0x00000001;
1038 onChanged();
1039 return this;
1040 }
1050 name_ = getDefaultInstance().getName();
1051 bitField0_ = (bitField0_ & ~0x00000001);
1052 onChanged();
1053 return this;
1054 }
1065 com.google.protobuf.ByteString value) {
1066 if (value == null) { throw new NullPointerException(); }
1067 name_ = value;
1068 bitField0_ |= 0x00000001;
1069 onChanged();
1070 return this;
1071 }
1072
1073 private int numVariables_ ;
1084 @java.lang.Override
1085 public boolean hasNumVariables() {
1086 return ((bitField0_ & 0x00000002) != 0);
1087 }
1098 @java.lang.Override
1099 public int getNumVariables() {
1100 return numVariables_;
1101 }
1113 public Builder setNumVariables(int value) {
1114
1115 numVariables_ = value;
1116 bitField0_ |= 0x00000002;
1117 onChanged();
1118 return this;
1119 }
1131 bitField0_ = (bitField0_ & ~0x00000002);
1132 numVariables_ = 0;
1133 onChanged();
1134 return this;
1135 }
1136
1137 private java.util.List<com.google.ortools.sat.LinearBooleanConstraint> constraints_ =
1138 java.util.Collections.emptyList();
1139 private void ensureConstraintsIsMutable() {
1140 if (!((bitField0_ & 0x00000004) != 0)) {
1141 constraints_ = new java.util.ArrayList<com.google.ortools.sat.LinearBooleanConstraint>(constraints_);
1142 bitField0_ |= 0x00000004;
1143 }
1144 }
1145
1146 private com.google.protobuf.RepeatedFieldBuilderV3<
1147 com.google.ortools.sat.LinearBooleanConstraint, com.google.ortools.sat.LinearBooleanConstraint.Builder, com.google.ortools.sat.LinearBooleanConstraintOrBuilder> constraintsBuilder_;
1148
1156 public java.util.List<com.google.ortools.sat.LinearBooleanConstraint> getConstraintsList() {
1157 if (constraintsBuilder_ == null) {
1158 return java.util.Collections.unmodifiableList(constraints_);
1159 } else {
1160 return constraintsBuilder_.getMessageList();
1161 }
1162 }
1170 public int getConstraintsCount() {
1171 if (constraintsBuilder_ == null) {
1172 return constraints_.size();
1173 } else {
1174 return constraintsBuilder_.getCount();
1175 }
1176 }
1185 if (constraintsBuilder_ == null) {
1186 return constraints_.get(index);
1187 } else {
1188 return constraintsBuilder_.getMessage(index);
1189 }
1190 }
1199 int index, com.google.ortools.sat.LinearBooleanConstraint value) {
1200 if (constraintsBuilder_ == null) {
1201 if (value == null) {
1202 throw new NullPointerException();
1203 }
1204 ensureConstraintsIsMutable();
1205 constraints_.set(index, value);
1206 onChanged();
1207 } else {
1208 constraintsBuilder_.setMessage(index, value);
1209 }
1210 return this;
1211 }
1220 int index, com.google.ortools.sat.LinearBooleanConstraint.Builder builderForValue) {
1221 if (constraintsBuilder_ == null) {
1222 ensureConstraintsIsMutable();
1223 constraints_.set(index, builderForValue.build());
1224 onChanged();
1225 } else {
1226 constraintsBuilder_.setMessage(index, builderForValue.build());
1227 }
1228 return this;
1229 }
1237 public Builder addConstraints(com.google.ortools.sat.LinearBooleanConstraint value) {
1238 if (constraintsBuilder_ == null) {
1239 if (value == null) {
1240 throw new NullPointerException();
1241 }
1242 ensureConstraintsIsMutable();
1243 constraints_.add(value);
1244 onChanged();
1245 } else {
1246 constraintsBuilder_.addMessage(value);
1247 }
1248 return this;
1249 }
1258 int index, com.google.ortools.sat.LinearBooleanConstraint value) {
1259 if (constraintsBuilder_ == null) {
1260 if (value == null) {
1261 throw new NullPointerException();
1262 }
1263 ensureConstraintsIsMutable();
1264 constraints_.add(index, value);
1265 onChanged();
1266 } else {
1267 constraintsBuilder_.addMessage(index, value);
1268 }
1269 return this;
1270 }
1279 com.google.ortools.sat.LinearBooleanConstraint.Builder builderForValue) {
1280 if (constraintsBuilder_ == null) {
1281 ensureConstraintsIsMutable();
1282 constraints_.add(builderForValue.build());
1283 onChanged();
1284 } else {
1285 constraintsBuilder_.addMessage(builderForValue.build());
1286 }
1287 return this;
1288 }
1297 int index, com.google.ortools.sat.LinearBooleanConstraint.Builder builderForValue) {
1298 if (constraintsBuilder_ == null) {
1299 ensureConstraintsIsMutable();
1300 constraints_.add(index, builderForValue.build());
1301 onChanged();
1302 } else {
1303 constraintsBuilder_.addMessage(index, builderForValue.build());
1304 }
1305 return this;
1306 }
1315 java.lang.Iterable<? extends com.google.ortools.sat.LinearBooleanConstraint> values) {
1316 if (constraintsBuilder_ == null) {
1317 ensureConstraintsIsMutable();
1318 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1319 values, constraints_);
1320 onChanged();
1321 } else {
1322 constraintsBuilder_.addAllMessages(values);
1323 }
1324 return this;
1325 }
1334 if (constraintsBuilder_ == null) {
1335 constraints_ = java.util.Collections.emptyList();
1336 bitField0_ = (bitField0_ & ~0x00000004);
1337 onChanged();
1338 } else {
1339 constraintsBuilder_.clear();
1340 }
1341 return this;
1342 }
1350 public Builder removeConstraints(int index) {
1351 if (constraintsBuilder_ == null) {
1352 ensureConstraintsIsMutable();
1353 constraints_.remove(index);
1354 onChanged();
1355 } else {
1356 constraintsBuilder_.remove(index);
1357 }
1358 return this;
1359 }
1368 int index) {
1369 return getConstraintsFieldBuilder().getBuilder(index);
1370 }
1379 int index) {
1380 if (constraintsBuilder_ == null) {
1381 return constraints_.get(index); } else {
1382 return constraintsBuilder_.getMessageOrBuilder(index);
1383 }
1384 }
1392 public java.util.List<? extends com.google.ortools.sat.LinearBooleanConstraintOrBuilder>
1394 if (constraintsBuilder_ != null) {
1395 return constraintsBuilder_.getMessageOrBuilderList();
1396 } else {
1397 return java.util.Collections.unmodifiableList(constraints_);
1398 }
1399 }
1408 return getConstraintsFieldBuilder().addBuilder(
1409 com.google.ortools.sat.LinearBooleanConstraint.getDefaultInstance());
1410 }
1419 int index) {
1420 return getConstraintsFieldBuilder().addBuilder(
1421 index, com.google.ortools.sat.LinearBooleanConstraint.getDefaultInstance());
1422 }
1430 public java.util.List<com.google.ortools.sat.LinearBooleanConstraint.Builder>
1432 return getConstraintsFieldBuilder().getBuilderList();
1433 }
1434 private com.google.protobuf.RepeatedFieldBuilderV3<
1435 com.google.ortools.sat.LinearBooleanConstraint, com.google.ortools.sat.LinearBooleanConstraint.Builder, com.google.ortools.sat.LinearBooleanConstraintOrBuilder>
1436 getConstraintsFieldBuilder() {
1437 if (constraintsBuilder_ == null) {
1438 constraintsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
1439 com.google.ortools.sat.LinearBooleanConstraint, com.google.ortools.sat.LinearBooleanConstraint.Builder, com.google.ortools.sat.LinearBooleanConstraintOrBuilder>(
1440 constraints_,
1441 ((bitField0_ & 0x00000004) != 0),
1442 getParentForChildren(),
1443 isClean());
1444 constraints_ = null;
1445 }
1446 return constraintsBuilder_;
1447 }
1448
1449 private com.google.ortools.sat.LinearObjective objective_;
1450 private com.google.protobuf.SingleFieldBuilderV3<
1451 com.google.ortools.sat.LinearObjective, com.google.ortools.sat.LinearObjective.Builder, com.google.ortools.sat.LinearObjectiveOrBuilder> objectiveBuilder_;
1461 public boolean hasObjective() {
1462 return ((bitField0_ & 0x00000008) != 0);
1463 }
1474 if (objectiveBuilder_ == null) {
1475 return objective_ == null ? com.google.ortools.sat.LinearObjective.getDefaultInstance() : objective_;
1476 } else {
1477 return objectiveBuilder_.getMessage();
1478 }
1479 }
1488 public Builder setObjective(com.google.ortools.sat.LinearObjective value) {
1489 if (objectiveBuilder_ == null) {
1490 if (value == null) {
1491 throw new NullPointerException();
1492 }
1493 objective_ = value;
1494 } else {
1495 objectiveBuilder_.setMessage(value);
1496 }
1497 bitField0_ |= 0x00000008;
1498 onChanged();
1499 return this;
1500 }
1510 com.google.ortools.sat.LinearObjective.Builder builderForValue) {
1511 if (objectiveBuilder_ == null) {
1512 objective_ = builderForValue.build();
1513 } else {
1514 objectiveBuilder_.setMessage(builderForValue.build());
1515 }
1516 bitField0_ |= 0x00000008;
1517 onChanged();
1518 return this;
1519 }
1528 public Builder mergeObjective(com.google.ortools.sat.LinearObjective value) {
1529 if (objectiveBuilder_ == null) {
1530 if (((bitField0_ & 0x00000008) != 0) &&
1531 objective_ != null &&
1532 objective_ != com.google.ortools.sat.LinearObjective.getDefaultInstance()) {
1533 getObjectiveBuilder().mergeFrom(value);
1534 } else {
1535 objective_ = value;
1536 }
1537 } else {
1538 objectiveBuilder_.mergeFrom(value);
1539 }
1540 if (objective_ != null) {
1541 bitField0_ |= 0x00000008;
1542 onChanged();
1543 }
1544 return this;
1545 }
1555 bitField0_ = (bitField0_ & ~0x00000008);
1556 objective_ = null;
1557 if (objectiveBuilder_ != null) {
1558 objectiveBuilder_.dispose();
1559 objectiveBuilder_ = null;
1560 }
1561 onChanged();
1562 return this;
1563 }
1573 bitField0_ |= 0x00000008;
1574 onChanged();
1575 return getObjectiveFieldBuilder().getBuilder();
1576 }
1586 if (objectiveBuilder_ != null) {
1587 return objectiveBuilder_.getMessageOrBuilder();
1588 } else {
1589 return objective_ == null ?
1590 com.google.ortools.sat.LinearObjective.getDefaultInstance() : objective_;
1591 }
1592 }
1601 private com.google.protobuf.SingleFieldBuilderV3<
1602 com.google.ortools.sat.LinearObjective, com.google.ortools.sat.LinearObjective.Builder, com.google.ortools.sat.LinearObjectiveOrBuilder>
1603 getObjectiveFieldBuilder() {
1604 if (objectiveBuilder_ == null) {
1605 objectiveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
1606 com.google.ortools.sat.LinearObjective, com.google.ortools.sat.LinearObjective.Builder, com.google.ortools.sat.LinearObjectiveOrBuilder>(
1607 getObjective(),
1608 getParentForChildren(),
1609 isClean());
1610 objective_ = null;
1611 }
1612 return objectiveBuilder_;
1613 }
1614
1615 private com.google.protobuf.LazyStringArrayList varNames_ =
1616 com.google.protobuf.LazyStringArrayList.emptyList();
1617 private void ensureVarNamesIsMutable() {
1618 if (!varNames_.isModifiable()) {
1619 varNames_ = new com.google.protobuf.LazyStringArrayList(varNames_);
1620 }
1621 bitField0_ |= 0x00000010;
1622 }
1633 public com.google.protobuf.ProtocolStringList
1635 varNames_.makeImmutable();
1636 return varNames_;
1637 }
1648 public int getVarNamesCount() {
1649 return varNames_.size();
1650 }
1662 public java.lang.String getVarNames(int index) {
1663 return varNames_.get(index);
1664 }
1676 public com.google.protobuf.ByteString
1677 getVarNamesBytes(int index) {
1678 return varNames_.getByteString(index);
1679 }
1693 int index, java.lang.String value) {
1694 if (value == null) { throw new NullPointerException(); }
1695 ensureVarNamesIsMutable();
1696 varNames_.set(index, value);
1697 bitField0_ |= 0x00000010;
1698 onChanged();
1699 return this;
1700 }
1713 java.lang.String value) {
1714 if (value == null) { throw new NullPointerException(); }
1715 ensureVarNamesIsMutable();
1716 varNames_.add(value);
1717 bitField0_ |= 0x00000010;
1718 onChanged();
1719 return this;
1720 }
1733 java.lang.Iterable<java.lang.String> values) {
1734 ensureVarNamesIsMutable();
1735 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1736 values, varNames_);
1737 bitField0_ |= 0x00000010;
1738 onChanged();
1739 return this;
1740 }
1752 varNames_ =
1753 com.google.protobuf.LazyStringArrayList.emptyList();
1754 bitField0_ = (bitField0_ & ~0x00000010);;
1755 onChanged();
1756 return this;
1757 }
1770 com.google.protobuf.ByteString value) {
1771 if (value == null) { throw new NullPointerException(); }
1772 ensureVarNamesIsMutable();
1773 varNames_.add(value);
1774 bitField0_ |= 0x00000010;
1775 onChanged();
1776 return this;
1777 }
1778
1779 private com.google.ortools.sat.BooleanAssignment assignment_;
1780 private com.google.protobuf.SingleFieldBuilderV3<
1781 com.google.ortools.sat.BooleanAssignment, com.google.ortools.sat.BooleanAssignment.Builder, com.google.ortools.sat.BooleanAssignmentOrBuilder> assignmentBuilder_;
1791 public boolean hasAssignment() {
1792 return ((bitField0_ & 0x00000020) != 0);
1793 }
1804 if (assignmentBuilder_ == null) {
1805 return assignment_ == null ? com.google.ortools.sat.BooleanAssignment.getDefaultInstance() : assignment_;
1806 } else {
1807 return assignmentBuilder_.getMessage();
1808 }
1809 }
1818 public Builder setAssignment(com.google.ortools.sat.BooleanAssignment value) {
1819 if (assignmentBuilder_ == null) {
1820 if (value == null) {
1821 throw new NullPointerException();
1822 }
1823 assignment_ = value;
1824 } else {
1825 assignmentBuilder_.setMessage(value);
1826 }
1827 bitField0_ |= 0x00000020;
1828 onChanged();
1829 return this;
1830 }
1840 com.google.ortools.sat.BooleanAssignment.Builder builderForValue) {
1841 if (assignmentBuilder_ == null) {
1842 assignment_ = builderForValue.build();
1843 } else {
1844 assignmentBuilder_.setMessage(builderForValue.build());
1845 }
1846 bitField0_ |= 0x00000020;
1847 onChanged();
1848 return this;
1849 }
1858 public Builder mergeAssignment(com.google.ortools.sat.BooleanAssignment value) {
1859 if (assignmentBuilder_ == null) {
1860 if (((bitField0_ & 0x00000020) != 0) &&
1861 assignment_ != null &&
1862 assignment_ != com.google.ortools.sat.BooleanAssignment.getDefaultInstance()) {
1863 getAssignmentBuilder().mergeFrom(value);
1864 } else {
1865 assignment_ = value;
1866 }
1867 } else {
1868 assignmentBuilder_.mergeFrom(value);
1869 }
1870 if (assignment_ != null) {
1871 bitField0_ |= 0x00000020;
1872 onChanged();
1873 }
1874 return this;
1875 }
1885 bitField0_ = (bitField0_ & ~0x00000020);
1886 assignment_ = null;
1887 if (assignmentBuilder_ != null) {
1888 assignmentBuilder_.dispose();
1889 assignmentBuilder_ = null;
1890 }
1891 onChanged();
1892 return this;
1893 }
1903 bitField0_ |= 0x00000020;
1904 onChanged();
1905 return getAssignmentFieldBuilder().getBuilder();
1906 }
1916 if (assignmentBuilder_ != null) {
1917 return assignmentBuilder_.getMessageOrBuilder();
1918 } else {
1919 return assignment_ == null ?
1920 com.google.ortools.sat.BooleanAssignment.getDefaultInstance() : assignment_;
1921 }
1922 }
1931 private com.google.protobuf.SingleFieldBuilderV3<
1932 com.google.ortools.sat.BooleanAssignment, com.google.ortools.sat.BooleanAssignment.Builder, com.google.ortools.sat.BooleanAssignmentOrBuilder>
1933 getAssignmentFieldBuilder() {
1934 if (assignmentBuilder_ == null) {
1935 assignmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
1936 com.google.ortools.sat.BooleanAssignment, com.google.ortools.sat.BooleanAssignment.Builder, com.google.ortools.sat.BooleanAssignmentOrBuilder>(
1937 getAssignment(),
1938 getParentForChildren(),
1939 isClean());
1940 assignment_ = null;
1941 }
1942 return assignmentBuilder_;
1943 }
1944
1945 private int originalNumVariables_ ;
1957 @java.lang.Override
1958 public boolean hasOriginalNumVariables() {
1959 return ((bitField0_ & 0x00000040) != 0);
1960 }
1972 @java.lang.Override
1974 return originalNumVariables_;
1975 }
1989
1990 originalNumVariables_ = value;
1991 bitField0_ |= 0x00000040;
1992 onChanged();
1993 return this;
1994 }
2007 bitField0_ = (bitField0_ & ~0x00000040);
2008 originalNumVariables_ = 0;
2009 onChanged();
2010 return this;
2011 }
2012 @java.lang.Override
2014 final com.google.protobuf.UnknownFieldSet unknownFields) {
2015 return super.setUnknownFields(unknownFields);
2016 }
2017
2018 @java.lang.Override
2020 final com.google.protobuf.UnknownFieldSet unknownFields) {
2021 return super.mergeUnknownFields(unknownFields);
2022 }
2023
2024
2025 // @@protoc_insertion_point(builder_scope:operations_research.sat.LinearBooleanProblem)
2026 }
2027
2028 // @@protoc_insertion_point(class_scope:operations_research.sat.LinearBooleanProblem)
2029 private static final com.google.ortools.sat.LinearBooleanProblem DEFAULT_INSTANCE;
2030 static {
2031 DEFAULT_INSTANCE = new com.google.ortools.sat.LinearBooleanProblem();
2032 }
2033
2035 return DEFAULT_INSTANCE;
2036 }
2037
2038 @java.lang.Deprecated public static final com.google.protobuf.Parser<LinearBooleanProblem>
2039 PARSER = new com.google.protobuf.AbstractParser<LinearBooleanProblem>() {
2040 @java.lang.Override
2041 public LinearBooleanProblem parsePartialFrom(
2042 com.google.protobuf.CodedInputStream input,
2043 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2044 throws com.google.protobuf.InvalidProtocolBufferException {
2045 Builder builder = newBuilder();
2046 try {
2047 builder.mergeFrom(input, extensionRegistry);
2048 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2049 throw e.setUnfinishedMessage(builder.buildPartial());
2050 } catch (com.google.protobuf.UninitializedMessageException e) {
2051 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
2052 } catch (java.io.IOException e) {
2053 throw new com.google.protobuf.InvalidProtocolBufferException(e)
2054 .setUnfinishedMessage(builder.buildPartial());
2055 }
2056 return builder.buildPartial();
2057 }
2058 };
2059
2060 public static com.google.protobuf.Parser<LinearBooleanProblem> parser() {
2061 return PARSER;
2062 }
2063
2064 @java.lang.Override
2065 public com.google.protobuf.Parser<LinearBooleanProblem> getParserForType() {
2066 return PARSER;
2067 }
2068
2069 @java.lang.Override
2071 return DEFAULT_INSTANCE;
2072 }
2073
2074}
2075
boolean equals(final java.lang.Object obj)
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 setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
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)
final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
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 setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
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 addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Builder setAssignment(com.google.ortools.sat.BooleanAssignment value)
com.google.ortools.sat.LinearBooleanConstraint.Builder addConstraintsBuilder()
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
com.google.ortools.sat.LinearBooleanConstraintOrBuilder getConstraintsOrBuilder(int index)
Builder addConstraints(com.google.ortools.sat.LinearBooleanConstraint.Builder builderForValue)
com.google.ortools.sat.BooleanAssignment getAssignment()
Builder addVarNamesBytes(com.google.protobuf.ByteString value)
final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
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)
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
static com.google.protobuf.Parser< LinearBooleanProblem > parser()
static com.google.ortools.sat.LinearBooleanProblem parseFrom(java.io.InputStream input)
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 final com.google.protobuf.Parser< LinearBooleanProblem > PARSER
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)
java.lang.Object newInstance(UnusedPrivateParameter unused)
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)
static com.google.ortools.sat.LinearBooleanProblem parseDelimitedFrom(java.io.InputStream input)
void writeTo(com.google.protobuf.CodedOutputStream output)
com.google.protobuf.ByteString getNameBytes()
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)
Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
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()
boolean equals(final java.lang.Object obj)