Google OR-Tools v9.12
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
IteratedLocalSearchParameters.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.29.3
5
6package com.google.ortools.constraintsolver;
7
15public final class IteratedLocalSearchParameters extends
16 com.google.protobuf.GeneratedMessage implements
17 // @@protoc_insertion_point(message_implements:operations_research.IteratedLocalSearchParameters)
19private static final long serialVersionUID = 0L;
20 static {
21 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
22 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
23 /* major= */ 4,
24 /* minor= */ 29,
25 /* patch= */ 3,
26 /* suffix= */ "",
27 IteratedLocalSearchParameters.class.getName());
28 }
29 // Use IteratedLocalSearchParameters.newBuilder() to construct.
30 private IteratedLocalSearchParameters(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
31 super(builder);
32 }
33 private IteratedLocalSearchParameters() {
34 perturbationStrategy_ = 0;
35 acceptanceStrategy_ = 0;
36 }
37
38 public static final com.google.protobuf.Descriptors.Descriptor
40 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_IteratedLocalSearchParameters_descriptor;
41 }
42
43 @java.lang.Override
44 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
46 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_IteratedLocalSearchParameters_fieldAccessorTable
47 .ensureFieldAccessorsInitialized(
48 com.google.ortools.constraintsolver.IteratedLocalSearchParameters.class, com.google.ortools.constraintsolver.IteratedLocalSearchParameters.Builder.class);
49 }
50
51 private int bitField0_;
52 public static final int PERTURBATION_STRATEGY_FIELD_NUMBER = 1;
53 private int perturbationStrategy_ = 0;
63 @java.lang.Override public int getPerturbationStrategyValue() {
64 return perturbationStrategy_;
65 }
66
76 com.google.ortools.constraintsolver.PerturbationStrategy.Value result = com.google.ortools.constraintsolver.PerturbationStrategy.Value.forNumber(perturbationStrategy_);
78 }
79
80 public static final int RUIN_RECREATE_PARAMETERS_FIELD_NUMBER = 2;
90 @java.lang.Override
91 public boolean hasRuinRecreateParameters() {
92 return ((bitField0_ & 0x00000001) != 0);
93 }
94
102 @java.lang.Override
104 return ruinRecreateParameters_ == null ? com.google.ortools.constraintsolver.RuinRecreateParameters.getDefaultInstance() : ruinRecreateParameters_;
105 }
106
113 @java.lang.Override
115 return ruinRecreateParameters_ == null ? com.google.ortools.constraintsolver.RuinRecreateParameters.getDefaultInstance() : ruinRecreateParameters_;
116 }
117
118 public static final int IMPROVE_PERTURBED_SOLUTION_FIELD_NUMBER = 3;
119 private boolean improvePerturbedSolution_ = false;
129 @java.lang.Override
131 return ((bitField0_ & 0x00000002) != 0);
132 }
133
142 @java.lang.Override
144 return improvePerturbedSolution_;
145 }
146
147 public static final int ACCEPTANCE_STRATEGY_FIELD_NUMBER = 4;
148 private int acceptanceStrategy_ = 0;
158 @java.lang.Override public int getAcceptanceStrategyValue() {
159 return acceptanceStrategy_;
160 }
161
171 com.google.ortools.constraintsolver.AcceptanceStrategy.Value result = com.google.ortools.constraintsolver.AcceptanceStrategy.Value.forNumber(acceptanceStrategy_);
173 }
174
176 private com.google.ortools.constraintsolver.SimulatedAnnealingParameters simulatedAnnealingParameters_;
186 @java.lang.Override
188 return ((bitField0_ & 0x00000004) != 0);
189 }
190
199 @java.lang.Override
201 return simulatedAnnealingParameters_ == null ? com.google.ortools.constraintsolver.SimulatedAnnealingParameters.getDefaultInstance() : simulatedAnnealingParameters_;
202 }
203
211 @java.lang.Override
213 return simulatedAnnealingParameters_ == null ? com.google.ortools.constraintsolver.SimulatedAnnealingParameters.getDefaultInstance() : simulatedAnnealingParameters_;
214 }
215
216 private byte memoizedIsInitialized = -1;
217 @java.lang.Override
218 public final boolean isInitialized() {
219 byte isInitialized = memoizedIsInitialized;
220 if (isInitialized == 1) return true;
221 if (isInitialized == 0) return false;
222
223 memoizedIsInitialized = 1;
224 return true;
225 }
226
227 @java.lang.Override
228 public void writeTo(com.google.protobuf.CodedOutputStream output)
229 throws java.io.IOException {
230 if (perturbationStrategy_ != com.google.ortools.constraintsolver.PerturbationStrategy.Value.UNSET.getNumber()) {
231 output.writeEnum(1, perturbationStrategy_);
232 }
233 if (((bitField0_ & 0x00000001) != 0)) {
234 output.writeMessage(2, getRuinRecreateParameters());
235 }
236 if (((bitField0_ & 0x00000002) != 0)) {
237 output.writeBool(3, improvePerturbedSolution_);
238 }
239 if (acceptanceStrategy_ != com.google.ortools.constraintsolver.AcceptanceStrategy.Value.UNSET.getNumber()) {
240 output.writeEnum(4, acceptanceStrategy_);
241 }
242 if (((bitField0_ & 0x00000004) != 0)) {
243 output.writeMessage(5, getSimulatedAnnealingParameters());
244 }
245 getUnknownFields().writeTo(output);
246 }
247
248 @java.lang.Override
249 public int getSerializedSize() {
250 int size = memoizedSize;
251 if (size != -1) return size;
252
253 size = 0;
254 if (perturbationStrategy_ != com.google.ortools.constraintsolver.PerturbationStrategy.Value.UNSET.getNumber()) {
255 size += com.google.protobuf.CodedOutputStream
256 .computeEnumSize(1, perturbationStrategy_);
257 }
258 if (((bitField0_ & 0x00000001) != 0)) {
259 size += com.google.protobuf.CodedOutputStream
260 .computeMessageSize(2, getRuinRecreateParameters());
261 }
262 if (((bitField0_ & 0x00000002) != 0)) {
263 size += com.google.protobuf.CodedOutputStream
264 .computeBoolSize(3, improvePerturbedSolution_);
265 }
266 if (acceptanceStrategy_ != com.google.ortools.constraintsolver.AcceptanceStrategy.Value.UNSET.getNumber()) {
267 size += com.google.protobuf.CodedOutputStream
268 .computeEnumSize(4, acceptanceStrategy_);
269 }
270 if (((bitField0_ & 0x00000004) != 0)) {
271 size += com.google.protobuf.CodedOutputStream
272 .computeMessageSize(5, getSimulatedAnnealingParameters());
273 }
274 size += getUnknownFields().getSerializedSize();
275 memoizedSize = size;
276 return size;
277 }
278
279 @java.lang.Override
280 public boolean equals(final java.lang.Object obj) {
281 if (obj == this) {
282 return true;
283 }
284 if (!(obj instanceof com.google.ortools.constraintsolver.IteratedLocalSearchParameters)) {
285 return super.equals(obj);
286 }
287 com.google.ortools.constraintsolver.IteratedLocalSearchParameters other = (com.google.ortools.constraintsolver.IteratedLocalSearchParameters) obj;
288
289 if (perturbationStrategy_ != other.perturbationStrategy_) return false;
290 if (hasRuinRecreateParameters() != other.hasRuinRecreateParameters()) return false;
293 .equals(other.getRuinRecreateParameters())) return false;
294 }
295 if (hasImprovePerturbedSolution() != other.hasImprovePerturbedSolution()) return false;
298 != other.getImprovePerturbedSolution()) return false;
299 }
300 if (acceptanceStrategy_ != other.acceptanceStrategy_) return false;
304 .equals(other.getSimulatedAnnealingParameters())) return false;
305 }
306 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
307 return true;
308 }
309
310 @java.lang.Override
311 public int hashCode() {
312 if (memoizedHashCode != 0) {
313 return memoizedHashCode;
314 }
315 int hash = 41;
316 hash = (19 * hash) + getDescriptor().hashCode();
317 hash = (37 * hash) + PERTURBATION_STRATEGY_FIELD_NUMBER;
318 hash = (53 * hash) + perturbationStrategy_;
320 hash = (37 * hash) + RUIN_RECREATE_PARAMETERS_FIELD_NUMBER;
321 hash = (53 * hash) + getRuinRecreateParameters().hashCode();
322 }
324 hash = (37 * hash) + IMPROVE_PERTURBED_SOLUTION_FIELD_NUMBER;
325 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
327 }
328 hash = (37 * hash) + ACCEPTANCE_STRATEGY_FIELD_NUMBER;
329 hash = (53 * hash) + acceptanceStrategy_;
332 hash = (53 * hash) + getSimulatedAnnealingParameters().hashCode();
333 }
334 hash = (29 * hash) + getUnknownFields().hashCode();
335 memoizedHashCode = hash;
336 return hash;
337 }
338
340 java.nio.ByteBuffer data)
341 throws com.google.protobuf.InvalidProtocolBufferException {
342 return PARSER.parseFrom(data);
343 }
345 java.nio.ByteBuffer data,
346 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
347 throws com.google.protobuf.InvalidProtocolBufferException {
348 return PARSER.parseFrom(data, extensionRegistry);
349 }
351 com.google.protobuf.ByteString data)
352 throws com.google.protobuf.InvalidProtocolBufferException {
353 return PARSER.parseFrom(data);
354 }
356 com.google.protobuf.ByteString data,
357 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
358 throws com.google.protobuf.InvalidProtocolBufferException {
359 return PARSER.parseFrom(data, extensionRegistry);
360 }
362 throws com.google.protobuf.InvalidProtocolBufferException {
363 return PARSER.parseFrom(data);
364 }
366 byte[] data,
367 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
368 throws com.google.protobuf.InvalidProtocolBufferException {
369 return PARSER.parseFrom(data, extensionRegistry);
370 }
372 throws java.io.IOException {
373 return com.google.protobuf.GeneratedMessage
374 .parseWithIOException(PARSER, input);
375 }
377 java.io.InputStream input,
378 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
379 throws java.io.IOException {
380 return com.google.protobuf.GeneratedMessage
381 .parseWithIOException(PARSER, input, extensionRegistry);
382 }
383
385 throws java.io.IOException {
386 return com.google.protobuf.GeneratedMessage
387 .parseDelimitedWithIOException(PARSER, input);
388 }
389
391 java.io.InputStream input,
392 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
393 throws java.io.IOException {
394 return com.google.protobuf.GeneratedMessage
395 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
396 }
398 com.google.protobuf.CodedInputStream input)
399 throws java.io.IOException {
400 return com.google.protobuf.GeneratedMessage
401 .parseWithIOException(PARSER, input);
402 }
404 com.google.protobuf.CodedInputStream input,
405 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
406 throws java.io.IOException {
407 return com.google.protobuf.GeneratedMessage
408 .parseWithIOException(PARSER, input, extensionRegistry);
409 }
410
411 @java.lang.Override
412 public Builder newBuilderForType() { return newBuilder(); }
413 public static Builder newBuilder() {
414 return DEFAULT_INSTANCE.toBuilder();
415 }
416 public static Builder newBuilder(com.google.ortools.constraintsolver.IteratedLocalSearchParameters prototype) {
417 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
418 }
419 @java.lang.Override
421 return this == DEFAULT_INSTANCE
422 ? new Builder() : new Builder().mergeFrom(this);
423 }
424
425 @java.lang.Override
427 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
428 Builder builder = new Builder(parent);
429 return builder;
430 }
431
438 public static final class Builder extends
439 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
440 // @@protoc_insertion_point(builder_implements:operations_research.IteratedLocalSearchParameters)
442 public static final com.google.protobuf.Descriptors.Descriptor
444 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_IteratedLocalSearchParameters_descriptor;
445 }
446
447 @java.lang.Override
448 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
450 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_IteratedLocalSearchParameters_fieldAccessorTable
451 .ensureFieldAccessorsInitialized(
452 com.google.ortools.constraintsolver.IteratedLocalSearchParameters.class, com.google.ortools.constraintsolver.IteratedLocalSearchParameters.Builder.class);
453 }
454
455 // Construct using com.google.ortools.constraintsolver.IteratedLocalSearchParameters.newBuilder()
456 private Builder() {
457 maybeForceBuilderInitialization();
458 }
459
460 private Builder(
461 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
462 super(parent);
463 maybeForceBuilderInitialization();
464 }
465 private void maybeForceBuilderInitialization() {
466 if (com.google.protobuf.GeneratedMessage
467 .alwaysUseFieldBuilders) {
468 getRuinRecreateParametersFieldBuilder();
469 getSimulatedAnnealingParametersFieldBuilder();
470 }
471 }
472 @java.lang.Override
473 public Builder clear() {
474 super.clear();
475 bitField0_ = 0;
476 perturbationStrategy_ = 0;
477 ruinRecreateParameters_ = null;
478 if (ruinRecreateParametersBuilder_ != null) {
479 ruinRecreateParametersBuilder_.dispose();
480 ruinRecreateParametersBuilder_ = null;
481 }
482 improvePerturbedSolution_ = false;
483 acceptanceStrategy_ = 0;
484 simulatedAnnealingParameters_ = null;
485 if (simulatedAnnealingParametersBuilder_ != null) {
486 simulatedAnnealingParametersBuilder_.dispose();
487 simulatedAnnealingParametersBuilder_ = null;
488 }
489 return this;
490 }
491
492 @java.lang.Override
493 public com.google.protobuf.Descriptors.Descriptor
495 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_IteratedLocalSearchParameters_descriptor;
496 }
497
498 @java.lang.Override
500 return com.google.ortools.constraintsolver.IteratedLocalSearchParameters.getDefaultInstance();
501 }
502
503 @java.lang.Override
506 if (!result.isInitialized()) {
507 throw newUninitializedMessageException(result);
508 }
509 return result;
510 }
511
512 @java.lang.Override
514 com.google.ortools.constraintsolver.IteratedLocalSearchParameters result = new com.google.ortools.constraintsolver.IteratedLocalSearchParameters(this);
515 if (bitField0_ != 0) { buildPartial0(result); }
516 onBuilt();
517 return result;
518 }
519
520 private void buildPartial0(com.google.ortools.constraintsolver.IteratedLocalSearchParameters result) {
521 int from_bitField0_ = bitField0_;
522 if (((from_bitField0_ & 0x00000001) != 0)) {
523 result.perturbationStrategy_ = perturbationStrategy_;
524 }
525 int to_bitField0_ = 0;
526 if (((from_bitField0_ & 0x00000002) != 0)) {
527 result.ruinRecreateParameters_ = ruinRecreateParametersBuilder_ == null
528 ? ruinRecreateParameters_
529 : ruinRecreateParametersBuilder_.build();
530 to_bitField0_ |= 0x00000001;
531 }
532 if (((from_bitField0_ & 0x00000004) != 0)) {
533 result.improvePerturbedSolution_ = improvePerturbedSolution_;
534 to_bitField0_ |= 0x00000002;
535 }
536 if (((from_bitField0_ & 0x00000008) != 0)) {
537 result.acceptanceStrategy_ = acceptanceStrategy_;
538 }
539 if (((from_bitField0_ & 0x00000010) != 0)) {
540 result.simulatedAnnealingParameters_ = simulatedAnnealingParametersBuilder_ == null
541 ? simulatedAnnealingParameters_
542 : simulatedAnnealingParametersBuilder_.build();
543 to_bitField0_ |= 0x00000004;
544 }
545 result.bitField0_ |= to_bitField0_;
546 }
547
548 @java.lang.Override
549 public Builder mergeFrom(com.google.protobuf.Message other) {
550 if (other instanceof com.google.ortools.constraintsolver.IteratedLocalSearchParameters) {
551 return mergeFrom((com.google.ortools.constraintsolver.IteratedLocalSearchParameters)other);
552 } else {
553 super.mergeFrom(other);
554 return this;
555 }
556 }
557
558 public Builder mergeFrom(com.google.ortools.constraintsolver.IteratedLocalSearchParameters other) {
559 if (other == com.google.ortools.constraintsolver.IteratedLocalSearchParameters.getDefaultInstance()) return this;
560 if (other.perturbationStrategy_ != 0) {
561 setPerturbationStrategyValue(other.getPerturbationStrategyValue());
562 }
563 if (other.hasRuinRecreateParameters()) {
564 mergeRuinRecreateParameters(other.getRuinRecreateParameters());
565 }
566 if (other.hasImprovePerturbedSolution()) {
567 setImprovePerturbedSolution(other.getImprovePerturbedSolution());
568 }
569 if (other.acceptanceStrategy_ != 0) {
570 setAcceptanceStrategyValue(other.getAcceptanceStrategyValue());
571 }
572 if (other.hasSimulatedAnnealingParameters()) {
573 mergeSimulatedAnnealingParameters(other.getSimulatedAnnealingParameters());
574 }
575 this.mergeUnknownFields(other.getUnknownFields());
576 onChanged();
577 return this;
578 }
579
580 @java.lang.Override
581 public final boolean isInitialized() {
582 return true;
583 }
584
585 @java.lang.Override
586 public Builder mergeFrom(
587 com.google.protobuf.CodedInputStream input,
588 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
589 throws java.io.IOException {
590 if (extensionRegistry == null) {
591 throw new java.lang.NullPointerException();
592 }
593 try {
594 boolean done = false;
595 while (!done) {
596 int tag = input.readTag();
597 switch (tag) {
598 case 0:
599 done = true;
600 break;
601 case 8: {
602 perturbationStrategy_ = input.readEnum();
603 bitField0_ |= 0x00000001;
604 break;
605 } // case 8
606 case 18: {
607 input.readMessage(
608 getRuinRecreateParametersFieldBuilder().getBuilder(),
609 extensionRegistry);
610 bitField0_ |= 0x00000002;
611 break;
612 } // case 18
613 case 24: {
614 improvePerturbedSolution_ = input.readBool();
615 bitField0_ |= 0x00000004;
616 break;
617 } // case 24
618 case 32: {
619 acceptanceStrategy_ = input.readEnum();
620 bitField0_ |= 0x00000008;
621 break;
622 } // case 32
623 case 42: {
624 input.readMessage(
625 getSimulatedAnnealingParametersFieldBuilder().getBuilder(),
626 extensionRegistry);
627 bitField0_ |= 0x00000010;
628 break;
629 } // case 42
630 default: {
631 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
632 done = true; // was an endgroup tag
633 }
634 break;
635 } // default:
636 } // switch (tag)
637 } // while (!done)
638 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
639 throw e.unwrapIOException();
640 } finally {
641 onChanged();
642 } // finally
643 return this;
644 }
645 private int bitField0_;
646
647 private int perturbationStrategy_ = 0;
657 @java.lang.Override public int getPerturbationStrategyValue() {
658 return perturbationStrategy_;
659 }
660
670 public Builder setPerturbationStrategyValue(int value) {
671 perturbationStrategy_ = value;
672 bitField0_ |= 0x00000001;
673 onChanged();
674 return this;
675 }
676
685 @java.lang.Override
687 com.google.ortools.constraintsolver.PerturbationStrategy.Value result = com.google.ortools.constraintsolver.PerturbationStrategy.Value.forNumber(perturbationStrategy_);
689 }
690
700 public Builder setPerturbationStrategy(com.google.ortools.constraintsolver.PerturbationStrategy.Value value) {
701 if (value == null) {
702 throw new NullPointerException();
703 }
704 bitField0_ |= 0x00000001;
705 perturbationStrategy_ = value.getNumber();
706 onChanged();
707 return this;
708 }
709
718 public Builder clearPerturbationStrategy() {
719 bitField0_ = (bitField0_ & ~0x00000001);
720 perturbationStrategy_ = 0;
721 onChanged();
722 return this;
723 }
724
726 private com.google.protobuf.SingleFieldBuilder<
727 com.google.ortools.constraintsolver.RuinRecreateParameters, com.google.ortools.constraintsolver.RuinRecreateParameters.Builder, com.google.ortools.constraintsolver.RuinRecreateParametersOrBuilder> ruinRecreateParametersBuilder_;
736 public boolean hasRuinRecreateParameters() {
737 return ((bitField0_ & 0x00000002) != 0);
738 }
739
748 if (ruinRecreateParametersBuilder_ == null) {
749 return ruinRecreateParameters_ == null ? com.google.ortools.constraintsolver.RuinRecreateParameters.getDefaultInstance() : ruinRecreateParameters_;
750 } else {
751 return ruinRecreateParametersBuilder_.getMessage();
752 }
753 }
754
761 public Builder setRuinRecreateParameters(com.google.ortools.constraintsolver.RuinRecreateParameters value) {
762 if (ruinRecreateParametersBuilder_ == null) {
763 if (value == null) {
764 throw new NullPointerException();
765 }
766 ruinRecreateParameters_ = value;
767 } else {
768 ruinRecreateParametersBuilder_.setMessage(value);
769 }
770 bitField0_ |= 0x00000002;
771 onChanged();
772 return this;
773 }
774
782 com.google.ortools.constraintsolver.RuinRecreateParameters.Builder builderForValue) {
783 if (ruinRecreateParametersBuilder_ == null) {
784 ruinRecreateParameters_ = builderForValue.build();
785 } else {
786 ruinRecreateParametersBuilder_.setMessage(builderForValue.build());
787 }
788 bitField0_ |= 0x00000002;
789 onChanged();
790 return this;
791 }
792
799 public Builder mergeRuinRecreateParameters(com.google.ortools.constraintsolver.RuinRecreateParameters value) {
800 if (ruinRecreateParametersBuilder_ == null) {
801 if (((bitField0_ & 0x00000002) != 0) &&
802 ruinRecreateParameters_ != null &&
803 ruinRecreateParameters_ != com.google.ortools.constraintsolver.RuinRecreateParameters.getDefaultInstance()) {
804 getRuinRecreateParametersBuilder().mergeFrom(value);
805 } else {
806 ruinRecreateParameters_ = value;
807 }
808 } else {
809 ruinRecreateParametersBuilder_.mergeFrom(value);
810 }
811 if (ruinRecreateParameters_ != null) {
812 bitField0_ |= 0x00000002;
813 onChanged();
814 }
815 return this;
816 }
817
825 bitField0_ = (bitField0_ & ~0x00000002);
826 ruinRecreateParameters_ = null;
827 if (ruinRecreateParametersBuilder_ != null) {
828 ruinRecreateParametersBuilder_.dispose();
829 ruinRecreateParametersBuilder_ = null;
830 }
831 onChanged();
832 return this;
833 }
834
842 bitField0_ |= 0x00000002;
843 onChanged();
844 return getRuinRecreateParametersFieldBuilder().getBuilder();
845 }
846
854 if (ruinRecreateParametersBuilder_ != null) {
855 return ruinRecreateParametersBuilder_.getMessageOrBuilder();
856 } else {
857 return ruinRecreateParameters_ == null ?
858 com.google.ortools.constraintsolver.RuinRecreateParameters.getDefaultInstance() : ruinRecreateParameters_;
859 }
860 }
861
868 private com.google.protobuf.SingleFieldBuilder<
869 com.google.ortools.constraintsolver.RuinRecreateParameters, com.google.ortools.constraintsolver.RuinRecreateParameters.Builder, com.google.ortools.constraintsolver.RuinRecreateParametersOrBuilder>
870 getRuinRecreateParametersFieldBuilder() {
871 if (ruinRecreateParametersBuilder_ == null) {
872 ruinRecreateParametersBuilder_ = new com.google.protobuf.SingleFieldBuilder<
873 com.google.ortools.constraintsolver.RuinRecreateParameters, com.google.ortools.constraintsolver.RuinRecreateParameters.Builder, com.google.ortools.constraintsolver.RuinRecreateParametersOrBuilder>(
875 getParentForChildren(),
876 isClean());
877 ruinRecreateParameters_ = null;
878 }
879 return ruinRecreateParametersBuilder_;
880 }
881
882 private boolean improvePerturbedSolution_ ;
892 @java.lang.Override
894 return ((bitField0_ & 0x00000004) != 0);
895 }
896
905 @java.lang.Override
907 return improvePerturbedSolution_;
908 }
909
919 public Builder setImprovePerturbedSolution(boolean value) {
920
921 improvePerturbedSolution_ = value;
922 bitField0_ |= 0x00000004;
923 onChanged();
924 return this;
925 }
926
936 bitField0_ = (bitField0_ & ~0x00000004);
937 improvePerturbedSolution_ = false;
938 onChanged();
939 return this;
940 }
941
942 private int acceptanceStrategy_ = 0;
952 @java.lang.Override public int getAcceptanceStrategyValue() {
953 return acceptanceStrategy_;
954 }
955
965 public Builder setAcceptanceStrategyValue(int value) {
966 acceptanceStrategy_ = value;
967 bitField0_ |= 0x00000008;
968 onChanged();
969 return this;
970 }
971
980 @java.lang.Override
982 com.google.ortools.constraintsolver.AcceptanceStrategy.Value result = com.google.ortools.constraintsolver.AcceptanceStrategy.Value.forNumber(acceptanceStrategy_);
984 }
985
995 public Builder setAcceptanceStrategy(com.google.ortools.constraintsolver.AcceptanceStrategy.Value value) {
996 if (value == null) {
997 throw new NullPointerException();
998 }
999 bitField0_ |= 0x00000008;
1000 acceptanceStrategy_ = value.getNumber();
1001 onChanged();
1002 return this;
1003 }
1004
1013 public Builder clearAcceptanceStrategy() {
1014 bitField0_ = (bitField0_ & ~0x00000008);
1015 acceptanceStrategy_ = 0;
1016 onChanged();
1017 return this;
1018 }
1019
1020 private com.google.ortools.constraintsolver.SimulatedAnnealingParameters simulatedAnnealingParameters_;
1021 private com.google.protobuf.SingleFieldBuilder<
1022 com.google.ortools.constraintsolver.SimulatedAnnealingParameters, com.google.ortools.constraintsolver.SimulatedAnnealingParameters.Builder, com.google.ortools.constraintsolver.SimulatedAnnealingParametersOrBuilder> simulatedAnnealingParametersBuilder_;
1033 return ((bitField0_ & 0x00000010) != 0);
1034 }
1035
1045 if (simulatedAnnealingParametersBuilder_ == null) {
1046 return simulatedAnnealingParameters_ == null ? com.google.ortools.constraintsolver.SimulatedAnnealingParameters.getDefaultInstance() : simulatedAnnealingParameters_;
1047 } else {
1048 return simulatedAnnealingParametersBuilder_.getMessage();
1049 }
1050 }
1051
1059 public Builder setSimulatedAnnealingParameters(com.google.ortools.constraintsolver.SimulatedAnnealingParameters value) {
1060 if (simulatedAnnealingParametersBuilder_ == null) {
1061 if (value == null) {
1062 throw new NullPointerException();
1063 }
1064 simulatedAnnealingParameters_ = value;
1065 } else {
1066 simulatedAnnealingParametersBuilder_.setMessage(value);
1067 }
1068 bitField0_ |= 0x00000010;
1069 onChanged();
1070 return this;
1071 }
1072
1081 com.google.ortools.constraintsolver.SimulatedAnnealingParameters.Builder builderForValue) {
1082 if (simulatedAnnealingParametersBuilder_ == null) {
1083 simulatedAnnealingParameters_ = builderForValue.build();
1084 } else {
1085 simulatedAnnealingParametersBuilder_.setMessage(builderForValue.build());
1086 }
1087 bitField0_ |= 0x00000010;
1088 onChanged();
1089 return this;
1090 }
1091
1099 public Builder mergeSimulatedAnnealingParameters(com.google.ortools.constraintsolver.SimulatedAnnealingParameters value) {
1100 if (simulatedAnnealingParametersBuilder_ == null) {
1101 if (((bitField0_ & 0x00000010) != 0) &&
1102 simulatedAnnealingParameters_ != null &&
1103 simulatedAnnealingParameters_ != com.google.ortools.constraintsolver.SimulatedAnnealingParameters.getDefaultInstance()) {
1104 getSimulatedAnnealingParametersBuilder().mergeFrom(value);
1105 } else {
1106 simulatedAnnealingParameters_ = value;
1107 }
1108 } else {
1109 simulatedAnnealingParametersBuilder_.mergeFrom(value);
1110 }
1111 if (simulatedAnnealingParameters_ != null) {
1112 bitField0_ |= 0x00000010;
1113 onChanged();
1114 }
1115 return this;
1116 }
1117
1126 bitField0_ = (bitField0_ & ~0x00000010);
1127 simulatedAnnealingParameters_ = null;
1128 if (simulatedAnnealingParametersBuilder_ != null) {
1129 simulatedAnnealingParametersBuilder_.dispose();
1130 simulatedAnnealingParametersBuilder_ = null;
1131 }
1132 onChanged();
1133 return this;
1134 }
1135
1144 bitField0_ |= 0x00000010;
1145 onChanged();
1146 return getSimulatedAnnealingParametersFieldBuilder().getBuilder();
1147 }
1148
1157 if (simulatedAnnealingParametersBuilder_ != null) {
1158 return simulatedAnnealingParametersBuilder_.getMessageOrBuilder();
1159 } else {
1160 return simulatedAnnealingParameters_ == null ?
1161 com.google.ortools.constraintsolver.SimulatedAnnealingParameters.getDefaultInstance() : simulatedAnnealingParameters_;
1162 }
1163 }
1164
1172 private com.google.protobuf.SingleFieldBuilder<
1173 com.google.ortools.constraintsolver.SimulatedAnnealingParameters, com.google.ortools.constraintsolver.SimulatedAnnealingParameters.Builder, com.google.ortools.constraintsolver.SimulatedAnnealingParametersOrBuilder>
1174 getSimulatedAnnealingParametersFieldBuilder() {
1175 if (simulatedAnnealingParametersBuilder_ == null) {
1176 simulatedAnnealingParametersBuilder_ = new com.google.protobuf.SingleFieldBuilder<
1177 com.google.ortools.constraintsolver.SimulatedAnnealingParameters, com.google.ortools.constraintsolver.SimulatedAnnealingParameters.Builder, com.google.ortools.constraintsolver.SimulatedAnnealingParametersOrBuilder>(
1179 getParentForChildren(),
1180 isClean());
1181 simulatedAnnealingParameters_ = null;
1182 }
1183 return simulatedAnnealingParametersBuilder_;
1184 }
1185
1186 // @@protoc_insertion_point(builder_scope:operations_research.IteratedLocalSearchParameters)
1187 }
1188
1189 // @@protoc_insertion_point(class_scope:operations_research.IteratedLocalSearchParameters)
1190 private static final com.google.ortools.constraintsolver.IteratedLocalSearchParameters DEFAULT_INSTANCE;
1191 static {
1192 DEFAULT_INSTANCE = new com.google.ortools.constraintsolver.IteratedLocalSearchParameters();
1193 }
1194
1198
1199 private static final com.google.protobuf.Parser<IteratedLocalSearchParameters>
1200 PARSER = new com.google.protobuf.AbstractParser<IteratedLocalSearchParameters>() {
1201 @java.lang.Override
1202 public IteratedLocalSearchParameters parsePartialFrom(
1203 com.google.protobuf.CodedInputStream input,
1204 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1205 throws com.google.protobuf.InvalidProtocolBufferException {
1206 Builder builder = newBuilder();
1207 try {
1208 builder.mergeFrom(input, extensionRegistry);
1209 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1210 throw e.setUnfinishedMessage(builder.buildPartial());
1211 } catch (com.google.protobuf.UninitializedMessageException e) {
1212 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1213 } catch (java.io.IOException e) {
1214 throw new com.google.protobuf.InvalidProtocolBufferException(e)
1215 .setUnfinishedMessage(builder.buildPartial());
1216 }
1217 return builder.buildPartial();
1218 }
1219 };
1220
1221 public static com.google.protobuf.Parser<IteratedLocalSearchParameters> parser() {
1222 return PARSER;
1223 }
1224
1225 @java.lang.Override
1226 public com.google.protobuf.Parser<IteratedLocalSearchParameters> getParserForType() {
1227 return PARSER;
1228 }
1229
1230 @java.lang.Override
1234
1235}
1236
com.google.ortools.constraintsolver.IteratedLocalSearchParameters build()
Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Builder setAcceptanceStrategy(com.google.ortools.constraintsolver.AcceptanceStrategy.Value value)
Builder mergeSimulatedAnnealingParameters(com.google.ortools.constraintsolver.SimulatedAnnealingParameters value)
com.google.ortools.constraintsolver.SimulatedAnnealingParametersOrBuilder getSimulatedAnnealingParametersOrBuilder()
com.google.ortools.constraintsolver.SimulatedAnnealingParameters.Builder getSimulatedAnnealingParametersBuilder()
Builder setPerturbationStrategy(com.google.ortools.constraintsolver.PerturbationStrategy.Value value)
com.google.ortools.constraintsolver.PerturbationStrategy.Value getPerturbationStrategy()
Builder setRuinRecreateParameters(com.google.ortools.constraintsolver.RuinRecreateParameters value)
Builder mergeRuinRecreateParameters(com.google.ortools.constraintsolver.RuinRecreateParameters value)
com.google.ortools.constraintsolver.RuinRecreateParameters.Builder getRuinRecreateParametersBuilder()
com.google.ortools.constraintsolver.RuinRecreateParametersOrBuilder getRuinRecreateParametersOrBuilder()
com.google.ortools.constraintsolver.IteratedLocalSearchParameters buildPartial()
Builder mergeFrom(com.google.ortools.constraintsolver.IteratedLocalSearchParameters other)
com.google.ortools.constraintsolver.AcceptanceStrategy.Value getAcceptanceStrategy()
com.google.ortools.constraintsolver.RuinRecreateParameters getRuinRecreateParameters()
com.google.ortools.constraintsolver.SimulatedAnnealingParameters getSimulatedAnnealingParameters()
Builder setRuinRecreateParameters(com.google.ortools.constraintsolver.RuinRecreateParameters.Builder builderForValue)
com.google.ortools.constraintsolver.IteratedLocalSearchParameters getDefaultInstanceForType()
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Builder setSimulatedAnnealingParameters(com.google.ortools.constraintsolver.SimulatedAnnealingParameters value)
Builder setSimulatedAnnealingParameters(com.google.ortools.constraintsolver.SimulatedAnnealingParameters.Builder builderForValue)
static com.google.ortools.constraintsolver.IteratedLocalSearchParameters parseFrom(java.nio.ByteBuffer data)
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
static com.google.ortools.constraintsolver.IteratedLocalSearchParameters parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.constraintsolver.RuinRecreateParameters getRuinRecreateParameters()
static com.google.ortools.constraintsolver.IteratedLocalSearchParameters parseFrom(java.io.InputStream input)
static com.google.ortools.constraintsolver.IteratedLocalSearchParameters parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.protobuf.Parser< IteratedLocalSearchParameters > getParserForType()
static com.google.ortools.constraintsolver.IteratedLocalSearchParameters parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.constraintsolver.IteratedLocalSearchParameters parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.constraintsolver.IteratedLocalSearchParameters getDefaultInstanceForType()
static com.google.ortools.constraintsolver.IteratedLocalSearchParameters parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser< IteratedLocalSearchParameters > parser()
com.google.ortools.constraintsolver.AcceptanceStrategy.Value getAcceptanceStrategy()
com.google.ortools.constraintsolver.SimulatedAnnealingParametersOrBuilder getSimulatedAnnealingParametersOrBuilder()
static com.google.ortools.constraintsolver.IteratedLocalSearchParameters parseFrom(com.google.protobuf.CodedInputStream input)
Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
com.google.ortools.constraintsolver.RuinRecreateParametersOrBuilder getRuinRecreateParametersOrBuilder()
static com.google.ortools.constraintsolver.IteratedLocalSearchParameters parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.constraintsolver.SimulatedAnnealingParameters getSimulatedAnnealingParameters()
static com.google.ortools.constraintsolver.IteratedLocalSearchParameters parseFrom(byte[] data)
static com.google.ortools.constraintsolver.IteratedLocalSearchParameters parseFrom(com.google.protobuf.ByteString data)
static com.google.ortools.constraintsolver.IteratedLocalSearchParameters parseDelimitedFrom(java.io.InputStream input)
static Builder newBuilder(com.google.ortools.constraintsolver.IteratedLocalSearchParameters prototype)
static com.google.ortools.constraintsolver.IteratedLocalSearchParameters getDefaultInstance()
com.google.ortools.constraintsolver.PerturbationStrategy.Value getPerturbationStrategy()
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()