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