Java Reference

Java Reference

SparsePermutationProto.java
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: ortools/sat/cp_model.proto
3
4package com.google.ortools.sat;
5
14public final class SparsePermutationProto extends
15 com.google.protobuf.GeneratedMessageV3 implements
16 // @@protoc_insertion_point(message_implements:operations_research.sat.SparsePermutationProto)
18private static final long serialVersionUID = 0L;
19 // Use SparsePermutationProto.newBuilder() to construct.
20 private SparsePermutationProto(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
21 super(builder);
22 }
23 private SparsePermutationProto() {
24 support_ = emptyIntList();
25 cycleSizes_ = emptyIntList();
26 }
27
28 @java.lang.Override
29 @SuppressWarnings({"unused"})
30 protected java.lang.Object newInstance(
31 UnusedPrivateParameter unused) {
32 return new SparsePermutationProto();
33 }
34
35 @java.lang.Override
36 public final com.google.protobuf.UnknownFieldSet
38 return this.unknownFields;
39 }
41 com.google.protobuf.CodedInputStream input,
42 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
43 throws com.google.protobuf.InvalidProtocolBufferException {
44 this();
45 if (extensionRegistry == null) {
46 throw new java.lang.NullPointerException();
47 }
48 int mutable_bitField0_ = 0;
49 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
50 com.google.protobuf.UnknownFieldSet.newBuilder();
51 try {
52 boolean done = false;
53 while (!done) {
54 int tag = input.readTag();
55 switch (tag) {
56 case 0:
57 done = true;
58 break;
59 case 8: {
60 if (!((mutable_bitField0_ & 0x00000001) != 0)) {
61 support_ = newIntList();
62 mutable_bitField0_ |= 0x00000001;
63 }
64 support_.addInt(input.readInt32());
65 break;
66 }
67 case 10: {
68 int length = input.readRawVarint32();
69 int limit = input.pushLimit(length);
70 if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
71 support_ = newIntList();
72 mutable_bitField0_ |= 0x00000001;
73 }
74 while (input.getBytesUntilLimit() > 0) {
75 support_.addInt(input.readInt32());
76 }
77 input.popLimit(limit);
78 break;
79 }
80 case 16: {
81 if (!((mutable_bitField0_ & 0x00000002) != 0)) {
82 cycleSizes_ = newIntList();
83 mutable_bitField0_ |= 0x00000002;
84 }
85 cycleSizes_.addInt(input.readInt32());
86 break;
87 }
88 case 18: {
89 int length = input.readRawVarint32();
90 int limit = input.pushLimit(length);
91 if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
92 cycleSizes_ = newIntList();
93 mutable_bitField0_ |= 0x00000002;
94 }
95 while (input.getBytesUntilLimit() > 0) {
96 cycleSizes_.addInt(input.readInt32());
97 }
98 input.popLimit(limit);
99 break;
100 }
101 default: {
102 if (!parseUnknownField(
103 input, unknownFields, extensionRegistry, tag)) {
104 done = true;
105 }
106 break;
107 }
108 }
109 }
110 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
111 throw e.setUnfinishedMessage(this);
112 } catch (java.io.IOException e) {
113 throw new com.google.protobuf.InvalidProtocolBufferException(
114 e).setUnfinishedMessage(this);
115 } finally {
116 if (((mutable_bitField0_ & 0x00000001) != 0)) {
117 support_.makeImmutable(); // C
118 }
119 if (((mutable_bitField0_ & 0x00000002) != 0)) {
120 cycleSizes_.makeImmutable(); // C
121 }
122 this.unknownFields = unknownFields.build();
123 makeExtensionsImmutable();
124 }
125 }
126 public static final com.google.protobuf.Descriptors.Descriptor
128 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_SparsePermutationProto_descriptor;
129 }
130
131 @java.lang.Override
132 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
134 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_SparsePermutationProto_fieldAccessorTable
135 .ensureFieldAccessorsInitialized(
136 com.google.ortools.sat.SparsePermutationProto.class, com.google.ortools.sat.SparsePermutationProto.Builder.class);
137 }
138
139 public static final int SUPPORT_FIELD_NUMBER = 1;
140 private com.google.protobuf.Internal.IntList support_;
150 @java.lang.Override
151 public java.util.List<java.lang.Integer>
153 return support_;
154 }
164 public int getSupportCount() {
165 return support_.size();
166 }
177 public int getSupport(int index) {
178 return support_.getInt(index);
179 }
180 private int supportMemoizedSerializedSize = -1;
181
182 public static final int CYCLE_SIZES_FIELD_NUMBER = 2;
183 private com.google.protobuf.Internal.IntList cycleSizes_;
188 @java.lang.Override
189 public java.util.List<java.lang.Integer>
191 return cycleSizes_;
192 }
197 public int getCycleSizesCount() {
198 return cycleSizes_.size();
199 }
205 public int getCycleSizes(int index) {
206 return cycleSizes_.getInt(index);
207 }
208 private int cycleSizesMemoizedSerializedSize = -1;
209
210 private byte memoizedIsInitialized = -1;
211 @java.lang.Override
212 public final boolean isInitialized() {
213 byte isInitialized = memoizedIsInitialized;
214 if (isInitialized == 1) return true;
215 if (isInitialized == 0) return false;
216
217 memoizedIsInitialized = 1;
218 return true;
219 }
220
221 @java.lang.Override
222 public void writeTo(com.google.protobuf.CodedOutputStream output)
223 throws java.io.IOException {
225 if (getSupportList().size() > 0) {
226 output.writeUInt32NoTag(10);
227 output.writeUInt32NoTag(supportMemoizedSerializedSize);
228 }
229 for (int i = 0; i < support_.size(); i++) {
230 output.writeInt32NoTag(support_.getInt(i));
231 }
232 if (getCycleSizesList().size() > 0) {
233 output.writeUInt32NoTag(18);
234 output.writeUInt32NoTag(cycleSizesMemoizedSerializedSize);
235 }
236 for (int i = 0; i < cycleSizes_.size(); i++) {
237 output.writeInt32NoTag(cycleSizes_.getInt(i));
238 }
239 unknownFields.writeTo(output);
240 }
241
242 @java.lang.Override
243 public int getSerializedSize() {
244 int size = memoizedSize;
245 if (size != -1) return size;
246
247 size = 0;
248 {
249 int dataSize = 0;
250 for (int i = 0; i < support_.size(); i++) {
251 dataSize += com.google.protobuf.CodedOutputStream
252 .computeInt32SizeNoTag(support_.getInt(i));
253 }
254 size += dataSize;
255 if (!getSupportList().isEmpty()) {
256 size += 1;
257 size += com.google.protobuf.CodedOutputStream
258 .computeInt32SizeNoTag(dataSize);
259 }
260 supportMemoizedSerializedSize = dataSize;
261 }
262 {
263 int dataSize = 0;
264 for (int i = 0; i < cycleSizes_.size(); i++) {
265 dataSize += com.google.protobuf.CodedOutputStream
266 .computeInt32SizeNoTag(cycleSizes_.getInt(i));
267 }
268 size += dataSize;
269 if (!getCycleSizesList().isEmpty()) {
270 size += 1;
271 size += com.google.protobuf.CodedOutputStream
272 .computeInt32SizeNoTag(dataSize);
273 }
274 cycleSizesMemoizedSerializedSize = dataSize;
275 }
276 size += unknownFields.getSerializedSize();
277 memoizedSize = size;
278 return size;
279 }
280
281 @java.lang.Override
282 public boolean equals(final java.lang.Object obj) {
283 if (obj == this) {
284 return true;
285 }
286 if (!(obj instanceof com.google.ortools.sat.SparsePermutationProto)) {
287 return super.equals(obj);
288 }
289 com.google.ortools.sat.SparsePermutationProto other = (com.google.ortools.sat.SparsePermutationProto) obj;
290
291 if (!getSupportList()
292 .equals(other.getSupportList())) return false;
293 if (!getCycleSizesList()
294 .equals(other.getCycleSizesList())) return false;
295 if (!unknownFields.equals(other.unknownFields)) return false;
296 return true;
297 }
298
299 @java.lang.Override
300 public int hashCode() {
301 if (memoizedHashCode != 0) {
302 return memoizedHashCode;
303 }
304 int hash = 41;
305 hash = (19 * hash) + getDescriptor().hashCode();
306 if (getSupportCount() > 0) {
307 hash = (37 * hash) + SUPPORT_FIELD_NUMBER;
308 hash = (53 * hash) + getSupportList().hashCode();
309 }
310 if (getCycleSizesCount() > 0) {
311 hash = (37 * hash) + CYCLE_SIZES_FIELD_NUMBER;
312 hash = (53 * hash) + getCycleSizesList().hashCode();
313 }
314 hash = (29 * hash) + unknownFields.hashCode();
315 memoizedHashCode = hash;
316 return hash;
317 }
318
319 public static com.google.ortools.sat.SparsePermutationProto parseFrom(
320 java.nio.ByteBuffer data)
321 throws com.google.protobuf.InvalidProtocolBufferException {
322 return PARSER.parseFrom(data);
323 }
324 public static com.google.ortools.sat.SparsePermutationProto parseFrom(
325 java.nio.ByteBuffer data,
326 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
327 throws com.google.protobuf.InvalidProtocolBufferException {
328 return PARSER.parseFrom(data, extensionRegistry);
329 }
330 public static com.google.ortools.sat.SparsePermutationProto parseFrom(
331 com.google.protobuf.ByteString data)
332 throws com.google.protobuf.InvalidProtocolBufferException {
333 return PARSER.parseFrom(data);
334 }
335 public static com.google.ortools.sat.SparsePermutationProto parseFrom(
336 com.google.protobuf.ByteString data,
337 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
338 throws com.google.protobuf.InvalidProtocolBufferException {
339 return PARSER.parseFrom(data, extensionRegistry);
340 }
341 public static com.google.ortools.sat.SparsePermutationProto parseFrom(byte[] data)
342 throws com.google.protobuf.InvalidProtocolBufferException {
343 return PARSER.parseFrom(data);
344 }
345 public static com.google.ortools.sat.SparsePermutationProto parseFrom(
346 byte[] data,
347 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
348 throws com.google.protobuf.InvalidProtocolBufferException {
349 return PARSER.parseFrom(data, extensionRegistry);
350 }
351 public static com.google.ortools.sat.SparsePermutationProto parseFrom(java.io.InputStream input)
352 throws java.io.IOException {
353 return com.google.protobuf.GeneratedMessageV3
354 .parseWithIOException(PARSER, input);
355 }
356 public static com.google.ortools.sat.SparsePermutationProto parseFrom(
357 java.io.InputStream input,
358 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
359 throws java.io.IOException {
360 return com.google.protobuf.GeneratedMessageV3
361 .parseWithIOException(PARSER, input, extensionRegistry);
362 }
363 public static com.google.ortools.sat.SparsePermutationProto parseDelimitedFrom(java.io.InputStream input)
364 throws java.io.IOException {
365 return com.google.protobuf.GeneratedMessageV3
366 .parseDelimitedWithIOException(PARSER, input);
367 }
368 public static com.google.ortools.sat.SparsePermutationProto parseDelimitedFrom(
369 java.io.InputStream input,
370 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
371 throws java.io.IOException {
372 return com.google.protobuf.GeneratedMessageV3
373 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
374 }
375 public static com.google.ortools.sat.SparsePermutationProto parseFrom(
376 com.google.protobuf.CodedInputStream input)
377 throws java.io.IOException {
378 return com.google.protobuf.GeneratedMessageV3
379 .parseWithIOException(PARSER, input);
380 }
381 public static com.google.ortools.sat.SparsePermutationProto parseFrom(
382 com.google.protobuf.CodedInputStream input,
383 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
384 throws java.io.IOException {
385 return com.google.protobuf.GeneratedMessageV3
386 .parseWithIOException(PARSER, input, extensionRegistry);
387 }
388
389 @java.lang.Override
390 public Builder newBuilderForType() { return newBuilder(); }
391 public static Builder newBuilder() {
392 return DEFAULT_INSTANCE.toBuilder();
393 }
394 public static Builder newBuilder(com.google.ortools.sat.SparsePermutationProto prototype) {
395 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
396 }
397 @java.lang.Override
399 return this == DEFAULT_INSTANCE
400 ? new Builder() : new Builder().mergeFrom(this);
401 }
402
403 @java.lang.Override
405 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
406 Builder builder = new Builder(parent);
407 return builder;
408 }
417 public static final class Builder extends
418 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
419 // @@protoc_insertion_point(builder_implements:operations_research.sat.SparsePermutationProto)
420 com.google.ortools.sat.SparsePermutationProtoOrBuilder {
421 public static final com.google.protobuf.Descriptors.Descriptor
423 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_SparsePermutationProto_descriptor;
424 }
425
426 @java.lang.Override
427 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
429 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_SparsePermutationProto_fieldAccessorTable
430 .ensureFieldAccessorsInitialized(
431 com.google.ortools.sat.SparsePermutationProto.class, com.google.ortools.sat.SparsePermutationProto.Builder.class);
432 }
433
434 // Construct using com.google.ortools.sat.SparsePermutationProto.newBuilder()
435 private Builder() {
436 maybeForceBuilderInitialization();
437 }
438
439 private Builder(
440 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
441 super(parent);
442 maybeForceBuilderInitialization();
443 }
444 private void maybeForceBuilderInitialization() {
445 if (com.google.protobuf.GeneratedMessageV3
446 .alwaysUseFieldBuilders) {
447 }
448 }
449 @java.lang.Override
450 public Builder clear() {
451 super.clear();
452 support_ = emptyIntList();
453 bitField0_ = (bitField0_ & ~0x00000001);
454 cycleSizes_ = emptyIntList();
455 bitField0_ = (bitField0_ & ~0x00000002);
456 return this;
457 }
458
459 @java.lang.Override
460 public com.google.protobuf.Descriptors.Descriptor
462 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_SparsePermutationProto_descriptor;
463 }
464
465 @java.lang.Override
466 public com.google.ortools.sat.SparsePermutationProto getDefaultInstanceForType() {
467 return com.google.ortools.sat.SparsePermutationProto.getDefaultInstance();
468 }
469
470 @java.lang.Override
471 public com.google.ortools.sat.SparsePermutationProto build() {
472 com.google.ortools.sat.SparsePermutationProto result = buildPartial();
473 if (!result.isInitialized()) {
474 throw newUninitializedMessageException(result);
475 }
476 return result;
477 }
478
479 @java.lang.Override
480 public com.google.ortools.sat.SparsePermutationProto buildPartial() {
481 com.google.ortools.sat.SparsePermutationProto result = new com.google.ortools.sat.SparsePermutationProto(this);
482 int from_bitField0_ = bitField0_;
483 if (((bitField0_ & 0x00000001) != 0)) {
484 support_.makeImmutable();
485 bitField0_ = (bitField0_ & ~0x00000001);
486 }
487 result.support_ = support_;
488 if (((bitField0_ & 0x00000002) != 0)) {
489 cycleSizes_.makeImmutable();
490 bitField0_ = (bitField0_ & ~0x00000002);
491 }
492 result.cycleSizes_ = cycleSizes_;
493 onBuilt();
494 return result;
495 }
496
497 @java.lang.Override
498 public Builder clone() {
499 return super.clone();
500 }
501 @java.lang.Override
503 com.google.protobuf.Descriptors.FieldDescriptor field,
504 java.lang.Object value) {
505 return super.setField(field, value);
506 }
507 @java.lang.Override
509 com.google.protobuf.Descriptors.FieldDescriptor field) {
510 return super.clearField(field);
511 }
512 @java.lang.Override
514 com.google.protobuf.Descriptors.OneofDescriptor oneof) {
515 return super.clearOneof(oneof);
516 }
517 @java.lang.Override
519 com.google.protobuf.Descriptors.FieldDescriptor field,
520 int index, java.lang.Object value) {
521 return super.setRepeatedField(field, index, value);
522 }
523 @java.lang.Override
525 com.google.protobuf.Descriptors.FieldDescriptor field,
526 java.lang.Object value) {
527 return super.addRepeatedField(field, value);
528 }
529 @java.lang.Override
530 public Builder mergeFrom(com.google.protobuf.Message other) {
531 if (other instanceof com.google.ortools.sat.SparsePermutationProto) {
532 return mergeFrom((com.google.ortools.sat.SparsePermutationProto)other);
533 } else {
534 super.mergeFrom(other);
535 return this;
536 }
537 }
538
539 public Builder mergeFrom(com.google.ortools.sat.SparsePermutationProto other) {
540 if (other == com.google.ortools.sat.SparsePermutationProto.getDefaultInstance()) return this;
541 if (!other.support_.isEmpty()) {
542 if (support_.isEmpty()) {
543 support_ = other.support_;
544 bitField0_ = (bitField0_ & ~0x00000001);
545 } else {
546 ensureSupportIsMutable();
547 support_.addAll(other.support_);
548 }
549 onChanged();
550 }
551 if (!other.cycleSizes_.isEmpty()) {
552 if (cycleSizes_.isEmpty()) {
553 cycleSizes_ = other.cycleSizes_;
554 bitField0_ = (bitField0_ & ~0x00000002);
555 } else {
556 ensureCycleSizesIsMutable();
557 cycleSizes_.addAll(other.cycleSizes_);
558 }
559 onChanged();
560 }
561 this.mergeUnknownFields(other.unknownFields);
562 onChanged();
563 return this;
564 }
565
566 @java.lang.Override
567 public final boolean isInitialized() {
568 return true;
569 }
570
571 @java.lang.Override
573 com.google.protobuf.CodedInputStream input,
574 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
575 throws java.io.IOException {
576 com.google.ortools.sat.SparsePermutationProto parsedMessage = null;
577 try {
578 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
579 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
580 parsedMessage = (com.google.ortools.sat.SparsePermutationProto) e.getUnfinishedMessage();
581 throw e.unwrapIOException();
582 } finally {
583 if (parsedMessage != null) {
584 mergeFrom(parsedMessage);
585 }
586 }
587 return this;
588 }
589 private int bitField0_;
590
591 private com.google.protobuf.Internal.IntList support_ = emptyIntList();
592 private void ensureSupportIsMutable() {
593 if (!((bitField0_ & 0x00000001) != 0)) {
594 support_ = mutableCopy(support_);
595 bitField0_ |= 0x00000001;
596 }
597 }
607 public java.util.List<java.lang.Integer>
609 return ((bitField0_ & 0x00000001) != 0) ?
610 java.util.Collections.unmodifiableList(support_) : support_;
611 }
621 public int getSupportCount() {
622 return support_.size();
623 }
634 public int getSupport(int index) {
635 return support_.getInt(index);
636 }
649 int index, int value) {
650 ensureSupportIsMutable();
651 support_.setInt(index, value);
652 onChanged();
653 return this;
654 }
665 public Builder addSupport(int value) {
666 ensureSupportIsMutable();
667 support_.addInt(value);
668 onChanged();
669 return this;
670 }
682 java.lang.Iterable<? extends java.lang.Integer> values) {
683 ensureSupportIsMutable();
684 com.google.protobuf.AbstractMessageLite.Builder.addAll(
685 values, support_);
686 onChanged();
687 return this;
688 }
699 support_ = emptyIntList();
700 bitField0_ = (bitField0_ & ~0x00000001);
701 onChanged();
702 return this;
703 }
704
705 private com.google.protobuf.Internal.IntList cycleSizes_ = emptyIntList();
706 private void ensureCycleSizesIsMutable() {
707 if (!((bitField0_ & 0x00000002) != 0)) {
708 cycleSizes_ = mutableCopy(cycleSizes_);
709 bitField0_ |= 0x00000002;
710 }
711 }
716 public java.util.List<java.lang.Integer>
718 return ((bitField0_ & 0x00000002) != 0) ?
719 java.util.Collections.unmodifiableList(cycleSizes_) : cycleSizes_;
720 }
725 public int getCycleSizesCount() {
726 return cycleSizes_.size();
727 }
733 public int getCycleSizes(int index) {
734 return cycleSizes_.getInt(index);
735 }
743 int index, int value) {
744 ensureCycleSizesIsMutable();
745 cycleSizes_.setInt(index, value);
746 onChanged();
747 return this;
748 }
754 public Builder addCycleSizes(int value) {
755 ensureCycleSizesIsMutable();
756 cycleSizes_.addInt(value);
757 onChanged();
758 return this;
759 }
766 java.lang.Iterable<? extends java.lang.Integer> values) {
767 ensureCycleSizesIsMutable();
768 com.google.protobuf.AbstractMessageLite.Builder.addAll(
769 values, cycleSizes_);
770 onChanged();
771 return this;
772 }
778 cycleSizes_ = emptyIntList();
779 bitField0_ = (bitField0_ & ~0x00000002);
780 onChanged();
781 return this;
782 }
783 @java.lang.Override
785 final com.google.protobuf.UnknownFieldSet unknownFields) {
786 return super.setUnknownFields(unknownFields);
787 }
788
789 @java.lang.Override
791 final com.google.protobuf.UnknownFieldSet unknownFields) {
792 return super.mergeUnknownFields(unknownFields);
793 }
794
795
796 // @@protoc_insertion_point(builder_scope:operations_research.sat.SparsePermutationProto)
797 }
798
799 // @@protoc_insertion_point(class_scope:operations_research.sat.SparsePermutationProto)
800 private static final com.google.ortools.sat.SparsePermutationProto DEFAULT_INSTANCE;
801 static {
802 DEFAULT_INSTANCE = new com.google.ortools.sat.SparsePermutationProto();
803 }
804
805 public static com.google.ortools.sat.SparsePermutationProto getDefaultInstance() {
806 return DEFAULT_INSTANCE;
807 }
808
809 private static final com.google.protobuf.Parser<SparsePermutationProto>
810 PARSER = new com.google.protobuf.AbstractParser<SparsePermutationProto>() {
811 @java.lang.Override
812 public SparsePermutationProto parsePartialFrom(
813 com.google.protobuf.CodedInputStream input,
814 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
815 throws com.google.protobuf.InvalidProtocolBufferException {
816 return new SparsePermutationProto(input, extensionRegistry);
817 }
818 };
819
820 public static com.google.protobuf.Parser<SparsePermutationProto> parser() {
821 return PARSER;
822 }
823
824 @java.lang.Override
825 public com.google.protobuf.Parser<SparsePermutationProto> getParserForType() {
826 return PARSER;
827 }
828
829 @java.lang.Override
830 public com.google.ortools.sat.SparsePermutationProto getDefaultInstanceForType() {
831 return DEFAULT_INSTANCE;
832 }
833
834}
835
final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
com.google.ortools.sat.SparsePermutationProto build()
Builder addAllSupport(java.lang.Iterable<? extends java.lang.Integer > values)
Builder addCycleSizes(int value)
repeated int32 cycle_sizes = 2;
Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Builder mergeFrom(com.google.ortools.sat.SparsePermutationProto other)
Builder mergeFrom(com.google.protobuf.Message other)
Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Builder addAllCycleSizes(java.lang.Iterable<? extends java.lang.Integer > values)
repeated int32 cycle_sizes = 2;
Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
int getCycleSizes(int index)
repeated int32 cycle_sizes = 2;
Builder clearCycleSizes()
repeated int32 cycle_sizes = 2;
Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
Builder setCycleSizes(int index, int value)
repeated int32 cycle_sizes = 2;
java.util.List< java.lang.Integer > getCycleSizesList()
repeated int32 cycle_sizes = 2;
com.google.ortools.sat.SparsePermutationProto buildPartial()
Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.sat.SparsePermutationProto getDefaultInstanceForType()
static com.google.ortools.sat.SparsePermutationProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.sat.SparsePermutationProto parseFrom(java.io.InputStream input)
void writeTo(com.google.protobuf.CodedOutputStream output)
static com.google.ortools.sat.SparsePermutationProto parseFrom(byte[] data)
static com.google.ortools.sat.SparsePermutationProto parseFrom(java.nio.ByteBuffer data)
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
static com.google.ortools.sat.SparsePermutationProto parseDelimitedFrom(java.io.InputStream input)
static com.google.ortools.sat.SparsePermutationProto parseFrom(com.google.protobuf.ByteString data)
static com.google.ortools.sat.SparsePermutationProto parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.sat.SparsePermutationProto parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.sat.SparsePermutationProto getDefaultInstance()
int getCycleSizesCount()
repeated int32 cycle_sizes = 2;
static com.google.ortools.sat.SparsePermutationProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
final com.google.protobuf.UnknownFieldSet getUnknownFields()
static com.google.ortools.sat.SparsePermutationProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.sat.SparsePermutationProto parseFrom(com.google.protobuf.CodedInputStream input)
static com.google.protobuf.Parser< SparsePermutationProto > parser()
static com.google.ortools.sat.SparsePermutationProto parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.protobuf.Parser< SparsePermutationProto > getParserForType()
int getCycleSizes(int index)
repeated int32 cycle_sizes = 2;
static Builder newBuilder(com.google.ortools.sat.SparsePermutationProto prototype)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
java.lang.Object newInstance(UnusedPrivateParameter unused)
java.util.List< java.lang.Integer > getCycleSizesList()
repeated int32 cycle_sizes = 2;
java.util.List< java.lang.Integer > getSupportList()
Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
com.google.ortools.sat.SparsePermutationProto getDefaultInstanceForType()