5package com.google.ortools.algorithms;
11 com.google.protobuf.GeneratedMessage implements
14private static final long serialVersionUID = 0L;
16 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
17 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
25 private SetCoverProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
29 subset_ = java.util.Collections.emptyList();
33 public static final com.google.protobuf.Descriptors.Descriptor
35 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_descriptor;
39 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
41 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_fieldAccessorTable
42 .ensureFieldAccessorsInitialized(
43 com.google.ortools.algorithms.SetCoverProto.class, com.google.ortools.algorithms.SetCoverProto.Builder.class);
48 com.google.protobuf.MessageOrBuilder {
102 com.google.protobuf.GeneratedMessage implements
105 private static final long serialVersionUID = 0L;
107 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
108 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
116 private Subset(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
120 element_ = emptyIntList();
123 public static final com.google.protobuf.Descriptors.Descriptor
125 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_Subset_descriptor;
129 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
131 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_Subset_fieldAccessorTable
132 .ensureFieldAccessorsInitialized(
133 com.google.ortools.algorithms.SetCoverProto.Subset.class, com.google.ortools.algorithms.SetCoverProto.Subset.Builder.class);
136 private int bitField0_;
138 private double cost_ = 0D;
149 return ((bitField0_ & 0x00000001) != 0);
165 @SuppressWarnings(
"serial")
166 private com.google.protobuf.Internal.IntList element_ =
177 public java.util.List<java.lang.Integer>
190 return element_.size();
202 return element_.getInt(index);
204 private int elementMemoizedSerializedSize = -1;
206 private byte memoizedIsInitialized = -1;
213 memoizedIsInitialized = 1;
218 public void writeTo(com.google.protobuf.CodedOutputStream output)
219 throws java.io.IOException {
221 if (((bitField0_ & 0x00000001) != 0)) {
222 output.writeDouble(1, cost_);
225 output.writeUInt32NoTag(18);
226 output.writeUInt32NoTag(elementMemoizedSerializedSize);
228 for (
int i = 0; i < element_.size(); i++) {
229 output.writeInt32NoTag(element_.getInt(i));
231 getUnknownFields().writeTo(output);
236 int size = memoizedSize;
237 if (size != -1)
return size;
240 if (((bitField0_ & 0x00000001) != 0)) {
241 size += com.google.protobuf.CodedOutputStream
242 .computeDoubleSize(1, cost_);
246 for (
int i = 0; i < element_.size(); i++) {
247 dataSize += com.google.protobuf.CodedOutputStream
248 .computeInt32SizeNoTag(element_.getInt(i));
253 size += com.google.protobuf.CodedOutputStream
254 .computeInt32SizeNoTag(dataSize);
256 elementMemoizedSerializedSize = dataSize;
258 size += getUnknownFields().getSerializedSize();
264 public boolean equals(
final java.lang.Object obj) {
268 if (!(obj instanceof com.google.ortools.algorithms.SetCoverProto.Subset)) {
269 return super.equals(obj);
275 if (java.lang.Double.doubleToLongBits(
getCost())
276 != java.lang.Double.doubleToLongBits(
277 other.
getCost()))
return false;
281 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
287 if (memoizedHashCode != 0) {
288 return memoizedHashCode;
294 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
295 java.lang.Double.doubleToLongBits(
getCost()));
301 hash = (29 * hash) + getUnknownFields().hashCode();
302 memoizedHashCode = hash;
307 java.nio.ByteBuffer data)
308 throws com.google.protobuf.InvalidProtocolBufferException {
309 return PARSER.parseFrom(data);
312 java.nio.ByteBuffer data,
313 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
314 throws com.google.protobuf.InvalidProtocolBufferException {
315 return PARSER.parseFrom(data, extensionRegistry);
318 com.google.protobuf.ByteString data)
319 throws com.google.protobuf.InvalidProtocolBufferException {
320 return PARSER.parseFrom(data);
323 com.google.protobuf.ByteString data,
324 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
325 throws com.google.protobuf.InvalidProtocolBufferException {
326 return PARSER.parseFrom(data, extensionRegistry);
329 throws com.google.protobuf.InvalidProtocolBufferException {
330 return PARSER.parseFrom(data);
334 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
335 throws com.google.protobuf.InvalidProtocolBufferException {
336 return PARSER.parseFrom(data, extensionRegistry);
339 throws java.io.IOException {
340 return com.google.protobuf.GeneratedMessage
341 .parseWithIOException(PARSER, input);
344 java.io.InputStream input,
345 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
346 throws java.io.IOException {
347 return com.google.protobuf.GeneratedMessage
348 .parseWithIOException(PARSER, input, extensionRegistry);
352 throws java.io.IOException {
353 return com.google.protobuf.GeneratedMessage
354 .parseDelimitedWithIOException(PARSER, input);
358 java.io.InputStream input,
359 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
360 throws java.io.IOException {
361 return com.google.protobuf.GeneratedMessage
362 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
365 com.google.protobuf.CodedInputStream input)
366 throws java.io.IOException {
367 return com.google.protobuf.GeneratedMessage
368 .parseWithIOException(PARSER, input);
371 com.google.protobuf.CodedInputStream input,
372 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
373 throws java.io.IOException {
374 return com.google.protobuf.GeneratedMessage
375 .parseWithIOException(PARSER, input, extensionRegistry);
383 public static Builder newBuilder(com.google.ortools.algorithms.SetCoverProto.Subset prototype) {
388 return this == DEFAULT_INSTANCE
394 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
402 com.google.protobuf.GeneratedMessage.
Builder<Builder> implements
405 public static final com.google.protobuf.Descriptors.Descriptor
407 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_Subset_descriptor;
411 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
413 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_Subset_fieldAccessorTable
414 .ensureFieldAccessorsInitialized(
415 com.google.ortools.algorithms.SetCoverProto.Subset.class, com.google.ortools.algorithms.SetCoverProto.Subset.Builder.class);
424 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
433 element_ = emptyIntList();
438 public com.google.protobuf.Descriptors.Descriptor
440 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_Subset_descriptor;
445 return com.google.ortools.algorithms.SetCoverProto.Subset.getDefaultInstance();
452 throw newUninitializedMessageException(result);
460 if (bitField0_ != 0) { buildPartial0(result); }
465 private void buildPartial0(com.google.ortools.algorithms.SetCoverProto.Subset result) {
466 int from_bitField0_ = bitField0_;
467 int to_bitField0_ = 0;
468 if (((from_bitField0_ & 0x00000001) != 0)) {
469 result.cost_ = cost_;
470 to_bitField0_ |= 0x00000001;
472 if (((from_bitField0_ & 0x00000002) != 0)) {
473 element_.makeImmutable();
474 result.element_ = element_;
476 result.bitField0_ |= to_bitField0_;
481 if (other instanceof com.google.ortools.algorithms.SetCoverProto.Subset) {
482 return mergeFrom((com.google.ortools.algorithms.SetCoverProto.Subset)other);
484 super.mergeFrom(other);
490 if (other == com.google.ortools.algorithms.SetCoverProto.Subset.getDefaultInstance())
return this;
491 if (other.hasCost()) {
494 if (!other.element_.isEmpty()) {
495 if (element_.isEmpty()) {
496 element_ = other.element_;
497 element_.makeImmutable();
498 bitField0_ |= 0x00000002;
500 ensureElementIsMutable();
501 element_.addAll(other.element_);
505 this.mergeUnknownFields(other.getUnknownFields());
517 com.google.protobuf.CodedInputStream input,
518 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
519 throws java.io.IOException {
520 if (extensionRegistry ==
null) {
521 throw new java.lang.NullPointerException();
524 boolean done =
false;
526 int tag = input.readTag();
532 cost_ = input.readDouble();
533 bitField0_ |= 0x00000001;
537 int v = input.readInt32();
538 ensureElementIsMutable();
543 int length = input.readRawVarint32();
544 int limit = input.pushLimit(length);
545 ensureElementIsMutable();
546 while (input.getBytesUntilLimit() > 0) {
547 element_.addInt(input.readInt32());
549 input.popLimit(limit);
553 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
560 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
561 throw e.unwrapIOException();
567 private int bitField0_;
569 private double cost_ ;
580 return ((bitField0_ & 0x00000001) != 0);
606 bitField0_ |= 0x00000001;
619 bitField0_ = (bitField0_ & ~0x00000001);
625 private com.google.protobuf.Internal.IntList element_ = emptyIntList();
626 private void ensureElementIsMutable() {
627 if (!element_.isModifiable()) {
628 element_ = makeMutableCopy(element_);
630 bitField0_ |= 0x00000002;
640 public java.util.List<java.lang.Integer>
642 element_.makeImmutable();
654 return element_.size();
666 return element_.getInt(index);
679 int index,
int value) {
681 ensureElementIsMutable();
682 element_.setInt(index, value);
683 bitField0_ |= 0x00000002;
698 ensureElementIsMutable();
699 element_.addInt(value);
700 bitField0_ |= 0x00000002;
714 java.lang.Iterable<? extends java.lang.Integer> values) {
715 ensureElementIsMutable();
716 com.google.protobuf.AbstractMessageLite.Builder.addAll(
718 bitField0_ |= 0x00000002;
731 element_ = emptyIntList();
732 bitField0_ = (bitField0_ & ~0x00000002);
743 DEFAULT_INSTANCE =
new com.google.ortools.algorithms.SetCoverProto.Subset();
747 return DEFAULT_INSTANCE;
750 private static final com.google.protobuf.Parser<
Subset>
751 PARSER =
new com.google.protobuf.AbstractParser<
Subset>() {
753 public Subset parsePartialFrom(
754 com.google.protobuf.CodedInputStream input,
755 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
756 throws com.google.protobuf.InvalidProtocolBufferException {
759 builder.
mergeFrom(input, extensionRegistry);
760 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
762 }
catch (com.google.protobuf.UninitializedMessageException e) {
763 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.
buildPartial());
764 }
catch (java.io.IOException e) {
765 throw new com.google.protobuf.InvalidProtocolBufferException(e)
783 return DEFAULT_INSTANCE;
788 private int bitField0_;
790 @SuppressWarnings(
"serial")
811 public java.util.List<? extends com.google.ortools.algorithms.SetCoverProto.SubsetOrBuilder>
824 return subset_.size();
835 return subset_.get(index);
847 return subset_.get(index);
851 @SuppressWarnings(
"serial")
852 private volatile java.lang.Object name_ = "";
863 return ((bitField0_ & 0x00000001) != 0);
875 java.lang.Object ref = name_;
876 if (ref instanceof java.lang.String) {
877 return (java.lang.String) ref;
879 com.google.protobuf.ByteString bs =
880 (com.google.protobuf.ByteString) ref;
881 java.lang.String s = bs.toStringUtf8();
895 public com.google.protobuf.ByteString
897 java.lang.Object ref = name_;
898 if (ref instanceof java.lang.String) {
899 com.google.protobuf.ByteString b =
900 com.google.protobuf.ByteString.copyFromUtf8(
901 (java.lang.String) ref);
905 return (com.google.protobuf.ByteString) ref;
921 return ((bitField0_ & 0x00000002) != 0);
933 return fingerprint_ ==
null ? com.google.ortools.util.Int128.getDefaultInstance() : fingerprint_;
944 return fingerprint_ ==
null ? com.google.ortools.util.Int128.getDefaultInstance() : fingerprint_;
947 private byte memoizedIsInitialized = -1;
954 memoizedIsInitialized = 1;
959 public void writeTo(com.google.protobuf.CodedOutputStream output)
960 throws java.io.IOException {
961 for (
int i = 0; i < subset_.size(); i++) {
962 output.writeMessage(1, subset_.get(i));
964 if (((bitField0_ & 0x00000001) != 0)) {
965 com.google.protobuf.GeneratedMessage.writeString(output, 2, name_);
967 if (((bitField0_ & 0x00000002) != 0)) {
970 getUnknownFields().writeTo(output);
975 int size = memoizedSize;
976 if (size != -1)
return size;
979 for (
int i = 0; i < subset_.size(); i++) {
980 size += com.google.protobuf.CodedOutputStream
981 .computeMessageSize(1, subset_.get(i));
983 if (((bitField0_ & 0x00000001) != 0)) {
984 size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_);
986 if (((bitField0_ & 0x00000002) != 0)) {
987 size += com.google.protobuf.CodedOutputStream
990 size += getUnknownFields().getSerializedSize();
996 public boolean equals(
final java.lang.Object obj) {
1000 if (!(obj instanceof com.google.ortools.algorithms.SetCoverProto)) {
1001 return super.equals(obj);
1017 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
1023 if (memoizedHashCode != 0) {
1024 return memoizedHashCode;
1034 hash = (53 * hash) +
getName().hashCode();
1040 hash = (29 * hash) + getUnknownFields().hashCode();
1041 memoizedHashCode = hash;
1046 java.nio.ByteBuffer data)
1047 throws com.google.protobuf.InvalidProtocolBufferException {
1051 java.nio.ByteBuffer data,
1052 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1053 throws com.google.protobuf.InvalidProtocolBufferException {
1054 return PARSER.
parseFrom(data, extensionRegistry);
1057 com.google.protobuf.ByteString data)
1058 throws com.google.protobuf.InvalidProtocolBufferException {
1062 com.google.protobuf.ByteString data,
1063 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1064 throws com.google.protobuf.InvalidProtocolBufferException {
1065 return PARSER.
parseFrom(data, extensionRegistry);
1068 throws com.google.protobuf.InvalidProtocolBufferException {
1073 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1074 throws com.google.protobuf.InvalidProtocolBufferException {
1075 return PARSER.
parseFrom(data, extensionRegistry);
1078 throws java.io.IOException {
1079 return com.google.protobuf.GeneratedMessage
1080 .parseWithIOException(PARSER, input);
1083 java.io.InputStream input,
1084 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1085 throws java.io.IOException {
1086 return com.google.protobuf.GeneratedMessage
1087 .parseWithIOException(PARSER, input, extensionRegistry);
1091 throws java.io.IOException {
1092 return com.google.protobuf.GeneratedMessage
1093 .parseDelimitedWithIOException(PARSER, input);
1097 java.io.InputStream input,
1098 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1099 throws java.io.IOException {
1100 return com.google.protobuf.GeneratedMessage
1101 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
1104 com.google.protobuf.CodedInputStream input)
1105 throws java.io.IOException {
1106 return com.google.protobuf.GeneratedMessage
1107 .parseWithIOException(PARSER, input);
1110 com.google.protobuf.CodedInputStream input,
1111 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1112 throws java.io.IOException {
1113 return com.google.protobuf.GeneratedMessage
1114 .parseWithIOException(PARSER, input, extensionRegistry);
1127 return this == DEFAULT_INSTANCE
1133 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1141 com.google.protobuf.GeneratedMessage.
Builder<Builder> implements
1144 public static final com.google.protobuf.Descriptors.Descriptor
1146 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_descriptor;
1150 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1152 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_fieldAccessorTable
1153 .ensureFieldAccessorsInitialized(
1154 com.google.ortools.algorithms.SetCoverProto.class, com.google.ortools.algorithms.SetCoverProto.Builder.class);
1159 maybeForceBuilderInitialization();
1163 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1165 maybeForceBuilderInitialization();
1167 private void maybeForceBuilderInitialization() {
1168 if (com.google.protobuf.GeneratedMessage
1169 .alwaysUseFieldBuilders) {
1170 getSubsetFieldBuilder();
1171 getFingerprintFieldBuilder();
1178 if (subsetBuilder_ ==
null) {
1179 subset_ = java.util.Collections.emptyList();
1182 subsetBuilder_.clear();
1184 bitField0_ = (bitField0_ & ~0x00000001);
1186 fingerprint_ =
null;
1187 if (fingerprintBuilder_ !=
null) {
1188 fingerprintBuilder_.dispose();
1189 fingerprintBuilder_ =
null;
1195 public com.google.protobuf.Descriptors.Descriptor
1197 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_descriptor;
1202 return com.google.ortools.algorithms.SetCoverProto.getDefaultInstance();
1209 throw newUninitializedMessageException(result);
1217 buildPartialRepeatedFields(result);
1218 if (bitField0_ != 0) { buildPartial0(result); }
1223 private void buildPartialRepeatedFields(com.google.ortools.algorithms.SetCoverProto result) {
1224 if (subsetBuilder_ ==
null) {
1225 if (((bitField0_ & 0x00000001) != 0)) {
1226 subset_ = java.util.Collections.unmodifiableList(subset_);
1227 bitField0_ = (bitField0_ & ~0x00000001);
1229 result.subset_ = subset_;
1231 result.subset_ = subsetBuilder_.build();
1235 private void buildPartial0(com.google.ortools.algorithms.SetCoverProto result) {
1236 int from_bitField0_ = bitField0_;
1237 int to_bitField0_ = 0;
1238 if (((from_bitField0_ & 0x00000002) != 0)) {
1239 result.name_ = name_;
1240 to_bitField0_ |= 0x00000001;
1242 if (((from_bitField0_ & 0x00000004) != 0)) {
1243 result.fingerprint_ = fingerprintBuilder_ ==
null
1245 : fingerprintBuilder_.build();
1246 to_bitField0_ |= 0x00000002;
1248 result.bitField0_ |= to_bitField0_;
1253 if (other instanceof com.google.ortools.algorithms.SetCoverProto) {
1254 return mergeFrom((com.google.ortools.algorithms.SetCoverProto)other);
1256 super.mergeFrom(other);
1262 if (other == com.google.ortools.algorithms.SetCoverProto.getDefaultInstance())
return this;
1263 if (subsetBuilder_ ==
null) {
1264 if (!other.subset_.isEmpty()) {
1265 if (subset_.isEmpty()) {
1266 subset_ = other.subset_;
1267 bitField0_ = (bitField0_ & ~0x00000001);
1269 ensureSubsetIsMutable();
1270 subset_.addAll(other.subset_);
1275 if (!other.subset_.isEmpty()) {
1276 if (subsetBuilder_.isEmpty()) {
1277 subsetBuilder_.dispose();
1278 subsetBuilder_ =
null;
1279 subset_ = other.subset_;
1280 bitField0_ = (bitField0_ & ~0x00000001);
1282 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
1283 getSubsetFieldBuilder() :
null;
1285 subsetBuilder_.addAllMessages(other.subset_);
1289 if (other.hasName()) {
1290 name_ = other.name_;
1291 bitField0_ |= 0x00000002;
1294 if (other.hasFingerprint()) {
1297 this.mergeUnknownFields(other.getUnknownFields());
1309 com.google.protobuf.CodedInputStream input,
1310 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1311 throws java.io.IOException {
1312 if (extensionRegistry ==
null) {
1313 throw new java.lang.NullPointerException();
1316 boolean done =
false;
1318 int tag = input.readTag();
1326 com.google.ortools.algorithms.SetCoverProto.Subset.parser(),
1328 if (subsetBuilder_ ==
null) {
1329 ensureSubsetIsMutable();
1332 subsetBuilder_.addMessage(m);
1337 name_ = input.readStringRequireUtf8();
1338 bitField0_ |= 0x00000002;
1343 getFingerprintFieldBuilder().getBuilder(),
1345 bitField0_ |= 0x00000004;
1349 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1356 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
1357 throw e.unwrapIOException();
1363 private int bitField0_;
1365 private java.util.List<com.google.ortools.algorithms.SetCoverProto.Subset> subset_ =
1366 java.util.Collections.emptyList();
1367 private void ensureSubsetIsMutable() {
1368 if (!((bitField0_ & 0x00000001) != 0)) {
1369 subset_ =
new java.util.ArrayList<com.google.ortools.algorithms.SetCoverProto.Subset>(subset_);
1370 bitField0_ |= 0x00000001;
1374 private com.google.protobuf.RepeatedFieldBuilder<
1375 com.google.ortools.algorithms.SetCoverProto.Subset, com.google.ortools.algorithms.SetCoverProto.Subset.Builder, com.google.ortools.algorithms.SetCoverProto.SubsetOrBuilder> subsetBuilder_;
1384 public java.util.List<com.google.ortools.algorithms.SetCoverProto.Subset>
getSubsetList() {
1385 if (subsetBuilder_ ==
null) {
1386 return java.util.Collections.unmodifiableList(subset_);
1388 return subsetBuilder_.getMessageList();
1399 if (subsetBuilder_ ==
null) {
1400 return subset_.size();
1402 return subsetBuilder_.getCount();
1413 if (subsetBuilder_ ==
null) {
1414 return subset_.get(index);
1416 return subsetBuilder_.getMessage(index);
1427 int index, com.google.ortools.algorithms.SetCoverProto.Subset value) {
1428 if (subsetBuilder_ ==
null) {
1429 if (value ==
null) {
1430 throw new NullPointerException();
1432 ensureSubsetIsMutable();
1433 subset_.set(index, value);
1436 subsetBuilder_.setMessage(index, value);
1448 int index, com.google.ortools.algorithms.SetCoverProto.Subset.Builder builderForValue) {
1449 if (subsetBuilder_ ==
null) {
1450 ensureSubsetIsMutable();
1451 subset_.set(index, builderForValue.build());
1454 subsetBuilder_.setMessage(index, builderForValue.build());
1466 if (subsetBuilder_ ==
null) {
1467 if (value ==
null) {
1468 throw new NullPointerException();
1470 ensureSubsetIsMutable();
1474 subsetBuilder_.addMessage(value);
1486 int index, com.google.ortools.algorithms.SetCoverProto.Subset value) {
1487 if (subsetBuilder_ ==
null) {
1488 if (value ==
null) {
1489 throw new NullPointerException();
1491 ensureSubsetIsMutable();
1492 subset_.add(index, value);
1495 subsetBuilder_.addMessage(index, value);
1507 com.google.ortools.algorithms.SetCoverProto.Subset.Builder builderForValue) {
1508 if (subsetBuilder_ ==
null) {
1509 ensureSubsetIsMutable();
1510 subset_.add(builderForValue.build());
1513 subsetBuilder_.addMessage(builderForValue.build());
1525 int index, com.google.ortools.algorithms.SetCoverProto.Subset.Builder builderForValue) {
1526 if (subsetBuilder_ ==
null) {
1527 ensureSubsetIsMutable();
1528 subset_.add(index, builderForValue.build());
1531 subsetBuilder_.addMessage(index, builderForValue.build());
1543 java.lang.Iterable<? extends com.google.ortools.algorithms.SetCoverProto.Subset> values) {
1544 if (subsetBuilder_ ==
null) {
1545 ensureSubsetIsMutable();
1546 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1550 subsetBuilder_.addAllMessages(values);
1562 if (subsetBuilder_ ==
null) {
1563 subset_ = java.util.Collections.emptyList();
1564 bitField0_ = (bitField0_ & ~0x00000001);
1567 subsetBuilder_.clear();
1579 if (subsetBuilder_ ==
null) {
1580 ensureSubsetIsMutable();
1581 subset_.remove(index);
1584 subsetBuilder_.remove(index);
1597 return getSubsetFieldBuilder().getBuilder(index);
1608 if (subsetBuilder_ ==
null) {
1609 return subset_.get(index); }
else {
1610 return subsetBuilder_.getMessageOrBuilder(index);
1620 public java.util.List<? extends com.google.ortools.algorithms.SetCoverProto.SubsetOrBuilder>
1622 if (subsetBuilder_ !=
null) {
1623 return subsetBuilder_.getMessageOrBuilderList();
1625 return java.util.Collections.unmodifiableList(subset_);
1636 return getSubsetFieldBuilder().addBuilder(
1637 com.google.ortools.algorithms.SetCoverProto.Subset.getDefaultInstance());
1648 return getSubsetFieldBuilder().addBuilder(
1649 index, com.google.ortools.algorithms.SetCoverProto.Subset.getDefaultInstance());
1658 public java.util.List<com.google.ortools.algorithms.SetCoverProto.Subset.Builder>
1660 return getSubsetFieldBuilder().getBuilderList();
1662 private com.google.protobuf.RepeatedFieldBuilder<
1663 com.google.ortools.algorithms.SetCoverProto.Subset, com.google.ortools.algorithms.SetCoverProto.Subset.Builder, com.google.ortools.algorithms.SetCoverProto.SubsetOrBuilder>
1664 getSubsetFieldBuilder() {
1665 if (subsetBuilder_ ==
null) {
1666 subsetBuilder_ =
new com.google.protobuf.RepeatedFieldBuilder<
1667 com.google.ortools.algorithms.SetCoverProto.Subset, com.google.ortools.algorithms.SetCoverProto.Subset.Builder, com.google.ortools.algorithms.SetCoverProto.SubsetOrBuilder>(
1669 ((bitField0_ & 0x00000001) != 0),
1670 getParentForChildren(),
1674 return subsetBuilder_;
1677 private java.lang.Object name_ =
"";
1687 return ((bitField0_ & 0x00000002) != 0);
1698 java.lang.Object ref = name_;
1699 if (!(ref instanceof java.lang.String)) {
1700 com.google.protobuf.ByteString bs =
1701 (com.google.protobuf.ByteString) ref;
1702 java.lang.String s = bs.toStringUtf8();
1706 return (java.lang.String) ref;
1717 public com.google.protobuf.ByteString
1719 java.lang.Object ref = name_;
1720 if (ref instanceof String) {
1721 com.google.protobuf.ByteString b =
1722 com.google.protobuf.ByteString.copyFromUtf8(
1723 (java.lang.String) ref);
1727 return (com.google.protobuf.ByteString) ref;
1740 java.lang.String value) {
1741 if (value ==
null) {
throw new NullPointerException(); }
1743 bitField0_ |= 0x00000002;
1757 bitField0_ = (bitField0_ & ~0x00000002);
1771 com.google.protobuf.ByteString value) {
1772 if (value ==
null) {
throw new NullPointerException(); }
1773 checkByteStringIsUtf8(value);
1775 bitField0_ |= 0x00000002;
1781 private com.google.protobuf.SingleFieldBuilder<
1782 com.google.ortools.util.Int128, com.google.ortools.util.Int128.Builder, com.google.ortools.util.Int128OrBuilder> fingerprintBuilder_;
1792 return ((bitField0_ & 0x00000004) != 0);
1803 if (fingerprintBuilder_ ==
null) {
1804 return fingerprint_ ==
null ? com.google.ortools.util.Int128.getDefaultInstance() : fingerprint_;
1806 return fingerprintBuilder_.getMessage();
1817 if (fingerprintBuilder_ ==
null) {
1818 if (value ==
null) {
1819 throw new NullPointerException();
1821 fingerprint_ = value;
1823 fingerprintBuilder_.setMessage(value);
1825 bitField0_ |= 0x00000004;
1837 com.google.ortools.util.Int128.Builder builderForValue) {
1838 if (fingerprintBuilder_ ==
null) {
1839 fingerprint_ = builderForValue.build();
1841 fingerprintBuilder_.setMessage(builderForValue.build());
1843 bitField0_ |= 0x00000004;
1855 if (fingerprintBuilder_ ==
null) {
1856 if (((bitField0_ & 0x00000004) != 0) &&
1857 fingerprint_ !=
null &&
1858 fingerprint_ != com.google.ortools.util.Int128.getDefaultInstance()) {
1861 fingerprint_ = value;
1864 fingerprintBuilder_.mergeFrom(value);
1866 if (fingerprint_ !=
null) {
1867 bitField0_ |= 0x00000004;
1880 bitField0_ = (bitField0_ & ~0x00000004);
1881 fingerprint_ =
null;
1882 if (fingerprintBuilder_ !=
null) {
1883 fingerprintBuilder_.dispose();
1884 fingerprintBuilder_ =
null;
1897 bitField0_ |= 0x00000004;
1899 return getFingerprintFieldBuilder().getBuilder();
1909 if (fingerprintBuilder_ !=
null) {
1910 return fingerprintBuilder_.getMessageOrBuilder();
1912 return fingerprint_ ==
null ?
1913 com.google.ortools.util.Int128.getDefaultInstance() : fingerprint_;
1923 private com.google.protobuf.SingleFieldBuilder<
1924 com.google.ortools.util.Int128, com.google.ortools.util.Int128.Builder, com.google.ortools.util.Int128OrBuilder>
1925 getFingerprintFieldBuilder() {
1926 if (fingerprintBuilder_ ==
null) {
1927 fingerprintBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
1928 com.google.ortools.util.Int128, com.google.ortools.util.Int128.Builder, com.google.ortools.util.Int128OrBuilder>(
1930 getParentForChildren(),
1932 fingerprint_ =
null;
1934 return fingerprintBuilder_;
1943 DEFAULT_INSTANCE =
new com.google.ortools.algorithms.SetCoverProto();
1947 return DEFAULT_INSTANCE;
1950 private static final com.google.protobuf.Parser<
SetCoverProto>
1951 PARSER =
new com.google.protobuf.AbstractParser<
SetCoverProto>() {
1954 com.google.protobuf.CodedInputStream input,
1955 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1956 throws com.google.protobuf.InvalidProtocolBufferException {
1959 builder.mergeFrom(input, extensionRegistry);
1960 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
1961 throw e.setUnfinishedMessage(builder.buildPartial());
1962 }
catch (com.google.protobuf.UninitializedMessageException e) {
1963 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1964 }
catch (java.io.IOException e) {
1965 throw new com.google.protobuf.InvalidProtocolBufferException(e)
1966 .setUnfinishedMessage(builder.buildPartial());
1968 return builder.buildPartial();
1983 return DEFAULT_INSTANCE;