4 package com.google.ortools.constraintsolver;
14 com.google.protobuf.GeneratedMessageV3 implements
17 private static final long serialVersionUID = 0L;
26 public final com.
google.protobuf.UnknownFieldSet
28 return this.unknownFields;
31 com.
google.protobuf.CodedInputStream input,
32 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
33 throws com.
google.protobuf.InvalidProtocolBufferException {
35 if (extensionRegistry ==
null) {
36 throw new java.lang.NullPointerException();
38 com.
google.protobuf.UnknownFieldSet.Builder unknownFields =
39 com.
google.protobuf.UnknownFieldSet.newBuilder();
43 int tag = input.readTag();
49 if (!parseUnknownField(
50 input, unknownFields, extensionRegistry, tag)) {
57 }
catch (
com.
google.protobuf.InvalidProtocolBufferException e) {
58 throw e.setUnfinishedMessage(
this);
59 }
catch (java.io.IOException e) {
60 throw new com.
google.protobuf.InvalidProtocolBufferException(
61 e).setUnfinishedMessage(
this);
63 this.unknownFields = unknownFields.build();
64 makeExtensionsImmutable();
67 public static final com.
google.protobuf.Descriptors.Descriptor
73 protected com.
google.protobuf.GeneratedMessageV3.FieldAccessorTable
76 .ensureFieldAccessorsInitialized(
84 implements
com.
google.protobuf.ProtocolMessageEnum {
266 public static final int UNSET_VALUE = 0;
275 public static final int AUTOMATIC_VALUE = 15;
286 public static final int PATH_CHEAPEST_ARC_VALUE = 3;
297 public static final int PATH_MOST_CONSTRAINED_ARC_VALUE = 4;
307 public static final int EVALUATOR_STRATEGY_VALUE = 5;
318 public static final int SAVINGS_VALUE = 10;
330 public static final int SWEEP_VALUE = 11;
345 public static final int CHRISTOFIDES_VALUE = 13;
355 public static final int ALL_UNPERFORMED_VALUE = 6;
366 public static final int BEST_INSERTION_VALUE = 7;
376 public static final int PARALLEL_CHEAPEST_INSERTION_VALUE = 8;
387 public static final int SEQUENTIAL_CHEAPEST_INSERTION_VALUE = 14;
400 public static final int LOCAL_CHEAPEST_INSERTION_VALUE = 9;
409 public static final int GLOBAL_CHEAPEST_ARC_VALUE = 1;
418 public static final int LOCAL_CHEAPEST_ARC_VALUE = 2;
429 public static final int FIRST_UNBOUND_MIN_VALUE_VALUE = 12;
433 if (
this == UNRECOGNIZED) {
434 throw new java.lang.IllegalArgumentException(
435 "Can't get the number of an unknown enum value.");
443 @java.lang.Deprecated
445 return forNumber(value);
450 case 0:
return UNSET;
451 case 15:
return AUTOMATIC;
452 case 3:
return PATH_CHEAPEST_ARC;
453 case 4:
return PATH_MOST_CONSTRAINED_ARC;
454 case 5:
return EVALUATOR_STRATEGY;
455 case 10:
return SAVINGS;
456 case 11:
return SWEEP;
457 case 13:
return CHRISTOFIDES;
458 case 6:
return ALL_UNPERFORMED;
459 case 7:
return BEST_INSERTION;
460 case 8:
return PARALLEL_CHEAPEST_INSERTION;
461 case 14:
return SEQUENTIAL_CHEAPEST_INSERTION;
462 case 9:
return LOCAL_CHEAPEST_INSERTION;
463 case 1:
return GLOBAL_CHEAPEST_ARC;
464 case 2:
return LOCAL_CHEAPEST_ARC;
465 case 12:
return FIRST_UNBOUND_MIN_VALUE;
466 default:
return null;
472 return internalValueMap;
474 private static final com.
google.protobuf.Internal.EnumLiteMap<
475 Value> internalValueMap =
477 public Value findValueByNumber(
int number) {
482 public final com.
google.protobuf.Descriptors.EnumValueDescriptor
486 public final com.
google.protobuf.Descriptors.EnumDescriptor
490 public static final com.
google.protobuf.Descriptors.EnumDescriptor
495 private static final Value[] VALUES = values();
498 com.
google.protobuf.Descriptors.EnumValueDescriptor desc) {
500 throw new java.lang.IllegalArgumentException(
501 "EnumValueDescriptor is not for this type.");
503 if (desc.getIndex() == -1) {
506 return VALUES[desc.getIndex()];
509 private final int value;
511 private Value(
int value) {
518 private byte memoizedIsInitialized = -1;
525 memoizedIsInitialized = 1;
531 throws java.io.IOException {
532 unknownFields.writeTo(output);
537 int size = memoizedSize;
538 if (size != -1)
return size;
541 size += unknownFields.getSerializedSize();
547 public boolean equals(
final java.lang.Object obj) {
552 return super.equals(obj);
556 if (!unknownFields.equals(other.unknownFields))
return false;
562 if (memoizedHashCode != 0) {
563 return memoizedHashCode;
567 hash = (29 * hash) + unknownFields.hashCode();
568 memoizedHashCode = hash;
573 java.nio.ByteBuffer data)
574 throws com.
google.protobuf.InvalidProtocolBufferException {
575 return PARSER.parseFrom(data);
578 java.nio.ByteBuffer data,
579 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
580 throws com.
google.protobuf.InvalidProtocolBufferException {
581 return PARSER.parseFrom(data, extensionRegistry);
585 throws com.
google.protobuf.InvalidProtocolBufferException {
586 return PARSER.parseFrom(data);
590 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
591 throws com.
google.protobuf.InvalidProtocolBufferException {
592 return PARSER.parseFrom(data, extensionRegistry);
595 throws com.
google.protobuf.InvalidProtocolBufferException {
596 return PARSER.parseFrom(data);
600 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
601 throws com.
google.protobuf.InvalidProtocolBufferException {
602 return PARSER.parseFrom(data, extensionRegistry);
605 throws java.io.IOException {
606 return com.
google.protobuf.GeneratedMessageV3
607 .parseWithIOException(PARSER, input);
610 java.io.InputStream input,
611 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
612 throws java.io.IOException {
613 return com.
google.protobuf.GeneratedMessageV3
614 .parseWithIOException(PARSER, input, extensionRegistry);
617 throws java.io.IOException {
618 return com.
google.protobuf.GeneratedMessageV3
619 .parseDelimitedWithIOException(PARSER, input);
622 java.io.InputStream input,
623 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
624 throws java.io.IOException {
625 return com.
google.protobuf.GeneratedMessageV3
626 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
629 com.
google.protobuf.CodedInputStream input)
630 throws java.io.IOException {
631 return com.
google.protobuf.GeneratedMessageV3
632 .parseWithIOException(PARSER, input);
635 com.
google.protobuf.CodedInputStream input,
636 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
637 throws java.io.IOException {
638 return com.
google.protobuf.GeneratedMessageV3
639 .parseWithIOException(PARSER, input, extensionRegistry);
652 return this == DEFAULT_INSTANCE
658 com.
google.protobuf.GeneratedMessageV3.BuilderParent parent) {
670 com.google.protobuf.GeneratedMessageV3.
Builder<Builder> implements
673 public static final com.
google.protobuf.Descriptors.Descriptor
679 protected com.
google.protobuf.GeneratedMessageV3.FieldAccessorTable
682 .ensureFieldAccessorsInitialized(
688 maybeForceBuilderInitialization();
692 com.
google.protobuf.GeneratedMessageV3.BuilderParent parent) {
694 maybeForceBuilderInitialization();
696 private void maybeForceBuilderInitialization() {
697 if (
com.
google.protobuf.GeneratedMessageV3
698 .alwaysUseFieldBuilders) {
708 public com.
google.protobuf.Descriptors.Descriptor
721 if (!result.isInitialized()) {
722 throw newUninitializedMessageException(result);
736 return super.
clone();
740 com.
google.protobuf.Descriptors.FieldDescriptor field,
741 java.lang.Object value) {
742 return super.
setField(field, value);
746 com.
google.protobuf.Descriptors.FieldDescriptor field) {
751 com.
google.protobuf.Descriptors.OneofDescriptor oneof) {
756 com.
google.protobuf.Descriptors.FieldDescriptor field,
757 int index, java.lang.Object value) {
762 com.
google.protobuf.Descriptors.FieldDescriptor field,
763 java.lang.Object value) {
771 super.mergeFrom(other);
790 com.
google.protobuf.CodedInputStream input,
791 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
792 throws java.io.IOException {
795 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
796 }
catch (
com.
google.protobuf.InvalidProtocolBufferException e) {
798 throw e.unwrapIOException();
800 if (parsedMessage !=
null) {
808 final com.
google.protobuf.UnknownFieldSet unknownFields) {
814 final com.
google.protobuf.UnknownFieldSet unknownFields) {
829 return DEFAULT_INSTANCE;
836 com.
google.protobuf.CodedInputStream input,
837 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
838 throws com.
google.protobuf.InvalidProtocolBufferException {
854 return DEFAULT_INSTANCE;