5package com.google.ortools.sat;
15 com.google.protobuf.GeneratedMessageV3 implements
18private static final long serialVersionUID = 0L;
25 constraints_ = java.util.Collections.emptyList();
27 com.google.protobuf.LazyStringArrayList.emptyList();
31 @SuppressWarnings({
"unused"})
33 UnusedPrivateParameter unused) {
37 public static final com.google.protobuf.Descriptors.Descriptor
39 return com.google.ortools.sat.BooleanProblem.internal_static_operations_research_sat_LinearBooleanProblem_descriptor;
43 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
45 return com.google.ortools.sat.BooleanProblem.internal_static_operations_research_sat_LinearBooleanProblem_fieldAccessorTable
46 .ensureFieldAccessorsInitialized(
47 com.google.ortools.sat.LinearBooleanProblem.class, com.google.ortools.sat.LinearBooleanProblem.Builder.class);
50 private int bitField0_;
52 @SuppressWarnings(
"serial")
53 private volatile java.lang.Object name_ = "";
64 return ((bitField0_ & 0x00000001) != 0);
76 java.lang.Object ref = name_;
77 if (ref instanceof java.lang.String) {
78 return (java.lang.String) ref;
80 com.google.protobuf.ByteString bs =
81 (com.google.protobuf.ByteString) ref;
82 java.lang.String s = bs.toStringUtf8();
83 if (bs.isValidUtf8()) {
98 public com.google.protobuf.ByteString
100 java.lang.Object ref = name_;
101 if (ref instanceof java.lang.String) {
102 com.google.protobuf.ByteString b =
103 com.google.protobuf.ByteString.copyFromUtf8(
104 (java.lang.String) ref);
108 return (com.google.protobuf.ByteString) ref;
113 private int numVariables_ = 0;
126 return ((bitField0_ & 0x00000002) != 0);
140 return numVariables_;
144 @SuppressWarnings(
"serial")
165 public java.util.List<? extends com.google.ortools.sat.LinearBooleanConstraintOrBuilder>
178 return constraints_.size();
189 return constraints_.get(index);
201 return constraints_.get(index);
217 return ((bitField0_ & 0x00000004) != 0);
230 return objective_ ==
null ? com.google.ortools.sat.LinearObjective.getDefaultInstance() : objective_;
242 return objective_ ==
null ? com.google.ortools.sat.LinearObjective.getDefaultInstance() : objective_;
246 @SuppressWarnings(
"serial")
247 private com.google.protobuf.LazyStringArrayList varNames_ =
248 com.google.protobuf.LazyStringArrayList.emptyList();
259 public com.google.protobuf.ProtocolStringList
274 return varNames_.size();
288 return varNames_.get(index);
301 public com.google.protobuf.ByteString
303 return varNames_.getByteString(index);
319 return ((bitField0_ & 0x00000008) != 0);
332 return assignment_ ==
null ? com.google.ortools.sat.BooleanAssignment.getDefaultInstance() : assignment_;
344 return assignment_ ==
null ? com.google.ortools.sat.BooleanAssignment.getDefaultInstance() : assignment_;
348 private int originalNumVariables_ = 0;
362 return ((bitField0_ & 0x00000010) != 0);
377 return originalNumVariables_;
380 private byte memoizedIsInitialized = -1;
387 memoizedIsInitialized = 1;
392 public void writeTo(com.google.protobuf.CodedOutputStream output)
393 throws java.io.IOException {
394 if (((bitField0_ & 0x00000001) != 0)) {
395 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
397 if (((bitField0_ & 0x00000002) != 0)) {
398 output.writeInt32(3, numVariables_);
400 for (
int i = 0; i < constraints_.size(); i++) {
401 output.writeMessage(4, constraints_.get(i));
403 if (((bitField0_ & 0x00000004) != 0)) {
406 for (
int i = 0; i < varNames_.size(); i++) {
407 com.google.protobuf.GeneratedMessageV3.writeString(output, 6, varNames_.getRaw(i));
409 if (((bitField0_ & 0x00000008) != 0)) {
412 if (((bitField0_ & 0x00000010) != 0)) {
413 output.writeInt32(8, originalNumVariables_);
415 getUnknownFields().writeTo(output);
420 int size = memoizedSize;
421 if (size != -1)
return size;
424 if (((bitField0_ & 0x00000001) != 0)) {
425 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
427 if (((bitField0_ & 0x00000002) != 0)) {
428 size += com.google.protobuf.CodedOutputStream
429 .computeInt32Size(3, numVariables_);
431 for (
int i = 0; i < constraints_.size(); i++) {
432 size += com.google.protobuf.CodedOutputStream
433 .computeMessageSize(4, constraints_.get(i));
435 if (((bitField0_ & 0x00000004) != 0)) {
436 size += com.google.protobuf.CodedOutputStream
441 for (
int i = 0; i < varNames_.size(); i++) {
442 dataSize += computeStringSizeNoTag(varNames_.getRaw(i));
447 if (((bitField0_ & 0x00000008) != 0)) {
448 size += com.google.protobuf.CodedOutputStream
451 if (((bitField0_ & 0x00000010) != 0)) {
452 size += com.google.protobuf.CodedOutputStream
453 .computeInt32Size(8, originalNumVariables_);
455 size += getUnknownFields().getSerializedSize();
461 public boolean equals(
final java.lang.Object obj) {
465 if (!(obj instanceof com.google.ortools.sat.LinearBooleanProblem)) {
466 return super.equals(obj);
473 .equals(other.
getName()))
return false;
499 if (!getUnknownFields().equals(other.getUnknownFields()))
return false;
505 if (memoizedHashCode != 0) {
506 return memoizedHashCode;
512 hash = (53 * hash) +
getName().hashCode();
538 hash = (29 * hash) + getUnknownFields().hashCode();
539 memoizedHashCode = hash;
544 java.nio.ByteBuffer data)
545 throws com.google.protobuf.InvalidProtocolBufferException {
549 java.nio.ByteBuffer data,
550 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
551 throws com.google.protobuf.InvalidProtocolBufferException {
555 com.google.protobuf.ByteString data)
556 throws com.google.protobuf.InvalidProtocolBufferException {
560 com.google.protobuf.ByteString data,
561 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
562 throws com.google.protobuf.InvalidProtocolBufferException {
566 throws com.google.protobuf.InvalidProtocolBufferException {
571 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
572 throws com.google.protobuf.InvalidProtocolBufferException {
576 throws java.io.IOException {
577 return com.google.protobuf.GeneratedMessageV3
578 .parseWithIOException(
PARSER, input);
581 java.io.InputStream input,
582 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
583 throws java.io.IOException {
584 return com.google.protobuf.GeneratedMessageV3
585 .parseWithIOException(
PARSER, input, extensionRegistry);
589 throws java.io.IOException {
590 return com.google.protobuf.GeneratedMessageV3
591 .parseDelimitedWithIOException(
PARSER, input);
595 java.io.InputStream input,
596 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
597 throws java.io.IOException {
598 return com.google.protobuf.GeneratedMessageV3
599 .parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
602 com.google.protobuf.CodedInputStream input)
603 throws java.io.IOException {
604 return com.google.protobuf.GeneratedMessageV3
605 .parseWithIOException(
PARSER, input);
608 com.google.protobuf.CodedInputStream input,
609 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
610 throws java.io.IOException {
611 return com.google.protobuf.GeneratedMessageV3
612 .parseWithIOException(
PARSER, input, extensionRegistry);
625 return this == DEFAULT_INSTANCE
631 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
643 com.google.protobuf.GeneratedMessageV3.
Builder<Builder> implements
646 public static final com.google.protobuf.Descriptors.Descriptor
648 return com.google.ortools.sat.BooleanProblem.internal_static_operations_research_sat_LinearBooleanProblem_descriptor;
652 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
654 return com.google.ortools.sat.BooleanProblem.internal_static_operations_research_sat_LinearBooleanProblem_fieldAccessorTable
655 .ensureFieldAccessorsInitialized(
656 com.google.ortools.sat.LinearBooleanProblem.class, com.google.ortools.sat.LinearBooleanProblem.Builder.class);
661 maybeForceBuilderInitialization();
665 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
667 maybeForceBuilderInitialization();
669 private void maybeForceBuilderInitialization() {
670 if (com.google.protobuf.GeneratedMessageV3
671 .alwaysUseFieldBuilders) {
672 getConstraintsFieldBuilder();
673 getObjectiveFieldBuilder();
674 getAssignmentFieldBuilder();
683 if (constraintsBuilder_ ==
null) {
684 constraints_ = java.util.Collections.emptyList();
687 constraintsBuilder_.clear();
689 bitField0_ = (bitField0_ & ~0x00000004);
691 if (objectiveBuilder_ !=
null) {
692 objectiveBuilder_.dispose();
693 objectiveBuilder_ =
null;
696 com.google.protobuf.LazyStringArrayList.emptyList();
698 if (assignmentBuilder_ !=
null) {
699 assignmentBuilder_.dispose();
700 assignmentBuilder_ =
null;
702 originalNumVariables_ = 0;
707 public com.google.protobuf.Descriptors.Descriptor
709 return com.google.ortools.sat.BooleanProblem.internal_static_operations_research_sat_LinearBooleanProblem_descriptor;
714 return com.google.ortools.sat.LinearBooleanProblem.getDefaultInstance();
721 throw newUninitializedMessageException(result);
729 buildPartialRepeatedFields(result);
730 if (bitField0_ != 0) { buildPartial0(result); }
735 private void buildPartialRepeatedFields(com.google.ortools.sat.LinearBooleanProblem result) {
736 if (constraintsBuilder_ ==
null) {
737 if (((bitField0_ & 0x00000004) != 0)) {
738 constraints_ = java.util.Collections.unmodifiableList(constraints_);
739 bitField0_ = (bitField0_ & ~0x00000004);
741 result.constraints_ = constraints_;
743 result.constraints_ = constraintsBuilder_.build();
747 private void buildPartial0(com.google.ortools.sat.LinearBooleanProblem result) {
748 int from_bitField0_ = bitField0_;
749 int to_bitField0_ = 0;
750 if (((from_bitField0_ & 0x00000001) != 0)) {
751 result.name_ = name_;
752 to_bitField0_ |= 0x00000001;
754 if (((from_bitField0_ & 0x00000002) != 0)) {
755 result.numVariables_ = numVariables_;
756 to_bitField0_ |= 0x00000002;
758 if (((from_bitField0_ & 0x00000008) != 0)) {
759 result.objective_ = objectiveBuilder_ ==
null
761 : objectiveBuilder_.build();
762 to_bitField0_ |= 0x00000004;
764 if (((from_bitField0_ & 0x00000010) != 0)) {
765 varNames_.makeImmutable();
766 result.varNames_ = varNames_;
768 if (((from_bitField0_ & 0x00000020) != 0)) {
769 result.assignment_ = assignmentBuilder_ ==
null
771 : assignmentBuilder_.build();
772 to_bitField0_ |= 0x00000008;
774 if (((from_bitField0_ & 0x00000040) != 0)) {
775 result.originalNumVariables_ = originalNumVariables_;
776 to_bitField0_ |= 0x00000010;
778 result.bitField0_ |= to_bitField0_;
783 return super.
clone();
787 com.google.protobuf.Descriptors.FieldDescriptor field,
788 java.lang.Object value) {
789 return super.
setField(field, value);
793 com.google.protobuf.Descriptors.FieldDescriptor field) {
798 com.google.protobuf.Descriptors.OneofDescriptor oneof) {
803 com.google.protobuf.Descriptors.FieldDescriptor field,
804 int index, java.lang.Object value) {
809 com.google.protobuf.Descriptors.FieldDescriptor field,
810 java.lang.Object value) {
815 if (other instanceof com.google.ortools.sat.LinearBooleanProblem) {
816 return mergeFrom((com.google.ortools.sat.LinearBooleanProblem)other);
818 super.mergeFrom(other);
824 if (other == com.google.ortools.sat.LinearBooleanProblem.getDefaultInstance())
return this;
825 if (other.hasName()) {
827 bitField0_ |= 0x00000001;
830 if (other.hasNumVariables()) {
833 if (constraintsBuilder_ ==
null) {
834 if (!other.constraints_.isEmpty()) {
835 if (constraints_.isEmpty()) {
836 constraints_ = other.constraints_;
837 bitField0_ = (bitField0_ & ~0x00000004);
839 ensureConstraintsIsMutable();
840 constraints_.addAll(other.constraints_);
845 if (!other.constraints_.isEmpty()) {
846 if (constraintsBuilder_.isEmpty()) {
847 constraintsBuilder_.dispose();
848 constraintsBuilder_ =
null;
849 constraints_ = other.constraints_;
850 bitField0_ = (bitField0_ & ~0x00000004);
851 constraintsBuilder_ =
852 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
853 getConstraintsFieldBuilder() :
null;
855 constraintsBuilder_.addAllMessages(other.constraints_);
859 if (other.hasObjective()) {
862 if (!other.varNames_.isEmpty()) {
863 if (varNames_.isEmpty()) {
864 varNames_ = other.varNames_;
865 bitField0_ |= 0x00000010;
867 ensureVarNamesIsMutable();
868 varNames_.addAll(other.varNames_);
872 if (other.hasAssignment()) {
875 if (other.hasOriginalNumVariables()) {
890 com.google.protobuf.CodedInputStream input,
891 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
892 throws java.io.IOException {
893 if (extensionRegistry ==
null) {
894 throw new java.lang.NullPointerException();
897 boolean done =
false;
899 int tag = input.readTag();
905 name_ = input.readBytes();
906 bitField0_ |= 0x00000001;
910 numVariables_ = input.readInt32();
911 bitField0_ |= 0x00000002;
917 com.google.ortools.sat.LinearBooleanConstraint.PARSER,
919 if (constraintsBuilder_ ==
null) {
920 ensureConstraintsIsMutable();
923 constraintsBuilder_.addMessage(m);
929 getObjectiveFieldBuilder().getBuilder(),
931 bitField0_ |= 0x00000008;
935 com.google.protobuf.ByteString bs = input.readBytes();
936 ensureVarNamesIsMutable();
942 getAssignmentFieldBuilder().getBuilder(),
944 bitField0_ |= 0x00000020;
948 originalNumVariables_ = input.readInt32();
949 bitField0_ |= 0x00000040;
953 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
960 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
961 throw e.unwrapIOException();
967 private int bitField0_;
969 private java.lang.Object name_ =
"";
979 return ((bitField0_ & 0x00000001) != 0);
990 java.lang.Object ref = name_;
991 if (!(ref instanceof java.lang.String)) {
992 com.google.protobuf.ByteString bs =
993 (com.google.protobuf.ByteString) ref;
994 java.lang.String s = bs.toStringUtf8();
995 if (bs.isValidUtf8()) {
1000 return (java.lang.String) ref;
1011 public com.google.protobuf.ByteString
1013 java.lang.Object ref = name_;
1014 if (ref instanceof String) {
1015 com.google.protobuf.ByteString b =
1016 com.google.protobuf.ByteString.copyFromUtf8(
1017 (java.lang.String) ref);
1021 return (com.google.protobuf.ByteString) ref;
1034 java.lang.String value) {
1035 if (value ==
null) {
throw new NullPointerException(); }
1037 bitField0_ |= 0x00000001;
1051 bitField0_ = (bitField0_ & ~0x00000001);
1065 com.google.protobuf.ByteString value) {
1066 if (value ==
null) {
throw new NullPointerException(); }
1068 bitField0_ |= 0x00000001;
1073 private int numVariables_ ;
1086 return ((bitField0_ & 0x00000002) != 0);
1100 return numVariables_;
1115 numVariables_ = value;
1116 bitField0_ |= 0x00000002;
1131 bitField0_ = (bitField0_ & ~0x00000002);
1137 private java.util.List<com.google.ortools.sat.LinearBooleanConstraint> constraints_ =
1138 java.util.Collections.emptyList();
1139 private void ensureConstraintsIsMutable() {
1140 if (!((bitField0_ & 0x00000004) != 0)) {
1141 constraints_ =
new java.util.ArrayList<com.google.ortools.sat.LinearBooleanConstraint>(constraints_);
1142 bitField0_ |= 0x00000004;
1146 private com.google.protobuf.RepeatedFieldBuilderV3<
1147 com.google.ortools.sat.LinearBooleanConstraint, com.google.ortools.sat.LinearBooleanConstraint.Builder, com.google.ortools.sat.LinearBooleanConstraintOrBuilder> constraintsBuilder_;
1157 if (constraintsBuilder_ ==
null) {
1158 return java.util.Collections.unmodifiableList(constraints_);
1160 return constraintsBuilder_.getMessageList();
1171 if (constraintsBuilder_ ==
null) {
1172 return constraints_.size();
1174 return constraintsBuilder_.getCount();
1185 if (constraintsBuilder_ ==
null) {
1186 return constraints_.get(index);
1188 return constraintsBuilder_.getMessage(index);
1199 int index, com.google.ortools.sat.LinearBooleanConstraint value) {
1200 if (constraintsBuilder_ ==
null) {
1201 if (value ==
null) {
1202 throw new NullPointerException();
1204 ensureConstraintsIsMutable();
1205 constraints_.set(index, value);
1208 constraintsBuilder_.setMessage(index, value);
1220 int index, com.google.ortools.sat.LinearBooleanConstraint.Builder builderForValue) {
1221 if (constraintsBuilder_ ==
null) {
1222 ensureConstraintsIsMutable();
1223 constraints_.set(index, builderForValue.build());
1226 constraintsBuilder_.setMessage(index, builderForValue.build());
1238 if (constraintsBuilder_ ==
null) {
1239 if (value ==
null) {
1240 throw new NullPointerException();
1242 ensureConstraintsIsMutable();
1243 constraints_.add(value);
1246 constraintsBuilder_.addMessage(value);
1258 int index, com.google.ortools.sat.LinearBooleanConstraint value) {
1259 if (constraintsBuilder_ ==
null) {
1260 if (value ==
null) {
1261 throw new NullPointerException();
1263 ensureConstraintsIsMutable();
1264 constraints_.add(index, value);
1267 constraintsBuilder_.addMessage(index, value);
1279 com.google.ortools.sat.LinearBooleanConstraint.Builder builderForValue) {
1280 if (constraintsBuilder_ ==
null) {
1281 ensureConstraintsIsMutable();
1282 constraints_.add(builderForValue.build());
1285 constraintsBuilder_.addMessage(builderForValue.build());
1297 int index, com.google.ortools.sat.LinearBooleanConstraint.Builder builderForValue) {
1298 if (constraintsBuilder_ ==
null) {
1299 ensureConstraintsIsMutable();
1300 constraints_.add(index, builderForValue.build());
1303 constraintsBuilder_.addMessage(index, builderForValue.build());
1315 java.lang.Iterable<? extends com.google.ortools.sat.LinearBooleanConstraint> values) {
1316 if (constraintsBuilder_ ==
null) {
1317 ensureConstraintsIsMutable();
1318 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1319 values, constraints_);
1322 constraintsBuilder_.addAllMessages(values);
1334 if (constraintsBuilder_ ==
null) {
1335 constraints_ = java.util.Collections.emptyList();
1336 bitField0_ = (bitField0_ & ~0x00000004);
1339 constraintsBuilder_.clear();
1351 if (constraintsBuilder_ ==
null) {
1352 ensureConstraintsIsMutable();
1353 constraints_.remove(index);
1356 constraintsBuilder_.remove(index);
1369 return getConstraintsFieldBuilder().getBuilder(index);
1380 if (constraintsBuilder_ ==
null) {
1381 return constraints_.get(index); }
else {
1382 return constraintsBuilder_.getMessageOrBuilder(index);
1392 public java.util.List<? extends com.google.ortools.sat.LinearBooleanConstraintOrBuilder>
1394 if (constraintsBuilder_ !=
null) {
1395 return constraintsBuilder_.getMessageOrBuilderList();
1397 return java.util.Collections.unmodifiableList(constraints_);
1408 return getConstraintsFieldBuilder().addBuilder(
1409 com.google.ortools.sat.LinearBooleanConstraint.getDefaultInstance());
1420 return getConstraintsFieldBuilder().addBuilder(
1421 index, com.google.ortools.sat.LinearBooleanConstraint.getDefaultInstance());
1430 public java.util.List<com.google.ortools.sat.LinearBooleanConstraint.Builder>
1432 return getConstraintsFieldBuilder().getBuilderList();
1434 private com.google.protobuf.RepeatedFieldBuilderV3<
1435 com.google.ortools.sat.LinearBooleanConstraint, com.google.ortools.sat.LinearBooleanConstraint.Builder, com.google.ortools.sat.LinearBooleanConstraintOrBuilder>
1436 getConstraintsFieldBuilder() {
1437 if (constraintsBuilder_ ==
null) {
1438 constraintsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
1439 com.google.ortools.sat.LinearBooleanConstraint, com.google.ortools.sat.LinearBooleanConstraint.Builder, com.google.ortools.sat.LinearBooleanConstraintOrBuilder>(
1441 ((bitField0_ & 0x00000004) != 0),
1442 getParentForChildren(),
1444 constraints_ =
null;
1446 return constraintsBuilder_;
1450 private com.google.protobuf.SingleFieldBuilderV3<
1451 com.google.ortools.sat.LinearObjective, com.google.ortools.sat.LinearObjective.Builder, com.google.ortools.sat.LinearObjectiveOrBuilder> objectiveBuilder_;
1462 return ((bitField0_ & 0x00000008) != 0);
1474 if (objectiveBuilder_ ==
null) {
1475 return objective_ ==
null ? com.google.ortools.sat.LinearObjective.getDefaultInstance() : objective_;
1477 return objectiveBuilder_.getMessage();
1489 if (objectiveBuilder_ ==
null) {
1490 if (value ==
null) {
1491 throw new NullPointerException();
1495 objectiveBuilder_.setMessage(value);
1497 bitField0_ |= 0x00000008;
1510 com.google.ortools.sat.LinearObjective.Builder builderForValue) {
1511 if (objectiveBuilder_ ==
null) {
1512 objective_ = builderForValue.build();
1514 objectiveBuilder_.setMessage(builderForValue.build());
1516 bitField0_ |= 0x00000008;
1529 if (objectiveBuilder_ ==
null) {
1530 if (((bitField0_ & 0x00000008) != 0) &&
1531 objective_ !=
null &&
1532 objective_ != com.google.ortools.sat.LinearObjective.getDefaultInstance()) {
1538 objectiveBuilder_.mergeFrom(value);
1540 if (objective_ !=
null) {
1541 bitField0_ |= 0x00000008;
1555 bitField0_ = (bitField0_ & ~0x00000008);
1557 if (objectiveBuilder_ !=
null) {
1558 objectiveBuilder_.dispose();
1559 objectiveBuilder_ =
null;
1573 bitField0_ |= 0x00000008;
1575 return getObjectiveFieldBuilder().getBuilder();
1586 if (objectiveBuilder_ !=
null) {
1587 return objectiveBuilder_.getMessageOrBuilder();
1589 return objective_ ==
null ?
1590 com.google.ortools.sat.LinearObjective.getDefaultInstance() : objective_;
1601 private com.google.protobuf.SingleFieldBuilderV3<
1602 com.google.ortools.sat.LinearObjective, com.google.ortools.sat.LinearObjective.Builder, com.google.ortools.sat.LinearObjectiveOrBuilder>
1603 getObjectiveFieldBuilder() {
1604 if (objectiveBuilder_ ==
null) {
1605 objectiveBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
1606 com.google.ortools.sat.LinearObjective, com.google.ortools.sat.LinearObjective.Builder, com.google.ortools.sat.LinearObjectiveOrBuilder>(
1608 getParentForChildren(),
1612 return objectiveBuilder_;
1615 private com.google.protobuf.LazyStringArrayList varNames_ =
1616 com.google.protobuf.LazyStringArrayList.emptyList();
1617 private void ensureVarNamesIsMutable() {
1618 if (!varNames_.isModifiable()) {
1619 varNames_ =
new com.google.protobuf.LazyStringArrayList(varNames_);
1621 bitField0_ |= 0x00000010;
1633 public com.google.protobuf.ProtocolStringList
1635 varNames_.makeImmutable();
1649 return varNames_.size();
1663 return varNames_.get(index);
1676 public com.google.protobuf.ByteString
1678 return varNames_.getByteString(index);
1693 int index, java.lang.String value) {
1694 if (value ==
null) {
throw new NullPointerException(); }
1695 ensureVarNamesIsMutable();
1696 varNames_.set(index, value);
1697 bitField0_ |= 0x00000010;
1713 java.lang.String value) {
1714 if (value ==
null) {
throw new NullPointerException(); }
1715 ensureVarNamesIsMutable();
1716 varNames_.add(value);
1717 bitField0_ |= 0x00000010;
1733 java.lang.Iterable<java.lang.String> values) {
1734 ensureVarNamesIsMutable();
1735 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1737 bitField0_ |= 0x00000010;
1753 com.google.protobuf.LazyStringArrayList.emptyList();
1754 bitField0_ = (bitField0_ & ~0x00000010);;
1770 com.google.protobuf.ByteString value) {
1771 if (value ==
null) {
throw new NullPointerException(); }
1772 ensureVarNamesIsMutable();
1773 varNames_.add(value);
1774 bitField0_ |= 0x00000010;
1780 private com.google.protobuf.SingleFieldBuilderV3<
1781 com.google.ortools.sat.BooleanAssignment, com.google.ortools.sat.BooleanAssignment.Builder, com.google.ortools.sat.BooleanAssignmentOrBuilder> assignmentBuilder_;
1792 return ((bitField0_ & 0x00000020) != 0);
1804 if (assignmentBuilder_ ==
null) {
1805 return assignment_ ==
null ? com.google.ortools.sat.BooleanAssignment.getDefaultInstance() : assignment_;
1807 return assignmentBuilder_.getMessage();
1819 if (assignmentBuilder_ ==
null) {
1820 if (value ==
null) {
1821 throw new NullPointerException();
1823 assignment_ = value;
1825 assignmentBuilder_.setMessage(value);
1827 bitField0_ |= 0x00000020;
1840 com.google.ortools.sat.BooleanAssignment.Builder builderForValue) {
1841 if (assignmentBuilder_ ==
null) {
1842 assignment_ = builderForValue.build();
1844 assignmentBuilder_.setMessage(builderForValue.build());
1846 bitField0_ |= 0x00000020;
1859 if (assignmentBuilder_ ==
null) {
1860 if (((bitField0_ & 0x00000020) != 0) &&
1861 assignment_ !=
null &&
1862 assignment_ != com.google.ortools.sat.BooleanAssignment.getDefaultInstance()) {
1865 assignment_ = value;
1868 assignmentBuilder_.mergeFrom(value);
1870 if (assignment_ !=
null) {
1871 bitField0_ |= 0x00000020;
1885 bitField0_ = (bitField0_ & ~0x00000020);
1887 if (assignmentBuilder_ !=
null) {
1888 assignmentBuilder_.dispose();
1889 assignmentBuilder_ =
null;
1903 bitField0_ |= 0x00000020;
1905 return getAssignmentFieldBuilder().getBuilder();
1916 if (assignmentBuilder_ !=
null) {
1917 return assignmentBuilder_.getMessageOrBuilder();
1919 return assignment_ ==
null ?
1920 com.google.ortools.sat.BooleanAssignment.getDefaultInstance() : assignment_;
1931 private com.google.protobuf.SingleFieldBuilderV3<
1932 com.google.ortools.sat.BooleanAssignment, com.google.ortools.sat.BooleanAssignment.Builder, com.google.ortools.sat.BooleanAssignmentOrBuilder>
1933 getAssignmentFieldBuilder() {
1934 if (assignmentBuilder_ ==
null) {
1935 assignmentBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
1936 com.google.ortools.sat.BooleanAssignment, com.google.ortools.sat.BooleanAssignment.Builder, com.google.ortools.sat.BooleanAssignmentOrBuilder>(
1938 getParentForChildren(),
1942 return assignmentBuilder_;
1945 private int originalNumVariables_ ;
1959 return ((bitField0_ & 0x00000040) != 0);
1974 return originalNumVariables_;
1990 originalNumVariables_ = value;
1991 bitField0_ |= 0x00000040;
2007 bitField0_ = (bitField0_ & ~0x00000040);
2008 originalNumVariables_ = 0;
2014 final com.google.protobuf.UnknownFieldSet unknownFields) {
2020 final com.google.protobuf.UnknownFieldSet unknownFields) {
2031 DEFAULT_INSTANCE =
new com.google.ortools.sat.LinearBooleanProblem();
2035 return DEFAULT_INSTANCE;
2042 com.google.protobuf.CodedInputStream input,
2043 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2044 throws com.google.protobuf.InvalidProtocolBufferException {
2047 builder.
mergeFrom(input, extensionRegistry);
2048 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
2050 }
catch (com.google.protobuf.UninitializedMessageException e) {
2051 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.
buildPartial());
2052 }
catch (java.io.IOException e) {
2053 throw new com.google.protobuf.InvalidProtocolBufferException(e)
2071 return DEFAULT_INSTANCE;