Google OR-Tools v9.12
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// NO CHECKED-IN PROTOBUF GENCODE
3// source: ortools/algorithms/set_cover.proto
4// Protobuf Java Version: 4.29.3
5
6package com.google.ortools.algorithms;
7
16public final class SetCoverProto extends
17 com.google.protobuf.GeneratedMessage implements
18 // @@protoc_insertion_point(message_implements:operations_research.SetCoverProto)
20private static final long serialVersionUID = 0L;
21 static {
22 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
23 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
24 /* major= */ 4,
25 /* minor= */ 29,
26 /* patch= */ 3,
27 /* suffix= */ "",
28 SetCoverProto.class.getName());
29 }
30 // Use SetCoverProto.newBuilder() to construct.
31 private SetCoverProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
32 super(builder);
33 }
34 private SetCoverProto() {
35 subset_ = java.util.Collections.emptyList();
36 name_ = "";
37 }
38
39 public static final com.google.protobuf.Descriptors.Descriptor
41 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_descriptor;
42 }
43
44 @java.lang.Override
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);
50 }
51
52 public interface SubsetOrBuilder extends
53 // @@protoc_insertion_point(interface_extends:operations_research.SetCoverProto.Subset)
54 com.google.protobuf.MessageOrBuilder {
55
64 boolean hasCost();
73 double getCost();
74
83 java.util.List<java.lang.Integer> getElementList();
102 int getElement(int index);
103 }
104
107 public static final class Subset extends
108 com.google.protobuf.GeneratedMessage implements
109 // @@protoc_insertion_point(message_implements:operations_research.SetCoverProto.Subset)
111 private static final long serialVersionUID = 0L;
112 static {
113 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
114 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
115 /* major= */ 4,
116 /* minor= */ 29,
117 /* patch= */ 3,
118 /* suffix= */ "",
119 Subset.class.getName());
120 }
121 // Use Subset.newBuilder() to construct.
122 private Subset(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
123 super(builder);
124 }
125 private Subset() {
126 element_ = emptyIntList();
127 }
128
129 public static final com.google.protobuf.Descriptors.Descriptor
131 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_Subset_descriptor;
132 }
133
134 @java.lang.Override
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);
140 }
141
142 private int bitField0_;
143 public static final int COST_FIELD_NUMBER = 1;
144 private double cost_ = 0D;
153 @java.lang.Override
154 public boolean hasCost() {
155 return ((bitField0_ & 0x00000001) != 0);
156 }
157
165 @java.lang.Override
166 public double getCost() {
167 return cost_;
168 }
169
170 public static final int ELEMENT_FIELD_NUMBER = 2;
171 @SuppressWarnings("serial")
172 private com.google.protobuf.Internal.IntList element_ =
173 emptyIntList();
182 @java.lang.Override
183 public java.util.List<java.lang.Integer>
185 return element_;
186 }
187
195 public int getElementCount() {
196 return element_.size();
197 }
198
207 public int getElement(int index) {
208 return element_.getInt(index);
209 }
210 private int elementMemoizedSerializedSize = -1;
211
212 private byte memoizedIsInitialized = -1;
213 @java.lang.Override
214 public final boolean isInitialized() {
215 byte isInitialized = memoizedIsInitialized;
216 if (isInitialized == 1) return true;
217 if (isInitialized == 0) return false;
218
219 memoizedIsInitialized = 1;
220 return true;
221 }
222
223 @java.lang.Override
224 public void writeTo(com.google.protobuf.CodedOutputStream output)
225 throws java.io.IOException {
227 if (((bitField0_ & 0x00000001) != 0)) {
228 output.writeDouble(1, cost_);
229 }
230 if (getElementList().size() > 0) {
231 output.writeUInt32NoTag(18);
232 output.writeUInt32NoTag(elementMemoizedSerializedSize);
233 }
234 for (int i = 0; i < element_.size(); i++) {
235 output.writeInt32NoTag(element_.getInt(i));
236 }
237 getUnknownFields().writeTo(output);
238 }
239
240 @java.lang.Override
241 public int getSerializedSize() {
242 int size = memoizedSize;
243 if (size != -1) return size;
244
245 size = 0;
246 if (((bitField0_ & 0x00000001) != 0)) {
247 size += com.google.protobuf.CodedOutputStream
248 .computeDoubleSize(1, cost_);
249 }
250 {
251 int dataSize = 0;
252 for (int i = 0; i < element_.size(); i++) {
253 dataSize += com.google.protobuf.CodedOutputStream
254 .computeInt32SizeNoTag(element_.getInt(i));
255 }
256 size += dataSize;
257 if (!getElementList().isEmpty()) {
258 size += 1;
259 size += com.google.protobuf.CodedOutputStream
260 .computeInt32SizeNoTag(dataSize);
261 }
262 elementMemoizedSerializedSize = dataSize;
263 }
264 size += getUnknownFields().getSerializedSize();
265 memoizedSize = size;
266 return size;
267 }
268
269 @java.lang.Override
270 public boolean equals(final java.lang.Object obj) {
271 if (obj == this) {
272 return true;
273 }
274 if (!(obj instanceof com.google.ortools.algorithms.SetCoverProto.Subset)) {
275 return super.equals(obj);
276 }
277 com.google.ortools.algorithms.SetCoverProto.Subset other = (com.google.ortools.algorithms.SetCoverProto.Subset) obj;
278
279 if (hasCost() != other.hasCost()) return false;
280 if (hasCost()) {
281 if (java.lang.Double.doubleToLongBits(getCost())
282 != java.lang.Double.doubleToLongBits(
283 other.getCost())) return false;
284 }
285 if (!getElementList()
286 .equals(other.getElementList())) return false;
287 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
288 return true;
289 }
290
291 @java.lang.Override
292 public int hashCode() {
293 if (memoizedHashCode != 0) {
294 return memoizedHashCode;
295 }
296 int hash = 41;
297 hash = (19 * hash) + getDescriptor().hashCode();
298 if (hasCost()) {
299 hash = (37 * hash) + COST_FIELD_NUMBER;
300 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
301 java.lang.Double.doubleToLongBits(getCost()));
302 }
303 if (getElementCount() > 0) {
304 hash = (37 * hash) + ELEMENT_FIELD_NUMBER;
305 hash = (53 * hash) + getElementList().hashCode();
306 }
307 hash = (29 * hash) + getUnknownFields().hashCode();
308 memoizedHashCode = hash;
309 return hash;
310 }
311
313 java.nio.ByteBuffer data)
314 throws com.google.protobuf.InvalidProtocolBufferException {
315 return PARSER.parseFrom(data);
316 }
318 java.nio.ByteBuffer data,
319 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
320 throws com.google.protobuf.InvalidProtocolBufferException {
321 return PARSER.parseFrom(data, extensionRegistry);
322 }
324 com.google.protobuf.ByteString data)
325 throws com.google.protobuf.InvalidProtocolBufferException {
326 return PARSER.parseFrom(data);
327 }
329 com.google.protobuf.ByteString data,
330 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
331 throws com.google.protobuf.InvalidProtocolBufferException {
332 return PARSER.parseFrom(data, extensionRegistry);
333 }
335 throws com.google.protobuf.InvalidProtocolBufferException {
336 return PARSER.parseFrom(data);
337 }
339 byte[] data,
340 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
341 throws com.google.protobuf.InvalidProtocolBufferException {
342 return PARSER.parseFrom(data, extensionRegistry);
343 }
344 public static com.google.ortools.algorithms.SetCoverProto.Subset parseFrom(java.io.InputStream input)
345 throws java.io.IOException {
346 return com.google.protobuf.GeneratedMessage
347 .parseWithIOException(PARSER, input);
348 }
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);
355 }
356
358 throws java.io.IOException {
359 return com.google.protobuf.GeneratedMessage
360 .parseDelimitedWithIOException(PARSER, input);
361 }
362
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);
369 }
371 com.google.protobuf.CodedInputStream input)
372 throws java.io.IOException {
373 return com.google.protobuf.GeneratedMessage
374 .parseWithIOException(PARSER, input);
375 }
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);
382 }
383
384 @java.lang.Override
385 public Builder newBuilderForType() { return newBuilder(); }
386 public static Builder newBuilder() {
387 return DEFAULT_INSTANCE.toBuilder();
388 }
389 public static Builder newBuilder(com.google.ortools.algorithms.SetCoverProto.Subset prototype) {
390 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
391 }
392 @java.lang.Override
394 return this == DEFAULT_INSTANCE
395 ? new Builder() : new Builder().mergeFrom(this);
396 }
397
398 @java.lang.Override
400 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
401 Builder builder = new Builder(parent);
402 return builder;
403 }
404
407 public static final class Builder extends
408 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
409 // @@protoc_insertion_point(builder_implements:operations_research.SetCoverProto.Subset)
410 com.google.ortools.algorithms.SetCoverProto.SubsetOrBuilder {
411 public static final com.google.protobuf.Descriptors.Descriptor
413 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_Subset_descriptor;
414 }
415
416 @java.lang.Override
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);
422 }
423
424 // Construct using com.google.ortools.algorithms.SetCoverProto.Subset.newBuilder()
425 private Builder() {
426
427 }
428
429 private Builder(
430 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
431 super(parent);
432
433 }
434 @java.lang.Override
435 public Builder clear() {
436 super.clear();
437 bitField0_ = 0;
438 cost_ = 0D;
439 element_ = emptyIntList();
440 return this;
441 }
442
443 @java.lang.Override
444 public com.google.protobuf.Descriptors.Descriptor
446 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_Subset_descriptor;
447 }
448
449 @java.lang.Override
451 return com.google.ortools.algorithms.SetCoverProto.Subset.getDefaultInstance();
452 }
453
454 @java.lang.Override
457 if (!result.isInitialized()) {
458 throw newUninitializedMessageException(result);
459 }
460 return result;
461 }
462
463 @java.lang.Override
465 com.google.ortools.algorithms.SetCoverProto.Subset result = new com.google.ortools.algorithms.SetCoverProto.Subset(this);
466 if (bitField0_ != 0) { buildPartial0(result); }
467 onBuilt();
468 return result;
469 }
470
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;
477 }
478 if (((from_bitField0_ & 0x00000002) != 0)) {
479 element_.makeImmutable();
480 result.element_ = element_;
481 }
482 result.bitField0_ |= to_bitField0_;
483 }
484
485 @java.lang.Override
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);
489 } else {
490 super.mergeFrom(other);
491 return this;
492 }
493 }
494
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()) {
498 setCost(other.getCost());
499 }
500 if (!other.element_.isEmpty()) {
501 if (element_.isEmpty()) {
502 element_ = other.element_;
503 element_.makeImmutable();
504 bitField0_ |= 0x00000002;
505 } else {
506 ensureElementIsMutable();
507 element_.addAll(other.element_);
508 }
509 onChanged();
510 }
511 this.mergeUnknownFields(other.getUnknownFields());
512 onChanged();
513 return this;
514 }
515
516 @java.lang.Override
517 public final boolean isInitialized() {
518 return true;
519 }
520
521 @java.lang.Override
522 public Builder mergeFrom(
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();
528 }
529 try {
530 boolean done = false;
531 while (!done) {
532 int tag = input.readTag();
533 switch (tag) {
534 case 0:
535 done = true;
536 break;
537 case 9: {
538 cost_ = input.readDouble();
539 bitField0_ |= 0x00000001;
540 break;
541 } // case 9
542 case 16: {
543 int v = input.readInt32();
544 ensureElementIsMutable();
545 element_.addInt(v);
546 break;
547 } // case 16
548 case 18: {
549 int length = input.readRawVarint32();
550 int limit = input.pushLimit(length);
551 ensureElementIsMutable();
552 while (input.getBytesUntilLimit() > 0) {
553 element_.addInt(input.readInt32());
554 }
555 input.popLimit(limit);
556 break;
557 } // case 18
558 default: {
559 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
560 done = true; // was an endgroup tag
561 }
562 break;
563 } // default:
564 } // switch (tag)
565 } // while (!done)
566 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
567 throw e.unwrapIOException();
568 } finally {
569 onChanged();
570 } // finally
571 return this;
572 }
573 private int bitField0_;
574
575 private double cost_ ;
584 @java.lang.Override
585 public boolean hasCost() {
586 return ((bitField0_ & 0x00000001) != 0);
587 }
588
596 @java.lang.Override
597 public double getCost() {
598 return cost_;
599 }
600
609 public Builder setCost(double value) {
610
611 cost_ = value;
612 bitField0_ |= 0x00000001;
613 onChanged();
614 return this;
615 }
616
624 public Builder clearCost() {
625 bitField0_ = (bitField0_ & ~0x00000001);
626 cost_ = 0D;
627 onChanged();
628 return this;
629 }
630
631 private com.google.protobuf.Internal.IntList element_ = emptyIntList();
632 private void ensureElementIsMutable() {
633 if (!element_.isModifiable()) {
634 element_ = makeMutableCopy(element_);
635 }
636 bitField0_ |= 0x00000002;
637 }
646 public java.util.List<java.lang.Integer>
648 element_.makeImmutable();
649 return element_;
650 }
651
659 public int getElementCount() {
660 return element_.size();
661 }
662
671 public int getElement(int index) {
672 return element_.getInt(index);
673 }
674
684 public Builder setElement(
685 int index, int value) {
686
687 ensureElementIsMutable();
688 element_.setInt(index, value);
689 bitField0_ |= 0x00000002;
690 onChanged();
691 return this;
692 }
693
702 public Builder addElement(int value) {
703
704 ensureElementIsMutable();
705 element_.addInt(value);
706 bitField0_ |= 0x00000002;
707 onChanged();
708 return this;
709 }
710
719 public Builder addAllElement(
720 java.lang.Iterable<? extends java.lang.Integer> values) {
721 ensureElementIsMutable();
722 com.google.protobuf.AbstractMessageLite.Builder.addAll(
723 values, element_);
724 bitField0_ |= 0x00000002;
725 onChanged();
726 return this;
727 }
728
736 public Builder clearElement() {
737 element_ = emptyIntList();
738 bitField0_ = (bitField0_ & ~0x00000002);
739 onChanged();
740 return this;
741 }
742
743 // @@protoc_insertion_point(builder_scope:operations_research.SetCoverProto.Subset)
744 }
745
746 // @@protoc_insertion_point(class_scope:operations_research.SetCoverProto.Subset)
747 private static final com.google.ortools.algorithms.SetCoverProto.Subset DEFAULT_INSTANCE;
748 static {
749 DEFAULT_INSTANCE = new com.google.ortools.algorithms.SetCoverProto.Subset();
750 }
751
753 return DEFAULT_INSTANCE;
754 }
755
756 private static final com.google.protobuf.Parser<Subset>
757 PARSER = new com.google.protobuf.AbstractParser<Subset>() {
758 @java.lang.Override
759 public Subset parsePartialFrom(
760 com.google.protobuf.CodedInputStream input,
761 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
762 throws com.google.protobuf.InvalidProtocolBufferException {
763 Builder builder = newBuilder();
764 try {
765 builder.mergeFrom(input, extensionRegistry);
766 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
767 throw e.setUnfinishedMessage(builder.buildPartial());
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)
772 .setUnfinishedMessage(builder.buildPartial());
773 }
774 return builder.buildPartial();
775 }
776 };
777
778 public static com.google.protobuf.Parser<Subset> parser() {
779 return PARSER;
780 }
781
782 @java.lang.Override
783 public com.google.protobuf.Parser<Subset> getParserForType() {
784 return PARSER;
785 }
786
787 @java.lang.Override
791
792 }
793
794 private int bitField0_;
795 public static final int SUBSET_FIELD_NUMBER = 1;
796 @SuppressWarnings("serial")
797 private java.util.List<com.google.ortools.algorithms.SetCoverProto.Subset> subset_;
805 @java.lang.Override
806 public java.util.List<com.google.ortools.algorithms.SetCoverProto.Subset> getSubsetList() {
807 return subset_;
808 }
809
816 @java.lang.Override
817 public java.util.List<? extends com.google.ortools.algorithms.SetCoverProto.SubsetOrBuilder>
819 return subset_;
820 }
821
828 @java.lang.Override
829 public int getSubsetCount() {
830 return subset_.size();
831 }
832
839 @java.lang.Override
841 return subset_.get(index);
842 }
843
850 @java.lang.Override
852 int index) {
853 return subset_.get(index);
854 }
855
856 public static final int NAME_FIELD_NUMBER = 2;
857 @SuppressWarnings("serial")
858 private volatile java.lang.Object name_ = "";
867 @java.lang.Override
868 public boolean hasName() {
869 return ((bitField0_ & 0x00000001) != 0);
870 }
871
879 @java.lang.Override
880 public java.lang.String getName() {
881 java.lang.Object ref = name_;
882 if (ref instanceof java.lang.String) {
883 return (java.lang.String) ref;
884 } else {
885 com.google.protobuf.ByteString bs =
886 (com.google.protobuf.ByteString) ref;
887 java.lang.String s = bs.toStringUtf8();
888 name_ = s;
889 return s;
890 }
891 }
892
900 @java.lang.Override
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);
908 name_ = b;
909 return b;
910 } else {
911 return (com.google.protobuf.ByteString) ref;
912 }
913 }
914
915 public static final int FINGERPRINT_FIELD_NUMBER = 3;
916 private com.google.ortools.util.Int128 fingerprint_;
925 @java.lang.Override
926 public boolean hasFingerprint() {
927 return ((bitField0_ & 0x00000002) != 0);
928 }
929
937 @java.lang.Override
939 return fingerprint_ == null ? com.google.ortools.util.Int128.getDefaultInstance() : fingerprint_;
940 }
941
948 @java.lang.Override
950 return fingerprint_ == null ? com.google.ortools.util.Int128.getDefaultInstance() : fingerprint_;
951 }
952
953 private byte memoizedIsInitialized = -1;
954 @java.lang.Override
955 public final boolean isInitialized() {
956 byte isInitialized = memoizedIsInitialized;
957 if (isInitialized == 1) return true;
958 if (isInitialized == 0) return false;
959
960 memoizedIsInitialized = 1;
961 return true;
962 }
963
964 @java.lang.Override
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));
969 }
970 if (((bitField0_ & 0x00000001) != 0)) {
971 com.google.protobuf.GeneratedMessage.writeString(output, 2, name_);
972 }
973 if (((bitField0_ & 0x00000002) != 0)) {
974 output.writeMessage(3, getFingerprint());
975 }
976 getUnknownFields().writeTo(output);
977 }
978
979 @java.lang.Override
980 public int getSerializedSize() {
981 int size = memoizedSize;
982 if (size != -1) return size;
983
984 size = 0;
985 for (int i = 0; i < subset_.size(); i++) {
986 size += com.google.protobuf.CodedOutputStream
987 .computeMessageSize(1, subset_.get(i));
988 }
989 if (((bitField0_ & 0x00000001) != 0)) {
990 size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_);
991 }
992 if (((bitField0_ & 0x00000002) != 0)) {
993 size += com.google.protobuf.CodedOutputStream
994 .computeMessageSize(3, getFingerprint());
995 }
996 size += getUnknownFields().getSerializedSize();
997 memoizedSize = size;
998 return size;
999 }
1000
1001 @java.lang.Override
1002 public boolean equals(final java.lang.Object obj) {
1003 if (obj == this) {
1004 return true;
1005 }
1006 if (!(obj instanceof com.google.ortools.algorithms.SetCoverProto)) {
1007 return super.equals(obj);
1008 }
1009 com.google.ortools.algorithms.SetCoverProto other = (com.google.ortools.algorithms.SetCoverProto) obj;
1010
1011 if (!getSubsetList()
1012 .equals(other.getSubsetList())) return false;
1013 if (hasName() != other.hasName()) return false;
1014 if (hasName()) {
1015 if (!getName()
1016 .equals(other.getName())) return false;
1017 }
1018 if (hasFingerprint() != other.hasFingerprint()) return false;
1019 if (hasFingerprint()) {
1020 if (!getFingerprint()
1021 .equals(other.getFingerprint())) return false;
1022 }
1023 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
1024 return true;
1025 }
1026
1027 @java.lang.Override
1028 public int hashCode() {
1029 if (memoizedHashCode != 0) {
1030 return memoizedHashCode;
1031 }
1032 int hash = 41;
1033 hash = (19 * hash) + getDescriptor().hashCode();
1034 if (getSubsetCount() > 0) {
1035 hash = (37 * hash) + SUBSET_FIELD_NUMBER;
1036 hash = (53 * hash) + getSubsetList().hashCode();
1037 }
1038 if (hasName()) {
1039 hash = (37 * hash) + NAME_FIELD_NUMBER;
1040 hash = (53 * hash) + getName().hashCode();
1041 }
1042 if (hasFingerprint()) {
1043 hash = (37 * hash) + FINGERPRINT_FIELD_NUMBER;
1044 hash = (53 * hash) + getFingerprint().hashCode();
1045 }
1046 hash = (29 * hash) + getUnknownFields().hashCode();
1047 memoizedHashCode = hash;
1048 return hash;
1049 }
1050
1052 java.nio.ByteBuffer data)
1053 throws com.google.protobuf.InvalidProtocolBufferException {
1054 return PARSER.parseFrom(data);
1055 }
1057 java.nio.ByteBuffer data,
1058 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1059 throws com.google.protobuf.InvalidProtocolBufferException {
1060 return PARSER.parseFrom(data, extensionRegistry);
1061 }
1063 com.google.protobuf.ByteString data)
1064 throws com.google.protobuf.InvalidProtocolBufferException {
1065 return PARSER.parseFrom(data);
1066 }
1068 com.google.protobuf.ByteString data,
1069 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1070 throws com.google.protobuf.InvalidProtocolBufferException {
1071 return PARSER.parseFrom(data, extensionRegistry);
1072 }
1074 throws com.google.protobuf.InvalidProtocolBufferException {
1075 return PARSER.parseFrom(data);
1076 }
1078 byte[] data,
1079 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1080 throws com.google.protobuf.InvalidProtocolBufferException {
1081 return PARSER.parseFrom(data, extensionRegistry);
1082 }
1083 public static com.google.ortools.algorithms.SetCoverProto parseFrom(java.io.InputStream input)
1084 throws java.io.IOException {
1085 return com.google.protobuf.GeneratedMessage
1086 .parseWithIOException(PARSER, input);
1087 }
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);
1094 }
1095
1097 throws java.io.IOException {
1098 return com.google.protobuf.GeneratedMessage
1099 .parseDelimitedWithIOException(PARSER, input);
1100 }
1101
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);
1108 }
1110 com.google.protobuf.CodedInputStream input)
1111 throws java.io.IOException {
1112 return com.google.protobuf.GeneratedMessage
1113 .parseWithIOException(PARSER, input);
1114 }
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);
1121 }
1122
1123 @java.lang.Override
1124 public Builder newBuilderForType() { return newBuilder(); }
1125 public static Builder newBuilder() {
1126 return DEFAULT_INSTANCE.toBuilder();
1127 }
1128 public static Builder newBuilder(com.google.ortools.algorithms.SetCoverProto prototype) {
1129 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1130 }
1131 @java.lang.Override
1133 return this == DEFAULT_INSTANCE
1134 ? new Builder() : new Builder().mergeFrom(this);
1135 }
1136
1137 @java.lang.Override
1139 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1140 Builder builder = new Builder(parent);
1141 return builder;
1142 }
1143
1151 public static final class Builder extends
1152 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
1153 // @@protoc_insertion_point(builder_implements:operations_research.SetCoverProto)
1155 public static final com.google.protobuf.Descriptors.Descriptor
1157 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_descriptor;
1158 }
1159
1160 @java.lang.Override
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);
1166 }
1167
1168 // Construct using com.google.ortools.algorithms.SetCoverProto.newBuilder()
1169 private Builder() {
1170 maybeForceBuilderInitialization();
1171 }
1172
1173 private Builder(
1174 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1175 super(parent);
1176 maybeForceBuilderInitialization();
1177 }
1178 private void maybeForceBuilderInitialization() {
1179 if (com.google.protobuf.GeneratedMessage
1180 .alwaysUseFieldBuilders) {
1181 getSubsetFieldBuilder();
1182 getFingerprintFieldBuilder();
1183 }
1184 }
1185 @java.lang.Override
1186 public Builder clear() {
1187 super.clear();
1188 bitField0_ = 0;
1189 if (subsetBuilder_ == null) {
1190 subset_ = java.util.Collections.emptyList();
1191 } else {
1192 subset_ = null;
1193 subsetBuilder_.clear();
1194 }
1195 bitField0_ = (bitField0_ & ~0x00000001);
1196 name_ = "";
1197 fingerprint_ = null;
1198 if (fingerprintBuilder_ != null) {
1199 fingerprintBuilder_.dispose();
1200 fingerprintBuilder_ = null;
1201 }
1202 return this;
1203 }
1204
1205 @java.lang.Override
1206 public com.google.protobuf.Descriptors.Descriptor
1208 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_descriptor;
1209 }
1210
1211 @java.lang.Override
1213 return com.google.ortools.algorithms.SetCoverProto.getDefaultInstance();
1214 }
1215
1216 @java.lang.Override
1219 if (!result.isInitialized()) {
1220 throw newUninitializedMessageException(result);
1221 }
1222 return result;
1223 }
1224
1225 @java.lang.Override
1227 com.google.ortools.algorithms.SetCoverProto result = new com.google.ortools.algorithms.SetCoverProto(this);
1228 buildPartialRepeatedFields(result);
1229 if (bitField0_ != 0) { buildPartial0(result); }
1230 onBuilt();
1231 return result;
1232 }
1233
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);
1239 }
1240 result.subset_ = subset_;
1241 } else {
1242 result.subset_ = subsetBuilder_.build();
1243 }
1244 }
1245
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;
1252 }
1253 if (((from_bitField0_ & 0x00000004) != 0)) {
1254 result.fingerprint_ = fingerprintBuilder_ == null
1255 ? fingerprint_
1256 : fingerprintBuilder_.build();
1257 to_bitField0_ |= 0x00000002;
1258 }
1259 result.bitField0_ |= to_bitField0_;
1260 }
1261
1262 @java.lang.Override
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);
1266 } else {
1267 super.mergeFrom(other);
1268 return this;
1269 }
1270 }
1271
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);
1279 } else {
1280 ensureSubsetIsMutable();
1281 subset_.addAll(other.subset_);
1282 }
1283 onChanged();
1284 }
1285 } else {
1286 if (!other.subset_.isEmpty()) {
1287 if (subsetBuilder_.isEmpty()) {
1288 subsetBuilder_.dispose();
1289 subsetBuilder_ = null;
1290 subset_ = other.subset_;
1291 bitField0_ = (bitField0_ & ~0x00000001);
1292 subsetBuilder_ =
1293 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
1294 getSubsetFieldBuilder() : null;
1295 } else {
1296 subsetBuilder_.addAllMessages(other.subset_);
1297 }
1298 }
1299 }
1300 if (other.hasName()) {
1301 name_ = other.name_;
1302 bitField0_ |= 0x00000002;
1303 onChanged();
1304 }
1305 if (other.hasFingerprint()) {
1306 mergeFingerprint(other.getFingerprint());
1307 }
1308 this.mergeUnknownFields(other.getUnknownFields());
1309 onChanged();
1310 return this;
1311 }
1312
1313 @java.lang.Override
1314 public final boolean isInitialized() {
1315 return true;
1316 }
1317
1318 @java.lang.Override
1319 public Builder mergeFrom(
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();
1325 }
1326 try {
1327 boolean done = false;
1328 while (!done) {
1329 int tag = input.readTag();
1330 switch (tag) {
1331 case 0:
1332 done = true;
1333 break;
1334 case 10: {
1336 input.readMessage(
1337 com.google.ortools.algorithms.SetCoverProto.Subset.parser(),
1338 extensionRegistry);
1339 if (subsetBuilder_ == null) {
1340 ensureSubsetIsMutable();
1341 subset_.add(m);
1342 } else {
1343 subsetBuilder_.addMessage(m);
1344 }
1345 break;
1346 } // case 10
1347 case 18: {
1348 name_ = input.readStringRequireUtf8();
1349 bitField0_ |= 0x00000002;
1350 break;
1351 } // case 18
1352 case 26: {
1353 input.readMessage(
1354 getFingerprintFieldBuilder().getBuilder(),
1355 extensionRegistry);
1356 bitField0_ |= 0x00000004;
1357 break;
1358 } // case 26
1359 default: {
1360 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1361 done = true; // was an endgroup tag
1362 }
1363 break;
1364 } // default:
1365 } // switch (tag)
1366 } // while (!done)
1367 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1368 throw e.unwrapIOException();
1369 } finally {
1370 onChanged();
1371 } // finally
1372 return this;
1373 }
1374 private int bitField0_;
1375
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;
1382 }
1383 }
1384
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_;
1387
1395 public java.util.List<com.google.ortools.algorithms.SetCoverProto.Subset> getSubsetList() {
1396 if (subsetBuilder_ == null) {
1397 return java.util.Collections.unmodifiableList(subset_);
1398 } else {
1399 return subsetBuilder_.getMessageList();
1400 }
1401 }
1402
1409 public int getSubsetCount() {
1410 if (subsetBuilder_ == null) {
1411 return subset_.size();
1412 } else {
1413 return subsetBuilder_.getCount();
1414 }
1415 }
1416
1424 if (subsetBuilder_ == null) {
1425 return subset_.get(index);
1426 } else {
1427 return subsetBuilder_.getMessage(index);
1428 }
1429 }
1430
1437 public Builder setSubset(
1438 int index, com.google.ortools.algorithms.SetCoverProto.Subset value) {
1439 if (subsetBuilder_ == null) {
1440 if (value == null) {
1441 throw new NullPointerException();
1442 }
1443 ensureSubsetIsMutable();
1444 subset_.set(index, value);
1445 onChanged();
1446 } else {
1447 subsetBuilder_.setMessage(index, value);
1448 }
1449 return this;
1450 }
1451
1458 public Builder setSubset(
1459 int index, com.google.ortools.algorithms.SetCoverProto.Subset.Builder builderForValue) {
1460 if (subsetBuilder_ == null) {
1461 ensureSubsetIsMutable();
1462 subset_.set(index, builderForValue.build());
1463 onChanged();
1464 } else {
1465 subsetBuilder_.setMessage(index, builderForValue.build());
1466 }
1467 return this;
1468 }
1469
1476 public Builder addSubset(com.google.ortools.algorithms.SetCoverProto.Subset value) {
1477 if (subsetBuilder_ == null) {
1478 if (value == null) {
1479 throw new NullPointerException();
1480 }
1481 ensureSubsetIsMutable();
1482 subset_.add(value);
1483 onChanged();
1484 } else {
1485 subsetBuilder_.addMessage(value);
1486 }
1487 return this;
1488 }
1489
1496 public Builder addSubset(
1497 int index, com.google.ortools.algorithms.SetCoverProto.Subset value) {
1498 if (subsetBuilder_ == null) {
1499 if (value == null) {
1500 throw new NullPointerException();
1501 }
1502 ensureSubsetIsMutable();
1503 subset_.add(index, value);
1504 onChanged();
1505 } else {
1506 subsetBuilder_.addMessage(index, value);
1507 }
1508 return this;
1509 }
1510
1517 public Builder addSubset(
1518 com.google.ortools.algorithms.SetCoverProto.Subset.Builder builderForValue) {
1519 if (subsetBuilder_ == null) {
1520 ensureSubsetIsMutable();
1521 subset_.add(builderForValue.build());
1522 onChanged();
1523 } else {
1524 subsetBuilder_.addMessage(builderForValue.build());
1525 }
1526 return this;
1527 }
1528
1535 public Builder addSubset(
1536 int index, com.google.ortools.algorithms.SetCoverProto.Subset.Builder builderForValue) {
1537 if (subsetBuilder_ == null) {
1538 ensureSubsetIsMutable();
1539 subset_.add(index, builderForValue.build());
1540 onChanged();
1541 } else {
1542 subsetBuilder_.addMessage(index, builderForValue.build());
1543 }
1544 return this;
1545 }
1546
1553 public Builder addAllSubset(
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(
1558 values, subset_);
1559 onChanged();
1560 } else {
1561 subsetBuilder_.addAllMessages(values);
1562 }
1563 return this;
1564 }
1565
1572 public Builder clearSubset() {
1573 if (subsetBuilder_ == null) {
1574 subset_ = java.util.Collections.emptyList();
1575 bitField0_ = (bitField0_ & ~0x00000001);
1576 onChanged();
1577 } else {
1578 subsetBuilder_.clear();
1579 }
1580 return this;
1581 }
1582
1589 public Builder removeSubset(int index) {
1590 if (subsetBuilder_ == null) {
1591 ensureSubsetIsMutable();
1592 subset_.remove(index);
1593 onChanged();
1594 } else {
1595 subsetBuilder_.remove(index);
1596 }
1597 return this;
1598 }
1599
1607 int index) {
1608 return getSubsetFieldBuilder().getBuilder(index);
1609 }
1610
1618 int index) {
1619 if (subsetBuilder_ == null) {
1620 return subset_.get(index); } else {
1621 return subsetBuilder_.getMessageOrBuilder(index);
1622 }
1623 }
1624
1631 public java.util.List<? extends com.google.ortools.algorithms.SetCoverProto.SubsetOrBuilder>
1633 if (subsetBuilder_ != null) {
1634 return subsetBuilder_.getMessageOrBuilderList();
1635 } else {
1636 return java.util.Collections.unmodifiableList(subset_);
1637 }
1638 }
1639
1647 return getSubsetFieldBuilder().addBuilder(
1648 com.google.ortools.algorithms.SetCoverProto.Subset.getDefaultInstance());
1649 }
1650
1658 int index) {
1659 return getSubsetFieldBuilder().addBuilder(
1660 index, com.google.ortools.algorithms.SetCoverProto.Subset.getDefaultInstance());
1661 }
1662
1669 public java.util.List<com.google.ortools.algorithms.SetCoverProto.Subset.Builder>
1671 return getSubsetFieldBuilder().getBuilderList();
1672 }
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>(
1679 subset_,
1680 ((bitField0_ & 0x00000001) != 0),
1681 getParentForChildren(),
1682 isClean());
1683 subset_ = null;
1684 }
1685 return subsetBuilder_;
1686 }
1687
1688 private java.lang.Object name_ = "";
1697 public boolean hasName() {
1698 return ((bitField0_ & 0x00000002) != 0);
1699 }
1700
1708 public java.lang.String getName() {
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();
1714 name_ = s;
1715 return s;
1716 } else {
1717 return (java.lang.String) ref;
1718 }
1719 }
1720
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);
1735 name_ = b;
1736 return b;
1737 } else {
1738 return (com.google.protobuf.ByteString) ref;
1739 }
1740 }
1741
1750 public Builder setName(
1751 java.lang.String value) {
1752 if (value == null) { throw new NullPointerException(); }
1753 name_ = value;
1754 bitField0_ |= 0x00000002;
1755 onChanged();
1756 return this;
1757 }
1758
1766 public Builder clearName() {
1767 name_ = getDefaultInstance().getName();
1768 bitField0_ = (bitField0_ & ~0x00000002);
1769 onChanged();
1770 return this;
1771 }
1772
1781 public Builder setNameBytes(
1782 com.google.protobuf.ByteString value) {
1783 if (value == null) { throw new NullPointerException(); }
1784 checkByteStringIsUtf8(value);
1785 name_ = value;
1786 bitField0_ |= 0x00000002;
1787 onChanged();
1788 return this;
1789 }
1790
1791 private com.google.ortools.util.Int128 fingerprint_;
1792 private com.google.protobuf.SingleFieldBuilder<
1793 com.google.ortools.util.Int128, com.google.ortools.util.Int128.Builder, com.google.ortools.util.Int128OrBuilder> fingerprintBuilder_;
1802 public boolean hasFingerprint() {
1803 return ((bitField0_ & 0x00000004) != 0);
1804 }
1805
1814 if (fingerprintBuilder_ == null) {
1815 return fingerprint_ == null ? com.google.ortools.util.Int128.getDefaultInstance() : fingerprint_;
1816 } else {
1817 return fingerprintBuilder_.getMessage();
1818 }
1819 }
1820
1827 public Builder setFingerprint(com.google.ortools.util.Int128 value) {
1828 if (fingerprintBuilder_ == null) {
1829 if (value == null) {
1830 throw new NullPointerException();
1831 }
1832 fingerprint_ = value;
1833 } else {
1834 fingerprintBuilder_.setMessage(value);
1835 }
1836 bitField0_ |= 0x00000004;
1837 onChanged();
1838 return this;
1839 }
1840
1847 public Builder setFingerprint(
1848 com.google.ortools.util.Int128.Builder builderForValue) {
1849 if (fingerprintBuilder_ == null) {
1850 fingerprint_ = builderForValue.build();
1851 } else {
1852 fingerprintBuilder_.setMessage(builderForValue.build());
1853 }
1854 bitField0_ |= 0x00000004;
1855 onChanged();
1856 return this;
1857 }
1858
1865 public Builder mergeFingerprint(com.google.ortools.util.Int128 value) {
1866 if (fingerprintBuilder_ == null) {
1867 if (((bitField0_ & 0x00000004) != 0) &&
1868 fingerprint_ != null &&
1869 fingerprint_ != com.google.ortools.util.Int128.getDefaultInstance()) {
1871 } else {
1872 fingerprint_ = value;
1873 }
1874 } else {
1875 fingerprintBuilder_.mergeFrom(value);
1876 }
1877 if (fingerprint_ != null) {
1878 bitField0_ |= 0x00000004;
1879 onChanged();
1880 }
1881 return this;
1882 }
1883
1890 public Builder clearFingerprint() {
1891 bitField0_ = (bitField0_ & ~0x00000004);
1892 fingerprint_ = null;
1893 if (fingerprintBuilder_ != null) {
1894 fingerprintBuilder_.dispose();
1895 fingerprintBuilder_ = null;
1896 }
1897 onChanged();
1898 return this;
1899 }
1900
1908 bitField0_ |= 0x00000004;
1909 onChanged();
1910 return getFingerprintFieldBuilder().getBuilder();
1911 }
1912
1920 if (fingerprintBuilder_ != null) {
1921 return fingerprintBuilder_.getMessageOrBuilder();
1922 } else {
1923 return fingerprint_ == null ?
1924 com.google.ortools.util.Int128.getDefaultInstance() : fingerprint_;
1925 }
1926 }
1927
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(),
1942 isClean());
1943 fingerprint_ = null;
1944 }
1945 return fingerprintBuilder_;
1946 }
1947
1948 // @@protoc_insertion_point(builder_scope:operations_research.SetCoverProto)
1949 }
1950
1951 // @@protoc_insertion_point(class_scope:operations_research.SetCoverProto)
1952 private static final com.google.ortools.algorithms.SetCoverProto DEFAULT_INSTANCE;
1953 static {
1954 DEFAULT_INSTANCE = new com.google.ortools.algorithms.SetCoverProto();
1955 }
1956
1958 return DEFAULT_INSTANCE;
1959 }
1960
1961 private static final com.google.protobuf.Parser<SetCoverProto>
1962 PARSER = new com.google.protobuf.AbstractParser<SetCoverProto>() {
1963 @java.lang.Override
1964 public SetCoverProto parsePartialFrom(
1965 com.google.protobuf.CodedInputStream input,
1966 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1967 throws com.google.protobuf.InvalidProtocolBufferException {
1968 Builder builder = newBuilder();
1969 try {
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());
1978 }
1979 return builder.buildPartial();
1980 }
1981 };
1982
1983 public static com.google.protobuf.Parser<SetCoverProto> parser() {
1984 return PARSER;
1985 }
1986
1987 @java.lang.Override
1988 public com.google.protobuf.Parser<SetCoverProto> getParserForType() {
1989 return PARSER;
1990 }
1991
1992 @java.lang.Override
1994 return DEFAULT_INSTANCE;
1995 }
1996
1997}
1998
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()