5package com.google.ortools.constraintsolver;
15 com.google.protobuf.GeneratedMessageV3 implements
18private static final long serialVersionUID = 0L;
27 @SuppressWarnings({
"unused"})
29 UnusedPrivateParameter unused) {
33 public static final com.google.protobuf.Descriptors.Descriptor
35 return com.google.ortools.constraintsolver.RoutingEnums.internal_static_operations_research_FirstSolutionStrategy_descriptor;
39 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
41 return com.google.ortools.constraintsolver.RoutingEnums.internal_static_operations_research_FirstSolutionStrategy_fieldAccessorTable
42 .ensureFieldAccessorsInitialized(
43 com.google.ortools.constraintsolver.FirstSolutionStrategy.class, com.google.ortools.constraintsolver.FirstSolutionStrategy.Builder.class);
50 implements com.google.protobuf.ProtocolMessageEnum {
241 public static final int UNSET_VALUE = 0;
250 public static final int AUTOMATIC_VALUE = 15;
261 public static final int PATH_CHEAPEST_ARC_VALUE = 3;
272 public static final int PATH_MOST_CONSTRAINED_ARC_VALUE = 4;
282 public static final int EVALUATOR_STRATEGY_VALUE = 5;
293 public static final int SAVINGS_VALUE = 10;
305 public static final int SWEEP_VALUE = 11;
320 public static final int CHRISTOFIDES_VALUE = 13;
330 public static final int ALL_UNPERFORMED_VALUE = 6;
341 public static final int BEST_INSERTION_VALUE = 7;
351 public static final int PARALLEL_CHEAPEST_INSERTION_VALUE = 8;
362 public static final int SEQUENTIAL_CHEAPEST_INSERTION_VALUE = 14;
375 public static final int LOCAL_CHEAPEST_INSERTION_VALUE = 9;
384 public static final int LOCAL_CHEAPEST_COST_INSERTION_VALUE = 16;
393 public static final int GLOBAL_CHEAPEST_ARC_VALUE = 1;
402 public static final int LOCAL_CHEAPEST_ARC_VALUE = 2;
413 public static final int FIRST_UNBOUND_MIN_VALUE_VALUE = 12;
417 if (
this == UNRECOGNIZED) {
418 throw new java.lang.IllegalArgumentException(
419 "Can't get the number of an unknown enum value.");
429 @java.lang.Deprecated
431 return forNumber(value);
440 case 0:
return UNSET;
441 case 15:
return AUTOMATIC;
442 case 3:
return PATH_CHEAPEST_ARC;
443 case 4:
return PATH_MOST_CONSTRAINED_ARC;
444 case 5:
return EVALUATOR_STRATEGY;
445 case 10:
return SAVINGS;
446 case 11:
return SWEEP;
447 case 13:
return CHRISTOFIDES;
448 case 6:
return ALL_UNPERFORMED;
449 case 7:
return BEST_INSERTION;
450 case 8:
return PARALLEL_CHEAPEST_INSERTION;
451 case 14:
return SEQUENTIAL_CHEAPEST_INSERTION;
452 case 9:
return LOCAL_CHEAPEST_INSERTION;
453 case 16:
return LOCAL_CHEAPEST_COST_INSERTION;
454 case 1:
return GLOBAL_CHEAPEST_ARC;
455 case 2:
return LOCAL_CHEAPEST_ARC;
456 case 12:
return FIRST_UNBOUND_MIN_VALUE;
457 default:
return null;
461 public static com.google.protobuf.Internal.EnumLiteMap<
Value>
463 return internalValueMap;
465 private static final com.google.protobuf.Internal.EnumLiteMap<
466 Value> internalValueMap =
467 new com.google.protobuf.Internal.EnumLiteMap<
Value>() {
468 public Value findValueByNumber(
int number) {
473 public final com.google.protobuf.Descriptors.EnumValueDescriptor
475 if (
this == UNRECOGNIZED) {
476 throw new java.lang.IllegalStateException(
477 "Can't get the descriptor of an unrecognized enum value.");
481 public final com.google.protobuf.Descriptors.EnumDescriptor
485 public static final com.google.protobuf.Descriptors.EnumDescriptor
487 return com.google.ortools.constraintsolver.FirstSolutionStrategy.getDescriptor().getEnumTypes().get(0);
490 private static final Value[] VALUES = values();
493 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
495 throw new java.lang.IllegalArgumentException(
496 "EnumValueDescriptor is not for this type.");
498 if (desc.getIndex() == -1) {
501 return VALUES[desc.getIndex()];
504 private final int value;
506 private Value(
int value) {
513 private byte memoizedIsInitialized = -1;
520 memoizedIsInitialized = 1;
525 public void writeTo(com.google.protobuf.CodedOutputStream output)
526 throws java.io.IOException {
527 getUnknownFields().writeTo(output);
532 int size = memoizedSize;
533 if (size != -1)
return size;
536 size += getUnknownFields().getSerializedSize();
542 public boolean equals(
final java.lang.Object obj) {
546 if (!(obj instanceof com.google.ortools.constraintsolver.FirstSolutionStrategy)) {
547 return super.equals(obj);
551 if (!getUnknownFields().equals(other.getUnknownFields()))
return false;
557 if (memoizedHashCode != 0) {
558 return memoizedHashCode;
562 hash = (29 * hash) + getUnknownFields().hashCode();
563 memoizedHashCode = hash;
568 java.nio.ByteBuffer data)
569 throws com.google.protobuf.InvalidProtocolBufferException {
570 return PARSER.parseFrom(data);
573 java.nio.ByteBuffer data,
574 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
575 throws com.google.protobuf.InvalidProtocolBufferException {
576 return PARSER.parseFrom(data, extensionRegistry);
579 com.google.protobuf.ByteString data)
580 throws com.google.protobuf.InvalidProtocolBufferException {
581 return PARSER.parseFrom(data);
584 com.google.protobuf.ByteString data,
585 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
586 throws com.google.protobuf.InvalidProtocolBufferException {
587 return PARSER.parseFrom(data, extensionRegistry);
590 throws com.google.protobuf.InvalidProtocolBufferException {
591 return PARSER.parseFrom(data);
595 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
596 throws com.google.protobuf.InvalidProtocolBufferException {
597 return PARSER.parseFrom(data, extensionRegistry);
600 throws java.io.IOException {
601 return com.google.protobuf.GeneratedMessageV3
602 .parseWithIOException(PARSER, input);
605 java.io.InputStream input,
606 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
607 throws java.io.IOException {
608 return com.google.protobuf.GeneratedMessageV3
609 .parseWithIOException(PARSER, input, extensionRegistry);
613 throws java.io.IOException {
614 return com.google.protobuf.GeneratedMessageV3
615 .parseDelimitedWithIOException(PARSER, input);
619 java.io.InputStream input,
620 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
621 throws java.io.IOException {
622 return com.google.protobuf.GeneratedMessageV3
623 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
626 com.google.protobuf.CodedInputStream input)
627 throws java.io.IOException {
628 return com.google.protobuf.GeneratedMessageV3
629 .parseWithIOException(PARSER, input);
632 com.google.protobuf.CodedInputStream input,
633 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
634 throws java.io.IOException {
635 return com.google.protobuf.GeneratedMessageV3
636 .parseWithIOException(PARSER, input, extensionRegistry);
644 public static Builder newBuilder(com.google.ortools.constraintsolver.FirstSolutionStrategy prototype) {
649 return this == DEFAULT_INSTANCE
655 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
667 com.google.protobuf.GeneratedMessageV3.
Builder<Builder> implements
670 public static final com.google.protobuf.Descriptors.Descriptor
672 return com.google.ortools.constraintsolver.RoutingEnums.internal_static_operations_research_FirstSolutionStrategy_descriptor;
676 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
678 return com.google.ortools.constraintsolver.RoutingEnums.internal_static_operations_research_FirstSolutionStrategy_fieldAccessorTable
679 .ensureFieldAccessorsInitialized(
680 com.google.ortools.constraintsolver.FirstSolutionStrategy.class, com.google.ortools.constraintsolver.FirstSolutionStrategy.Builder.class);
689 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
700 public com.google.protobuf.Descriptors.Descriptor
702 return com.google.ortools.constraintsolver.RoutingEnums.internal_static_operations_research_FirstSolutionStrategy_descriptor;
707 return com.google.ortools.constraintsolver.FirstSolutionStrategy.getDefaultInstance();
714 throw newUninitializedMessageException(result);
728 return super.
clone();
732 com.google.protobuf.Descriptors.FieldDescriptor field,
733 java.lang.Object value) {
734 return super.
setField(field, value);
738 com.google.protobuf.Descriptors.FieldDescriptor field) {
743 com.google.protobuf.Descriptors.OneofDescriptor oneof) {
748 com.google.protobuf.Descriptors.FieldDescriptor field,
749 int index, java.lang.Object value) {
754 com.google.protobuf.Descriptors.FieldDescriptor field,
755 java.lang.Object value) {
760 if (other instanceof com.google.ortools.constraintsolver.FirstSolutionStrategy) {
761 return mergeFrom((com.google.ortools.constraintsolver.FirstSolutionStrategy)other);
763 super.mergeFrom(other);
768 public Builder mergeFrom(com.google.ortools.constraintsolver.FirstSolutionStrategy other) {
769 if (other == com.google.ortools.constraintsolver.FirstSolutionStrategy.getDefaultInstance())
return this;
782 com.google.protobuf.CodedInputStream input,
783 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
784 throws java.io.IOException {
785 if (extensionRegistry ==
null) {
786 throw new java.lang.NullPointerException();
789 boolean done =
false;
791 int tag = input.readTag();
797 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
804 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
805 throw e.unwrapIOException();
813 final com.google.protobuf.UnknownFieldSet unknownFields) {
819 final com.google.protobuf.UnknownFieldSet unknownFields) {
830 DEFAULT_INSTANCE =
new com.google.ortools.constraintsolver.FirstSolutionStrategy();
834 return DEFAULT_INSTANCE;
841 com.google.protobuf.CodedInputStream input,
842 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
843 throws com.google.protobuf.InvalidProtocolBufferException {
846 builder.mergeFrom(input, extensionRegistry);
847 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
848 throw e.setUnfinishedMessage(builder.buildPartial());
849 }
catch (com.google.protobuf.UninitializedMessageException e) {
850 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
851 }
catch (java.io.IOException e) {
852 throw new com.google.protobuf.InvalidProtocolBufferException(e)
853 .setUnfinishedMessage(builder.buildPartial());
855 return builder.buildPartial();
870 return DEFAULT_INSTANCE;