Java Reference

Java Reference

SymmetryProto.java
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: ortools/sat/cp_model.proto
3
4package com.google.ortools.sat;
5
21public final class SymmetryProto extends
22 com.google.protobuf.GeneratedMessageV3 implements
23 // @@protoc_insertion_point(message_implements:operations_research.sat.SymmetryProto)
25private static final long serialVersionUID = 0L;
26 // Use SymmetryProto.newBuilder() to construct.
27 private SymmetryProto(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
28 super(builder);
29 }
30 private SymmetryProto() {
31 permutations_ = java.util.Collections.emptyList();
32 orbitopes_ = java.util.Collections.emptyList();
33 }
34
35 @java.lang.Override
36 @SuppressWarnings({"unused"})
37 protected java.lang.Object newInstance(
38 UnusedPrivateParameter unused) {
39 return new SymmetryProto();
40 }
41
42 @java.lang.Override
43 public final com.google.protobuf.UnknownFieldSet
45 return this.unknownFields;
46 }
47 private SymmetryProto(
48 com.google.protobuf.CodedInputStream input,
49 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
50 throws com.google.protobuf.InvalidProtocolBufferException {
51 this();
52 if (extensionRegistry == null) {
53 throw new java.lang.NullPointerException();
54 }
55 int mutable_bitField0_ = 0;
56 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
57 com.google.protobuf.UnknownFieldSet.newBuilder();
58 try {
59 boolean done = false;
60 while (!done) {
61 int tag = input.readTag();
62 switch (tag) {
63 case 0:
64 done = true;
65 break;
66 case 10: {
67 if (!((mutable_bitField0_ & 0x00000001) != 0)) {
68 permutations_ = new java.util.ArrayList<com.google.ortools.sat.SparsePermutationProto>();
69 mutable_bitField0_ |= 0x00000001;
70 }
71 permutations_.add(
72 input.readMessage(com.google.ortools.sat.SparsePermutationProto.parser(), extensionRegistry));
73 break;
74 }
75 case 18: {
76 if (!((mutable_bitField0_ & 0x00000002) != 0)) {
77 orbitopes_ = new java.util.ArrayList<com.google.ortools.sat.DenseMatrixProto>();
78 mutable_bitField0_ |= 0x00000002;
79 }
80 orbitopes_.add(
81 input.readMessage(com.google.ortools.sat.DenseMatrixProto.parser(), extensionRegistry));
82 break;
83 }
84 default: {
85 if (!parseUnknownField(
86 input, unknownFields, extensionRegistry, tag)) {
87 done = true;
88 }
89 break;
90 }
91 }
92 }
93 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
94 throw e.setUnfinishedMessage(this);
95 } catch (java.io.IOException e) {
96 throw new com.google.protobuf.InvalidProtocolBufferException(
97 e).setUnfinishedMessage(this);
98 } finally {
99 if (((mutable_bitField0_ & 0x00000001) != 0)) {
100 permutations_ = java.util.Collections.unmodifiableList(permutations_);
101 }
102 if (((mutable_bitField0_ & 0x00000002) != 0)) {
103 orbitopes_ = java.util.Collections.unmodifiableList(orbitopes_);
104 }
105 this.unknownFields = unknownFields.build();
106 makeExtensionsImmutable();
107 }
108 }
109 public static final com.google.protobuf.Descriptors.Descriptor
111 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_SymmetryProto_descriptor;
112 }
113
114 @java.lang.Override
115 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
117 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_SymmetryProto_fieldAccessorTable
118 .ensureFieldAccessorsInitialized(
119 com.google.ortools.sat.SymmetryProto.class, com.google.ortools.sat.SymmetryProto.Builder.class);
120 }
121
122 public static final int PERMUTATIONS_FIELD_NUMBER = 1;
123 private java.util.List<com.google.ortools.sat.SparsePermutationProto> permutations_;
133 @java.lang.Override
134 public java.util.List<com.google.ortools.sat.SparsePermutationProto> getPermutationsList() {
135 return permutations_;
136 }
146 @java.lang.Override
147 public java.util.List<? extends com.google.ortools.sat.SparsePermutationProtoOrBuilder>
149 return permutations_;
150 }
160 @java.lang.Override
161 public int getPermutationsCount() {
162 return permutations_.size();
163 }
173 @java.lang.Override
174 public com.google.ortools.sat.SparsePermutationProto getPermutations(int index) {
175 return permutations_.get(index);
176 }
186 @java.lang.Override
187 public com.google.ortools.sat.SparsePermutationProtoOrBuilder getPermutationsOrBuilder(
188 int index) {
189 return permutations_.get(index);
190 }
191
192 public static final int ORBITOPES_FIELD_NUMBER = 2;
193 private java.util.List<com.google.ortools.sat.DenseMatrixProto> orbitopes_;
208 @java.lang.Override
209 public java.util.List<com.google.ortools.sat.DenseMatrixProto> getOrbitopesList() {
210 return orbitopes_;
211 }
226 @java.lang.Override
227 public java.util.List<? extends com.google.ortools.sat.DenseMatrixProtoOrBuilder>
229 return orbitopes_;
230 }
245 @java.lang.Override
246 public int getOrbitopesCount() {
247 return orbitopes_.size();
248 }
263 @java.lang.Override
264 public com.google.ortools.sat.DenseMatrixProto getOrbitopes(int index) {
265 return orbitopes_.get(index);
266 }
281 @java.lang.Override
282 public com.google.ortools.sat.DenseMatrixProtoOrBuilder getOrbitopesOrBuilder(
283 int index) {
284 return orbitopes_.get(index);
285 }
286
287 private byte memoizedIsInitialized = -1;
288 @java.lang.Override
289 public final boolean isInitialized() {
290 byte isInitialized = memoizedIsInitialized;
291 if (isInitialized == 1) return true;
292 if (isInitialized == 0) return false;
293
294 memoizedIsInitialized = 1;
295 return true;
296 }
297
298 @java.lang.Override
299 public void writeTo(com.google.protobuf.CodedOutputStream output)
300 throws java.io.IOException {
301 for (int i = 0; i < permutations_.size(); i++) {
302 output.writeMessage(1, permutations_.get(i));
303 }
304 for (int i = 0; i < orbitopes_.size(); i++) {
305 output.writeMessage(2, orbitopes_.get(i));
306 }
307 unknownFields.writeTo(output);
308 }
309
310 @java.lang.Override
311 public int getSerializedSize() {
312 int size = memoizedSize;
313 if (size != -1) return size;
314
315 size = 0;
316 for (int i = 0; i < permutations_.size(); i++) {
317 size += com.google.protobuf.CodedOutputStream
318 .computeMessageSize(1, permutations_.get(i));
319 }
320 for (int i = 0; i < orbitopes_.size(); i++) {
321 size += com.google.protobuf.CodedOutputStream
322 .computeMessageSize(2, orbitopes_.get(i));
323 }
324 size += unknownFields.getSerializedSize();
325 memoizedSize = size;
326 return size;
327 }
328
329 @java.lang.Override
330 public boolean equals(final java.lang.Object obj) {
331 if (obj == this) {
332 return true;
333 }
334 if (!(obj instanceof com.google.ortools.sat.SymmetryProto)) {
335 return super.equals(obj);
336 }
337 com.google.ortools.sat.SymmetryProto other = (com.google.ortools.sat.SymmetryProto) obj;
338
340 .equals(other.getPermutationsList())) return false;
341 if (!getOrbitopesList()
342 .equals(other.getOrbitopesList())) return false;
343 if (!unknownFields.equals(other.unknownFields)) return false;
344 return true;
345 }
346
347 @java.lang.Override
348 public int hashCode() {
349 if (memoizedHashCode != 0) {
350 return memoizedHashCode;
351 }
352 int hash = 41;
353 hash = (19 * hash) + getDescriptor().hashCode();
354 if (getPermutationsCount() > 0) {
355 hash = (37 * hash) + PERMUTATIONS_FIELD_NUMBER;
356 hash = (53 * hash) + getPermutationsList().hashCode();
357 }
358 if (getOrbitopesCount() > 0) {
359 hash = (37 * hash) + ORBITOPES_FIELD_NUMBER;
360 hash = (53 * hash) + getOrbitopesList().hashCode();
361 }
362 hash = (29 * hash) + unknownFields.hashCode();
363 memoizedHashCode = hash;
364 return hash;
365 }
366
367 public static com.google.ortools.sat.SymmetryProto parseFrom(
368 java.nio.ByteBuffer data)
369 throws com.google.protobuf.InvalidProtocolBufferException {
370 return PARSER.parseFrom(data);
371 }
372 public static com.google.ortools.sat.SymmetryProto parseFrom(
373 java.nio.ByteBuffer data,
374 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
375 throws com.google.protobuf.InvalidProtocolBufferException {
376 return PARSER.parseFrom(data, extensionRegistry);
377 }
378 public static com.google.ortools.sat.SymmetryProto parseFrom(
379 com.google.protobuf.ByteString data)
380 throws com.google.protobuf.InvalidProtocolBufferException {
381 return PARSER.parseFrom(data);
382 }
383 public static com.google.ortools.sat.SymmetryProto parseFrom(
384 com.google.protobuf.ByteString data,
385 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
386 throws com.google.protobuf.InvalidProtocolBufferException {
387 return PARSER.parseFrom(data, extensionRegistry);
388 }
389 public static com.google.ortools.sat.SymmetryProto parseFrom(byte[] data)
390 throws com.google.protobuf.InvalidProtocolBufferException {
391 return PARSER.parseFrom(data);
392 }
393 public static com.google.ortools.sat.SymmetryProto parseFrom(
394 byte[] data,
395 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
396 throws com.google.protobuf.InvalidProtocolBufferException {
397 return PARSER.parseFrom(data, extensionRegistry);
398 }
399 public static com.google.ortools.sat.SymmetryProto parseFrom(java.io.InputStream input)
400 throws java.io.IOException {
401 return com.google.protobuf.GeneratedMessageV3
402 .parseWithIOException(PARSER, input);
403 }
404 public static com.google.ortools.sat.SymmetryProto parseFrom(
405 java.io.InputStream input,
406 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
407 throws java.io.IOException {
408 return com.google.protobuf.GeneratedMessageV3
409 .parseWithIOException(PARSER, input, extensionRegistry);
410 }
411 public static com.google.ortools.sat.SymmetryProto parseDelimitedFrom(java.io.InputStream input)
412 throws java.io.IOException {
413 return com.google.protobuf.GeneratedMessageV3
414 .parseDelimitedWithIOException(PARSER, input);
415 }
416 public static com.google.ortools.sat.SymmetryProto parseDelimitedFrom(
417 java.io.InputStream input,
418 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
419 throws java.io.IOException {
420 return com.google.protobuf.GeneratedMessageV3
421 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
422 }
423 public static com.google.ortools.sat.SymmetryProto parseFrom(
424 com.google.protobuf.CodedInputStream input)
425 throws java.io.IOException {
426 return com.google.protobuf.GeneratedMessageV3
427 .parseWithIOException(PARSER, input);
428 }
429 public static com.google.ortools.sat.SymmetryProto parseFrom(
430 com.google.protobuf.CodedInputStream input,
431 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
432 throws java.io.IOException {
433 return com.google.protobuf.GeneratedMessageV3
434 .parseWithIOException(PARSER, input, extensionRegistry);
435 }
436
437 @java.lang.Override
438 public Builder newBuilderForType() { return newBuilder(); }
439 public static Builder newBuilder() {
440 return DEFAULT_INSTANCE.toBuilder();
441 }
442 public static Builder newBuilder(com.google.ortools.sat.SymmetryProto prototype) {
443 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
444 }
445 @java.lang.Override
447 return this == DEFAULT_INSTANCE
448 ? new Builder() : new Builder().mergeFrom(this);
449 }
450
451 @java.lang.Override
453 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
454 Builder builder = new Builder(parent);
455 return builder;
456 }
472 public static final class Builder extends
473 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
474 // @@protoc_insertion_point(builder_implements:operations_research.sat.SymmetryProto)
475 com.google.ortools.sat.SymmetryProtoOrBuilder {
476 public static final com.google.protobuf.Descriptors.Descriptor
478 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_SymmetryProto_descriptor;
479 }
480
481 @java.lang.Override
482 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
484 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_SymmetryProto_fieldAccessorTable
485 .ensureFieldAccessorsInitialized(
486 com.google.ortools.sat.SymmetryProto.class, com.google.ortools.sat.SymmetryProto.Builder.class);
487 }
488
489 // Construct using com.google.ortools.sat.SymmetryProto.newBuilder()
490 private Builder() {
491 maybeForceBuilderInitialization();
492 }
493
494 private Builder(
495 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
496 super(parent);
497 maybeForceBuilderInitialization();
498 }
499 private void maybeForceBuilderInitialization() {
500 if (com.google.protobuf.GeneratedMessageV3
501 .alwaysUseFieldBuilders) {
502 getPermutationsFieldBuilder();
503 getOrbitopesFieldBuilder();
504 }
505 }
506 @java.lang.Override
507 public Builder clear() {
508 super.clear();
509 if (permutationsBuilder_ == null) {
510 permutations_ = java.util.Collections.emptyList();
511 bitField0_ = (bitField0_ & ~0x00000001);
512 } else {
513 permutationsBuilder_.clear();
514 }
515 if (orbitopesBuilder_ == null) {
516 orbitopes_ = java.util.Collections.emptyList();
517 bitField0_ = (bitField0_ & ~0x00000002);
518 } else {
519 orbitopesBuilder_.clear();
520 }
521 return this;
522 }
523
524 @java.lang.Override
525 public com.google.protobuf.Descriptors.Descriptor
527 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_SymmetryProto_descriptor;
528 }
529
530 @java.lang.Override
531 public com.google.ortools.sat.SymmetryProto getDefaultInstanceForType() {
532 return com.google.ortools.sat.SymmetryProto.getDefaultInstance();
533 }
534
535 @java.lang.Override
536 public com.google.ortools.sat.SymmetryProto build() {
537 com.google.ortools.sat.SymmetryProto result = buildPartial();
538 if (!result.isInitialized()) {
539 throw newUninitializedMessageException(result);
540 }
541 return result;
542 }
543
544 @java.lang.Override
545 public com.google.ortools.sat.SymmetryProto buildPartial() {
546 com.google.ortools.sat.SymmetryProto result = new com.google.ortools.sat.SymmetryProto(this);
547 int from_bitField0_ = bitField0_;
548 if (permutationsBuilder_ == null) {
549 if (((bitField0_ & 0x00000001) != 0)) {
550 permutations_ = java.util.Collections.unmodifiableList(permutations_);
551 bitField0_ = (bitField0_ & ~0x00000001);
552 }
553 result.permutations_ = permutations_;
554 } else {
555 result.permutations_ = permutationsBuilder_.build();
556 }
557 if (orbitopesBuilder_ == null) {
558 if (((bitField0_ & 0x00000002) != 0)) {
559 orbitopes_ = java.util.Collections.unmodifiableList(orbitopes_);
560 bitField0_ = (bitField0_ & ~0x00000002);
561 }
562 result.orbitopes_ = orbitopes_;
563 } else {
564 result.orbitopes_ = orbitopesBuilder_.build();
565 }
566 onBuilt();
567 return result;
568 }
569
570 @java.lang.Override
571 public Builder clone() {
572 return super.clone();
573 }
574 @java.lang.Override
576 com.google.protobuf.Descriptors.FieldDescriptor field,
577 java.lang.Object value) {
578 return super.setField(field, value);
579 }
580 @java.lang.Override
582 com.google.protobuf.Descriptors.FieldDescriptor field) {
583 return super.clearField(field);
584 }
585 @java.lang.Override
587 com.google.protobuf.Descriptors.OneofDescriptor oneof) {
588 return super.clearOneof(oneof);
589 }
590 @java.lang.Override
592 com.google.protobuf.Descriptors.FieldDescriptor field,
593 int index, java.lang.Object value) {
594 return super.setRepeatedField(field, index, value);
595 }
596 @java.lang.Override
598 com.google.protobuf.Descriptors.FieldDescriptor field,
599 java.lang.Object value) {
600 return super.addRepeatedField(field, value);
601 }
602 @java.lang.Override
603 public Builder mergeFrom(com.google.protobuf.Message other) {
604 if (other instanceof com.google.ortools.sat.SymmetryProto) {
605 return mergeFrom((com.google.ortools.sat.SymmetryProto)other);
606 } else {
607 super.mergeFrom(other);
608 return this;
609 }
610 }
611
612 public Builder mergeFrom(com.google.ortools.sat.SymmetryProto other) {
613 if (other == com.google.ortools.sat.SymmetryProto.getDefaultInstance()) return this;
614 if (permutationsBuilder_ == null) {
615 if (!other.permutations_.isEmpty()) {
616 if (permutations_.isEmpty()) {
617 permutations_ = other.permutations_;
618 bitField0_ = (bitField0_ & ~0x00000001);
619 } else {
620 ensurePermutationsIsMutable();
621 permutations_.addAll(other.permutations_);
622 }
623 onChanged();
624 }
625 } else {
626 if (!other.permutations_.isEmpty()) {
627 if (permutationsBuilder_.isEmpty()) {
628 permutationsBuilder_.dispose();
629 permutationsBuilder_ = null;
630 permutations_ = other.permutations_;
631 bitField0_ = (bitField0_ & ~0x00000001);
632 permutationsBuilder_ =
633 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
634 getPermutationsFieldBuilder() : null;
635 } else {
636 permutationsBuilder_.addAllMessages(other.permutations_);
637 }
638 }
639 }
640 if (orbitopesBuilder_ == null) {
641 if (!other.orbitopes_.isEmpty()) {
642 if (orbitopes_.isEmpty()) {
643 orbitopes_ = other.orbitopes_;
644 bitField0_ = (bitField0_ & ~0x00000002);
645 } else {
646 ensureOrbitopesIsMutable();
647 orbitopes_.addAll(other.orbitopes_);
648 }
649 onChanged();
650 }
651 } else {
652 if (!other.orbitopes_.isEmpty()) {
653 if (orbitopesBuilder_.isEmpty()) {
654 orbitopesBuilder_.dispose();
655 orbitopesBuilder_ = null;
656 orbitopes_ = other.orbitopes_;
657 bitField0_ = (bitField0_ & ~0x00000002);
658 orbitopesBuilder_ =
659 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
660 getOrbitopesFieldBuilder() : null;
661 } else {
662 orbitopesBuilder_.addAllMessages(other.orbitopes_);
663 }
664 }
665 }
666 this.mergeUnknownFields(other.unknownFields);
667 onChanged();
668 return this;
669 }
670
671 @java.lang.Override
672 public final boolean isInitialized() {
673 return true;
674 }
675
676 @java.lang.Override
678 com.google.protobuf.CodedInputStream input,
679 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
680 throws java.io.IOException {
681 com.google.ortools.sat.SymmetryProto parsedMessage = null;
682 try {
683 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
684 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
685 parsedMessage = (com.google.ortools.sat.SymmetryProto) e.getUnfinishedMessage();
686 throw e.unwrapIOException();
687 } finally {
688 if (parsedMessage != null) {
689 mergeFrom(parsedMessage);
690 }
691 }
692 return this;
693 }
694 private int bitField0_;
695
696 private java.util.List<com.google.ortools.sat.SparsePermutationProto> permutations_ =
697 java.util.Collections.emptyList();
698 private void ensurePermutationsIsMutable() {
699 if (!((bitField0_ & 0x00000001) != 0)) {
700 permutations_ = new java.util.ArrayList<com.google.ortools.sat.SparsePermutationProto>(permutations_);
701 bitField0_ |= 0x00000001;
702 }
703 }
704
705 private com.google.protobuf.RepeatedFieldBuilderV3<
706 com.google.ortools.sat.SparsePermutationProto, com.google.ortools.sat.SparsePermutationProto.Builder, com.google.ortools.sat.SparsePermutationProtoOrBuilder> permutationsBuilder_;
707
717 public java.util.List<com.google.ortools.sat.SparsePermutationProto> getPermutationsList() {
718 if (permutationsBuilder_ == null) {
719 return java.util.Collections.unmodifiableList(permutations_);
720 } else {
721 return permutationsBuilder_.getMessageList();
722 }
723 }
733 public int getPermutationsCount() {
734 if (permutationsBuilder_ == null) {
735 return permutations_.size();
736 } else {
737 return permutationsBuilder_.getCount();
738 }
739 }
749 public com.google.ortools.sat.SparsePermutationProto getPermutations(int index) {
750 if (permutationsBuilder_ == null) {
751 return permutations_.get(index);
752 } else {
753 return permutationsBuilder_.getMessage(index);
754 }
755 }
766 int index, com.google.ortools.sat.SparsePermutationProto value) {
767 if (permutationsBuilder_ == null) {
768 if (value == null) {
769 throw new NullPointerException();
770 }
771 ensurePermutationsIsMutable();
772 permutations_.set(index, value);
773 onChanged();
774 } else {
775 permutationsBuilder_.setMessage(index, value);
776 }
777 return this;
778 }
789 int index, com.google.ortools.sat.SparsePermutationProto.Builder builderForValue) {
790 if (permutationsBuilder_ == null) {
791 ensurePermutationsIsMutable();
792 permutations_.set(index, builderForValue.build());
793 onChanged();
794 } else {
795 permutationsBuilder_.setMessage(index, builderForValue.build());
796 }
797 return this;
798 }
808 public Builder addPermutations(com.google.ortools.sat.SparsePermutationProto value) {
809 if (permutationsBuilder_ == null) {
810 if (value == null) {
811 throw new NullPointerException();
812 }
813 ensurePermutationsIsMutable();
814 permutations_.add(value);
815 onChanged();
816 } else {
817 permutationsBuilder_.addMessage(value);
818 }
819 return this;
820 }
831 int index, com.google.ortools.sat.SparsePermutationProto value) {
832 if (permutationsBuilder_ == null) {
833 if (value == null) {
834 throw new NullPointerException();
835 }
836 ensurePermutationsIsMutable();
837 permutations_.add(index, value);
838 onChanged();
839 } else {
840 permutationsBuilder_.addMessage(index, value);
841 }
842 return this;
843 }
854 com.google.ortools.sat.SparsePermutationProto.Builder builderForValue) {
855 if (permutationsBuilder_ == null) {
856 ensurePermutationsIsMutable();
857 permutations_.add(builderForValue.build());
858 onChanged();
859 } else {
860 permutationsBuilder_.addMessage(builderForValue.build());
861 }
862 return this;
863 }
874 int index, com.google.ortools.sat.SparsePermutationProto.Builder builderForValue) {
875 if (permutationsBuilder_ == null) {
876 ensurePermutationsIsMutable();
877 permutations_.add(index, builderForValue.build());
878 onChanged();
879 } else {
880 permutationsBuilder_.addMessage(index, builderForValue.build());
881 }
882 return this;
883 }
894 java.lang.Iterable<? extends com.google.ortools.sat.SparsePermutationProto> values) {
895 if (permutationsBuilder_ == null) {
896 ensurePermutationsIsMutable();
897 com.google.protobuf.AbstractMessageLite.Builder.addAll(
898 values, permutations_);
899 onChanged();
900 } else {
901 permutationsBuilder_.addAllMessages(values);
902 }
903 return this;
904 }
915 if (permutationsBuilder_ == null) {
916 permutations_ = java.util.Collections.emptyList();
917 bitField0_ = (bitField0_ & ~0x00000001);
918 onChanged();
919 } else {
920 permutationsBuilder_.clear();
921 }
922 return this;
923 }
933 public Builder removePermutations(int index) {
934 if (permutationsBuilder_ == null) {
935 ensurePermutationsIsMutable();
936 permutations_.remove(index);
937 onChanged();
938 } else {
939 permutationsBuilder_.remove(index);
940 }
941 return this;
942 }
952 public com.google.ortools.sat.SparsePermutationProto.Builder getPermutationsBuilder(
953 int index) {
954 return getPermutationsFieldBuilder().getBuilder(index);
955 }
965 public com.google.ortools.sat.SparsePermutationProtoOrBuilder getPermutationsOrBuilder(
966 int index) {
967 if (permutationsBuilder_ == null) {
968 return permutations_.get(index); } else {
969 return permutationsBuilder_.getMessageOrBuilder(index);
970 }
971 }
981 public java.util.List<? extends com.google.ortools.sat.SparsePermutationProtoOrBuilder>
983 if (permutationsBuilder_ != null) {
984 return permutationsBuilder_.getMessageOrBuilderList();
985 } else {
986 return java.util.Collections.unmodifiableList(permutations_);
987 }
988 }
998 public com.google.ortools.sat.SparsePermutationProto.Builder addPermutationsBuilder() {
999 return getPermutationsFieldBuilder().addBuilder(
1000 com.google.ortools.sat.SparsePermutationProto.getDefaultInstance());
1001 }
1011 public com.google.ortools.sat.SparsePermutationProto.Builder addPermutationsBuilder(
1012 int index) {
1013 return getPermutationsFieldBuilder().addBuilder(
1014 index, com.google.ortools.sat.SparsePermutationProto.getDefaultInstance());
1015 }
1025 public java.util.List<com.google.ortools.sat.SparsePermutationProto.Builder>
1027 return getPermutationsFieldBuilder().getBuilderList();
1028 }
1029 private com.google.protobuf.RepeatedFieldBuilderV3<
1030 com.google.ortools.sat.SparsePermutationProto, com.google.ortools.sat.SparsePermutationProto.Builder, com.google.ortools.sat.SparsePermutationProtoOrBuilder>
1031 getPermutationsFieldBuilder() {
1032 if (permutationsBuilder_ == null) {
1033 permutationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
1034 com.google.ortools.sat.SparsePermutationProto, com.google.ortools.sat.SparsePermutationProto.Builder, com.google.ortools.sat.SparsePermutationProtoOrBuilder>(
1035 permutations_,
1036 ((bitField0_ & 0x00000001) != 0),
1037 getParentForChildren(),
1038 isClean());
1039 permutations_ = null;
1040 }
1041 return permutationsBuilder_;
1042 }
1043
1044 private java.util.List<com.google.ortools.sat.DenseMatrixProto> orbitopes_ =
1045 java.util.Collections.emptyList();
1046 private void ensureOrbitopesIsMutable() {
1047 if (!((bitField0_ & 0x00000002) != 0)) {
1048 orbitopes_ = new java.util.ArrayList<com.google.ortools.sat.DenseMatrixProto>(orbitopes_);
1049 bitField0_ |= 0x00000002;
1050 }
1051 }
1052
1053 private com.google.protobuf.RepeatedFieldBuilderV3<
1054 com.google.ortools.sat.DenseMatrixProto, com.google.ortools.sat.DenseMatrixProto.Builder, com.google.ortools.sat.DenseMatrixProtoOrBuilder> orbitopesBuilder_;
1055
1070 public java.util.List<com.google.ortools.sat.DenseMatrixProto> getOrbitopesList() {
1071 if (orbitopesBuilder_ == null) {
1072 return java.util.Collections.unmodifiableList(orbitopes_);
1073 } else {
1074 return orbitopesBuilder_.getMessageList();
1075 }
1076 }
1091 public int getOrbitopesCount() {
1092 if (orbitopesBuilder_ == null) {
1093 return orbitopes_.size();
1094 } else {
1095 return orbitopesBuilder_.getCount();
1096 }
1097 }
1112 public com.google.ortools.sat.DenseMatrixProto getOrbitopes(int index) {
1113 if (orbitopesBuilder_ == null) {
1114 return orbitopes_.get(index);
1115 } else {
1116 return orbitopesBuilder_.getMessage(index);
1117 }
1118 }
1134 int index, com.google.ortools.sat.DenseMatrixProto value) {
1135 if (orbitopesBuilder_ == null) {
1136 if (value == null) {
1137 throw new NullPointerException();
1138 }
1139 ensureOrbitopesIsMutable();
1140 orbitopes_.set(index, value);
1141 onChanged();
1142 } else {
1143 orbitopesBuilder_.setMessage(index, value);
1144 }
1145 return this;
1146 }
1162 int index, com.google.ortools.sat.DenseMatrixProto.Builder builderForValue) {
1163 if (orbitopesBuilder_ == null) {
1164 ensureOrbitopesIsMutable();
1165 orbitopes_.set(index, builderForValue.build());
1166 onChanged();
1167 } else {
1168 orbitopesBuilder_.setMessage(index, builderForValue.build());
1169 }
1170 return this;
1171 }
1186 public Builder addOrbitopes(com.google.ortools.sat.DenseMatrixProto value) {
1187 if (orbitopesBuilder_ == null) {
1188 if (value == null) {
1189 throw new NullPointerException();
1190 }
1191 ensureOrbitopesIsMutable();
1192 orbitopes_.add(value);
1193 onChanged();
1194 } else {
1195 orbitopesBuilder_.addMessage(value);
1196 }
1197 return this;
1198 }
1214 int index, com.google.ortools.sat.DenseMatrixProto value) {
1215 if (orbitopesBuilder_ == null) {
1216 if (value == null) {
1217 throw new NullPointerException();
1218 }
1219 ensureOrbitopesIsMutable();
1220 orbitopes_.add(index, value);
1221 onChanged();
1222 } else {
1223 orbitopesBuilder_.addMessage(index, value);
1224 }
1225 return this;
1226 }
1242 com.google.ortools.sat.DenseMatrixProto.Builder builderForValue) {
1243 if (orbitopesBuilder_ == null) {
1244 ensureOrbitopesIsMutable();
1245 orbitopes_.add(builderForValue.build());
1246 onChanged();
1247 } else {
1248 orbitopesBuilder_.addMessage(builderForValue.build());
1249 }
1250 return this;
1251 }
1267 int index, com.google.ortools.sat.DenseMatrixProto.Builder builderForValue) {
1268 if (orbitopesBuilder_ == null) {
1269 ensureOrbitopesIsMutable();
1270 orbitopes_.add(index, builderForValue.build());
1271 onChanged();
1272 } else {
1273 orbitopesBuilder_.addMessage(index, builderForValue.build());
1274 }
1275 return this;
1276 }
1292 java.lang.Iterable<? extends com.google.ortools.sat.DenseMatrixProto> values) {
1293 if (orbitopesBuilder_ == null) {
1294 ensureOrbitopesIsMutable();
1295 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1296 values, orbitopes_);
1297 onChanged();
1298 } else {
1299 orbitopesBuilder_.addAllMessages(values);
1300 }
1301 return this;
1302 }
1318 if (orbitopesBuilder_ == null) {
1319 orbitopes_ = java.util.Collections.emptyList();
1320 bitField0_ = (bitField0_ & ~0x00000002);
1321 onChanged();
1322 } else {
1323 orbitopesBuilder_.clear();
1324 }
1325 return this;
1326 }
1341 public Builder removeOrbitopes(int index) {
1342 if (orbitopesBuilder_ == null) {
1343 ensureOrbitopesIsMutable();
1344 orbitopes_.remove(index);
1345 onChanged();
1346 } else {
1347 orbitopesBuilder_.remove(index);
1348 }
1349 return this;
1350 }
1365 public com.google.ortools.sat.DenseMatrixProto.Builder getOrbitopesBuilder(
1366 int index) {
1367 return getOrbitopesFieldBuilder().getBuilder(index);
1368 }
1383 public com.google.ortools.sat.DenseMatrixProtoOrBuilder getOrbitopesOrBuilder(
1384 int index) {
1385 if (orbitopesBuilder_ == null) {
1386 return orbitopes_.get(index); } else {
1387 return orbitopesBuilder_.getMessageOrBuilder(index);
1388 }
1389 }
1404 public java.util.List<? extends com.google.ortools.sat.DenseMatrixProtoOrBuilder>
1406 if (orbitopesBuilder_ != null) {
1407 return orbitopesBuilder_.getMessageOrBuilderList();
1408 } else {
1409 return java.util.Collections.unmodifiableList(orbitopes_);
1410 }
1411 }
1426 public com.google.ortools.sat.DenseMatrixProto.Builder addOrbitopesBuilder() {
1427 return getOrbitopesFieldBuilder().addBuilder(
1428 com.google.ortools.sat.DenseMatrixProto.getDefaultInstance());
1429 }
1444 public com.google.ortools.sat.DenseMatrixProto.Builder addOrbitopesBuilder(
1445 int index) {
1446 return getOrbitopesFieldBuilder().addBuilder(
1447 index, com.google.ortools.sat.DenseMatrixProto.getDefaultInstance());
1448 }
1463 public java.util.List<com.google.ortools.sat.DenseMatrixProto.Builder>
1465 return getOrbitopesFieldBuilder().getBuilderList();
1466 }
1467 private com.google.protobuf.RepeatedFieldBuilderV3<
1468 com.google.ortools.sat.DenseMatrixProto, com.google.ortools.sat.DenseMatrixProto.Builder, com.google.ortools.sat.DenseMatrixProtoOrBuilder>
1469 getOrbitopesFieldBuilder() {
1470 if (orbitopesBuilder_ == null) {
1471 orbitopesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
1472 com.google.ortools.sat.DenseMatrixProto, com.google.ortools.sat.DenseMatrixProto.Builder, com.google.ortools.sat.DenseMatrixProtoOrBuilder>(
1473 orbitopes_,
1474 ((bitField0_ & 0x00000002) != 0),
1475 getParentForChildren(),
1476 isClean());
1477 orbitopes_ = null;
1478 }
1479 return orbitopesBuilder_;
1480 }
1481 @java.lang.Override
1483 final com.google.protobuf.UnknownFieldSet unknownFields) {
1484 return super.setUnknownFields(unknownFields);
1485 }
1486
1487 @java.lang.Override
1489 final com.google.protobuf.UnknownFieldSet unknownFields) {
1490 return super.mergeUnknownFields(unknownFields);
1491 }
1492
1493
1494 // @@protoc_insertion_point(builder_scope:operations_research.sat.SymmetryProto)
1495 }
1496
1497 // @@protoc_insertion_point(class_scope:operations_research.sat.SymmetryProto)
1498 private static final com.google.ortools.sat.SymmetryProto DEFAULT_INSTANCE;
1499 static {
1500 DEFAULT_INSTANCE = new com.google.ortools.sat.SymmetryProto();
1501 }
1502
1503 public static com.google.ortools.sat.SymmetryProto getDefaultInstance() {
1504 return DEFAULT_INSTANCE;
1505 }
1506
1507 private static final com.google.protobuf.Parser<SymmetryProto>
1508 PARSER = new com.google.protobuf.AbstractParser<SymmetryProto>() {
1509 @java.lang.Override
1510 public SymmetryProto parsePartialFrom(
1511 com.google.protobuf.CodedInputStream input,
1512 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1513 throws com.google.protobuf.InvalidProtocolBufferException {
1514 return new SymmetryProto(input, extensionRegistry);
1515 }
1516 };
1517
1518 public static com.google.protobuf.Parser<SymmetryProto> parser() {
1519 return PARSER;
1520 }
1521
1522 @java.lang.Override
1523 public com.google.protobuf.Parser<SymmetryProto> getParserForType() {
1524 return PARSER;
1525 }
1526
1527 @java.lang.Override
1528 public com.google.ortools.sat.SymmetryProto getDefaultInstanceForType() {
1529 return DEFAULT_INSTANCE;
1530 }
1531
1532}
1533
Builder setPermutations(int index, com.google.ortools.sat.SparsePermutationProto value)
com.google.ortools.sat.SparsePermutationProto.Builder getPermutationsBuilder(int index)
.lang.Override com.google.ortools.sat.SymmetryProto getDefaultInstanceForType()
Builder addPermutations(int index, com.google.ortools.sat.SparsePermutationProto.Builder builderForValue)
Builder addOrbitopes(com.google.ortools.sat.DenseMatrixProto value)
.lang.Override Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
com.google.ortools.sat.DenseMatrixProto getOrbitopes(int index)
Builder addPermutations(int index, com.google.ortools.sat.SparsePermutationProto value)
.lang.Override com.google.ortools.sat.SymmetryProto build()
.lang.Override Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
java.util.List< com.google.ortools.sat.SparsePermutationProto.Builder > getPermutationsBuilderList()
java.util.List< com.google.ortools.sat.DenseMatrixProto.Builder > getOrbitopesBuilderList()
.lang.Override final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
com.google.ortools.sat.DenseMatrixProto.Builder addOrbitopesBuilder()
com.google.ortools.sat.SparsePermutationProto.Builder addPermutationsBuilder()
java.util.List< com.google.ortools.sat.SparsePermutationProto > getPermutationsList()
Builder mergeFrom(com.google.ortools.sat.SymmetryProto other)
java.util.List< com.google.ortools.sat.DenseMatrixProto > getOrbitopesList()
.lang.Override Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
com.google.ortools.sat.DenseMatrixProto.Builder getOrbitopesBuilder(int index)
.lang.Override com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
com.google.ortools.sat.DenseMatrixProtoOrBuilder getOrbitopesOrBuilder(int index)
Builder setPermutations(int index, com.google.ortools.sat.SparsePermutationProto.Builder builderForValue)
Builder setOrbitopes(int index, com.google.ortools.sat.DenseMatrixProto.Builder builderForValue)
Builder addPermutations(com.google.ortools.sat.SparsePermutationProto value)
Builder addOrbitopes(com.google.ortools.sat.DenseMatrixProto.Builder builderForValue)
com.google.ortools.sat.SparsePermutationProto.Builder addPermutationsBuilder(int index)
Builder addOrbitopes(int index, com.google.ortools.sat.DenseMatrixProto.Builder builderForValue)
Builder addAllOrbitopes(java.lang.Iterable<? extends com.google.ortools.sat.DenseMatrixProto > values)
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
.lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
.lang.Override final boolean isInitialized()
Builder addAllPermutations(java.lang.Iterable<? extends com.google.ortools.sat.SparsePermutationProto > values)
com.google.ortools.sat.SparsePermutationProtoOrBuilder getPermutationsOrBuilder(int index)
.lang.Override com.google.ortools.sat.SymmetryProto buildPartial()
Builder addPermutations(com.google.ortools.sat.SparsePermutationProto.Builder builderForValue)
java.util.List<? extends com.google.ortools.sat.DenseMatrixProtoOrBuilder > getOrbitopesOrBuilderList()
Builder setOrbitopes(int index, com.google.ortools.sat.DenseMatrixProto value)
java.util.List<? extends com.google.ortools.sat.SparsePermutationProtoOrBuilder > getPermutationsOrBuilderList()
.lang.Override final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
Builder addOrbitopes(int index, com.google.ortools.sat.DenseMatrixProto value)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
com.google.ortools.sat.SparsePermutationProto getPermutations(int index)
com.google.ortools.sat.DenseMatrixProto.Builder addOrbitopesBuilder(int index)
.lang.Override Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
.lang.Override Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
static com.google.ortools.sat.SymmetryProto parseFrom(java.nio.ByteBuffer data)
.lang.Override java.util.List< com.google.ortools.sat.DenseMatrixProto > getOrbitopesList()
.lang.Override com.google.ortools.sat.SymmetryProto getDefaultInstanceForType()
static com.google.ortools.sat.SymmetryProto parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override com.google.protobuf.Parser< SymmetryProto > getParserForType()
static com.google.protobuf.Parser< SymmetryProto > parser()
.lang.Override com.google.ortools.sat.DenseMatrixProto getOrbitopes(int index)
.lang.Override Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
.lang.Override java.util.List< com.google.ortools.sat.SparsePermutationProto > getPermutationsList()
.lang.Override java.util.List<? extends com.google.ortools.sat.SparsePermutationProtoOrBuilder > getPermutationsOrBuilderList()
static com.google.ortools.sat.SymmetryProto parseFrom(java.io.InputStream input)
static Builder newBuilder(com.google.ortools.sat.SymmetryProto prototype)
static com.google.ortools.sat.SymmetryProto parseFrom(com.google.protobuf.CodedInputStream input)
static com.google.ortools.sat.SymmetryProto parseFrom(byte[] data)
static com.google.ortools.sat.SymmetryProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override java.util.List<? extends com.google.ortools.sat.DenseMatrixProtoOrBuilder > getOrbitopesOrBuilderList()
.lang.Override Builder toBuilder()
.lang.Override Builder newBuilderForType()
static com.google.ortools.sat.SymmetryProto getDefaultInstance()
.lang.Override void writeTo(com.google.protobuf.CodedOutputStream output)
static com.google.ortools.sat.SymmetryProto parseDelimitedFrom(java.io.InputStream input)
static com.google.ortools.sat.SymmetryProto parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
.lang.Override final com.google.protobuf.UnknownFieldSet getUnknownFields()
.lang.Override final boolean isInitialized()
.lang.Override int getPermutationsCount()
.lang.Override com.google.ortools.sat.SparsePermutationProto getPermutations(int index)
static com.google.ortools.sat.SymmetryProto parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override java.lang.Object newInstance(UnusedPrivateParameter unused)
.lang.Override boolean equals(final java.lang.Object obj)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
.lang.Override com.google.ortools.sat.DenseMatrixProtoOrBuilder getOrbitopesOrBuilder(int index)
static com.google.ortools.sat.SymmetryProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.sat.SymmetryProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.sat.SymmetryProto parseFrom(com.google.protobuf.ByteString data)
.lang.Override com.google.ortools.sat.SparsePermutationProtoOrBuilder getPermutationsOrBuilder(int index)