6package com.google.ortools.algorithms;
16public final class SetCoverProto
extends
17 com.google.protobuf.GeneratedMessage implements
20private static final long serialVersionUID = 0L;
22 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
23 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
28 SetCoverProto.class.getName());
31 private SetCoverProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
34 private SetCoverProto() {
35 subset_ = java.util.Collections.emptyList();
39 public static final com.google.protobuf.Descriptors.Descriptor
41 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_descriptor;
45 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
47 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_fieldAccessorTable
48 .ensureFieldAccessorsInitialized(
49 com.google.ortools.algorithms.SetCoverProto.class, com.google.ortools.algorithms.SetCoverProto.Builder.class);
54 com.google.protobuf.MessageOrBuilder {
107 public static final class Subset
extends
108 com.google.protobuf.GeneratedMessage implements
111 private static final long serialVersionUID = 0L;
113 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
114 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
119 Subset.class.getName());
122 private Subset(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
126 element_ = emptyIntList();
129 public static final com.google.protobuf.Descriptors.Descriptor
131 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_Subset_descriptor;
135 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
137 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_Subset_fieldAccessorTable
138 .ensureFieldAccessorsInitialized(
139 com.google.ortools.algorithms.SetCoverProto.Subset.class, com.google.ortools.algorithms.SetCoverProto.Subset.Builder.class);
142 private int bitField0_;
144 private double cost_ = 0D;
155 return ((bitField0_ & 0x00000001) != 0);
171 @SuppressWarnings(
"serial")
172 private com.google.protobuf.Internal.IntList element_ =
183 public java.
util.List<java.lang.Integer>
196 return element_.size();
208 return element_.getInt(index);
210 private int elementMemoizedSerializedSize = -1;
212 private byte memoizedIsInitialized = -1;
219 memoizedIsInitialized = 1;
224 public void writeTo(com.google.protobuf.CodedOutputStream output)
225 throws java.io.IOException {
227 if (((bitField0_ & 0x00000001) != 0)) {
228 output.writeDouble(1, cost_);
231 output.writeUInt32NoTag(18);
232 output.writeUInt32NoTag(elementMemoizedSerializedSize);
234 for (
int i = 0; i < element_.size(); i++) {
235 output.writeInt32NoTag(element_.getInt(i));
237 getUnknownFields().writeTo(output);
242 int size = memoizedSize;
243 if (size != -1)
return size;
246 if (((bitField0_ & 0x00000001) != 0)) {
247 size += com.google.protobuf.CodedOutputStream
248 .computeDoubleSize(1, cost_);
252 for (
int i = 0; i < element_.size(); i++) {
253 dataSize += com.google.protobuf.CodedOutputStream
254 .computeInt32SizeNoTag(element_.getInt(i));
259 size += com.google.protobuf.CodedOutputStream
260 .computeInt32SizeNoTag(dataSize);
262 elementMemoizedSerializedSize = dataSize;
264 size += getUnknownFields().getSerializedSize();
270 public boolean equals(
final java.lang.Object obj) {
274 if (!(obj instanceof com.google.ortools.algorithms.SetCoverProto.Subset)) {
275 return super.equals(obj);
281 if (java.lang.Double.doubleToLongBits(
getCost())
282 != java.lang.Double.doubleToLongBits(
283 other.
getCost()))
return false;
287 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
293 if (memoizedHashCode != 0) {
294 return memoizedHashCode;
300 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
301 java.lang.Double.doubleToLongBits(
getCost()));
307 hash = (29 * hash) + getUnknownFields().hashCode();
308 memoizedHashCode = hash;
313 java.nio.ByteBuffer data)
314 throws com.google.protobuf.InvalidProtocolBufferException {
315 return PARSER.parseFrom(data);
318 java.nio.ByteBuffer data,
319 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
320 throws com.google.protobuf.InvalidProtocolBufferException {
321 return PARSER.parseFrom(data, extensionRegistry);
324 com.google.protobuf.ByteString data)
325 throws com.google.protobuf.InvalidProtocolBufferException {
326 return PARSER.parseFrom(data);
329 com.google.protobuf.ByteString data,
330 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
331 throws com.google.protobuf.InvalidProtocolBufferException {
332 return PARSER.parseFrom(data, extensionRegistry);
335 throws com.google.protobuf.InvalidProtocolBufferException {
336 return PARSER.parseFrom(data);
340 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
341 throws com.google.protobuf.InvalidProtocolBufferException {
342 return PARSER.parseFrom(data, extensionRegistry);
345 throws java.io.IOException {
346 return com.google.protobuf.GeneratedMessage
347 .parseWithIOException(PARSER, input);
350 java.io.InputStream input,
351 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
352 throws java.io.IOException {
353 return com.google.protobuf.GeneratedMessage
354 .parseWithIOException(PARSER, input, extensionRegistry);
358 throws java.io.IOException {
359 return com.google.protobuf.GeneratedMessage
360 .parseDelimitedWithIOException(PARSER, input);
364 java.io.InputStream input,
365 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
366 throws java.io.IOException {
367 return com.google.protobuf.GeneratedMessage
368 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
371 com.google.protobuf.CodedInputStream input)
372 throws java.io.IOException {
373 return com.google.protobuf.GeneratedMessage
374 .parseWithIOException(PARSER, input);
377 com.google.protobuf.CodedInputStream input,
378 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
379 throws java.io.IOException {
380 return com.google.protobuf.GeneratedMessage
381 .parseWithIOException(PARSER, input, extensionRegistry);
387 return DEFAULT_INSTANCE.toBuilder();
389 public static Builder newBuilder(com.google.ortools.algorithms.SetCoverProto.Subset prototype) {
390 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
394 return this == DEFAULT_INSTANCE
400 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
407 public static final class Builder
extends
408 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
411 public static final com.google.protobuf.Descriptors.Descriptor
413 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_Subset_descriptor;
417 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
419 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_Subset_fieldAccessorTable
420 .ensureFieldAccessorsInitialized(
421 com.google.ortools.algorithms.SetCoverProto.Subset.class, com.google.ortools.algorithms.SetCoverProto.Subset.Builder.class);
430 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
439 element_ = emptyIntList();
444 public com.google.protobuf.Descriptors.Descriptor
446 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_Subset_descriptor;
451 return com.google.ortools.algorithms.SetCoverProto.Subset.getDefaultInstance();
458 throw newUninitializedMessageException(result);
466 if (bitField0_ != 0) { buildPartial0(result); }
471 private void buildPartial0(com.google.ortools.algorithms.SetCoverProto.Subset result) {
472 int from_bitField0_ = bitField0_;
473 int to_bitField0_ = 0;
474 if (((from_bitField0_ & 0x00000001) != 0)) {
475 result.cost_ = cost_;
476 to_bitField0_ |= 0x00000001;
478 if (((from_bitField0_ & 0x00000002) != 0)) {
479 element_.makeImmutable();
480 result.element_ = element_;
482 result.bitField0_ |= to_bitField0_;
486 public Builder
mergeFrom(com.google.protobuf.Message other) {
487 if (other instanceof com.google.ortools.algorithms.SetCoverProto.Subset) {
488 return mergeFrom((com.google.ortools.algorithms.SetCoverProto.Subset)other);
490 super.mergeFrom(other);
495 public Builder
mergeFrom(com.google.ortools.algorithms.SetCoverProto.Subset other) {
496 if (other == com.google.ortools.algorithms.SetCoverProto.Subset.getDefaultInstance())
return this;
497 if (other.hasCost()) {
500 if (!other.element_.isEmpty()) {
501 if (element_.isEmpty()) {
502 element_ = other.element_;
503 element_.makeImmutable();
504 bitField0_ |= 0x00000002;
506 ensureElementIsMutable();
507 element_.addAll(other.element_);
511 this.mergeUnknownFields(other.getUnknownFields());
523 com.google.protobuf.CodedInputStream input,
524 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
525 throws java.io.IOException {
526 if (extensionRegistry ==
null) {
527 throw new java.lang.NullPointerException();
530 boolean done =
false;
532 int tag = input.readTag();
538 cost_ = input.readDouble();
539 bitField0_ |= 0x00000001;
543 int v = input.readInt32();
544 ensureElementIsMutable();
549 int length = input.readRawVarint32();
550 int limit = input.pushLimit(length);
551 ensureElementIsMutable();
552 while (input.getBytesUntilLimit() > 0) {
553 element_.addInt(input.readInt32());
555 input.popLimit(limit);
559 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
566 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
567 throw e.unwrapIOException();
573 private int bitField0_;
575 private double cost_ ;
586 return ((bitField0_ & 0x00000001) != 0);
612 bitField0_ |= 0x00000001;
625 bitField0_ = (bitField0_ & ~0x00000001);
631 private com.google.protobuf.Internal.IntList element_ = emptyIntList();
632 private void ensureElementIsMutable() {
633 if (!element_.isModifiable()) {
634 element_ = makeMutableCopy(element_);
636 bitField0_ |= 0x00000002;
646 public java.util.List<java.lang.Integer>
648 element_.makeImmutable();
660 return element_.size();
672 return element_.getInt(index);
685 int index,
int value) {
687 ensureElementIsMutable();
688 element_.setInt(index, value);
689 bitField0_ |= 0x00000002;
704 ensureElementIsMutable();
705 element_.addInt(value);
706 bitField0_ |= 0x00000002;
720 java.lang.Iterable<? extends java.lang.Integer> values) {
721 ensureElementIsMutable();
722 com.google.protobuf.AbstractMessageLite.Builder.addAll(
724 bitField0_ |= 0x00000002;
737 element_ = emptyIntList();
738 bitField0_ = (bitField0_ & ~0x00000002);
749 DEFAULT_INSTANCE =
new com.google.ortools.algorithms.SetCoverProto.Subset();
753 return DEFAULT_INSTANCE;
756 private static final com.google.protobuf.Parser<
Subset>
757 PARSER =
new com.google.protobuf.AbstractParser<
Subset>() {
759 public Subset parsePartialFrom(
760 com.google.protobuf.CodedInputStream input,
761 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
762 throws com.google.protobuf.InvalidProtocolBufferException {
765 builder.
mergeFrom(input, extensionRegistry);
766 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
768 }
catch (com.google.protobuf.UninitializedMessageException e) {
769 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.
buildPartial());
770 }
catch (java.io.IOException e) {
771 throw new com.google.protobuf.InvalidProtocolBufferException(e)
778 public static com.google.protobuf.Parser<Subset>
parser() {
789 return DEFAULT_INSTANCE;
794 private int bitField0_;
796 @SuppressWarnings(
"serial")
817 public java.util.List<? extends com.google.ortools.algorithms.SetCoverProto.SubsetOrBuilder>
830 return subset_.size();
841 return subset_.get(index);
853 return subset_.get(index);
857 @SuppressWarnings(
"serial")
858 private volatile java.lang.Object name_ =
"";
869 return ((bitField0_ & 0x00000001) != 0);
881 java.lang.Object ref = name_;
882 if (ref instanceof java.lang.String) {
883 return (java.lang.String) ref;
885 com.google.protobuf.ByteString bs =
886 (com.google.protobuf.ByteString) ref;
887 java.lang.String s = bs.toStringUtf8();
901 public com.google.protobuf.ByteString
903 java.lang.Object ref = name_;
904 if (ref instanceof java.lang.String) {
905 com.google.protobuf.ByteString b =
906 com.google.protobuf.ByteString.copyFromUtf8(
907 (java.lang.String) ref);
911 return (com.google.protobuf.ByteString) ref;
927 return ((bitField0_ & 0x00000002) != 0);
939 return fingerprint_ ==
null ? com.google.ortools.util.Int128.getDefaultInstance() : fingerprint_;
950 return fingerprint_ ==
null ? com.google.ortools.util.Int128.getDefaultInstance() : fingerprint_;
953 private byte memoizedIsInitialized = -1;
960 memoizedIsInitialized = 1;
965 public void writeTo(com.google.protobuf.CodedOutputStream output)
966 throws java.io.IOException {
967 for (
int i = 0; i < subset_.size(); i++) {
968 output.writeMessage(1, subset_.get(i));
970 if (((bitField0_ & 0x00000001) != 0)) {
971 com.google.protobuf.GeneratedMessage.writeString(output, 2, name_);
973 if (((bitField0_ & 0x00000002) != 0)) {
976 getUnknownFields().writeTo(output);
981 int size = memoizedSize;
982 if (size != -1)
return size;
985 for (
int i = 0; i < subset_.size(); i++) {
986 size += com.google.protobuf.CodedOutputStream
987 .computeMessageSize(1, subset_.get(i));
989 if (((bitField0_ & 0x00000001) != 0)) {
990 size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_);
992 if (((bitField0_ & 0x00000002) != 0)) {
993 size += com.google.protobuf.CodedOutputStream
996 size += getUnknownFields().getSerializedSize();
1002 public boolean equals(
final java.lang.Object obj) {
1006 if (!(obj instanceof com.google.ortools.algorithms.SetCoverProto)) {
1007 return super.equals(obj);
1023 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
1029 if (memoizedHashCode != 0) {
1030 return memoizedHashCode;
1040 hash = (53 * hash) +
getName().hashCode();
1046 hash = (29 * hash) + getUnknownFields().hashCode();
1047 memoizedHashCode = hash;
1052 java.nio.ByteBuffer data)
1053 throws com.google.protobuf.InvalidProtocolBufferException {
1054 return PARSER.parseFrom(data);
1057 java.nio.ByteBuffer data,
1058 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1059 throws com.google.protobuf.InvalidProtocolBufferException {
1060 return PARSER.parseFrom(data, extensionRegistry);
1063 com.google.protobuf.ByteString data)
1064 throws com.google.protobuf.InvalidProtocolBufferException {
1065 return PARSER.parseFrom(data);
1068 com.google.protobuf.ByteString data,
1069 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1070 throws com.google.protobuf.InvalidProtocolBufferException {
1071 return PARSER.parseFrom(data, extensionRegistry);
1074 throws com.google.protobuf.InvalidProtocolBufferException {
1075 return PARSER.parseFrom(data);
1079 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1080 throws com.google.protobuf.InvalidProtocolBufferException {
1081 return PARSER.parseFrom(data, extensionRegistry);
1084 throws java.io.IOException {
1085 return com.google.protobuf.GeneratedMessage
1086 .parseWithIOException(PARSER, input);
1089 java.io.InputStream input,
1090 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1091 throws java.io.IOException {
1092 return com.google.protobuf.GeneratedMessage
1093 .parseWithIOException(PARSER, input, extensionRegistry);
1097 throws java.io.IOException {
1098 return com.google.protobuf.GeneratedMessage
1099 .parseDelimitedWithIOException(PARSER, input);
1103 java.io.InputStream input,
1104 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1105 throws java.io.IOException {
1106 return com.google.protobuf.GeneratedMessage
1107 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
1110 com.google.protobuf.CodedInputStream input)
1111 throws java.io.IOException {
1112 return com.google.protobuf.GeneratedMessage
1113 .parseWithIOException(PARSER, input);
1116 com.google.protobuf.CodedInputStream input,
1117 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1118 throws java.io.IOException {
1119 return com.google.protobuf.GeneratedMessage
1120 .parseWithIOException(PARSER, input, extensionRegistry);
1126 return DEFAULT_INSTANCE.toBuilder();
1129 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
1133 return this == DEFAULT_INSTANCE
1139 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1151 public static final class Builder
extends
1152 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
1155 public static final com.google.protobuf.Descriptors.Descriptor
1157 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_descriptor;
1161 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1163 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_fieldAccessorTable
1164 .ensureFieldAccessorsInitialized(
1165 com.google.ortools.algorithms.SetCoverProto.class, com.google.ortools.algorithms.SetCoverProto.Builder.class);
1170 maybeForceBuilderInitialization();
1174 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1176 maybeForceBuilderInitialization();
1178 private void maybeForceBuilderInitialization() {
1179 if (com.google.protobuf.GeneratedMessage
1180 .alwaysUseFieldBuilders) {
1181 getSubsetFieldBuilder();
1182 getFingerprintFieldBuilder();
1189 if (subsetBuilder_ ==
null) {
1190 subset_ = java.util.Collections.emptyList();
1193 subsetBuilder_.clear();
1195 bitField0_ = (bitField0_ & ~0x00000001);
1197 fingerprint_ =
null;
1198 if (fingerprintBuilder_ !=
null) {
1199 fingerprintBuilder_.dispose();
1200 fingerprintBuilder_ =
null;
1206 public com.google.protobuf.Descriptors.Descriptor
1208 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_descriptor;
1213 return com.google.ortools.algorithms.SetCoverProto.getDefaultInstance();
1220 throw newUninitializedMessageException(result);
1228 buildPartialRepeatedFields(result);
1229 if (bitField0_ != 0) { buildPartial0(result); }
1234 private void buildPartialRepeatedFields(com.google.ortools.algorithms.SetCoverProto result) {
1235 if (subsetBuilder_ ==
null) {
1236 if (((bitField0_ & 0x00000001) != 0)) {
1237 subset_ = java.util.Collections.unmodifiableList(subset_);
1238 bitField0_ = (bitField0_ & ~0x00000001);
1240 result.subset_ = subset_;
1242 result.subset_ = subsetBuilder_.build();
1246 private void buildPartial0(com.google.ortools.algorithms.SetCoverProto result) {
1247 int from_bitField0_ = bitField0_;
1248 int to_bitField0_ = 0;
1249 if (((from_bitField0_ & 0x00000002) != 0)) {
1250 result.name_ = name_;
1251 to_bitField0_ |= 0x00000001;
1253 if (((from_bitField0_ & 0x00000004) != 0)) {
1254 result.fingerprint_ = fingerprintBuilder_ ==
null
1256 : fingerprintBuilder_.build();
1257 to_bitField0_ |= 0x00000002;
1259 result.bitField0_ |= to_bitField0_;
1263 public Builder
mergeFrom(com.google.protobuf.Message other) {
1264 if (other instanceof com.google.ortools.algorithms.SetCoverProto) {
1265 return mergeFrom((com.google.ortools.algorithms.SetCoverProto)other);
1267 super.mergeFrom(other);
1272 public Builder
mergeFrom(com.google.ortools.algorithms.SetCoverProto other) {
1273 if (other == com.google.ortools.algorithms.SetCoverProto.getDefaultInstance())
return this;
1274 if (subsetBuilder_ ==
null) {
1275 if (!other.subset_.isEmpty()) {
1276 if (subset_.isEmpty()) {
1277 subset_ = other.subset_;
1278 bitField0_ = (bitField0_ & ~0x00000001);
1280 ensureSubsetIsMutable();
1281 subset_.addAll(other.subset_);
1286 if (!other.subset_.isEmpty()) {
1287 if (subsetBuilder_.isEmpty()) {
1288 subsetBuilder_.dispose();
1289 subsetBuilder_ =
null;
1290 subset_ = other.subset_;
1291 bitField0_ = (bitField0_ & ~0x00000001);
1293 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
1294 getSubsetFieldBuilder() :
null;
1296 subsetBuilder_.addAllMessages(other.subset_);
1300 if (other.hasName()) {
1301 name_ = other.name_;
1302 bitField0_ |= 0x00000002;
1305 if (other.hasFingerprint()) {
1308 this.mergeUnknownFields(other.getUnknownFields());
1320 com.google.protobuf.CodedInputStream input,
1321 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1322 throws java.io.IOException {
1323 if (extensionRegistry ==
null) {
1324 throw new java.lang.NullPointerException();
1327 boolean done =
false;
1329 int tag = input.readTag();
1337 com.google.ortools.algorithms.SetCoverProto.Subset.parser(),
1339 if (subsetBuilder_ ==
null) {
1340 ensureSubsetIsMutable();
1343 subsetBuilder_.addMessage(m);
1348 name_ = input.readStringRequireUtf8();
1349 bitField0_ |= 0x00000002;
1354 getFingerprintFieldBuilder().getBuilder(),
1356 bitField0_ |= 0x00000004;
1360 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1367 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
1368 throw e.unwrapIOException();
1374 private int bitField0_;
1376 private java.util.List<com.google.ortools.algorithms.SetCoverProto.Subset> subset_ =
1377 java.util.Collections.emptyList();
1378 private void ensureSubsetIsMutable() {
1379 if (!((bitField0_ & 0x00000001) != 0)) {
1380 subset_ =
new java.util.ArrayList<com.google.ortools.algorithms.SetCoverProto.Subset>(subset_);
1381 bitField0_ |= 0x00000001;
1385 private com.google.protobuf.RepeatedFieldBuilder<
1386 com.google.ortools.algorithms.SetCoverProto.Subset, com.google.ortools.algorithms.SetCoverProto.Subset.Builder, com.google.ortools.algorithms.SetCoverProto.SubsetOrBuilder> subsetBuilder_;
1395 public java.util.List<com.google.ortools.algorithms.SetCoverProto.Subset>
getSubsetList() {
1396 if (subsetBuilder_ ==
null) {
1397 return java.util.Collections.unmodifiableList(subset_);
1399 return subsetBuilder_.getMessageList();
1410 if (subsetBuilder_ ==
null) {
1411 return subset_.size();
1413 return subsetBuilder_.getCount();
1424 if (subsetBuilder_ ==
null) {
1425 return subset_.get(index);
1427 return subsetBuilder_.getMessage(index);
1438 int index, com.google.ortools.algorithms.SetCoverProto.Subset value) {
1439 if (subsetBuilder_ ==
null) {
1440 if (value ==
null) {
1441 throw new NullPointerException();
1443 ensureSubsetIsMutable();
1444 subset_.set(index, value);
1447 subsetBuilder_.setMessage(index, value);
1459 int index, com.google.ortools.algorithms.SetCoverProto.Subset.Builder builderForValue) {
1460 if (subsetBuilder_ ==
null) {
1461 ensureSubsetIsMutable();
1462 subset_.set(index, builderForValue.build());
1465 subsetBuilder_.setMessage(index, builderForValue.build());
1476 public Builder
addSubset(com.google.ortools.algorithms.SetCoverProto.Subset value) {
1477 if (subsetBuilder_ ==
null) {
1478 if (value ==
null) {
1479 throw new NullPointerException();
1481 ensureSubsetIsMutable();
1485 subsetBuilder_.addMessage(value);
1497 int index, com.google.ortools.algorithms.SetCoverProto.Subset value) {
1498 if (subsetBuilder_ ==
null) {
1499 if (value ==
null) {
1500 throw new NullPointerException();
1502 ensureSubsetIsMutable();
1503 subset_.add(index, value);
1506 subsetBuilder_.addMessage(index, value);
1518 com.google.ortools.algorithms.SetCoverProto.Subset.Builder builderForValue) {
1519 if (subsetBuilder_ ==
null) {
1520 ensureSubsetIsMutable();
1521 subset_.add(builderForValue.build());
1524 subsetBuilder_.addMessage(builderForValue.build());
1536 int index, com.google.ortools.algorithms.SetCoverProto.Subset.Builder builderForValue) {
1537 if (subsetBuilder_ ==
null) {
1538 ensureSubsetIsMutable();
1539 subset_.add(index, builderForValue.build());
1542 subsetBuilder_.addMessage(index, builderForValue.build());
1554 java.lang.Iterable<? extends com.google.ortools.algorithms.SetCoverProto.Subset> values) {
1555 if (subsetBuilder_ ==
null) {
1556 ensureSubsetIsMutable();
1557 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1561 subsetBuilder_.addAllMessages(values);
1573 if (subsetBuilder_ ==
null) {
1574 subset_ = java.util.Collections.emptyList();
1575 bitField0_ = (bitField0_ & ~0x00000001);
1578 subsetBuilder_.clear();
1590 if (subsetBuilder_ ==
null) {
1591 ensureSubsetIsMutable();
1592 subset_.remove(index);
1595 subsetBuilder_.remove(index);
1608 return getSubsetFieldBuilder().getBuilder(index);
1619 if (subsetBuilder_ ==
null) {
1620 return subset_.get(index); }
else {
1621 return subsetBuilder_.getMessageOrBuilder(index);
1631 public java.util.List<? extends com.google.ortools.algorithms.SetCoverProto.SubsetOrBuilder>
1633 if (subsetBuilder_ !=
null) {
1634 return subsetBuilder_.getMessageOrBuilderList();
1636 return java.util.Collections.unmodifiableList(subset_);
1647 return getSubsetFieldBuilder().addBuilder(
1648 com.google.ortools.algorithms.SetCoverProto.Subset.getDefaultInstance());
1659 return getSubsetFieldBuilder().addBuilder(
1660 index, com.google.ortools.algorithms.SetCoverProto.Subset.getDefaultInstance());
1669 public java.util.List<com.google.ortools.algorithms.SetCoverProto.Subset.Builder>
1671 return getSubsetFieldBuilder().getBuilderList();
1673 private com.google.protobuf.RepeatedFieldBuilder<
1674 com.google.ortools.algorithms.SetCoverProto.Subset, com.google.ortools.algorithms.SetCoverProto.Subset.Builder, com.google.ortools.algorithms.SetCoverProto.SubsetOrBuilder>
1675 getSubsetFieldBuilder() {
1676 if (subsetBuilder_ ==
null) {
1677 subsetBuilder_ =
new com.google.protobuf.RepeatedFieldBuilder<
1678 com.google.ortools.algorithms.SetCoverProto.Subset, com.google.ortools.algorithms.SetCoverProto.Subset.Builder, com.google.ortools.algorithms.SetCoverProto.SubsetOrBuilder>(
1680 ((bitField0_ & 0x00000001) != 0),
1681 getParentForChildren(),
1685 return subsetBuilder_;
1688 private java.lang.Object name_ =
"";
1698 return ((bitField0_ & 0x00000002) != 0);
1709 java.lang.Object ref = name_;
1710 if (!(ref instanceof java.lang.String)) {
1711 com.google.protobuf.ByteString bs =
1712 (com.google.protobuf.ByteString) ref;
1713 java.lang.String s = bs.toStringUtf8();
1717 return (java.lang.String) ref;
1728 public com.google.protobuf.ByteString
1730 java.lang.Object ref = name_;
1731 if (ref instanceof String) {
1732 com.google.protobuf.ByteString b =
1733 com.google.protobuf.ByteString.copyFromUtf8(
1734 (java.lang.String) ref);
1738 return (com.google.protobuf.ByteString) ref;
1751 java.lang.String value) {
1752 if (value ==
null) {
throw new NullPointerException(); }
1754 bitField0_ |= 0x00000002;
1768 bitField0_ = (bitField0_ & ~0x00000002);
1782 com.google.protobuf.ByteString value) {
1783 if (value ==
null) {
throw new NullPointerException(); }
1784 checkByteStringIsUtf8(value);
1786 bitField0_ |= 0x00000002;
1792 private com.google.protobuf.SingleFieldBuilder<
1793 com.google.ortools.util.Int128, com.google.ortools.util.Int128.Builder, com.google.ortools.util.Int128OrBuilder> fingerprintBuilder_;
1803 return ((bitField0_ & 0x00000004) != 0);
1814 if (fingerprintBuilder_ ==
null) {
1815 return fingerprint_ ==
null ? com.google.ortools.util.Int128.getDefaultInstance() : fingerprint_;
1817 return fingerprintBuilder_.getMessage();
1828 if (fingerprintBuilder_ ==
null) {
1829 if (value ==
null) {
1830 throw new NullPointerException();
1832 fingerprint_ = value;
1834 fingerprintBuilder_.setMessage(value);
1836 bitField0_ |= 0x00000004;
1848 com.google.ortools.util.Int128.Builder builderForValue) {
1849 if (fingerprintBuilder_ ==
null) {
1850 fingerprint_ = builderForValue.build();
1852 fingerprintBuilder_.setMessage(builderForValue.build());
1854 bitField0_ |= 0x00000004;
1866 if (fingerprintBuilder_ ==
null) {
1867 if (((bitField0_ & 0x00000004) != 0) &&
1868 fingerprint_ !=
null &&
1869 fingerprint_ != com.google.ortools.util.Int128.getDefaultInstance()) {
1872 fingerprint_ = value;
1875 fingerprintBuilder_.mergeFrom(value);
1877 if (fingerprint_ !=
null) {
1878 bitField0_ |= 0x00000004;
1891 bitField0_ = (bitField0_ & ~0x00000004);
1892 fingerprint_ =
null;
1893 if (fingerprintBuilder_ !=
null) {
1894 fingerprintBuilder_.dispose();
1895 fingerprintBuilder_ =
null;
1908 bitField0_ |= 0x00000004;
1910 return getFingerprintFieldBuilder().getBuilder();
1920 if (fingerprintBuilder_ !=
null) {
1921 return fingerprintBuilder_.getMessageOrBuilder();
1923 return fingerprint_ ==
null ?
1924 com.google.ortools.util.Int128.getDefaultInstance() : fingerprint_;
1934 private com.google.protobuf.SingleFieldBuilder<
1935 com.google.ortools.util.Int128, com.google.ortools.util.Int128.Builder, com.google.ortools.util.Int128OrBuilder>
1936 getFingerprintFieldBuilder() {
1937 if (fingerprintBuilder_ ==
null) {
1938 fingerprintBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
1939 com.google.ortools.util.Int128, com.google.ortools.util.Int128.Builder, com.google.ortools.util.Int128OrBuilder>(
1941 getParentForChildren(),
1943 fingerprint_ =
null;
1945 return fingerprintBuilder_;
1954 DEFAULT_INSTANCE =
new com.google.ortools.algorithms.SetCoverProto();
1958 return DEFAULT_INSTANCE;
1961 private static final com.google.protobuf.Parser<
SetCoverProto>
1962 PARSER =
new com.google.protobuf.AbstractParser<
SetCoverProto>() {
1965 com.google.protobuf.CodedInputStream input,
1966 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1967 throws com.google.protobuf.InvalidProtocolBufferException {
1970 builder.mergeFrom(input, extensionRegistry);
1971 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
1972 throw e.setUnfinishedMessage(builder.buildPartial());
1973 }
catch (com.google.protobuf.UninitializedMessageException e) {
1974 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1975 }
catch (java.io.IOException e) {
1976 throw new com.google.protobuf.InvalidProtocolBufferException(e)
1977 .setUnfinishedMessage(builder.buildPartial());
1979 return builder.buildPartial();
1983 public static com.google.protobuf.Parser<SetCoverProto>
parser() {
1994 return DEFAULT_INSTANCE;