5package com.google.ortools.algorithms;
11 com.google.protobuf.GeneratedMessageV3 implements
14private static final long serialVersionUID = 0L;
16 private SetCoverProto(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
20 subset_ = java.util.Collections.emptyList();
25 @SuppressWarnings({
"unused"})
27 UnusedPrivateParameter unused) {
31 public static final com.google.protobuf.Descriptors.Descriptor
33 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_descriptor;
37 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
39 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_fieldAccessorTable
40 .ensureFieldAccessorsInitialized(
41 com.google.ortools.algorithms.SetCoverProto.class, com.google.ortools.algorithms.SetCoverProto.Builder.class);
46 com.google.protobuf.MessageOrBuilder {
99 public static final class Subset extends
100 com.google.protobuf.GeneratedMessageV3 implements
103 private static final long serialVersionUID = 0L;
105 private Subset(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
109 element_ = emptyIntList();
113 @SuppressWarnings({
"unused"})
115 UnusedPrivateParameter unused) {
119 public static final com.google.protobuf.Descriptors.Descriptor
121 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_Subset_descriptor;
125 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
127 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_Subset_fieldAccessorTable
128 .ensureFieldAccessorsInitialized(
129 com.google.ortools.algorithms.SetCoverProto.Subset.class, com.google.ortools.algorithms.SetCoverProto.Subset.Builder.class);
132 private int bitField0_;
134 private double cost_ = 0D;
145 return ((bitField0_ & 0x00000001) != 0);
161 @SuppressWarnings(
"serial")
162 private com.google.protobuf.Internal.IntList element_ =
173 public java.util.List<java.lang.Integer>
186 return element_.size();
198 return element_.getInt(index);
200 private int elementMemoizedSerializedSize = -1;
202 private byte memoizedIsInitialized = -1;
209 memoizedIsInitialized = 1;
214 public void writeTo(com.google.protobuf.CodedOutputStream output)
215 throws java.io.IOException {
217 if (((bitField0_ & 0x00000001) != 0)) {
218 output.writeDouble(1, cost_);
221 output.writeUInt32NoTag(18);
222 output.writeUInt32NoTag(elementMemoizedSerializedSize);
224 for (
int i = 0; i < element_.size(); i++) {
225 output.writeInt32NoTag(element_.getInt(i));
227 getUnknownFields().writeTo(output);
232 int size = memoizedSize;
233 if (size != -1)
return size;
236 if (((bitField0_ & 0x00000001) != 0)) {
237 size += com.google.protobuf.CodedOutputStream
238 .computeDoubleSize(1, cost_);
242 for (
int i = 0; i < element_.size(); i++) {
243 dataSize += com.google.protobuf.CodedOutputStream
244 .computeInt32SizeNoTag(element_.getInt(i));
249 size += com.google.protobuf.CodedOutputStream
250 .computeInt32SizeNoTag(dataSize);
252 elementMemoizedSerializedSize = dataSize;
254 size += getUnknownFields().getSerializedSize();
260 public boolean equals(
final java.lang.Object obj) {
264 if (!(obj instanceof com.google.ortools.algorithms.SetCoverProto.Subset)) {
265 return super.equals(obj);
271 if (java.lang.Double.doubleToLongBits(
getCost())
272 != java.lang.Double.doubleToLongBits(
273 other.
getCost()))
return false;
277 if (!getUnknownFields().equals(other.getUnknownFields()))
return false;
283 if (memoizedHashCode != 0) {
284 return memoizedHashCode;
290 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
291 java.lang.Double.doubleToLongBits(
getCost()));
297 hash = (29 * hash) + getUnknownFields().hashCode();
298 memoizedHashCode = hash;
303 java.nio.ByteBuffer data)
304 throws com.google.protobuf.InvalidProtocolBufferException {
305 return PARSER.parseFrom(data);
308 java.nio.ByteBuffer data,
309 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
310 throws com.google.protobuf.InvalidProtocolBufferException {
311 return PARSER.parseFrom(data, extensionRegistry);
314 com.google.protobuf.ByteString data)
315 throws com.google.protobuf.InvalidProtocolBufferException {
316 return PARSER.parseFrom(data);
319 com.google.protobuf.ByteString data,
320 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
321 throws com.google.protobuf.InvalidProtocolBufferException {
322 return PARSER.parseFrom(data, extensionRegistry);
325 throws com.google.protobuf.InvalidProtocolBufferException {
326 return PARSER.parseFrom(data);
330 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
331 throws com.google.protobuf.InvalidProtocolBufferException {
332 return PARSER.parseFrom(data, extensionRegistry);
335 throws java.io.IOException {
336 return com.google.protobuf.GeneratedMessageV3
337 .parseWithIOException(PARSER, input);
340 java.io.InputStream input,
341 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
342 throws java.io.IOException {
343 return com.google.protobuf.GeneratedMessageV3
344 .parseWithIOException(PARSER, input, extensionRegistry);
348 throws java.io.IOException {
349 return com.google.protobuf.GeneratedMessageV3
350 .parseDelimitedWithIOException(PARSER, input);
354 java.io.InputStream input,
355 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
356 throws java.io.IOException {
357 return com.google.protobuf.GeneratedMessageV3
358 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
361 com.google.protobuf.CodedInputStream input)
362 throws java.io.IOException {
363 return com.google.protobuf.GeneratedMessageV3
364 .parseWithIOException(PARSER, input);
367 com.google.protobuf.CodedInputStream input,
368 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
369 throws java.io.IOException {
370 return com.google.protobuf.GeneratedMessageV3
371 .parseWithIOException(PARSER, input, extensionRegistry);
379 public static Builder newBuilder(com.google.ortools.algorithms.SetCoverProto.Subset prototype) {
384 return this == DEFAULT_INSTANCE
390 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
398 com.google.protobuf.GeneratedMessageV3.
Builder<Builder> implements
401 public static final com.google.protobuf.Descriptors.Descriptor
403 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_Subset_descriptor;
407 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
409 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_Subset_fieldAccessorTable
410 .ensureFieldAccessorsInitialized(
411 com.google.ortools.algorithms.SetCoverProto.Subset.class, com.google.ortools.algorithms.SetCoverProto.Subset.Builder.class);
420 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
429 element_ = emptyIntList();
434 public com.google.protobuf.Descriptors.Descriptor
436 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_Subset_descriptor;
441 return com.google.ortools.algorithms.SetCoverProto.Subset.getDefaultInstance();
448 throw newUninitializedMessageException(result);
456 if (bitField0_ != 0) { buildPartial0(result); }
461 private void buildPartial0(com.google.ortools.algorithms.SetCoverProto.Subset result) {
462 int from_bitField0_ = bitField0_;
463 int to_bitField0_ = 0;
464 if (((from_bitField0_ & 0x00000001) != 0)) {
465 result.cost_ = cost_;
466 to_bitField0_ |= 0x00000001;
468 if (((from_bitField0_ & 0x00000002) != 0)) {
469 element_.makeImmutable();
470 result.element_ = element_;
472 result.bitField0_ |= to_bitField0_;
477 return super.
clone();
481 com.google.protobuf.Descriptors.FieldDescriptor field,
482 java.lang.Object value) {
483 return super.
setField(field, value);
487 com.google.protobuf.Descriptors.FieldDescriptor field) {
492 com.google.protobuf.Descriptors.OneofDescriptor oneof) {
497 com.google.protobuf.Descriptors.FieldDescriptor field,
498 int index, java.lang.Object value) {
503 com.google.protobuf.Descriptors.FieldDescriptor field,
504 java.lang.Object value) {
509 if (other instanceof com.google.ortools.algorithms.SetCoverProto.Subset) {
510 return mergeFrom((com.google.ortools.algorithms.SetCoverProto.Subset)other);
512 super.mergeFrom(other);
518 if (other == com.google.ortools.algorithms.SetCoverProto.Subset.getDefaultInstance())
return this;
519 if (other.hasCost()) {
522 if (!other.element_.isEmpty()) {
523 if (element_.isEmpty()) {
524 element_ = other.element_;
525 element_.makeImmutable();
526 bitField0_ |= 0x00000002;
528 ensureElementIsMutable();
529 element_.addAll(other.element_);
545 com.google.protobuf.CodedInputStream input,
546 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
547 throws java.io.IOException {
548 if (extensionRegistry ==
null) {
549 throw new java.lang.NullPointerException();
552 boolean done =
false;
554 int tag = input.readTag();
560 cost_ = input.readDouble();
561 bitField0_ |= 0x00000001;
565 int v = input.readInt32();
566 ensureElementIsMutable();
571 int length = input.readRawVarint32();
572 int limit = input.pushLimit(length);
573 ensureElementIsMutable();
574 while (input.getBytesUntilLimit() > 0) {
575 element_.addInt(input.readInt32());
577 input.popLimit(limit);
581 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
588 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
589 throw e.unwrapIOException();
595 private int bitField0_;
597 private double cost_ ;
608 return ((bitField0_ & 0x00000001) != 0);
634 bitField0_ |= 0x00000001;
647 bitField0_ = (bitField0_ & ~0x00000001);
653 private com.google.protobuf.Internal.IntList element_ = emptyIntList();
654 private void ensureElementIsMutable() {
655 if (!element_.isModifiable()) {
656 element_ = makeMutableCopy(element_);
658 bitField0_ |= 0x00000002;
668 public java.util.List<java.lang.Integer>
670 element_.makeImmutable();
682 return element_.size();
694 return element_.getInt(index);
707 int index,
int value) {
709 ensureElementIsMutable();
710 element_.setInt(index, value);
711 bitField0_ |= 0x00000002;
726 ensureElementIsMutable();
727 element_.addInt(value);
728 bitField0_ |= 0x00000002;
742 java.lang.Iterable<? extends java.lang.Integer> values) {
743 ensureElementIsMutable();
744 com.google.protobuf.AbstractMessageLite.Builder.addAll(
746 bitField0_ |= 0x00000002;
759 element_ = emptyIntList();
760 bitField0_ = (bitField0_ & ~0x00000002);
766 final com.google.protobuf.UnknownFieldSet unknownFields) {
772 final com.google.protobuf.UnknownFieldSet unknownFields) {
783 DEFAULT_INSTANCE =
new com.google.ortools.algorithms.SetCoverProto.Subset();
787 return DEFAULT_INSTANCE;
790 private static final com.google.protobuf.Parser<
Subset>
791 PARSER =
new com.google.protobuf.AbstractParser<
Subset>() {
793 public Subset parsePartialFrom(
794 com.google.protobuf.CodedInputStream input,
795 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
796 throws com.google.protobuf.InvalidProtocolBufferException {
799 builder.
mergeFrom(input, extensionRegistry);
800 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
802 }
catch (com.google.protobuf.UninitializedMessageException e) {
803 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.
buildPartial());
804 }
catch (java.io.IOException e) {
805 throw new com.google.protobuf.InvalidProtocolBufferException(e)
823 return DEFAULT_INSTANCE;
828 private int bitField0_;
830 @SuppressWarnings(
"serial")
851 public java.util.List<? extends com.google.ortools.algorithms.SetCoverProto.SubsetOrBuilder>
864 return subset_.size();
875 return subset_.get(index);
887 return subset_.get(index);
891 @SuppressWarnings(
"serial")
892 private volatile java.lang.Object name_ = "";
903 return ((bitField0_ & 0x00000001) != 0);
915 java.lang.Object ref = name_;
916 if (ref instanceof java.lang.String) {
917 return (java.lang.String) ref;
919 com.google.protobuf.ByteString bs =
920 (com.google.protobuf.ByteString) ref;
921 java.lang.String s = bs.toStringUtf8();
935 public com.google.protobuf.ByteString
937 java.lang.Object ref = name_;
938 if (ref instanceof java.lang.String) {
939 com.google.protobuf.ByteString b =
940 com.google.protobuf.ByteString.copyFromUtf8(
941 (java.lang.String) ref);
945 return (com.google.protobuf.ByteString) ref;
961 return ((bitField0_ & 0x00000002) != 0);
973 return fingerprint_ ==
null ? com.google.ortools.util.Int128.getDefaultInstance() : fingerprint_;
984 return fingerprint_ ==
null ? com.google.ortools.util.Int128.getDefaultInstance() : fingerprint_;
987 private byte memoizedIsInitialized = -1;
994 memoizedIsInitialized = 1;
999 public void writeTo(com.google.protobuf.CodedOutputStream output)
1000 throws java.io.IOException {
1001 for (
int i = 0; i < subset_.size(); i++) {
1002 output.writeMessage(1, subset_.get(i));
1004 if (((bitField0_ & 0x00000001) != 0)) {
1005 com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
1007 if (((bitField0_ & 0x00000002) != 0)) {
1010 getUnknownFields().writeTo(output);
1015 int size = memoizedSize;
1016 if (size != -1)
return size;
1019 for (
int i = 0; i < subset_.size(); i++) {
1020 size += com.google.protobuf.CodedOutputStream
1021 .computeMessageSize(1, subset_.get(i));
1023 if (((bitField0_ & 0x00000001) != 0)) {
1024 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
1026 if (((bitField0_ & 0x00000002) != 0)) {
1027 size += com.google.protobuf.CodedOutputStream
1030 size += getUnknownFields().getSerializedSize();
1031 memoizedSize = size;
1036 public boolean equals(
final java.lang.Object obj) {
1040 if (!(obj instanceof com.google.ortools.algorithms.SetCoverProto)) {
1041 return super.equals(obj);
1050 .equals(other.
getName()))
return false;
1057 if (!getUnknownFields().equals(other.getUnknownFields()))
return false;
1063 if (memoizedHashCode != 0) {
1064 return memoizedHashCode;
1074 hash = (53 * hash) +
getName().hashCode();
1080 hash = (29 * hash) + getUnknownFields().hashCode();
1081 memoizedHashCode = hash;
1086 java.nio.ByteBuffer data)
1087 throws com.google.protobuf.InvalidProtocolBufferException {
1091 java.nio.ByteBuffer data,
1092 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1093 throws com.google.protobuf.InvalidProtocolBufferException {
1094 return PARSER.
parseFrom(data, extensionRegistry);
1097 com.google.protobuf.ByteString data)
1098 throws com.google.protobuf.InvalidProtocolBufferException {
1102 com.google.protobuf.ByteString data,
1103 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1104 throws com.google.protobuf.InvalidProtocolBufferException {
1105 return PARSER.
parseFrom(data, extensionRegistry);
1108 throws com.google.protobuf.InvalidProtocolBufferException {
1113 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1114 throws com.google.protobuf.InvalidProtocolBufferException {
1115 return PARSER.
parseFrom(data, extensionRegistry);
1118 throws java.io.IOException {
1119 return com.google.protobuf.GeneratedMessageV3
1120 .parseWithIOException(PARSER, input);
1123 java.io.InputStream input,
1124 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1125 throws java.io.IOException {
1126 return com.google.protobuf.GeneratedMessageV3
1127 .parseWithIOException(PARSER, input, extensionRegistry);
1131 throws java.io.IOException {
1132 return com.google.protobuf.GeneratedMessageV3
1133 .parseDelimitedWithIOException(PARSER, input);
1137 java.io.InputStream input,
1138 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1139 throws java.io.IOException {
1140 return com.google.protobuf.GeneratedMessageV3
1141 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
1144 com.google.protobuf.CodedInputStream input)
1145 throws java.io.IOException {
1146 return com.google.protobuf.GeneratedMessageV3
1147 .parseWithIOException(PARSER, input);
1150 com.google.protobuf.CodedInputStream input,
1151 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1152 throws java.io.IOException {
1153 return com.google.protobuf.GeneratedMessageV3
1154 .parseWithIOException(PARSER, input, extensionRegistry);
1167 return this == DEFAULT_INSTANCE
1173 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1181 com.google.protobuf.GeneratedMessageV3.
Builder<Builder> implements
1184 public static final com.google.protobuf.Descriptors.Descriptor
1186 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_descriptor;
1190 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
1192 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_fieldAccessorTable
1193 .ensureFieldAccessorsInitialized(
1194 com.google.ortools.algorithms.SetCoverProto.class, com.google.ortools.algorithms.SetCoverProto.Builder.class);
1199 maybeForceBuilderInitialization();
1203 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1205 maybeForceBuilderInitialization();
1207 private void maybeForceBuilderInitialization() {
1208 if (com.google.protobuf.GeneratedMessageV3
1209 .alwaysUseFieldBuilders) {
1210 getSubsetFieldBuilder();
1211 getFingerprintFieldBuilder();
1218 if (subsetBuilder_ ==
null) {
1219 subset_ = java.util.Collections.emptyList();
1222 subsetBuilder_.clear();
1224 bitField0_ = (bitField0_ & ~0x00000001);
1226 fingerprint_ =
null;
1227 if (fingerprintBuilder_ !=
null) {
1228 fingerprintBuilder_.dispose();
1229 fingerprintBuilder_ =
null;
1235 public com.google.protobuf.Descriptors.Descriptor
1237 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_descriptor;
1242 return com.google.ortools.algorithms.SetCoverProto.getDefaultInstance();
1249 throw newUninitializedMessageException(result);
1257 buildPartialRepeatedFields(result);
1258 if (bitField0_ != 0) { buildPartial0(result); }
1263 private void buildPartialRepeatedFields(com.google.ortools.algorithms.SetCoverProto result) {
1264 if (subsetBuilder_ ==
null) {
1265 if (((bitField0_ & 0x00000001) != 0)) {
1266 subset_ = java.util.Collections.unmodifiableList(subset_);
1267 bitField0_ = (bitField0_ & ~0x00000001);
1269 result.subset_ = subset_;
1271 result.subset_ = subsetBuilder_.build();
1275 private void buildPartial0(com.google.ortools.algorithms.SetCoverProto result) {
1276 int from_bitField0_ = bitField0_;
1277 int to_bitField0_ = 0;
1278 if (((from_bitField0_ & 0x00000002) != 0)) {
1279 result.name_ = name_;
1280 to_bitField0_ |= 0x00000001;
1282 if (((from_bitField0_ & 0x00000004) != 0)) {
1283 result.fingerprint_ = fingerprintBuilder_ ==
null
1285 : fingerprintBuilder_.build();
1286 to_bitField0_ |= 0x00000002;
1288 result.bitField0_ |= to_bitField0_;
1293 return super.
clone();
1297 com.google.protobuf.Descriptors.FieldDescriptor field,
1298 java.lang.Object value) {
1299 return super.
setField(field, value);
1303 com.google.protobuf.Descriptors.FieldDescriptor field) {
1308 com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1313 com.google.protobuf.Descriptors.FieldDescriptor field,
1314 int index, java.lang.Object value) {
1319 com.google.protobuf.Descriptors.FieldDescriptor field,
1320 java.lang.Object value) {
1325 if (other instanceof com.google.ortools.algorithms.SetCoverProto) {
1326 return mergeFrom((com.google.ortools.algorithms.SetCoverProto)other);
1328 super.mergeFrom(other);
1334 if (other == com.google.ortools.algorithms.SetCoverProto.getDefaultInstance())
return this;
1335 if (subsetBuilder_ ==
null) {
1336 if (!other.subset_.isEmpty()) {
1337 if (subset_.isEmpty()) {
1338 subset_ = other.subset_;
1339 bitField0_ = (bitField0_ & ~0x00000001);
1341 ensureSubsetIsMutable();
1342 subset_.addAll(other.subset_);
1347 if (!other.subset_.isEmpty()) {
1348 if (subsetBuilder_.isEmpty()) {
1349 subsetBuilder_.dispose();
1350 subsetBuilder_ =
null;
1351 subset_ = other.subset_;
1352 bitField0_ = (bitField0_ & ~0x00000001);
1354 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
1355 getSubsetFieldBuilder() :
null;
1357 subsetBuilder_.addAllMessages(other.subset_);
1361 if (other.hasName()) {
1362 name_ = other.name_;
1363 bitField0_ |= 0x00000002;
1366 if (other.hasFingerprint()) {
1381 com.google.protobuf.CodedInputStream input,
1382 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1383 throws java.io.IOException {
1384 if (extensionRegistry ==
null) {
1385 throw new java.lang.NullPointerException();
1388 boolean done =
false;
1390 int tag = input.readTag();
1398 com.google.ortools.algorithms.SetCoverProto.Subset.parser(),
1400 if (subsetBuilder_ ==
null) {
1401 ensureSubsetIsMutable();
1404 subsetBuilder_.addMessage(m);
1409 name_ = input.readStringRequireUtf8();
1410 bitField0_ |= 0x00000002;
1415 getFingerprintFieldBuilder().getBuilder(),
1417 bitField0_ |= 0x00000004;
1421 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1428 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
1429 throw e.unwrapIOException();
1435 private int bitField0_;
1437 private java.util.List<com.google.ortools.algorithms.SetCoverProto.Subset> subset_ =
1438 java.util.Collections.emptyList();
1439 private void ensureSubsetIsMutable() {
1440 if (!((bitField0_ & 0x00000001) != 0)) {
1441 subset_ =
new java.util.ArrayList<com.google.ortools.algorithms.SetCoverProto.Subset>(subset_);
1442 bitField0_ |= 0x00000001;
1446 private com.google.protobuf.RepeatedFieldBuilderV3<
1447 com.google.ortools.algorithms.SetCoverProto.Subset, com.google.ortools.algorithms.SetCoverProto.Subset.Builder, com.google.ortools.algorithms.SetCoverProto.SubsetOrBuilder> subsetBuilder_;
1456 public java.util.List<com.google.ortools.algorithms.SetCoverProto.Subset>
getSubsetList() {
1457 if (subsetBuilder_ ==
null) {
1458 return java.util.Collections.unmodifiableList(subset_);
1460 return subsetBuilder_.getMessageList();
1471 if (subsetBuilder_ ==
null) {
1472 return subset_.size();
1474 return subsetBuilder_.getCount();
1485 if (subsetBuilder_ ==
null) {
1486 return subset_.get(index);
1488 return subsetBuilder_.getMessage(index);
1499 int index, com.google.ortools.algorithms.SetCoverProto.Subset value) {
1500 if (subsetBuilder_ ==
null) {
1501 if (value ==
null) {
1502 throw new NullPointerException();
1504 ensureSubsetIsMutable();
1505 subset_.set(index, value);
1508 subsetBuilder_.setMessage(index, value);
1520 int index, com.google.ortools.algorithms.SetCoverProto.Subset.Builder builderForValue) {
1521 if (subsetBuilder_ ==
null) {
1522 ensureSubsetIsMutable();
1523 subset_.set(index, builderForValue.build());
1526 subsetBuilder_.setMessage(index, builderForValue.build());
1538 if (subsetBuilder_ ==
null) {
1539 if (value ==
null) {
1540 throw new NullPointerException();
1542 ensureSubsetIsMutable();
1546 subsetBuilder_.addMessage(value);
1558 int index, com.google.ortools.algorithms.SetCoverProto.Subset value) {
1559 if (subsetBuilder_ ==
null) {
1560 if (value ==
null) {
1561 throw new NullPointerException();
1563 ensureSubsetIsMutable();
1564 subset_.add(index, value);
1567 subsetBuilder_.addMessage(index, value);
1579 com.google.ortools.algorithms.SetCoverProto.Subset.Builder builderForValue) {
1580 if (subsetBuilder_ ==
null) {
1581 ensureSubsetIsMutable();
1582 subset_.add(builderForValue.build());
1585 subsetBuilder_.addMessage(builderForValue.build());
1597 int index, com.google.ortools.algorithms.SetCoverProto.Subset.Builder builderForValue) {
1598 if (subsetBuilder_ ==
null) {
1599 ensureSubsetIsMutable();
1600 subset_.add(index, builderForValue.build());
1603 subsetBuilder_.addMessage(index, builderForValue.build());
1615 java.lang.Iterable<? extends com.google.ortools.algorithms.SetCoverProto.Subset> values) {
1616 if (subsetBuilder_ ==
null) {
1617 ensureSubsetIsMutable();
1618 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1622 subsetBuilder_.addAllMessages(values);
1634 if (subsetBuilder_ ==
null) {
1635 subset_ = java.util.Collections.emptyList();
1636 bitField0_ = (bitField0_ & ~0x00000001);
1639 subsetBuilder_.clear();
1651 if (subsetBuilder_ ==
null) {
1652 ensureSubsetIsMutable();
1653 subset_.remove(index);
1656 subsetBuilder_.remove(index);
1669 return getSubsetFieldBuilder().getBuilder(index);
1680 if (subsetBuilder_ ==
null) {
1681 return subset_.get(index); }
else {
1682 return subsetBuilder_.getMessageOrBuilder(index);
1692 public java.util.List<? extends com.google.ortools.algorithms.SetCoverProto.SubsetOrBuilder>
1694 if (subsetBuilder_ !=
null) {
1695 return subsetBuilder_.getMessageOrBuilderList();
1697 return java.util.Collections.unmodifiableList(subset_);
1708 return getSubsetFieldBuilder().addBuilder(
1709 com.google.ortools.algorithms.SetCoverProto.Subset.getDefaultInstance());
1720 return getSubsetFieldBuilder().addBuilder(
1721 index, com.google.ortools.algorithms.SetCoverProto.Subset.getDefaultInstance());
1730 public java.util.List<com.google.ortools.algorithms.SetCoverProto.Subset.Builder>
1732 return getSubsetFieldBuilder().getBuilderList();
1734 private com.google.protobuf.RepeatedFieldBuilderV3<
1735 com.google.ortools.algorithms.SetCoverProto.Subset, com.google.ortools.algorithms.SetCoverProto.Subset.Builder, com.google.ortools.algorithms.SetCoverProto.SubsetOrBuilder>
1736 getSubsetFieldBuilder() {
1737 if (subsetBuilder_ ==
null) {
1738 subsetBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
1739 com.google.ortools.algorithms.SetCoverProto.Subset, com.google.ortools.algorithms.SetCoverProto.Subset.Builder, com.google.ortools.algorithms.SetCoverProto.SubsetOrBuilder>(
1741 ((bitField0_ & 0x00000001) != 0),
1742 getParentForChildren(),
1746 return subsetBuilder_;
1749 private java.lang.Object name_ =
"";
1759 return ((bitField0_ & 0x00000002) != 0);
1770 java.lang.Object ref = name_;
1771 if (!(ref instanceof java.lang.String)) {
1772 com.google.protobuf.ByteString bs =
1773 (com.google.protobuf.ByteString) ref;
1774 java.lang.String s = bs.toStringUtf8();
1778 return (java.lang.String) ref;
1789 public com.google.protobuf.ByteString
1791 java.lang.Object ref = name_;
1792 if (ref instanceof String) {
1793 com.google.protobuf.ByteString b =
1794 com.google.protobuf.ByteString.copyFromUtf8(
1795 (java.lang.String) ref);
1799 return (com.google.protobuf.ByteString) ref;
1812 java.lang.String value) {
1813 if (value ==
null) {
throw new NullPointerException(); }
1815 bitField0_ |= 0x00000002;
1829 bitField0_ = (bitField0_ & ~0x00000002);
1843 com.google.protobuf.ByteString value) {
1844 if (value ==
null) {
throw new NullPointerException(); }
1845 checkByteStringIsUtf8(value);
1847 bitField0_ |= 0x00000002;
1853 private com.google.protobuf.SingleFieldBuilderV3<
1854 com.google.ortools.util.Int128, com.google.ortools.util.Int128.Builder, com.google.ortools.util.Int128OrBuilder> fingerprintBuilder_;
1864 return ((bitField0_ & 0x00000004) != 0);
1875 if (fingerprintBuilder_ ==
null) {
1876 return fingerprint_ ==
null ? com.google.ortools.util.Int128.getDefaultInstance() : fingerprint_;
1878 return fingerprintBuilder_.getMessage();
1889 if (fingerprintBuilder_ ==
null) {
1890 if (value ==
null) {
1891 throw new NullPointerException();
1893 fingerprint_ = value;
1895 fingerprintBuilder_.setMessage(value);
1897 bitField0_ |= 0x00000004;
1909 com.google.ortools.util.Int128.Builder builderForValue) {
1910 if (fingerprintBuilder_ ==
null) {
1911 fingerprint_ = builderForValue.build();
1913 fingerprintBuilder_.setMessage(builderForValue.build());
1915 bitField0_ |= 0x00000004;
1927 if (fingerprintBuilder_ ==
null) {
1928 if (((bitField0_ & 0x00000004) != 0) &&
1929 fingerprint_ !=
null &&
1930 fingerprint_ != com.google.ortools.util.Int128.getDefaultInstance()) {
1933 fingerprint_ = value;
1936 fingerprintBuilder_.mergeFrom(value);
1938 if (fingerprint_ !=
null) {
1939 bitField0_ |= 0x00000004;
1952 bitField0_ = (bitField0_ & ~0x00000004);
1953 fingerprint_ =
null;
1954 if (fingerprintBuilder_ !=
null) {
1955 fingerprintBuilder_.dispose();
1956 fingerprintBuilder_ =
null;
1969 bitField0_ |= 0x00000004;
1971 return getFingerprintFieldBuilder().getBuilder();
1981 if (fingerprintBuilder_ !=
null) {
1982 return fingerprintBuilder_.getMessageOrBuilder();
1984 return fingerprint_ ==
null ?
1985 com.google.ortools.util.Int128.getDefaultInstance() : fingerprint_;
1995 private com.google.protobuf.SingleFieldBuilderV3<
1996 com.google.ortools.util.Int128, com.google.ortools.util.Int128.Builder, com.google.ortools.util.Int128OrBuilder>
1997 getFingerprintFieldBuilder() {
1998 if (fingerprintBuilder_ ==
null) {
1999 fingerprintBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
2000 com.google.ortools.util.Int128, com.google.ortools.util.Int128.Builder, com.google.ortools.util.Int128OrBuilder>(
2002 getParentForChildren(),
2004 fingerprint_ =
null;
2006 return fingerprintBuilder_;
2010 final com.google.protobuf.UnknownFieldSet unknownFields) {
2016 final com.google.protobuf.UnknownFieldSet unknownFields) {
2027 DEFAULT_INSTANCE =
new com.google.ortools.algorithms.SetCoverProto();
2031 return DEFAULT_INSTANCE;
2034 private static final com.google.protobuf.Parser<
SetCoverProto>
2035 PARSER =
new com.google.protobuf.AbstractParser<
SetCoverProto>() {
2038 com.google.protobuf.CodedInputStream input,
2039 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2040 throws com.google.protobuf.InvalidProtocolBufferException {
2043 builder.mergeFrom(input, extensionRegistry);
2044 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
2045 throw e.setUnfinishedMessage(builder.buildPartial());
2046 }
catch (com.google.protobuf.UninitializedMessageException e) {
2047 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
2048 }
catch (java.io.IOException e) {
2049 throw new com.google.protobuf.InvalidProtocolBufferException(e)
2050 .setUnfinishedMessage(builder.buildPartial());
2052 return builder.buildPartial();
2067 return DEFAULT_INSTANCE;