907 com.google.protobuf.GeneratedMessage.
Builder<Builder> implements
910 public static final com.google.protobuf.Descriptors.Descriptor
912 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpModelProto_descriptor;
916 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
918 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpModelProto_fieldAccessorTable
919 .ensureFieldAccessorsInitialized(
920 com.google.ortools.sat.CpModelProto.class, com.google.ortools.sat.CpModelProto.Builder.class);
925 maybeForceBuilderInitialization();
929 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
931 maybeForceBuilderInitialization();
933 private void maybeForceBuilderInitialization() {
934 if (com.google.protobuf.GeneratedMessage
935 .alwaysUseFieldBuilders) {
936 getVariablesFieldBuilder();
937 getConstraintsFieldBuilder();
938 getObjectiveFieldBuilder();
939 getFloatingPointObjectiveFieldBuilder();
940 getSearchStrategyFieldBuilder();
941 getSolutionHintFieldBuilder();
942 getSymmetryFieldBuilder();
950 if (variablesBuilder_ ==
null) {
951 variables_ = java.util.Collections.emptyList();
954 variablesBuilder_.clear();
956 bitField0_ = (bitField0_ & ~0x00000002);
957 if (constraintsBuilder_ ==
null) {
958 constraints_ = java.util.Collections.emptyList();
961 constraintsBuilder_.clear();
963 bitField0_ = (bitField0_ & ~0x00000004);
965 if (objectiveBuilder_ !=
null) {
966 objectiveBuilder_.dispose();
967 objectiveBuilder_ =
null;
969 floatingPointObjective_ =
null;
970 if (floatingPointObjectiveBuilder_ !=
null) {
971 floatingPointObjectiveBuilder_.dispose();
972 floatingPointObjectiveBuilder_ =
null;
974 if (searchStrategyBuilder_ ==
null) {
975 searchStrategy_ = java.util.Collections.emptyList();
977 searchStrategy_ =
null;
978 searchStrategyBuilder_.clear();
980 bitField0_ = (bitField0_ & ~0x00000020);
981 solutionHint_ =
null;
982 if (solutionHintBuilder_ !=
null) {
983 solutionHintBuilder_.dispose();
984 solutionHintBuilder_ =
null;
986 assumptions_ = emptyIntList();
988 if (symmetryBuilder_ !=
null) {
989 symmetryBuilder_.dispose();
990 symmetryBuilder_ =
null;
996 public com.google.protobuf.Descriptors.Descriptor
998 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpModelProto_descriptor;
1003 return com.google.ortools.sat.CpModelProto.getDefaultInstance();
1010 throw newUninitializedMessageException(result);
1018 buildPartialRepeatedFields(result);
1019 if (bitField0_ != 0) { buildPartial0(result); }
1024 private void buildPartialRepeatedFields(com.google.ortools.sat.CpModelProto result) {
1025 if (variablesBuilder_ ==
null) {
1026 if (((bitField0_ & 0x00000002) != 0)) {
1027 variables_ = java.util.Collections.unmodifiableList(variables_);
1028 bitField0_ = (bitField0_ & ~0x00000002);
1030 result.variables_ = variables_;
1032 result.variables_ = variablesBuilder_.build();
1034 if (constraintsBuilder_ ==
null) {
1035 if (((bitField0_ & 0x00000004) != 0)) {
1036 constraints_ = java.util.Collections.unmodifiableList(constraints_);
1037 bitField0_ = (bitField0_ & ~0x00000004);
1039 result.constraints_ = constraints_;
1041 result.constraints_ = constraintsBuilder_.build();
1043 if (searchStrategyBuilder_ ==
null) {
1044 if (((bitField0_ & 0x00000020) != 0)) {
1045 searchStrategy_ = java.util.Collections.unmodifiableList(searchStrategy_);
1046 bitField0_ = (bitField0_ & ~0x00000020);
1048 result.searchStrategy_ = searchStrategy_;
1050 result.searchStrategy_ = searchStrategyBuilder_.build();
1054 private void buildPartial0(com.google.ortools.sat.CpModelProto result) {
1055 int from_bitField0_ = bitField0_;
1056 if (((from_bitField0_ & 0x00000001) != 0)) {
1057 result.name_ = name_;
1059 int to_bitField0_ = 0;
1060 if (((from_bitField0_ & 0x00000008) != 0)) {
1061 result.objective_ = objectiveBuilder_ ==
null
1063 : objectiveBuilder_.build();
1064 to_bitField0_ |= 0x00000001;
1066 if (((from_bitField0_ & 0x00000010) != 0)) {
1067 result.floatingPointObjective_ = floatingPointObjectiveBuilder_ ==
null
1068 ? floatingPointObjective_
1069 : floatingPointObjectiveBuilder_.build();
1070 to_bitField0_ |= 0x00000002;
1072 if (((from_bitField0_ & 0x00000040) != 0)) {
1073 result.solutionHint_ = solutionHintBuilder_ ==
null
1075 : solutionHintBuilder_.build();
1076 to_bitField0_ |= 0x00000004;
1078 if (((from_bitField0_ & 0x00000080) != 0)) {
1079 assumptions_.makeImmutable();
1080 result.assumptions_ = assumptions_;
1082 if (((from_bitField0_ & 0x00000100) != 0)) {
1083 result.symmetry_ = symmetryBuilder_ ==
null
1085 : symmetryBuilder_.build();
1086 to_bitField0_ |= 0x00000008;
1088 result.bitField0_ |= to_bitField0_;
1093 if (other instanceof com.google.ortools.sat.CpModelProto) {
1094 return mergeFrom((com.google.ortools.sat.CpModelProto)other);
1096 super.mergeFrom(other);
1102 if (other == com.google.ortools.sat.CpModelProto.getDefaultInstance())
return this;
1103 if (!other.getName().isEmpty()) {
1104 name_ = other.name_;
1105 bitField0_ |= 0x00000001;
1108 if (variablesBuilder_ ==
null) {
1109 if (!other.variables_.isEmpty()) {
1110 if (variables_.isEmpty()) {
1111 variables_ = other.variables_;
1112 bitField0_ = (bitField0_ & ~0x00000002);
1114 ensureVariablesIsMutable();
1115 variables_.addAll(other.variables_);
1120 if (!other.variables_.isEmpty()) {
1121 if (variablesBuilder_.isEmpty()) {
1122 variablesBuilder_.dispose();
1123 variablesBuilder_ =
null;
1124 variables_ = other.variables_;
1125 bitField0_ = (bitField0_ & ~0x00000002);
1127 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
1128 getVariablesFieldBuilder() :
null;
1130 variablesBuilder_.addAllMessages(other.variables_);
1134 if (constraintsBuilder_ ==
null) {
1135 if (!other.constraints_.isEmpty()) {
1136 if (constraints_.isEmpty()) {
1137 constraints_ = other.constraints_;
1138 bitField0_ = (bitField0_ & ~0x00000004);
1140 ensureConstraintsIsMutable();
1141 constraints_.addAll(other.constraints_);
1146 if (!other.constraints_.isEmpty()) {
1147 if (constraintsBuilder_.isEmpty()) {
1148 constraintsBuilder_.dispose();
1149 constraintsBuilder_ =
null;
1150 constraints_ = other.constraints_;
1151 bitField0_ = (bitField0_ & ~0x00000004);
1152 constraintsBuilder_ =
1153 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
1154 getConstraintsFieldBuilder() :
null;
1156 constraintsBuilder_.addAllMessages(other.constraints_);
1160 if (other.hasObjective()) {
1163 if (other.hasFloatingPointObjective()) {
1166 if (searchStrategyBuilder_ ==
null) {
1167 if (!other.searchStrategy_.isEmpty()) {
1168 if (searchStrategy_.isEmpty()) {
1169 searchStrategy_ = other.searchStrategy_;
1170 bitField0_ = (bitField0_ & ~0x00000020);
1172 ensureSearchStrategyIsMutable();
1173 searchStrategy_.addAll(other.searchStrategy_);
1178 if (!other.searchStrategy_.isEmpty()) {
1179 if (searchStrategyBuilder_.isEmpty()) {
1180 searchStrategyBuilder_.dispose();
1181 searchStrategyBuilder_ =
null;
1182 searchStrategy_ = other.searchStrategy_;
1183 bitField0_ = (bitField0_ & ~0x00000020);
1184 searchStrategyBuilder_ =
1185 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
1186 getSearchStrategyFieldBuilder() :
null;
1188 searchStrategyBuilder_.addAllMessages(other.searchStrategy_);
1192 if (other.hasSolutionHint()) {
1195 if (!other.assumptions_.isEmpty()) {
1196 if (assumptions_.isEmpty()) {
1197 assumptions_ = other.assumptions_;
1198 assumptions_.makeImmutable();
1199 bitField0_ |= 0x00000080;
1201 ensureAssumptionsIsMutable();
1202 assumptions_.addAll(other.assumptions_);
1206 if (other.hasSymmetry()) {
1209 this.mergeUnknownFields(other.getUnknownFields());
1221 com.google.protobuf.CodedInputStream input,
1222 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1223 throws java.io.IOException {
1224 if (extensionRegistry ==
null) {
1225 throw new java.lang.NullPointerException();
1228 boolean done =
false;
1230 int tag = input.readTag();
1236 name_ = input.readStringRequireUtf8();
1237 bitField0_ |= 0x00000001;
1243 com.google.ortools.sat.IntegerVariableProto.parser(),
1245 if (variablesBuilder_ ==
null) {
1246 ensureVariablesIsMutable();
1249 variablesBuilder_.addMessage(m);
1256 com.google.ortools.sat.ConstraintProto.parser(),
1258 if (constraintsBuilder_ ==
null) {
1259 ensureConstraintsIsMutable();
1260 constraints_.add(m);
1262 constraintsBuilder_.addMessage(m);
1268 getObjectiveFieldBuilder().getBuilder(),
1270 bitField0_ |= 0x00000008;
1276 com.google.ortools.sat.DecisionStrategyProto.parser(),
1278 if (searchStrategyBuilder_ ==
null) {
1279 ensureSearchStrategyIsMutable();
1280 searchStrategy_.add(m);
1282 searchStrategyBuilder_.addMessage(m);
1288 getSolutionHintFieldBuilder().getBuilder(),
1290 bitField0_ |= 0x00000040;
1294 int v = input.readInt32();
1295 ensureAssumptionsIsMutable();
1296 assumptions_.addInt(v);
1300 int length = input.readRawVarint32();
1301 int limit = input.pushLimit(length);
1302 ensureAssumptionsIsMutable();
1303 while (input.getBytesUntilLimit() > 0) {
1304 assumptions_.addInt(input.readInt32());
1306 input.popLimit(limit);
1311 getSymmetryFieldBuilder().getBuilder(),
1313 bitField0_ |= 0x00000100;
1318 getFloatingPointObjectiveFieldBuilder().getBuilder(),
1320 bitField0_ |= 0x00000010;
1324 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1331 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
1332 throw e.unwrapIOException();
1338 private int bitField0_;
1340 private java.lang.Object name_ =
"";
1350 java.lang.Object ref = name_;
1351 if (!(ref instanceof java.lang.String)) {
1352 com.google.protobuf.ByteString bs =
1353 (com.google.protobuf.ByteString) ref;
1354 java.lang.String s = bs.toStringUtf8();
1358 return (java.lang.String) ref;
1369 public com.google.protobuf.ByteString
1371 java.lang.Object ref = name_;
1372 if (ref instanceof String) {
1373 com.google.protobuf.ByteString b =
1374 com.google.protobuf.ByteString.copyFromUtf8(
1375 (java.lang.String) ref);
1379 return (com.google.protobuf.ByteString) ref;
1392 java.lang.String value) {
1393 if (value ==
null) {
throw new NullPointerException(); }
1395 bitField0_ |= 0x00000001;
1409 bitField0_ = (bitField0_ & ~0x00000001);
1423 com.google.protobuf.ByteString value) {
1424 if (value ==
null) {
throw new NullPointerException(); }
1425 checkByteStringIsUtf8(value);
1427 bitField0_ |= 0x00000001;
1432 private java.util.List<com.google.ortools.sat.IntegerVariableProto> variables_ =
1433 java.util.Collections.emptyList();
1434 private void ensureVariablesIsMutable() {
1435 if (!((bitField0_ & 0x00000002) != 0)) {
1436 variables_ =
new java.util.ArrayList<com.google.ortools.sat.IntegerVariableProto>(variables_);
1437 bitField0_ |= 0x00000002;
1441 private com.google.protobuf.RepeatedFieldBuilder<
1442 com.google.ortools.sat.IntegerVariableProto, com.google.ortools.sat.IntegerVariableProto.Builder, com.google.ortools.sat.IntegerVariableProtoOrBuilder> variablesBuilder_;
1452 if (variablesBuilder_ ==
null) {
1453 return java.util.Collections.unmodifiableList(variables_);
1455 return variablesBuilder_.getMessageList();
1466 if (variablesBuilder_ ==
null) {
1467 return variables_.size();
1469 return variablesBuilder_.getCount();
1480 if (variablesBuilder_ ==
null) {
1481 return variables_.get(index);
1483 return variablesBuilder_.getMessage(index);
1494 int index, com.google.ortools.sat.IntegerVariableProto value) {
1495 if (variablesBuilder_ ==
null) {
1496 if (value ==
null) {
1497 throw new NullPointerException();
1499 ensureVariablesIsMutable();
1500 variables_.set(index, value);
1503 variablesBuilder_.setMessage(index, value);
1515 int index, com.google.ortools.sat.IntegerVariableProto.Builder builderForValue) {
1516 if (variablesBuilder_ ==
null) {
1517 ensureVariablesIsMutable();
1518 variables_.set(index, builderForValue.build());
1521 variablesBuilder_.setMessage(index, builderForValue.build());
1533 if (variablesBuilder_ ==
null) {
1534 if (value ==
null) {
1535 throw new NullPointerException();
1537 ensureVariablesIsMutable();
1538 variables_.add(value);
1541 variablesBuilder_.addMessage(value);
1553 int index, com.google.ortools.sat.IntegerVariableProto value) {
1554 if (variablesBuilder_ ==
null) {
1555 if (value ==
null) {
1556 throw new NullPointerException();
1558 ensureVariablesIsMutable();
1559 variables_.add(index, value);
1562 variablesBuilder_.addMessage(index, value);
1574 com.google.ortools.sat.IntegerVariableProto.Builder builderForValue) {
1575 if (variablesBuilder_ ==
null) {
1576 ensureVariablesIsMutable();
1577 variables_.add(builderForValue.build());
1580 variablesBuilder_.addMessage(builderForValue.build());
1592 int index, com.google.ortools.sat.IntegerVariableProto.Builder builderForValue) {
1593 if (variablesBuilder_ ==
null) {
1594 ensureVariablesIsMutable();
1595 variables_.add(index, builderForValue.build());
1598 variablesBuilder_.addMessage(index, builderForValue.build());
1610 java.lang.Iterable<? extends com.google.ortools.sat.IntegerVariableProto> values) {
1611 if (variablesBuilder_ ==
null) {
1612 ensureVariablesIsMutable();
1613 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1614 values, variables_);
1617 variablesBuilder_.addAllMessages(values);
1629 if (variablesBuilder_ ==
null) {
1630 variables_ = java.util.Collections.emptyList();
1631 bitField0_ = (bitField0_ & ~0x00000002);
1634 variablesBuilder_.clear();
1646 if (variablesBuilder_ ==
null) {
1647 ensureVariablesIsMutable();
1648 variables_.remove(index);
1651 variablesBuilder_.remove(index);
1664 return getVariablesFieldBuilder().getBuilder(index);
1675 if (variablesBuilder_ ==
null) {
1676 return variables_.get(index); }
else {
1677 return variablesBuilder_.getMessageOrBuilder(index);
1687 public java.util.List<? extends com.google.ortools.sat.IntegerVariableProtoOrBuilder>
1689 if (variablesBuilder_ !=
null) {
1690 return variablesBuilder_.getMessageOrBuilderList();
1692 return java.util.Collections.unmodifiableList(variables_);
1703 return getVariablesFieldBuilder().addBuilder(
1704 com.google.ortools.sat.IntegerVariableProto.getDefaultInstance());
1715 return getVariablesFieldBuilder().addBuilder(
1716 index, com.google.ortools.sat.IntegerVariableProto.getDefaultInstance());
1725 public java.util.List<com.google.ortools.sat.IntegerVariableProto.Builder>
1727 return getVariablesFieldBuilder().getBuilderList();
1729 private com.google.protobuf.RepeatedFieldBuilder<
1730 com.google.ortools.sat.IntegerVariableProto, com.google.ortools.sat.IntegerVariableProto.Builder, com.google.ortools.sat.IntegerVariableProtoOrBuilder>
1731 getVariablesFieldBuilder() {
1732 if (variablesBuilder_ ==
null) {
1733 variablesBuilder_ =
new com.google.protobuf.RepeatedFieldBuilder<
1734 com.google.ortools.sat.IntegerVariableProto, com.google.ortools.sat.IntegerVariableProto.Builder, com.google.ortools.sat.IntegerVariableProtoOrBuilder>(
1736 ((bitField0_ & 0x00000002) != 0),
1737 getParentForChildren(),
1741 return variablesBuilder_;
1744 private java.util.List<com.google.ortools.sat.ConstraintProto> constraints_ =
1745 java.util.Collections.emptyList();
1746 private void ensureConstraintsIsMutable() {
1747 if (!((bitField0_ & 0x00000004) != 0)) {
1748 constraints_ =
new java.util.ArrayList<com.google.ortools.sat.ConstraintProto>(constraints_);
1749 bitField0_ |= 0x00000004;
1753 private com.google.protobuf.RepeatedFieldBuilder<
1754 com.google.ortools.sat.ConstraintProto, com.google.ortools.sat.ConstraintProto.Builder, com.google.ortools.sat.ConstraintProtoOrBuilder> constraintsBuilder_;
1760 if (constraintsBuilder_ ==
null) {
1761 return java.util.Collections.unmodifiableList(constraints_);
1763 return constraintsBuilder_.getMessageList();
1770 if (constraintsBuilder_ ==
null) {
1771 return constraints_.size();
1773 return constraintsBuilder_.getCount();
1780 if (constraintsBuilder_ ==
null) {
1781 return constraints_.get(index);
1783 return constraintsBuilder_.getMessage(index);
1790 int index, com.google.ortools.sat.ConstraintProto value) {
1791 if (constraintsBuilder_ ==
null) {
1792 if (value ==
null) {
1793 throw new NullPointerException();
1795 ensureConstraintsIsMutable();
1796 constraints_.set(index, value);
1799 constraintsBuilder_.setMessage(index, value);
1807 int index, com.google.ortools.sat.ConstraintProto.Builder builderForValue) {
1808 if (constraintsBuilder_ ==
null) {
1809 ensureConstraintsIsMutable();
1810 constraints_.set(index, builderForValue.build());
1813 constraintsBuilder_.setMessage(index, builderForValue.build());
1821 if (constraintsBuilder_ ==
null) {
1822 if (value ==
null) {
1823 throw new NullPointerException();
1825 ensureConstraintsIsMutable();
1826 constraints_.add(value);
1829 constraintsBuilder_.addMessage(value);
1837 int index, com.google.ortools.sat.ConstraintProto value) {
1838 if (constraintsBuilder_ ==
null) {
1839 if (value ==
null) {
1840 throw new NullPointerException();
1842 ensureConstraintsIsMutable();
1843 constraints_.add(index, value);
1846 constraintsBuilder_.addMessage(index, value);
1854 com.google.ortools.sat.ConstraintProto.Builder builderForValue) {
1855 if (constraintsBuilder_ ==
null) {
1856 ensureConstraintsIsMutable();
1857 constraints_.add(builderForValue.build());
1860 constraintsBuilder_.addMessage(builderForValue.build());
1868 int index, com.google.ortools.sat.ConstraintProto.Builder builderForValue) {
1869 if (constraintsBuilder_ ==
null) {
1870 ensureConstraintsIsMutable();
1871 constraints_.add(index, builderForValue.build());
1874 constraintsBuilder_.addMessage(index, builderForValue.build());
1882 java.lang.Iterable<? extends com.google.ortools.sat.ConstraintProto> values) {
1883 if (constraintsBuilder_ ==
null) {
1884 ensureConstraintsIsMutable();
1885 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1886 values, constraints_);
1889 constraintsBuilder_.addAllMessages(values);
1897 if (constraintsBuilder_ ==
null) {
1898 constraints_ = java.util.Collections.emptyList();
1899 bitField0_ = (bitField0_ & ~0x00000004);
1902 constraintsBuilder_.clear();
1910 if (constraintsBuilder_ ==
null) {
1911 ensureConstraintsIsMutable();
1912 constraints_.remove(index);
1915 constraintsBuilder_.remove(index);
1924 return getConstraintsFieldBuilder().getBuilder(index);
1931 if (constraintsBuilder_ ==
null) {
1932 return constraints_.get(index); }
else {
1933 return constraintsBuilder_.getMessageOrBuilder(index);
1939 public java.util.List<? extends com.google.ortools.sat.ConstraintProtoOrBuilder>
1941 if (constraintsBuilder_ !=
null) {
1942 return constraintsBuilder_.getMessageOrBuilderList();
1944 return java.util.Collections.unmodifiableList(constraints_);
1951 return getConstraintsFieldBuilder().addBuilder(
1952 com.google.ortools.sat.ConstraintProto.getDefaultInstance());
1959 return getConstraintsFieldBuilder().addBuilder(
1960 index, com.google.ortools.sat.ConstraintProto.getDefaultInstance());
1965 public java.util.List<com.google.ortools.sat.ConstraintProto.Builder>
1967 return getConstraintsFieldBuilder().getBuilderList();
1969 private com.google.protobuf.RepeatedFieldBuilder<
1970 com.google.ortools.sat.ConstraintProto, com.google.ortools.sat.ConstraintProto.Builder, com.google.ortools.sat.ConstraintProtoOrBuilder>
1971 getConstraintsFieldBuilder() {
1972 if (constraintsBuilder_ ==
null) {
1973 constraintsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilder<
1974 com.google.ortools.sat.ConstraintProto, com.google.ortools.sat.ConstraintProto.Builder, com.google.ortools.sat.ConstraintProtoOrBuilder>(
1976 ((bitField0_ & 0x00000004) != 0),
1977 getParentForChildren(),
1979 constraints_ =
null;
1981 return constraintsBuilder_;
1985 private com.google.protobuf.SingleFieldBuilder<
1986 com.google.ortools.sat.CpObjectiveProto, com.google.ortools.sat.CpObjectiveProto.Builder, com.google.ortools.sat.CpObjectiveProtoOrBuilder> objectiveBuilder_;
1996 return ((bitField0_ & 0x00000008) != 0);
2007 if (objectiveBuilder_ ==
null) {
2008 return objective_ ==
null ? com.google.ortools.sat.CpObjectiveProto.getDefaultInstance() : objective_;
2010 return objectiveBuilder_.getMessage();
2021 if (objectiveBuilder_ ==
null) {
2022 if (value ==
null) {
2023 throw new NullPointerException();
2027 objectiveBuilder_.setMessage(value);
2029 bitField0_ |= 0x00000008;
2041 com.google.ortools.sat.CpObjectiveProto.Builder builderForValue) {
2042 if (objectiveBuilder_ ==
null) {
2043 objective_ = builderForValue.build();
2045 objectiveBuilder_.setMessage(builderForValue.build());
2047 bitField0_ |= 0x00000008;
2059 if (objectiveBuilder_ ==
null) {
2060 if (((bitField0_ & 0x00000008) != 0) &&
2061 objective_ !=
null &&
2062 objective_ != com.google.ortools.sat.CpObjectiveProto.getDefaultInstance()) {
2068 objectiveBuilder_.mergeFrom(value);
2070 if (objective_ !=
null) {
2071 bitField0_ |= 0x00000008;
2084 bitField0_ = (bitField0_ & ~0x00000008);
2086 if (objectiveBuilder_ !=
null) {
2087 objectiveBuilder_.dispose();
2088 objectiveBuilder_ =
null;
2101 bitField0_ |= 0x00000008;
2103 return getObjectiveFieldBuilder().getBuilder();
2113 if (objectiveBuilder_ !=
null) {
2114 return objectiveBuilder_.getMessageOrBuilder();
2116 return objective_ ==
null ?
2117 com.google.ortools.sat.CpObjectiveProto.getDefaultInstance() : objective_;
2127 private com.google.protobuf.SingleFieldBuilder<
2128 com.google.ortools.sat.CpObjectiveProto, com.google.ortools.sat.CpObjectiveProto.Builder, com.google.ortools.sat.CpObjectiveProtoOrBuilder>
2129 getObjectiveFieldBuilder() {
2130 if (objectiveBuilder_ ==
null) {
2131 objectiveBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
2132 com.google.ortools.sat.CpObjectiveProto, com.google.ortools.sat.CpObjectiveProto.Builder, com.google.ortools.sat.CpObjectiveProtoOrBuilder>(
2134 getParentForChildren(),
2138 return objectiveBuilder_;
2142 private com.google.protobuf.SingleFieldBuilder<
2143 com.google.ortools.sat.FloatObjectiveProto, com.google.ortools.sat.FloatObjectiveProto.Builder, com.google.ortools.sat.FloatObjectiveProtoOrBuilder> floatingPointObjectiveBuilder_;
2165 return ((bitField0_ & 0x00000010) != 0);
2188 if (floatingPointObjectiveBuilder_ ==
null) {
2189 return floatingPointObjective_ ==
null ? com.google.ortools.sat.FloatObjectiveProto.getDefaultInstance() : floatingPointObjective_;
2191 return floatingPointObjectiveBuilder_.getMessage();
2214 if (floatingPointObjectiveBuilder_ ==
null) {
2215 if (value ==
null) {
2216 throw new NullPointerException();
2218 floatingPointObjective_ = value;
2220 floatingPointObjectiveBuilder_.setMessage(value);
2222 bitField0_ |= 0x00000010;
2246 com.google.ortools.sat.FloatObjectiveProto.Builder builderForValue) {
2247 if (floatingPointObjectiveBuilder_ ==
null) {
2248 floatingPointObjective_ = builderForValue.build();
2250 floatingPointObjectiveBuilder_.setMessage(builderForValue.build());
2252 bitField0_ |= 0x00000010;
2276 if (floatingPointObjectiveBuilder_ ==
null) {
2277 if (((bitField0_ & 0x00000010) != 0) &&
2278 floatingPointObjective_ !=
null &&
2279 floatingPointObjective_ != com.google.ortools.sat.FloatObjectiveProto.getDefaultInstance()) {
2282 floatingPointObjective_ = value;
2285 floatingPointObjectiveBuilder_.mergeFrom(value);
2287 if (floatingPointObjective_ !=
null) {
2288 bitField0_ |= 0x00000010;
2313 bitField0_ = (bitField0_ & ~0x00000010);
2314 floatingPointObjective_ =
null;
2315 if (floatingPointObjectiveBuilder_ !=
null) {
2316 floatingPointObjectiveBuilder_.dispose();
2317 floatingPointObjectiveBuilder_ =
null;
2342 bitField0_ |= 0x00000010;
2344 return getFloatingPointObjectiveFieldBuilder().getBuilder();
2366 if (floatingPointObjectiveBuilder_ !=
null) {
2367 return floatingPointObjectiveBuilder_.getMessageOrBuilder();
2369 return floatingPointObjective_ ==
null ?
2370 com.google.ortools.sat.FloatObjectiveProto.getDefaultInstance() : floatingPointObjective_;
2392 private com.google.protobuf.SingleFieldBuilder<
2393 com.google.ortools.sat.FloatObjectiveProto, com.google.ortools.sat.FloatObjectiveProto.Builder, com.google.ortools.sat.FloatObjectiveProtoOrBuilder>
2394 getFloatingPointObjectiveFieldBuilder() {
2395 if (floatingPointObjectiveBuilder_ ==
null) {
2396 floatingPointObjectiveBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
2397 com.google.ortools.sat.FloatObjectiveProto, com.google.ortools.sat.FloatObjectiveProto.Builder, com.google.ortools.sat.FloatObjectiveProtoOrBuilder>(
2399 getParentForChildren(),
2401 floatingPointObjective_ =
null;
2403 return floatingPointObjectiveBuilder_;
2406 private java.util.List<com.google.ortools.sat.DecisionStrategyProto> searchStrategy_ =
2407 java.util.Collections.emptyList();
2408 private void ensureSearchStrategyIsMutable() {
2409 if (!((bitField0_ & 0x00000020) != 0)) {
2410 searchStrategy_ =
new java.util.ArrayList<com.google.ortools.sat.DecisionStrategyProto>(searchStrategy_);
2411 bitField0_ |= 0x00000020;
2415 private com.google.protobuf.RepeatedFieldBuilder<
2416 com.google.ortools.sat.DecisionStrategyProto, com.google.ortools.sat.DecisionStrategyProto.Builder, com.google.ortools.sat.DecisionStrategyProtoOrBuilder> searchStrategyBuilder_;
2434 if (searchStrategyBuilder_ ==
null) {
2435 return java.util.Collections.unmodifiableList(searchStrategy_);
2437 return searchStrategyBuilder_.getMessageList();
2456 if (searchStrategyBuilder_ ==
null) {
2457 return searchStrategy_.size();
2459 return searchStrategyBuilder_.getCount();
2478 if (searchStrategyBuilder_ ==
null) {
2479 return searchStrategy_.get(index);
2481 return searchStrategyBuilder_.getMessage(index);
2500 int index, com.google.ortools.sat.DecisionStrategyProto value) {
2501 if (searchStrategyBuilder_ ==
null) {
2502 if (value ==
null) {
2503 throw new NullPointerException();
2505 ensureSearchStrategyIsMutable();
2506 searchStrategy_.set(index, value);
2509 searchStrategyBuilder_.setMessage(index, value);
2529 int index, com.google.ortools.sat.DecisionStrategyProto.Builder builderForValue) {
2530 if (searchStrategyBuilder_ ==
null) {
2531 ensureSearchStrategyIsMutable();
2532 searchStrategy_.set(index, builderForValue.build());
2535 searchStrategyBuilder_.setMessage(index, builderForValue.build());
2555 if (searchStrategyBuilder_ ==
null) {
2556 if (value ==
null) {
2557 throw new NullPointerException();
2559 ensureSearchStrategyIsMutable();
2560 searchStrategy_.add(value);
2563 searchStrategyBuilder_.addMessage(value);
2583 int index, com.google.ortools.sat.DecisionStrategyProto value) {
2584 if (searchStrategyBuilder_ ==
null) {
2585 if (value ==
null) {
2586 throw new NullPointerException();
2588 ensureSearchStrategyIsMutable();
2589 searchStrategy_.add(index, value);
2592 searchStrategyBuilder_.addMessage(index, value);
2612 com.google.ortools.sat.DecisionStrategyProto.Builder builderForValue) {
2613 if (searchStrategyBuilder_ ==
null) {
2614 ensureSearchStrategyIsMutable();
2615 searchStrategy_.add(builderForValue.build());
2618 searchStrategyBuilder_.addMessage(builderForValue.build());
2638 int index, com.google.ortools.sat.DecisionStrategyProto.Builder builderForValue) {
2639 if (searchStrategyBuilder_ ==
null) {
2640 ensureSearchStrategyIsMutable();
2641 searchStrategy_.add(index, builderForValue.build());
2644 searchStrategyBuilder_.addMessage(index, builderForValue.build());
2664 java.lang.Iterable<? extends com.google.ortools.sat.DecisionStrategyProto> values) {
2665 if (searchStrategyBuilder_ ==
null) {
2666 ensureSearchStrategyIsMutable();
2667 com.google.protobuf.AbstractMessageLite.Builder.addAll(
2668 values, searchStrategy_);
2671 searchStrategyBuilder_.addAllMessages(values);
2691 if (searchStrategyBuilder_ ==
null) {
2692 searchStrategy_ = java.util.Collections.emptyList();
2693 bitField0_ = (bitField0_ & ~0x00000020);
2696 searchStrategyBuilder_.clear();
2716 if (searchStrategyBuilder_ ==
null) {
2717 ensureSearchStrategyIsMutable();
2718 searchStrategy_.remove(index);
2721 searchStrategyBuilder_.remove(index);
2742 return getSearchStrategyFieldBuilder().getBuilder(index);
2761 if (searchStrategyBuilder_ ==
null) {
2762 return searchStrategy_.get(index); }
else {
2763 return searchStrategyBuilder_.getMessageOrBuilder(index);
2781 public java.util.List<? extends com.google.ortools.sat.DecisionStrategyProtoOrBuilder>
2783 if (searchStrategyBuilder_ !=
null) {
2784 return searchStrategyBuilder_.getMessageOrBuilderList();
2786 return java.util.Collections.unmodifiableList(searchStrategy_);
2805 return getSearchStrategyFieldBuilder().addBuilder(
2806 com.google.ortools.sat.DecisionStrategyProto.getDefaultInstance());
2825 return getSearchStrategyFieldBuilder().addBuilder(
2826 index, com.google.ortools.sat.DecisionStrategyProto.getDefaultInstance());
2843 public java.util.List<com.google.ortools.sat.DecisionStrategyProto.Builder>
2845 return getSearchStrategyFieldBuilder().getBuilderList();
2847 private com.google.protobuf.RepeatedFieldBuilder<
2848 com.google.ortools.sat.DecisionStrategyProto, com.google.ortools.sat.DecisionStrategyProto.Builder, com.google.ortools.sat.DecisionStrategyProtoOrBuilder>
2849 getSearchStrategyFieldBuilder() {
2850 if (searchStrategyBuilder_ ==
null) {
2851 searchStrategyBuilder_ =
new com.google.protobuf.RepeatedFieldBuilder<
2852 com.google.ortools.sat.DecisionStrategyProto, com.google.ortools.sat.DecisionStrategyProto.Builder, com.google.ortools.sat.DecisionStrategyProtoOrBuilder>(
2854 ((bitField0_ & 0x00000020) != 0),
2855 getParentForChildren(),
2857 searchStrategy_ =
null;
2859 return searchStrategyBuilder_;
2863 private com.google.protobuf.SingleFieldBuilder<
2864 com.google.ortools.sat.PartialVariableAssignment, com.google.ortools.sat.PartialVariableAssignment.Builder, com.google.ortools.sat.PartialVariableAssignmentOrBuilder> solutionHintBuilder_;
2884 return ((bitField0_ & 0x00000040) != 0);
2905 if (solutionHintBuilder_ ==
null) {
2906 return solutionHint_ ==
null ? com.google.ortools.sat.PartialVariableAssignment.getDefaultInstance() : solutionHint_;
2908 return solutionHintBuilder_.getMessage();
2929 if (solutionHintBuilder_ ==
null) {
2930 if (value ==
null) {
2931 throw new NullPointerException();
2933 solutionHint_ = value;
2935 solutionHintBuilder_.setMessage(value);
2937 bitField0_ |= 0x00000040;
2959 com.google.ortools.sat.PartialVariableAssignment.Builder builderForValue) {
2960 if (solutionHintBuilder_ ==
null) {
2961 solutionHint_ = builderForValue.build();
2963 solutionHintBuilder_.setMessage(builderForValue.build());
2965 bitField0_ |= 0x00000040;
2987 if (solutionHintBuilder_ ==
null) {
2988 if (((bitField0_ & 0x00000040) != 0) &&
2989 solutionHint_ !=
null &&
2990 solutionHint_ != com.google.ortools.sat.PartialVariableAssignment.getDefaultInstance()) {
2993 solutionHint_ = value;
2996 solutionHintBuilder_.mergeFrom(value);
2998 if (solutionHint_ !=
null) {
2999 bitField0_ |= 0x00000040;
3022 bitField0_ = (bitField0_ & ~0x00000040);
3023 solutionHint_ =
null;
3024 if (solutionHintBuilder_ !=
null) {
3025 solutionHintBuilder_.dispose();
3026 solutionHintBuilder_ =
null;
3049 bitField0_ |= 0x00000040;
3051 return getSolutionHintFieldBuilder().getBuilder();
3071 if (solutionHintBuilder_ !=
null) {
3072 return solutionHintBuilder_.getMessageOrBuilder();
3074 return solutionHint_ ==
null ?
3075 com.google.ortools.sat.PartialVariableAssignment.getDefaultInstance() : solutionHint_;
3095 private com.google.protobuf.SingleFieldBuilder<
3096 com.google.ortools.sat.PartialVariableAssignment, com.google.ortools.sat.PartialVariableAssignment.Builder, com.google.ortools.sat.PartialVariableAssignmentOrBuilder>
3097 getSolutionHintFieldBuilder() {
3098 if (solutionHintBuilder_ ==
null) {
3099 solutionHintBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
3100 com.google.ortools.sat.PartialVariableAssignment, com.google.ortools.sat.PartialVariableAssignment.Builder, com.google.ortools.sat.PartialVariableAssignmentOrBuilder>(
3102 getParentForChildren(),
3104 solutionHint_ =
null;
3106 return solutionHintBuilder_;
3109 private com.google.protobuf.Internal.IntList assumptions_ = emptyIntList();
3110 private void ensureAssumptionsIsMutable() {
3111 if (!assumptions_.isModifiable()) {
3112 assumptions_ = makeMutableCopy(assumptions_);
3114 bitField0_ |= 0x00000080;
3136 public java.util.List<java.lang.Integer>
3138 assumptions_.makeImmutable();
3139 return assumptions_;
3162 return assumptions_.size();
3186 return assumptions_.getInt(index);
3211 int index,
int value) {
3213 ensureAssumptionsIsMutable();
3214 assumptions_.setInt(index, value);
3215 bitField0_ |= 0x00000080;
3242 ensureAssumptionsIsMutable();
3243 assumptions_.addInt(value);
3244 bitField0_ |= 0x00000080;
3270 java.lang.Iterable<? extends java.lang.Integer> values) {
3271 ensureAssumptionsIsMutable();
3272 com.google.protobuf.AbstractMessageLite.Builder.addAll(
3273 values, assumptions_);
3274 bitField0_ |= 0x00000080;
3299 assumptions_ = emptyIntList();
3300 bitField0_ = (bitField0_ & ~0x00000080);
3306 private com.google.protobuf.SingleFieldBuilder<
3307 com.google.ortools.sat.SymmetryProto, com.google.ortools.sat.SymmetryProto.Builder, com.google.ortools.sat.SymmetryProtoOrBuilder> symmetryBuilder_;
3321 return ((bitField0_ & 0x00000100) != 0);
3336 if (symmetryBuilder_ ==
null) {
3337 return symmetry_ ==
null ? com.google.ortools.sat.SymmetryProto.getDefaultInstance() : symmetry_;
3339 return symmetryBuilder_.getMessage();
3354 if (symmetryBuilder_ ==
null) {
3355 if (value ==
null) {
3356 throw new NullPointerException();
3360 symmetryBuilder_.setMessage(value);
3362 bitField0_ |= 0x00000100;
3378 com.google.ortools.sat.SymmetryProto.Builder builderForValue) {
3379 if (symmetryBuilder_ ==
null) {
3380 symmetry_ = builderForValue.build();
3382 symmetryBuilder_.setMessage(builderForValue.build());
3384 bitField0_ |= 0x00000100;
3400 if (symmetryBuilder_ ==
null) {
3401 if (((bitField0_ & 0x00000100) != 0) &&
3402 symmetry_ !=
null &&
3403 symmetry_ != com.google.ortools.sat.SymmetryProto.getDefaultInstance()) {
3409 symmetryBuilder_.mergeFrom(value);
3411 if (symmetry_ !=
null) {
3412 bitField0_ |= 0x00000100;
3429 bitField0_ = (bitField0_ & ~0x00000100);
3431 if (symmetryBuilder_ !=
null) {
3432 symmetryBuilder_.dispose();
3433 symmetryBuilder_ =
null;
3450 bitField0_ |= 0x00000100;
3452 return getSymmetryFieldBuilder().getBuilder();
3466 if (symmetryBuilder_ !=
null) {
3467 return symmetryBuilder_.getMessageOrBuilder();
3469 return symmetry_ ==
null ?
3470 com.google.ortools.sat.SymmetryProto.getDefaultInstance() : symmetry_;
3484 private com.google.protobuf.SingleFieldBuilder<
3485 com.google.ortools.sat.SymmetryProto, com.google.ortools.sat.SymmetryProto.Builder, com.google.ortools.sat.SymmetryProtoOrBuilder>
3486 getSymmetryFieldBuilder() {
3487 if (symmetryBuilder_ ==
null) {
3488 symmetryBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
3489 com.google.ortools.sat.SymmetryProto, com.google.ortools.sat.SymmetryProto.Builder, com.google.ortools.sat.SymmetryProtoOrBuilder>(
3491 getParentForChildren(),
3495 return symmetryBuilder_;