Google OR-Tools v9.9
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: 3.25.3
5package com.google.ortools.sat;
6
25public final class SymmetryProto extends
26 com.google.protobuf.GeneratedMessageV3 implements
27 // @@protoc_insertion_point(message_implements:operations_research.sat.SymmetryProto)
29private static final long serialVersionUID = 0L;
30 // Use SymmetryProto.newBuilder() to construct.
31 private SymmetryProto(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
32 super(builder);
33 }
34 private SymmetryProto() {
35 permutations_ = java.util.Collections.emptyList();
36 orbitopes_ = java.util.Collections.emptyList();
37 }
38
39 @java.lang.Override
40 @SuppressWarnings({"unused"})
41 protected java.lang.Object newInstance(
42 UnusedPrivateParameter unused) {
43 return new SymmetryProto();
44 }
45
46 public static final com.google.protobuf.Descriptors.Descriptor
48 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_SymmetryProto_descriptor;
49 }
50
51 @java.lang.Override
52 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
54 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_SymmetryProto_fieldAccessorTable
55 .ensureFieldAccessorsInitialized(
56 com.google.ortools.sat.SymmetryProto.class, com.google.ortools.sat.SymmetryProto.Builder.class);
57 }
58
59 public static final int PERMUTATIONS_FIELD_NUMBER = 1;
60 @SuppressWarnings("serial")
61 private java.util.List<com.google.ortools.sat.SparsePermutationProto> permutations_;
71 @java.lang.Override
72 public java.util.List<com.google.ortools.sat.SparsePermutationProto> getPermutationsList() {
73 return permutations_;
74 }
84 @java.lang.Override
85 public java.util.List<? extends com.google.ortools.sat.SparsePermutationProtoOrBuilder>
87 return permutations_;
88 }
98 @java.lang.Override
99 public int getPermutationsCount() {
100 return permutations_.size();
101 }
111 @java.lang.Override
113 return permutations_.get(index);
114 }
124 @java.lang.Override
126 int index) {
127 return permutations_.get(index);
128 }
129
130 public static final int ORBITOPES_FIELD_NUMBER = 2;
131 @SuppressWarnings("serial")
132 private java.util.List<com.google.ortools.sat.DenseMatrixProto> orbitopes_;
148 @java.lang.Override
149 public java.util.List<com.google.ortools.sat.DenseMatrixProto> getOrbitopesList() {
150 return orbitopes_;
151 }
167 @java.lang.Override
168 public java.util.List<? extends com.google.ortools.sat.DenseMatrixProtoOrBuilder>
170 return orbitopes_;
171 }
187 @java.lang.Override
188 public int getOrbitopesCount() {
189 return orbitopes_.size();
190 }
206 @java.lang.Override
208 return orbitopes_.get(index);
209 }
225 @java.lang.Override
227 int index) {
228 return orbitopes_.get(index);
229 }
230
231 private byte memoizedIsInitialized = -1;
232 @java.lang.Override
233 public final boolean isInitialized() {
234 byte isInitialized = memoizedIsInitialized;
235 if (isInitialized == 1) return true;
236 if (isInitialized == 0) return false;
237
238 memoizedIsInitialized = 1;
239 return true;
240 }
241
242 @java.lang.Override
243 public void writeTo(com.google.protobuf.CodedOutputStream output)
244 throws java.io.IOException {
245 for (int i = 0; i < permutations_.size(); i++) {
246 output.writeMessage(1, permutations_.get(i));
247 }
248 for (int i = 0; i < orbitopes_.size(); i++) {
249 output.writeMessage(2, orbitopes_.get(i));
250 }
251 getUnknownFields().writeTo(output);
252 }
253
254 @java.lang.Override
255 public int getSerializedSize() {
256 int size = memoizedSize;
257 if (size != -1) return size;
258
259 size = 0;
260 for (int i = 0; i < permutations_.size(); i++) {
261 size += com.google.protobuf.CodedOutputStream
262 .computeMessageSize(1, permutations_.get(i));
263 }
264 for (int i = 0; i < orbitopes_.size(); i++) {
265 size += com.google.protobuf.CodedOutputStream
266 .computeMessageSize(2, orbitopes_.get(i));
267 }
268 size += getUnknownFields().getSerializedSize();
269 memoizedSize = size;
270 return size;
271 }
272
273 @java.lang.Override
274 public boolean equals(final java.lang.Object obj) {
275 if (obj == this) {
276 return true;
277 }
278 if (!(obj instanceof com.google.ortools.sat.SymmetryProto)) {
279 return super.equals(obj);
280 }
281 com.google.ortools.sat.SymmetryProto other = (com.google.ortools.sat.SymmetryProto) obj;
282
284 .equals(other.getPermutationsList())) return false;
285 if (!getOrbitopesList()
286 .equals(other.getOrbitopesList())) return false;
287 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
288 return true;
289 }
290
291 @java.lang.Override
292 public int hashCode() {
293 if (memoizedHashCode != 0) {
294 return memoizedHashCode;
295 }
296 int hash = 41;
297 hash = (19 * hash) + getDescriptor().hashCode();
298 if (getPermutationsCount() > 0) {
299 hash = (37 * hash) + PERMUTATIONS_FIELD_NUMBER;
300 hash = (53 * hash) + getPermutationsList().hashCode();
301 }
302 if (getOrbitopesCount() > 0) {
303 hash = (37 * hash) + ORBITOPES_FIELD_NUMBER;
304 hash = (53 * hash) + getOrbitopesList().hashCode();
305 }
306 hash = (29 * hash) + getUnknownFields().hashCode();
307 memoizedHashCode = hash;
308 return hash;
309 }
310
312 java.nio.ByteBuffer data)
313 throws com.google.protobuf.InvalidProtocolBufferException {
314 return PARSER.parseFrom(data);
315 }
317 java.nio.ByteBuffer data,
318 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
319 throws com.google.protobuf.InvalidProtocolBufferException {
320 return PARSER.parseFrom(data, extensionRegistry);
321 }
323 com.google.protobuf.ByteString data)
324 throws com.google.protobuf.InvalidProtocolBufferException {
325 return PARSER.parseFrom(data);
326 }
328 com.google.protobuf.ByteString data,
329 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
330 throws com.google.protobuf.InvalidProtocolBufferException {
331 return PARSER.parseFrom(data, extensionRegistry);
332 }
334 throws com.google.protobuf.InvalidProtocolBufferException {
335 return PARSER.parseFrom(data);
336 }
338 byte[] data,
339 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
340 throws com.google.protobuf.InvalidProtocolBufferException {
341 return PARSER.parseFrom(data, extensionRegistry);
342 }
343 public static com.google.ortools.sat.SymmetryProto parseFrom(java.io.InputStream input)
344 throws java.io.IOException {
345 return com.google.protobuf.GeneratedMessageV3
346 .parseWithIOException(PARSER, input);
347 }
349 java.io.InputStream input,
350 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
351 throws java.io.IOException {
352 return com.google.protobuf.GeneratedMessageV3
353 .parseWithIOException(PARSER, input, extensionRegistry);
354 }
355
356 public static com.google.ortools.sat.SymmetryProto parseDelimitedFrom(java.io.InputStream input)
357 throws java.io.IOException {
358 return com.google.protobuf.GeneratedMessageV3
359 .parseDelimitedWithIOException(PARSER, input);
360 }
361
363 java.io.InputStream input,
364 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
365 throws java.io.IOException {
366 return com.google.protobuf.GeneratedMessageV3
367 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
368 }
370 com.google.protobuf.CodedInputStream input)
371 throws java.io.IOException {
372 return com.google.protobuf.GeneratedMessageV3
373 .parseWithIOException(PARSER, input);
374 }
376 com.google.protobuf.CodedInputStream input,
377 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
378 throws java.io.IOException {
379 return com.google.protobuf.GeneratedMessageV3
380 .parseWithIOException(PARSER, input, extensionRegistry);
381 }
382
383 @java.lang.Override
384 public Builder newBuilderForType() { return newBuilder(); }
385 public static Builder newBuilder() {
386 return DEFAULT_INSTANCE.toBuilder();
387 }
388 public static Builder newBuilder(com.google.ortools.sat.SymmetryProto prototype) {
389 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
390 }
391 @java.lang.Override
393 return this == DEFAULT_INSTANCE
394 ? new Builder() : new Builder().mergeFrom(this);
395 }
396
397 @java.lang.Override
399 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
400 Builder builder = new Builder(parent);
401 return builder;
402 }
421 public static final class Builder extends
422 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
423 // @@protoc_insertion_point(builder_implements:operations_research.sat.SymmetryProto)
424 com.google.ortools.sat.SymmetryProtoOrBuilder {
425 public static final com.google.protobuf.Descriptors.Descriptor
427 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_SymmetryProto_descriptor;
428 }
429
430 @java.lang.Override
431 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
433 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_SymmetryProto_fieldAccessorTable
434 .ensureFieldAccessorsInitialized(
435 com.google.ortools.sat.SymmetryProto.class, com.google.ortools.sat.SymmetryProto.Builder.class);
436 }
437
438 // Construct using com.google.ortools.sat.SymmetryProto.newBuilder()
439 private Builder() {
440
441 }
442
443 private Builder(
444 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
445 super(parent);
446
447 }
448 @java.lang.Override
449 public Builder clear() {
450 super.clear();
451 bitField0_ = 0;
452 if (permutationsBuilder_ == null) {
453 permutations_ = java.util.Collections.emptyList();
454 } else {
455 permutations_ = null;
456 permutationsBuilder_.clear();
457 }
458 bitField0_ = (bitField0_ & ~0x00000001);
459 if (orbitopesBuilder_ == null) {
460 orbitopes_ = java.util.Collections.emptyList();
461 } else {
462 orbitopes_ = null;
463 orbitopesBuilder_.clear();
464 }
465 bitField0_ = (bitField0_ & ~0x00000002);
466 return this;
467 }
468
469 @java.lang.Override
470 public com.google.protobuf.Descriptors.Descriptor
472 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_SymmetryProto_descriptor;
473 }
474
475 @java.lang.Override
477 return com.google.ortools.sat.SymmetryProto.getDefaultInstance();
478 }
479
480 @java.lang.Override
483 if (!result.isInitialized()) {
484 throw newUninitializedMessageException(result);
485 }
486 return result;
487 }
488
489 @java.lang.Override
491 com.google.ortools.sat.SymmetryProto result = new com.google.ortools.sat.SymmetryProto(this);
492 buildPartialRepeatedFields(result);
493 if (bitField0_ != 0) { buildPartial0(result); }
494 onBuilt();
495 return result;
496 }
497
498 private void buildPartialRepeatedFields(com.google.ortools.sat.SymmetryProto result) {
499 if (permutationsBuilder_ == null) {
500 if (((bitField0_ & 0x00000001) != 0)) {
501 permutations_ = java.util.Collections.unmodifiableList(permutations_);
502 bitField0_ = (bitField0_ & ~0x00000001);
503 }
504 result.permutations_ = permutations_;
505 } else {
506 result.permutations_ = permutationsBuilder_.build();
507 }
508 if (orbitopesBuilder_ == null) {
509 if (((bitField0_ & 0x00000002) != 0)) {
510 orbitopes_ = java.util.Collections.unmodifiableList(orbitopes_);
511 bitField0_ = (bitField0_ & ~0x00000002);
512 }
513 result.orbitopes_ = orbitopes_;
514 } else {
515 result.orbitopes_ = orbitopesBuilder_.build();
516 }
517 }
518
519 private void buildPartial0(com.google.ortools.sat.SymmetryProto result) {
520 int from_bitField0_ = bitField0_;
521 }
522
523 @java.lang.Override
524 public Builder clone() {
525 return super.clone();
526 }
527 @java.lang.Override
529 com.google.protobuf.Descriptors.FieldDescriptor field,
530 java.lang.Object value) {
531 return super.setField(field, value);
532 }
533 @java.lang.Override
535 com.google.protobuf.Descriptors.FieldDescriptor field) {
536 return super.clearField(field);
537 }
538 @java.lang.Override
540 com.google.protobuf.Descriptors.OneofDescriptor oneof) {
541 return super.clearOneof(oneof);
542 }
543 @java.lang.Override
545 com.google.protobuf.Descriptors.FieldDescriptor field,
546 int index, java.lang.Object value) {
547 return super.setRepeatedField(field, index, value);
548 }
549 @java.lang.Override
551 com.google.protobuf.Descriptors.FieldDescriptor field,
552 java.lang.Object value) {
553 return super.addRepeatedField(field, value);
554 }
555 @java.lang.Override
556 public Builder mergeFrom(com.google.protobuf.Message other) {
557 if (other instanceof com.google.ortools.sat.SymmetryProto) {
558 return mergeFrom((com.google.ortools.sat.SymmetryProto)other);
559 } else {
560 super.mergeFrom(other);
561 return this;
562 }
563 }
564
565 public Builder mergeFrom(com.google.ortools.sat.SymmetryProto other) {
566 if (other == com.google.ortools.sat.SymmetryProto.getDefaultInstance()) return this;
567 if (permutationsBuilder_ == null) {
568 if (!other.permutations_.isEmpty()) {
569 if (permutations_.isEmpty()) {
570 permutations_ = other.permutations_;
571 bitField0_ = (bitField0_ & ~0x00000001);
572 } else {
573 ensurePermutationsIsMutable();
574 permutations_.addAll(other.permutations_);
575 }
576 onChanged();
577 }
578 } else {
579 if (!other.permutations_.isEmpty()) {
580 if (permutationsBuilder_.isEmpty()) {
581 permutationsBuilder_.dispose();
582 permutationsBuilder_ = null;
583 permutations_ = other.permutations_;
584 bitField0_ = (bitField0_ & ~0x00000001);
585 permutationsBuilder_ =
586 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
587 getPermutationsFieldBuilder() : null;
588 } else {
589 permutationsBuilder_.addAllMessages(other.permutations_);
590 }
591 }
592 }
593 if (orbitopesBuilder_ == null) {
594 if (!other.orbitopes_.isEmpty()) {
595 if (orbitopes_.isEmpty()) {
596 orbitopes_ = other.orbitopes_;
597 bitField0_ = (bitField0_ & ~0x00000002);
598 } else {
599 ensureOrbitopesIsMutable();
600 orbitopes_.addAll(other.orbitopes_);
601 }
602 onChanged();
603 }
604 } else {
605 if (!other.orbitopes_.isEmpty()) {
606 if (orbitopesBuilder_.isEmpty()) {
607 orbitopesBuilder_.dispose();
608 orbitopesBuilder_ = null;
609 orbitopes_ = other.orbitopes_;
610 bitField0_ = (bitField0_ & ~0x00000002);
611 orbitopesBuilder_ =
612 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
613 getOrbitopesFieldBuilder() : null;
614 } else {
615 orbitopesBuilder_.addAllMessages(other.orbitopes_);
616 }
617 }
618 }
619 this.mergeUnknownFields(other.getUnknownFields());
620 onChanged();
621 return this;
622 }
623
624 @java.lang.Override
625 public final boolean isInitialized() {
626 return true;
627 }
628
629 @java.lang.Override
631 com.google.protobuf.CodedInputStream input,
632 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
633 throws java.io.IOException {
634 if (extensionRegistry == null) {
635 throw new java.lang.NullPointerException();
636 }
637 try {
638 boolean done = false;
639 while (!done) {
640 int tag = input.readTag();
641 switch (tag) {
642 case 0:
643 done = true;
644 break;
645 case 10: {
647 input.readMessage(
648 com.google.ortools.sat.SparsePermutationProto.parser(),
649 extensionRegistry);
650 if (permutationsBuilder_ == null) {
651 ensurePermutationsIsMutable();
652 permutations_.add(m);
653 } else {
654 permutationsBuilder_.addMessage(m);
655 }
656 break;
657 } // case 10
658 case 18: {
660 input.readMessage(
661 com.google.ortools.sat.DenseMatrixProto.parser(),
662 extensionRegistry);
663 if (orbitopesBuilder_ == null) {
664 ensureOrbitopesIsMutable();
665 orbitopes_.add(m);
666 } else {
667 orbitopesBuilder_.addMessage(m);
668 }
669 break;
670 } // case 18
671 default: {
672 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
673 done = true; // was an endgroup tag
674 }
675 break;
676 } // default:
677 } // switch (tag)
678 } // while (!done)
679 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
680 throw e.unwrapIOException();
681 } finally {
682 onChanged();
683 } // finally
684 return this;
685 }
686 private int bitField0_;
687
688 private java.util.List<com.google.ortools.sat.SparsePermutationProto> permutations_ =
689 java.util.Collections.emptyList();
690 private void ensurePermutationsIsMutable() {
691 if (!((bitField0_ & 0x00000001) != 0)) {
692 permutations_ = new java.util.ArrayList<com.google.ortools.sat.SparsePermutationProto>(permutations_);
693 bitField0_ |= 0x00000001;
694 }
695 }
696
697 private com.google.protobuf.RepeatedFieldBuilderV3<
698 com.google.ortools.sat.SparsePermutationProto, com.google.ortools.sat.SparsePermutationProto.Builder, com.google.ortools.sat.SparsePermutationProtoOrBuilder> permutationsBuilder_;
699
709 public java.util.List<com.google.ortools.sat.SparsePermutationProto> getPermutationsList() {
710 if (permutationsBuilder_ == null) {
711 return java.util.Collections.unmodifiableList(permutations_);
712 } else {
713 return permutationsBuilder_.getMessageList();
714 }
715 }
725 public int getPermutationsCount() {
726 if (permutationsBuilder_ == null) {
727 return permutations_.size();
728 } else {
729 return permutationsBuilder_.getCount();
730 }
731 }
742 if (permutationsBuilder_ == null) {
743 return permutations_.get(index);
744 } else {
745 return permutationsBuilder_.getMessage(index);
746 }
747 }
758 int index, com.google.ortools.sat.SparsePermutationProto value) {
759 if (permutationsBuilder_ == null) {
760 if (value == null) {
761 throw new NullPointerException();
762 }
763 ensurePermutationsIsMutable();
764 permutations_.set(index, value);
765 onChanged();
766 } else {
767 permutationsBuilder_.setMessage(index, value);
768 }
769 return this;
770 }
781 int index, com.google.ortools.sat.SparsePermutationProto.Builder builderForValue) {
782 if (permutationsBuilder_ == null) {
783 ensurePermutationsIsMutable();
784 permutations_.set(index, builderForValue.build());
785 onChanged();
786 } else {
787 permutationsBuilder_.setMessage(index, builderForValue.build());
788 }
789 return this;
790 }
800 public Builder addPermutations(com.google.ortools.sat.SparsePermutationProto value) {
801 if (permutationsBuilder_ == null) {
802 if (value == null) {
803 throw new NullPointerException();
804 }
805 ensurePermutationsIsMutable();
806 permutations_.add(value);
807 onChanged();
808 } else {
809 permutationsBuilder_.addMessage(value);
810 }
811 return this;
812 }
823 int index, com.google.ortools.sat.SparsePermutationProto value) {
824 if (permutationsBuilder_ == null) {
825 if (value == null) {
826 throw new NullPointerException();
827 }
828 ensurePermutationsIsMutable();
829 permutations_.add(index, value);
830 onChanged();
831 } else {
832 permutationsBuilder_.addMessage(index, value);
833 }
834 return this;
835 }
846 com.google.ortools.sat.SparsePermutationProto.Builder builderForValue) {
847 if (permutationsBuilder_ == null) {
848 ensurePermutationsIsMutable();
849 permutations_.add(builderForValue.build());
850 onChanged();
851 } else {
852 permutationsBuilder_.addMessage(builderForValue.build());
853 }
854 return this;
855 }
866 int index, com.google.ortools.sat.SparsePermutationProto.Builder builderForValue) {
867 if (permutationsBuilder_ == null) {
868 ensurePermutationsIsMutable();
869 permutations_.add(index, builderForValue.build());
870 onChanged();
871 } else {
872 permutationsBuilder_.addMessage(index, builderForValue.build());
873 }
874 return this;
875 }
886 java.lang.Iterable<? extends com.google.ortools.sat.SparsePermutationProto> values) {
887 if (permutationsBuilder_ == null) {
888 ensurePermutationsIsMutable();
889 com.google.protobuf.AbstractMessageLite.Builder.addAll(
890 values, permutations_);
891 onChanged();
892 } else {
893 permutationsBuilder_.addAllMessages(values);
894 }
895 return this;
896 }
907 if (permutationsBuilder_ == null) {
908 permutations_ = java.util.Collections.emptyList();
909 bitField0_ = (bitField0_ & ~0x00000001);
910 onChanged();
911 } else {
912 permutationsBuilder_.clear();
913 }
914 return this;
915 }
925 public Builder removePermutations(int index) {
926 if (permutationsBuilder_ == null) {
927 ensurePermutationsIsMutable();
928 permutations_.remove(index);
929 onChanged();
930 } else {
931 permutationsBuilder_.remove(index);
932 }
933 return this;
934 }
945 int index) {
946 return getPermutationsFieldBuilder().getBuilder(index);
947 }
958 int index) {
959 if (permutationsBuilder_ == null) {
960 return permutations_.get(index); } else {
961 return permutationsBuilder_.getMessageOrBuilder(index);
962 }
963 }
973 public java.util.List<? extends com.google.ortools.sat.SparsePermutationProtoOrBuilder>
975 if (permutationsBuilder_ != null) {
976 return permutationsBuilder_.getMessageOrBuilderList();
977 } else {
978 return java.util.Collections.unmodifiableList(permutations_);
979 }
980 }
991 return getPermutationsFieldBuilder().addBuilder(
992 com.google.ortools.sat.SparsePermutationProto.getDefaultInstance());
993 }
1004 int index) {
1005 return getPermutationsFieldBuilder().addBuilder(
1006 index, com.google.ortools.sat.SparsePermutationProto.getDefaultInstance());
1007 }
1017 public java.util.List<com.google.ortools.sat.SparsePermutationProto.Builder>
1019 return getPermutationsFieldBuilder().getBuilderList();
1020 }
1021 private com.google.protobuf.RepeatedFieldBuilderV3<
1022 com.google.ortools.sat.SparsePermutationProto, com.google.ortools.sat.SparsePermutationProto.Builder, com.google.ortools.sat.SparsePermutationProtoOrBuilder>
1023 getPermutationsFieldBuilder() {
1024 if (permutationsBuilder_ == null) {
1025 permutationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
1026 com.google.ortools.sat.SparsePermutationProto, com.google.ortools.sat.SparsePermutationProto.Builder, com.google.ortools.sat.SparsePermutationProtoOrBuilder>(
1027 permutations_,
1028 ((bitField0_ & 0x00000001) != 0),
1029 getParentForChildren(),
1030 isClean());
1031 permutations_ = null;
1032 }
1033 return permutationsBuilder_;
1034 }
1035
1036 private java.util.List<com.google.ortools.sat.DenseMatrixProto> orbitopes_ =
1037 java.util.Collections.emptyList();
1038 private void ensureOrbitopesIsMutable() {
1039 if (!((bitField0_ & 0x00000002) != 0)) {
1040 orbitopes_ = new java.util.ArrayList<com.google.ortools.sat.DenseMatrixProto>(orbitopes_);
1041 bitField0_ |= 0x00000002;
1042 }
1043 }
1044
1045 private com.google.protobuf.RepeatedFieldBuilderV3<
1046 com.google.ortools.sat.DenseMatrixProto, com.google.ortools.sat.DenseMatrixProto.Builder, com.google.ortools.sat.DenseMatrixProtoOrBuilder> orbitopesBuilder_;
1047
1063 public java.util.List<com.google.ortools.sat.DenseMatrixProto> getOrbitopesList() {
1064 if (orbitopesBuilder_ == null) {
1065 return java.util.Collections.unmodifiableList(orbitopes_);
1066 } else {
1067 return orbitopesBuilder_.getMessageList();
1068 }
1069 }
1085 public int getOrbitopesCount() {
1086 if (orbitopesBuilder_ == null) {
1087 return orbitopes_.size();
1088 } else {
1089 return orbitopesBuilder_.getCount();
1090 }
1091 }
1108 if (orbitopesBuilder_ == null) {
1109 return orbitopes_.get(index);
1110 } else {
1111 return orbitopesBuilder_.getMessage(index);
1112 }
1113 }
1130 int index, com.google.ortools.sat.DenseMatrixProto value) {
1131 if (orbitopesBuilder_ == null) {
1132 if (value == null) {
1133 throw new NullPointerException();
1134 }
1135 ensureOrbitopesIsMutable();
1136 orbitopes_.set(index, value);
1137 onChanged();
1138 } else {
1139 orbitopesBuilder_.setMessage(index, value);
1140 }
1141 return this;
1142 }
1159 int index, com.google.ortools.sat.DenseMatrixProto.Builder builderForValue) {
1160 if (orbitopesBuilder_ == null) {
1161 ensureOrbitopesIsMutable();
1162 orbitopes_.set(index, builderForValue.build());
1163 onChanged();
1164 } else {
1165 orbitopesBuilder_.setMessage(index, builderForValue.build());
1166 }
1167 return this;
1168 }
1184 public Builder addOrbitopes(com.google.ortools.sat.DenseMatrixProto value) {
1185 if (orbitopesBuilder_ == null) {
1186 if (value == null) {
1187 throw new NullPointerException();
1188 }
1189 ensureOrbitopesIsMutable();
1190 orbitopes_.add(value);
1191 onChanged();
1192 } else {
1193 orbitopesBuilder_.addMessage(value);
1194 }
1195 return this;
1196 }
1213 int index, com.google.ortools.sat.DenseMatrixProto value) {
1214 if (orbitopesBuilder_ == null) {
1215 if (value == null) {
1216 throw new NullPointerException();
1217 }
1218 ensureOrbitopesIsMutable();
1219 orbitopes_.add(index, value);
1220 onChanged();
1221 } else {
1222 orbitopesBuilder_.addMessage(index, value);
1223 }
1224 return this;
1225 }
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 }
1268 int index, com.google.ortools.sat.DenseMatrixProto.Builder builderForValue) {
1269 if (orbitopesBuilder_ == null) {
1270 ensureOrbitopesIsMutable();
1271 orbitopes_.add(index, builderForValue.build());
1272 onChanged();
1273 } else {
1274 orbitopesBuilder_.addMessage(index, builderForValue.build());
1275 }
1276 return this;
1277 }
1294 java.lang.Iterable<? extends com.google.ortools.sat.DenseMatrixProto> values) {
1295 if (orbitopesBuilder_ == null) {
1296 ensureOrbitopesIsMutable();
1297 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1298 values, orbitopes_);
1299 onChanged();
1300 } else {
1301 orbitopesBuilder_.addAllMessages(values);
1302 }
1303 return this;
1304 }
1321 if (orbitopesBuilder_ == null) {
1322 orbitopes_ = java.util.Collections.emptyList();
1323 bitField0_ = (bitField0_ & ~0x00000002);
1324 onChanged();
1325 } else {
1326 orbitopesBuilder_.clear();
1327 }
1328 return this;
1329 }
1345 public Builder removeOrbitopes(int index) {
1346 if (orbitopesBuilder_ == null) {
1347 ensureOrbitopesIsMutable();
1348 orbitopes_.remove(index);
1349 onChanged();
1350 } else {
1351 orbitopesBuilder_.remove(index);
1352 }
1353 return this;
1354 }
1371 int index) {
1372 return getOrbitopesFieldBuilder().getBuilder(index);
1373 }
1390 int index) {
1391 if (orbitopesBuilder_ == null) {
1392 return orbitopes_.get(index); } else {
1393 return orbitopesBuilder_.getMessageOrBuilder(index);
1394 }
1395 }
1411 public java.util.List<? extends com.google.ortools.sat.DenseMatrixProtoOrBuilder>
1413 if (orbitopesBuilder_ != null) {
1414 return orbitopesBuilder_.getMessageOrBuilderList();
1415 } else {
1416 return java.util.Collections.unmodifiableList(orbitopes_);
1417 }
1418 }
1435 return getOrbitopesFieldBuilder().addBuilder(
1436 com.google.ortools.sat.DenseMatrixProto.getDefaultInstance());
1437 }
1454 int index) {
1455 return getOrbitopesFieldBuilder().addBuilder(
1456 index, com.google.ortools.sat.DenseMatrixProto.getDefaultInstance());
1457 }
1473 public java.util.List<com.google.ortools.sat.DenseMatrixProto.Builder>
1475 return getOrbitopesFieldBuilder().getBuilderList();
1476 }
1477 private com.google.protobuf.RepeatedFieldBuilderV3<
1478 com.google.ortools.sat.DenseMatrixProto, com.google.ortools.sat.DenseMatrixProto.Builder, com.google.ortools.sat.DenseMatrixProtoOrBuilder>
1479 getOrbitopesFieldBuilder() {
1480 if (orbitopesBuilder_ == null) {
1481 orbitopesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
1482 com.google.ortools.sat.DenseMatrixProto, com.google.ortools.sat.DenseMatrixProto.Builder, com.google.ortools.sat.DenseMatrixProtoOrBuilder>(
1483 orbitopes_,
1484 ((bitField0_ & 0x00000002) != 0),
1485 getParentForChildren(),
1486 isClean());
1487 orbitopes_ = null;
1488 }
1489 return orbitopesBuilder_;
1490 }
1491 @java.lang.Override
1493 final com.google.protobuf.UnknownFieldSet unknownFields) {
1494 return super.setUnknownFields(unknownFields);
1495 }
1496
1497 @java.lang.Override
1499 final com.google.protobuf.UnknownFieldSet unknownFields) {
1500 return super.mergeUnknownFields(unknownFields);
1501 }
1502
1503
1504 // @@protoc_insertion_point(builder_scope:operations_research.sat.SymmetryProto)
1505 }
1506
1507 // @@protoc_insertion_point(class_scope:operations_research.sat.SymmetryProto)
1508 private static final com.google.ortools.sat.SymmetryProto DEFAULT_INSTANCE;
1509 static {
1510 DEFAULT_INSTANCE = new com.google.ortools.sat.SymmetryProto();
1511 }
1512
1514 return DEFAULT_INSTANCE;
1515 }
1516
1517 private static final com.google.protobuf.Parser<SymmetryProto>
1518 PARSER = new com.google.protobuf.AbstractParser<SymmetryProto>() {
1519 @java.lang.Override
1520 public SymmetryProto parsePartialFrom(
1521 com.google.protobuf.CodedInputStream input,
1522 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1523 throws com.google.protobuf.InvalidProtocolBufferException {
1524 Builder builder = newBuilder();
1525 try {
1526 builder.mergeFrom(input, extensionRegistry);
1527 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1528 throw e.setUnfinishedMessage(builder.buildPartial());
1529 } catch (com.google.protobuf.UninitializedMessageException e) {
1530 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1531 } catch (java.io.IOException e) {
1532 throw new com.google.protobuf.InvalidProtocolBufferException(e)
1533 .setUnfinishedMessage(builder.buildPartial());
1534 }
1535 return builder.buildPartial();
1536 }
1537 };
1538
1539 public static com.google.protobuf.Parser<SymmetryProto> parser() {
1540 return PARSER;
1541 }
1542
1543 @java.lang.Override
1544 public com.google.protobuf.Parser<SymmetryProto> getParserForType() {
1545 return PARSER;
1546 }
1547
1548 @java.lang.Override
1550 return DEFAULT_INSTANCE;
1551 }
1552
1553}
1554
java.util.List< com.google.ortools.sat.SparsePermutationProto.Builder > getPermutationsBuilderList()
Builder addOrbitopes(int index, com.google.ortools.sat.DenseMatrixProto.Builder builderForValue)
Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
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)
Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
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)
Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
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)
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
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 setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
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()
final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
com.google.ortools.sat.DenseMatrixProto.Builder getOrbitopesBuilder(int index)
com.google.ortools.sat.SparsePermutationProto getPermutations(int index)
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)
Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
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()
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
static com.google.ortools.sat.SymmetryProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
java.lang.Object newInstance(UnusedPrivateParameter unused)
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()
static com.google.ortools.sat.SymmetryProto getDefaultInstance()