Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
RuinRecreateParameters.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/constraint_solver/routing_ils.proto
4// Protobuf Java Version: 4.31.1
5
6package com.google.ortools.constraintsolver;
7
15@com.google.protobuf.Generated
16public final class RuinRecreateParameters extends
17 com.google.protobuf.GeneratedMessage implements
18 // @@protoc_insertion_point(message_implements:operations_research.RuinRecreateParameters)
20private static final long serialVersionUID = 0L;
21 static {
22 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
23 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
24 /* major= */ 4,
25 /* minor= */ 31,
26 /* patch= */ 1,
27 /* suffix= */ "",
28 RuinRecreateParameters.class.getName());
29 }
30 // Use RuinRecreateParameters.newBuilder() to construct.
31 private RuinRecreateParameters(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
32 super(builder);
33 }
34 private RuinRecreateParameters() {
35 ruinStrategies_ = java.util.Collections.emptyList();
36 ruinCompositionStrategy_ = 0;
37 recreateStrategy_ = 0;
38 }
39
40 public static final com.google.protobuf.Descriptors.Descriptor
42 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_RuinRecreateParameters_descriptor;
43 }
44
45 @java.lang.Override
46 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
48 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_RuinRecreateParameters_fieldAccessorTable
49 .ensureFieldAccessorsInitialized(
50 com.google.ortools.constraintsolver.RuinRecreateParameters.class, com.google.ortools.constraintsolver.RuinRecreateParameters.Builder.class);
51 }
52
53 private int bitField0_;
54 public static final int RUIN_STRATEGIES_FIELD_NUMBER = 1;
55 @SuppressWarnings("serial")
56 private java.util.List<com.google.ortools.constraintsolver.RuinStrategy> ruinStrategies_;
64 @java.lang.Override
66 return ruinStrategies_;
67 }
68
75 @java.lang.Override
76 public java.util.List<? extends com.google.ortools.constraintsolver.RuinStrategyOrBuilder>
78 return ruinStrategies_;
79 }
80
87 @java.lang.Override
89 return ruinStrategies_.size();
90 }
91
98 @java.lang.Override
100 return ruinStrategies_.get(index);
101 }
102
109 @java.lang.Override
111 int index) {
112 return ruinStrategies_.get(index);
113 }
114
115 public static final int RUIN_COMPOSITION_STRATEGY_FIELD_NUMBER = 2;
116 private int ruinCompositionStrategy_ = 0;
126 @java.lang.Override public int getRuinCompositionStrategyValue() {
127 return ruinCompositionStrategy_;
128 }
129
139 com.google.ortools.constraintsolver.RuinCompositionStrategy.Value result = com.google.ortools.constraintsolver.RuinCompositionStrategy.Value.forNumber(ruinCompositionStrategy_);
141 }
142
143 public static final int RECREATE_STRATEGY_FIELD_NUMBER = 3;
144 private int recreateStrategy_ = 0;
153 @java.lang.Override public int getRecreateStrategyValue() {
154 return recreateStrategy_;
155 }
156
165 com.google.ortools.constraintsolver.FirstSolutionStrategy.Value result = com.google.ortools.constraintsolver.FirstSolutionStrategy.Value.forNumber(recreateStrategy_);
167 }
168
170 private double routeSelectionNeighborsRatio_ = 0D;
194 @java.lang.Override
196 return ((bitField0_ & 0x00000001) != 0);
197 }
198
221 @java.lang.Override
223 return routeSelectionNeighborsRatio_;
224 }
225
227 private int routeSelectionMinNeighbors_ = 0;
232 @java.lang.Override
234 return ((bitField0_ & 0x00000002) != 0);
235 }
236
240 @java.lang.Override
242 return routeSelectionMinNeighbors_;
243 }
244
246 private int routeSelectionMaxNeighbors_ = 0;
251 @java.lang.Override
253 return ((bitField0_ & 0x00000004) != 0);
254 }
255
259 @java.lang.Override
261 return routeSelectionMaxNeighbors_;
262 }
263
264 private byte memoizedIsInitialized = -1;
265 @java.lang.Override
266 public final boolean isInitialized() {
267 byte isInitialized = memoizedIsInitialized;
268 if (isInitialized == 1) return true;
269 if (isInitialized == 0) return false;
270
271 memoizedIsInitialized = 1;
272 return true;
273 }
274
275 @java.lang.Override
276 public void writeTo(com.google.protobuf.CodedOutputStream output)
277 throws java.io.IOException {
278 for (int i = 0; i < ruinStrategies_.size(); i++) {
279 output.writeMessage(1, ruinStrategies_.get(i));
280 }
281 if (ruinCompositionStrategy_ != com.google.ortools.constraintsolver.RuinCompositionStrategy.Value.UNSET.getNumber()) {
282 output.writeEnum(2, ruinCompositionStrategy_);
283 }
284 if (recreateStrategy_ != com.google.ortools.constraintsolver.FirstSolutionStrategy.Value.UNSET.getNumber()) {
285 output.writeEnum(3, recreateStrategy_);
286 }
287 if (((bitField0_ & 0x00000001) != 0)) {
288 output.writeDouble(4, routeSelectionNeighborsRatio_);
289 }
290 if (((bitField0_ & 0x00000002) != 0)) {
291 output.writeUInt32(5, routeSelectionMinNeighbors_);
292 }
293 if (((bitField0_ & 0x00000004) != 0)) {
294 output.writeUInt32(6, routeSelectionMaxNeighbors_);
295 }
296 getUnknownFields().writeTo(output);
297 }
298
299 @java.lang.Override
300 public int getSerializedSize() {
301 int size = memoizedSize;
302 if (size != -1) return size;
303
304 size = 0;
305 for (int i = 0; i < ruinStrategies_.size(); i++) {
306 size += com.google.protobuf.CodedOutputStream
307 .computeMessageSize(1, ruinStrategies_.get(i));
308 }
309 if (ruinCompositionStrategy_ != com.google.ortools.constraintsolver.RuinCompositionStrategy.Value.UNSET.getNumber()) {
310 size += com.google.protobuf.CodedOutputStream
311 .computeEnumSize(2, ruinCompositionStrategy_);
312 }
313 if (recreateStrategy_ != com.google.ortools.constraintsolver.FirstSolutionStrategy.Value.UNSET.getNumber()) {
314 size += com.google.protobuf.CodedOutputStream
315 .computeEnumSize(3, recreateStrategy_);
316 }
317 if (((bitField0_ & 0x00000001) != 0)) {
318 size += com.google.protobuf.CodedOutputStream
319 .computeDoubleSize(4, routeSelectionNeighborsRatio_);
320 }
321 if (((bitField0_ & 0x00000002) != 0)) {
322 size += com.google.protobuf.CodedOutputStream
323 .computeUInt32Size(5, routeSelectionMinNeighbors_);
324 }
325 if (((bitField0_ & 0x00000004) != 0)) {
326 size += com.google.protobuf.CodedOutputStream
327 .computeUInt32Size(6, routeSelectionMaxNeighbors_);
328 }
329 size += getUnknownFields().getSerializedSize();
330 memoizedSize = size;
331 return size;
332 }
333
334 @java.lang.Override
335 public boolean equals(final java.lang.Object obj) {
336 if (obj == this) {
337 return true;
338 }
339 if (!(obj instanceof com.google.ortools.constraintsolver.RuinRecreateParameters)) {
340 return super.equals(obj);
341 }
342 com.google.ortools.constraintsolver.RuinRecreateParameters other = (com.google.ortools.constraintsolver.RuinRecreateParameters) obj;
343
345 .equals(other.getRuinStrategiesList())) return false;
346 if (ruinCompositionStrategy_ != other.ruinCompositionStrategy_) return false;
347 if (recreateStrategy_ != other.recreateStrategy_) return false;
350 if (java.lang.Double.doubleToLongBits(getRouteSelectionNeighborsRatio())
351 != java.lang.Double.doubleToLongBits(
352 other.getRouteSelectionNeighborsRatio())) return false;
353 }
357 != other.getRouteSelectionMinNeighbors()) return false;
358 }
362 != other.getRouteSelectionMaxNeighbors()) return false;
363 }
364 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
365 return true;
366 }
367
368 @java.lang.Override
369 public int hashCode() {
370 if (memoizedHashCode != 0) {
371 return memoizedHashCode;
372 }
373 int hash = 41;
374 hash = (19 * hash) + getDescriptor().hashCode();
375 if (getRuinStrategiesCount() > 0) {
376 hash = (37 * hash) + RUIN_STRATEGIES_FIELD_NUMBER;
377 hash = (53 * hash) + getRuinStrategiesList().hashCode();
378 }
379 hash = (37 * hash) + RUIN_COMPOSITION_STRATEGY_FIELD_NUMBER;
380 hash = (53 * hash) + ruinCompositionStrategy_;
381 hash = (37 * hash) + RECREATE_STRATEGY_FIELD_NUMBER;
382 hash = (53 * hash) + recreateStrategy_;
385 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
386 java.lang.Double.doubleToLongBits(getRouteSelectionNeighborsRatio()));
387 }
390 hash = (53 * hash) + getRouteSelectionMinNeighbors();
391 }
394 hash = (53 * hash) + getRouteSelectionMaxNeighbors();
395 }
396 hash = (29 * hash) + getUnknownFields().hashCode();
397 memoizedHashCode = hash;
398 return hash;
399 }
400
402 java.nio.ByteBuffer data)
403 throws com.google.protobuf.InvalidProtocolBufferException {
404 return PARSER.parseFrom(data);
405 }
407 java.nio.ByteBuffer data,
408 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
409 throws com.google.protobuf.InvalidProtocolBufferException {
410 return PARSER.parseFrom(data, extensionRegistry);
411 }
413 com.google.protobuf.ByteString data)
414 throws com.google.protobuf.InvalidProtocolBufferException {
415 return PARSER.parseFrom(data);
416 }
418 com.google.protobuf.ByteString data,
419 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
420 throws com.google.protobuf.InvalidProtocolBufferException {
421 return PARSER.parseFrom(data, extensionRegistry);
422 }
424 throws com.google.protobuf.InvalidProtocolBufferException {
425 return PARSER.parseFrom(data);
426 }
428 byte[] data,
429 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
430 throws com.google.protobuf.InvalidProtocolBufferException {
431 return PARSER.parseFrom(data, extensionRegistry);
432 }
434 throws java.io.IOException {
435 return com.google.protobuf.GeneratedMessage
436 .parseWithIOException(PARSER, input);
437 }
439 java.io.InputStream input,
440 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
441 throws java.io.IOException {
442 return com.google.protobuf.GeneratedMessage
443 .parseWithIOException(PARSER, input, extensionRegistry);
444 }
445
447 throws java.io.IOException {
448 return com.google.protobuf.GeneratedMessage
449 .parseDelimitedWithIOException(PARSER, input);
450 }
451
453 java.io.InputStream input,
454 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
455 throws java.io.IOException {
456 return com.google.protobuf.GeneratedMessage
457 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
458 }
460 com.google.protobuf.CodedInputStream input)
461 throws java.io.IOException {
462 return com.google.protobuf.GeneratedMessage
463 .parseWithIOException(PARSER, input);
464 }
466 com.google.protobuf.CodedInputStream input,
467 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
468 throws java.io.IOException {
469 return com.google.protobuf.GeneratedMessage
470 .parseWithIOException(PARSER, input, extensionRegistry);
471 }
472
473 @java.lang.Override
474 public Builder newBuilderForType() { return newBuilder(); }
475 public static Builder newBuilder() {
476 return DEFAULT_INSTANCE.toBuilder();
477 }
478 public static Builder newBuilder(com.google.ortools.constraintsolver.RuinRecreateParameters prototype) {
479 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
480 }
481 @java.lang.Override
483 return this == DEFAULT_INSTANCE
484 ? new Builder() : new Builder().mergeFrom(this);
485 }
486
487 @java.lang.Override
489 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
490 Builder builder = new Builder(parent);
491 return builder;
492 }
493
500 public static final class Builder extends
501 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
502 // @@protoc_insertion_point(builder_implements:operations_research.RuinRecreateParameters)
504 public static final com.google.protobuf.Descriptors.Descriptor
506 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_RuinRecreateParameters_descriptor;
507 }
508
509 @java.lang.Override
510 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
512 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_RuinRecreateParameters_fieldAccessorTable
513 .ensureFieldAccessorsInitialized(
514 com.google.ortools.constraintsolver.RuinRecreateParameters.class, com.google.ortools.constraintsolver.RuinRecreateParameters.Builder.class);
515 }
516
517 // Construct using com.google.ortools.constraintsolver.RuinRecreateParameters.newBuilder()
518 private Builder() {
519
520 }
521
522 private Builder(
523 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
524 super(parent);
525
526 }
527 @java.lang.Override
528 public Builder clear() {
529 super.clear();
530 bitField0_ = 0;
531 if (ruinStrategiesBuilder_ == null) {
532 ruinStrategies_ = java.util.Collections.emptyList();
533 } else {
534 ruinStrategies_ = null;
535 ruinStrategiesBuilder_.clear();
536 }
537 bitField0_ = (bitField0_ & ~0x00000001);
538 ruinCompositionStrategy_ = 0;
539 recreateStrategy_ = 0;
540 routeSelectionNeighborsRatio_ = 0D;
541 routeSelectionMinNeighbors_ = 0;
542 routeSelectionMaxNeighbors_ = 0;
543 return this;
544 }
545
546 @java.lang.Override
547 public com.google.protobuf.Descriptors.Descriptor
549 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_RuinRecreateParameters_descriptor;
550 }
551
552 @java.lang.Override
554 return com.google.ortools.constraintsolver.RuinRecreateParameters.getDefaultInstance();
555 }
556
557 @java.lang.Override
560 if (!result.isInitialized()) {
561 throw newUninitializedMessageException(result);
562 }
563 return result;
564 }
565
566 @java.lang.Override
568 com.google.ortools.constraintsolver.RuinRecreateParameters result = new com.google.ortools.constraintsolver.RuinRecreateParameters(this);
569 buildPartialRepeatedFields(result);
570 if (bitField0_ != 0) { buildPartial0(result); }
571 onBuilt();
572 return result;
573 }
574
575 private void buildPartialRepeatedFields(com.google.ortools.constraintsolver.RuinRecreateParameters result) {
576 if (ruinStrategiesBuilder_ == null) {
577 if (((bitField0_ & 0x00000001) != 0)) {
578 ruinStrategies_ = java.util.Collections.unmodifiableList(ruinStrategies_);
579 bitField0_ = (bitField0_ & ~0x00000001);
580 }
581 result.ruinStrategies_ = ruinStrategies_;
582 } else {
583 result.ruinStrategies_ = ruinStrategiesBuilder_.build();
584 }
585 }
586
587 private void buildPartial0(com.google.ortools.constraintsolver.RuinRecreateParameters result) {
588 int from_bitField0_ = bitField0_;
589 if (((from_bitField0_ & 0x00000002) != 0)) {
590 result.ruinCompositionStrategy_ = ruinCompositionStrategy_;
591 }
592 if (((from_bitField0_ & 0x00000004) != 0)) {
593 result.recreateStrategy_ = recreateStrategy_;
594 }
595 int to_bitField0_ = 0;
596 if (((from_bitField0_ & 0x00000008) != 0)) {
597 result.routeSelectionNeighborsRatio_ = routeSelectionNeighborsRatio_;
598 to_bitField0_ |= 0x00000001;
599 }
600 if (((from_bitField0_ & 0x00000010) != 0)) {
601 result.routeSelectionMinNeighbors_ = routeSelectionMinNeighbors_;
602 to_bitField0_ |= 0x00000002;
603 }
604 if (((from_bitField0_ & 0x00000020) != 0)) {
605 result.routeSelectionMaxNeighbors_ = routeSelectionMaxNeighbors_;
606 to_bitField0_ |= 0x00000004;
607 }
608 result.bitField0_ |= to_bitField0_;
609 }
610
611 @java.lang.Override
612 public Builder mergeFrom(com.google.protobuf.Message other) {
613 if (other instanceof com.google.ortools.constraintsolver.RuinRecreateParameters) {
614 return mergeFrom((com.google.ortools.constraintsolver.RuinRecreateParameters)other);
615 } else {
616 super.mergeFrom(other);
617 return this;
618 }
619 }
620
621 public Builder mergeFrom(com.google.ortools.constraintsolver.RuinRecreateParameters other) {
622 if (other == com.google.ortools.constraintsolver.RuinRecreateParameters.getDefaultInstance()) return this;
623 if (ruinStrategiesBuilder_ == null) {
624 if (!other.ruinStrategies_.isEmpty()) {
625 if (ruinStrategies_.isEmpty()) {
626 ruinStrategies_ = other.ruinStrategies_;
627 bitField0_ = (bitField0_ & ~0x00000001);
628 } else {
629 ensureRuinStrategiesIsMutable();
630 ruinStrategies_.addAll(other.ruinStrategies_);
631 }
632 onChanged();
633 }
634 } else {
635 if (!other.ruinStrategies_.isEmpty()) {
636 if (ruinStrategiesBuilder_.isEmpty()) {
637 ruinStrategiesBuilder_.dispose();
638 ruinStrategiesBuilder_ = null;
639 ruinStrategies_ = other.ruinStrategies_;
640 bitField0_ = (bitField0_ & ~0x00000001);
641 ruinStrategiesBuilder_ =
642 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
643 internalGetRuinStrategiesFieldBuilder() : null;
644 } else {
645 ruinStrategiesBuilder_.addAllMessages(other.ruinStrategies_);
646 }
647 }
648 }
649 if (other.ruinCompositionStrategy_ != 0) {
650 setRuinCompositionStrategyValue(other.getRuinCompositionStrategyValue());
651 }
652 if (other.recreateStrategy_ != 0) {
653 setRecreateStrategyValue(other.getRecreateStrategyValue());
654 }
655 if (other.hasRouteSelectionNeighborsRatio()) {
656 setRouteSelectionNeighborsRatio(other.getRouteSelectionNeighborsRatio());
657 }
658 if (other.hasRouteSelectionMinNeighbors()) {
659 setRouteSelectionMinNeighbors(other.getRouteSelectionMinNeighbors());
660 }
661 if (other.hasRouteSelectionMaxNeighbors()) {
662 setRouteSelectionMaxNeighbors(other.getRouteSelectionMaxNeighbors());
663 }
664 this.mergeUnknownFields(other.getUnknownFields());
665 onChanged();
666 return this;
667 }
668
669 @java.lang.Override
670 public final boolean isInitialized() {
671 return true;
672 }
673
674 @java.lang.Override
675 public Builder mergeFrom(
676 com.google.protobuf.CodedInputStream input,
677 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
678 throws java.io.IOException {
679 if (extensionRegistry == null) {
680 throw new java.lang.NullPointerException();
681 }
682 try {
683 boolean done = false;
684 while (!done) {
685 int tag = input.readTag();
686 switch (tag) {
687 case 0:
688 done = true;
689 break;
690 case 10: {
692 input.readMessage(
693 com.google.ortools.constraintsolver.RuinStrategy.parser(),
694 extensionRegistry);
695 if (ruinStrategiesBuilder_ == null) {
696 ensureRuinStrategiesIsMutable();
697 ruinStrategies_.add(m);
698 } else {
699 ruinStrategiesBuilder_.addMessage(m);
700 }
701 break;
702 } // case 10
703 case 16: {
704 ruinCompositionStrategy_ = input.readEnum();
705 bitField0_ |= 0x00000002;
706 break;
707 } // case 16
708 case 24: {
709 recreateStrategy_ = input.readEnum();
710 bitField0_ |= 0x00000004;
711 break;
712 } // case 24
713 case 33: {
714 routeSelectionNeighborsRatio_ = input.readDouble();
715 bitField0_ |= 0x00000008;
716 break;
717 } // case 33
718 case 40: {
719 routeSelectionMinNeighbors_ = input.readUInt32();
720 bitField0_ |= 0x00000010;
721 break;
722 } // case 40
723 case 48: {
724 routeSelectionMaxNeighbors_ = input.readUInt32();
725 bitField0_ |= 0x00000020;
726 break;
727 } // case 48
728 default: {
729 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
730 done = true; // was an endgroup tag
731 }
732 break;
733 } // default:
734 } // switch (tag)
735 } // while (!done)
736 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
737 throw e.unwrapIOException();
738 } finally {
739 onChanged();
740 } // finally
741 return this;
742 }
743 private int bitField0_;
744
745 private java.util.List<com.google.ortools.constraintsolver.RuinStrategy> ruinStrategies_ =
746 java.util.Collections.emptyList();
747 private void ensureRuinStrategiesIsMutable() {
748 if (!((bitField0_ & 0x00000001) != 0)) {
749 ruinStrategies_ = new java.util.ArrayList<com.google.ortools.constraintsolver.RuinStrategy>(ruinStrategies_);
750 bitField0_ |= 0x00000001;
751 }
752 }
753
754 private com.google.protobuf.RepeatedFieldBuilder<
755 com.google.ortools.constraintsolver.RuinStrategy, com.google.ortools.constraintsolver.RuinStrategy.Builder, com.google.ortools.constraintsolver.RuinStrategyOrBuilder> ruinStrategiesBuilder_;
756
764 public java.util.List<com.google.ortools.constraintsolver.RuinStrategy> getRuinStrategiesList() {
765 if (ruinStrategiesBuilder_ == null) {
766 return java.util.Collections.unmodifiableList(ruinStrategies_);
767 } else {
768 return ruinStrategiesBuilder_.getMessageList();
769 }
770 }
771
779 if (ruinStrategiesBuilder_ == null) {
780 return ruinStrategies_.size();
781 } else {
782 return ruinStrategiesBuilder_.getCount();
783 }
784 }
785
793 if (ruinStrategiesBuilder_ == null) {
794 return ruinStrategies_.get(index);
795 } else {
796 return ruinStrategiesBuilder_.getMessage(index);
797 }
798 }
799
806 public Builder setRuinStrategies(
807 int index, com.google.ortools.constraintsolver.RuinStrategy value) {
808 if (ruinStrategiesBuilder_ == null) {
809 if (value == null) {
810 throw new NullPointerException();
811 }
812 ensureRuinStrategiesIsMutable();
813 ruinStrategies_.set(index, value);
814 onChanged();
815 } else {
816 ruinStrategiesBuilder_.setMessage(index, value);
817 }
818 return this;
819 }
820
827 public Builder setRuinStrategies(
828 int index, com.google.ortools.constraintsolver.RuinStrategy.Builder builderForValue) {
829 if (ruinStrategiesBuilder_ == null) {
830 ensureRuinStrategiesIsMutable();
831 ruinStrategies_.set(index, builderForValue.build());
832 onChanged();
833 } else {
834 ruinStrategiesBuilder_.setMessage(index, builderForValue.build());
835 }
836 return this;
837 }
838
845 public Builder addRuinStrategies(com.google.ortools.constraintsolver.RuinStrategy value) {
846 if (ruinStrategiesBuilder_ == null) {
847 if (value == null) {
848 throw new NullPointerException();
849 }
850 ensureRuinStrategiesIsMutable();
851 ruinStrategies_.add(value);
852 onChanged();
853 } else {
854 ruinStrategiesBuilder_.addMessage(value);
855 }
856 return this;
857 }
858
865 public Builder addRuinStrategies(
866 int index, com.google.ortools.constraintsolver.RuinStrategy value) {
867 if (ruinStrategiesBuilder_ == null) {
868 if (value == null) {
869 throw new NullPointerException();
870 }
871 ensureRuinStrategiesIsMutable();
872 ruinStrategies_.add(index, value);
873 onChanged();
874 } else {
875 ruinStrategiesBuilder_.addMessage(index, value);
876 }
877 return this;
878 }
879
886 public Builder addRuinStrategies(
887 com.google.ortools.constraintsolver.RuinStrategy.Builder builderForValue) {
888 if (ruinStrategiesBuilder_ == null) {
889 ensureRuinStrategiesIsMutable();
890 ruinStrategies_.add(builderForValue.build());
891 onChanged();
892 } else {
893 ruinStrategiesBuilder_.addMessage(builderForValue.build());
894 }
895 return this;
896 }
897
904 public Builder addRuinStrategies(
905 int index, com.google.ortools.constraintsolver.RuinStrategy.Builder builderForValue) {
906 if (ruinStrategiesBuilder_ == null) {
907 ensureRuinStrategiesIsMutable();
908 ruinStrategies_.add(index, builderForValue.build());
909 onChanged();
910 } else {
911 ruinStrategiesBuilder_.addMessage(index, builderForValue.build());
912 }
913 return this;
914 }
915
922 public Builder addAllRuinStrategies(
923 java.lang.Iterable<? extends com.google.ortools.constraintsolver.RuinStrategy> values) {
924 if (ruinStrategiesBuilder_ == null) {
925 ensureRuinStrategiesIsMutable();
926 com.google.protobuf.AbstractMessageLite.Builder.addAll(
927 values, ruinStrategies_);
928 onChanged();
929 } else {
930 ruinStrategiesBuilder_.addAllMessages(values);
931 }
932 return this;
933 }
934
941 public Builder clearRuinStrategies() {
942 if (ruinStrategiesBuilder_ == null) {
943 ruinStrategies_ = java.util.Collections.emptyList();
944 bitField0_ = (bitField0_ & ~0x00000001);
945 onChanged();
946 } else {
947 ruinStrategiesBuilder_.clear();
948 }
949 return this;
950 }
951
958 public Builder removeRuinStrategies(int index) {
959 if (ruinStrategiesBuilder_ == null) {
960 ensureRuinStrategiesIsMutable();
961 ruinStrategies_.remove(index);
962 onChanged();
963 } else {
964 ruinStrategiesBuilder_.remove(index);
965 }
966 return this;
967 }
968
976 int index) {
977 return internalGetRuinStrategiesFieldBuilder().getBuilder(index);
978 }
979
987 int index) {
988 if (ruinStrategiesBuilder_ == null) {
989 return ruinStrategies_.get(index); } else {
990 return ruinStrategiesBuilder_.getMessageOrBuilder(index);
991 }
992 }
993
1000 public java.util.List<? extends com.google.ortools.constraintsolver.RuinStrategyOrBuilder>
1002 if (ruinStrategiesBuilder_ != null) {
1003 return ruinStrategiesBuilder_.getMessageOrBuilderList();
1004 } else {
1005 return java.util.Collections.unmodifiableList(ruinStrategies_);
1006 }
1007 }
1008
1016 return internalGetRuinStrategiesFieldBuilder().addBuilder(
1017 com.google.ortools.constraintsolver.RuinStrategy.getDefaultInstance());
1018 }
1019
1027 int index) {
1028 return internalGetRuinStrategiesFieldBuilder().addBuilder(
1029 index, com.google.ortools.constraintsolver.RuinStrategy.getDefaultInstance());
1030 }
1031
1038 public java.util.List<com.google.ortools.constraintsolver.RuinStrategy.Builder>
1040 return internalGetRuinStrategiesFieldBuilder().getBuilderList();
1041 }
1042 private com.google.protobuf.RepeatedFieldBuilder<
1043 com.google.ortools.constraintsolver.RuinStrategy, com.google.ortools.constraintsolver.RuinStrategy.Builder, com.google.ortools.constraintsolver.RuinStrategyOrBuilder>
1044 internalGetRuinStrategiesFieldBuilder() {
1045 if (ruinStrategiesBuilder_ == null) {
1046 ruinStrategiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
1047 com.google.ortools.constraintsolver.RuinStrategy, com.google.ortools.constraintsolver.RuinStrategy.Builder, com.google.ortools.constraintsolver.RuinStrategyOrBuilder>(
1048 ruinStrategies_,
1049 ((bitField0_ & 0x00000001) != 0),
1050 getParentForChildren(),
1051 isClean());
1052 ruinStrategies_ = null;
1053 }
1054 return ruinStrategiesBuilder_;
1055 }
1056
1057 private int ruinCompositionStrategy_ = 0;
1067 @java.lang.Override public int getRuinCompositionStrategyValue() {
1068 return ruinCompositionStrategy_;
1069 }
1070
1080 public Builder setRuinCompositionStrategyValue(int value) {
1081 ruinCompositionStrategy_ = value;
1082 bitField0_ |= 0x00000002;
1083 onChanged();
1084 return this;
1085 }
1086
1095 @java.lang.Override
1097 com.google.ortools.constraintsolver.RuinCompositionStrategy.Value result = com.google.ortools.constraintsolver.RuinCompositionStrategy.Value.forNumber(ruinCompositionStrategy_);
1099 }
1100
1110 public Builder setRuinCompositionStrategy(com.google.ortools.constraintsolver.RuinCompositionStrategy.Value value) {
1111 if (value == null) { throw new NullPointerException(); }
1112 bitField0_ |= 0x00000002;
1113 ruinCompositionStrategy_ = value.getNumber();
1114 onChanged();
1115 return this;
1116 }
1117
1127 bitField0_ = (bitField0_ & ~0x00000002);
1128 ruinCompositionStrategy_ = 0;
1129 onChanged();
1130 return this;
1131 }
1132
1133 private int recreateStrategy_ = 0;
1142 @java.lang.Override public int getRecreateStrategyValue() {
1143 return recreateStrategy_;
1144 }
1145
1154 public Builder setRecreateStrategyValue(int value) {
1155 recreateStrategy_ = value;
1156 bitField0_ |= 0x00000004;
1157 onChanged();
1158 return this;
1159 }
1160
1168 @java.lang.Override
1170 com.google.ortools.constraintsolver.FirstSolutionStrategy.Value result = com.google.ortools.constraintsolver.FirstSolutionStrategy.Value.forNumber(recreateStrategy_);
1172 }
1173
1182 public Builder setRecreateStrategy(com.google.ortools.constraintsolver.FirstSolutionStrategy.Value value) {
1183 if (value == null) { throw new NullPointerException(); }
1184 bitField0_ |= 0x00000004;
1185 recreateStrategy_ = value.getNumber();
1186 onChanged();
1187 return this;
1188 }
1189
1197 public Builder clearRecreateStrategy() {
1198 bitField0_ = (bitField0_ & ~0x00000004);
1199 recreateStrategy_ = 0;
1200 onChanged();
1201 return this;
1202 }
1203
1204 private double routeSelectionNeighborsRatio_ ;
1228 @java.lang.Override
1230 return ((bitField0_ & 0x00000008) != 0);
1231 }
1232
1255 @java.lang.Override
1257 return routeSelectionNeighborsRatio_;
1258 }
1259
1283 public Builder setRouteSelectionNeighborsRatio(double value) {
1284
1285 routeSelectionNeighborsRatio_ = value;
1286 bitField0_ |= 0x00000008;
1287 onChanged();
1288 return this;
1289 }
1290
1314 bitField0_ = (bitField0_ & ~0x00000008);
1315 routeSelectionNeighborsRatio_ = 0D;
1316 onChanged();
1317 return this;
1318 }
1319
1320 private int routeSelectionMinNeighbors_ ;
1325 @java.lang.Override
1327 return ((bitField0_ & 0x00000010) != 0);
1328 }
1329
1333 @java.lang.Override
1335 return routeSelectionMinNeighbors_;
1336 }
1337
1342 public Builder setRouteSelectionMinNeighbors(int value) {
1343
1344 routeSelectionMinNeighbors_ = value;
1345 bitField0_ |= 0x00000010;
1346 onChanged();
1347 return this;
1348 }
1349
1354 bitField0_ = (bitField0_ & ~0x00000010);
1355 routeSelectionMinNeighbors_ = 0;
1356 onChanged();
1357 return this;
1358 }
1359
1360 private int routeSelectionMaxNeighbors_ ;
1365 @java.lang.Override
1367 return ((bitField0_ & 0x00000020) != 0);
1368 }
1369
1373 @java.lang.Override
1375 return routeSelectionMaxNeighbors_;
1376 }
1377
1382 public Builder setRouteSelectionMaxNeighbors(int value) {
1383
1384 routeSelectionMaxNeighbors_ = value;
1385 bitField0_ |= 0x00000020;
1386 onChanged();
1387 return this;
1388 }
1389
1394 bitField0_ = (bitField0_ & ~0x00000020);
1395 routeSelectionMaxNeighbors_ = 0;
1396 onChanged();
1397 return this;
1398 }
1399
1400 // @@protoc_insertion_point(builder_scope:operations_research.RuinRecreateParameters)
1401 }
1402
1403 // @@protoc_insertion_point(class_scope:operations_research.RuinRecreateParameters)
1404 private static final com.google.ortools.constraintsolver.RuinRecreateParameters DEFAULT_INSTANCE;
1405 static {
1406 DEFAULT_INSTANCE = new com.google.ortools.constraintsolver.RuinRecreateParameters();
1407 }
1408
1410 return DEFAULT_INSTANCE;
1411 }
1412
1413 private static final com.google.protobuf.Parser<RuinRecreateParameters>
1414 PARSER = new com.google.protobuf.AbstractParser<RuinRecreateParameters>() {
1415 @java.lang.Override
1416 public RuinRecreateParameters parsePartialFrom(
1417 com.google.protobuf.CodedInputStream input,
1418 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1419 throws com.google.protobuf.InvalidProtocolBufferException {
1420 Builder builder = newBuilder();
1421 try {
1422 builder.mergeFrom(input, extensionRegistry);
1423 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1424 throw e.setUnfinishedMessage(builder.buildPartial());
1425 } catch (com.google.protobuf.UninitializedMessageException e) {
1426 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1427 } catch (java.io.IOException e) {
1428 throw new com.google.protobuf.InvalidProtocolBufferException(e)
1429 .setUnfinishedMessage(builder.buildPartial());
1430 }
1431 return builder.buildPartial();
1432 }
1433 };
1434
1435 public static com.google.protobuf.Parser<RuinRecreateParameters> parser() {
1436 return PARSER;
1437 }
1438
1439 @java.lang.Override
1440 public com.google.protobuf.Parser<RuinRecreateParameters> getParserForType() {
1441 return PARSER;
1442 }
1443
1444 @java.lang.Override
1448
1449}
1450
Builder addAllRuinStrategies(java.lang.Iterable<? extends com.google.ortools.constraintsolver.RuinStrategy > values)
com.google.ortools.constraintsolver.RuinRecreateParameters build()
com.google.ortools.constraintsolver.RuinStrategy.Builder addRuinStrategiesBuilder(int index)
Builder setRuinStrategies(int index, com.google.ortools.constraintsolver.RuinStrategy.Builder builderForValue)
Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
java.util.List< com.google.ortools.constraintsolver.RuinStrategy > getRuinStrategiesList()
java.util.List<? extends com.google.ortools.constraintsolver.RuinStrategyOrBuilder > getRuinStrategiesOrBuilderList()
Builder addRuinStrategies(int index, com.google.ortools.constraintsolver.RuinStrategy.Builder builderForValue)
java.util.List< com.google.ortools.constraintsolver.RuinStrategy.Builder > getRuinStrategiesBuilderList()
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
com.google.ortools.constraintsolver.RuinStrategy.Builder addRuinStrategiesBuilder()
com.google.ortools.constraintsolver.RuinStrategy getRuinStrategies(int index)
Builder setRuinStrategies(int index, com.google.ortools.constraintsolver.RuinStrategy value)
com.google.ortools.constraintsolver.RuinStrategyOrBuilder getRuinStrategiesOrBuilder(int index)
com.google.ortools.constraintsolver.RuinRecreateParameters buildPartial()
Builder addRuinStrategies(com.google.ortools.constraintsolver.RuinStrategy.Builder builderForValue)
com.google.ortools.constraintsolver.RuinStrategy.Builder getRuinStrategiesBuilder(int index)
com.google.ortools.constraintsolver.RuinRecreateParameters getDefaultInstanceForType()
Builder setRecreateStrategy(com.google.ortools.constraintsolver.FirstSolutionStrategy.Value value)
Builder addRuinStrategies(int index, com.google.ortools.constraintsolver.RuinStrategy value)
com.google.ortools.constraintsolver.FirstSolutionStrategy.Value getRecreateStrategy()
Builder addRuinStrategies(com.google.ortools.constraintsolver.RuinStrategy value)
Builder mergeFrom(com.google.ortools.constraintsolver.RuinRecreateParameters other)
com.google.ortools.constraintsolver.RuinCompositionStrategy.Value getRuinCompositionStrategy()
Builder setRuinCompositionStrategy(com.google.ortools.constraintsolver.RuinCompositionStrategy.Value value)
static com.google.ortools.constraintsolver.RuinRecreateParameters parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.constraintsolver.RuinRecreateParameters parseFrom(java.nio.ByteBuffer data)
void writeTo(com.google.protobuf.CodedOutputStream output)
java.util.List<? extends com.google.ortools.constraintsolver.RuinStrategyOrBuilder > getRuinStrategiesOrBuilderList()
com.google.ortools.constraintsolver.FirstSolutionStrategy.Value getRecreateStrategy()
com.google.ortools.constraintsolver.RuinRecreateParameters getDefaultInstanceForType()
static com.google.ortools.constraintsolver.RuinRecreateParameters parseFrom(java.io.InputStream input)
static com.google.protobuf.Parser< RuinRecreateParameters > parser()
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
com.google.ortools.constraintsolver.RuinCompositionStrategy.Value getRuinCompositionStrategy()
static com.google.ortools.constraintsolver.RuinRecreateParameters parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.constraintsolver.RuinRecreateParameters parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
java.util.List< com.google.ortools.constraintsolver.RuinStrategy > getRuinStrategiesList()
static Builder newBuilder(com.google.ortools.constraintsolver.RuinRecreateParameters prototype)
static com.google.ortools.constraintsolver.RuinRecreateParameters parseFrom(com.google.protobuf.ByteString data)
static com.google.ortools.constraintsolver.RuinRecreateParameters parseFrom(byte[] data)
static com.google.ortools.constraintsolver.RuinRecreateParameters parseDelimitedFrom(java.io.InputStream input)
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
static com.google.ortools.constraintsolver.RuinRecreateParameters parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.constraintsolver.RuinRecreateParameters parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.constraintsolver.RuinStrategyOrBuilder getRuinStrategiesOrBuilder(int index)
static com.google.ortools.constraintsolver.RuinRecreateParameters getDefaultInstance()
com.google.ortools.constraintsolver.RuinStrategy getRuinStrategies(int index)
Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
static com.google.ortools.constraintsolver.RuinRecreateParameters parseFrom(com.google.protobuf.CodedInputStream input)
static com.google.ortools.constraintsolver.RuinRecreateParameters parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.protobuf.Parser< RuinRecreateParameters > getParserForType()