4 package com.google.ortools.sat;
14 com.google.protobuf.GeneratedMessageV3 implements
17 private static final long serialVersionUID = 0L;
24 variables_ = java.util.Collections.emptyList();
25 constraints_ = java.util.Collections.emptyList();
26 searchStrategy_ = java.util.Collections.emptyList();
30 public final com.
google.protobuf.UnknownFieldSet
32 return this.unknownFields;
35 com.
google.protobuf.CodedInputStream input,
36 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
37 throws com.
google.protobuf.InvalidProtocolBufferException {
39 if (extensionRegistry ==
null) {
40 throw new java.lang.NullPointerException();
42 int mutable_bitField0_ = 0;
43 com.
google.protobuf.UnknownFieldSet.Builder unknownFields =
44 com.
google.protobuf.UnknownFieldSet.newBuilder();
48 int tag = input.readTag();
54 java.lang.String s = input.readStringRequireUtf8();
60 if (!((mutable_bitField0_ & 0x00000002) != 0)) {
62 mutable_bitField0_ |= 0x00000002;
69 if (!((mutable_bitField0_ & 0x00000004) != 0)) {
71 mutable_bitField0_ |= 0x00000004;
79 if (objective_ !=
null) {
83 if (subBuilder !=
null) {
84 subBuilder.mergeFrom(objective_);
85 objective_ = subBuilder.buildPartial();
91 if (!((mutable_bitField0_ & 0x00000010) != 0)) {
93 mutable_bitField0_ |= 0x00000010;
101 if (solutionHint_ !=
null) {
105 if (subBuilder !=
null) {
106 subBuilder.mergeFrom(solutionHint_);
107 solutionHint_ = subBuilder.buildPartial();
113 if (!parseUnknownField(
114 input, unknownFields, extensionRegistry, tag)) {
121 }
catch (
com.
google.protobuf.InvalidProtocolBufferException e) {
122 throw e.setUnfinishedMessage(
this);
123 }
catch (java.io.IOException e) {
124 throw new com.
google.protobuf.InvalidProtocolBufferException(
125 e).setUnfinishedMessage(
this);
127 if (((mutable_bitField0_ & 0x00000002) != 0)) {
128 variables_ = java.util.Collections.unmodifiableList(variables_);
130 if (((mutable_bitField0_ & 0x00000004) != 0)) {
131 constraints_ = java.util.Collections.unmodifiableList(constraints_);
133 if (((mutable_bitField0_ & 0x00000010) != 0)) {
134 searchStrategy_ = java.util.Collections.unmodifiableList(searchStrategy_);
136 this.unknownFields = unknownFields.build();
137 makeExtensionsImmutable();
140 public static final com.
google.protobuf.Descriptors.Descriptor
146 protected com.
google.protobuf.GeneratedMessageV3.FieldAccessorTable
149 .ensureFieldAccessorsInitialized(
153 private int bitField0_;
155 private volatile java.lang.Object name_;
164 java.lang.Object ref = name_;
165 if (ref instanceof java.lang.String) {
166 return (java.lang.String) ref;
170 java.lang.String s = bs.toStringUtf8();
184 java.lang.Object ref = name_;
185 if (ref instanceof java.lang.String) {
187 com.
google.protobuf.ByteString.copyFromUtf8(
188 (java.lang.String) ref);
192 return (
com.
google.protobuf.ByteString) ref;
227 return variables_.size();
237 return variables_.get(index);
248 return variables_.get(index);
270 return constraints_.size();
276 return constraints_.get(index);
283 return constraints_.get(index);
296 return objective_ !=
null;
337 return searchStrategy_;
356 return searchStrategy_;
374 return searchStrategy_.size();
392 return searchStrategy_.get(index);
411 return searchStrategy_.get(index);
432 return solutionHint_ !=
null;
471 private byte memoizedIsInitialized = -1;
478 memoizedIsInitialized = 1;
484 throws java.io.IOException {
486 com.
google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
488 for (
int i = 0; i < variables_.size(); i++) {
489 output.writeMessage(2, variables_.get(i));
491 for (
int i = 0; i < constraints_.size(); i++) {
492 output.writeMessage(3, constraints_.get(i));
494 if (objective_ !=
null) {
497 for (
int i = 0; i < searchStrategy_.size(); i++) {
498 output.writeMessage(5, searchStrategy_.get(i));
500 if (solutionHint_ !=
null) {
503 unknownFields.writeTo(output);
508 int size = memoizedSize;
509 if (size != -1)
return size;
513 size +=
com.
google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
515 for (
int i = 0; i < variables_.size(); i++) {
516 size +=
com.
google.protobuf.CodedOutputStream
517 .computeMessageSize(2, variables_.get(i));
519 for (
int i = 0; i < constraints_.size(); i++) {
520 size +=
com.
google.protobuf.CodedOutputStream
521 .computeMessageSize(3, constraints_.get(i));
523 if (objective_ !=
null) {
524 size +=
com.
google.protobuf.CodedOutputStream
527 for (
int i = 0; i < searchStrategy_.size(); i++) {
528 size +=
com.
google.protobuf.CodedOutputStream
529 .computeMessageSize(5, searchStrategy_.get(i));
531 if (solutionHint_ !=
null) {
532 size +=
com.
google.protobuf.CodedOutputStream
535 size += unknownFields.getSerializedSize();
541 public boolean equals(
final java.lang.Object obj) {
546 return super.equals(obj);
551 .equals(other.getName()))
return false;
553 .equals(other.getVariablesList()))
return false;
555 .equals(other.getConstraintsList()))
return false;
556 if (
hasObjective() != other.hasObjective())
return false;
559 .
equals(other.getObjective()))
return false;
562 .equals(other.getSearchStrategyList()))
return false;
566 .
equals(other.getSolutionHint()))
return false;
568 if (!unknownFields.equals(other.unknownFields))
return false;
574 if (memoizedHashCode != 0) {
575 return memoizedHashCode;
580 hash = (53 * hash) +
getName().hashCode();
601 hash = (29 * hash) + unknownFields.hashCode();
602 memoizedHashCode = hash;
607 java.nio.ByteBuffer data)
608 throws com.
google.protobuf.InvalidProtocolBufferException {
609 return PARSER.parseFrom(data);
612 java.nio.ByteBuffer data,
613 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
614 throws com.
google.protobuf.InvalidProtocolBufferException {
615 return PARSER.parseFrom(data, extensionRegistry);
619 throws com.
google.protobuf.InvalidProtocolBufferException {
620 return PARSER.parseFrom(data);
624 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
625 throws com.
google.protobuf.InvalidProtocolBufferException {
626 return PARSER.parseFrom(data, extensionRegistry);
629 throws com.
google.protobuf.InvalidProtocolBufferException {
630 return PARSER.parseFrom(data);
634 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
635 throws com.
google.protobuf.InvalidProtocolBufferException {
636 return PARSER.parseFrom(data, extensionRegistry);
639 throws java.io.IOException {
640 return com.
google.protobuf.GeneratedMessageV3
641 .parseWithIOException(PARSER, input);
644 java.io.InputStream input,
645 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
646 throws java.io.IOException {
647 return com.
google.protobuf.GeneratedMessageV3
648 .parseWithIOException(PARSER, input, extensionRegistry);
651 throws java.io.IOException {
652 return com.
google.protobuf.GeneratedMessageV3
653 .parseDelimitedWithIOException(PARSER, input);
656 java.io.InputStream input,
657 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
658 throws java.io.IOException {
659 return com.
google.protobuf.GeneratedMessageV3
660 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
663 com.
google.protobuf.CodedInputStream input)
664 throws java.io.IOException {
665 return com.
google.protobuf.GeneratedMessageV3
666 .parseWithIOException(PARSER, input);
669 com.
google.protobuf.CodedInputStream input,
670 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
671 throws java.io.IOException {
672 return com.
google.protobuf.GeneratedMessageV3
673 .parseWithIOException(PARSER, input, extensionRegistry);
686 return this == DEFAULT_INSTANCE
692 com.
google.protobuf.GeneratedMessageV3.BuilderParent parent) {
704 com.google.protobuf.GeneratedMessageV3.
Builder<Builder> implements
707 public static final com.
google.protobuf.Descriptors.Descriptor
713 protected com.
google.protobuf.GeneratedMessageV3.FieldAccessorTable
716 .ensureFieldAccessorsInitialized(
722 maybeForceBuilderInitialization();
726 com.
google.protobuf.GeneratedMessageV3.BuilderParent parent) {
728 maybeForceBuilderInitialization();
730 private void maybeForceBuilderInitialization() {
731 if (
com.
google.protobuf.GeneratedMessageV3
732 .alwaysUseFieldBuilders) {
733 getVariablesFieldBuilder();
734 getConstraintsFieldBuilder();
735 getSearchStrategyFieldBuilder();
743 if (variablesBuilder_ ==
null) {
744 variables_ = java.util.Collections.emptyList();
745 bitField0_ = (bitField0_ & ~0x00000002);
747 variablesBuilder_.clear();
749 if (constraintsBuilder_ ==
null) {
750 constraints_ = java.util.Collections.emptyList();
751 bitField0_ = (bitField0_ & ~0x00000004);
753 constraintsBuilder_.clear();
755 if (objectiveBuilder_ ==
null) {
759 objectiveBuilder_ =
null;
761 if (searchStrategyBuilder_ ==
null) {
762 searchStrategy_ = java.util.Collections.emptyList();
763 bitField0_ = (bitField0_ & ~0x00000010);
765 searchStrategyBuilder_.clear();
767 if (solutionHintBuilder_ ==
null) {
768 solutionHint_ =
null;
770 solutionHint_ =
null;
771 solutionHintBuilder_ =
null;
777 public com.
google.protobuf.Descriptors.Descriptor
790 if (!result.isInitialized()) {
791 throw newUninitializedMessageException(result);
799 int from_bitField0_ = bitField0_;
800 int to_bitField0_ = 0;
801 result.name_ = name_;
802 if (variablesBuilder_ ==
null) {
803 if (((bitField0_ & 0x00000002) != 0)) {
804 variables_ = java.util.Collections.unmodifiableList(variables_);
805 bitField0_ = (bitField0_ & ~0x00000002);
807 result.variables_ = variables_;
809 result.variables_ = variablesBuilder_.build();
811 if (constraintsBuilder_ ==
null) {
812 if (((bitField0_ & 0x00000004) != 0)) {
813 constraints_ = java.util.Collections.unmodifiableList(constraints_);
814 bitField0_ = (bitField0_ & ~0x00000004);
816 result.constraints_ = constraints_;
818 result.constraints_ = constraintsBuilder_.build();
820 if (objectiveBuilder_ ==
null) {
821 result.objective_ = objective_;
823 result.objective_ = objectiveBuilder_.build();
825 if (searchStrategyBuilder_ ==
null) {
826 if (((bitField0_ & 0x00000010) != 0)) {
827 searchStrategy_ = java.util.Collections.unmodifiableList(searchStrategy_);
828 bitField0_ = (bitField0_ & ~0x00000010);
830 result.searchStrategy_ = searchStrategy_;
832 result.searchStrategy_ = searchStrategyBuilder_.build();
834 if (solutionHintBuilder_ ==
null) {
835 result.solutionHint_ = solutionHint_;
837 result.solutionHint_ = solutionHintBuilder_.build();
839 result.bitField0_ = to_bitField0_;
846 return super.
clone();
850 com.
google.protobuf.Descriptors.FieldDescriptor field,
851 java.lang.Object value) {
852 return super.
setField(field, value);
856 com.
google.protobuf.Descriptors.FieldDescriptor field) {
861 com.
google.protobuf.Descriptors.OneofDescriptor oneof) {
866 com.
google.protobuf.Descriptors.FieldDescriptor field,
867 int index, java.lang.Object value) {
872 com.
google.protobuf.Descriptors.FieldDescriptor field,
873 java.lang.Object value) {
881 super.mergeFrom(other);
888 if (!other.getName().isEmpty()) {
892 if (variablesBuilder_ ==
null) {
893 if (!other.variables_.isEmpty()) {
894 if (variables_.isEmpty()) {
895 variables_ = other.variables_;
896 bitField0_ = (bitField0_ & ~0x00000002);
898 ensureVariablesIsMutable();
899 variables_.addAll(other.variables_);
904 if (!other.variables_.isEmpty()) {
905 if (variablesBuilder_.isEmpty()) {
906 variablesBuilder_.dispose();
907 variablesBuilder_ =
null;
908 variables_ = other.variables_;
909 bitField0_ = (bitField0_ & ~0x00000002);
911 com.
google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
912 getVariablesFieldBuilder() :
null;
914 variablesBuilder_.addAllMessages(other.variables_);
918 if (constraintsBuilder_ ==
null) {
919 if (!other.constraints_.isEmpty()) {
920 if (constraints_.isEmpty()) {
921 constraints_ = other.constraints_;
922 bitField0_ = (bitField0_ & ~0x00000004);
924 ensureConstraintsIsMutable();
925 constraints_.addAll(other.constraints_);
930 if (!other.constraints_.isEmpty()) {
931 if (constraintsBuilder_.isEmpty()) {
932 constraintsBuilder_.dispose();
933 constraintsBuilder_ =
null;
934 constraints_ = other.constraints_;
935 bitField0_ = (bitField0_ & ~0x00000004);
936 constraintsBuilder_ =
937 com.
google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
938 getConstraintsFieldBuilder() :
null;
940 constraintsBuilder_.addAllMessages(other.constraints_);
944 if (other.hasObjective()) {
947 if (searchStrategyBuilder_ ==
null) {
948 if (!other.searchStrategy_.isEmpty()) {
949 if (searchStrategy_.isEmpty()) {
950 searchStrategy_ = other.searchStrategy_;
951 bitField0_ = (bitField0_ & ~0x00000010);
953 ensureSearchStrategyIsMutable();
954 searchStrategy_.addAll(other.searchStrategy_);
959 if (!other.searchStrategy_.isEmpty()) {
960 if (searchStrategyBuilder_.isEmpty()) {
961 searchStrategyBuilder_.dispose();
962 searchStrategyBuilder_ =
null;
963 searchStrategy_ = other.searchStrategy_;
964 bitField0_ = (bitField0_ & ~0x00000010);
965 searchStrategyBuilder_ =
966 com.
google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
967 getSearchStrategyFieldBuilder() :
null;
969 searchStrategyBuilder_.addAllMessages(other.searchStrategy_);
973 if (other.hasSolutionHint()) {
988 com.
google.protobuf.CodedInputStream input,
989 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
990 throws java.io.IOException {
993 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
994 }
catch (
com.
google.protobuf.InvalidProtocolBufferException e) {
996 throw e.unwrapIOException();
998 if (parsedMessage !=
null) {
1004 private int bitField0_;
1006 private java.lang.Object name_ =
"";
1015 java.lang.Object ref = name_;
1016 if (!(ref instanceof java.lang.String)) {
1019 java.lang.String s = bs.toStringUtf8();
1023 return (java.lang.String) ref;
1035 java.lang.Object ref = name_;
1036 if (ref instanceof String) {
1038 com.
google.protobuf.ByteString.copyFromUtf8(
1039 (java.lang.String) ref);
1043 return (
com.
google.protobuf.ByteString) ref;
1054 java.lang.String value) {
1055 if (value ==
null) {
1056 throw new NullPointerException();
1085 if (value ==
null) {
1086 throw new NullPointerException();
1088 checkByteStringIsUtf8(value);
1096 java.util.Collections.emptyList();
1097 private void ensureVariablesIsMutable() {
1098 if (!((bitField0_ & 0x00000002) != 0)) {
1100 bitField0_ |= 0x00000002;
1104 private com.
google.protobuf.RepeatedFieldBuilderV3<
1115 if (variablesBuilder_ ==
null) {
1116 return java.util.Collections.unmodifiableList(variables_);
1118 return variablesBuilder_.getMessageList();
1129 if (variablesBuilder_ ==
null) {
1130 return variables_.size();
1132 return variablesBuilder_.getCount();
1143 if (variablesBuilder_ ==
null) {
1144 return variables_.get(index);
1146 return variablesBuilder_.getMessage(index);
1158 if (variablesBuilder_ ==
null) {
1159 if (value ==
null) {
1160 throw new NullPointerException();
1162 ensureVariablesIsMutable();
1163 variables_.set(index, value);
1166 variablesBuilder_.setMessage(index, value);
1179 if (variablesBuilder_ ==
null) {
1180 ensureVariablesIsMutable();
1181 variables_.set(index, builderForValue.build());
1184 variablesBuilder_.setMessage(index, builderForValue.build());
1196 if (variablesBuilder_ ==
null) {
1197 if (value ==
null) {
1198 throw new NullPointerException();
1200 ensureVariablesIsMutable();
1201 variables_.add(value);
1204 variablesBuilder_.addMessage(value);
1217 if (variablesBuilder_ ==
null) {
1218 if (value ==
null) {
1219 throw new NullPointerException();
1221 ensureVariablesIsMutable();
1222 variables_.add(index, value);
1225 variablesBuilder_.addMessage(index, value);
1238 if (variablesBuilder_ ==
null) {
1239 ensureVariablesIsMutable();
1240 variables_.add(builderForValue.build());
1243 variablesBuilder_.addMessage(builderForValue.build());
1256 if (variablesBuilder_ ==
null) {
1257 ensureVariablesIsMutable();
1258 variables_.add(index, builderForValue.build());
1261 variablesBuilder_.addMessage(index, builderForValue.build());
1274 if (variablesBuilder_ ==
null) {
1275 ensureVariablesIsMutable();
1276 com.
google.protobuf.AbstractMessageLite.Builder.addAll(
1277 values, variables_);
1280 variablesBuilder_.addAllMessages(values);
1292 if (variablesBuilder_ ==
null) {
1293 variables_ = java.util.Collections.emptyList();
1294 bitField0_ = (bitField0_ & ~0x00000002);
1297 variablesBuilder_.clear();
1309 if (variablesBuilder_ ==
null) {
1310 ensureVariablesIsMutable();
1311 variables_.remove(index);
1314 variablesBuilder_.remove(index);
1327 return getVariablesFieldBuilder().getBuilder(index);
1338 if (variablesBuilder_ ==
null) {
1339 return variables_.get(index); }
else {
1340 return variablesBuilder_.getMessageOrBuilder(index);
1352 if (variablesBuilder_ !=
null) {
1353 return variablesBuilder_.getMessageOrBuilderList();
1355 return java.util.Collections.unmodifiableList(variables_);
1366 return getVariablesFieldBuilder().addBuilder(
1378 return getVariablesFieldBuilder().addBuilder(
1390 return getVariablesFieldBuilder().getBuilderList();
1392 private com.
google.protobuf.RepeatedFieldBuilderV3<
1394 getVariablesFieldBuilder() {
1395 if (variablesBuilder_ ==
null) {
1396 variablesBuilder_ =
new com.
google.protobuf.RepeatedFieldBuilderV3<
1399 ((bitField0_ & 0x00000002) != 0),
1400 getParentForChildren(),
1404 return variablesBuilder_;
1408 java.util.Collections.emptyList();
1409 private void ensureConstraintsIsMutable() {
1410 if (!((bitField0_ & 0x00000004) != 0)) {
1412 bitField0_ |= 0x00000004;
1416 private com.
google.protobuf.RepeatedFieldBuilderV3<
1423 if (constraintsBuilder_ ==
null) {
1424 return java.util.Collections.unmodifiableList(constraints_);
1426 return constraintsBuilder_.getMessageList();
1433 if (constraintsBuilder_ ==
null) {
1434 return constraints_.size();
1436 return constraintsBuilder_.getCount();
1443 if (constraintsBuilder_ ==
null) {
1444 return constraints_.get(index);
1446 return constraintsBuilder_.getMessage(index);
1454 if (constraintsBuilder_ ==
null) {
1455 if (value ==
null) {
1456 throw new NullPointerException();
1458 ensureConstraintsIsMutable();
1459 constraints_.set(index, value);
1462 constraintsBuilder_.setMessage(index, value);
1471 if (constraintsBuilder_ ==
null) {
1472 ensureConstraintsIsMutable();
1473 constraints_.set(index, builderForValue.build());
1476 constraintsBuilder_.setMessage(index, builderForValue.build());
1484 if (constraintsBuilder_ ==
null) {
1485 if (value ==
null) {
1486 throw new NullPointerException();
1488 ensureConstraintsIsMutable();
1489 constraints_.add(value);
1492 constraintsBuilder_.addMessage(value);
1501 if (constraintsBuilder_ ==
null) {
1502 if (value ==
null) {
1503 throw new NullPointerException();
1505 ensureConstraintsIsMutable();
1506 constraints_.add(index, value);
1509 constraintsBuilder_.addMessage(index, value);
1518 if (constraintsBuilder_ ==
null) {
1519 ensureConstraintsIsMutable();
1520 constraints_.add(builderForValue.build());
1523 constraintsBuilder_.addMessage(builderForValue.build());
1532 if (constraintsBuilder_ ==
null) {
1533 ensureConstraintsIsMutable();
1534 constraints_.add(index, builderForValue.build());
1537 constraintsBuilder_.addMessage(index, builderForValue.build());
1546 if (constraintsBuilder_ ==
null) {
1547 ensureConstraintsIsMutable();
1548 com.
google.protobuf.AbstractMessageLite.Builder.addAll(
1549 values, constraints_);
1552 constraintsBuilder_.addAllMessages(values);
1560 if (constraintsBuilder_ ==
null) {
1561 constraints_ = java.util.Collections.emptyList();
1562 bitField0_ = (bitField0_ & ~0x00000004);
1565 constraintsBuilder_.clear();
1573 if (constraintsBuilder_ ==
null) {
1574 ensureConstraintsIsMutable();
1575 constraints_.remove(index);
1578 constraintsBuilder_.remove(index);
1587 return getConstraintsFieldBuilder().getBuilder(index);
1594 if (constraintsBuilder_ ==
null) {
1595 return constraints_.get(index); }
else {
1596 return constraintsBuilder_.getMessageOrBuilder(index);
1604 if (constraintsBuilder_ !=
null) {
1605 return constraintsBuilder_.getMessageOrBuilderList();
1607 return java.util.Collections.unmodifiableList(constraints_);
1614 return getConstraintsFieldBuilder().addBuilder(
1622 return getConstraintsFieldBuilder().addBuilder(
1630 return getConstraintsFieldBuilder().getBuilderList();
1632 private com.
google.protobuf.RepeatedFieldBuilderV3<
1634 getConstraintsFieldBuilder() {
1635 if (constraintsBuilder_ ==
null) {
1636 constraintsBuilder_ =
new com.
google.protobuf.RepeatedFieldBuilderV3<
1639 ((bitField0_ & 0x00000004) != 0),
1640 getParentForChildren(),
1642 constraints_ =
null;
1644 return constraintsBuilder_;
1648 private com.
google.protobuf.SingleFieldBuilderV3<
1658 return objectiveBuilder_ !=
null || objective_ !=
null;
1668 if (objectiveBuilder_ ==
null) {
1671 return objectiveBuilder_.getMessage();
1682 if (objectiveBuilder_ ==
null) {
1683 if (value ==
null) {
1684 throw new NullPointerException();
1689 objectiveBuilder_.setMessage(value);
1703 if (objectiveBuilder_ ==
null) {
1704 objective_ = builderForValue.build();
1707 objectiveBuilder_.setMessage(builderForValue.build());
1720 if (objectiveBuilder_ ==
null) {
1721 if (objective_ !=
null) {
1729 objectiveBuilder_.mergeFrom(value);
1742 if (objectiveBuilder_ ==
null) {
1747 objectiveBuilder_ =
null;
1762 return getObjectiveFieldBuilder().getBuilder();
1772 if (objectiveBuilder_ !=
null) {
1773 return objectiveBuilder_.getMessageOrBuilder();
1775 return objective_ ==
null ?
1786 private com.
google.protobuf.SingleFieldBuilderV3<
1788 getObjectiveFieldBuilder() {
1789 if (objectiveBuilder_ ==
null) {
1790 objectiveBuilder_ =
new com.
google.protobuf.SingleFieldBuilderV3<
1793 getParentForChildren(),
1797 return objectiveBuilder_;
1801 java.util.Collections.emptyList();
1802 private void ensureSearchStrategyIsMutable() {
1803 if (!((bitField0_ & 0x00000010) != 0)) {
1805 bitField0_ |= 0x00000010;
1809 private com.
google.protobuf.RepeatedFieldBuilderV3<
1828 if (searchStrategyBuilder_ ==
null) {
1829 return java.util.Collections.unmodifiableList(searchStrategy_);
1831 return searchStrategyBuilder_.getMessageList();
1850 if (searchStrategyBuilder_ ==
null) {
1851 return searchStrategy_.size();
1853 return searchStrategyBuilder_.getCount();
1872 if (searchStrategyBuilder_ ==
null) {
1873 return searchStrategy_.get(index);
1875 return searchStrategyBuilder_.getMessage(index);
1895 if (searchStrategyBuilder_ ==
null) {
1896 if (value ==
null) {
1897 throw new NullPointerException();
1899 ensureSearchStrategyIsMutable();
1900 searchStrategy_.set(index, value);
1903 searchStrategyBuilder_.setMessage(index, value);
1924 if (searchStrategyBuilder_ ==
null) {
1925 ensureSearchStrategyIsMutable();
1926 searchStrategy_.set(index, builderForValue.build());
1929 searchStrategyBuilder_.setMessage(index, builderForValue.build());
1949 if (searchStrategyBuilder_ ==
null) {
1950 if (value ==
null) {
1951 throw new NullPointerException();
1953 ensureSearchStrategyIsMutable();
1954 searchStrategy_.add(value);
1957 searchStrategyBuilder_.addMessage(value);
1978 if (searchStrategyBuilder_ ==
null) {
1979 if (value ==
null) {
1980 throw new NullPointerException();
1982 ensureSearchStrategyIsMutable();
1983 searchStrategy_.add(index, value);
1986 searchStrategyBuilder_.addMessage(index, value);
2007 if (searchStrategyBuilder_ ==
null) {
2008 ensureSearchStrategyIsMutable();
2009 searchStrategy_.add(builderForValue.build());
2012 searchStrategyBuilder_.addMessage(builderForValue.build());
2033 if (searchStrategyBuilder_ ==
null) {
2034 ensureSearchStrategyIsMutable();
2035 searchStrategy_.add(index, builderForValue.build());
2038 searchStrategyBuilder_.addMessage(index, builderForValue.build());
2059 if (searchStrategyBuilder_ ==
null) {
2060 ensureSearchStrategyIsMutable();
2061 com.
google.protobuf.AbstractMessageLite.Builder.addAll(
2062 values, searchStrategy_);
2065 searchStrategyBuilder_.addAllMessages(values);
2085 if (searchStrategyBuilder_ ==
null) {
2086 searchStrategy_ = java.util.Collections.emptyList();
2087 bitField0_ = (bitField0_ & ~0x00000010);
2090 searchStrategyBuilder_.clear();
2110 if (searchStrategyBuilder_ ==
null) {
2111 ensureSearchStrategyIsMutable();
2112 searchStrategy_.remove(index);
2115 searchStrategyBuilder_.remove(index);
2136 return getSearchStrategyFieldBuilder().getBuilder(index);
2155 if (searchStrategyBuilder_ ==
null) {
2156 return searchStrategy_.get(index); }
else {
2157 return searchStrategyBuilder_.getMessageOrBuilder(index);
2177 if (searchStrategyBuilder_ !=
null) {
2178 return searchStrategyBuilder_.getMessageOrBuilderList();
2180 return java.util.Collections.unmodifiableList(searchStrategy_);
2199 return getSearchStrategyFieldBuilder().addBuilder(
2219 return getSearchStrategyFieldBuilder().addBuilder(
2239 return getSearchStrategyFieldBuilder().getBuilderList();
2241 private com.
google.protobuf.RepeatedFieldBuilderV3<
2243 getSearchStrategyFieldBuilder() {
2244 if (searchStrategyBuilder_ ==
null) {
2245 searchStrategyBuilder_ =
new com.
google.protobuf.RepeatedFieldBuilderV3<
2248 ((bitField0_ & 0x00000010) != 0),
2249 getParentForChildren(),
2251 searchStrategy_ =
null;
2253 return searchStrategyBuilder_;
2257 private com.
google.protobuf.SingleFieldBuilderV3<
2275 return solutionHintBuilder_ !=
null || solutionHint_ !=
null;
2293 if (solutionHintBuilder_ ==
null) {
2296 return solutionHintBuilder_.getMessage();
2315 if (solutionHintBuilder_ ==
null) {
2316 if (value ==
null) {
2317 throw new NullPointerException();
2319 solutionHint_ = value;
2322 solutionHintBuilder_.setMessage(value);
2344 if (solutionHintBuilder_ ==
null) {
2345 solutionHint_ = builderForValue.build();
2348 solutionHintBuilder_.setMessage(builderForValue.build());
2369 if (solutionHintBuilder_ ==
null) {
2370 if (solutionHint_ !=
null) {
2374 solutionHint_ = value;
2378 solutionHintBuilder_.mergeFrom(value);
2399 if (solutionHintBuilder_ ==
null) {
2400 solutionHint_ =
null;
2403 solutionHint_ =
null;
2404 solutionHintBuilder_ =
null;
2427 return getSolutionHintFieldBuilder().getBuilder();
2445 if (solutionHintBuilder_ !=
null) {
2446 return solutionHintBuilder_.getMessageOrBuilder();
2448 return solutionHint_ ==
null ?
2467 private com.
google.protobuf.SingleFieldBuilderV3<
2469 getSolutionHintFieldBuilder() {
2470 if (solutionHintBuilder_ ==
null) {
2471 solutionHintBuilder_ =
new com.
google.protobuf.SingleFieldBuilderV3<
2474 getParentForChildren(),
2476 solutionHint_ =
null;
2478 return solutionHintBuilder_;
2482 final com.
google.protobuf.UnknownFieldSet unknownFields) {
2488 final com.
google.protobuf.UnknownFieldSet unknownFields) {
2503 return DEFAULT_INSTANCE;
2510 com.
google.protobuf.CodedInputStream input,
2511 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
2512 throws com.
google.protobuf.InvalidProtocolBufferException {
2528 return DEFAULT_INSTANCE;