Google OR-Tools v9.15
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.33.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= */ 33,
26 /* patch= */ 1,
27 /* suffix= */ "",
28 "RuinRecreateParameters");
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 }
38
39 public static final com.google.protobuf.Descriptors.Descriptor
41 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_RuinRecreateParameters_descriptor;
42 }
43
44 @java.lang.Override
45 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
47 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_RuinRecreateParameters_fieldAccessorTable
48 .ensureFieldAccessorsInitialized(
49 com.google.ortools.constraintsolver.RuinRecreateParameters.class, com.google.ortools.constraintsolver.RuinRecreateParameters.Builder.class);
50 }
51
52 private int bitField0_;
53 public static final int RUIN_STRATEGIES_FIELD_NUMBER = 1;
54 @SuppressWarnings("serial")
55 private java.util.List<com.google.ortools.constraintsolver.RuinStrategy> ruinStrategies_;
63 @java.lang.Override
65 return ruinStrategies_;
66 }
67
74 @java.lang.Override
75 public java.util.List<? extends com.google.ortools.constraintsolver.RuinStrategyOrBuilder>
77 return ruinStrategies_;
78 }
79
86 @java.lang.Override
88 return ruinStrategies_.size();
89 }
90
97 @java.lang.Override
99 return ruinStrategies_.get(index);
100 }
101
108 @java.lang.Override
110 int index) {
111 return ruinStrategies_.get(index);
112 }
113
114 public static final int RUIN_COMPOSITION_STRATEGY_FIELD_NUMBER = 2;
115 private int ruinCompositionStrategy_ = 0;
125 @java.lang.Override public int getRuinCompositionStrategyValue() {
126 return ruinCompositionStrategy_;
127 }
128
138 com.google.ortools.constraintsolver.RuinCompositionStrategy.Value result = com.google.ortools.constraintsolver.RuinCompositionStrategy.Value.forNumber(ruinCompositionStrategy_);
140 }
141
142 public static final int RECREATE_STRATEGY_FIELD_NUMBER = 3;
152 @java.lang.Override
153 public boolean hasRecreateStrategy() {
154 return ((bitField0_ & 0x00000001) != 0);
155 }
156
164 @java.lang.Override
166 return recreateStrategy_ == null ? com.google.ortools.constraintsolver.RecreateStrategy.getDefaultInstance() : recreateStrategy_;
167 }
168
175 @java.lang.Override
177 return recreateStrategy_ == null ? com.google.ortools.constraintsolver.RecreateStrategy.getDefaultInstance() : recreateStrategy_;
178 }
179
181 private double routeSelectionNeighborsRatio_ = 0D;
205 @java.lang.Override
207 return ((bitField0_ & 0x00000002) != 0);
208 }
209
232 @java.lang.Override
234 return routeSelectionNeighborsRatio_;
235 }
236
238 private int routeSelectionMinNeighbors_ = 0;
243 @java.lang.Override
245 return ((bitField0_ & 0x00000004) != 0);
246 }
247
251 @java.lang.Override
253 return routeSelectionMinNeighbors_;
254 }
255
257 private int routeSelectionMaxNeighbors_ = 0;
262 @java.lang.Override
264 return ((bitField0_ & 0x00000008) != 0);
265 }
266
270 @java.lang.Override
272 return routeSelectionMaxNeighbors_;
273 }
274
275 private byte memoizedIsInitialized = -1;
276 @java.lang.Override
277 public final boolean isInitialized() {
278 byte isInitialized = memoizedIsInitialized;
279 if (isInitialized == 1) return true;
280 if (isInitialized == 0) return false;
281
282 memoizedIsInitialized = 1;
283 return true;
284 }
285
286 @java.lang.Override
287 public void writeTo(com.google.protobuf.CodedOutputStream output)
288 throws java.io.IOException {
289 for (int i = 0; i < ruinStrategies_.size(); i++) {
290 output.writeMessage(1, ruinStrategies_.get(i));
291 }
292 if (ruinCompositionStrategy_ != com.google.ortools.constraintsolver.RuinCompositionStrategy.Value.UNSET.getNumber()) {
293 output.writeEnum(2, ruinCompositionStrategy_);
294 }
295 if (((bitField0_ & 0x00000001) != 0)) {
296 output.writeMessage(3, getRecreateStrategy());
297 }
298 if (((bitField0_ & 0x00000002) != 0)) {
299 output.writeDouble(4, routeSelectionNeighborsRatio_);
300 }
301 if (((bitField0_ & 0x00000004) != 0)) {
302 output.writeUInt32(5, routeSelectionMinNeighbors_);
303 }
304 if (((bitField0_ & 0x00000008) != 0)) {
305 output.writeUInt32(6, routeSelectionMaxNeighbors_);
306 }
307 getUnknownFields().writeTo(output);
308 }
309
310 @java.lang.Override
311 public int getSerializedSize() {
312 int size = memoizedSize;
313 if (size != -1) return size;
314
315 size = 0;
316 for (int i = 0; i < ruinStrategies_.size(); i++) {
317 size += com.google.protobuf.CodedOutputStream
318 .computeMessageSize(1, ruinStrategies_.get(i));
319 }
320 if (ruinCompositionStrategy_ != com.google.ortools.constraintsolver.RuinCompositionStrategy.Value.UNSET.getNumber()) {
321 size += com.google.protobuf.CodedOutputStream
322 .computeEnumSize(2, ruinCompositionStrategy_);
323 }
324 if (((bitField0_ & 0x00000001) != 0)) {
325 size += com.google.protobuf.CodedOutputStream
326 .computeMessageSize(3, getRecreateStrategy());
327 }
328 if (((bitField0_ & 0x00000002) != 0)) {
329 size += com.google.protobuf.CodedOutputStream
330 .computeDoubleSize(4, routeSelectionNeighborsRatio_);
331 }
332 if (((bitField0_ & 0x00000004) != 0)) {
333 size += com.google.protobuf.CodedOutputStream
334 .computeUInt32Size(5, routeSelectionMinNeighbors_);
335 }
336 if (((bitField0_ & 0x00000008) != 0)) {
337 size += com.google.protobuf.CodedOutputStream
338 .computeUInt32Size(6, routeSelectionMaxNeighbors_);
339 }
340 size += getUnknownFields().getSerializedSize();
341 memoizedSize = size;
342 return size;
343 }
344
345 @java.lang.Override
346 public boolean equals(final java.lang.Object obj) {
347 if (obj == this) {
348 return true;
349 }
350 if (!(obj instanceof com.google.ortools.constraintsolver.RuinRecreateParameters)) {
351 return super.equals(obj);
352 }
353 com.google.ortools.constraintsolver.RuinRecreateParameters other = (com.google.ortools.constraintsolver.RuinRecreateParameters) obj;
354
356 .equals(other.getRuinStrategiesList())) return false;
357 if (ruinCompositionStrategy_ != other.ruinCompositionStrategy_) return false;
358 if (hasRecreateStrategy() != other.hasRecreateStrategy()) return false;
359 if (hasRecreateStrategy()) {
361 .equals(other.getRecreateStrategy())) return false;
362 }
365 if (java.lang.Double.doubleToLongBits(getRouteSelectionNeighborsRatio())
366 != java.lang.Double.doubleToLongBits(
367 other.getRouteSelectionNeighborsRatio())) return false;
368 }
372 != other.getRouteSelectionMinNeighbors()) return false;
373 }
377 != other.getRouteSelectionMaxNeighbors()) return false;
378 }
379 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
380 return true;
381 }
382
383 @java.lang.Override
384 public int hashCode() {
385 if (memoizedHashCode != 0) {
386 return memoizedHashCode;
387 }
388 int hash = 41;
389 hash = (19 * hash) + getDescriptor().hashCode();
390 if (getRuinStrategiesCount() > 0) {
391 hash = (37 * hash) + RUIN_STRATEGIES_FIELD_NUMBER;
392 hash = (53 * hash) + getRuinStrategiesList().hashCode();
393 }
394 hash = (37 * hash) + RUIN_COMPOSITION_STRATEGY_FIELD_NUMBER;
395 hash = (53 * hash) + ruinCompositionStrategy_;
396 if (hasRecreateStrategy()) {
397 hash = (37 * hash) + RECREATE_STRATEGY_FIELD_NUMBER;
398 hash = (53 * hash) + getRecreateStrategy().hashCode();
399 }
402 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
403 java.lang.Double.doubleToLongBits(getRouteSelectionNeighborsRatio()));
404 }
407 hash = (53 * hash) + getRouteSelectionMinNeighbors();
408 }
411 hash = (53 * hash) + getRouteSelectionMaxNeighbors();
412 }
413 hash = (29 * hash) + getUnknownFields().hashCode();
414 memoizedHashCode = hash;
415 return hash;
416 }
417
419 java.nio.ByteBuffer data)
420 throws com.google.protobuf.InvalidProtocolBufferException {
421 return PARSER.parseFrom(data);
422 }
424 java.nio.ByteBuffer data,
425 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
426 throws com.google.protobuf.InvalidProtocolBufferException {
427 return PARSER.parseFrom(data, extensionRegistry);
428 }
430 com.google.protobuf.ByteString data)
431 throws com.google.protobuf.InvalidProtocolBufferException {
432 return PARSER.parseFrom(data);
433 }
435 com.google.protobuf.ByteString data,
436 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
437 throws com.google.protobuf.InvalidProtocolBufferException {
438 return PARSER.parseFrom(data, extensionRegistry);
439 }
441 throws com.google.protobuf.InvalidProtocolBufferException {
442 return PARSER.parseFrom(data);
443 }
445 byte[] data,
446 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
447 throws com.google.protobuf.InvalidProtocolBufferException {
448 return PARSER.parseFrom(data, extensionRegistry);
449 }
451 throws java.io.IOException {
452 return com.google.protobuf.GeneratedMessage
453 .parseWithIOException(PARSER, input);
454 }
456 java.io.InputStream input,
457 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
458 throws java.io.IOException {
459 return com.google.protobuf.GeneratedMessage
460 .parseWithIOException(PARSER, input, extensionRegistry);
461 }
462
464 throws java.io.IOException {
465 return com.google.protobuf.GeneratedMessage
466 .parseDelimitedWithIOException(PARSER, input);
467 }
468
470 java.io.InputStream input,
471 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
472 throws java.io.IOException {
473 return com.google.protobuf.GeneratedMessage
474 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
475 }
477 com.google.protobuf.CodedInputStream input)
478 throws java.io.IOException {
479 return com.google.protobuf.GeneratedMessage
480 .parseWithIOException(PARSER, input);
481 }
483 com.google.protobuf.CodedInputStream input,
484 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
485 throws java.io.IOException {
486 return com.google.protobuf.GeneratedMessage
487 .parseWithIOException(PARSER, input, extensionRegistry);
488 }
489
490 @java.lang.Override
491 public Builder newBuilderForType() { return newBuilder(); }
492 public static Builder newBuilder() {
493 return DEFAULT_INSTANCE.toBuilder();
494 }
495 public static Builder newBuilder(com.google.ortools.constraintsolver.RuinRecreateParameters prototype) {
496 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
497 }
498 @java.lang.Override
500 return this == DEFAULT_INSTANCE
501 ? new Builder() : new Builder().mergeFrom(this);
502 }
503
504 @java.lang.Override
506 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
507 Builder builder = new Builder(parent);
508 return builder;
509 }
510
517 public static final class Builder extends
518 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
519 // @@protoc_insertion_point(builder_implements:operations_research.RuinRecreateParameters)
521 public static final com.google.protobuf.Descriptors.Descriptor
523 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_RuinRecreateParameters_descriptor;
524 }
525
526 @java.lang.Override
527 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
529 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_RuinRecreateParameters_fieldAccessorTable
530 .ensureFieldAccessorsInitialized(
531 com.google.ortools.constraintsolver.RuinRecreateParameters.class, com.google.ortools.constraintsolver.RuinRecreateParameters.Builder.class);
532 }
533
534 // Construct using com.google.ortools.constraintsolver.RuinRecreateParameters.newBuilder()
535 private Builder() {
536 maybeForceBuilderInitialization();
537 }
538
539 private Builder(
540 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
541 super(parent);
542 maybeForceBuilderInitialization();
543 }
544 private void maybeForceBuilderInitialization() {
545 if (com.google.protobuf.GeneratedMessage
546 .alwaysUseFieldBuilders) {
547 internalGetRuinStrategiesFieldBuilder();
548 internalGetRecreateStrategyFieldBuilder();
549 }
550 }
551 @java.lang.Override
552 public Builder clear() {
553 super.clear();
554 bitField0_ = 0;
555 if (ruinStrategiesBuilder_ == null) {
556 ruinStrategies_ = java.util.Collections.emptyList();
557 } else {
558 ruinStrategies_ = null;
559 ruinStrategiesBuilder_.clear();
560 }
561 bitField0_ = (bitField0_ & ~0x00000001);
562 ruinCompositionStrategy_ = 0;
563 recreateStrategy_ = null;
564 if (recreateStrategyBuilder_ != null) {
565 recreateStrategyBuilder_.dispose();
566 recreateStrategyBuilder_ = null;
567 }
568 routeSelectionNeighborsRatio_ = 0D;
569 routeSelectionMinNeighbors_ = 0;
570 routeSelectionMaxNeighbors_ = 0;
571 return this;
572 }
573
574 @java.lang.Override
575 public com.google.protobuf.Descriptors.Descriptor
577 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_RuinRecreateParameters_descriptor;
578 }
579
580 @java.lang.Override
582 return com.google.ortools.constraintsolver.RuinRecreateParameters.getDefaultInstance();
583 }
584
585 @java.lang.Override
588 if (!result.isInitialized()) {
589 throw newUninitializedMessageException(result);
590 }
591 return result;
592 }
593
594 @java.lang.Override
596 com.google.ortools.constraintsolver.RuinRecreateParameters result = new com.google.ortools.constraintsolver.RuinRecreateParameters(this);
597 buildPartialRepeatedFields(result);
598 if (bitField0_ != 0) { buildPartial0(result); }
599 onBuilt();
600 return result;
601 }
602
603 private void buildPartialRepeatedFields(com.google.ortools.constraintsolver.RuinRecreateParameters result) {
604 if (ruinStrategiesBuilder_ == null) {
605 if (((bitField0_ & 0x00000001) != 0)) {
606 ruinStrategies_ = java.util.Collections.unmodifiableList(ruinStrategies_);
607 bitField0_ = (bitField0_ & ~0x00000001);
608 }
609 result.ruinStrategies_ = ruinStrategies_;
610 } else {
611 result.ruinStrategies_ = ruinStrategiesBuilder_.build();
612 }
613 }
614
615 private void buildPartial0(com.google.ortools.constraintsolver.RuinRecreateParameters result) {
616 int from_bitField0_ = bitField0_;
617 if (((from_bitField0_ & 0x00000002) != 0)) {
618 result.ruinCompositionStrategy_ = ruinCompositionStrategy_;
619 }
620 int to_bitField0_ = 0;
621 if (((from_bitField0_ & 0x00000004) != 0)) {
622 result.recreateStrategy_ = recreateStrategyBuilder_ == null
623 ? recreateStrategy_
624 : recreateStrategyBuilder_.build();
625 to_bitField0_ |= 0x00000001;
626 }
627 if (((from_bitField0_ & 0x00000008) != 0)) {
628 result.routeSelectionNeighborsRatio_ = routeSelectionNeighborsRatio_;
629 to_bitField0_ |= 0x00000002;
630 }
631 if (((from_bitField0_ & 0x00000010) != 0)) {
632 result.routeSelectionMinNeighbors_ = routeSelectionMinNeighbors_;
633 to_bitField0_ |= 0x00000004;
634 }
635 if (((from_bitField0_ & 0x00000020) != 0)) {
636 result.routeSelectionMaxNeighbors_ = routeSelectionMaxNeighbors_;
637 to_bitField0_ |= 0x00000008;
638 }
639 result.bitField0_ |= to_bitField0_;
640 }
641
642 @java.lang.Override
643 public Builder mergeFrom(com.google.protobuf.Message other) {
644 if (other instanceof com.google.ortools.constraintsolver.RuinRecreateParameters) {
645 return mergeFrom((com.google.ortools.constraintsolver.RuinRecreateParameters)other);
646 } else {
647 super.mergeFrom(other);
648 return this;
649 }
650 }
651
652 public Builder mergeFrom(com.google.ortools.constraintsolver.RuinRecreateParameters other) {
653 if (other == com.google.ortools.constraintsolver.RuinRecreateParameters.getDefaultInstance()) return this;
654 if (ruinStrategiesBuilder_ == null) {
655 if (!other.ruinStrategies_.isEmpty()) {
656 if (ruinStrategies_.isEmpty()) {
657 ruinStrategies_ = other.ruinStrategies_;
658 bitField0_ = (bitField0_ & ~0x00000001);
659 } else {
660 ensureRuinStrategiesIsMutable();
661 ruinStrategies_.addAll(other.ruinStrategies_);
662 }
663 onChanged();
664 }
665 } else {
666 if (!other.ruinStrategies_.isEmpty()) {
667 if (ruinStrategiesBuilder_.isEmpty()) {
668 ruinStrategiesBuilder_.dispose();
669 ruinStrategiesBuilder_ = null;
670 ruinStrategies_ = other.ruinStrategies_;
671 bitField0_ = (bitField0_ & ~0x00000001);
672 ruinStrategiesBuilder_ =
673 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
674 internalGetRuinStrategiesFieldBuilder() : null;
675 } else {
676 ruinStrategiesBuilder_.addAllMessages(other.ruinStrategies_);
677 }
678 }
679 }
680 if (other.ruinCompositionStrategy_ != 0) {
681 setRuinCompositionStrategyValue(other.getRuinCompositionStrategyValue());
682 }
683 if (other.hasRecreateStrategy()) {
684 mergeRecreateStrategy(other.getRecreateStrategy());
685 }
686 if (other.hasRouteSelectionNeighborsRatio()) {
687 setRouteSelectionNeighborsRatio(other.getRouteSelectionNeighborsRatio());
688 }
689 if (other.hasRouteSelectionMinNeighbors()) {
690 setRouteSelectionMinNeighbors(other.getRouteSelectionMinNeighbors());
691 }
692 if (other.hasRouteSelectionMaxNeighbors()) {
693 setRouteSelectionMaxNeighbors(other.getRouteSelectionMaxNeighbors());
694 }
695 this.mergeUnknownFields(other.getUnknownFields());
696 onChanged();
697 return this;
698 }
699
700 @java.lang.Override
701 public final boolean isInitialized() {
702 return true;
703 }
704
705 @java.lang.Override
706 public Builder mergeFrom(
707 com.google.protobuf.CodedInputStream input,
708 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
709 throws java.io.IOException {
710 if (extensionRegistry == null) {
711 throw new java.lang.NullPointerException();
712 }
713 try {
714 boolean done = false;
715 while (!done) {
716 int tag = input.readTag();
717 switch (tag) {
718 case 0:
719 done = true;
720 break;
721 case 10: {
723 input.readMessage(
724 com.google.ortools.constraintsolver.RuinStrategy.parser(),
725 extensionRegistry);
726 if (ruinStrategiesBuilder_ == null) {
727 ensureRuinStrategiesIsMutable();
728 ruinStrategies_.add(m);
729 } else {
730 ruinStrategiesBuilder_.addMessage(m);
731 }
732 break;
733 } // case 10
734 case 16: {
735 ruinCompositionStrategy_ = input.readEnum();
736 bitField0_ |= 0x00000002;
737 break;
738 } // case 16
739 case 26: {
740 input.readMessage(
741 internalGetRecreateStrategyFieldBuilder().getBuilder(),
742 extensionRegistry);
743 bitField0_ |= 0x00000004;
744 break;
745 } // case 26
746 case 33: {
747 routeSelectionNeighborsRatio_ = input.readDouble();
748 bitField0_ |= 0x00000008;
749 break;
750 } // case 33
751 case 40: {
752 routeSelectionMinNeighbors_ = input.readUInt32();
753 bitField0_ |= 0x00000010;
754 break;
755 } // case 40
756 case 48: {
757 routeSelectionMaxNeighbors_ = input.readUInt32();
758 bitField0_ |= 0x00000020;
759 break;
760 } // case 48
761 default: {
762 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
763 done = true; // was an endgroup tag
764 }
765 break;
766 } // default:
767 } // switch (tag)
768 } // while (!done)
769 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
770 throw e.unwrapIOException();
771 } finally {
772 onChanged();
773 } // finally
774 return this;
775 }
776 private int bitField0_;
777
778 private java.util.List<com.google.ortools.constraintsolver.RuinStrategy> ruinStrategies_ =
779 java.util.Collections.emptyList();
780 private void ensureRuinStrategiesIsMutable() {
781 if (!((bitField0_ & 0x00000001) != 0)) {
782 ruinStrategies_ = new java.util.ArrayList<com.google.ortools.constraintsolver.RuinStrategy>(ruinStrategies_);
783 bitField0_ |= 0x00000001;
784 }
785 }
786
787 private com.google.protobuf.RepeatedFieldBuilder<
788 com.google.ortools.constraintsolver.RuinStrategy, com.google.ortools.constraintsolver.RuinStrategy.Builder, com.google.ortools.constraintsolver.RuinStrategyOrBuilder> ruinStrategiesBuilder_;
789
797 public java.util.List<com.google.ortools.constraintsolver.RuinStrategy> getRuinStrategiesList() {
798 if (ruinStrategiesBuilder_ == null) {
799 return java.util.Collections.unmodifiableList(ruinStrategies_);
800 } else {
801 return ruinStrategiesBuilder_.getMessageList();
802 }
803 }
804
812 if (ruinStrategiesBuilder_ == null) {
813 return ruinStrategies_.size();
814 } else {
815 return ruinStrategiesBuilder_.getCount();
816 }
817 }
818
826 if (ruinStrategiesBuilder_ == null) {
827 return ruinStrategies_.get(index);
828 } else {
829 return ruinStrategiesBuilder_.getMessage(index);
830 }
831 }
832
839 public Builder setRuinStrategies(
840 int index, com.google.ortools.constraintsolver.RuinStrategy value) {
841 if (ruinStrategiesBuilder_ == null) {
842 if (value == null) {
843 throw new NullPointerException();
844 }
845 ensureRuinStrategiesIsMutable();
846 ruinStrategies_.set(index, value);
847 onChanged();
848 } else {
849 ruinStrategiesBuilder_.setMessage(index, value);
850 }
851 return this;
852 }
853
860 public Builder setRuinStrategies(
861 int index, com.google.ortools.constraintsolver.RuinStrategy.Builder builderForValue) {
862 if (ruinStrategiesBuilder_ == null) {
863 ensureRuinStrategiesIsMutable();
864 ruinStrategies_.set(index, builderForValue.build());
865 onChanged();
866 } else {
867 ruinStrategiesBuilder_.setMessage(index, builderForValue.build());
868 }
869 return this;
870 }
871
878 public Builder addRuinStrategies(com.google.ortools.constraintsolver.RuinStrategy value) {
879 if (ruinStrategiesBuilder_ == null) {
880 if (value == null) {
881 throw new NullPointerException();
882 }
883 ensureRuinStrategiesIsMutable();
884 ruinStrategies_.add(value);
885 onChanged();
886 } else {
887 ruinStrategiesBuilder_.addMessage(value);
888 }
889 return this;
890 }
891
898 public Builder addRuinStrategies(
899 int index, com.google.ortools.constraintsolver.RuinStrategy value) {
900 if (ruinStrategiesBuilder_ == null) {
901 if (value == null) {
902 throw new NullPointerException();
903 }
904 ensureRuinStrategiesIsMutable();
905 ruinStrategies_.add(index, value);
906 onChanged();
907 } else {
908 ruinStrategiesBuilder_.addMessage(index, value);
909 }
910 return this;
911 }
912
919 public Builder addRuinStrategies(
920 com.google.ortools.constraintsolver.RuinStrategy.Builder builderForValue) {
921 if (ruinStrategiesBuilder_ == null) {
922 ensureRuinStrategiesIsMutable();
923 ruinStrategies_.add(builderForValue.build());
924 onChanged();
925 } else {
926 ruinStrategiesBuilder_.addMessage(builderForValue.build());
927 }
928 return this;
929 }
930
937 public Builder addRuinStrategies(
938 int index, com.google.ortools.constraintsolver.RuinStrategy.Builder builderForValue) {
939 if (ruinStrategiesBuilder_ == null) {
940 ensureRuinStrategiesIsMutable();
941 ruinStrategies_.add(index, builderForValue.build());
942 onChanged();
943 } else {
944 ruinStrategiesBuilder_.addMessage(index, builderForValue.build());
945 }
946 return this;
947 }
948
955 public Builder addAllRuinStrategies(
956 java.lang.Iterable<? extends com.google.ortools.constraintsolver.RuinStrategy> values) {
957 if (ruinStrategiesBuilder_ == null) {
958 ensureRuinStrategiesIsMutable();
959 com.google.protobuf.AbstractMessageLite.Builder.addAll(
960 values, ruinStrategies_);
961 onChanged();
962 } else {
963 ruinStrategiesBuilder_.addAllMessages(values);
964 }
965 return this;
966 }
967
974 public Builder clearRuinStrategies() {
975 if (ruinStrategiesBuilder_ == null) {
976 ruinStrategies_ = java.util.Collections.emptyList();
977 bitField0_ = (bitField0_ & ~0x00000001);
978 onChanged();
979 } else {
980 ruinStrategiesBuilder_.clear();
981 }
982 return this;
983 }
984
991 public Builder removeRuinStrategies(int index) {
992 if (ruinStrategiesBuilder_ == null) {
993 ensureRuinStrategiesIsMutable();
994 ruinStrategies_.remove(index);
995 onChanged();
996 } else {
997 ruinStrategiesBuilder_.remove(index);
998 }
999 return this;
1000 }
1001
1009 int index) {
1010 return internalGetRuinStrategiesFieldBuilder().getBuilder(index);
1011 }
1012
1020 int index) {
1021 if (ruinStrategiesBuilder_ == null) {
1022 return ruinStrategies_.get(index); } else {
1023 return ruinStrategiesBuilder_.getMessageOrBuilder(index);
1024 }
1025 }
1026
1033 public java.util.List<? extends com.google.ortools.constraintsolver.RuinStrategyOrBuilder>
1035 if (ruinStrategiesBuilder_ != null) {
1036 return ruinStrategiesBuilder_.getMessageOrBuilderList();
1037 } else {
1038 return java.util.Collections.unmodifiableList(ruinStrategies_);
1039 }
1040 }
1041
1049 return internalGetRuinStrategiesFieldBuilder().addBuilder(
1050 com.google.ortools.constraintsolver.RuinStrategy.getDefaultInstance());
1051 }
1052
1060 int index) {
1061 return internalGetRuinStrategiesFieldBuilder().addBuilder(
1062 index, com.google.ortools.constraintsolver.RuinStrategy.getDefaultInstance());
1063 }
1064
1071 public java.util.List<com.google.ortools.constraintsolver.RuinStrategy.Builder>
1073 return internalGetRuinStrategiesFieldBuilder().getBuilderList();
1074 }
1075 private com.google.protobuf.RepeatedFieldBuilder<
1076 com.google.ortools.constraintsolver.RuinStrategy, com.google.ortools.constraintsolver.RuinStrategy.Builder, com.google.ortools.constraintsolver.RuinStrategyOrBuilder>
1077 internalGetRuinStrategiesFieldBuilder() {
1078 if (ruinStrategiesBuilder_ == null) {
1079 ruinStrategiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
1080 com.google.ortools.constraintsolver.RuinStrategy, com.google.ortools.constraintsolver.RuinStrategy.Builder, com.google.ortools.constraintsolver.RuinStrategyOrBuilder>(
1081 ruinStrategies_,
1082 ((bitField0_ & 0x00000001) != 0),
1083 getParentForChildren(),
1084 isClean());
1085 ruinStrategies_ = null;
1086 }
1087 return ruinStrategiesBuilder_;
1088 }
1089
1090 private int ruinCompositionStrategy_ = 0;
1100 @java.lang.Override public int getRuinCompositionStrategyValue() {
1101 return ruinCompositionStrategy_;
1102 }
1103
1113 public Builder setRuinCompositionStrategyValue(int value) {
1114 ruinCompositionStrategy_ = value;
1115 bitField0_ |= 0x00000002;
1116 onChanged();
1117 return this;
1118 }
1119
1128 @java.lang.Override
1130 com.google.ortools.constraintsolver.RuinCompositionStrategy.Value result = com.google.ortools.constraintsolver.RuinCompositionStrategy.Value.forNumber(ruinCompositionStrategy_);
1132 }
1133
1143 public Builder setRuinCompositionStrategy(com.google.ortools.constraintsolver.RuinCompositionStrategy.Value value) {
1144 if (value == null) { throw new NullPointerException(); }
1145 bitField0_ |= 0x00000002;
1146 ruinCompositionStrategy_ = value.getNumber();
1147 onChanged();
1148 return this;
1149 }
1150
1160 bitField0_ = (bitField0_ & ~0x00000002);
1161 ruinCompositionStrategy_ = 0;
1162 onChanged();
1163 return this;
1164 }
1165
1167 private com.google.protobuf.SingleFieldBuilder<
1168 com.google.ortools.constraintsolver.RecreateStrategy, com.google.ortools.constraintsolver.RecreateStrategy.Builder, com.google.ortools.constraintsolver.RecreateStrategyOrBuilder> recreateStrategyBuilder_;
1177 public boolean hasRecreateStrategy() {
1178 return ((bitField0_ & 0x00000004) != 0);
1179 }
1180
1189 if (recreateStrategyBuilder_ == null) {
1190 return recreateStrategy_ == null ? com.google.ortools.constraintsolver.RecreateStrategy.getDefaultInstance() : recreateStrategy_;
1191 } else {
1192 return recreateStrategyBuilder_.getMessage();
1193 }
1194 }
1195
1202 public Builder setRecreateStrategy(com.google.ortools.constraintsolver.RecreateStrategy value) {
1203 if (recreateStrategyBuilder_ == null) {
1204 if (value == null) {
1205 throw new NullPointerException();
1206 }
1207 recreateStrategy_ = value;
1208 } else {
1209 recreateStrategyBuilder_.setMessage(value);
1210 }
1211 bitField0_ |= 0x00000004;
1212 onChanged();
1213 return this;
1214 }
1215
1222 public Builder setRecreateStrategy(
1223 com.google.ortools.constraintsolver.RecreateStrategy.Builder builderForValue) {
1224 if (recreateStrategyBuilder_ == null) {
1225 recreateStrategy_ = builderForValue.build();
1226 } else {
1227 recreateStrategyBuilder_.setMessage(builderForValue.build());
1228 }
1229 bitField0_ |= 0x00000004;
1230 onChanged();
1231 return this;
1232 }
1233
1240 public Builder mergeRecreateStrategy(com.google.ortools.constraintsolver.RecreateStrategy value) {
1241 if (recreateStrategyBuilder_ == null) {
1242 if (((bitField0_ & 0x00000004) != 0) &&
1243 recreateStrategy_ != null &&
1244 recreateStrategy_ != com.google.ortools.constraintsolver.RecreateStrategy.getDefaultInstance()) {
1245 getRecreateStrategyBuilder().mergeFrom(value);
1246 } else {
1247 recreateStrategy_ = value;
1248 }
1249 } else {
1250 recreateStrategyBuilder_.mergeFrom(value);
1251 }
1252 if (recreateStrategy_ != null) {
1253 bitField0_ |= 0x00000004;
1254 onChanged();
1255 }
1256 return this;
1257 }
1258
1265 public Builder clearRecreateStrategy() {
1266 bitField0_ = (bitField0_ & ~0x00000004);
1267 recreateStrategy_ = null;
1268 if (recreateStrategyBuilder_ != null) {
1269 recreateStrategyBuilder_.dispose();
1270 recreateStrategyBuilder_ = null;
1271 }
1272 onChanged();
1273 return this;
1274 }
1275
1283 bitField0_ |= 0x00000004;
1284 onChanged();
1285 return internalGetRecreateStrategyFieldBuilder().getBuilder();
1286 }
1287
1295 if (recreateStrategyBuilder_ != null) {
1296 return recreateStrategyBuilder_.getMessageOrBuilder();
1297 } else {
1298 return recreateStrategy_ == null ?
1299 com.google.ortools.constraintsolver.RecreateStrategy.getDefaultInstance() : recreateStrategy_;
1300 }
1301 }
1302
1309 private com.google.protobuf.SingleFieldBuilder<
1310 com.google.ortools.constraintsolver.RecreateStrategy, com.google.ortools.constraintsolver.RecreateStrategy.Builder, com.google.ortools.constraintsolver.RecreateStrategyOrBuilder>
1311 internalGetRecreateStrategyFieldBuilder() {
1312 if (recreateStrategyBuilder_ == null) {
1313 recreateStrategyBuilder_ = new com.google.protobuf.SingleFieldBuilder<
1314 com.google.ortools.constraintsolver.RecreateStrategy, com.google.ortools.constraintsolver.RecreateStrategy.Builder, com.google.ortools.constraintsolver.RecreateStrategyOrBuilder>(
1316 getParentForChildren(),
1317 isClean());
1318 recreateStrategy_ = null;
1319 }
1320 return recreateStrategyBuilder_;
1321 }
1322
1323 private double routeSelectionNeighborsRatio_ ;
1347 @java.lang.Override
1349 return ((bitField0_ & 0x00000008) != 0);
1350 }
1351
1374 @java.lang.Override
1376 return routeSelectionNeighborsRatio_;
1377 }
1378
1402 public Builder setRouteSelectionNeighborsRatio(double value) {
1403
1404 routeSelectionNeighborsRatio_ = value;
1405 bitField0_ |= 0x00000008;
1406 onChanged();
1407 return this;
1408 }
1409
1433 bitField0_ = (bitField0_ & ~0x00000008);
1434 routeSelectionNeighborsRatio_ = 0D;
1435 onChanged();
1436 return this;
1437 }
1438
1439 private int routeSelectionMinNeighbors_ ;
1444 @java.lang.Override
1446 return ((bitField0_ & 0x00000010) != 0);
1447 }
1448
1452 @java.lang.Override
1454 return routeSelectionMinNeighbors_;
1455 }
1456
1461 public Builder setRouteSelectionMinNeighbors(int value) {
1462
1463 routeSelectionMinNeighbors_ = value;
1464 bitField0_ |= 0x00000010;
1465 onChanged();
1466 return this;
1467 }
1468
1473 bitField0_ = (bitField0_ & ~0x00000010);
1474 routeSelectionMinNeighbors_ = 0;
1475 onChanged();
1476 return this;
1477 }
1478
1479 private int routeSelectionMaxNeighbors_ ;
1484 @java.lang.Override
1486 return ((bitField0_ & 0x00000020) != 0);
1487 }
1488
1492 @java.lang.Override
1494 return routeSelectionMaxNeighbors_;
1495 }
1496
1501 public Builder setRouteSelectionMaxNeighbors(int value) {
1502
1503 routeSelectionMaxNeighbors_ = value;
1504 bitField0_ |= 0x00000020;
1505 onChanged();
1506 return this;
1507 }
1508
1513 bitField0_ = (bitField0_ & ~0x00000020);
1514 routeSelectionMaxNeighbors_ = 0;
1515 onChanged();
1516 return this;
1517 }
1518
1519 // @@protoc_insertion_point(builder_scope:operations_research.RuinRecreateParameters)
1520 }
1521
1522 // @@protoc_insertion_point(class_scope:operations_research.RuinRecreateParameters)
1523 private static final com.google.ortools.constraintsolver.RuinRecreateParameters DEFAULT_INSTANCE;
1524 static {
1525 DEFAULT_INSTANCE = new com.google.ortools.constraintsolver.RuinRecreateParameters();
1526 }
1527
1529 return DEFAULT_INSTANCE;
1530 }
1531
1532 private static final com.google.protobuf.Parser<RuinRecreateParameters>
1533 PARSER = new com.google.protobuf.AbstractParser<RuinRecreateParameters>() {
1534 @java.lang.Override
1535 public RuinRecreateParameters parsePartialFrom(
1536 com.google.protobuf.CodedInputStream input,
1537 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1538 throws com.google.protobuf.InvalidProtocolBufferException {
1539 Builder builder = newBuilder();
1540 try {
1541 builder.mergeFrom(input, extensionRegistry);
1542 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1543 throw e.setUnfinishedMessage(builder.buildPartial());
1544 } catch (com.google.protobuf.UninitializedMessageException e) {
1545 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1546 } catch (java.io.IOException e) {
1547 throw new com.google.protobuf.InvalidProtocolBufferException(e)
1548 .setUnfinishedMessage(builder.buildPartial());
1549 }
1550 return builder.buildPartial();
1551 }
1552 };
1553
1554 public static com.google.protobuf.Parser<RuinRecreateParameters> parser() {
1555 return PARSER;
1556 }
1557
1558 @java.lang.Override
1559 public com.google.protobuf.Parser<RuinRecreateParameters> getParserForType() {
1560 return PARSER;
1561 }
1562
1563 @java.lang.Override
1567
1568}
1569
Builder addAllRuinStrategies(java.lang.Iterable<? extends com.google.ortools.constraintsolver.RuinStrategy > values)
com.google.ortools.constraintsolver.RuinRecreateParameters build()
Builder setRecreateStrategy(com.google.ortools.constraintsolver.RecreateStrategy value)
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)
Builder mergeRecreateStrategy(com.google.ortools.constraintsolver.RecreateStrategy value)
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()
com.google.ortools.constraintsolver.RecreateStrategy getRecreateStrategy()
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()
com.google.ortools.constraintsolver.RecreateStrategyOrBuilder getRecreateStrategyOrBuilder()
Builder addRuinStrategies(com.google.ortools.constraintsolver.RuinStrategy.Builder builderForValue)
com.google.ortools.constraintsolver.RecreateStrategy.Builder getRecreateStrategyBuilder()
com.google.ortools.constraintsolver.RuinStrategy.Builder getRuinStrategiesBuilder(int index)
com.google.ortools.constraintsolver.RuinRecreateParameters getDefaultInstanceForType()
Builder addRuinStrategies(int index, com.google.ortools.constraintsolver.RuinStrategy value)
Builder setRecreateStrategy(com.google.ortools.constraintsolver.RecreateStrategy.Builder builderForValue)
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.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)
com.google.ortools.constraintsolver.RecreateStrategyOrBuilder getRecreateStrategyOrBuilder()
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)
com.google.ortools.constraintsolver.RecreateStrategy getRecreateStrategy()
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()