6package com.google.ortools.constraintsolver;
15public final class FirstSolutionStrategy
extends
16 com.google.protobuf.GeneratedMessage implements
19private static final long serialVersionUID = 0L;
21 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
22 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
27 FirstSolutionStrategy.class.getName());
30 private FirstSolutionStrategy(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
33 private FirstSolutionStrategy() {
36 public static final com.google.protobuf.Descriptors.Descriptor
38 return com.google.ortools.constraintsolver.RoutingEnums.internal_static_operations_research_FirstSolutionStrategy_descriptor;
42 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
44 return com.google.ortools.constraintsolver.RoutingEnums.internal_static_operations_research_FirstSolutionStrategy_fieldAccessorTable
45 .ensureFieldAccessorsInitialized(
46 com.google.ortools.constraintsolver.FirstSolutionStrategy.class, com.google.ortools.constraintsolver.FirstSolutionStrategy.Builder.class);
53 implements com.google.protobuf.ProtocolMessageEnum {
249 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
250 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
255 Value.class.getName());
452 throw new java.lang.IllegalArgumentException(
453 "Can't get the number of an unknown enum value.");
463 @java.lang.Deprecated
474 case 0:
return UNSET;
481 case 11:
return SWEEP;
492 default:
return null;
496 public static com.google.protobuf.Internal.EnumLiteMap<
Value>
498 return internalValueMap;
500 private static final com.google.protobuf.Internal.EnumLiteMap<
501 Value> internalValueMap =
502 new com.google.protobuf.Internal.EnumLiteMap<
Value>() {
503 public Value findValueByNumber(
int number) {
508 public final com.google.protobuf.Descriptors.EnumValueDescriptor
511 throw new java.lang.IllegalStateException(
512 "Can't get the descriptor of an unrecognized enum value.");
516 public final com.google.protobuf.Descriptors.EnumDescriptor
520 public static final com.google.protobuf.Descriptors.EnumDescriptor
522 return com.google.ortools.constraintsolver.FirstSolutionStrategy.getDescriptor().getEnumTypes().get(0);
525 private static final Value[] VALUES = values();
528 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
530 throw new java.lang.IllegalArgumentException(
531 "EnumValueDescriptor is not for this type.");
533 if (desc.getIndex() == -1) {
536 return VALUES[desc.getIndex()];
539 private final int value;
541 private Value(
int value) {
548 private byte memoizedIsInitialized = -1;
555 memoizedIsInitialized = 1;
560 public void writeTo(com.google.protobuf.CodedOutputStream output)
561 throws java.io.IOException {
562 getUnknownFields().writeTo(output);
567 int size = memoizedSize;
568 if (size != -1)
return size;
571 size += getUnknownFields().getSerializedSize();
577 public boolean equals(
final java.lang.Object obj) {
581 if (!(obj instanceof com.google.ortools.constraintsolver.FirstSolutionStrategy)) {
582 return super.equals(obj);
586 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
592 if (memoizedHashCode != 0) {
593 return memoizedHashCode;
597 hash = (29 * hash) + getUnknownFields().hashCode();
598 memoizedHashCode = hash;
603 java.nio.ByteBuffer data)
604 throws com.google.protobuf.InvalidProtocolBufferException {
605 return PARSER.parseFrom(data);
608 java.nio.ByteBuffer data,
609 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
610 throws com.google.protobuf.InvalidProtocolBufferException {
611 return PARSER.parseFrom(data, extensionRegistry);
614 com.google.protobuf.ByteString data)
615 throws com.google.protobuf.InvalidProtocolBufferException {
616 return PARSER.parseFrom(data);
619 com.google.protobuf.ByteString data,
620 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
621 throws com.google.protobuf.InvalidProtocolBufferException {
622 return PARSER.parseFrom(data, extensionRegistry);
625 throws com.google.protobuf.InvalidProtocolBufferException {
626 return PARSER.parseFrom(data);
630 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
631 throws com.google.protobuf.InvalidProtocolBufferException {
632 return PARSER.parseFrom(data, extensionRegistry);
635 throws java.io.IOException {
636 return com.google.protobuf.GeneratedMessage
637 .parseWithIOException(PARSER, input);
640 java.io.InputStream input,
641 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
642 throws java.io.IOException {
643 return com.google.protobuf.GeneratedMessage
644 .parseWithIOException(PARSER, input, extensionRegistry);
648 throws java.io.IOException {
649 return com.google.protobuf.GeneratedMessage
650 .parseDelimitedWithIOException(PARSER, input);
654 java.io.InputStream input,
655 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
656 throws java.io.IOException {
657 return com.google.protobuf.GeneratedMessage
658 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
661 com.google.protobuf.CodedInputStream input)
662 throws java.io.IOException {
663 return com.google.protobuf.GeneratedMessage
664 .parseWithIOException(PARSER, input);
667 com.google.protobuf.CodedInputStream input,
668 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
669 throws java.io.IOException {
670 return com.google.protobuf.GeneratedMessage
671 .parseWithIOException(PARSER, input, extensionRegistry);
677 return DEFAULT_INSTANCE.toBuilder();
679 public static Builder newBuilder(com.google.ortools.constraintsolver.FirstSolutionStrategy prototype) {
680 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
684 return this == DEFAULT_INSTANCE
690 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
701 public static final class Builder
extends
702 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
705 public static final com.google.protobuf.Descriptors.Descriptor
707 return com.google.ortools.constraintsolver.RoutingEnums.internal_static_operations_research_FirstSolutionStrategy_descriptor;
711 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
713 return com.google.ortools.constraintsolver.RoutingEnums.internal_static_operations_research_FirstSolutionStrategy_fieldAccessorTable
714 .ensureFieldAccessorsInitialized(
715 com.google.ortools.constraintsolver.FirstSolutionStrategy.class, com.google.ortools.constraintsolver.FirstSolutionStrategy.Builder.class);
724 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
735 public com.google.protobuf.Descriptors.Descriptor
737 return com.google.ortools.constraintsolver.RoutingEnums.internal_static_operations_research_FirstSolutionStrategy_descriptor;
742 return com.google.ortools.constraintsolver.FirstSolutionStrategy.getDefaultInstance();
749 throw newUninitializedMessageException(result);
762 public Builder
mergeFrom(com.google.protobuf.Message other) {
763 if (other instanceof com.google.ortools.constraintsolver.FirstSolutionStrategy) {
764 return mergeFrom((com.google.ortools.constraintsolver.FirstSolutionStrategy)other);
766 super.mergeFrom(other);
771 public Builder
mergeFrom(com.google.ortools.constraintsolver.FirstSolutionStrategy other) {
772 if (other == com.google.ortools.constraintsolver.FirstSolutionStrategy.getDefaultInstance())
return this;
773 this.mergeUnknownFields(other.getUnknownFields());
785 com.google.protobuf.CodedInputStream input,
786 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
787 throws java.io.IOException {
788 if (extensionRegistry ==
null) {
789 throw new java.lang.NullPointerException();
792 boolean done =
false;
794 int tag = input.readTag();
800 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
807 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
808 throw e.unwrapIOException();
821 DEFAULT_INSTANCE =
new com.google.ortools.constraintsolver.FirstSolutionStrategy();
825 return DEFAULT_INSTANCE;
832 com.google.protobuf.CodedInputStream input,
833 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
834 throws com.google.protobuf.InvalidProtocolBufferException {
837 builder.mergeFrom(input, extensionRegistry);
838 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
839 throw e.setUnfinishedMessage(builder.buildPartial());
840 }
catch (com.google.protobuf.UninitializedMessageException e) {
841 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
842 }
catch (java.io.IOException e) {
843 throw new com.google.protobuf.InvalidProtocolBufferException(e)
844 .setUnfinishedMessage(builder.buildPartial());
846 return builder.buildPartial();
850 public static com.google.protobuf.Parser<FirstSolutionStrategy>
parser() {
861 return DEFAULT_INSTANCE;