905 com.google.protobuf.GeneratedMessageV3.
Builder<Builder> implements
908 public static final com.google.protobuf.Descriptors.Descriptor
910 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpModelProto_descriptor;
914 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
916 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpModelProto_fieldAccessorTable
917 .ensureFieldAccessorsInitialized(
918 com.google.ortools.sat.CpModelProto.class, com.google.ortools.sat.CpModelProto.Builder.class);
923 maybeForceBuilderInitialization();
927 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
929 maybeForceBuilderInitialization();
931 private void maybeForceBuilderInitialization() {
932 if (com.google.protobuf.GeneratedMessageV3
933 .alwaysUseFieldBuilders) {
934 getVariablesFieldBuilder();
935 getConstraintsFieldBuilder();
936 getObjectiveFieldBuilder();
937 getFloatingPointObjectiveFieldBuilder();
938 getSearchStrategyFieldBuilder();
939 getSolutionHintFieldBuilder();
940 getSymmetryFieldBuilder();
948 if (variablesBuilder_ ==
null) {
949 variables_ = java.util.Collections.emptyList();
952 variablesBuilder_.clear();
954 bitField0_ = (bitField0_ & ~0x00000002);
955 if (constraintsBuilder_ ==
null) {
956 constraints_ = java.util.Collections.emptyList();
959 constraintsBuilder_.clear();
961 bitField0_ = (bitField0_ & ~0x00000004);
963 if (objectiveBuilder_ !=
null) {
964 objectiveBuilder_.dispose();
965 objectiveBuilder_ =
null;
967 floatingPointObjective_ =
null;
968 if (floatingPointObjectiveBuilder_ !=
null) {
969 floatingPointObjectiveBuilder_.dispose();
970 floatingPointObjectiveBuilder_ =
null;
972 if (searchStrategyBuilder_ ==
null) {
973 searchStrategy_ = java.util.Collections.emptyList();
975 searchStrategy_ =
null;
976 searchStrategyBuilder_.clear();
978 bitField0_ = (bitField0_ & ~0x00000020);
979 solutionHint_ =
null;
980 if (solutionHintBuilder_ !=
null) {
981 solutionHintBuilder_.dispose();
982 solutionHintBuilder_ =
null;
984 assumptions_ = emptyIntList();
986 if (symmetryBuilder_ !=
null) {
987 symmetryBuilder_.dispose();
988 symmetryBuilder_ =
null;
994 public com.google.protobuf.Descriptors.Descriptor
996 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpModelProto_descriptor;
1001 return com.google.ortools.sat.CpModelProto.getDefaultInstance();
1008 throw newUninitializedMessageException(result);
1016 buildPartialRepeatedFields(result);
1017 if (bitField0_ != 0) { buildPartial0(result); }
1022 private void buildPartialRepeatedFields(com.google.ortools.sat.CpModelProto result) {
1023 if (variablesBuilder_ ==
null) {
1024 if (((bitField0_ & 0x00000002) != 0)) {
1025 variables_ = java.util.Collections.unmodifiableList(variables_);
1026 bitField0_ = (bitField0_ & ~0x00000002);
1028 result.variables_ = variables_;
1030 result.variables_ = variablesBuilder_.build();
1032 if (constraintsBuilder_ ==
null) {
1033 if (((bitField0_ & 0x00000004) != 0)) {
1034 constraints_ = java.util.Collections.unmodifiableList(constraints_);
1035 bitField0_ = (bitField0_ & ~0x00000004);
1037 result.constraints_ = constraints_;
1039 result.constraints_ = constraintsBuilder_.build();
1041 if (searchStrategyBuilder_ ==
null) {
1042 if (((bitField0_ & 0x00000020) != 0)) {
1043 searchStrategy_ = java.util.Collections.unmodifiableList(searchStrategy_);
1044 bitField0_ = (bitField0_ & ~0x00000020);
1046 result.searchStrategy_ = searchStrategy_;
1048 result.searchStrategy_ = searchStrategyBuilder_.build();
1052 private void buildPartial0(com.google.ortools.sat.CpModelProto result) {
1053 int from_bitField0_ = bitField0_;
1054 if (((from_bitField0_ & 0x00000001) != 0)) {
1055 result.name_ = name_;
1057 int to_bitField0_ = 0;
1058 if (((from_bitField0_ & 0x00000008) != 0)) {
1059 result.objective_ = objectiveBuilder_ ==
null
1061 : objectiveBuilder_.build();
1062 to_bitField0_ |= 0x00000001;
1064 if (((from_bitField0_ & 0x00000010) != 0)) {
1065 result.floatingPointObjective_ = floatingPointObjectiveBuilder_ ==
null
1066 ? floatingPointObjective_
1067 : floatingPointObjectiveBuilder_.build();
1068 to_bitField0_ |= 0x00000002;
1070 if (((from_bitField0_ & 0x00000040) != 0)) {
1071 result.solutionHint_ = solutionHintBuilder_ ==
null
1073 : solutionHintBuilder_.build();
1074 to_bitField0_ |= 0x00000004;
1076 if (((from_bitField0_ & 0x00000080) != 0)) {
1077 assumptions_.makeImmutable();
1078 result.assumptions_ = assumptions_;
1080 if (((from_bitField0_ & 0x00000100) != 0)) {
1081 result.symmetry_ = symmetryBuilder_ ==
null
1083 : symmetryBuilder_.build();
1084 to_bitField0_ |= 0x00000008;
1086 result.bitField0_ |= to_bitField0_;
1091 return super.
clone();
1095 com.google.protobuf.Descriptors.FieldDescriptor field,
1096 java.lang.Object value) {
1097 return super.
setField(field, value);
1101 com.google.protobuf.Descriptors.FieldDescriptor field) {
1106 com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1111 com.google.protobuf.Descriptors.FieldDescriptor field,
1112 int index, java.lang.Object value) {
1117 com.google.protobuf.Descriptors.FieldDescriptor field,
1118 java.lang.Object value) {
1123 if (other instanceof com.google.ortools.sat.CpModelProto) {
1124 return mergeFrom((com.google.ortools.sat.CpModelProto)other);
1126 super.mergeFrom(other);
1132 if (other == com.google.ortools.sat.CpModelProto.getDefaultInstance())
return this;
1133 if (!other.getName().isEmpty()) {
1134 name_ = other.name_;
1135 bitField0_ |= 0x00000001;
1138 if (variablesBuilder_ ==
null) {
1139 if (!other.variables_.isEmpty()) {
1140 if (variables_.isEmpty()) {
1141 variables_ = other.variables_;
1142 bitField0_ = (bitField0_ & ~0x00000002);
1144 ensureVariablesIsMutable();
1145 variables_.addAll(other.variables_);
1150 if (!other.variables_.isEmpty()) {
1151 if (variablesBuilder_.isEmpty()) {
1152 variablesBuilder_.dispose();
1153 variablesBuilder_ =
null;
1154 variables_ = other.variables_;
1155 bitField0_ = (bitField0_ & ~0x00000002);
1157 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
1158 getVariablesFieldBuilder() :
null;
1160 variablesBuilder_.addAllMessages(other.variables_);
1164 if (constraintsBuilder_ ==
null) {
1165 if (!other.constraints_.isEmpty()) {
1166 if (constraints_.isEmpty()) {
1167 constraints_ = other.constraints_;
1168 bitField0_ = (bitField0_ & ~0x00000004);
1170 ensureConstraintsIsMutable();
1171 constraints_.addAll(other.constraints_);
1176 if (!other.constraints_.isEmpty()) {
1177 if (constraintsBuilder_.isEmpty()) {
1178 constraintsBuilder_.dispose();
1179 constraintsBuilder_ =
null;
1180 constraints_ = other.constraints_;
1181 bitField0_ = (bitField0_ & ~0x00000004);
1182 constraintsBuilder_ =
1183 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
1184 getConstraintsFieldBuilder() :
null;
1186 constraintsBuilder_.addAllMessages(other.constraints_);
1190 if (other.hasObjective()) {
1193 if (other.hasFloatingPointObjective()) {
1196 if (searchStrategyBuilder_ ==
null) {
1197 if (!other.searchStrategy_.isEmpty()) {
1198 if (searchStrategy_.isEmpty()) {
1199 searchStrategy_ = other.searchStrategy_;
1200 bitField0_ = (bitField0_ & ~0x00000020);
1202 ensureSearchStrategyIsMutable();
1203 searchStrategy_.addAll(other.searchStrategy_);
1208 if (!other.searchStrategy_.isEmpty()) {
1209 if (searchStrategyBuilder_.isEmpty()) {
1210 searchStrategyBuilder_.dispose();
1211 searchStrategyBuilder_ =
null;
1212 searchStrategy_ = other.searchStrategy_;
1213 bitField0_ = (bitField0_ & ~0x00000020);
1214 searchStrategyBuilder_ =
1215 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
1216 getSearchStrategyFieldBuilder() :
null;
1218 searchStrategyBuilder_.addAllMessages(other.searchStrategy_);
1222 if (other.hasSolutionHint()) {
1225 if (!other.assumptions_.isEmpty()) {
1226 if (assumptions_.isEmpty()) {
1227 assumptions_ = other.assumptions_;
1228 assumptions_.makeImmutable();
1229 bitField0_ |= 0x00000080;
1231 ensureAssumptionsIsMutable();
1232 assumptions_.addAll(other.assumptions_);
1236 if (other.hasSymmetry()) {
1251 com.google.protobuf.CodedInputStream input,
1252 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1253 throws java.io.IOException {
1254 if (extensionRegistry ==
null) {
1255 throw new java.lang.NullPointerException();
1258 boolean done =
false;
1260 int tag = input.readTag();
1266 name_ = input.readStringRequireUtf8();
1267 bitField0_ |= 0x00000001;
1273 com.google.ortools.sat.IntegerVariableProto.parser(),
1275 if (variablesBuilder_ ==
null) {
1276 ensureVariablesIsMutable();
1279 variablesBuilder_.addMessage(m);
1286 com.google.ortools.sat.ConstraintProto.parser(),
1288 if (constraintsBuilder_ ==
null) {
1289 ensureConstraintsIsMutable();
1290 constraints_.add(m);
1292 constraintsBuilder_.addMessage(m);
1298 getObjectiveFieldBuilder().getBuilder(),
1300 bitField0_ |= 0x00000008;
1306 com.google.ortools.sat.DecisionStrategyProto.parser(),
1308 if (searchStrategyBuilder_ ==
null) {
1309 ensureSearchStrategyIsMutable();
1310 searchStrategy_.add(m);
1312 searchStrategyBuilder_.addMessage(m);
1318 getSolutionHintFieldBuilder().getBuilder(),
1320 bitField0_ |= 0x00000040;
1324 int v = input.readInt32();
1325 ensureAssumptionsIsMutable();
1326 assumptions_.addInt(v);
1330 int length = input.readRawVarint32();
1331 int limit = input.pushLimit(length);
1332 ensureAssumptionsIsMutable();
1333 while (input.getBytesUntilLimit() > 0) {
1334 assumptions_.addInt(input.readInt32());
1336 input.popLimit(limit);
1341 getSymmetryFieldBuilder().getBuilder(),
1343 bitField0_ |= 0x00000100;
1348 getFloatingPointObjectiveFieldBuilder().getBuilder(),
1350 bitField0_ |= 0x00000010;
1354 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1361 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
1362 throw e.unwrapIOException();
1368 private int bitField0_;
1370 private java.lang.Object name_ =
"";
1380 java.lang.Object ref = name_;
1381 if (!(ref instanceof java.lang.String)) {
1382 com.google.protobuf.ByteString bs =
1383 (com.google.protobuf.ByteString) ref;
1384 java.lang.String s = bs.toStringUtf8();
1388 return (java.lang.String) ref;
1399 public com.google.protobuf.ByteString
1401 java.lang.Object ref = name_;
1402 if (ref instanceof String) {
1403 com.google.protobuf.ByteString b =
1404 com.google.protobuf.ByteString.copyFromUtf8(
1405 (java.lang.String) ref);
1409 return (com.google.protobuf.ByteString) ref;
1422 java.lang.String value) {
1423 if (value ==
null) {
throw new NullPointerException(); }
1425 bitField0_ |= 0x00000001;
1439 bitField0_ = (bitField0_ & ~0x00000001);
1453 com.google.protobuf.ByteString value) {
1454 if (value ==
null) {
throw new NullPointerException(); }
1455 checkByteStringIsUtf8(value);
1457 bitField0_ |= 0x00000001;
1462 private java.util.List<com.google.ortools.sat.IntegerVariableProto> variables_ =
1463 java.util.Collections.emptyList();
1464 private void ensureVariablesIsMutable() {
1465 if (!((bitField0_ & 0x00000002) != 0)) {
1466 variables_ =
new java.util.ArrayList<com.google.ortools.sat.IntegerVariableProto>(variables_);
1467 bitField0_ |= 0x00000002;
1471 private com.google.protobuf.RepeatedFieldBuilderV3<
1472 com.google.ortools.sat.IntegerVariableProto, com.google.ortools.sat.IntegerVariableProto.Builder, com.google.ortools.sat.IntegerVariableProtoOrBuilder> variablesBuilder_;
1482 if (variablesBuilder_ ==
null) {
1483 return java.util.Collections.unmodifiableList(variables_);
1485 return variablesBuilder_.getMessageList();
1496 if (variablesBuilder_ ==
null) {
1497 return variables_.size();
1499 return variablesBuilder_.getCount();
1510 if (variablesBuilder_ ==
null) {
1511 return variables_.get(index);
1513 return variablesBuilder_.getMessage(index);
1524 int index, com.google.ortools.sat.IntegerVariableProto value) {
1525 if (variablesBuilder_ ==
null) {
1526 if (value ==
null) {
1527 throw new NullPointerException();
1529 ensureVariablesIsMutable();
1530 variables_.set(index, value);
1533 variablesBuilder_.setMessage(index, value);
1545 int index, com.google.ortools.sat.IntegerVariableProto.Builder builderForValue) {
1546 if (variablesBuilder_ ==
null) {
1547 ensureVariablesIsMutable();
1548 variables_.set(index, builderForValue.build());
1551 variablesBuilder_.setMessage(index, builderForValue.build());
1563 if (variablesBuilder_ ==
null) {
1564 if (value ==
null) {
1565 throw new NullPointerException();
1567 ensureVariablesIsMutable();
1568 variables_.add(value);
1571 variablesBuilder_.addMessage(value);
1583 int index, com.google.ortools.sat.IntegerVariableProto value) {
1584 if (variablesBuilder_ ==
null) {
1585 if (value ==
null) {
1586 throw new NullPointerException();
1588 ensureVariablesIsMutable();
1589 variables_.add(index, value);
1592 variablesBuilder_.addMessage(index, value);
1604 com.google.ortools.sat.IntegerVariableProto.Builder builderForValue) {
1605 if (variablesBuilder_ ==
null) {
1606 ensureVariablesIsMutable();
1607 variables_.add(builderForValue.build());
1610 variablesBuilder_.addMessage(builderForValue.build());
1622 int index, com.google.ortools.sat.IntegerVariableProto.Builder builderForValue) {
1623 if (variablesBuilder_ ==
null) {
1624 ensureVariablesIsMutable();
1625 variables_.add(index, builderForValue.build());
1628 variablesBuilder_.addMessage(index, builderForValue.build());
1640 java.lang.Iterable<? extends com.google.ortools.sat.IntegerVariableProto> values) {
1641 if (variablesBuilder_ ==
null) {
1642 ensureVariablesIsMutable();
1643 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1644 values, variables_);
1647 variablesBuilder_.addAllMessages(values);
1659 if (variablesBuilder_ ==
null) {
1660 variables_ = java.util.Collections.emptyList();
1661 bitField0_ = (bitField0_ & ~0x00000002);
1664 variablesBuilder_.clear();
1676 if (variablesBuilder_ ==
null) {
1677 ensureVariablesIsMutable();
1678 variables_.remove(index);
1681 variablesBuilder_.remove(index);
1694 return getVariablesFieldBuilder().getBuilder(index);
1705 if (variablesBuilder_ ==
null) {
1706 return variables_.get(index); }
else {
1707 return variablesBuilder_.getMessageOrBuilder(index);
1717 public java.util.List<? extends com.google.ortools.sat.IntegerVariableProtoOrBuilder>
1719 if (variablesBuilder_ !=
null) {
1720 return variablesBuilder_.getMessageOrBuilderList();
1722 return java.util.Collections.unmodifiableList(variables_);
1733 return getVariablesFieldBuilder().addBuilder(
1734 com.google.ortools.sat.IntegerVariableProto.getDefaultInstance());
1745 return getVariablesFieldBuilder().addBuilder(
1746 index, com.google.ortools.sat.IntegerVariableProto.getDefaultInstance());
1755 public java.util.List<com.google.ortools.sat.IntegerVariableProto.Builder>
1757 return getVariablesFieldBuilder().getBuilderList();
1759 private com.google.protobuf.RepeatedFieldBuilderV3<
1760 com.google.ortools.sat.IntegerVariableProto, com.google.ortools.sat.IntegerVariableProto.Builder, com.google.ortools.sat.IntegerVariableProtoOrBuilder>
1761 getVariablesFieldBuilder() {
1762 if (variablesBuilder_ ==
null) {
1763 variablesBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
1764 com.google.ortools.sat.IntegerVariableProto, com.google.ortools.sat.IntegerVariableProto.Builder, com.google.ortools.sat.IntegerVariableProtoOrBuilder>(
1766 ((bitField0_ & 0x00000002) != 0),
1767 getParentForChildren(),
1771 return variablesBuilder_;
1774 private java.util.List<com.google.ortools.sat.ConstraintProto> constraints_ =
1775 java.util.Collections.emptyList();
1776 private void ensureConstraintsIsMutable() {
1777 if (!((bitField0_ & 0x00000004) != 0)) {
1778 constraints_ =
new java.util.ArrayList<com.google.ortools.sat.ConstraintProto>(constraints_);
1779 bitField0_ |= 0x00000004;
1783 private com.google.protobuf.RepeatedFieldBuilderV3<
1784 com.google.ortools.sat.ConstraintProto, com.google.ortools.sat.ConstraintProto.Builder, com.google.ortools.sat.ConstraintProtoOrBuilder> constraintsBuilder_;
1790 if (constraintsBuilder_ ==
null) {
1791 return java.util.Collections.unmodifiableList(constraints_);
1793 return constraintsBuilder_.getMessageList();
1800 if (constraintsBuilder_ ==
null) {
1801 return constraints_.size();
1803 return constraintsBuilder_.getCount();
1810 if (constraintsBuilder_ ==
null) {
1811 return constraints_.get(index);
1813 return constraintsBuilder_.getMessage(index);
1820 int index, com.google.ortools.sat.ConstraintProto value) {
1821 if (constraintsBuilder_ ==
null) {
1822 if (value ==
null) {
1823 throw new NullPointerException();
1825 ensureConstraintsIsMutable();
1826 constraints_.set(index, value);
1829 constraintsBuilder_.setMessage(index, value);
1837 int index, com.google.ortools.sat.ConstraintProto.Builder builderForValue) {
1838 if (constraintsBuilder_ ==
null) {
1839 ensureConstraintsIsMutable();
1840 constraints_.set(index, builderForValue.build());
1843 constraintsBuilder_.setMessage(index, builderForValue.build());
1851 if (constraintsBuilder_ ==
null) {
1852 if (value ==
null) {
1853 throw new NullPointerException();
1855 ensureConstraintsIsMutable();
1856 constraints_.add(value);
1859 constraintsBuilder_.addMessage(value);
1867 int index, com.google.ortools.sat.ConstraintProto value) {
1868 if (constraintsBuilder_ ==
null) {
1869 if (value ==
null) {
1870 throw new NullPointerException();
1872 ensureConstraintsIsMutable();
1873 constraints_.add(index, value);
1876 constraintsBuilder_.addMessage(index, value);
1884 com.google.ortools.sat.ConstraintProto.Builder builderForValue) {
1885 if (constraintsBuilder_ ==
null) {
1886 ensureConstraintsIsMutable();
1887 constraints_.add(builderForValue.build());
1890 constraintsBuilder_.addMessage(builderForValue.build());
1898 int index, com.google.ortools.sat.ConstraintProto.Builder builderForValue) {
1899 if (constraintsBuilder_ ==
null) {
1900 ensureConstraintsIsMutable();
1901 constraints_.add(index, builderForValue.build());
1904 constraintsBuilder_.addMessage(index, builderForValue.build());
1912 java.lang.Iterable<? extends com.google.ortools.sat.ConstraintProto> values) {
1913 if (constraintsBuilder_ ==
null) {
1914 ensureConstraintsIsMutable();
1915 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1916 values, constraints_);
1919 constraintsBuilder_.addAllMessages(values);
1927 if (constraintsBuilder_ ==
null) {
1928 constraints_ = java.util.Collections.emptyList();
1929 bitField0_ = (bitField0_ & ~0x00000004);
1932 constraintsBuilder_.clear();
1940 if (constraintsBuilder_ ==
null) {
1941 ensureConstraintsIsMutable();
1942 constraints_.remove(index);
1945 constraintsBuilder_.remove(index);
1954 return getConstraintsFieldBuilder().getBuilder(index);
1961 if (constraintsBuilder_ ==
null) {
1962 return constraints_.get(index); }
else {
1963 return constraintsBuilder_.getMessageOrBuilder(index);
1969 public java.util.List<? extends com.google.ortools.sat.ConstraintProtoOrBuilder>
1971 if (constraintsBuilder_ !=
null) {
1972 return constraintsBuilder_.getMessageOrBuilderList();
1974 return java.util.Collections.unmodifiableList(constraints_);
1981 return getConstraintsFieldBuilder().addBuilder(
1982 com.google.ortools.sat.ConstraintProto.getDefaultInstance());
1989 return getConstraintsFieldBuilder().addBuilder(
1990 index, com.google.ortools.sat.ConstraintProto.getDefaultInstance());
1995 public java.util.List<com.google.ortools.sat.ConstraintProto.Builder>
1997 return getConstraintsFieldBuilder().getBuilderList();
1999 private com.google.protobuf.RepeatedFieldBuilderV3<
2000 com.google.ortools.sat.ConstraintProto, com.google.ortools.sat.ConstraintProto.Builder, com.google.ortools.sat.ConstraintProtoOrBuilder>
2001 getConstraintsFieldBuilder() {
2002 if (constraintsBuilder_ ==
null) {
2003 constraintsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
2004 com.google.ortools.sat.ConstraintProto, com.google.ortools.sat.ConstraintProto.Builder, com.google.ortools.sat.ConstraintProtoOrBuilder>(
2006 ((bitField0_ & 0x00000004) != 0),
2007 getParentForChildren(),
2009 constraints_ =
null;
2011 return constraintsBuilder_;
2015 private com.google.protobuf.SingleFieldBuilderV3<
2016 com.google.ortools.sat.CpObjectiveProto, com.google.ortools.sat.CpObjectiveProto.Builder, com.google.ortools.sat.CpObjectiveProtoOrBuilder> objectiveBuilder_;
2026 return ((bitField0_ & 0x00000008) != 0);
2037 if (objectiveBuilder_ ==
null) {
2038 return objective_ ==
null ? com.google.ortools.sat.CpObjectiveProto.getDefaultInstance() : objective_;
2040 return objectiveBuilder_.getMessage();
2051 if (objectiveBuilder_ ==
null) {
2052 if (value ==
null) {
2053 throw new NullPointerException();
2057 objectiveBuilder_.setMessage(value);
2059 bitField0_ |= 0x00000008;
2071 com.google.ortools.sat.CpObjectiveProto.Builder builderForValue) {
2072 if (objectiveBuilder_ ==
null) {
2073 objective_ = builderForValue.build();
2075 objectiveBuilder_.setMessage(builderForValue.build());
2077 bitField0_ |= 0x00000008;
2089 if (objectiveBuilder_ ==
null) {
2090 if (((bitField0_ & 0x00000008) != 0) &&
2091 objective_ !=
null &&
2092 objective_ != com.google.ortools.sat.CpObjectiveProto.getDefaultInstance()) {
2098 objectiveBuilder_.mergeFrom(value);
2100 if (objective_ !=
null) {
2101 bitField0_ |= 0x00000008;
2114 bitField0_ = (bitField0_ & ~0x00000008);
2116 if (objectiveBuilder_ !=
null) {
2117 objectiveBuilder_.dispose();
2118 objectiveBuilder_ =
null;
2131 bitField0_ |= 0x00000008;
2133 return getObjectiveFieldBuilder().getBuilder();
2143 if (objectiveBuilder_ !=
null) {
2144 return objectiveBuilder_.getMessageOrBuilder();
2146 return objective_ ==
null ?
2147 com.google.ortools.sat.CpObjectiveProto.getDefaultInstance() : objective_;
2157 private com.google.protobuf.SingleFieldBuilderV3<
2158 com.google.ortools.sat.CpObjectiveProto, com.google.ortools.sat.CpObjectiveProto.Builder, com.google.ortools.sat.CpObjectiveProtoOrBuilder>
2159 getObjectiveFieldBuilder() {
2160 if (objectiveBuilder_ ==
null) {
2161 objectiveBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
2162 com.google.ortools.sat.CpObjectiveProto, com.google.ortools.sat.CpObjectiveProto.Builder, com.google.ortools.sat.CpObjectiveProtoOrBuilder>(
2164 getParentForChildren(),
2168 return objectiveBuilder_;
2172 private com.google.protobuf.SingleFieldBuilderV3<
2173 com.google.ortools.sat.FloatObjectiveProto, com.google.ortools.sat.FloatObjectiveProto.Builder, com.google.ortools.sat.FloatObjectiveProtoOrBuilder> floatingPointObjectiveBuilder_;
2195 return ((bitField0_ & 0x00000010) != 0);
2218 if (floatingPointObjectiveBuilder_ ==
null) {
2219 return floatingPointObjective_ ==
null ? com.google.ortools.sat.FloatObjectiveProto.getDefaultInstance() : floatingPointObjective_;
2221 return floatingPointObjectiveBuilder_.getMessage();
2244 if (floatingPointObjectiveBuilder_ ==
null) {
2245 if (value ==
null) {
2246 throw new NullPointerException();
2248 floatingPointObjective_ = value;
2250 floatingPointObjectiveBuilder_.setMessage(value);
2252 bitField0_ |= 0x00000010;
2276 com.google.ortools.sat.FloatObjectiveProto.Builder builderForValue) {
2277 if (floatingPointObjectiveBuilder_ ==
null) {
2278 floatingPointObjective_ = builderForValue.build();
2280 floatingPointObjectiveBuilder_.setMessage(builderForValue.build());
2282 bitField0_ |= 0x00000010;
2306 if (floatingPointObjectiveBuilder_ ==
null) {
2307 if (((bitField0_ & 0x00000010) != 0) &&
2308 floatingPointObjective_ !=
null &&
2309 floatingPointObjective_ != com.google.ortools.sat.FloatObjectiveProto.getDefaultInstance()) {
2312 floatingPointObjective_ = value;
2315 floatingPointObjectiveBuilder_.mergeFrom(value);
2317 if (floatingPointObjective_ !=
null) {
2318 bitField0_ |= 0x00000010;
2343 bitField0_ = (bitField0_ & ~0x00000010);
2344 floatingPointObjective_ =
null;
2345 if (floatingPointObjectiveBuilder_ !=
null) {
2346 floatingPointObjectiveBuilder_.dispose();
2347 floatingPointObjectiveBuilder_ =
null;
2372 bitField0_ |= 0x00000010;
2374 return getFloatingPointObjectiveFieldBuilder().getBuilder();
2396 if (floatingPointObjectiveBuilder_ !=
null) {
2397 return floatingPointObjectiveBuilder_.getMessageOrBuilder();
2399 return floatingPointObjective_ ==
null ?
2400 com.google.ortools.sat.FloatObjectiveProto.getDefaultInstance() : floatingPointObjective_;
2422 private com.google.protobuf.SingleFieldBuilderV3<
2423 com.google.ortools.sat.FloatObjectiveProto, com.google.ortools.sat.FloatObjectiveProto.Builder, com.google.ortools.sat.FloatObjectiveProtoOrBuilder>
2424 getFloatingPointObjectiveFieldBuilder() {
2425 if (floatingPointObjectiveBuilder_ ==
null) {
2426 floatingPointObjectiveBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
2427 com.google.ortools.sat.FloatObjectiveProto, com.google.ortools.sat.FloatObjectiveProto.Builder, com.google.ortools.sat.FloatObjectiveProtoOrBuilder>(
2429 getParentForChildren(),
2431 floatingPointObjective_ =
null;
2433 return floatingPointObjectiveBuilder_;
2436 private java.util.List<com.google.ortools.sat.DecisionStrategyProto> searchStrategy_ =
2437 java.util.Collections.emptyList();
2438 private void ensureSearchStrategyIsMutable() {
2439 if (!((bitField0_ & 0x00000020) != 0)) {
2440 searchStrategy_ =
new java.util.ArrayList<com.google.ortools.sat.DecisionStrategyProto>(searchStrategy_);
2441 bitField0_ |= 0x00000020;
2445 private com.google.protobuf.RepeatedFieldBuilderV3<
2446 com.google.ortools.sat.DecisionStrategyProto, com.google.ortools.sat.DecisionStrategyProto.Builder, com.google.ortools.sat.DecisionStrategyProtoOrBuilder> searchStrategyBuilder_;
2464 if (searchStrategyBuilder_ ==
null) {
2465 return java.util.Collections.unmodifiableList(searchStrategy_);
2467 return searchStrategyBuilder_.getMessageList();
2486 if (searchStrategyBuilder_ ==
null) {
2487 return searchStrategy_.size();
2489 return searchStrategyBuilder_.getCount();
2508 if (searchStrategyBuilder_ ==
null) {
2509 return searchStrategy_.get(index);
2511 return searchStrategyBuilder_.getMessage(index);
2530 int index, com.google.ortools.sat.DecisionStrategyProto value) {
2531 if (searchStrategyBuilder_ ==
null) {
2532 if (value ==
null) {
2533 throw new NullPointerException();
2535 ensureSearchStrategyIsMutable();
2536 searchStrategy_.set(index, value);
2539 searchStrategyBuilder_.setMessage(index, value);
2559 int index, com.google.ortools.sat.DecisionStrategyProto.Builder builderForValue) {
2560 if (searchStrategyBuilder_ ==
null) {
2561 ensureSearchStrategyIsMutable();
2562 searchStrategy_.set(index, builderForValue.build());
2565 searchStrategyBuilder_.setMessage(index, builderForValue.build());
2585 if (searchStrategyBuilder_ ==
null) {
2586 if (value ==
null) {
2587 throw new NullPointerException();
2589 ensureSearchStrategyIsMutable();
2590 searchStrategy_.add(value);
2593 searchStrategyBuilder_.addMessage(value);
2613 int index, com.google.ortools.sat.DecisionStrategyProto value) {
2614 if (searchStrategyBuilder_ ==
null) {
2615 if (value ==
null) {
2616 throw new NullPointerException();
2618 ensureSearchStrategyIsMutable();
2619 searchStrategy_.add(index, value);
2622 searchStrategyBuilder_.addMessage(index, value);
2642 com.google.ortools.sat.DecisionStrategyProto.Builder builderForValue) {
2643 if (searchStrategyBuilder_ ==
null) {
2644 ensureSearchStrategyIsMutable();
2645 searchStrategy_.add(builderForValue.build());
2648 searchStrategyBuilder_.addMessage(builderForValue.build());
2668 int index, com.google.ortools.sat.DecisionStrategyProto.Builder builderForValue) {
2669 if (searchStrategyBuilder_ ==
null) {
2670 ensureSearchStrategyIsMutable();
2671 searchStrategy_.add(index, builderForValue.build());
2674 searchStrategyBuilder_.addMessage(index, builderForValue.build());
2694 java.lang.Iterable<? extends com.google.ortools.sat.DecisionStrategyProto> values) {
2695 if (searchStrategyBuilder_ ==
null) {
2696 ensureSearchStrategyIsMutable();
2697 com.google.protobuf.AbstractMessageLite.Builder.addAll(
2698 values, searchStrategy_);
2701 searchStrategyBuilder_.addAllMessages(values);
2721 if (searchStrategyBuilder_ ==
null) {
2722 searchStrategy_ = java.util.Collections.emptyList();
2723 bitField0_ = (bitField0_ & ~0x00000020);
2726 searchStrategyBuilder_.clear();
2746 if (searchStrategyBuilder_ ==
null) {
2747 ensureSearchStrategyIsMutable();
2748 searchStrategy_.remove(index);
2751 searchStrategyBuilder_.remove(index);
2772 return getSearchStrategyFieldBuilder().getBuilder(index);
2791 if (searchStrategyBuilder_ ==
null) {
2792 return searchStrategy_.get(index); }
else {
2793 return searchStrategyBuilder_.getMessageOrBuilder(index);
2811 public java.util.List<? extends com.google.ortools.sat.DecisionStrategyProtoOrBuilder>
2813 if (searchStrategyBuilder_ !=
null) {
2814 return searchStrategyBuilder_.getMessageOrBuilderList();
2816 return java.util.Collections.unmodifiableList(searchStrategy_);
2835 return getSearchStrategyFieldBuilder().addBuilder(
2836 com.google.ortools.sat.DecisionStrategyProto.getDefaultInstance());
2855 return getSearchStrategyFieldBuilder().addBuilder(
2856 index, com.google.ortools.sat.DecisionStrategyProto.getDefaultInstance());
2873 public java.util.List<com.google.ortools.sat.DecisionStrategyProto.Builder>
2875 return getSearchStrategyFieldBuilder().getBuilderList();
2877 private com.google.protobuf.RepeatedFieldBuilderV3<
2878 com.google.ortools.sat.DecisionStrategyProto, com.google.ortools.sat.DecisionStrategyProto.Builder, com.google.ortools.sat.DecisionStrategyProtoOrBuilder>
2879 getSearchStrategyFieldBuilder() {
2880 if (searchStrategyBuilder_ ==
null) {
2881 searchStrategyBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
2882 com.google.ortools.sat.DecisionStrategyProto, com.google.ortools.sat.DecisionStrategyProto.Builder, com.google.ortools.sat.DecisionStrategyProtoOrBuilder>(
2884 ((bitField0_ & 0x00000020) != 0),
2885 getParentForChildren(),
2887 searchStrategy_ =
null;
2889 return searchStrategyBuilder_;
2893 private com.google.protobuf.SingleFieldBuilderV3<
2894 com.google.ortools.sat.PartialVariableAssignment, com.google.ortools.sat.PartialVariableAssignment.Builder, com.google.ortools.sat.PartialVariableAssignmentOrBuilder> solutionHintBuilder_;
2914 return ((bitField0_ & 0x00000040) != 0);
2935 if (solutionHintBuilder_ ==
null) {
2936 return solutionHint_ ==
null ? com.google.ortools.sat.PartialVariableAssignment.getDefaultInstance() : solutionHint_;
2938 return solutionHintBuilder_.getMessage();
2959 if (solutionHintBuilder_ ==
null) {
2960 if (value ==
null) {
2961 throw new NullPointerException();
2963 solutionHint_ = value;
2965 solutionHintBuilder_.setMessage(value);
2967 bitField0_ |= 0x00000040;
2989 com.google.ortools.sat.PartialVariableAssignment.Builder builderForValue) {
2990 if (solutionHintBuilder_ ==
null) {
2991 solutionHint_ = builderForValue.build();
2993 solutionHintBuilder_.setMessage(builderForValue.build());
2995 bitField0_ |= 0x00000040;
3017 if (solutionHintBuilder_ ==
null) {
3018 if (((bitField0_ & 0x00000040) != 0) &&
3019 solutionHint_ !=
null &&
3020 solutionHint_ != com.google.ortools.sat.PartialVariableAssignment.getDefaultInstance()) {
3023 solutionHint_ = value;
3026 solutionHintBuilder_.mergeFrom(value);
3028 if (solutionHint_ !=
null) {
3029 bitField0_ |= 0x00000040;
3052 bitField0_ = (bitField0_ & ~0x00000040);
3053 solutionHint_ =
null;
3054 if (solutionHintBuilder_ !=
null) {
3055 solutionHintBuilder_.dispose();
3056 solutionHintBuilder_ =
null;
3079 bitField0_ |= 0x00000040;
3081 return getSolutionHintFieldBuilder().getBuilder();
3101 if (solutionHintBuilder_ !=
null) {
3102 return solutionHintBuilder_.getMessageOrBuilder();
3104 return solutionHint_ ==
null ?
3105 com.google.ortools.sat.PartialVariableAssignment.getDefaultInstance() : solutionHint_;
3125 private com.google.protobuf.SingleFieldBuilderV3<
3126 com.google.ortools.sat.PartialVariableAssignment, com.google.ortools.sat.PartialVariableAssignment.Builder, com.google.ortools.sat.PartialVariableAssignmentOrBuilder>
3127 getSolutionHintFieldBuilder() {
3128 if (solutionHintBuilder_ ==
null) {
3129 solutionHintBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
3130 com.google.ortools.sat.PartialVariableAssignment, com.google.ortools.sat.PartialVariableAssignment.Builder, com.google.ortools.sat.PartialVariableAssignmentOrBuilder>(
3132 getParentForChildren(),
3134 solutionHint_ =
null;
3136 return solutionHintBuilder_;
3139 private com.google.protobuf.Internal.IntList assumptions_ = emptyIntList();
3140 private void ensureAssumptionsIsMutable() {
3141 if (!assumptions_.isModifiable()) {
3142 assumptions_ = makeMutableCopy(assumptions_);
3144 bitField0_ |= 0x00000080;
3166 public java.util.List<java.lang.Integer>
3168 assumptions_.makeImmutable();
3169 return assumptions_;
3192 return assumptions_.size();
3216 return assumptions_.getInt(index);
3241 int index,
int value) {
3243 ensureAssumptionsIsMutable();
3244 assumptions_.setInt(index, value);
3245 bitField0_ |= 0x00000080;
3272 ensureAssumptionsIsMutable();
3273 assumptions_.addInt(value);
3274 bitField0_ |= 0x00000080;
3300 java.lang.Iterable<? extends java.lang.Integer> values) {
3301 ensureAssumptionsIsMutable();
3302 com.google.protobuf.AbstractMessageLite.Builder.addAll(
3303 values, assumptions_);
3304 bitField0_ |= 0x00000080;
3329 assumptions_ = emptyIntList();
3330 bitField0_ = (bitField0_ & ~0x00000080);
3336 private com.google.protobuf.SingleFieldBuilderV3<
3337 com.google.ortools.sat.SymmetryProto, com.google.ortools.sat.SymmetryProto.Builder, com.google.ortools.sat.SymmetryProtoOrBuilder> symmetryBuilder_;
3351 return ((bitField0_ & 0x00000100) != 0);
3366 if (symmetryBuilder_ ==
null) {
3367 return symmetry_ ==
null ? com.google.ortools.sat.SymmetryProto.getDefaultInstance() : symmetry_;
3369 return symmetryBuilder_.getMessage();
3384 if (symmetryBuilder_ ==
null) {
3385 if (value ==
null) {
3386 throw new NullPointerException();
3390 symmetryBuilder_.setMessage(value);
3392 bitField0_ |= 0x00000100;
3408 com.google.ortools.sat.SymmetryProto.Builder builderForValue) {
3409 if (symmetryBuilder_ ==
null) {
3410 symmetry_ = builderForValue.build();
3412 symmetryBuilder_.setMessage(builderForValue.build());
3414 bitField0_ |= 0x00000100;
3430 if (symmetryBuilder_ ==
null) {
3431 if (((bitField0_ & 0x00000100) != 0) &&
3432 symmetry_ !=
null &&
3433 symmetry_ != com.google.ortools.sat.SymmetryProto.getDefaultInstance()) {
3439 symmetryBuilder_.mergeFrom(value);
3441 if (symmetry_ !=
null) {
3442 bitField0_ |= 0x00000100;
3459 bitField0_ = (bitField0_ & ~0x00000100);
3461 if (symmetryBuilder_ !=
null) {
3462 symmetryBuilder_.dispose();
3463 symmetryBuilder_ =
null;
3480 bitField0_ |= 0x00000100;
3482 return getSymmetryFieldBuilder().getBuilder();
3496 if (symmetryBuilder_ !=
null) {
3497 return symmetryBuilder_.getMessageOrBuilder();
3499 return symmetry_ ==
null ?
3500 com.google.ortools.sat.SymmetryProto.getDefaultInstance() : symmetry_;
3514 private com.google.protobuf.SingleFieldBuilderV3<
3515 com.google.ortools.sat.SymmetryProto, com.google.ortools.sat.SymmetryProto.Builder, com.google.ortools.sat.SymmetryProtoOrBuilder>
3516 getSymmetryFieldBuilder() {
3517 if (symmetryBuilder_ ==
null) {
3518 symmetryBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
3519 com.google.ortools.sat.SymmetryProto, com.google.ortools.sat.SymmetryProto.Builder, com.google.ortools.sat.SymmetryProtoOrBuilder>(
3521 getParentForChildren(),
3525 return symmetryBuilder_;
3529 final com.google.protobuf.UnknownFieldSet unknownFields) {
3535 final com.google.protobuf.UnknownFieldSet unknownFields) {