Google OR-Tools v9.14
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// NO CHECKED-IN PROTOBUF GENCODE
3// source: ortools/sat/cp_model.proto
4// Protobuf Java Version: 4.31.1
5
6package com.google.ortools.sat;
7
26@com.google.protobuf.Generated
27public final class SymmetryProto extends
28 com.google.protobuf.GeneratedMessage implements
29 // @@protoc_insertion_point(message_implements:operations_research.sat.SymmetryProto)
31private static final long serialVersionUID = 0L;
32 static {
33 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
34 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
35 /* major= */ 4,
36 /* minor= */ 31,
37 /* patch= */ 1,
38 /* suffix= */ "",
39 SymmetryProto.class.getName());
40 }
41 // Use SymmetryProto.newBuilder() to construct.
42 private SymmetryProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
43 super(builder);
44 }
45 private SymmetryProto() {
46 permutations_ = java.util.Collections.emptyList();
47 orbitopes_ = java.util.Collections.emptyList();
48 }
49
50 public static final com.google.protobuf.Descriptors.Descriptor
52 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_SymmetryProto_descriptor;
53 }
54
55 @java.lang.Override
56 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
58 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_SymmetryProto_fieldAccessorTable
59 .ensureFieldAccessorsInitialized(
60 com.google.ortools.sat.SymmetryProto.class, com.google.ortools.sat.SymmetryProto.Builder.class);
61 }
62
63 public static final int PERMUTATIONS_FIELD_NUMBER = 1;
64 @SuppressWarnings("serial")
65 private java.util.List<com.google.ortools.sat.SparsePermutationProto> permutations_;
75 @java.lang.Override
77 return permutations_;
78 }
79
88 @java.lang.Override
89 public java.util.List<? extends com.google.ortools.sat.SparsePermutationProtoOrBuilder>
91 return permutations_;
92 }
93
102 @java.lang.Override
103 public int getPermutationsCount() {
104 return permutations_.size();
105 }
106
115 @java.lang.Override
117 return permutations_.get(index);
118 }
119
128 @java.lang.Override
130 int index) {
131 return permutations_.get(index);
132 }
133
134 public static final int ORBITOPES_FIELD_NUMBER = 2;
135 @SuppressWarnings("serial")
136 private java.util.List<com.google.ortools.sat.DenseMatrixProto> orbitopes_;
152 @java.lang.Override
153 public java.util.List<com.google.ortools.sat.DenseMatrixProto> getOrbitopesList() {
154 return orbitopes_;
155 }
156
171 @java.lang.Override
172 public java.util.List<? extends com.google.ortools.sat.DenseMatrixProtoOrBuilder>
174 return orbitopes_;
175 }
176
191 @java.lang.Override
192 public int getOrbitopesCount() {
193 return orbitopes_.size();
194 }
195
210 @java.lang.Override
212 return orbitopes_.get(index);
213 }
214
229 @java.lang.Override
231 int index) {
232 return orbitopes_.get(index);
233 }
234
235 private byte memoizedIsInitialized = -1;
236 @java.lang.Override
237 public final boolean isInitialized() {
238 byte isInitialized = memoizedIsInitialized;
239 if (isInitialized == 1) return true;
240 if (isInitialized == 0) return false;
241
242 memoizedIsInitialized = 1;
243 return true;
244 }
245
246 @java.lang.Override
247 public void writeTo(com.google.protobuf.CodedOutputStream output)
248 throws java.io.IOException {
249 for (int i = 0; i < permutations_.size(); i++) {
250 output.writeMessage(1, permutations_.get(i));
251 }
252 for (int i = 0; i < orbitopes_.size(); i++) {
253 output.writeMessage(2, orbitopes_.get(i));
254 }
255 getUnknownFields().writeTo(output);
256 }
257
258 @java.lang.Override
259 public int getSerializedSize() {
260 int size = memoizedSize;
261 if (size != -1) return size;
262
263 size = 0;
264 for (int i = 0; i < permutations_.size(); i++) {
265 size += com.google.protobuf.CodedOutputStream
266 .computeMessageSize(1, permutations_.get(i));
267 }
268 for (int i = 0; i < orbitopes_.size(); i++) {
269 size += com.google.protobuf.CodedOutputStream
270 .computeMessageSize(2, orbitopes_.get(i));
271 }
272 size += getUnknownFields().getSerializedSize();
273 memoizedSize = size;
274 return size;
275 }
276
277 @java.lang.Override
278 public boolean equals(final java.lang.Object obj) {
279 if (obj == this) {
280 return true;
281 }
282 if (!(obj instanceof com.google.ortools.sat.SymmetryProto)) {
283 return super.equals(obj);
284 }
285 com.google.ortools.sat.SymmetryProto other = (com.google.ortools.sat.SymmetryProto) obj;
286
288 .equals(other.getPermutationsList())) return false;
289 if (!getOrbitopesList()
290 .equals(other.getOrbitopesList())) return false;
291 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
292 return true;
293 }
294
295 @java.lang.Override
296 public int hashCode() {
297 if (memoizedHashCode != 0) {
298 return memoizedHashCode;
299 }
300 int hash = 41;
301 hash = (19 * hash) + getDescriptor().hashCode();
302 if (getPermutationsCount() > 0) {
303 hash = (37 * hash) + PERMUTATIONS_FIELD_NUMBER;
304 hash = (53 * hash) + getPermutationsList().hashCode();
305 }
306 if (getOrbitopesCount() > 0) {
307 hash = (37 * hash) + ORBITOPES_FIELD_NUMBER;
308 hash = (53 * hash) + getOrbitopesList().hashCode();
309 }
310 hash = (29 * hash) + getUnknownFields().hashCode();
311 memoizedHashCode = hash;
312 return hash;
313 }
314
316 java.nio.ByteBuffer data)
317 throws com.google.protobuf.InvalidProtocolBufferException {
318 return PARSER.parseFrom(data);
319 }
321 java.nio.ByteBuffer data,
322 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
323 throws com.google.protobuf.InvalidProtocolBufferException {
324 return PARSER.parseFrom(data, extensionRegistry);
325 }
327 com.google.protobuf.ByteString data)
328 throws com.google.protobuf.InvalidProtocolBufferException {
329 return PARSER.parseFrom(data);
330 }
332 com.google.protobuf.ByteString data,
333 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
334 throws com.google.protobuf.InvalidProtocolBufferException {
335 return PARSER.parseFrom(data, extensionRegistry);
336 }
338 throws com.google.protobuf.InvalidProtocolBufferException {
339 return PARSER.parseFrom(data);
340 }
342 byte[] data,
343 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
344 throws com.google.protobuf.InvalidProtocolBufferException {
345 return PARSER.parseFrom(data, extensionRegistry);
346 }
347 public static com.google.ortools.sat.SymmetryProto parseFrom(java.io.InputStream input)
348 throws java.io.IOException {
349 return com.google.protobuf.GeneratedMessage
350 .parseWithIOException(PARSER, input);
351 }
353 java.io.InputStream input,
354 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
355 throws java.io.IOException {
356 return com.google.protobuf.GeneratedMessage
357 .parseWithIOException(PARSER, input, extensionRegistry);
358 }
359
360 public static com.google.ortools.sat.SymmetryProto parseDelimitedFrom(java.io.InputStream input)
361 throws java.io.IOException {
362 return com.google.protobuf.GeneratedMessage
363 .parseDelimitedWithIOException(PARSER, input);
364 }
365
367 java.io.InputStream input,
368 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
369 throws java.io.IOException {
370 return com.google.protobuf.GeneratedMessage
371 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
372 }
374 com.google.protobuf.CodedInputStream input)
375 throws java.io.IOException {
376 return com.google.protobuf.GeneratedMessage
377 .parseWithIOException(PARSER, input);
378 }
380 com.google.protobuf.CodedInputStream input,
381 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
382 throws java.io.IOException {
383 return com.google.protobuf.GeneratedMessage
384 .parseWithIOException(PARSER, input, extensionRegistry);
385 }
386
387 @java.lang.Override
388 public Builder newBuilderForType() { return newBuilder(); }
389 public static Builder newBuilder() {
390 return DEFAULT_INSTANCE.toBuilder();
391 }
392 public static Builder newBuilder(com.google.ortools.sat.SymmetryProto prototype) {
393 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
394 }
395 @java.lang.Override
397 return this == DEFAULT_INSTANCE
398 ? new Builder() : new Builder().mergeFrom(this);
399 }
400
401 @java.lang.Override
403 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
404 Builder builder = new Builder(parent);
405 return builder;
406 }
407
425 public static final class Builder extends
426 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
427 // @@protoc_insertion_point(builder_implements:operations_research.sat.SymmetryProto)
429 public static final com.google.protobuf.Descriptors.Descriptor
431 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_SymmetryProto_descriptor;
432 }
433
434 @java.lang.Override
435 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
437 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_SymmetryProto_fieldAccessorTable
438 .ensureFieldAccessorsInitialized(
439 com.google.ortools.sat.SymmetryProto.class, com.google.ortools.sat.SymmetryProto.Builder.class);
440 }
441
442 // Construct using com.google.ortools.sat.SymmetryProto.newBuilder()
443 private Builder() {
444
445 }
446
447 private Builder(
448 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
449 super(parent);
450
451 }
452 @java.lang.Override
453 public Builder clear() {
454 super.clear();
455 bitField0_ = 0;
456 if (permutationsBuilder_ == null) {
457 permutations_ = java.util.Collections.emptyList();
458 } else {
459 permutations_ = null;
460 permutationsBuilder_.clear();
461 }
462 bitField0_ = (bitField0_ & ~0x00000001);
463 if (orbitopesBuilder_ == null) {
464 orbitopes_ = java.util.Collections.emptyList();
465 } else {
466 orbitopes_ = null;
467 orbitopesBuilder_.clear();
468 }
469 bitField0_ = (bitField0_ & ~0x00000002);
470 return this;
471 }
472
473 @java.lang.Override
474 public com.google.protobuf.Descriptors.Descriptor
476 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_SymmetryProto_descriptor;
477 }
478
479 @java.lang.Override
481 return com.google.ortools.sat.SymmetryProto.getDefaultInstance();
482 }
483
484 @java.lang.Override
487 if (!result.isInitialized()) {
488 throw newUninitializedMessageException(result);
489 }
490 return result;
491 }
492
493 @java.lang.Override
495 com.google.ortools.sat.SymmetryProto result = new com.google.ortools.sat.SymmetryProto(this);
496 buildPartialRepeatedFields(result);
497 if (bitField0_ != 0) { buildPartial0(result); }
498 onBuilt();
499 return result;
500 }
501
502 private void buildPartialRepeatedFields(com.google.ortools.sat.SymmetryProto result) {
503 if (permutationsBuilder_ == null) {
504 if (((bitField0_ & 0x00000001) != 0)) {
505 permutations_ = java.util.Collections.unmodifiableList(permutations_);
506 bitField0_ = (bitField0_ & ~0x00000001);
507 }
508 result.permutations_ = permutations_;
509 } else {
510 result.permutations_ = permutationsBuilder_.build();
511 }
512 if (orbitopesBuilder_ == null) {
513 if (((bitField0_ & 0x00000002) != 0)) {
514 orbitopes_ = java.util.Collections.unmodifiableList(orbitopes_);
515 bitField0_ = (bitField0_ & ~0x00000002);
516 }
517 result.orbitopes_ = orbitopes_;
518 } else {
519 result.orbitopes_ = orbitopesBuilder_.build();
520 }
521 }
522
523 private void buildPartial0(com.google.ortools.sat.SymmetryProto result) {
524 int from_bitField0_ = bitField0_;
525 }
526
527 @java.lang.Override
528 public Builder mergeFrom(com.google.protobuf.Message other) {
529 if (other instanceof com.google.ortools.sat.SymmetryProto) {
530 return mergeFrom((com.google.ortools.sat.SymmetryProto)other);
531 } else {
532 super.mergeFrom(other);
533 return this;
534 }
535 }
536
537 public Builder mergeFrom(com.google.ortools.sat.SymmetryProto other) {
538 if (other == com.google.ortools.sat.SymmetryProto.getDefaultInstance()) return this;
539 if (permutationsBuilder_ == null) {
540 if (!other.permutations_.isEmpty()) {
541 if (permutations_.isEmpty()) {
542 permutations_ = other.permutations_;
543 bitField0_ = (bitField0_ & ~0x00000001);
544 } else {
545 ensurePermutationsIsMutable();
546 permutations_.addAll(other.permutations_);
547 }
548 onChanged();
549 }
550 } else {
551 if (!other.permutations_.isEmpty()) {
552 if (permutationsBuilder_.isEmpty()) {
553 permutationsBuilder_.dispose();
554 permutationsBuilder_ = null;
555 permutations_ = other.permutations_;
556 bitField0_ = (bitField0_ & ~0x00000001);
557 permutationsBuilder_ =
558 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
559 internalGetPermutationsFieldBuilder() : null;
560 } else {
561 permutationsBuilder_.addAllMessages(other.permutations_);
562 }
563 }
564 }
565 if (orbitopesBuilder_ == null) {
566 if (!other.orbitopes_.isEmpty()) {
567 if (orbitopes_.isEmpty()) {
568 orbitopes_ = other.orbitopes_;
569 bitField0_ = (bitField0_ & ~0x00000002);
570 } else {
571 ensureOrbitopesIsMutable();
572 orbitopes_.addAll(other.orbitopes_);
573 }
574 onChanged();
575 }
576 } else {
577 if (!other.orbitopes_.isEmpty()) {
578 if (orbitopesBuilder_.isEmpty()) {
579 orbitopesBuilder_.dispose();
580 orbitopesBuilder_ = null;
581 orbitopes_ = other.orbitopes_;
582 bitField0_ = (bitField0_ & ~0x00000002);
583 orbitopesBuilder_ =
584 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
585 internalGetOrbitopesFieldBuilder() : null;
586 } else {
587 orbitopesBuilder_.addAllMessages(other.orbitopes_);
588 }
589 }
590 }
591 this.mergeUnknownFields(other.getUnknownFields());
592 onChanged();
593 return this;
594 }
595
596 @java.lang.Override
597 public final boolean isInitialized() {
598 return true;
599 }
600
601 @java.lang.Override
602 public Builder mergeFrom(
603 com.google.protobuf.CodedInputStream input,
604 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
605 throws java.io.IOException {
606 if (extensionRegistry == null) {
607 throw new java.lang.NullPointerException();
608 }
609 try {
610 boolean done = false;
611 while (!done) {
612 int tag = input.readTag();
613 switch (tag) {
614 case 0:
615 done = true;
616 break;
617 case 10: {
619 input.readMessage(
620 com.google.ortools.sat.SparsePermutationProto.parser(),
621 extensionRegistry);
622 if (permutationsBuilder_ == null) {
623 ensurePermutationsIsMutable();
624 permutations_.add(m);
625 } else {
626 permutationsBuilder_.addMessage(m);
627 }
628 break;
629 } // case 10
630 case 18: {
632 input.readMessage(
633 com.google.ortools.sat.DenseMatrixProto.parser(),
634 extensionRegistry);
635 if (orbitopesBuilder_ == null) {
636 ensureOrbitopesIsMutable();
637 orbitopes_.add(m);
638 } else {
639 orbitopesBuilder_.addMessage(m);
640 }
641 break;
642 } // case 18
643 default: {
644 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
645 done = true; // was an endgroup tag
646 }
647 break;
648 } // default:
649 } // switch (tag)
650 } // while (!done)
651 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
652 throw e.unwrapIOException();
653 } finally {
654 onChanged();
655 } // finally
656 return this;
657 }
658 private int bitField0_;
659
660 private java.util.List<com.google.ortools.sat.SparsePermutationProto> permutations_ =
661 java.util.Collections.emptyList();
662 private void ensurePermutationsIsMutable() {
663 if (!((bitField0_ & 0x00000001) != 0)) {
664 permutations_ = new java.util.ArrayList<com.google.ortools.sat.SparsePermutationProto>(permutations_);
665 bitField0_ |= 0x00000001;
666 }
667 }
668
669 private com.google.protobuf.RepeatedFieldBuilder<
670 com.google.ortools.sat.SparsePermutationProto, com.google.ortools.sat.SparsePermutationProto.Builder, com.google.ortools.sat.SparsePermutationProtoOrBuilder> permutationsBuilder_;
671
681 public java.util.List<com.google.ortools.sat.SparsePermutationProto> getPermutationsList() {
682 if (permutationsBuilder_ == null) {
683 return java.util.Collections.unmodifiableList(permutations_);
684 } else {
685 return permutationsBuilder_.getMessageList();
686 }
687 }
688
697 public int getPermutationsCount() {
698 if (permutationsBuilder_ == null) {
699 return permutations_.size();
700 } else {
701 return permutationsBuilder_.getCount();
702 }
703 }
704
714 if (permutationsBuilder_ == null) {
715 return permutations_.get(index);
716 } else {
717 return permutationsBuilder_.getMessage(index);
718 }
719 }
720
729 public Builder setPermutations(
730 int index, com.google.ortools.sat.SparsePermutationProto value) {
731 if (permutationsBuilder_ == null) {
732 if (value == null) {
733 throw new NullPointerException();
734 }
735 ensurePermutationsIsMutable();
736 permutations_.set(index, value);
737 onChanged();
738 } else {
739 permutationsBuilder_.setMessage(index, value);
740 }
741 return this;
742 }
743
752 public Builder setPermutations(
753 int index, com.google.ortools.sat.SparsePermutationProto.Builder builderForValue) {
754 if (permutationsBuilder_ == null) {
755 ensurePermutationsIsMutable();
756 permutations_.set(index, builderForValue.build());
757 onChanged();
758 } else {
759 permutationsBuilder_.setMessage(index, builderForValue.build());
760 }
761 return this;
762 }
763
772 public Builder addPermutations(com.google.ortools.sat.SparsePermutationProto value) {
773 if (permutationsBuilder_ == null) {
774 if (value == null) {
775 throw new NullPointerException();
776 }
777 ensurePermutationsIsMutable();
778 permutations_.add(value);
779 onChanged();
780 } else {
781 permutationsBuilder_.addMessage(value);
782 }
783 return this;
784 }
785
794 public Builder addPermutations(
795 int index, com.google.ortools.sat.SparsePermutationProto value) {
796 if (permutationsBuilder_ == null) {
797 if (value == null) {
798 throw new NullPointerException();
799 }
800 ensurePermutationsIsMutable();
801 permutations_.add(index, value);
802 onChanged();
803 } else {
804 permutationsBuilder_.addMessage(index, value);
805 }
806 return this;
807 }
808
817 public Builder addPermutations(
818 com.google.ortools.sat.SparsePermutationProto.Builder builderForValue) {
819 if (permutationsBuilder_ == null) {
820 ensurePermutationsIsMutable();
821 permutations_.add(builderForValue.build());
822 onChanged();
823 } else {
824 permutationsBuilder_.addMessage(builderForValue.build());
825 }
826 return this;
827 }
828
837 public Builder addPermutations(
838 int index, com.google.ortools.sat.SparsePermutationProto.Builder builderForValue) {
839 if (permutationsBuilder_ == null) {
840 ensurePermutationsIsMutable();
841 permutations_.add(index, builderForValue.build());
842 onChanged();
843 } else {
844 permutationsBuilder_.addMessage(index, builderForValue.build());
845 }
846 return this;
847 }
848
857 public Builder addAllPermutations(
858 java.lang.Iterable<? extends com.google.ortools.sat.SparsePermutationProto> values) {
859 if (permutationsBuilder_ == null) {
860 ensurePermutationsIsMutable();
861 com.google.protobuf.AbstractMessageLite.Builder.addAll(
862 values, permutations_);
863 onChanged();
864 } else {
865 permutationsBuilder_.addAllMessages(values);
866 }
867 return this;
868 }
869
878 public Builder clearPermutations() {
879 if (permutationsBuilder_ == null) {
880 permutations_ = java.util.Collections.emptyList();
881 bitField0_ = (bitField0_ & ~0x00000001);
882 onChanged();
883 } else {
884 permutationsBuilder_.clear();
885 }
886 return this;
887 }
888
897 public Builder removePermutations(int index) {
898 if (permutationsBuilder_ == null) {
899 ensurePermutationsIsMutable();
900 permutations_.remove(index);
901 onChanged();
902 } else {
903 permutationsBuilder_.remove(index);
904 }
905 return this;
906 }
907
917 int index) {
918 return internalGetPermutationsFieldBuilder().getBuilder(index);
919 }
920
930 int index) {
931 if (permutationsBuilder_ == null) {
932 return permutations_.get(index); } else {
933 return permutationsBuilder_.getMessageOrBuilder(index);
934 }
935 }
936
945 public java.util.List<? extends com.google.ortools.sat.SparsePermutationProtoOrBuilder>
947 if (permutationsBuilder_ != null) {
948 return permutationsBuilder_.getMessageOrBuilderList();
949 } else {
950 return java.util.Collections.unmodifiableList(permutations_);
951 }
952 }
953
963 return internalGetPermutationsFieldBuilder().addBuilder(
964 com.google.ortools.sat.SparsePermutationProto.getDefaultInstance());
965 }
966
976 int index) {
977 return internalGetPermutationsFieldBuilder().addBuilder(
978 index, com.google.ortools.sat.SparsePermutationProto.getDefaultInstance());
979 }
980
989 public java.util.List<com.google.ortools.sat.SparsePermutationProto.Builder>
991 return internalGetPermutationsFieldBuilder().getBuilderList();
992 }
993 private com.google.protobuf.RepeatedFieldBuilder<
994 com.google.ortools.sat.SparsePermutationProto, com.google.ortools.sat.SparsePermutationProto.Builder, com.google.ortools.sat.SparsePermutationProtoOrBuilder>
995 internalGetPermutationsFieldBuilder() {
996 if (permutationsBuilder_ == null) {
997 permutationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
998 com.google.ortools.sat.SparsePermutationProto, com.google.ortools.sat.SparsePermutationProto.Builder, com.google.ortools.sat.SparsePermutationProtoOrBuilder>(
999 permutations_,
1000 ((bitField0_ & 0x00000001) != 0),
1001 getParentForChildren(),
1002 isClean());
1003 permutations_ = null;
1004 }
1005 return permutationsBuilder_;
1006 }
1007
1008 private java.util.List<com.google.ortools.sat.DenseMatrixProto> orbitopes_ =
1009 java.util.Collections.emptyList();
1010 private void ensureOrbitopesIsMutable() {
1011 if (!((bitField0_ & 0x00000002) != 0)) {
1012 orbitopes_ = new java.util.ArrayList<com.google.ortools.sat.DenseMatrixProto>(orbitopes_);
1013 bitField0_ |= 0x00000002;
1014 }
1015 }
1016
1017 private com.google.protobuf.RepeatedFieldBuilder<
1018 com.google.ortools.sat.DenseMatrixProto, com.google.ortools.sat.DenseMatrixProto.Builder, com.google.ortools.sat.DenseMatrixProtoOrBuilder> orbitopesBuilder_;
1019
1035 public java.util.List<com.google.ortools.sat.DenseMatrixProto> getOrbitopesList() {
1036 if (orbitopesBuilder_ == null) {
1037 return java.util.Collections.unmodifiableList(orbitopes_);
1038 } else {
1039 return orbitopesBuilder_.getMessageList();
1040 }
1041 }
1042
1057 public int getOrbitopesCount() {
1058 if (orbitopesBuilder_ == null) {
1059 return orbitopes_.size();
1060 } else {
1061 return orbitopesBuilder_.getCount();
1062 }
1063 }
1064
1080 if (orbitopesBuilder_ == null) {
1081 return orbitopes_.get(index);
1082 } else {
1083 return orbitopesBuilder_.getMessage(index);
1084 }
1085 }
1086
1101 public Builder setOrbitopes(
1102 int index, com.google.ortools.sat.DenseMatrixProto value) {
1103 if (orbitopesBuilder_ == null) {
1104 if (value == null) {
1105 throw new NullPointerException();
1106 }
1107 ensureOrbitopesIsMutable();
1108 orbitopes_.set(index, value);
1109 onChanged();
1110 } else {
1111 orbitopesBuilder_.setMessage(index, value);
1112 }
1113 return this;
1114 }
1115
1130 public Builder setOrbitopes(
1131 int index, com.google.ortools.sat.DenseMatrixProto.Builder builderForValue) {
1132 if (orbitopesBuilder_ == null) {
1133 ensureOrbitopesIsMutable();
1134 orbitopes_.set(index, builderForValue.build());
1135 onChanged();
1136 } else {
1137 orbitopesBuilder_.setMessage(index, builderForValue.build());
1138 }
1139 return this;
1140 }
1141
1156 public Builder addOrbitopes(com.google.ortools.sat.DenseMatrixProto value) {
1157 if (orbitopesBuilder_ == null) {
1158 if (value == null) {
1159 throw new NullPointerException();
1160 }
1161 ensureOrbitopesIsMutable();
1162 orbitopes_.add(value);
1163 onChanged();
1164 } else {
1165 orbitopesBuilder_.addMessage(value);
1166 }
1167 return this;
1168 }
1169
1184 public Builder addOrbitopes(
1185 int index, com.google.ortools.sat.DenseMatrixProto value) {
1186 if (orbitopesBuilder_ == null) {
1187 if (value == null) {
1188 throw new NullPointerException();
1189 }
1190 ensureOrbitopesIsMutable();
1191 orbitopes_.add(index, value);
1192 onChanged();
1193 } else {
1194 orbitopesBuilder_.addMessage(index, value);
1195 }
1196 return this;
1197 }
1198
1213 public Builder addOrbitopes(
1214 com.google.ortools.sat.DenseMatrixProto.Builder builderForValue) {
1215 if (orbitopesBuilder_ == null) {
1216 ensureOrbitopesIsMutable();
1217 orbitopes_.add(builderForValue.build());
1218 onChanged();
1219 } else {
1220 orbitopesBuilder_.addMessage(builderForValue.build());
1221 }
1222 return this;
1223 }
1224
1239 public Builder addOrbitopes(
1240 int index, com.google.ortools.sat.DenseMatrixProto.Builder builderForValue) {
1241 if (orbitopesBuilder_ == null) {
1242 ensureOrbitopesIsMutable();
1243 orbitopes_.add(index, builderForValue.build());
1244 onChanged();
1245 } else {
1246 orbitopesBuilder_.addMessage(index, builderForValue.build());
1247 }
1248 return this;
1249 }
1250
1265 public Builder addAllOrbitopes(
1266 java.lang.Iterable<? extends com.google.ortools.sat.DenseMatrixProto> values) {
1267 if (orbitopesBuilder_ == null) {
1268 ensureOrbitopesIsMutable();
1269 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1270 values, orbitopes_);
1271 onChanged();
1272 } else {
1273 orbitopesBuilder_.addAllMessages(values);
1274 }
1275 return this;
1276 }
1277
1292 public Builder clearOrbitopes() {
1293 if (orbitopesBuilder_ == null) {
1294 orbitopes_ = java.util.Collections.emptyList();
1295 bitField0_ = (bitField0_ & ~0x00000002);
1296 onChanged();
1297 } else {
1298 orbitopesBuilder_.clear();
1299 }
1300 return this;
1301 }
1302
1317 public Builder removeOrbitopes(int index) {
1318 if (orbitopesBuilder_ == null) {
1319 ensureOrbitopesIsMutable();
1320 orbitopes_.remove(index);
1321 onChanged();
1322 } else {
1323 orbitopesBuilder_.remove(index);
1324 }
1325 return this;
1326 }
1327
1343 int index) {
1344 return internalGetOrbitopesFieldBuilder().getBuilder(index);
1345 }
1346
1362 int index) {
1363 if (orbitopesBuilder_ == null) {
1364 return orbitopes_.get(index); } else {
1365 return orbitopesBuilder_.getMessageOrBuilder(index);
1366 }
1367 }
1368
1383 public java.util.List<? extends com.google.ortools.sat.DenseMatrixProtoOrBuilder>
1385 if (orbitopesBuilder_ != null) {
1386 return orbitopesBuilder_.getMessageOrBuilderList();
1387 } else {
1388 return java.util.Collections.unmodifiableList(orbitopes_);
1389 }
1390 }
1391
1407 return internalGetOrbitopesFieldBuilder().addBuilder(
1408 com.google.ortools.sat.DenseMatrixProto.getDefaultInstance());
1409 }
1410
1426 int index) {
1427 return internalGetOrbitopesFieldBuilder().addBuilder(
1428 index, com.google.ortools.sat.DenseMatrixProto.getDefaultInstance());
1429 }
1430
1445 public java.util.List<com.google.ortools.sat.DenseMatrixProto.Builder>
1447 return internalGetOrbitopesFieldBuilder().getBuilderList();
1448 }
1449 private com.google.protobuf.RepeatedFieldBuilder<
1450 com.google.ortools.sat.DenseMatrixProto, com.google.ortools.sat.DenseMatrixProto.Builder, com.google.ortools.sat.DenseMatrixProtoOrBuilder>
1451 internalGetOrbitopesFieldBuilder() {
1452 if (orbitopesBuilder_ == null) {
1453 orbitopesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
1454 com.google.ortools.sat.DenseMatrixProto, com.google.ortools.sat.DenseMatrixProto.Builder, com.google.ortools.sat.DenseMatrixProtoOrBuilder>(
1455 orbitopes_,
1456 ((bitField0_ & 0x00000002) != 0),
1457 getParentForChildren(),
1458 isClean());
1459 orbitopes_ = null;
1460 }
1461 return orbitopesBuilder_;
1462 }
1463
1464 // @@protoc_insertion_point(builder_scope:operations_research.sat.SymmetryProto)
1465 }
1466
1467 // @@protoc_insertion_point(class_scope:operations_research.sat.SymmetryProto)
1468 private static final com.google.ortools.sat.SymmetryProto DEFAULT_INSTANCE;
1469 static {
1470 DEFAULT_INSTANCE = new com.google.ortools.sat.SymmetryProto();
1471 }
1472
1474 return DEFAULT_INSTANCE;
1475 }
1476
1477 private static final com.google.protobuf.Parser<SymmetryProto>
1478 PARSER = new com.google.protobuf.AbstractParser<SymmetryProto>() {
1479 @java.lang.Override
1480 public SymmetryProto parsePartialFrom(
1481 com.google.protobuf.CodedInputStream input,
1482 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1483 throws com.google.protobuf.InvalidProtocolBufferException {
1484 Builder builder = newBuilder();
1485 try {
1486 builder.mergeFrom(input, extensionRegistry);
1487 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1488 throw e.setUnfinishedMessage(builder.buildPartial());
1489 } catch (com.google.protobuf.UninitializedMessageException e) {
1490 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1491 } catch (java.io.IOException e) {
1492 throw new com.google.protobuf.InvalidProtocolBufferException(e)
1493 .setUnfinishedMessage(builder.buildPartial());
1494 }
1495 return builder.buildPartial();
1496 }
1497 };
1498
1499 public static com.google.protobuf.Parser<SymmetryProto> parser() {
1500 return PARSER;
1501 }
1502
1503 @java.lang.Override
1504 public com.google.protobuf.Parser<SymmetryProto> getParserForType() {
1505 return PARSER;
1506 }
1507
1508 @java.lang.Override
1510 return DEFAULT_INSTANCE;
1511 }
1512
1513}
1514
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()