Google OR-Tools v9.9
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: 3.25.3
5package com.google.ortools.algorithms;
6
10public final class SetCoverProto extends
11 com.google.protobuf.GeneratedMessageV3 implements
12 // @@protoc_insertion_point(message_implements:operations_research.SetCoverProto)
14private static final long serialVersionUID = 0L;
15 // Use SetCoverProto.newBuilder() to construct.
16 private SetCoverProto(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
17 super(builder);
18 }
19 private SetCoverProto() {
20 subset_ = java.util.Collections.emptyList();
21 name_ = "";
22 }
23
24 @java.lang.Override
25 @SuppressWarnings({"unused"})
26 protected java.lang.Object newInstance(
27 UnusedPrivateParameter unused) {
28 return new SetCoverProto();
29 }
30
31 public static final com.google.protobuf.Descriptors.Descriptor
33 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_descriptor;
34 }
35
36 @java.lang.Override
37 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
39 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_fieldAccessorTable
40 .ensureFieldAccessorsInitialized(
41 com.google.ortools.algorithms.SetCoverProto.class, com.google.ortools.algorithms.SetCoverProto.Builder.class);
42 }
43
44 public interface SubsetOrBuilder extends
45 // @@protoc_insertion_point(interface_extends:operations_research.SetCoverProto.Subset)
46 com.google.protobuf.MessageOrBuilder {
47
56 boolean hasCost();
65 double getCost();
66
75 java.util.List<java.lang.Integer> getElementList();
94 int getElement(int index);
95 }
99 public static final class Subset extends
100 com.google.protobuf.GeneratedMessageV3 implements
101 // @@protoc_insertion_point(message_implements:operations_research.SetCoverProto.Subset)
103 private static final long serialVersionUID = 0L;
104 // Use Subset.newBuilder() to construct.
105 private Subset(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
106 super(builder);
107 }
108 private Subset() {
109 element_ = emptyIntList();
110 }
111
112 @java.lang.Override
113 @SuppressWarnings({"unused"})
114 protected java.lang.Object newInstance(
115 UnusedPrivateParameter unused) {
116 return new Subset();
117 }
118
119 public static final com.google.protobuf.Descriptors.Descriptor
121 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_Subset_descriptor;
122 }
123
124 @java.lang.Override
125 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
127 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_Subset_fieldAccessorTable
128 .ensureFieldAccessorsInitialized(
129 com.google.ortools.algorithms.SetCoverProto.Subset.class, com.google.ortools.algorithms.SetCoverProto.Subset.Builder.class);
130 }
131
132 private int bitField0_;
133 public static final int COST_FIELD_NUMBER = 1;
134 private double cost_ = 0D;
143 @java.lang.Override
144 public boolean hasCost() {
145 return ((bitField0_ & 0x00000001) != 0);
146 }
155 @java.lang.Override
156 public double getCost() {
157 return cost_;
158 }
159
160 public static final int ELEMENT_FIELD_NUMBER = 2;
161 @SuppressWarnings("serial")
162 private com.google.protobuf.Internal.IntList element_ =
163 emptyIntList();
172 @java.lang.Override
173 public java.util.List<java.lang.Integer>
175 return element_;
176 }
185 public int getElementCount() {
186 return element_.size();
187 }
197 public int getElement(int index) {
198 return element_.getInt(index);
199 }
200 private int elementMemoizedSerializedSize = -1;
201
202 private byte memoizedIsInitialized = -1;
203 @java.lang.Override
204 public final boolean isInitialized() {
205 byte isInitialized = memoizedIsInitialized;
206 if (isInitialized == 1) return true;
207 if (isInitialized == 0) return false;
208
209 memoizedIsInitialized = 1;
210 return true;
211 }
212
213 @java.lang.Override
214 public void writeTo(com.google.protobuf.CodedOutputStream output)
215 throws java.io.IOException {
217 if (((bitField0_ & 0x00000001) != 0)) {
218 output.writeDouble(1, cost_);
219 }
220 if (getElementList().size() > 0) {
221 output.writeUInt32NoTag(18);
222 output.writeUInt32NoTag(elementMemoizedSerializedSize);
223 }
224 for (int i = 0; i < element_.size(); i++) {
225 output.writeInt32NoTag(element_.getInt(i));
226 }
227 getUnknownFields().writeTo(output);
228 }
229
230 @java.lang.Override
231 public int getSerializedSize() {
232 int size = memoizedSize;
233 if (size != -1) return size;
234
235 size = 0;
236 if (((bitField0_ & 0x00000001) != 0)) {
237 size += com.google.protobuf.CodedOutputStream
238 .computeDoubleSize(1, cost_);
239 }
240 {
241 int dataSize = 0;
242 for (int i = 0; i < element_.size(); i++) {
243 dataSize += com.google.protobuf.CodedOutputStream
244 .computeInt32SizeNoTag(element_.getInt(i));
245 }
246 size += dataSize;
247 if (!getElementList().isEmpty()) {
248 size += 1;
249 size += com.google.protobuf.CodedOutputStream
250 .computeInt32SizeNoTag(dataSize);
251 }
252 elementMemoizedSerializedSize = dataSize;
253 }
254 size += getUnknownFields().getSerializedSize();
255 memoizedSize = size;
256 return size;
257 }
258
259 @java.lang.Override
260 public boolean equals(final java.lang.Object obj) {
261 if (obj == this) {
262 return true;
263 }
264 if (!(obj instanceof com.google.ortools.algorithms.SetCoverProto.Subset)) {
265 return super.equals(obj);
266 }
267 com.google.ortools.algorithms.SetCoverProto.Subset other = (com.google.ortools.algorithms.SetCoverProto.Subset) obj;
268
269 if (hasCost() != other.hasCost()) return false;
270 if (hasCost()) {
271 if (java.lang.Double.doubleToLongBits(getCost())
272 != java.lang.Double.doubleToLongBits(
273 other.getCost())) return false;
274 }
275 if (!getElementList()
276 .equals(other.getElementList())) return false;
277 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
278 return true;
279 }
280
281 @java.lang.Override
282 public int hashCode() {
283 if (memoizedHashCode != 0) {
284 return memoizedHashCode;
285 }
286 int hash = 41;
287 hash = (19 * hash) + getDescriptor().hashCode();
288 if (hasCost()) {
289 hash = (37 * hash) + COST_FIELD_NUMBER;
290 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
291 java.lang.Double.doubleToLongBits(getCost()));
292 }
293 if (getElementCount() > 0) {
294 hash = (37 * hash) + ELEMENT_FIELD_NUMBER;
295 hash = (53 * hash) + getElementList().hashCode();
296 }
297 hash = (29 * hash) + getUnknownFields().hashCode();
298 memoizedHashCode = hash;
299 return hash;
300 }
301
303 java.nio.ByteBuffer data)
304 throws com.google.protobuf.InvalidProtocolBufferException {
305 return PARSER.parseFrom(data);
306 }
308 java.nio.ByteBuffer data,
309 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
310 throws com.google.protobuf.InvalidProtocolBufferException {
311 return PARSER.parseFrom(data, extensionRegistry);
312 }
314 com.google.protobuf.ByteString data)
315 throws com.google.protobuf.InvalidProtocolBufferException {
316 return PARSER.parseFrom(data);
317 }
319 com.google.protobuf.ByteString data,
320 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
321 throws com.google.protobuf.InvalidProtocolBufferException {
322 return PARSER.parseFrom(data, extensionRegistry);
323 }
325 throws com.google.protobuf.InvalidProtocolBufferException {
326 return PARSER.parseFrom(data);
327 }
329 byte[] data,
330 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
331 throws com.google.protobuf.InvalidProtocolBufferException {
332 return PARSER.parseFrom(data, extensionRegistry);
333 }
334 public static com.google.ortools.algorithms.SetCoverProto.Subset parseFrom(java.io.InputStream input)
335 throws java.io.IOException {
336 return com.google.protobuf.GeneratedMessageV3
337 .parseWithIOException(PARSER, input);
338 }
340 java.io.InputStream input,
341 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
342 throws java.io.IOException {
343 return com.google.protobuf.GeneratedMessageV3
344 .parseWithIOException(PARSER, input, extensionRegistry);
345 }
346
348 throws java.io.IOException {
349 return com.google.protobuf.GeneratedMessageV3
350 .parseDelimitedWithIOException(PARSER, input);
351 }
352
354 java.io.InputStream input,
355 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
356 throws java.io.IOException {
357 return com.google.protobuf.GeneratedMessageV3
358 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
359 }
361 com.google.protobuf.CodedInputStream input)
362 throws java.io.IOException {
363 return com.google.protobuf.GeneratedMessageV3
364 .parseWithIOException(PARSER, input);
365 }
367 com.google.protobuf.CodedInputStream input,
368 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
369 throws java.io.IOException {
370 return com.google.protobuf.GeneratedMessageV3
371 .parseWithIOException(PARSER, input, extensionRegistry);
372 }
373
374 @java.lang.Override
375 public Builder newBuilderForType() { return newBuilder(); }
376 public static Builder newBuilder() {
377 return DEFAULT_INSTANCE.toBuilder();
378 }
379 public static Builder newBuilder(com.google.ortools.algorithms.SetCoverProto.Subset prototype) {
380 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
381 }
382 @java.lang.Override
384 return this == DEFAULT_INSTANCE
385 ? new Builder() : new Builder().mergeFrom(this);
386 }
387
388 @java.lang.Override
390 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
391 Builder builder = new Builder(parent);
392 return builder;
393 }
397 public static final class Builder extends
398 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
399 // @@protoc_insertion_point(builder_implements:operations_research.SetCoverProto.Subset)
400 com.google.ortools.algorithms.SetCoverProto.SubsetOrBuilder {
401 public static final com.google.protobuf.Descriptors.Descriptor
403 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_Subset_descriptor;
404 }
405
406 @java.lang.Override
407 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
409 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_Subset_fieldAccessorTable
410 .ensureFieldAccessorsInitialized(
411 com.google.ortools.algorithms.SetCoverProto.Subset.class, com.google.ortools.algorithms.SetCoverProto.Subset.Builder.class);
412 }
413
414 // Construct using com.google.ortools.algorithms.SetCoverProto.Subset.newBuilder()
415 private Builder() {
416
417 }
418
419 private Builder(
420 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
421 super(parent);
422
423 }
424 @java.lang.Override
425 public Builder clear() {
426 super.clear();
427 bitField0_ = 0;
428 cost_ = 0D;
429 element_ = emptyIntList();
430 return this;
431 }
432
433 @java.lang.Override
434 public com.google.protobuf.Descriptors.Descriptor
436 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_Subset_descriptor;
437 }
438
439 @java.lang.Override
441 return com.google.ortools.algorithms.SetCoverProto.Subset.getDefaultInstance();
442 }
443
444 @java.lang.Override
447 if (!result.isInitialized()) {
448 throw newUninitializedMessageException(result);
449 }
450 return result;
451 }
452
453 @java.lang.Override
455 com.google.ortools.algorithms.SetCoverProto.Subset result = new com.google.ortools.algorithms.SetCoverProto.Subset(this);
456 if (bitField0_ != 0) { buildPartial0(result); }
457 onBuilt();
458 return result;
459 }
460
461 private void buildPartial0(com.google.ortools.algorithms.SetCoverProto.Subset result) {
462 int from_bitField0_ = bitField0_;
463 int to_bitField0_ = 0;
464 if (((from_bitField0_ & 0x00000001) != 0)) {
465 result.cost_ = cost_;
466 to_bitField0_ |= 0x00000001;
467 }
468 if (((from_bitField0_ & 0x00000002) != 0)) {
469 element_.makeImmutable();
470 result.element_ = element_;
471 }
472 result.bitField0_ |= to_bitField0_;
473 }
474
475 @java.lang.Override
476 public Builder clone() {
477 return super.clone();
478 }
479 @java.lang.Override
481 com.google.protobuf.Descriptors.FieldDescriptor field,
482 java.lang.Object value) {
483 return super.setField(field, value);
484 }
485 @java.lang.Override
487 com.google.protobuf.Descriptors.FieldDescriptor field) {
488 return super.clearField(field);
489 }
490 @java.lang.Override
492 com.google.protobuf.Descriptors.OneofDescriptor oneof) {
493 return super.clearOneof(oneof);
494 }
495 @java.lang.Override
497 com.google.protobuf.Descriptors.FieldDescriptor field,
498 int index, java.lang.Object value) {
499 return super.setRepeatedField(field, index, value);
500 }
501 @java.lang.Override
503 com.google.protobuf.Descriptors.FieldDescriptor field,
504 java.lang.Object value) {
505 return super.addRepeatedField(field, value);
506 }
507 @java.lang.Override
508 public Builder mergeFrom(com.google.protobuf.Message other) {
509 if (other instanceof com.google.ortools.algorithms.SetCoverProto.Subset) {
510 return mergeFrom((com.google.ortools.algorithms.SetCoverProto.Subset)other);
511 } else {
512 super.mergeFrom(other);
513 return this;
514 }
515 }
516
517 public Builder mergeFrom(com.google.ortools.algorithms.SetCoverProto.Subset other) {
518 if (other == com.google.ortools.algorithms.SetCoverProto.Subset.getDefaultInstance()) return this;
519 if (other.hasCost()) {
520 setCost(other.getCost());
521 }
522 if (!other.element_.isEmpty()) {
523 if (element_.isEmpty()) {
524 element_ = other.element_;
525 element_.makeImmutable();
526 bitField0_ |= 0x00000002;
527 } else {
528 ensureElementIsMutable();
529 element_.addAll(other.element_);
530 }
531 onChanged();
532 }
533 this.mergeUnknownFields(other.getUnknownFields());
534 onChanged();
535 return this;
536 }
537
538 @java.lang.Override
539 public final boolean isInitialized() {
540 return true;
541 }
542
543 @java.lang.Override
545 com.google.protobuf.CodedInputStream input,
546 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
547 throws java.io.IOException {
548 if (extensionRegistry == null) {
549 throw new java.lang.NullPointerException();
550 }
551 try {
552 boolean done = false;
553 while (!done) {
554 int tag = input.readTag();
555 switch (tag) {
556 case 0:
557 done = true;
558 break;
559 case 9: {
560 cost_ = input.readDouble();
561 bitField0_ |= 0x00000001;
562 break;
563 } // case 9
564 case 16: {
565 int v = input.readInt32();
566 ensureElementIsMutable();
567 element_.addInt(v);
568 break;
569 } // case 16
570 case 18: {
571 int length = input.readRawVarint32();
572 int limit = input.pushLimit(length);
573 ensureElementIsMutable();
574 while (input.getBytesUntilLimit() > 0) {
575 element_.addInt(input.readInt32());
576 }
577 input.popLimit(limit);
578 break;
579 } // case 18
580 default: {
581 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
582 done = true; // was an endgroup tag
583 }
584 break;
585 } // default:
586 } // switch (tag)
587 } // while (!done)
588 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
589 throw e.unwrapIOException();
590 } finally {
591 onChanged();
592 } // finally
593 return this;
594 }
595 private int bitField0_;
596
597 private double cost_ ;
606 @java.lang.Override
607 public boolean hasCost() {
608 return ((bitField0_ & 0x00000001) != 0);
609 }
618 @java.lang.Override
619 public double getCost() {
620 return cost_;
621 }
631 public Builder setCost(double value) {
632
633 cost_ = value;
634 bitField0_ |= 0x00000001;
635 onChanged();
636 return this;
637 }
647 bitField0_ = (bitField0_ & ~0x00000001);
648 cost_ = 0D;
649 onChanged();
650 return this;
651 }
652
653 private com.google.protobuf.Internal.IntList element_ = emptyIntList();
654 private void ensureElementIsMutable() {
655 if (!element_.isModifiable()) {
656 element_ = makeMutableCopy(element_);
657 }
658 bitField0_ |= 0x00000002;
659 }
668 public java.util.List<java.lang.Integer>
670 element_.makeImmutable();
671 return element_;
672 }
681 public int getElementCount() {
682 return element_.size();
683 }
693 public int getElement(int index) {
694 return element_.getInt(index);
695 }
707 int index, int value) {
708
709 ensureElementIsMutable();
710 element_.setInt(index, value);
711 bitField0_ |= 0x00000002;
712 onChanged();
713 return this;
714 }
724 public Builder addElement(int value) {
725
726 ensureElementIsMutable();
727 element_.addInt(value);
728 bitField0_ |= 0x00000002;
729 onChanged();
730 return this;
731 }
742 java.lang.Iterable<? extends java.lang.Integer> values) {
743 ensureElementIsMutable();
744 com.google.protobuf.AbstractMessageLite.Builder.addAll(
745 values, element_);
746 bitField0_ |= 0x00000002;
747 onChanged();
748 return this;
749 }
759 element_ = emptyIntList();
760 bitField0_ = (bitField0_ & ~0x00000002);
761 onChanged();
762 return this;
763 }
764 @java.lang.Override
766 final com.google.protobuf.UnknownFieldSet unknownFields) {
767 return super.setUnknownFields(unknownFields);
768 }
769
770 @java.lang.Override
772 final com.google.protobuf.UnknownFieldSet unknownFields) {
773 return super.mergeUnknownFields(unknownFields);
774 }
775
776
777 // @@protoc_insertion_point(builder_scope:operations_research.SetCoverProto.Subset)
778 }
779
780 // @@protoc_insertion_point(class_scope:operations_research.SetCoverProto.Subset)
781 private static final com.google.ortools.algorithms.SetCoverProto.Subset DEFAULT_INSTANCE;
782 static {
783 DEFAULT_INSTANCE = new com.google.ortools.algorithms.SetCoverProto.Subset();
784 }
785
787 return DEFAULT_INSTANCE;
788 }
789
790 private static final com.google.protobuf.Parser<Subset>
791 PARSER = new com.google.protobuf.AbstractParser<Subset>() {
792 @java.lang.Override
793 public Subset parsePartialFrom(
794 com.google.protobuf.CodedInputStream input,
795 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
796 throws com.google.protobuf.InvalidProtocolBufferException {
797 Builder builder = newBuilder();
798 try {
799 builder.mergeFrom(input, extensionRegistry);
800 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
801 throw e.setUnfinishedMessage(builder.buildPartial());
802 } catch (com.google.protobuf.UninitializedMessageException e) {
803 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
804 } catch (java.io.IOException e) {
805 throw new com.google.protobuf.InvalidProtocolBufferException(e)
806 .setUnfinishedMessage(builder.buildPartial());
807 }
808 return builder.buildPartial();
809 }
810 };
811
812 public static com.google.protobuf.Parser<Subset> parser() {
813 return PARSER;
814 }
815
816 @java.lang.Override
817 public com.google.protobuf.Parser<Subset> getParserForType() {
818 return PARSER;
819 }
820
821 @java.lang.Override
825
826 }
827
828 private int bitField0_;
829 public static final int SUBSET_FIELD_NUMBER = 1;
830 @SuppressWarnings("serial")
831 private java.util.List<com.google.ortools.algorithms.SetCoverProto.Subset> subset_;
839 @java.lang.Override
840 public java.util.List<com.google.ortools.algorithms.SetCoverProto.Subset> getSubsetList() {
841 return subset_;
842 }
850 @java.lang.Override
851 public java.util.List<? extends com.google.ortools.algorithms.SetCoverProto.SubsetOrBuilder>
853 return subset_;
854 }
862 @java.lang.Override
863 public int getSubsetCount() {
864 return subset_.size();
865 }
873 @java.lang.Override
875 return subset_.get(index);
876 }
884 @java.lang.Override
886 int index) {
887 return subset_.get(index);
888 }
889
890 public static final int NAME_FIELD_NUMBER = 2;
891 @SuppressWarnings("serial")
892 private volatile java.lang.Object name_ = "";
901 @java.lang.Override
902 public boolean hasName() {
903 return ((bitField0_ & 0x00000001) != 0);
904 }
913 @java.lang.Override
914 public java.lang.String getName() {
915 java.lang.Object ref = name_;
916 if (ref instanceof java.lang.String) {
917 return (java.lang.String) ref;
918 } else {
919 com.google.protobuf.ByteString bs =
920 (com.google.protobuf.ByteString) ref;
921 java.lang.String s = bs.toStringUtf8();
922 name_ = s;
923 return s;
924 }
925 }
934 @java.lang.Override
935 public com.google.protobuf.ByteString
937 java.lang.Object ref = name_;
938 if (ref instanceof java.lang.String) {
939 com.google.protobuf.ByteString b =
940 com.google.protobuf.ByteString.copyFromUtf8(
941 (java.lang.String) ref);
942 name_ = b;
943 return b;
944 } else {
945 return (com.google.protobuf.ByteString) ref;
946 }
947 }
948
949 public static final int FINGERPRINT_FIELD_NUMBER = 3;
950 private com.google.ortools.util.Int128 fingerprint_;
959 @java.lang.Override
960 public boolean hasFingerprint() {
961 return ((bitField0_ & 0x00000002) != 0);
962 }
971 @java.lang.Override
973 return fingerprint_ == null ? com.google.ortools.util.Int128.getDefaultInstance() : fingerprint_;
974 }
982 @java.lang.Override
984 return fingerprint_ == null ? com.google.ortools.util.Int128.getDefaultInstance() : fingerprint_;
985 }
986
987 private byte memoizedIsInitialized = -1;
988 @java.lang.Override
989 public final boolean isInitialized() {
990 byte isInitialized = memoizedIsInitialized;
991 if (isInitialized == 1) return true;
992 if (isInitialized == 0) return false;
993
994 memoizedIsInitialized = 1;
995 return true;
996 }
997
998 @java.lang.Override
999 public void writeTo(com.google.protobuf.CodedOutputStream output)
1000 throws java.io.IOException {
1001 for (int i = 0; i < subset_.size(); i++) {
1002 output.writeMessage(1, subset_.get(i));
1003 }
1004 if (((bitField0_ & 0x00000001) != 0)) {
1005 com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
1006 }
1007 if (((bitField0_ & 0x00000002) != 0)) {
1008 output.writeMessage(3, getFingerprint());
1009 }
1010 getUnknownFields().writeTo(output);
1011 }
1012
1013 @java.lang.Override
1014 public int getSerializedSize() {
1015 int size = memoizedSize;
1016 if (size != -1) return size;
1017
1018 size = 0;
1019 for (int i = 0; i < subset_.size(); i++) {
1020 size += com.google.protobuf.CodedOutputStream
1021 .computeMessageSize(1, subset_.get(i));
1022 }
1023 if (((bitField0_ & 0x00000001) != 0)) {
1024 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
1025 }
1026 if (((bitField0_ & 0x00000002) != 0)) {
1027 size += com.google.protobuf.CodedOutputStream
1028 .computeMessageSize(3, getFingerprint());
1029 }
1030 size += getUnknownFields().getSerializedSize();
1031 memoizedSize = size;
1032 return size;
1033 }
1034
1035 @java.lang.Override
1036 public boolean equals(final java.lang.Object obj) {
1037 if (obj == this) {
1038 return true;
1039 }
1040 if (!(obj instanceof com.google.ortools.algorithms.SetCoverProto)) {
1041 return super.equals(obj);
1042 }
1043 com.google.ortools.algorithms.SetCoverProto other = (com.google.ortools.algorithms.SetCoverProto) obj;
1044
1045 if (!getSubsetList()
1046 .equals(other.getSubsetList())) return false;
1047 if (hasName() != other.hasName()) return false;
1048 if (hasName()) {
1049 if (!getName()
1050 .equals(other.getName())) return false;
1051 }
1052 if (hasFingerprint() != other.hasFingerprint()) return false;
1053 if (hasFingerprint()) {
1054 if (!getFingerprint()
1055 .equals(other.getFingerprint())) return false;
1056 }
1057 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
1058 return true;
1059 }
1060
1061 @java.lang.Override
1062 public int hashCode() {
1063 if (memoizedHashCode != 0) {
1064 return memoizedHashCode;
1065 }
1066 int hash = 41;
1067 hash = (19 * hash) + getDescriptor().hashCode();
1068 if (getSubsetCount() > 0) {
1069 hash = (37 * hash) + SUBSET_FIELD_NUMBER;
1070 hash = (53 * hash) + getSubsetList().hashCode();
1071 }
1072 if (hasName()) {
1073 hash = (37 * hash) + NAME_FIELD_NUMBER;
1074 hash = (53 * hash) + getName().hashCode();
1075 }
1076 if (hasFingerprint()) {
1077 hash = (37 * hash) + FINGERPRINT_FIELD_NUMBER;
1078 hash = (53 * hash) + getFingerprint().hashCode();
1079 }
1080 hash = (29 * hash) + getUnknownFields().hashCode();
1081 memoizedHashCode = hash;
1082 return hash;
1083 }
1084
1086 java.nio.ByteBuffer data)
1087 throws com.google.protobuf.InvalidProtocolBufferException {
1088 return PARSER.parseFrom(data);
1089 }
1091 java.nio.ByteBuffer data,
1092 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1093 throws com.google.protobuf.InvalidProtocolBufferException {
1094 return PARSER.parseFrom(data, extensionRegistry);
1095 }
1097 com.google.protobuf.ByteString data)
1098 throws com.google.protobuf.InvalidProtocolBufferException {
1099 return PARSER.parseFrom(data);
1100 }
1102 com.google.protobuf.ByteString data,
1103 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1104 throws com.google.protobuf.InvalidProtocolBufferException {
1105 return PARSER.parseFrom(data, extensionRegistry);
1106 }
1108 throws com.google.protobuf.InvalidProtocolBufferException {
1109 return PARSER.parseFrom(data);
1110 }
1112 byte[] data,
1113 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1114 throws com.google.protobuf.InvalidProtocolBufferException {
1115 return PARSER.parseFrom(data, extensionRegistry);
1116 }
1117 public static com.google.ortools.algorithms.SetCoverProto parseFrom(java.io.InputStream input)
1118 throws java.io.IOException {
1119 return com.google.protobuf.GeneratedMessageV3
1120 .parseWithIOException(PARSER, input);
1121 }
1123 java.io.InputStream input,
1124 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1125 throws java.io.IOException {
1126 return com.google.protobuf.GeneratedMessageV3
1127 .parseWithIOException(PARSER, input, extensionRegistry);
1128 }
1129
1131 throws java.io.IOException {
1132 return com.google.protobuf.GeneratedMessageV3
1133 .parseDelimitedWithIOException(PARSER, input);
1134 }
1135
1137 java.io.InputStream input,
1138 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1139 throws java.io.IOException {
1140 return com.google.protobuf.GeneratedMessageV3
1141 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
1142 }
1144 com.google.protobuf.CodedInputStream input)
1145 throws java.io.IOException {
1146 return com.google.protobuf.GeneratedMessageV3
1147 .parseWithIOException(PARSER, input);
1148 }
1150 com.google.protobuf.CodedInputStream input,
1151 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1152 throws java.io.IOException {
1153 return com.google.protobuf.GeneratedMessageV3
1154 .parseWithIOException(PARSER, input, extensionRegistry);
1155 }
1156
1157 @java.lang.Override
1158 public Builder newBuilderForType() { return newBuilder(); }
1159 public static Builder newBuilder() {
1160 return DEFAULT_INSTANCE.toBuilder();
1161 }
1162 public static Builder newBuilder(com.google.ortools.algorithms.SetCoverProto prototype) {
1163 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1164 }
1165 @java.lang.Override
1167 return this == DEFAULT_INSTANCE
1168 ? new Builder() : new Builder().mergeFrom(this);
1169 }
1170
1171 @java.lang.Override
1173 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1174 Builder builder = new Builder(parent);
1175 return builder;
1176 }
1180 public static final class Builder extends
1181 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
1182 // @@protoc_insertion_point(builder_implements:operations_research.SetCoverProto)
1183 com.google.ortools.algorithms.SetCoverProtoOrBuilder {
1184 public static final com.google.protobuf.Descriptors.Descriptor
1186 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_descriptor;
1187 }
1188
1189 @java.lang.Override
1190 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
1192 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_fieldAccessorTable
1193 .ensureFieldAccessorsInitialized(
1194 com.google.ortools.algorithms.SetCoverProto.class, com.google.ortools.algorithms.SetCoverProto.Builder.class);
1195 }
1196
1197 // Construct using com.google.ortools.algorithms.SetCoverProto.newBuilder()
1198 private Builder() {
1199 maybeForceBuilderInitialization();
1200 }
1201
1202 private Builder(
1203 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1204 super(parent);
1205 maybeForceBuilderInitialization();
1206 }
1207 private void maybeForceBuilderInitialization() {
1208 if (com.google.protobuf.GeneratedMessageV3
1209 .alwaysUseFieldBuilders) {
1210 getSubsetFieldBuilder();
1211 getFingerprintFieldBuilder();
1212 }
1213 }
1214 @java.lang.Override
1215 public Builder clear() {
1216 super.clear();
1217 bitField0_ = 0;
1218 if (subsetBuilder_ == null) {
1219 subset_ = java.util.Collections.emptyList();
1220 } else {
1221 subset_ = null;
1222 subsetBuilder_.clear();
1223 }
1224 bitField0_ = (bitField0_ & ~0x00000001);
1225 name_ = "";
1226 fingerprint_ = null;
1227 if (fingerprintBuilder_ != null) {
1228 fingerprintBuilder_.dispose();
1229 fingerprintBuilder_ = null;
1230 }
1231 return this;
1232 }
1233
1234 @java.lang.Override
1235 public com.google.protobuf.Descriptors.Descriptor
1237 return com.google.ortools.algorithms.SetCover.internal_static_operations_research_SetCoverProto_descriptor;
1238 }
1239
1240 @java.lang.Override
1242 return com.google.ortools.algorithms.SetCoverProto.getDefaultInstance();
1243 }
1244
1245 @java.lang.Override
1248 if (!result.isInitialized()) {
1249 throw newUninitializedMessageException(result);
1250 }
1251 return result;
1252 }
1253
1254 @java.lang.Override
1256 com.google.ortools.algorithms.SetCoverProto result = new com.google.ortools.algorithms.SetCoverProto(this);
1257 buildPartialRepeatedFields(result);
1258 if (bitField0_ != 0) { buildPartial0(result); }
1259 onBuilt();
1260 return result;
1261 }
1262
1263 private void buildPartialRepeatedFields(com.google.ortools.algorithms.SetCoverProto result) {
1264 if (subsetBuilder_ == null) {
1265 if (((bitField0_ & 0x00000001) != 0)) {
1266 subset_ = java.util.Collections.unmodifiableList(subset_);
1267 bitField0_ = (bitField0_ & ~0x00000001);
1268 }
1269 result.subset_ = subset_;
1270 } else {
1271 result.subset_ = subsetBuilder_.build();
1272 }
1273 }
1274
1275 private void buildPartial0(com.google.ortools.algorithms.SetCoverProto result) {
1276 int from_bitField0_ = bitField0_;
1277 int to_bitField0_ = 0;
1278 if (((from_bitField0_ & 0x00000002) != 0)) {
1279 result.name_ = name_;
1280 to_bitField0_ |= 0x00000001;
1281 }
1282 if (((from_bitField0_ & 0x00000004) != 0)) {
1283 result.fingerprint_ = fingerprintBuilder_ == null
1284 ? fingerprint_
1285 : fingerprintBuilder_.build();
1286 to_bitField0_ |= 0x00000002;
1287 }
1288 result.bitField0_ |= to_bitField0_;
1289 }
1290
1291 @java.lang.Override
1292 public Builder clone() {
1293 return super.clone();
1294 }
1295 @java.lang.Override
1297 com.google.protobuf.Descriptors.FieldDescriptor field,
1298 java.lang.Object value) {
1299 return super.setField(field, value);
1300 }
1301 @java.lang.Override
1303 com.google.protobuf.Descriptors.FieldDescriptor field) {
1304 return super.clearField(field);
1305 }
1306 @java.lang.Override
1308 com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1309 return super.clearOneof(oneof);
1310 }
1311 @java.lang.Override
1313 com.google.protobuf.Descriptors.FieldDescriptor field,
1314 int index, java.lang.Object value) {
1315 return super.setRepeatedField(field, index, value);
1316 }
1317 @java.lang.Override
1319 com.google.protobuf.Descriptors.FieldDescriptor field,
1320 java.lang.Object value) {
1321 return super.addRepeatedField(field, value);
1322 }
1323 @java.lang.Override
1324 public Builder mergeFrom(com.google.protobuf.Message other) {
1325 if (other instanceof com.google.ortools.algorithms.SetCoverProto) {
1326 return mergeFrom((com.google.ortools.algorithms.SetCoverProto)other);
1327 } else {
1328 super.mergeFrom(other);
1329 return this;
1330 }
1331 }
1332
1333 public Builder mergeFrom(com.google.ortools.algorithms.SetCoverProto other) {
1334 if (other == com.google.ortools.algorithms.SetCoverProto.getDefaultInstance()) return this;
1335 if (subsetBuilder_ == null) {
1336 if (!other.subset_.isEmpty()) {
1337 if (subset_.isEmpty()) {
1338 subset_ = other.subset_;
1339 bitField0_ = (bitField0_ & ~0x00000001);
1340 } else {
1341 ensureSubsetIsMutable();
1342 subset_.addAll(other.subset_);
1343 }
1344 onChanged();
1345 }
1346 } else {
1347 if (!other.subset_.isEmpty()) {
1348 if (subsetBuilder_.isEmpty()) {
1349 subsetBuilder_.dispose();
1350 subsetBuilder_ = null;
1351 subset_ = other.subset_;
1352 bitField0_ = (bitField0_ & ~0x00000001);
1353 subsetBuilder_ =
1354 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
1355 getSubsetFieldBuilder() : null;
1356 } else {
1357 subsetBuilder_.addAllMessages(other.subset_);
1358 }
1359 }
1360 }
1361 if (other.hasName()) {
1362 name_ = other.name_;
1363 bitField0_ |= 0x00000002;
1364 onChanged();
1365 }
1366 if (other.hasFingerprint()) {
1367 mergeFingerprint(other.getFingerprint());
1368 }
1369 this.mergeUnknownFields(other.getUnknownFields());
1370 onChanged();
1371 return this;
1372 }
1373
1374 @java.lang.Override
1375 public final boolean isInitialized() {
1376 return true;
1377 }
1378
1379 @java.lang.Override
1381 com.google.protobuf.CodedInputStream input,
1382 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1383 throws java.io.IOException {
1384 if (extensionRegistry == null) {
1385 throw new java.lang.NullPointerException();
1386 }
1387 try {
1388 boolean done = false;
1389 while (!done) {
1390 int tag = input.readTag();
1391 switch (tag) {
1392 case 0:
1393 done = true;
1394 break;
1395 case 10: {
1397 input.readMessage(
1398 com.google.ortools.algorithms.SetCoverProto.Subset.parser(),
1399 extensionRegistry);
1400 if (subsetBuilder_ == null) {
1401 ensureSubsetIsMutable();
1402 subset_.add(m);
1403 } else {
1404 subsetBuilder_.addMessage(m);
1405 }
1406 break;
1407 } // case 10
1408 case 18: {
1409 name_ = input.readStringRequireUtf8();
1410 bitField0_ |= 0x00000002;
1411 break;
1412 } // case 18
1413 case 26: {
1414 input.readMessage(
1415 getFingerprintFieldBuilder().getBuilder(),
1416 extensionRegistry);
1417 bitField0_ |= 0x00000004;
1418 break;
1419 } // case 26
1420 default: {
1421 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1422 done = true; // was an endgroup tag
1423 }
1424 break;
1425 } // default:
1426 } // switch (tag)
1427 } // while (!done)
1428 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1429 throw e.unwrapIOException();
1430 } finally {
1431 onChanged();
1432 } // finally
1433 return this;
1434 }
1435 private int bitField0_;
1436
1437 private java.util.List<com.google.ortools.algorithms.SetCoverProto.Subset> subset_ =
1438 java.util.Collections.emptyList();
1439 private void ensureSubsetIsMutable() {
1440 if (!((bitField0_ & 0x00000001) != 0)) {
1441 subset_ = new java.util.ArrayList<com.google.ortools.algorithms.SetCoverProto.Subset>(subset_);
1442 bitField0_ |= 0x00000001;
1443 }
1444 }
1445
1446 private com.google.protobuf.RepeatedFieldBuilderV3<
1447 com.google.ortools.algorithms.SetCoverProto.Subset, com.google.ortools.algorithms.SetCoverProto.Subset.Builder, com.google.ortools.algorithms.SetCoverProto.SubsetOrBuilder> subsetBuilder_;
1448
1456 public java.util.List<com.google.ortools.algorithms.SetCoverProto.Subset> getSubsetList() {
1457 if (subsetBuilder_ == null) {
1458 return java.util.Collections.unmodifiableList(subset_);
1459 } else {
1460 return subsetBuilder_.getMessageList();
1461 }
1462 }
1470 public int getSubsetCount() {
1471 if (subsetBuilder_ == null) {
1472 return subset_.size();
1473 } else {
1474 return subsetBuilder_.getCount();
1475 }
1476 }
1485 if (subsetBuilder_ == null) {
1486 return subset_.get(index);
1487 } else {
1488 return subsetBuilder_.getMessage(index);
1489 }
1490 }
1499 int index, com.google.ortools.algorithms.SetCoverProto.Subset value) {
1500 if (subsetBuilder_ == null) {
1501 if (value == null) {
1502 throw new NullPointerException();
1503 }
1504 ensureSubsetIsMutable();
1505 subset_.set(index, value);
1506 onChanged();
1507 } else {
1508 subsetBuilder_.setMessage(index, value);
1509 }
1510 return this;
1511 }
1520 int index, com.google.ortools.algorithms.SetCoverProto.Subset.Builder builderForValue) {
1521 if (subsetBuilder_ == null) {
1522 ensureSubsetIsMutable();
1523 subset_.set(index, builderForValue.build());
1524 onChanged();
1525 } else {
1526 subsetBuilder_.setMessage(index, builderForValue.build());
1527 }
1528 return this;
1529 }
1537 public Builder addSubset(com.google.ortools.algorithms.SetCoverProto.Subset value) {
1538 if (subsetBuilder_ == null) {
1539 if (value == null) {
1540 throw new NullPointerException();
1541 }
1542 ensureSubsetIsMutable();
1543 subset_.add(value);
1544 onChanged();
1545 } else {
1546 subsetBuilder_.addMessage(value);
1547 }
1548 return this;
1549 }
1558 int index, com.google.ortools.algorithms.SetCoverProto.Subset value) {
1559 if (subsetBuilder_ == null) {
1560 if (value == null) {
1561 throw new NullPointerException();
1562 }
1563 ensureSubsetIsMutable();
1564 subset_.add(index, value);
1565 onChanged();
1566 } else {
1567 subsetBuilder_.addMessage(index, value);
1568 }
1569 return this;
1570 }
1579 com.google.ortools.algorithms.SetCoverProto.Subset.Builder builderForValue) {
1580 if (subsetBuilder_ == null) {
1581 ensureSubsetIsMutable();
1582 subset_.add(builderForValue.build());
1583 onChanged();
1584 } else {
1585 subsetBuilder_.addMessage(builderForValue.build());
1586 }
1587 return this;
1588 }
1597 int index, com.google.ortools.algorithms.SetCoverProto.Subset.Builder builderForValue) {
1598 if (subsetBuilder_ == null) {
1599 ensureSubsetIsMutable();
1600 subset_.add(index, builderForValue.build());
1601 onChanged();
1602 } else {
1603 subsetBuilder_.addMessage(index, builderForValue.build());
1604 }
1605 return this;
1606 }
1615 java.lang.Iterable<? extends com.google.ortools.algorithms.SetCoverProto.Subset> values) {
1616 if (subsetBuilder_ == null) {
1617 ensureSubsetIsMutable();
1618 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1619 values, subset_);
1620 onChanged();
1621 } else {
1622 subsetBuilder_.addAllMessages(values);
1623 }
1624 return this;
1625 }
1634 if (subsetBuilder_ == null) {
1635 subset_ = java.util.Collections.emptyList();
1636 bitField0_ = (bitField0_ & ~0x00000001);
1637 onChanged();
1638 } else {
1639 subsetBuilder_.clear();
1640 }
1641 return this;
1642 }
1650 public Builder removeSubset(int index) {
1651 if (subsetBuilder_ == null) {
1652 ensureSubsetIsMutable();
1653 subset_.remove(index);
1654 onChanged();
1655 } else {
1656 subsetBuilder_.remove(index);
1657 }
1658 return this;
1659 }
1668 int index) {
1669 return getSubsetFieldBuilder().getBuilder(index);
1670 }
1679 int index) {
1680 if (subsetBuilder_ == null) {
1681 return subset_.get(index); } else {
1682 return subsetBuilder_.getMessageOrBuilder(index);
1683 }
1684 }
1692 public java.util.List<? extends com.google.ortools.algorithms.SetCoverProto.SubsetOrBuilder>
1694 if (subsetBuilder_ != null) {
1695 return subsetBuilder_.getMessageOrBuilderList();
1696 } else {
1697 return java.util.Collections.unmodifiableList(subset_);
1698 }
1699 }
1708 return getSubsetFieldBuilder().addBuilder(
1709 com.google.ortools.algorithms.SetCoverProto.Subset.getDefaultInstance());
1710 }
1719 int index) {
1720 return getSubsetFieldBuilder().addBuilder(
1721 index, com.google.ortools.algorithms.SetCoverProto.Subset.getDefaultInstance());
1722 }
1730 public java.util.List<com.google.ortools.algorithms.SetCoverProto.Subset.Builder>
1732 return getSubsetFieldBuilder().getBuilderList();
1733 }
1734 private com.google.protobuf.RepeatedFieldBuilderV3<
1735 com.google.ortools.algorithms.SetCoverProto.Subset, com.google.ortools.algorithms.SetCoverProto.Subset.Builder, com.google.ortools.algorithms.SetCoverProto.SubsetOrBuilder>
1736 getSubsetFieldBuilder() {
1737 if (subsetBuilder_ == null) {
1738 subsetBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
1739 com.google.ortools.algorithms.SetCoverProto.Subset, com.google.ortools.algorithms.SetCoverProto.Subset.Builder, com.google.ortools.algorithms.SetCoverProto.SubsetOrBuilder>(
1740 subset_,
1741 ((bitField0_ & 0x00000001) != 0),
1742 getParentForChildren(),
1743 isClean());
1744 subset_ = null;
1745 }
1746 return subsetBuilder_;
1747 }
1748
1749 private java.lang.Object name_ = "";
1758 public boolean hasName() {
1759 return ((bitField0_ & 0x00000002) != 0);
1760 }
1769 public java.lang.String getName() {
1770 java.lang.Object ref = name_;
1771 if (!(ref instanceof java.lang.String)) {
1772 com.google.protobuf.ByteString bs =
1773 (com.google.protobuf.ByteString) ref;
1774 java.lang.String s = bs.toStringUtf8();
1775 name_ = s;
1776 return s;
1777 } else {
1778 return (java.lang.String) ref;
1779 }
1780 }
1789 public com.google.protobuf.ByteString
1791 java.lang.Object ref = name_;
1792 if (ref instanceof String) {
1793 com.google.protobuf.ByteString b =
1794 com.google.protobuf.ByteString.copyFromUtf8(
1795 (java.lang.String) ref);
1796 name_ = b;
1797 return b;
1798 } else {
1799 return (com.google.protobuf.ByteString) ref;
1800 }
1801 }
1812 java.lang.String value) {
1813 if (value == null) { throw new NullPointerException(); }
1814 name_ = value;
1815 bitField0_ |= 0x00000002;
1816 onChanged();
1817 return this;
1818 }
1828 name_ = getDefaultInstance().getName();
1829 bitField0_ = (bitField0_ & ~0x00000002);
1830 onChanged();
1831 return this;
1832 }
1843 com.google.protobuf.ByteString value) {
1844 if (value == null) { throw new NullPointerException(); }
1845 checkByteStringIsUtf8(value);
1846 name_ = value;
1847 bitField0_ |= 0x00000002;
1848 onChanged();
1849 return this;
1850 }
1851
1852 private com.google.ortools.util.Int128 fingerprint_;
1853 private com.google.protobuf.SingleFieldBuilderV3<
1854 com.google.ortools.util.Int128, com.google.ortools.util.Int128.Builder, com.google.ortools.util.Int128OrBuilder> fingerprintBuilder_;
1863 public boolean hasFingerprint() {
1864 return ((bitField0_ & 0x00000004) != 0);
1865 }
1875 if (fingerprintBuilder_ == null) {
1876 return fingerprint_ == null ? com.google.ortools.util.Int128.getDefaultInstance() : fingerprint_;
1877 } else {
1878 return fingerprintBuilder_.getMessage();
1879 }
1880 }
1888 public Builder setFingerprint(com.google.ortools.util.Int128 value) {
1889 if (fingerprintBuilder_ == null) {
1890 if (value == null) {
1891 throw new NullPointerException();
1892 }
1893 fingerprint_ = value;
1894 } else {
1895 fingerprintBuilder_.setMessage(value);
1896 }
1897 bitField0_ |= 0x00000004;
1898 onChanged();
1899 return this;
1900 }
1909 com.google.ortools.util.Int128.Builder builderForValue) {
1910 if (fingerprintBuilder_ == null) {
1911 fingerprint_ = builderForValue.build();
1912 } else {
1913 fingerprintBuilder_.setMessage(builderForValue.build());
1914 }
1915 bitField0_ |= 0x00000004;
1916 onChanged();
1917 return this;
1918 }
1926 public Builder mergeFingerprint(com.google.ortools.util.Int128 value) {
1927 if (fingerprintBuilder_ == null) {
1928 if (((bitField0_ & 0x00000004) != 0) &&
1929 fingerprint_ != null &&
1930 fingerprint_ != com.google.ortools.util.Int128.getDefaultInstance()) {
1932 } else {
1933 fingerprint_ = value;
1934 }
1935 } else {
1936 fingerprintBuilder_.mergeFrom(value);
1937 }
1938 if (fingerprint_ != null) {
1939 bitField0_ |= 0x00000004;
1940 onChanged();
1941 }
1942 return this;
1943 }
1952 bitField0_ = (bitField0_ & ~0x00000004);
1953 fingerprint_ = null;
1954 if (fingerprintBuilder_ != null) {
1955 fingerprintBuilder_.dispose();
1956 fingerprintBuilder_ = null;
1957 }
1958 onChanged();
1959 return this;
1960 }
1969 bitField0_ |= 0x00000004;
1970 onChanged();
1971 return getFingerprintFieldBuilder().getBuilder();
1972 }
1981 if (fingerprintBuilder_ != null) {
1982 return fingerprintBuilder_.getMessageOrBuilder();
1983 } else {
1984 return fingerprint_ == null ?
1985 com.google.ortools.util.Int128.getDefaultInstance() : fingerprint_;
1986 }
1987 }
1995 private com.google.protobuf.SingleFieldBuilderV3<
1996 com.google.ortools.util.Int128, com.google.ortools.util.Int128.Builder, com.google.ortools.util.Int128OrBuilder>
1997 getFingerprintFieldBuilder() {
1998 if (fingerprintBuilder_ == null) {
1999 fingerprintBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
2000 com.google.ortools.util.Int128, com.google.ortools.util.Int128.Builder, com.google.ortools.util.Int128OrBuilder>(
2002 getParentForChildren(),
2003 isClean());
2004 fingerprint_ = null;
2005 }
2006 return fingerprintBuilder_;
2007 }
2008 @java.lang.Override
2010 final com.google.protobuf.UnknownFieldSet unknownFields) {
2011 return super.setUnknownFields(unknownFields);
2012 }
2013
2014 @java.lang.Override
2016 final com.google.protobuf.UnknownFieldSet unknownFields) {
2017 return super.mergeUnknownFields(unknownFields);
2018 }
2019
2020
2021 // @@protoc_insertion_point(builder_scope:operations_research.SetCoverProto)
2022 }
2023
2024 // @@protoc_insertion_point(class_scope:operations_research.SetCoverProto)
2025 private static final com.google.ortools.algorithms.SetCoverProto DEFAULT_INSTANCE;
2026 static {
2027 DEFAULT_INSTANCE = new com.google.ortools.algorithms.SetCoverProto();
2028 }
2029
2031 return DEFAULT_INSTANCE;
2032 }
2033
2034 private static final com.google.protobuf.Parser<SetCoverProto>
2035 PARSER = new com.google.protobuf.AbstractParser<SetCoverProto>() {
2036 @java.lang.Override
2037 public SetCoverProto parsePartialFrom(
2038 com.google.protobuf.CodedInputStream input,
2039 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2040 throws com.google.protobuf.InvalidProtocolBufferException {
2041 Builder builder = newBuilder();
2042 try {
2043 builder.mergeFrom(input, extensionRegistry);
2044 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2045 throw e.setUnfinishedMessage(builder.buildPartial());
2046 } catch (com.google.protobuf.UninitializedMessageException e) {
2047 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
2048 } catch (java.io.IOException e) {
2049 throw new com.google.protobuf.InvalidProtocolBufferException(e)
2050 .setUnfinishedMessage(builder.buildPartial());
2051 }
2052 return builder.buildPartial();
2053 }
2054 };
2055
2056 public static com.google.protobuf.Parser<SetCoverProto> parser() {
2057 return PARSER;
2058 }
2059
2060 @java.lang.Override
2061 public com.google.protobuf.Parser<SetCoverProto> getParserForType() {
2062 return PARSER;
2063 }
2064
2065 @java.lang.Override
2067 return DEFAULT_INSTANCE;
2068 }
2069
2070}
2071
Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
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 clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
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)
Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
com.google.ortools.util.Int128.Builder getFingerprintBuilder()
Builder setFingerprint(com.google.ortools.util.Int128.Builder builderForValue)
final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
com.google.ortools.algorithms.SetCoverProto.Subset.Builder addSubsetBuilder()
Builder mergeFrom(com.google.protobuf.Message other)
final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
com.google.ortools.algorithms.SetCoverProto buildPartial()
com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
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)
Builder addSubset(int index, com.google.ortools.algorithms.SetCoverProto.Subset.Builder builderForValue)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
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 setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
Builder mergeFrom(com.google.protobuf.Message other)
Builder addAllElement(java.lang.Iterable<? extends java.lang.Integer > values)
com.google.ortools.algorithms.SetCoverProto.Subset build()
Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
com.google.ortools.algorithms.SetCoverProto.Subset buildPartial()
Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
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()
final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
static com.google.ortools.algorithms.SetCoverProto.Subset parseFrom(java.io.InputStream input)
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
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()
static com.google.ortools.algorithms.SetCoverProto.Subset parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
static com.google.ortools.algorithms.SetCoverProto.Subset parseFrom(java.nio.ByteBuffer data)
static com.google.ortools.algorithms.SetCoverProto.Subset getDefaultInstance()
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)
java.lang.Object newInstance(UnusedPrivateParameter unused)
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)
java.lang.Object newInstance(UnusedPrivateParameter unused)
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.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
com.google.ortools.algorithms.SetCoverProto getDefaultInstanceForType()
com.google.protobuf.Parser< SetCoverProto > getParserForType()
Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
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.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()