Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
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
4// Protobuf Java Version: 4.26.1
5package com.google.ortools.sat;
6
25public final class SymmetryProto extends
26 com.google.protobuf.GeneratedMessage implements
27 // @@protoc_insertion_point(message_implements:operations_research.sat.SymmetryProto)
29private static final long serialVersionUID = 0L;
30 static {
31 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
32 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
33 /* major= */ 4,
34 /* minor= */ 26,
35 /* patch= */ 1,
36 /* suffix= */ "",
37 SymmetryProto.class.getName());
38 }
39 // Use SymmetryProto.newBuilder() to construct.
40 private SymmetryProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
41 super(builder);
42 }
43 private SymmetryProto() {
44 permutations_ = java.util.Collections.emptyList();
45 orbitopes_ = java.util.Collections.emptyList();
46 }
47
48 public static final com.google.protobuf.Descriptors.Descriptor
50 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_SymmetryProto_descriptor;
51 }
52
53 @java.lang.Override
54 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
56 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_SymmetryProto_fieldAccessorTable
57 .ensureFieldAccessorsInitialized(
58 com.google.ortools.sat.SymmetryProto.class, com.google.ortools.sat.SymmetryProto.Builder.class);
59 }
60
61 public static final int PERMUTATIONS_FIELD_NUMBER = 1;
62 @SuppressWarnings("serial")
63 private java.util.List<com.google.ortools.sat.SparsePermutationProto> permutations_;
73 @java.lang.Override
74 public java.util.List<com.google.ortools.sat.SparsePermutationProto> getPermutationsList() {
75 return permutations_;
76 }
86 @java.lang.Override
87 public java.util.List<? extends com.google.ortools.sat.SparsePermutationProtoOrBuilder>
89 return permutations_;
90 }
100 @java.lang.Override
101 public int getPermutationsCount() {
102 return permutations_.size();
103 }
113 @java.lang.Override
115 return permutations_.get(index);
116 }
126 @java.lang.Override
128 int index) {
129 return permutations_.get(index);
130 }
131
132 public static final int ORBITOPES_FIELD_NUMBER = 2;
133 @SuppressWarnings("serial")
134 private java.util.List<com.google.ortools.sat.DenseMatrixProto> orbitopes_;
150 @java.lang.Override
151 public java.util.List<com.google.ortools.sat.DenseMatrixProto> getOrbitopesList() {
152 return orbitopes_;
153 }
169 @java.lang.Override
170 public java.util.List<? extends com.google.ortools.sat.DenseMatrixProtoOrBuilder>
172 return orbitopes_;
173 }
189 @java.lang.Override
190 public int getOrbitopesCount() {
191 return orbitopes_.size();
192 }
208 @java.lang.Override
210 return orbitopes_.get(index);
211 }
227 @java.lang.Override
229 int index) {
230 return orbitopes_.get(index);
231 }
232
233 private byte memoizedIsInitialized = -1;
234 @java.lang.Override
235 public final boolean isInitialized() {
236 byte isInitialized = memoizedIsInitialized;
237 if (isInitialized == 1) return true;
238 if (isInitialized == 0) return false;
239
240 memoizedIsInitialized = 1;
241 return true;
242 }
243
244 @java.lang.Override
245 public void writeTo(com.google.protobuf.CodedOutputStream output)
246 throws java.io.IOException {
247 for (int i = 0; i < permutations_.size(); i++) {
248 output.writeMessage(1, permutations_.get(i));
249 }
250 for (int i = 0; i < orbitopes_.size(); i++) {
251 output.writeMessage(2, orbitopes_.get(i));
252 }
253 getUnknownFields().writeTo(output);
254 }
255
256 @java.lang.Override
257 public int getSerializedSize() {
258 int size = memoizedSize;
259 if (size != -1) return size;
260
261 size = 0;
262 for (int i = 0; i < permutations_.size(); i++) {
263 size += com.google.protobuf.CodedOutputStream
264 .computeMessageSize(1, permutations_.get(i));
265 }
266 for (int i = 0; i < orbitopes_.size(); i++) {
267 size += com.google.protobuf.CodedOutputStream
268 .computeMessageSize(2, orbitopes_.get(i));
269 }
270 size += getUnknownFields().getSerializedSize();
271 memoizedSize = size;
272 return size;
273 }
274
275 @java.lang.Override
276 public boolean equals(final java.lang.Object obj) {
277 if (obj == this) {
278 return true;
279 }
280 if (!(obj instanceof com.google.ortools.sat.SymmetryProto)) {
281 return super.equals(obj);
282 }
283 com.google.ortools.sat.SymmetryProto other = (com.google.ortools.sat.SymmetryProto) obj;
284
286 .equals(other.getPermutationsList())) return false;
287 if (!getOrbitopesList()
288 .equals(other.getOrbitopesList())) return false;
289 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
290 return true;
291 }
292
293 @java.lang.Override
294 public int hashCode() {
295 if (memoizedHashCode != 0) {
296 return memoizedHashCode;
297 }
298 int hash = 41;
299 hash = (19 * hash) + getDescriptor().hashCode();
300 if (getPermutationsCount() > 0) {
301 hash = (37 * hash) + PERMUTATIONS_FIELD_NUMBER;
302 hash = (53 * hash) + getPermutationsList().hashCode();
303 }
304 if (getOrbitopesCount() > 0) {
305 hash = (37 * hash) + ORBITOPES_FIELD_NUMBER;
306 hash = (53 * hash) + getOrbitopesList().hashCode();
307 }
308 hash = (29 * hash) + getUnknownFields().hashCode();
309 memoizedHashCode = hash;
310 return hash;
311 }
312
314 java.nio.ByteBuffer data)
315 throws com.google.protobuf.InvalidProtocolBufferException {
316 return PARSER.parseFrom(data);
317 }
319 java.nio.ByteBuffer data,
320 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
321 throws com.google.protobuf.InvalidProtocolBufferException {
322 return PARSER.parseFrom(data, extensionRegistry);
323 }
325 com.google.protobuf.ByteString data)
326 throws com.google.protobuf.InvalidProtocolBufferException {
327 return PARSER.parseFrom(data);
328 }
330 com.google.protobuf.ByteString data,
331 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
332 throws com.google.protobuf.InvalidProtocolBufferException {
333 return PARSER.parseFrom(data, extensionRegistry);
334 }
336 throws com.google.protobuf.InvalidProtocolBufferException {
337 return PARSER.parseFrom(data);
338 }
340 byte[] data,
341 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
342 throws com.google.protobuf.InvalidProtocolBufferException {
343 return PARSER.parseFrom(data, extensionRegistry);
344 }
345 public static com.google.ortools.sat.SymmetryProto parseFrom(java.io.InputStream input)
346 throws java.io.IOException {
347 return com.google.protobuf.GeneratedMessage
348 .parseWithIOException(PARSER, input);
349 }
351 java.io.InputStream input,
352 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
353 throws java.io.IOException {
354 return com.google.protobuf.GeneratedMessage
355 .parseWithIOException(PARSER, input, extensionRegistry);
356 }
357
358 public static com.google.ortools.sat.SymmetryProto parseDelimitedFrom(java.io.InputStream input)
359 throws java.io.IOException {
360 return com.google.protobuf.GeneratedMessage
361 .parseDelimitedWithIOException(PARSER, input);
362 }
363
365 java.io.InputStream input,
366 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
367 throws java.io.IOException {
368 return com.google.protobuf.GeneratedMessage
369 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
370 }
372 com.google.protobuf.CodedInputStream input)
373 throws java.io.IOException {
374 return com.google.protobuf.GeneratedMessage
375 .parseWithIOException(PARSER, input);
376 }
378 com.google.protobuf.CodedInputStream input,
379 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
380 throws java.io.IOException {
381 return com.google.protobuf.GeneratedMessage
382 .parseWithIOException(PARSER, input, extensionRegistry);
383 }
384
385 @java.lang.Override
386 public Builder newBuilderForType() { return newBuilder(); }
387 public static Builder newBuilder() {
388 return DEFAULT_INSTANCE.toBuilder();
389 }
390 public static Builder newBuilder(com.google.ortools.sat.SymmetryProto prototype) {
391 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
392 }
393 @java.lang.Override
395 return this == DEFAULT_INSTANCE
396 ? new Builder() : new Builder().mergeFrom(this);
397 }
398
399 @java.lang.Override
401 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
402 Builder builder = new Builder(parent);
403 return builder;
404 }
423 public static final class Builder extends
424 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
425 // @@protoc_insertion_point(builder_implements:operations_research.sat.SymmetryProto)
426 com.google.ortools.sat.SymmetryProtoOrBuilder {
427 public static final com.google.protobuf.Descriptors.Descriptor
429 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_SymmetryProto_descriptor;
430 }
431
432 @java.lang.Override
433 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
435 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_SymmetryProto_fieldAccessorTable
436 .ensureFieldAccessorsInitialized(
437 com.google.ortools.sat.SymmetryProto.class, com.google.ortools.sat.SymmetryProto.Builder.class);
438 }
439
440 // Construct using com.google.ortools.sat.SymmetryProto.newBuilder()
441 private Builder() {
442
443 }
444
445 private Builder(
446 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
447 super(parent);
448
449 }
450 @java.lang.Override
451 public Builder clear() {
452 super.clear();
453 bitField0_ = 0;
454 if (permutationsBuilder_ == null) {
455 permutations_ = java.util.Collections.emptyList();
456 } else {
457 permutations_ = null;
458 permutationsBuilder_.clear();
459 }
460 bitField0_ = (bitField0_ & ~0x00000001);
461 if (orbitopesBuilder_ == null) {
462 orbitopes_ = java.util.Collections.emptyList();
463 } else {
464 orbitopes_ = null;
465 orbitopesBuilder_.clear();
466 }
467 bitField0_ = (bitField0_ & ~0x00000002);
468 return this;
469 }
470
471 @java.lang.Override
472 public com.google.protobuf.Descriptors.Descriptor
474 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_SymmetryProto_descriptor;
475 }
476
477 @java.lang.Override
479 return com.google.ortools.sat.SymmetryProto.getDefaultInstance();
480 }
481
482 @java.lang.Override
485 if (!result.isInitialized()) {
486 throw newUninitializedMessageException(result);
487 }
488 return result;
489 }
490
491 @java.lang.Override
493 com.google.ortools.sat.SymmetryProto result = new com.google.ortools.sat.SymmetryProto(this);
494 buildPartialRepeatedFields(result);
495 if (bitField0_ != 0) { buildPartial0(result); }
496 onBuilt();
497 return result;
498 }
499
500 private void buildPartialRepeatedFields(com.google.ortools.sat.SymmetryProto result) {
501 if (permutationsBuilder_ == null) {
502 if (((bitField0_ & 0x00000001) != 0)) {
503 permutations_ = java.util.Collections.unmodifiableList(permutations_);
504 bitField0_ = (bitField0_ & ~0x00000001);
505 }
506 result.permutations_ = permutations_;
507 } else {
508 result.permutations_ = permutationsBuilder_.build();
509 }
510 if (orbitopesBuilder_ == null) {
511 if (((bitField0_ & 0x00000002) != 0)) {
512 orbitopes_ = java.util.Collections.unmodifiableList(orbitopes_);
513 bitField0_ = (bitField0_ & ~0x00000002);
514 }
515 result.orbitopes_ = orbitopes_;
516 } else {
517 result.orbitopes_ = orbitopesBuilder_.build();
518 }
519 }
520
521 private void buildPartial0(com.google.ortools.sat.SymmetryProto result) {
522 int from_bitField0_ = bitField0_;
523 }
524
525 @java.lang.Override
526 public Builder mergeFrom(com.google.protobuf.Message other) {
527 if (other instanceof com.google.ortools.sat.SymmetryProto) {
528 return mergeFrom((com.google.ortools.sat.SymmetryProto)other);
529 } else {
530 super.mergeFrom(other);
531 return this;
532 }
533 }
534
535 public Builder mergeFrom(com.google.ortools.sat.SymmetryProto other) {
536 if (other == com.google.ortools.sat.SymmetryProto.getDefaultInstance()) return this;
537 if (permutationsBuilder_ == null) {
538 if (!other.permutations_.isEmpty()) {
539 if (permutations_.isEmpty()) {
540 permutations_ = other.permutations_;
541 bitField0_ = (bitField0_ & ~0x00000001);
542 } else {
543 ensurePermutationsIsMutable();
544 permutations_.addAll(other.permutations_);
545 }
546 onChanged();
547 }
548 } else {
549 if (!other.permutations_.isEmpty()) {
550 if (permutationsBuilder_.isEmpty()) {
551 permutationsBuilder_.dispose();
552 permutationsBuilder_ = null;
553 permutations_ = other.permutations_;
554 bitField0_ = (bitField0_ & ~0x00000001);
555 permutationsBuilder_ =
556 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
557 getPermutationsFieldBuilder() : null;
558 } else {
559 permutationsBuilder_.addAllMessages(other.permutations_);
560 }
561 }
562 }
563 if (orbitopesBuilder_ == null) {
564 if (!other.orbitopes_.isEmpty()) {
565 if (orbitopes_.isEmpty()) {
566 orbitopes_ = other.orbitopes_;
567 bitField0_ = (bitField0_ & ~0x00000002);
568 } else {
569 ensureOrbitopesIsMutable();
570 orbitopes_.addAll(other.orbitopes_);
571 }
572 onChanged();
573 }
574 } else {
575 if (!other.orbitopes_.isEmpty()) {
576 if (orbitopesBuilder_.isEmpty()) {
577 orbitopesBuilder_.dispose();
578 orbitopesBuilder_ = null;
579 orbitopes_ = other.orbitopes_;
580 bitField0_ = (bitField0_ & ~0x00000002);
581 orbitopesBuilder_ =
582 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
583 getOrbitopesFieldBuilder() : null;
584 } else {
585 orbitopesBuilder_.addAllMessages(other.orbitopes_);
586 }
587 }
588 }
589 this.mergeUnknownFields(other.getUnknownFields());
590 onChanged();
591 return this;
592 }
593
594 @java.lang.Override
595 public final boolean isInitialized() {
596 return true;
597 }
598
599 @java.lang.Override
601 com.google.protobuf.CodedInputStream input,
602 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
603 throws java.io.IOException {
604 if (extensionRegistry == null) {
605 throw new java.lang.NullPointerException();
606 }
607 try {
608 boolean done = false;
609 while (!done) {
610 int tag = input.readTag();
611 switch (tag) {
612 case 0:
613 done = true;
614 break;
615 case 10: {
617 input.readMessage(
618 com.google.ortools.sat.SparsePermutationProto.parser(),
619 extensionRegistry);
620 if (permutationsBuilder_ == null) {
621 ensurePermutationsIsMutable();
622 permutations_.add(m);
623 } else {
624 permutationsBuilder_.addMessage(m);
625 }
626 break;
627 } // case 10
628 case 18: {
630 input.readMessage(
631 com.google.ortools.sat.DenseMatrixProto.parser(),
632 extensionRegistry);
633 if (orbitopesBuilder_ == null) {
634 ensureOrbitopesIsMutable();
635 orbitopes_.add(m);
636 } else {
637 orbitopesBuilder_.addMessage(m);
638 }
639 break;
640 } // case 18
641 default: {
642 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
643 done = true; // was an endgroup tag
644 }
645 break;
646 } // default:
647 } // switch (tag)
648 } // while (!done)
649 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
650 throw e.unwrapIOException();
651 } finally {
652 onChanged();
653 } // finally
654 return this;
655 }
656 private int bitField0_;
657
658 private java.util.List<com.google.ortools.sat.SparsePermutationProto> permutations_ =
659 java.util.Collections.emptyList();
660 private void ensurePermutationsIsMutable() {
661 if (!((bitField0_ & 0x00000001) != 0)) {
662 permutations_ = new java.util.ArrayList<com.google.ortools.sat.SparsePermutationProto>(permutations_);
663 bitField0_ |= 0x00000001;
664 }
665 }
666
667 private com.google.protobuf.RepeatedFieldBuilder<
668 com.google.ortools.sat.SparsePermutationProto, com.google.ortools.sat.SparsePermutationProto.Builder, com.google.ortools.sat.SparsePermutationProtoOrBuilder> permutationsBuilder_;
669
679 public java.util.List<com.google.ortools.sat.SparsePermutationProto> getPermutationsList() {
680 if (permutationsBuilder_ == null) {
681 return java.util.Collections.unmodifiableList(permutations_);
682 } else {
683 return permutationsBuilder_.getMessageList();
684 }
685 }
695 public int getPermutationsCount() {
696 if (permutationsBuilder_ == null) {
697 return permutations_.size();
698 } else {
699 return permutationsBuilder_.getCount();
700 }
701 }
712 if (permutationsBuilder_ == null) {
713 return permutations_.get(index);
714 } else {
715 return permutationsBuilder_.getMessage(index);
716 }
717 }
728 int index, com.google.ortools.sat.SparsePermutationProto value) {
729 if (permutationsBuilder_ == null) {
730 if (value == null) {
731 throw new NullPointerException();
732 }
733 ensurePermutationsIsMutable();
734 permutations_.set(index, value);
735 onChanged();
736 } else {
737 permutationsBuilder_.setMessage(index, value);
738 }
739 return this;
740 }
751 int index, com.google.ortools.sat.SparsePermutationProto.Builder builderForValue) {
752 if (permutationsBuilder_ == null) {
753 ensurePermutationsIsMutable();
754 permutations_.set(index, builderForValue.build());
755 onChanged();
756 } else {
757 permutationsBuilder_.setMessage(index, builderForValue.build());
758 }
759 return this;
760 }
770 public Builder addPermutations(com.google.ortools.sat.SparsePermutationProto value) {
771 if (permutationsBuilder_ == null) {
772 if (value == null) {
773 throw new NullPointerException();
774 }
775 ensurePermutationsIsMutable();
776 permutations_.add(value);
777 onChanged();
778 } else {
779 permutationsBuilder_.addMessage(value);
780 }
781 return this;
782 }
793 int index, com.google.ortools.sat.SparsePermutationProto value) {
794 if (permutationsBuilder_ == null) {
795 if (value == null) {
796 throw new NullPointerException();
797 }
798 ensurePermutationsIsMutable();
799 permutations_.add(index, value);
800 onChanged();
801 } else {
802 permutationsBuilder_.addMessage(index, value);
803 }
804 return this;
805 }
816 com.google.ortools.sat.SparsePermutationProto.Builder builderForValue) {
817 if (permutationsBuilder_ == null) {
818 ensurePermutationsIsMutable();
819 permutations_.add(builderForValue.build());
820 onChanged();
821 } else {
822 permutationsBuilder_.addMessage(builderForValue.build());
823 }
824 return this;
825 }
836 int index, com.google.ortools.sat.SparsePermutationProto.Builder builderForValue) {
837 if (permutationsBuilder_ == null) {
838 ensurePermutationsIsMutable();
839 permutations_.add(index, builderForValue.build());
840 onChanged();
841 } else {
842 permutationsBuilder_.addMessage(index, builderForValue.build());
843 }
844 return this;
845 }
856 java.lang.Iterable<? extends com.google.ortools.sat.SparsePermutationProto> values) {
857 if (permutationsBuilder_ == null) {
858 ensurePermutationsIsMutable();
859 com.google.protobuf.AbstractMessageLite.Builder.addAll(
860 values, permutations_);
861 onChanged();
862 } else {
863 permutationsBuilder_.addAllMessages(values);
864 }
865 return this;
866 }
877 if (permutationsBuilder_ == null) {
878 permutations_ = java.util.Collections.emptyList();
879 bitField0_ = (bitField0_ & ~0x00000001);
880 onChanged();
881 } else {
882 permutationsBuilder_.clear();
883 }
884 return this;
885 }
895 public Builder removePermutations(int index) {
896 if (permutationsBuilder_ == null) {
897 ensurePermutationsIsMutable();
898 permutations_.remove(index);
899 onChanged();
900 } else {
901 permutationsBuilder_.remove(index);
902 }
903 return this;
904 }
915 int index) {
916 return getPermutationsFieldBuilder().getBuilder(index);
917 }
928 int index) {
929 if (permutationsBuilder_ == null) {
930 return permutations_.get(index); } else {
931 return permutationsBuilder_.getMessageOrBuilder(index);
932 }
933 }
943 public java.util.List<? extends com.google.ortools.sat.SparsePermutationProtoOrBuilder>
945 if (permutationsBuilder_ != null) {
946 return permutationsBuilder_.getMessageOrBuilderList();
947 } else {
948 return java.util.Collections.unmodifiableList(permutations_);
949 }
950 }
961 return getPermutationsFieldBuilder().addBuilder(
962 com.google.ortools.sat.SparsePermutationProto.getDefaultInstance());
963 }
974 int index) {
975 return getPermutationsFieldBuilder().addBuilder(
976 index, com.google.ortools.sat.SparsePermutationProto.getDefaultInstance());
977 }
987 public java.util.List<com.google.ortools.sat.SparsePermutationProto.Builder>
989 return getPermutationsFieldBuilder().getBuilderList();
990 }
991 private com.google.protobuf.RepeatedFieldBuilder<
992 com.google.ortools.sat.SparsePermutationProto, com.google.ortools.sat.SparsePermutationProto.Builder, com.google.ortools.sat.SparsePermutationProtoOrBuilder>
993 getPermutationsFieldBuilder() {
994 if (permutationsBuilder_ == null) {
995 permutationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
996 com.google.ortools.sat.SparsePermutationProto, com.google.ortools.sat.SparsePermutationProto.Builder, com.google.ortools.sat.SparsePermutationProtoOrBuilder>(
997 permutations_,
998 ((bitField0_ & 0x00000001) != 0),
999 getParentForChildren(),
1000 isClean());
1001 permutations_ = null;
1002 }
1003 return permutationsBuilder_;
1004 }
1005
1006 private java.util.List<com.google.ortools.sat.DenseMatrixProto> orbitopes_ =
1007 java.util.Collections.emptyList();
1008 private void ensureOrbitopesIsMutable() {
1009 if (!((bitField0_ & 0x00000002) != 0)) {
1010 orbitopes_ = new java.util.ArrayList<com.google.ortools.sat.DenseMatrixProto>(orbitopes_);
1011 bitField0_ |= 0x00000002;
1012 }
1013 }
1014
1015 private com.google.protobuf.RepeatedFieldBuilder<
1016 com.google.ortools.sat.DenseMatrixProto, com.google.ortools.sat.DenseMatrixProto.Builder, com.google.ortools.sat.DenseMatrixProtoOrBuilder> orbitopesBuilder_;
1017
1033 public java.util.List<com.google.ortools.sat.DenseMatrixProto> getOrbitopesList() {
1034 if (orbitopesBuilder_ == null) {
1035 return java.util.Collections.unmodifiableList(orbitopes_);
1036 } else {
1037 return orbitopesBuilder_.getMessageList();
1038 }
1039 }
1055 public int getOrbitopesCount() {
1056 if (orbitopesBuilder_ == null) {
1057 return orbitopes_.size();
1058 } else {
1059 return orbitopesBuilder_.getCount();
1060 }
1061 }
1078 if (orbitopesBuilder_ == null) {
1079 return orbitopes_.get(index);
1080 } else {
1081 return orbitopesBuilder_.getMessage(index);
1082 }
1083 }
1100 int index, com.google.ortools.sat.DenseMatrixProto value) {
1101 if (orbitopesBuilder_ == null) {
1102 if (value == null) {
1103 throw new NullPointerException();
1104 }
1105 ensureOrbitopesIsMutable();
1106 orbitopes_.set(index, value);
1107 onChanged();
1108 } else {
1109 orbitopesBuilder_.setMessage(index, value);
1110 }
1111 return this;
1112 }
1129 int index, com.google.ortools.sat.DenseMatrixProto.Builder builderForValue) {
1130 if (orbitopesBuilder_ == null) {
1131 ensureOrbitopesIsMutable();
1132 orbitopes_.set(index, builderForValue.build());
1133 onChanged();
1134 } else {
1135 orbitopesBuilder_.setMessage(index, builderForValue.build());
1136 }
1137 return this;
1138 }
1154 public Builder addOrbitopes(com.google.ortools.sat.DenseMatrixProto value) {
1155 if (orbitopesBuilder_ == null) {
1156 if (value == null) {
1157 throw new NullPointerException();
1158 }
1159 ensureOrbitopesIsMutable();
1160 orbitopes_.add(value);
1161 onChanged();
1162 } else {
1163 orbitopesBuilder_.addMessage(value);
1164 }
1165 return this;
1166 }
1183 int index, com.google.ortools.sat.DenseMatrixProto value) {
1184 if (orbitopesBuilder_ == null) {
1185 if (value == null) {
1186 throw new NullPointerException();
1187 }
1188 ensureOrbitopesIsMutable();
1189 orbitopes_.add(index, value);
1190 onChanged();
1191 } else {
1192 orbitopesBuilder_.addMessage(index, value);
1193 }
1194 return this;
1195 }
1212 com.google.ortools.sat.DenseMatrixProto.Builder builderForValue) {
1213 if (orbitopesBuilder_ == null) {
1214 ensureOrbitopesIsMutable();
1215 orbitopes_.add(builderForValue.build());
1216 onChanged();
1217 } else {
1218 orbitopesBuilder_.addMessage(builderForValue.build());
1219 }
1220 return this;
1221 }
1238 int index, com.google.ortools.sat.DenseMatrixProto.Builder builderForValue) {
1239 if (orbitopesBuilder_ == null) {
1240 ensureOrbitopesIsMutable();
1241 orbitopes_.add(index, builderForValue.build());
1242 onChanged();
1243 } else {
1244 orbitopesBuilder_.addMessage(index, builderForValue.build());
1245 }
1246 return this;
1247 }
1264 java.lang.Iterable<? extends com.google.ortools.sat.DenseMatrixProto> values) {
1265 if (orbitopesBuilder_ == null) {
1266 ensureOrbitopesIsMutable();
1267 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1268 values, orbitopes_);
1269 onChanged();
1270 } else {
1271 orbitopesBuilder_.addAllMessages(values);
1272 }
1273 return this;
1274 }
1291 if (orbitopesBuilder_ == null) {
1292 orbitopes_ = java.util.Collections.emptyList();
1293 bitField0_ = (bitField0_ & ~0x00000002);
1294 onChanged();
1295 } else {
1296 orbitopesBuilder_.clear();
1297 }
1298 return this;
1299 }
1315 public Builder removeOrbitopes(int index) {
1316 if (orbitopesBuilder_ == null) {
1317 ensureOrbitopesIsMutable();
1318 orbitopes_.remove(index);
1319 onChanged();
1320 } else {
1321 orbitopesBuilder_.remove(index);
1322 }
1323 return this;
1324 }
1341 int index) {
1342 return getOrbitopesFieldBuilder().getBuilder(index);
1343 }
1360 int index) {
1361 if (orbitopesBuilder_ == null) {
1362 return orbitopes_.get(index); } else {
1363 return orbitopesBuilder_.getMessageOrBuilder(index);
1364 }
1365 }
1381 public java.util.List<? extends com.google.ortools.sat.DenseMatrixProtoOrBuilder>
1383 if (orbitopesBuilder_ != null) {
1384 return orbitopesBuilder_.getMessageOrBuilderList();
1385 } else {
1386 return java.util.Collections.unmodifiableList(orbitopes_);
1387 }
1388 }
1405 return getOrbitopesFieldBuilder().addBuilder(
1406 com.google.ortools.sat.DenseMatrixProto.getDefaultInstance());
1407 }
1424 int index) {
1425 return getOrbitopesFieldBuilder().addBuilder(
1426 index, com.google.ortools.sat.DenseMatrixProto.getDefaultInstance());
1427 }
1443 public java.util.List<com.google.ortools.sat.DenseMatrixProto.Builder>
1445 return getOrbitopesFieldBuilder().getBuilderList();
1446 }
1447 private com.google.protobuf.RepeatedFieldBuilder<
1448 com.google.ortools.sat.DenseMatrixProto, com.google.ortools.sat.DenseMatrixProto.Builder, com.google.ortools.sat.DenseMatrixProtoOrBuilder>
1449 getOrbitopesFieldBuilder() {
1450 if (orbitopesBuilder_ == null) {
1451 orbitopesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
1452 com.google.ortools.sat.DenseMatrixProto, com.google.ortools.sat.DenseMatrixProto.Builder, com.google.ortools.sat.DenseMatrixProtoOrBuilder>(
1453 orbitopes_,
1454 ((bitField0_ & 0x00000002) != 0),
1455 getParentForChildren(),
1456 isClean());
1457 orbitopes_ = null;
1458 }
1459 return orbitopesBuilder_;
1460 }
1461
1462 // @@protoc_insertion_point(builder_scope:operations_research.sat.SymmetryProto)
1463 }
1464
1465 // @@protoc_insertion_point(class_scope:operations_research.sat.SymmetryProto)
1466 private static final com.google.ortools.sat.SymmetryProto DEFAULT_INSTANCE;
1467 static {
1468 DEFAULT_INSTANCE = new com.google.ortools.sat.SymmetryProto();
1469 }
1470
1472 return DEFAULT_INSTANCE;
1473 }
1474
1475 private static final com.google.protobuf.Parser<SymmetryProto>
1476 PARSER = new com.google.protobuf.AbstractParser<SymmetryProto>() {
1477 @java.lang.Override
1478 public SymmetryProto parsePartialFrom(
1479 com.google.protobuf.CodedInputStream input,
1480 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1481 throws com.google.protobuf.InvalidProtocolBufferException {
1482 Builder builder = newBuilder();
1483 try {
1484 builder.mergeFrom(input, extensionRegistry);
1485 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1486 throw e.setUnfinishedMessage(builder.buildPartial());
1487 } catch (com.google.protobuf.UninitializedMessageException e) {
1488 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1489 } catch (java.io.IOException e) {
1490 throw new com.google.protobuf.InvalidProtocolBufferException(e)
1491 .setUnfinishedMessage(builder.buildPartial());
1492 }
1493 return builder.buildPartial();
1494 }
1495 };
1496
1497 public static com.google.protobuf.Parser<SymmetryProto> parser() {
1498 return PARSER;
1499 }
1500
1501 @java.lang.Override
1502 public com.google.protobuf.Parser<SymmetryProto> getParserForType() {
1503 return PARSER;
1504 }
1505
1506 @java.lang.Override
1508 return DEFAULT_INSTANCE;
1509 }
1510
1511}
1512
java.util.List< com.google.ortools.sat.SparsePermutationProto.Builder > getPermutationsBuilderList()
Builder addOrbitopes(int index, com.google.ortools.sat.DenseMatrixProto.Builder builderForValue)
Builder mergeFrom(com.google.ortools.sat.SymmetryProto other)
java.util.List< com.google.ortools.sat.SparsePermutationProto > getPermutationsList()
java.util.List< com.google.ortools.sat.DenseMatrixProto.Builder > getOrbitopesBuilderList()
Builder mergeFrom(com.google.protobuf.Message other)
com.google.ortools.sat.DenseMatrixProto.Builder addOrbitopesBuilder(int index)
com.google.ortools.sat.SymmetryProto getDefaultInstanceForType()
Builder addPermutations(com.google.ortools.sat.SparsePermutationProto.Builder builderForValue)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
Builder addPermutations(int index, com.google.ortools.sat.SparsePermutationProto.Builder builderForValue)
Builder addPermutations(com.google.ortools.sat.SparsePermutationProto value)
Builder setPermutations(int index, com.google.ortools.sat.SparsePermutationProto.Builder builderForValue)
Builder addOrbitopes(int index, com.google.ortools.sat.DenseMatrixProto value)
com.google.ortools.sat.DenseMatrixProtoOrBuilder getOrbitopesOrBuilder(int index)
com.google.ortools.sat.DenseMatrixProto getOrbitopes(int index)
Builder addOrbitopes(com.google.ortools.sat.DenseMatrixProto.Builder builderForValue)
com.google.ortools.sat.SparsePermutationProto.Builder addPermutationsBuilder(int index)
Builder addAllPermutations(java.lang.Iterable<? extends com.google.ortools.sat.SparsePermutationProto > values)
Builder addPermutations(int index, com.google.ortools.sat.SparsePermutationProto value)
com.google.ortools.sat.SymmetryProto build()
Builder addAllOrbitopes(java.lang.Iterable<? extends com.google.ortools.sat.DenseMatrixProto > values)
Builder setPermutations(int index, com.google.ortools.sat.SparsePermutationProto value)
com.google.ortools.sat.DenseMatrixProto.Builder addOrbitopesBuilder()
java.util.List<? extends com.google.ortools.sat.DenseMatrixProtoOrBuilder > getOrbitopesOrBuilderList()
Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.sat.SparsePermutationProtoOrBuilder getPermutationsOrBuilder(int index)
Builder setOrbitopes(int index, com.google.ortools.sat.DenseMatrixProto value)
java.util.List< com.google.ortools.sat.DenseMatrixProto > getOrbitopesList()
com.google.ortools.sat.SymmetryProto buildPartial()
com.google.ortools.sat.SparsePermutationProto.Builder getPermutationsBuilder(int index)
java.util.List<? extends com.google.ortools.sat.SparsePermutationProtoOrBuilder > getPermutationsOrBuilderList()
com.google.ortools.sat.DenseMatrixProto.Builder getOrbitopesBuilder(int index)
com.google.ortools.sat.SparsePermutationProto getPermutations(int index)
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Builder addOrbitopes(com.google.ortools.sat.DenseMatrixProto value)
Builder setOrbitopes(int index, com.google.ortools.sat.DenseMatrixProto.Builder builderForValue)
com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
com.google.ortools.sat.SparsePermutationProto.Builder addPermutationsBuilder()
java.util.List< com.google.ortools.sat.SparsePermutationProto > getPermutationsList()
void writeTo(com.google.protobuf.CodedOutputStream output)
static com.google.ortools.sat.SymmetryProto parseFrom(com.google.protobuf.CodedInputStream input)
com.google.ortools.sat.SparsePermutationProto getPermutations(int index)
static com.google.ortools.sat.SymmetryProto parseFrom(java.io.InputStream input)
static Builder newBuilder(com.google.ortools.sat.SymmetryProto prototype)
java.util.List<? extends com.google.ortools.sat.SparsePermutationProtoOrBuilder > getPermutationsOrBuilderList()
static com.google.ortools.sat.SymmetryProto parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.sat.SymmetryProto parseFrom(byte[] data)
com.google.protobuf.Parser< SymmetryProto > getParserForType()
static com.google.ortools.sat.SymmetryProto parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.sat.SparsePermutationProtoOrBuilder getPermutationsOrBuilder(int index)
boolean equals(final java.lang.Object obj)
static com.google.ortools.sat.SymmetryProto parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.sat.DenseMatrixProtoOrBuilder getOrbitopesOrBuilder(int index)
static com.google.ortools.sat.SymmetryProto parseDelimitedFrom(java.io.InputStream input)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
com.google.ortools.sat.DenseMatrixProto getOrbitopes(int index)
static com.google.ortools.sat.SymmetryProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
java.util.List< com.google.ortools.sat.DenseMatrixProto > getOrbitopesList()
static com.google.ortools.sat.SymmetryProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.sat.SymmetryProto getDefaultInstanceForType()
static com.google.ortools.sat.SymmetryProto parseFrom(java.nio.ByteBuffer data)
static com.google.ortools.sat.SymmetryProto parseFrom(com.google.protobuf.ByteString data)
static com.google.ortools.sat.SymmetryProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser< SymmetryProto > parser()
java.util.List<? extends com.google.ortools.sat.DenseMatrixProtoOrBuilder > getOrbitopesOrBuilderList()
Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
static com.google.ortools.sat.SymmetryProto getDefaultInstance()