6package com.google.ortools.constraintsolver;
15@com.google.protobuf.Generated
16public final class FirstSolutionStrategy
extends
17 com.google.protobuf.GeneratedMessage implements
20private static final long serialVersionUID = 0L;
22 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
23 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
28 FirstSolutionStrategy.class.getName());
31 private FirstSolutionStrategy(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
34 private FirstSolutionStrategy() {
37 public static final com.google.protobuf.Descriptors.Descriptor
39 return com.google.ortools.constraintsolver.RoutingEnums.internal_static_operations_research_FirstSolutionStrategy_descriptor;
43 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
45 return com.google.ortools.constraintsolver.RoutingEnums.internal_static_operations_research_FirstSolutionStrategy_fieldAccessorTable
46 .ensureFieldAccessorsInitialized(
47 com.google.ortools.constraintsolver.FirstSolutionStrategy.class, com.google.ortools.constraintsolver.FirstSolutionStrategy.Builder.class);
54 implements com.google.protobuf.ProtocolMessageEnum {
250 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
251 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
256 Value.class.getName());
453 throw new java.lang.IllegalArgumentException(
454 "Can't get the number of an unknown enum value.");
464 @java.lang.Deprecated
475 case 0:
return UNSET;
482 case 11:
return SWEEP;
493 default:
return null;
497 public static com.google.protobuf.Internal.EnumLiteMap<
Value>
499 return internalValueMap;
501 private static final com.google.protobuf.Internal.EnumLiteMap<
502 Value> internalValueMap =
503 new com.google.protobuf.Internal.EnumLiteMap<
Value>() {
504 public Value findValueByNumber(
int number) {
509 public final com.google.protobuf.Descriptors.EnumValueDescriptor
512 throw new java.lang.IllegalStateException(
513 "Can't get the descriptor of an unrecognized enum value.");
517 public final com.google.protobuf.Descriptors.EnumDescriptor
521 public static com.google.protobuf.Descriptors.EnumDescriptor
523 return com.google.ortools.constraintsolver.FirstSolutionStrategy.getDescriptor().getEnumTypes().get(0);
526 private static final Value[] VALUES = values();
529 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
531 throw new java.lang.IllegalArgumentException(
532 "EnumValueDescriptor is not for this type.");
534 if (desc.getIndex() == -1) {
537 return VALUES[desc.getIndex()];
540 private final int value;
542 private Value(
int value) {
549 private byte memoizedIsInitialized = -1;
556 memoizedIsInitialized = 1;
561 public void writeTo(com.google.protobuf.CodedOutputStream output)
562 throws java.io.IOException {
563 getUnknownFields().writeTo(output);
568 int size = memoizedSize;
569 if (size != -1)
return size;
572 size += getUnknownFields().getSerializedSize();
578 public boolean equals(
final java.lang.Object obj) {
582 if (!(obj instanceof com.google.ortools.constraintsolver.FirstSolutionStrategy)) {
583 return super.equals(obj);
587 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
593 if (memoizedHashCode != 0) {
594 return memoizedHashCode;
598 hash = (29 * hash) + getUnknownFields().hashCode();
599 memoizedHashCode = hash;
604 java.nio.ByteBuffer data)
605 throws com.google.protobuf.InvalidProtocolBufferException {
606 return PARSER.parseFrom(data);
609 java.nio.ByteBuffer data,
610 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
611 throws com.google.protobuf.InvalidProtocolBufferException {
612 return PARSER.parseFrom(data, extensionRegistry);
615 com.google.protobuf.ByteString data)
616 throws com.google.protobuf.InvalidProtocolBufferException {
617 return PARSER.parseFrom(data);
620 com.google.protobuf.ByteString data,
621 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
622 throws com.google.protobuf.InvalidProtocolBufferException {
623 return PARSER.parseFrom(data, extensionRegistry);
626 throws com.google.protobuf.InvalidProtocolBufferException {
627 return PARSER.parseFrom(data);
631 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
632 throws com.google.protobuf.InvalidProtocolBufferException {
633 return PARSER.parseFrom(data, extensionRegistry);
636 throws java.io.IOException {
637 return com.google.protobuf.GeneratedMessage
638 .parseWithIOException(PARSER, input);
641 java.io.InputStream input,
642 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
643 throws java.io.IOException {
644 return com.google.protobuf.GeneratedMessage
645 .parseWithIOException(PARSER, input, extensionRegistry);
649 throws java.io.IOException {
650 return com.google.protobuf.GeneratedMessage
651 .parseDelimitedWithIOException(PARSER, input);
655 java.io.InputStream input,
656 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
657 throws java.io.IOException {
658 return com.google.protobuf.GeneratedMessage
659 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
662 com.google.protobuf.CodedInputStream input)
663 throws java.io.IOException {
664 return com.google.protobuf.GeneratedMessage
665 .parseWithIOException(PARSER, input);
668 com.google.protobuf.CodedInputStream input,
669 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
670 throws java.io.IOException {
671 return com.google.protobuf.GeneratedMessage
672 .parseWithIOException(PARSER, input, extensionRegistry);
678 return DEFAULT_INSTANCE.toBuilder();
680 public static Builder newBuilder(com.google.ortools.constraintsolver.FirstSolutionStrategy prototype) {
681 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
685 return this == DEFAULT_INSTANCE
691 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
702 public static final class Builder
extends
703 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
706 public static final com.google.protobuf.Descriptors.Descriptor
708 return com.google.ortools.constraintsolver.RoutingEnums.internal_static_operations_research_FirstSolutionStrategy_descriptor;
712 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
714 return com.google.ortools.constraintsolver.RoutingEnums.internal_static_operations_research_FirstSolutionStrategy_fieldAccessorTable
715 .ensureFieldAccessorsInitialized(
716 com.google.ortools.constraintsolver.FirstSolutionStrategy.class, com.google.ortools.constraintsolver.FirstSolutionStrategy.Builder.class);
725 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
736 public com.google.protobuf.Descriptors.Descriptor
738 return com.google.ortools.constraintsolver.RoutingEnums.internal_static_operations_research_FirstSolutionStrategy_descriptor;
743 return com.google.ortools.constraintsolver.FirstSolutionStrategy.getDefaultInstance();
750 throw newUninitializedMessageException(result);
763 public Builder
mergeFrom(com.google.protobuf.Message other) {
764 if (other instanceof com.google.ortools.constraintsolver.FirstSolutionStrategy) {
765 return mergeFrom((com.google.ortools.constraintsolver.FirstSolutionStrategy)other);
767 super.mergeFrom(other);
772 public Builder
mergeFrom(com.google.ortools.constraintsolver.FirstSolutionStrategy other) {
773 if (other == com.google.ortools.constraintsolver.FirstSolutionStrategy.getDefaultInstance())
return this;
774 this.mergeUnknownFields(other.getUnknownFields());
786 com.google.protobuf.CodedInputStream input,
787 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
788 throws java.io.IOException {
789 if (extensionRegistry ==
null) {
790 throw new java.lang.NullPointerException();
793 boolean done =
false;
795 int tag = input.readTag();
801 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
808 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
809 throw e.unwrapIOException();
822 DEFAULT_INSTANCE =
new com.google.ortools.constraintsolver.FirstSolutionStrategy();
826 return DEFAULT_INSTANCE;
833 com.google.protobuf.CodedInputStream input,
834 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
835 throws com.google.protobuf.InvalidProtocolBufferException {
838 builder.mergeFrom(input, extensionRegistry);
839 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
840 throw e.setUnfinishedMessage(builder.buildPartial());
841 }
catch (com.google.protobuf.UninitializedMessageException e) {
842 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
843 }
catch (java.io.IOException e) {
844 throw new com.google.protobuf.InvalidProtocolBufferException(e)
845 .setUnfinishedMessage(builder.buildPartial());
847 return builder.buildPartial();
851 public static com.google.protobuf.Parser<FirstSolutionStrategy>
parser() {
862 return DEFAULT_INSTANCE;