Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
SetCoverProto.java
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: ortools/algorithms/set_cover.proto
3
4// Protobuf Java Version: 4.26.1
5package com.google.ortools.algorithms;
6
10public final class SetCoverProto extends
11 com.google.protobuf.GeneratedMessage implements
12 // @@protoc_insertion_point(message_implements:operations_research.SetCoverProto)
14private static final long serialVersionUID = 0L;
15 static {
16 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
17 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
18 /* major= */ 4,
19 /* minor= */ 26,
20 /* patch= */ 1,
21 /* suffix= */ "",
22 SetCoverProto.class.getName());
23 }
24 // Use SetCoverProto.newBuilder() to construct.
25 private SetCoverProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
26 super(builder);
27 }
28 private SetCoverProto() {
29 subset_ = java.util.Collections.emptyList();
30 name_ = "";
31 }
32
33 public static final com.google.protobuf.Descriptors.Descriptor
35 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_descriptor;
36 }
37
38 @java.lang.Override
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);
44 }
45
46 public interface SubsetOrBuilder extends
47 // @@protoc_insertion_point(interface_extends:operations_research.SetCoverProto.Subset)
48 com.google.protobuf.MessageOrBuilder {
49
58 boolean hasCost();
67 double getCost();
68
77 java.util.List<java.lang.Integer> getElementList();
96 int getElement(int index);
97 }
101 public static final class Subset extends
102 com.google.protobuf.GeneratedMessage implements
103 // @@protoc_insertion_point(message_implements:operations_research.SetCoverProto.Subset)
105 private static final long serialVersionUID = 0L;
106 static {
107 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
108 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
109 /* major= */ 4,
110 /* minor= */ 26,
111 /* patch= */ 1,
112 /* suffix= */ "",
113 Subset.class.getName());
114 }
115 // Use Subset.newBuilder() to construct.
116 private Subset(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
117 super(builder);
118 }
119 private Subset() {
120 element_ = emptyIntList();
121 }
122
123 public static final com.google.protobuf.Descriptors.Descriptor
125 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_Subset_descriptor;
126 }
127
128 @java.lang.Override
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);
134 }
135
136 private int bitField0_;
137 public static final int COST_FIELD_NUMBER = 1;
138 private double cost_ = 0D;
147 @java.lang.Override
148 public boolean hasCost() {
149 return ((bitField0_ & 0x00000001) != 0);
150 }
159 @java.lang.Override
160 public double getCost() {
161 return cost_;
162 }
163
164 public static final int ELEMENT_FIELD_NUMBER = 2;
165 @SuppressWarnings("serial")
166 private com.google.protobuf.Internal.IntList element_ =
167 emptyIntList();
176 @java.lang.Override
177 public java.util.List<java.lang.Integer>
179 return element_;
180 }
189 public int getElementCount() {
190 return element_.size();
191 }
201 public int getElement(int index) {
202 return element_.getInt(index);
203 }
204 private int elementMemoizedSerializedSize = -1;
205
206 private byte memoizedIsInitialized = -1;
207 @java.lang.Override
208 public final boolean isInitialized() {
209 byte isInitialized = memoizedIsInitialized;
210 if (isInitialized == 1) return true;
211 if (isInitialized == 0) return false;
212
213 memoizedIsInitialized = 1;
214 return true;
215 }
216
217 @java.lang.Override
218 public void writeTo(com.google.protobuf.CodedOutputStream output)
219 throws java.io.IOException {
221 if (((bitField0_ & 0x00000001) != 0)) {
222 output.writeDouble(1, cost_);
223 }
224 if (getElementList().size() > 0) {
225 output.writeUInt32NoTag(18);
226 output.writeUInt32NoTag(elementMemoizedSerializedSize);
227 }
228 for (int i = 0; i < element_.size(); i++) {
229 output.writeInt32NoTag(element_.getInt(i));
230 }
231 getUnknownFields().writeTo(output);
232 }
233
234 @java.lang.Override
235 public int getSerializedSize() {
236 int size = memoizedSize;
237 if (size != -1) return size;
238
239 size = 0;
240 if (((bitField0_ & 0x00000001) != 0)) {
241 size += com.google.protobuf.CodedOutputStream
242 .computeDoubleSize(1, cost_);
243 }
244 {
245 int dataSize = 0;
246 for (int i = 0; i < element_.size(); i++) {
247 dataSize += com.google.protobuf.CodedOutputStream
248 .computeInt32SizeNoTag(element_.getInt(i));
249 }
250 size += dataSize;
251 if (!getElementList().isEmpty()) {
252 size += 1;
253 size += com.google.protobuf.CodedOutputStream
254 .computeInt32SizeNoTag(dataSize);
255 }
256 elementMemoizedSerializedSize = dataSize;
257 }
258 size += getUnknownFields().getSerializedSize();
259 memoizedSize = size;
260 return size;
261 }
262
263 @java.lang.Override
264 public boolean equals(final java.lang.Object obj) {
265 if (obj == this) {
266 return true;
267 }
268 if (!(obj instanceof com.google.ortools.algorithms.SetCoverProto.Subset)) {
269 return super.equals(obj);
270 }
271 com.google.ortools.algorithms.SetCoverProto.Subset other = (com.google.ortools.algorithms.SetCoverProto.Subset) obj;
272
273 if (hasCost() != other.hasCost()) return false;
274 if (hasCost()) {
275 if (java.lang.Double.doubleToLongBits(getCost())
276 != java.lang.Double.doubleToLongBits(
277 other.getCost())) return false;
278 }
279 if (!getElementList()
280 .equals(other.getElementList())) return false;
281 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
282 return true;
283 }
284
285 @java.lang.Override
286 public int hashCode() {
287 if (memoizedHashCode != 0) {
288 return memoizedHashCode;
289 }
290 int hash = 41;
291 hash = (19 * hash) + getDescriptor().hashCode();
292 if (hasCost()) {
293 hash = (37 * hash) + COST_FIELD_NUMBER;
294 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
295 java.lang.Double.doubleToLongBits(getCost()));
296 }
297 if (getElementCount() > 0) {
298 hash = (37 * hash) + ELEMENT_FIELD_NUMBER;
299 hash = (53 * hash) + getElementList().hashCode();
300 }
301 hash = (29 * hash) + getUnknownFields().hashCode();
302 memoizedHashCode = hash;
303 return hash;
304 }
305
307 java.nio.ByteBuffer data)
308 throws com.google.protobuf.InvalidProtocolBufferException {
309 return PARSER.parseFrom(data);
310 }
312 java.nio.ByteBuffer data,
313 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
314 throws com.google.protobuf.InvalidProtocolBufferException {
315 return PARSER.parseFrom(data, extensionRegistry);
316 }
318 com.google.protobuf.ByteString data)
319 throws com.google.protobuf.InvalidProtocolBufferException {
320 return PARSER.parseFrom(data);
321 }
323 com.google.protobuf.ByteString data,
324 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
325 throws com.google.protobuf.InvalidProtocolBufferException {
326 return PARSER.parseFrom(data, extensionRegistry);
327 }
329 throws com.google.protobuf.InvalidProtocolBufferException {
330 return PARSER.parseFrom(data);
331 }
333 byte[] data,
334 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
335 throws com.google.protobuf.InvalidProtocolBufferException {
336 return PARSER.parseFrom(data, extensionRegistry);
337 }
338 public static com.google.ortools.algorithms.SetCoverProto.Subset parseFrom(java.io.InputStream input)
339 throws java.io.IOException {
340 return com.google.protobuf.GeneratedMessage
341 .parseWithIOException(PARSER, input);
342 }
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);
349 }
350
352 throws java.io.IOException {
353 return com.google.protobuf.GeneratedMessage
354 .parseDelimitedWithIOException(PARSER, input);
355 }
356
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);
363 }
365 com.google.protobuf.CodedInputStream input)
366 throws java.io.IOException {
367 return com.google.protobuf.GeneratedMessage
368 .parseWithIOException(PARSER, input);
369 }
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);
376 }
377
378 @java.lang.Override
379 public Builder newBuilderForType() { return newBuilder(); }
380 public static Builder newBuilder() {
381 return DEFAULT_INSTANCE.toBuilder();
382 }
383 public static Builder newBuilder(com.google.ortools.algorithms.SetCoverProto.Subset prototype) {
384 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
385 }
386 @java.lang.Override
388 return this == DEFAULT_INSTANCE
389 ? new Builder() : new Builder().mergeFrom(this);
390 }
391
392 @java.lang.Override
394 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
395 Builder builder = new Builder(parent);
396 return builder;
397 }
401 public static final class Builder extends
402 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
403 // @@protoc_insertion_point(builder_implements:operations_research.SetCoverProto.Subset)
404 com.google.ortools.algorithms.SetCoverProto.SubsetOrBuilder {
405 public static final com.google.protobuf.Descriptors.Descriptor
407 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_Subset_descriptor;
408 }
409
410 @java.lang.Override
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);
416 }
417
418 // Construct using com.google.ortools.algorithms.SetCoverProto.Subset.newBuilder()
419 private Builder() {
420
421 }
422
423 private Builder(
424 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
425 super(parent);
426
427 }
428 @java.lang.Override
429 public Builder clear() {
430 super.clear();
431 bitField0_ = 0;
432 cost_ = 0D;
433 element_ = emptyIntList();
434 return this;
435 }
436
437 @java.lang.Override
438 public com.google.protobuf.Descriptors.Descriptor
440 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_Subset_descriptor;
441 }
442
443 @java.lang.Override
445 return com.google.ortools.algorithms.SetCoverProto.Subset.getDefaultInstance();
446 }
447
448 @java.lang.Override
451 if (!result.isInitialized()) {
452 throw newUninitializedMessageException(result);
453 }
454 return result;
455 }
456
457 @java.lang.Override
459 com.google.ortools.algorithms.SetCoverProto.Subset result = new com.google.ortools.algorithms.SetCoverProto.Subset(this);
460 if (bitField0_ != 0) { buildPartial0(result); }
461 onBuilt();
462 return result;
463 }
464
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;
471 }
472 if (((from_bitField0_ & 0x00000002) != 0)) {
473 element_.makeImmutable();
474 result.element_ = element_;
475 }
476 result.bitField0_ |= to_bitField0_;
477 }
478
479 @java.lang.Override
480 public Builder mergeFrom(com.google.protobuf.Message other) {
481 if (other instanceof com.google.ortools.algorithms.SetCoverProto.Subset) {
482 return mergeFrom((com.google.ortools.algorithms.SetCoverProto.Subset)other);
483 } else {
484 super.mergeFrom(other);
485 return this;
486 }
487 }
488
489 public Builder mergeFrom(com.google.ortools.algorithms.SetCoverProto.Subset other) {
490 if (other == com.google.ortools.algorithms.SetCoverProto.Subset.getDefaultInstance()) return this;
491 if (other.hasCost()) {
492 setCost(other.getCost());
493 }
494 if (!other.element_.isEmpty()) {
495 if (element_.isEmpty()) {
496 element_ = other.element_;
497 element_.makeImmutable();
498 bitField0_ |= 0x00000002;
499 } else {
500 ensureElementIsMutable();
501 element_.addAll(other.element_);
502 }
503 onChanged();
504 }
505 this.mergeUnknownFields(other.getUnknownFields());
506 onChanged();
507 return this;
508 }
509
510 @java.lang.Override
511 public final boolean isInitialized() {
512 return true;
513 }
514
515 @java.lang.Override
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();
522 }
523 try {
524 boolean done = false;
525 while (!done) {
526 int tag = input.readTag();
527 switch (tag) {
528 case 0:
529 done = true;
530 break;
531 case 9: {
532 cost_ = input.readDouble();
533 bitField0_ |= 0x00000001;
534 break;
535 } // case 9
536 case 16: {
537 int v = input.readInt32();
538 ensureElementIsMutable();
539 element_.addInt(v);
540 break;
541 } // case 16
542 case 18: {
543 int length = input.readRawVarint32();
544 int limit = input.pushLimit(length);
545 ensureElementIsMutable();
546 while (input.getBytesUntilLimit() > 0) {
547 element_.addInt(input.readInt32());
548 }
549 input.popLimit(limit);
550 break;
551 } // case 18
552 default: {
553 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
554 done = true; // was an endgroup tag
555 }
556 break;
557 } // default:
558 } // switch (tag)
559 } // while (!done)
560 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
561 throw e.unwrapIOException();
562 } finally {
563 onChanged();
564 } // finally
565 return this;
566 }
567 private int bitField0_;
568
569 private double cost_ ;
578 @java.lang.Override
579 public boolean hasCost() {
580 return ((bitField0_ & 0x00000001) != 0);
581 }
590 @java.lang.Override
591 public double getCost() {
592 return cost_;
593 }
603 public Builder setCost(double value) {
604
605 cost_ = value;
606 bitField0_ |= 0x00000001;
607 onChanged();
608 return this;
609 }
619 bitField0_ = (bitField0_ & ~0x00000001);
620 cost_ = 0D;
621 onChanged();
622 return this;
623 }
624
625 private com.google.protobuf.Internal.IntList element_ = emptyIntList();
626 private void ensureElementIsMutable() {
627 if (!element_.isModifiable()) {
628 element_ = makeMutableCopy(element_);
629 }
630 bitField0_ |= 0x00000002;
631 }
640 public java.util.List<java.lang.Integer>
642 element_.makeImmutable();
643 return element_;
644 }
653 public int getElementCount() {
654 return element_.size();
655 }
665 public int getElement(int index) {
666 return element_.getInt(index);
667 }
679 int index, int value) {
680
681 ensureElementIsMutable();
682 element_.setInt(index, value);
683 bitField0_ |= 0x00000002;
684 onChanged();
685 return this;
686 }
696 public Builder addElement(int value) {
697
698 ensureElementIsMutable();
699 element_.addInt(value);
700 bitField0_ |= 0x00000002;
701 onChanged();
702 return this;
703 }
714 java.lang.Iterable<? extends java.lang.Integer> values) {
715 ensureElementIsMutable();
716 com.google.protobuf.AbstractMessageLite.Builder.addAll(
717 values, element_);
718 bitField0_ |= 0x00000002;
719 onChanged();
720 return this;
721 }
731 element_ = emptyIntList();
732 bitField0_ = (bitField0_ & ~0x00000002);
733 onChanged();
734 return this;
735 }
736
737 // @@protoc_insertion_point(builder_scope:operations_research.SetCoverProto.Subset)
738 }
739
740 // @@protoc_insertion_point(class_scope:operations_research.SetCoverProto.Subset)
741 private static final com.google.ortools.algorithms.SetCoverProto.Subset DEFAULT_INSTANCE;
742 static {
743 DEFAULT_INSTANCE = new com.google.ortools.algorithms.SetCoverProto.Subset();
744 }
745
747 return DEFAULT_INSTANCE;
748 }
749
750 private static final com.google.protobuf.Parser<Subset>
751 PARSER = new com.google.protobuf.AbstractParser<Subset>() {
752 @java.lang.Override
753 public Subset parsePartialFrom(
754 com.google.protobuf.CodedInputStream input,
755 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
756 throws com.google.protobuf.InvalidProtocolBufferException {
757 Builder builder = newBuilder();
758 try {
759 builder.mergeFrom(input, extensionRegistry);
760 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
761 throw e.setUnfinishedMessage(builder.buildPartial());
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)
766 .setUnfinishedMessage(builder.buildPartial());
767 }
768 return builder.buildPartial();
769 }
770 };
771
772 public static com.google.protobuf.Parser<Subset> parser() {
773 return PARSER;
774 }
775
776 @java.lang.Override
777 public com.google.protobuf.Parser<Subset> getParserForType() {
778 return PARSER;
779 }
780
781 @java.lang.Override
785
786 }
787
788 private int bitField0_;
789 public static final int SUBSET_FIELD_NUMBER = 1;
790 @SuppressWarnings("serial")
791 private java.util.List<com.google.ortools.algorithms.SetCoverProto.Subset> subset_;
799 @java.lang.Override
800 public java.util.List<com.google.ortools.algorithms.SetCoverProto.Subset> getSubsetList() {
801 return subset_;
802 }
810 @java.lang.Override
811 public java.util.List<? extends com.google.ortools.algorithms.SetCoverProto.SubsetOrBuilder>
813 return subset_;
814 }
822 @java.lang.Override
823 public int getSubsetCount() {
824 return subset_.size();
825 }
833 @java.lang.Override
835 return subset_.get(index);
836 }
844 @java.lang.Override
846 int index) {
847 return subset_.get(index);
848 }
849
850 public static final int NAME_FIELD_NUMBER = 2;
851 @SuppressWarnings("serial")
852 private volatile java.lang.Object name_ = "";
861 @java.lang.Override
862 public boolean hasName() {
863 return ((bitField0_ & 0x00000001) != 0);
864 }
873 @java.lang.Override
874 public java.lang.String getName() {
875 java.lang.Object ref = name_;
876 if (ref instanceof java.lang.String) {
877 return (java.lang.String) ref;
878 } else {
879 com.google.protobuf.ByteString bs =
880 (com.google.protobuf.ByteString) ref;
881 java.lang.String s = bs.toStringUtf8();
882 name_ = s;
883 return s;
884 }
885 }
894 @java.lang.Override
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);
902 name_ = b;
903 return b;
904 } else {
905 return (com.google.protobuf.ByteString) ref;
906 }
907 }
908
909 public static final int FINGERPRINT_FIELD_NUMBER = 3;
910 private com.google.ortools.util.Int128 fingerprint_;
919 @java.lang.Override
920 public boolean hasFingerprint() {
921 return ((bitField0_ & 0x00000002) != 0);
922 }
931 @java.lang.Override
933 return fingerprint_ == null ? com.google.ortools.util.Int128.getDefaultInstance() : fingerprint_;
934 }
942 @java.lang.Override
944 return fingerprint_ == null ? com.google.ortools.util.Int128.getDefaultInstance() : fingerprint_;
945 }
946
947 private byte memoizedIsInitialized = -1;
948 @java.lang.Override
949 public final boolean isInitialized() {
950 byte isInitialized = memoizedIsInitialized;
951 if (isInitialized == 1) return true;
952 if (isInitialized == 0) return false;
953
954 memoizedIsInitialized = 1;
955 return true;
956 }
957
958 @java.lang.Override
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));
963 }
964 if (((bitField0_ & 0x00000001) != 0)) {
965 com.google.protobuf.GeneratedMessage.writeString(output, 2, name_);
966 }
967 if (((bitField0_ & 0x00000002) != 0)) {
968 output.writeMessage(3, getFingerprint());
969 }
970 getUnknownFields().writeTo(output);
971 }
972
973 @java.lang.Override
974 public int getSerializedSize() {
975 int size = memoizedSize;
976 if (size != -1) return size;
977
978 size = 0;
979 for (int i = 0; i < subset_.size(); i++) {
980 size += com.google.protobuf.CodedOutputStream
981 .computeMessageSize(1, subset_.get(i));
982 }
983 if (((bitField0_ & 0x00000001) != 0)) {
984 size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_);
985 }
986 if (((bitField0_ & 0x00000002) != 0)) {
987 size += com.google.protobuf.CodedOutputStream
988 .computeMessageSize(3, getFingerprint());
989 }
990 size += getUnknownFields().getSerializedSize();
991 memoizedSize = size;
992 return size;
993 }
994
995 @java.lang.Override
996 public boolean equals(final java.lang.Object obj) {
997 if (obj == this) {
998 return true;
999 }
1000 if (!(obj instanceof com.google.ortools.algorithms.SetCoverProto)) {
1001 return super.equals(obj);
1002 }
1003 com.google.ortools.algorithms.SetCoverProto other = (com.google.ortools.algorithms.SetCoverProto) obj;
1004
1005 if (!getSubsetList()
1006 .equals(other.getSubsetList())) return false;
1007 if (hasName() != other.hasName()) return false;
1008 if (hasName()) {
1009 if (!getName()
1010 .equals(other.getName())) return false;
1011 }
1012 if (hasFingerprint() != other.hasFingerprint()) return false;
1013 if (hasFingerprint()) {
1014 if (!getFingerprint()
1015 .equals(other.getFingerprint())) return false;
1016 }
1017 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
1018 return true;
1019 }
1020
1021 @java.lang.Override
1022 public int hashCode() {
1023 if (memoizedHashCode != 0) {
1024 return memoizedHashCode;
1025 }
1026 int hash = 41;
1027 hash = (19 * hash) + getDescriptor().hashCode();
1028 if (getSubsetCount() > 0) {
1029 hash = (37 * hash) + SUBSET_FIELD_NUMBER;
1030 hash = (53 * hash) + getSubsetList().hashCode();
1031 }
1032 if (hasName()) {
1033 hash = (37 * hash) + NAME_FIELD_NUMBER;
1034 hash = (53 * hash) + getName().hashCode();
1035 }
1036 if (hasFingerprint()) {
1037 hash = (37 * hash) + FINGERPRINT_FIELD_NUMBER;
1038 hash = (53 * hash) + getFingerprint().hashCode();
1039 }
1040 hash = (29 * hash) + getUnknownFields().hashCode();
1041 memoizedHashCode = hash;
1042 return hash;
1043 }
1044
1046 java.nio.ByteBuffer data)
1047 throws com.google.protobuf.InvalidProtocolBufferException {
1048 return PARSER.parseFrom(data);
1049 }
1051 java.nio.ByteBuffer data,
1052 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1053 throws com.google.protobuf.InvalidProtocolBufferException {
1054 return PARSER.parseFrom(data, extensionRegistry);
1055 }
1057 com.google.protobuf.ByteString data)
1058 throws com.google.protobuf.InvalidProtocolBufferException {
1059 return PARSER.parseFrom(data);
1060 }
1062 com.google.protobuf.ByteString data,
1063 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1064 throws com.google.protobuf.InvalidProtocolBufferException {
1065 return PARSER.parseFrom(data, extensionRegistry);
1066 }
1068 throws com.google.protobuf.InvalidProtocolBufferException {
1069 return PARSER.parseFrom(data);
1070 }
1072 byte[] data,
1073 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1074 throws com.google.protobuf.InvalidProtocolBufferException {
1075 return PARSER.parseFrom(data, extensionRegistry);
1076 }
1077 public static com.google.ortools.algorithms.SetCoverProto parseFrom(java.io.InputStream input)
1078 throws java.io.IOException {
1079 return com.google.protobuf.GeneratedMessage
1080 .parseWithIOException(PARSER, input);
1081 }
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);
1088 }
1089
1091 throws java.io.IOException {
1092 return com.google.protobuf.GeneratedMessage
1093 .parseDelimitedWithIOException(PARSER, input);
1094 }
1095
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);
1102 }
1104 com.google.protobuf.CodedInputStream input)
1105 throws java.io.IOException {
1106 return com.google.protobuf.GeneratedMessage
1107 .parseWithIOException(PARSER, input);
1108 }
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);
1115 }
1116
1117 @java.lang.Override
1118 public Builder newBuilderForType() { return newBuilder(); }
1119 public static Builder newBuilder() {
1120 return DEFAULT_INSTANCE.toBuilder();
1121 }
1122 public static Builder newBuilder(com.google.ortools.algorithms.SetCoverProto prototype) {
1123 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1124 }
1125 @java.lang.Override
1127 return this == DEFAULT_INSTANCE
1128 ? new Builder() : new Builder().mergeFrom(this);
1129 }
1130
1131 @java.lang.Override
1133 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1134 Builder builder = new Builder(parent);
1135 return builder;
1136 }
1140 public static final class Builder extends
1141 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
1142 // @@protoc_insertion_point(builder_implements:operations_research.SetCoverProto)
1143 com.google.ortools.algorithms.SetCoverProtoOrBuilder {
1144 public static final com.google.protobuf.Descriptors.Descriptor
1146 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_descriptor;
1147 }
1148
1149 @java.lang.Override
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);
1155 }
1156
1157 // Construct using com.google.ortools.algorithms.SetCoverProto.newBuilder()
1158 private Builder() {
1159 maybeForceBuilderInitialization();
1160 }
1161
1162 private Builder(
1163 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1164 super(parent);
1165 maybeForceBuilderInitialization();
1166 }
1167 private void maybeForceBuilderInitialization() {
1168 if (com.google.protobuf.GeneratedMessage
1169 .alwaysUseFieldBuilders) {
1170 getSubsetFieldBuilder();
1171 getFingerprintFieldBuilder();
1172 }
1173 }
1174 @java.lang.Override
1175 public Builder clear() {
1176 super.clear();
1177 bitField0_ = 0;
1178 if (subsetBuilder_ == null) {
1179 subset_ = java.util.Collections.emptyList();
1180 } else {
1181 subset_ = null;
1182 subsetBuilder_.clear();
1183 }
1184 bitField0_ = (bitField0_ & ~0x00000001);
1185 name_ = "";
1186 fingerprint_ = null;
1187 if (fingerprintBuilder_ != null) {
1188 fingerprintBuilder_.dispose();
1189 fingerprintBuilder_ = null;
1190 }
1191 return this;
1192 }
1193
1194 @java.lang.Override
1195 public com.google.protobuf.Descriptors.Descriptor
1197 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_descriptor;
1198 }
1199
1200 @java.lang.Override
1202 return com.google.ortools.algorithms.SetCoverProto.getDefaultInstance();
1203 }
1204
1205 @java.lang.Override
1208 if (!result.isInitialized()) {
1209 throw newUninitializedMessageException(result);
1210 }
1211 return result;
1212 }
1213
1214 @java.lang.Override
1216 com.google.ortools.algorithms.SetCoverProto result = new com.google.ortools.algorithms.SetCoverProto(this);
1217 buildPartialRepeatedFields(result);
1218 if (bitField0_ != 0) { buildPartial0(result); }
1219 onBuilt();
1220 return result;
1221 }
1222
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);
1228 }
1229 result.subset_ = subset_;
1230 } else {
1231 result.subset_ = subsetBuilder_.build();
1232 }
1233 }
1234
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;
1241 }
1242 if (((from_bitField0_ & 0x00000004) != 0)) {
1243 result.fingerprint_ = fingerprintBuilder_ == null
1244 ? fingerprint_
1245 : fingerprintBuilder_.build();
1246 to_bitField0_ |= 0x00000002;
1247 }
1248 result.bitField0_ |= to_bitField0_;
1249 }
1250
1251 @java.lang.Override
1252 public Builder mergeFrom(com.google.protobuf.Message other) {
1253 if (other instanceof com.google.ortools.algorithms.SetCoverProto) {
1254 return mergeFrom((com.google.ortools.algorithms.SetCoverProto)other);
1255 } else {
1256 super.mergeFrom(other);
1257 return this;
1258 }
1259 }
1260
1261 public Builder mergeFrom(com.google.ortools.algorithms.SetCoverProto 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);
1268 } else {
1269 ensureSubsetIsMutable();
1270 subset_.addAll(other.subset_);
1271 }
1272 onChanged();
1273 }
1274 } else {
1275 if (!other.subset_.isEmpty()) {
1276 if (subsetBuilder_.isEmpty()) {
1277 subsetBuilder_.dispose();
1278 subsetBuilder_ = null;
1279 subset_ = other.subset_;
1280 bitField0_ = (bitField0_ & ~0x00000001);
1281 subsetBuilder_ =
1282 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
1283 getSubsetFieldBuilder() : null;
1284 } else {
1285 subsetBuilder_.addAllMessages(other.subset_);
1286 }
1287 }
1288 }
1289 if (other.hasName()) {
1290 name_ = other.name_;
1291 bitField0_ |= 0x00000002;
1292 onChanged();
1293 }
1294 if (other.hasFingerprint()) {
1295 mergeFingerprint(other.getFingerprint());
1296 }
1297 this.mergeUnknownFields(other.getUnknownFields());
1298 onChanged();
1299 return this;
1300 }
1301
1302 @java.lang.Override
1303 public final boolean isInitialized() {
1304 return true;
1305 }
1306
1307 @java.lang.Override
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();
1314 }
1315 try {
1316 boolean done = false;
1317 while (!done) {
1318 int tag = input.readTag();
1319 switch (tag) {
1320 case 0:
1321 done = true;
1322 break;
1323 case 10: {
1325 input.readMessage(
1326 com.google.ortools.algorithms.SetCoverProto.Subset.parser(),
1327 extensionRegistry);
1328 if (subsetBuilder_ == null) {
1329 ensureSubsetIsMutable();
1330 subset_.add(m);
1331 } else {
1332 subsetBuilder_.addMessage(m);
1333 }
1334 break;
1335 } // case 10
1336 case 18: {
1337 name_ = input.readStringRequireUtf8();
1338 bitField0_ |= 0x00000002;
1339 break;
1340 } // case 18
1341 case 26: {
1342 input.readMessage(
1343 getFingerprintFieldBuilder().getBuilder(),
1344 extensionRegistry);
1345 bitField0_ |= 0x00000004;
1346 break;
1347 } // case 26
1348 default: {
1349 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1350 done = true; // was an endgroup tag
1351 }
1352 break;
1353 } // default:
1354 } // switch (tag)
1355 } // while (!done)
1356 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1357 throw e.unwrapIOException();
1358 } finally {
1359 onChanged();
1360 } // finally
1361 return this;
1362 }
1363 private int bitField0_;
1364
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;
1371 }
1372 }
1373
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_;
1376
1384 public java.util.List<com.google.ortools.algorithms.SetCoverProto.Subset> getSubsetList() {
1385 if (subsetBuilder_ == null) {
1386 return java.util.Collections.unmodifiableList(subset_);
1387 } else {
1388 return subsetBuilder_.getMessageList();
1389 }
1390 }
1398 public int getSubsetCount() {
1399 if (subsetBuilder_ == null) {
1400 return subset_.size();
1401 } else {
1402 return subsetBuilder_.getCount();
1403 }
1404 }
1413 if (subsetBuilder_ == null) {
1414 return subset_.get(index);
1415 } else {
1416 return subsetBuilder_.getMessage(index);
1417 }
1418 }
1427 int index, com.google.ortools.algorithms.SetCoverProto.Subset value) {
1428 if (subsetBuilder_ == null) {
1429 if (value == null) {
1430 throw new NullPointerException();
1431 }
1432 ensureSubsetIsMutable();
1433 subset_.set(index, value);
1434 onChanged();
1435 } else {
1436 subsetBuilder_.setMessage(index, value);
1437 }
1438 return this;
1439 }
1448 int index, com.google.ortools.algorithms.SetCoverProto.Subset.Builder builderForValue) {
1449 if (subsetBuilder_ == null) {
1450 ensureSubsetIsMutable();
1451 subset_.set(index, builderForValue.build());
1452 onChanged();
1453 } else {
1454 subsetBuilder_.setMessage(index, builderForValue.build());
1455 }
1456 return this;
1457 }
1465 public Builder addSubset(com.google.ortools.algorithms.SetCoverProto.Subset value) {
1466 if (subsetBuilder_ == null) {
1467 if (value == null) {
1468 throw new NullPointerException();
1469 }
1470 ensureSubsetIsMutable();
1471 subset_.add(value);
1472 onChanged();
1473 } else {
1474 subsetBuilder_.addMessage(value);
1475 }
1476 return this;
1477 }
1486 int index, com.google.ortools.algorithms.SetCoverProto.Subset value) {
1487 if (subsetBuilder_ == null) {
1488 if (value == null) {
1489 throw new NullPointerException();
1490 }
1491 ensureSubsetIsMutable();
1492 subset_.add(index, value);
1493 onChanged();
1494 } else {
1495 subsetBuilder_.addMessage(index, value);
1496 }
1497 return this;
1498 }
1507 com.google.ortools.algorithms.SetCoverProto.Subset.Builder builderForValue) {
1508 if (subsetBuilder_ == null) {
1509 ensureSubsetIsMutable();
1510 subset_.add(builderForValue.build());
1511 onChanged();
1512 } else {
1513 subsetBuilder_.addMessage(builderForValue.build());
1514 }
1515 return this;
1516 }
1525 int index, com.google.ortools.algorithms.SetCoverProto.Subset.Builder builderForValue) {
1526 if (subsetBuilder_ == null) {
1527 ensureSubsetIsMutable();
1528 subset_.add(index, builderForValue.build());
1529 onChanged();
1530 } else {
1531 subsetBuilder_.addMessage(index, builderForValue.build());
1532 }
1533 return this;
1534 }
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(
1547 values, subset_);
1548 onChanged();
1549 } else {
1550 subsetBuilder_.addAllMessages(values);
1551 }
1552 return this;
1553 }
1562 if (subsetBuilder_ == null) {
1563 subset_ = java.util.Collections.emptyList();
1564 bitField0_ = (bitField0_ & ~0x00000001);
1565 onChanged();
1566 } else {
1567 subsetBuilder_.clear();
1568 }
1569 return this;
1570 }
1578 public Builder removeSubset(int index) {
1579 if (subsetBuilder_ == null) {
1580 ensureSubsetIsMutable();
1581 subset_.remove(index);
1582 onChanged();
1583 } else {
1584 subsetBuilder_.remove(index);
1585 }
1586 return this;
1587 }
1596 int index) {
1597 return getSubsetFieldBuilder().getBuilder(index);
1598 }
1607 int index) {
1608 if (subsetBuilder_ == null) {
1609 return subset_.get(index); } else {
1610 return subsetBuilder_.getMessageOrBuilder(index);
1611 }
1612 }
1620 public java.util.List<? extends com.google.ortools.algorithms.SetCoverProto.SubsetOrBuilder>
1622 if (subsetBuilder_ != null) {
1623 return subsetBuilder_.getMessageOrBuilderList();
1624 } else {
1625 return java.util.Collections.unmodifiableList(subset_);
1626 }
1627 }
1636 return getSubsetFieldBuilder().addBuilder(
1637 com.google.ortools.algorithms.SetCoverProto.Subset.getDefaultInstance());
1638 }
1647 int index) {
1648 return getSubsetFieldBuilder().addBuilder(
1649 index, com.google.ortools.algorithms.SetCoverProto.Subset.getDefaultInstance());
1650 }
1658 public java.util.List<com.google.ortools.algorithms.SetCoverProto.Subset.Builder>
1660 return getSubsetFieldBuilder().getBuilderList();
1661 }
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>(
1668 subset_,
1669 ((bitField0_ & 0x00000001) != 0),
1670 getParentForChildren(),
1671 isClean());
1672 subset_ = null;
1673 }
1674 return subsetBuilder_;
1675 }
1676
1677 private java.lang.Object name_ = "";
1686 public boolean hasName() {
1687 return ((bitField0_ & 0x00000002) != 0);
1688 }
1697 public java.lang.String getName() {
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();
1703 name_ = s;
1704 return s;
1705 } else {
1706 return (java.lang.String) ref;
1707 }
1708 }
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);
1724 name_ = b;
1725 return b;
1726 } else {
1727 return (com.google.protobuf.ByteString) ref;
1728 }
1729 }
1740 java.lang.String value) {
1741 if (value == null) { throw new NullPointerException(); }
1742 name_ = value;
1743 bitField0_ |= 0x00000002;
1744 onChanged();
1745 return this;
1746 }
1756 name_ = getDefaultInstance().getName();
1757 bitField0_ = (bitField0_ & ~0x00000002);
1758 onChanged();
1759 return this;
1760 }
1771 com.google.protobuf.ByteString value) {
1772 if (value == null) { throw new NullPointerException(); }
1773 checkByteStringIsUtf8(value);
1774 name_ = value;
1775 bitField0_ |= 0x00000002;
1776 onChanged();
1777 return this;
1778 }
1779
1780 private com.google.ortools.util.Int128 fingerprint_;
1781 private com.google.protobuf.SingleFieldBuilder<
1782 com.google.ortools.util.Int128, com.google.ortools.util.Int128.Builder, com.google.ortools.util.Int128OrBuilder> fingerprintBuilder_;
1791 public boolean hasFingerprint() {
1792 return ((bitField0_ & 0x00000004) != 0);
1793 }
1803 if (fingerprintBuilder_ == null) {
1804 return fingerprint_ == null ? com.google.ortools.util.Int128.getDefaultInstance() : fingerprint_;
1805 } else {
1806 return fingerprintBuilder_.getMessage();
1807 }
1808 }
1816 public Builder setFingerprint(com.google.ortools.util.Int128 value) {
1817 if (fingerprintBuilder_ == null) {
1818 if (value == null) {
1819 throw new NullPointerException();
1820 }
1821 fingerprint_ = value;
1822 } else {
1823 fingerprintBuilder_.setMessage(value);
1824 }
1825 bitField0_ |= 0x00000004;
1826 onChanged();
1827 return this;
1828 }
1837 com.google.ortools.util.Int128.Builder builderForValue) {
1838 if (fingerprintBuilder_ == null) {
1839 fingerprint_ = builderForValue.build();
1840 } else {
1841 fingerprintBuilder_.setMessage(builderForValue.build());
1842 }
1843 bitField0_ |= 0x00000004;
1844 onChanged();
1845 return this;
1846 }
1854 public Builder mergeFingerprint(com.google.ortools.util.Int128 value) {
1855 if (fingerprintBuilder_ == null) {
1856 if (((bitField0_ & 0x00000004) != 0) &&
1857 fingerprint_ != null &&
1858 fingerprint_ != com.google.ortools.util.Int128.getDefaultInstance()) {
1860 } else {
1861 fingerprint_ = value;
1862 }
1863 } else {
1864 fingerprintBuilder_.mergeFrom(value);
1865 }
1866 if (fingerprint_ != null) {
1867 bitField0_ |= 0x00000004;
1868 onChanged();
1869 }
1870 return this;
1871 }
1880 bitField0_ = (bitField0_ & ~0x00000004);
1881 fingerprint_ = null;
1882 if (fingerprintBuilder_ != null) {
1883 fingerprintBuilder_.dispose();
1884 fingerprintBuilder_ = null;
1885 }
1886 onChanged();
1887 return this;
1888 }
1897 bitField0_ |= 0x00000004;
1898 onChanged();
1899 return getFingerprintFieldBuilder().getBuilder();
1900 }
1909 if (fingerprintBuilder_ != null) {
1910 return fingerprintBuilder_.getMessageOrBuilder();
1911 } else {
1912 return fingerprint_ == null ?
1913 com.google.ortools.util.Int128.getDefaultInstance() : fingerprint_;
1914 }
1915 }
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(),
1931 isClean());
1932 fingerprint_ = null;
1933 }
1934 return fingerprintBuilder_;
1935 }
1936
1937 // @@protoc_insertion_point(builder_scope:operations_research.SetCoverProto)
1938 }
1939
1940 // @@protoc_insertion_point(class_scope:operations_research.SetCoverProto)
1941 private static final com.google.ortools.algorithms.SetCoverProto DEFAULT_INSTANCE;
1942 static {
1943 DEFAULT_INSTANCE = new com.google.ortools.algorithms.SetCoverProto();
1944 }
1945
1947 return DEFAULT_INSTANCE;
1948 }
1949
1950 private static final com.google.protobuf.Parser<SetCoverProto>
1951 PARSER = new com.google.protobuf.AbstractParser<SetCoverProto>() {
1952 @java.lang.Override
1953 public SetCoverProto parsePartialFrom(
1954 com.google.protobuf.CodedInputStream input,
1955 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1956 throws com.google.protobuf.InvalidProtocolBufferException {
1957 Builder builder = newBuilder();
1958 try {
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());
1967 }
1968 return builder.buildPartial();
1969 }
1970 };
1971
1972 public static com.google.protobuf.Parser<SetCoverProto> parser() {
1973 return PARSER;
1974 }
1975
1976 @java.lang.Override
1977 public com.google.protobuf.Parser<SetCoverProto> getParserForType() {
1978 return PARSER;
1979 }
1980
1981 @java.lang.Override
1983 return DEFAULT_INSTANCE;
1984 }
1985
1986}
1987
Builder addSubset(int index, com.google.ortools.algorithms.SetCoverProto.Subset value)
Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Builder addSubset(com.google.ortools.algorithms.SetCoverProto.Subset value)
java.util.List< com.google.ortools.algorithms.SetCoverProto.Subset.Builder > getSubsetBuilderList()
com.google.ortools.algorithms.SetCoverProto.SubsetOrBuilder getSubsetOrBuilder(int index)
Builder mergeFingerprint(com.google.ortools.util.Int128 value)
Builder setFingerprint(com.google.ortools.util.Int128 value)
com.google.ortools.algorithms.SetCoverProto.Subset.Builder addSubsetBuilder(int index)
com.google.ortools.util.Int128.Builder getFingerprintBuilder()
Builder setFingerprint(com.google.ortools.util.Int128.Builder builderForValue)
com.google.ortools.algorithms.SetCoverProto.Subset.Builder addSubsetBuilder()
Builder mergeFrom(com.google.protobuf.Message other)
com.google.ortools.algorithms.SetCoverProto buildPartial()
com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
com.google.ortools.algorithms.SetCoverProto.Subset.Builder getSubsetBuilder(int index)
com.google.ortools.util.Int128OrBuilder getFingerprintOrBuilder()
Builder setSubset(int index, com.google.ortools.algorithms.SetCoverProto.Subset.Builder builderForValue)
com.google.ortools.algorithms.SetCoverProto build()
com.google.ortools.algorithms.SetCoverProto.Subset getSubset(int index)
Builder addSubset(com.google.ortools.algorithms.SetCoverProto.Subset.Builder builderForValue)
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Builder addSubset(int index, com.google.ortools.algorithms.SetCoverProto.Subset.Builder builderForValue)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
Builder setSubset(int index, com.google.ortools.algorithms.SetCoverProto.Subset value)
com.google.ortools.algorithms.SetCoverProto getDefaultInstanceForType()
Builder addAllSubset(java.lang.Iterable<? extends com.google.ortools.algorithms.SetCoverProto.Subset > values)
java.util.List< com.google.ortools.algorithms.SetCoverProto.Subset > getSubsetList()
Builder mergeFrom(com.google.ortools.algorithms.SetCoverProto other)
java.util.List<? extends com.google.ortools.algorithms.SetCoverProto.SubsetOrBuilder > getSubsetOrBuilderList()
Builder setNameBytes(com.google.protobuf.ByteString value)
Builder mergeFrom(com.google.protobuf.Message other)
Builder addAllElement(java.lang.Iterable<? extends java.lang.Integer > values)
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
com.google.ortools.algorithms.SetCoverProto.Subset build()
com.google.ortools.algorithms.SetCoverProto.Subset buildPartial()
Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
Builder mergeFrom(com.google.ortools.algorithms.SetCoverProto.Subset other)
com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
com.google.ortools.algorithms.SetCoverProto.Subset getDefaultInstanceForType()
static com.google.ortools.algorithms.SetCoverProto.Subset parseFrom(java.io.InputStream input)
static com.google.ortools.algorithms.SetCoverProto.Subset parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Builder newBuilder(com.google.ortools.algorithms.SetCoverProto.Subset prototype)
com.google.protobuf.Parser< Subset > getParserForType()
static com.google.ortools.algorithms.SetCoverProto.Subset parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
static com.google.ortools.algorithms.SetCoverProto.Subset parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.algorithms.SetCoverProto.Subset parseFrom(java.nio.ByteBuffer data)
static com.google.ortools.algorithms.SetCoverProto.Subset getDefaultInstance()
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
void writeTo(com.google.protobuf.CodedOutputStream output)
static com.google.ortools.algorithms.SetCoverProto.Subset parseDelimitedFrom(java.io.InputStream input)
static com.google.protobuf.Parser< Subset > parser()
static com.google.ortools.algorithms.SetCoverProto.Subset parseFrom(com.google.protobuf.CodedInputStream input)
static com.google.ortools.algorithms.SetCoverProto.Subset parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
java.util.List< java.lang.Integer > getElementList()
static com.google.ortools.algorithms.SetCoverProto.Subset parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
boolean equals(final java.lang.Object obj)
static com.google.ortools.algorithms.SetCoverProto.Subset parseFrom(byte[] data)
com.google.ortools.algorithms.SetCoverProto.Subset getDefaultInstanceForType()
static com.google.ortools.algorithms.SetCoverProto.Subset parseFrom(com.google.protobuf.ByteString data)
static com.google.ortools.algorithms.SetCoverProto.Subset parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.algorithms.SetCoverProto parseFrom(byte[] data)
static com.google.ortools.algorithms.SetCoverProto parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
java.util.List< com.google.ortools.algorithms.SetCoverProto.Subset > getSubsetList()
static com.google.ortools.algorithms.SetCoverProto getDefaultInstance()
static Builder newBuilder(com.google.ortools.algorithms.SetCoverProto prototype)
boolean equals(final java.lang.Object obj)
static com.google.ortools.algorithms.SetCoverProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.algorithms.SetCoverProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.algorithms.SetCoverProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
void writeTo(com.google.protobuf.CodedOutputStream output)
static com.google.ortools.algorithms.SetCoverProto parseFrom(com.google.protobuf.ByteString data)
static com.google.ortools.algorithms.SetCoverProto parseFrom(java.nio.ByteBuffer data)
com.google.ortools.algorithms.SetCoverProto.Subset getSubset(int index)
static com.google.ortools.algorithms.SetCoverProto parseFrom(com.google.protobuf.CodedInputStream input)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
com.google.ortools.algorithms.SetCoverProto getDefaultInstanceForType()
Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
com.google.protobuf.Parser< SetCoverProto > getParserForType()
static com.google.ortools.algorithms.SetCoverProto parseFrom(java.io.InputStream input)
com.google.protobuf.ByteString getNameBytes()
com.google.ortools.util.Int128 getFingerprint()
java.util.List<? extends com.google.ortools.algorithms.SetCoverProto.SubsetOrBuilder > getSubsetOrBuilderList()
static com.google.protobuf.Parser< SetCoverProto > parser()
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
com.google.ortools.util.Int128OrBuilder getFingerprintOrBuilder()
static com.google.ortools.algorithms.SetCoverProto parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.algorithms.SetCoverProto parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.algorithms.SetCoverProto.SubsetOrBuilder getSubsetOrBuilder(int index)
static com.google.ortools.algorithms.SetCoverProto parseDelimitedFrom(java.io.InputStream input)
java.util.List< java.lang.Integer > getElementList()