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