5package com.google.ortools.constraintsolver;
15 com.google.protobuf.GeneratedMessage implements
18private static final long serialVersionUID = 0L;
20 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
21 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
35 public static final com.google.protobuf.Descriptors.Descriptor
37 return com.google.ortools.constraintsolver.RoutingEnums.internal_static_operations_research_FirstSolutionStrategy_descriptor;
41 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
43 return com.google.ortools.constraintsolver.RoutingEnums.internal_static_operations_research_FirstSolutionStrategy_fieldAccessorTable
44 .ensureFieldAccessorsInitialized(
45 com.google.ortools.constraintsolver.FirstSolutionStrategy.class, com.google.ortools.constraintsolver.FirstSolutionStrategy.Builder.class);
52 implements com.google.protobuf.ProtocolMessageEnum {
237 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
238 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
243 Value.class.getName());
252 public static final int UNSET_VALUE = 0;
261 public static final int AUTOMATIC_VALUE = 15;
272 public static final int PATH_CHEAPEST_ARC_VALUE = 3;
283 public static final int PATH_MOST_CONSTRAINED_ARC_VALUE = 4;
293 public static final int EVALUATOR_STRATEGY_VALUE = 5;
304 public static final int SAVINGS_VALUE = 10;
316 public static final int SWEEP_VALUE = 11;
331 public static final int CHRISTOFIDES_VALUE = 13;
341 public static final int ALL_UNPERFORMED_VALUE = 6;
352 public static final int BEST_INSERTION_VALUE = 7;
362 public static final int PARALLEL_CHEAPEST_INSERTION_VALUE = 8;
373 public static final int SEQUENTIAL_CHEAPEST_INSERTION_VALUE = 14;
386 public static final int LOCAL_CHEAPEST_INSERTION_VALUE = 9;
395 public static final int LOCAL_CHEAPEST_COST_INSERTION_VALUE = 16;
404 public static final int GLOBAL_CHEAPEST_ARC_VALUE = 1;
413 public static final int LOCAL_CHEAPEST_ARC_VALUE = 2;
424 public static final int FIRST_UNBOUND_MIN_VALUE_VALUE = 12;
428 if (
this == UNRECOGNIZED) {
429 throw new java.lang.IllegalArgumentException(
430 "Can't get the number of an unknown enum value.");
440 @java.lang.Deprecated
442 return forNumber(value);
451 case 0:
return UNSET;
452 case 15:
return AUTOMATIC;
453 case 3:
return PATH_CHEAPEST_ARC;
454 case 4:
return PATH_MOST_CONSTRAINED_ARC;
455 case 5:
return EVALUATOR_STRATEGY;
456 case 10:
return SAVINGS;
457 case 11:
return SWEEP;
458 case 13:
return CHRISTOFIDES;
459 case 6:
return ALL_UNPERFORMED;
460 case 7:
return BEST_INSERTION;
461 case 8:
return PARALLEL_CHEAPEST_INSERTION;
462 case 14:
return SEQUENTIAL_CHEAPEST_INSERTION;
463 case 9:
return LOCAL_CHEAPEST_INSERTION;
464 case 16:
return LOCAL_CHEAPEST_COST_INSERTION;
465 case 1:
return GLOBAL_CHEAPEST_ARC;
466 case 2:
return LOCAL_CHEAPEST_ARC;
467 case 12:
return FIRST_UNBOUND_MIN_VALUE;
468 default:
return null;
472 public static com.google.protobuf.Internal.EnumLiteMap<
Value>
474 return internalValueMap;
476 private static final com.google.protobuf.Internal.EnumLiteMap<
477 Value> internalValueMap =
478 new com.google.protobuf.Internal.EnumLiteMap<
Value>() {
479 public Value findValueByNumber(
int number) {
484 public final com.google.protobuf.Descriptors.EnumValueDescriptor
486 if (
this == UNRECOGNIZED) {
487 throw new java.lang.IllegalStateException(
488 "Can't get the descriptor of an unrecognized enum value.");
492 public final com.google.protobuf.Descriptors.EnumDescriptor
496 public static final com.google.protobuf.Descriptors.EnumDescriptor
498 return com.google.ortools.constraintsolver.FirstSolutionStrategy.getDescriptor().getEnumTypes().get(0);
501 private static final Value[] VALUES = values();
504 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
506 throw new java.lang.IllegalArgumentException(
507 "EnumValueDescriptor is not for this type.");
509 if (desc.getIndex() == -1) {
512 return VALUES[desc.getIndex()];
515 private final int value;
517 private Value(
int value) {
524 private byte memoizedIsInitialized = -1;
531 memoizedIsInitialized = 1;
536 public void writeTo(com.google.protobuf.CodedOutputStream output)
537 throws java.io.IOException {
538 getUnknownFields().writeTo(output);
543 int size = memoizedSize;
544 if (size != -1)
return size;
547 size += getUnknownFields().getSerializedSize();
553 public boolean equals(
final java.lang.Object obj) {
557 if (!(obj instanceof com.google.ortools.constraintsolver.FirstSolutionStrategy)) {
558 return super.equals(obj);
562 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
568 if (memoizedHashCode != 0) {
569 return memoizedHashCode;
573 hash = (29 * hash) + getUnknownFields().hashCode();
574 memoizedHashCode = hash;
579 java.nio.ByteBuffer data)
580 throws com.google.protobuf.InvalidProtocolBufferException {
581 return PARSER.parseFrom(data);
584 java.nio.ByteBuffer data,
585 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
586 throws com.google.protobuf.InvalidProtocolBufferException {
587 return PARSER.parseFrom(data, extensionRegistry);
590 com.google.protobuf.ByteString data)
591 throws com.google.protobuf.InvalidProtocolBufferException {
592 return PARSER.parseFrom(data);
595 com.google.protobuf.ByteString data,
596 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
597 throws com.google.protobuf.InvalidProtocolBufferException {
598 return PARSER.parseFrom(data, extensionRegistry);
601 throws com.google.protobuf.InvalidProtocolBufferException {
602 return PARSER.parseFrom(data);
606 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
607 throws com.google.protobuf.InvalidProtocolBufferException {
608 return PARSER.parseFrom(data, extensionRegistry);
611 throws java.io.IOException {
612 return com.google.protobuf.GeneratedMessage
613 .parseWithIOException(PARSER, input);
616 java.io.InputStream input,
617 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
618 throws java.io.IOException {
619 return com.google.protobuf.GeneratedMessage
620 .parseWithIOException(PARSER, input, extensionRegistry);
624 throws java.io.IOException {
625 return com.google.protobuf.GeneratedMessage
626 .parseDelimitedWithIOException(PARSER, input);
630 java.io.InputStream input,
631 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
632 throws java.io.IOException {
633 return com.google.protobuf.GeneratedMessage
634 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
637 com.google.protobuf.CodedInputStream input)
638 throws java.io.IOException {
639 return com.google.protobuf.GeneratedMessage
640 .parseWithIOException(PARSER, input);
643 com.google.protobuf.CodedInputStream input,
644 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
645 throws java.io.IOException {
646 return com.google.protobuf.GeneratedMessage
647 .parseWithIOException(PARSER, input, extensionRegistry);
655 public static Builder newBuilder(com.google.ortools.constraintsolver.FirstSolutionStrategy prototype) {
660 return this == DEFAULT_INSTANCE
666 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
678 com.google.protobuf.GeneratedMessage.
Builder<Builder> implements
681 public static final com.google.protobuf.Descriptors.Descriptor
683 return com.google.ortools.constraintsolver.RoutingEnums.internal_static_operations_research_FirstSolutionStrategy_descriptor;
687 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
689 return com.google.ortools.constraintsolver.RoutingEnums.internal_static_operations_research_FirstSolutionStrategy_fieldAccessorTable
690 .ensureFieldAccessorsInitialized(
691 com.google.ortools.constraintsolver.FirstSolutionStrategy.class, com.google.ortools.constraintsolver.FirstSolutionStrategy.Builder.class);
700 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
711 public com.google.protobuf.Descriptors.Descriptor
713 return com.google.ortools.constraintsolver.RoutingEnums.internal_static_operations_research_FirstSolutionStrategy_descriptor;
718 return com.google.ortools.constraintsolver.FirstSolutionStrategy.getDefaultInstance();
725 throw newUninitializedMessageException(result);
739 if (other instanceof com.google.ortools.constraintsolver.FirstSolutionStrategy) {
740 return mergeFrom((com.google.ortools.constraintsolver.FirstSolutionStrategy)other);
742 super.mergeFrom(other);
747 public Builder mergeFrom(com.google.ortools.constraintsolver.FirstSolutionStrategy other) {
748 if (other == com.google.ortools.constraintsolver.FirstSolutionStrategy.getDefaultInstance())
return this;
749 this.mergeUnknownFields(other.getUnknownFields());
761 com.google.protobuf.CodedInputStream input,
762 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
763 throws java.io.IOException {
764 if (extensionRegistry ==
null) {
765 throw new java.lang.NullPointerException();
768 boolean done =
false;
770 int tag = input.readTag();
776 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
783 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
784 throw e.unwrapIOException();
797 DEFAULT_INSTANCE =
new com.google.ortools.constraintsolver.FirstSolutionStrategy();
801 return DEFAULT_INSTANCE;
808 com.google.protobuf.CodedInputStream input,
809 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
810 throws com.google.protobuf.InvalidProtocolBufferException {
813 builder.mergeFrom(input, extensionRegistry);
814 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
815 throw e.setUnfinishedMessage(builder.buildPartial());
816 }
catch (com.google.protobuf.UninitializedMessageException e) {
817 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
818 }
catch (java.io.IOException e) {
819 throw new com.google.protobuf.InvalidProtocolBufferException(e)
820 .setUnfinishedMessage(builder.buildPartial());
822 return builder.buildPartial();
837 return DEFAULT_INSTANCE;