Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
LocalCheapestInsertionParameters.java
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// NO CHECKED-IN PROTOBUF GENCODE
3// source: ortools/constraint_solver/routing_heuristic_parameters.proto
4// Protobuf Java Version: 4.33.1
5
6package com.google.ortools.constraintsolver;
7
15@com.google.protobuf.Generated
16public final class LocalCheapestInsertionParameters extends
17 com.google.protobuf.GeneratedMessage implements
18 // @@protoc_insertion_point(message_implements:operations_research.LocalCheapestInsertionParameters)
20private static final long serialVersionUID = 0L;
21 static {
22 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
23 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
24 /* major= */ 4,
25 /* minor= */ 33,
26 /* patch= */ 1,
27 /* suffix= */ "",
28 "LocalCheapestInsertionParameters");
29 }
30 // Use LocalCheapestInsertionParameters.newBuilder() to construct.
31 private LocalCheapestInsertionParameters(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
32 super(builder);
33 }
34 private LocalCheapestInsertionParameters() {
35 pickupDeliveryStrategy_ = 0;
36 insertionSortingProperties_ = emptyIntList();
37 }
38
39 public static final com.google.protobuf.Descriptors.Descriptor
41 return com.google.ortools.constraintsolver.RoutingHeuristicParameters.internal_static_operations_research_LocalCheapestInsertionParameters_descriptor;
42 }
43
44 @java.lang.Override
45 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
47 return com.google.ortools.constraintsolver.RoutingHeuristicParameters.internal_static_operations_research_LocalCheapestInsertionParameters_fieldAccessorTable
48 .ensureFieldAccessorsInitialized(
49 com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.class, com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.Builder.class);
50 }
51
61 public enum PairInsertionStrategy
62 implements com.google.protobuf.ProtocolMessageEnum {
100 ;
101
102 static {
103 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
104 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
105 /* major= */ 4,
106 /* minor= */ 33,
107 /* patch= */ 1,
108 /* suffix= */ "",
109 "PairInsertionStrategy");
110 }
118 public static final int AUTOMATIC_VALUE = 0;
126 public static final int BEST_PICKUP_THEN_BEST_DELIVERY_VALUE = 1;
134 public static final int BEST_PICKUP_DELIVERY_PAIR_VALUE = 2;
146 public static final int BEST_PICKUP_DELIVERY_PAIR_MULTITOUR_VALUE = 3;
147
148
149 public final int getNumber() {
150 if (this == UNRECOGNIZED) {
151 throw new java.lang.IllegalArgumentException(
152 "Can't get the number of an unknown enum value.");
153 }
154 return value;
155 }
156
162 @java.lang.Deprecated
163 public static PairInsertionStrategy valueOf(int value) {
164 return forNumber(value);
165 }
166
171 public static PairInsertionStrategy forNumber(int value) {
172 switch (value) {
173 case 0: return AUTOMATIC;
174 case 1: return BEST_PICKUP_THEN_BEST_DELIVERY;
175 case 2: return BEST_PICKUP_DELIVERY_PAIR;
177 default: return null;
178 }
179 }
180
181 public static com.google.protobuf.Internal.EnumLiteMap<PairInsertionStrategy>
183 return internalValueMap;
184 }
185 private static final com.google.protobuf.Internal.EnumLiteMap<
186 PairInsertionStrategy> internalValueMap =
187 new com.google.protobuf.Internal.EnumLiteMap<PairInsertionStrategy>() {
188 public PairInsertionStrategy findValueByNumber(int number) {
189 return PairInsertionStrategy.forNumber(number);
190 }
191 };
192
193 public final com.google.protobuf.Descriptors.EnumValueDescriptor
195 if (this == UNRECOGNIZED) {
196 throw new java.lang.IllegalStateException(
197 "Can't get the descriptor of an unrecognized enum value.");
198 }
199 return getDescriptor().getValues().get(ordinal());
200 }
201 public final com.google.protobuf.Descriptors.EnumDescriptor
203 return getDescriptor();
204 }
205 public static com.google.protobuf.Descriptors.EnumDescriptor
207 return com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.getDescriptor().getEnumTypes().get(0);
208 }
209
210 private static final PairInsertionStrategy[] VALUES = values();
211
212 public static PairInsertionStrategy valueOf(
213 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
214 if (desc.getType() != getDescriptor()) {
215 throw new java.lang.IllegalArgumentException(
216 "EnumValueDescriptor is not for this type.");
217 }
218 if (desc.getIndex() == -1) {
219 return UNRECOGNIZED;
220 }
221 return VALUES[desc.getIndex()];
222 }
223
224 private final int value;
225
226 private PairInsertionStrategy(int value) {
227 this.value = value;
228 }
229
230 // @@protoc_insertion_point(enum_scope:operations_research.LocalCheapestInsertionParameters.PairInsertionStrategy)
231 }
232
241 public enum InsertionSortingProperty
242 implements com.google.protobuf.ProtocolMessageEnum {
320 ;
321
322 static {
323 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
324 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
325 /* major= */ 4,
326 /* minor= */ 33,
327 /* patch= */ 1,
328 /* suffix= */ "",
329 "InsertionSortingProperty");
330 }
338 public static final int SORTING_PROPERTY_UNSPECIFIED_VALUE = 0;
346 public static final int SORTING_PROPERTY_ALLOWED_VEHICLES_VALUE = 1;
354 public static final int SORTING_PROPERTY_PENALTY_VALUE = 2;
406 public static final int SORTING_PROPERTY_RANDOM_VALUE = 8;
407
408
409 public final int getNumber() {
410 if (this == UNRECOGNIZED) {
411 throw new java.lang.IllegalArgumentException(
412 "Can't get the number of an unknown enum value.");
413 }
414 return value;
415 }
416
422 @java.lang.Deprecated
423 public static InsertionSortingProperty valueOf(int value) {
424 return forNumber(value);
425 }
426
431 public static InsertionSortingProperty forNumber(int value) {
432 switch (value) {
433 case 0: return SORTING_PROPERTY_UNSPECIFIED;
435 case 2: return SORTING_PROPERTY_PENALTY;
441 case 8: return SORTING_PROPERTY_RANDOM;
442 default: return null;
443 }
444 }
445
446 public static com.google.protobuf.Internal.EnumLiteMap<InsertionSortingProperty>
448 return internalValueMap;
449 }
450 private static final com.google.protobuf.Internal.EnumLiteMap<
451 InsertionSortingProperty> internalValueMap =
452 new com.google.protobuf.Internal.EnumLiteMap<InsertionSortingProperty>() {
453 public InsertionSortingProperty findValueByNumber(int number) {
454 return InsertionSortingProperty.forNumber(number);
455 }
456 };
457
458 public final com.google.protobuf.Descriptors.EnumValueDescriptor
460 if (this == UNRECOGNIZED) {
461 throw new java.lang.IllegalStateException(
462 "Can't get the descriptor of an unrecognized enum value.");
463 }
464 return getDescriptor().getValues().get(ordinal());
465 }
466 public final com.google.protobuf.Descriptors.EnumDescriptor
468 return getDescriptor();
469 }
470 public static com.google.protobuf.Descriptors.EnumDescriptor
472 return com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.getDescriptor().getEnumTypes().get(1);
473 }
474
475 private static final InsertionSortingProperty[] VALUES = values();
476
477 public static InsertionSortingProperty valueOf(
478 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
479 if (desc.getType() != getDescriptor()) {
480 throw new java.lang.IllegalArgumentException(
481 "EnumValueDescriptor is not for this type.");
482 }
483 if (desc.getIndex() == -1) {
484 return UNRECOGNIZED;
485 }
486 return VALUES[desc.getIndex()];
487 }
488
489 private final int value;
490
491 private InsertionSortingProperty(int value) {
492 this.value = value;
493 }
494
495 // @@protoc_insertion_point(enum_scope:operations_research.LocalCheapestInsertionParameters.InsertionSortingProperty)
496 }
497
498 public static final int PICKUP_DELIVERY_STRATEGY_FIELD_NUMBER = 1;
499 private int pickupDeliveryStrategy_ = 0;
509 @java.lang.Override public int getPickupDeliveryStrategyValue() {
510 return pickupDeliveryStrategy_;
511 }
512
522 com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.PairInsertionStrategy result = com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.PairInsertionStrategy.forNumber(pickupDeliveryStrategy_);
524 }
525
526 public static final int INSERTION_SORTING_PROPERTIES_FIELD_NUMBER = 2;
527 @SuppressWarnings("serial")
528 private com.google.protobuf.Internal.IntList insertionSortingProperties_ =
529 emptyIntList();
530 private static final com.google.protobuf.Internal.IntListAdapter.IntConverter<
531 com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.InsertionSortingProperty> insertionSortingProperties_converter_ =
532 new com.google.protobuf.Internal.IntListAdapter.IntConverter<
533 com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.InsertionSortingProperty>() {
535 com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.InsertionSortingProperty result = com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.InsertionSortingProperty.forNumber(from);
537 }
538 };
552 @java.lang.Override
553 public java.util.List<com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.InsertionSortingProperty> getInsertionSortingPropertiesList() {
554 return new com.google.protobuf.Internal.IntListAdapter<
555 com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.InsertionSortingProperty>(insertionSortingProperties_, insertionSortingProperties_converter_);
556 }
557
570 @java.lang.Override
572 return insertionSortingProperties_.size();
573 }
574
588 @java.lang.Override
590 return insertionSortingProperties_converter_.convert(insertionSortingProperties_.getInt(index));
591 }
592
605 @java.lang.Override
606 public java.util.List<java.lang.Integer>
608 return insertionSortingProperties_;
609 }
610
624 @java.lang.Override
626 return insertionSortingProperties_.getInt(index);
627 }
628 private int insertionSortingPropertiesMemoizedSerializedSize;
629
630 private byte memoizedIsInitialized = -1;
631 @java.lang.Override
632 public final boolean isInitialized() {
633 byte isInitialized = memoizedIsInitialized;
634 if (isInitialized == 1) return true;
635 if (isInitialized == 0) return false;
636
637 memoizedIsInitialized = 1;
638 return true;
639 }
640
641 @java.lang.Override
642 public void writeTo(com.google.protobuf.CodedOutputStream output)
643 throws java.io.IOException {
645 if (pickupDeliveryStrategy_ != com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.PairInsertionStrategy.AUTOMATIC.getNumber()) {
646 output.writeEnum(1, pickupDeliveryStrategy_);
647 }
648 if (getInsertionSortingPropertiesList().size() > 0) {
649 output.writeUInt32NoTag(18);
650 output.writeUInt32NoTag(insertionSortingPropertiesMemoizedSerializedSize);
651 }
652 for (int i = 0; i < insertionSortingProperties_.size(); i++) {
653 output.writeEnumNoTag(insertionSortingProperties_.getInt(i));
654 }
655 getUnknownFields().writeTo(output);
656 }
657
658 @java.lang.Override
659 public int getSerializedSize() {
660 int size = memoizedSize;
661 if (size != -1) return size;
662
663 size = 0;
664 if (pickupDeliveryStrategy_ != com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.PairInsertionStrategy.AUTOMATIC.getNumber()) {
665 size += com.google.protobuf.CodedOutputStream
666 .computeEnumSize(1, pickupDeliveryStrategy_);
667 }
668 {
669 int dataSize = 0;
670 for (int i = 0; i < insertionSortingProperties_.size(); i++) {
671 dataSize += com.google.protobuf.CodedOutputStream
672 .computeEnumSizeNoTag(insertionSortingProperties_.getInt(i));
673 }
674 size += dataSize;
675 if (!getInsertionSortingPropertiesList().isEmpty()) { size += 1;
676 size += com.google.protobuf.CodedOutputStream
677 .computeUInt32SizeNoTag(dataSize);
678 }insertionSortingPropertiesMemoizedSerializedSize = dataSize;
679 }
680 size += getUnknownFields().getSerializedSize();
681 memoizedSize = size;
682 return size;
683 }
684
685 @java.lang.Override
686 public boolean equals(final java.lang.Object obj) {
687 if (obj == this) {
688 return true;
689 }
690 if (!(obj instanceof com.google.ortools.constraintsolver.LocalCheapestInsertionParameters)) {
691 return super.equals(obj);
692 }
693 com.google.ortools.constraintsolver.LocalCheapestInsertionParameters other = (com.google.ortools.constraintsolver.LocalCheapestInsertionParameters) obj;
694
695 if (pickupDeliveryStrategy_ != other.pickupDeliveryStrategy_) return false;
696 if (!insertionSortingProperties_.equals(other.insertionSortingProperties_)) return false;
697 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
698 return true;
699 }
700
701 @java.lang.Override
702 public int hashCode() {
703 if (memoizedHashCode != 0) {
704 return memoizedHashCode;
705 }
706 int hash = 41;
707 hash = (19 * hash) + getDescriptor().hashCode();
708 hash = (37 * hash) + PICKUP_DELIVERY_STRATEGY_FIELD_NUMBER;
709 hash = (53 * hash) + pickupDeliveryStrategy_;
712 hash = (53 * hash) + insertionSortingProperties_.hashCode();
713 }
714 hash = (29 * hash) + getUnknownFields().hashCode();
715 memoizedHashCode = hash;
716 return hash;
717 }
718
720 java.nio.ByteBuffer data)
721 throws com.google.protobuf.InvalidProtocolBufferException {
722 return PARSER.parseFrom(data);
723 }
725 java.nio.ByteBuffer data,
726 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
727 throws com.google.protobuf.InvalidProtocolBufferException {
728 return PARSER.parseFrom(data, extensionRegistry);
729 }
731 com.google.protobuf.ByteString data)
732 throws com.google.protobuf.InvalidProtocolBufferException {
733 return PARSER.parseFrom(data);
734 }
736 com.google.protobuf.ByteString data,
737 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
738 throws com.google.protobuf.InvalidProtocolBufferException {
739 return PARSER.parseFrom(data, extensionRegistry);
740 }
742 throws com.google.protobuf.InvalidProtocolBufferException {
743 return PARSER.parseFrom(data);
744 }
746 byte[] data,
747 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
748 throws com.google.protobuf.InvalidProtocolBufferException {
749 return PARSER.parseFrom(data, extensionRegistry);
750 }
752 throws java.io.IOException {
753 return com.google.protobuf.GeneratedMessage
754 .parseWithIOException(PARSER, input);
755 }
757 java.io.InputStream input,
758 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
759 throws java.io.IOException {
760 return com.google.protobuf.GeneratedMessage
761 .parseWithIOException(PARSER, input, extensionRegistry);
762 }
763
765 throws java.io.IOException {
766 return com.google.protobuf.GeneratedMessage
767 .parseDelimitedWithIOException(PARSER, input);
768 }
769
771 java.io.InputStream input,
772 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
773 throws java.io.IOException {
774 return com.google.protobuf.GeneratedMessage
775 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
776 }
778 com.google.protobuf.CodedInputStream input)
779 throws java.io.IOException {
780 return com.google.protobuf.GeneratedMessage
781 .parseWithIOException(PARSER, input);
782 }
784 com.google.protobuf.CodedInputStream input,
785 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
786 throws java.io.IOException {
787 return com.google.protobuf.GeneratedMessage
788 .parseWithIOException(PARSER, input, extensionRegistry);
789 }
790
791 @java.lang.Override
792 public Builder newBuilderForType() { return newBuilder(); }
793 public static Builder newBuilder() {
794 return DEFAULT_INSTANCE.toBuilder();
795 }
796 public static Builder newBuilder(com.google.ortools.constraintsolver.LocalCheapestInsertionParameters prototype) {
797 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
798 }
799 @java.lang.Override
801 return this == DEFAULT_INSTANCE
802 ? new Builder() : new Builder().mergeFrom(this);
803 }
804
805 @java.lang.Override
807 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
808 Builder builder = new Builder(parent);
809 return builder;
810 }
811
818 public static final class Builder extends
819 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
820 // @@protoc_insertion_point(builder_implements:operations_research.LocalCheapestInsertionParameters)
822 public static final com.google.protobuf.Descriptors.Descriptor
824 return com.google.ortools.constraintsolver.RoutingHeuristicParameters.internal_static_operations_research_LocalCheapestInsertionParameters_descriptor;
825 }
826
827 @java.lang.Override
828 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
830 return com.google.ortools.constraintsolver.RoutingHeuristicParameters.internal_static_operations_research_LocalCheapestInsertionParameters_fieldAccessorTable
831 .ensureFieldAccessorsInitialized(
832 com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.class, com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.Builder.class);
833 }
834
835 // Construct using com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.newBuilder()
836 private Builder() {
837
838 }
839
840 private Builder(
841 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
842 super(parent);
843
844 }
845 @java.lang.Override
846 public Builder clear() {
847 super.clear();
848 bitField0_ = 0;
849 pickupDeliveryStrategy_ = 0;
850 insertionSortingProperties_ = emptyIntList();
851 return this;
852 }
853
854 @java.lang.Override
855 public com.google.protobuf.Descriptors.Descriptor
857 return com.google.ortools.constraintsolver.RoutingHeuristicParameters.internal_static_operations_research_LocalCheapestInsertionParameters_descriptor;
858 }
859
860 @java.lang.Override
862 return com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.getDefaultInstance();
863 }
864
865 @java.lang.Override
868 if (!result.isInitialized()) {
869 throw newUninitializedMessageException(result);
870 }
871 return result;
872 }
873
874 @java.lang.Override
876 com.google.ortools.constraintsolver.LocalCheapestInsertionParameters result = new com.google.ortools.constraintsolver.LocalCheapestInsertionParameters(this);
877 if (bitField0_ != 0) { buildPartial0(result); }
878 onBuilt();
879 return result;
880 }
881
882 private void buildPartial0(com.google.ortools.constraintsolver.LocalCheapestInsertionParameters result) {
883 int from_bitField0_ = bitField0_;
884 if (((from_bitField0_ & 0x00000001) != 0)) {
885 result.pickupDeliveryStrategy_ = pickupDeliveryStrategy_;
886 }
887 if (((from_bitField0_ & 0x00000002) != 0)) {
888 insertionSortingProperties_.makeImmutable();
889 result.insertionSortingProperties_ = insertionSortingProperties_;
890 }
891 }
892
893 @java.lang.Override
894 public Builder mergeFrom(com.google.protobuf.Message other) {
895 if (other instanceof com.google.ortools.constraintsolver.LocalCheapestInsertionParameters) {
896 return mergeFrom((com.google.ortools.constraintsolver.LocalCheapestInsertionParameters)other);
897 } else {
898 super.mergeFrom(other);
899 return this;
900 }
901 }
902
903 public Builder mergeFrom(com.google.ortools.constraintsolver.LocalCheapestInsertionParameters other) {
904 if (other == com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.getDefaultInstance()) return this;
905 if (other.pickupDeliveryStrategy_ != 0) {
906 setPickupDeliveryStrategyValue(other.getPickupDeliveryStrategyValue());
907 }
908 if (!other.insertionSortingProperties_.isEmpty()) {
909 if (insertionSortingProperties_.isEmpty()) {
910 insertionSortingProperties_ = other.insertionSortingProperties_;
911 insertionSortingProperties_.makeImmutable();
912 bitField0_ |= 0x00000002;
913 } else {
914 ensureInsertionSortingPropertiesIsMutable();
915 insertionSortingProperties_.addAll(other.insertionSortingProperties_);
916 }
917 onChanged();
918 }
919 this.mergeUnknownFields(other.getUnknownFields());
920 onChanged();
921 return this;
922 }
923
924 @java.lang.Override
925 public final boolean isInitialized() {
926 return true;
927 }
928
929 @java.lang.Override
930 public Builder mergeFrom(
931 com.google.protobuf.CodedInputStream input,
932 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
933 throws java.io.IOException {
934 if (extensionRegistry == null) {
935 throw new java.lang.NullPointerException();
936 }
937 try {
938 boolean done = false;
939 while (!done) {
940 int tag = input.readTag();
941 switch (tag) {
942 case 0:
943 done = true;
944 break;
945 case 8: {
946 pickupDeliveryStrategy_ = input.readEnum();
947 bitField0_ |= 0x00000001;
948 break;
949 } // case 8
950 case 16: {
951 int tmpRaw = input.readEnum();
952 ensureInsertionSortingPropertiesIsMutable();
953 insertionSortingProperties_.addInt(tmpRaw);
954 break;
955 } // case 16
956 case 18: {
957 int length = input.readRawVarint32();
958 int limit = input.pushLimit(length);
959 ensureInsertionSortingPropertiesIsMutable();
960 while (input.getBytesUntilLimit() > 0) {
961 insertionSortingProperties_.addInt(input.readEnum());
962 }
963 input.popLimit(limit);
964 break;
965 } // case 18
966 default: {
967 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
968 done = true; // was an endgroup tag
969 }
970 break;
971 } // default:
972 } // switch (tag)
973 } // while (!done)
974 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
975 throw e.unwrapIOException();
976 } finally {
977 onChanged();
978 } // finally
979 return this;
980 }
981 private int bitField0_;
982
983 private int pickupDeliveryStrategy_ = 0;
993 @java.lang.Override public int getPickupDeliveryStrategyValue() {
994 return pickupDeliveryStrategy_;
995 }
996
1006 public Builder setPickupDeliveryStrategyValue(int value) {
1007 pickupDeliveryStrategy_ = value;
1008 bitField0_ |= 0x00000001;
1009 onChanged();
1010 return this;
1011 }
1012
1021 @java.lang.Override
1026
1036 public Builder setPickupDeliveryStrategy(com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.PairInsertionStrategy value) {
1037 if (value == null) { throw new NullPointerException(); }
1038 bitField0_ |= 0x00000001;
1039 pickupDeliveryStrategy_ = value.getNumber();
1040 onChanged();
1041 return this;
1042 }
1043
1053 bitField0_ = (bitField0_ & ~0x00000001);
1054 pickupDeliveryStrategy_ = 0;
1055 onChanged();
1056 return this;
1057 }
1058
1059 private com.google.protobuf.Internal.IntList insertionSortingProperties_ = emptyIntList();
1060 private void ensureInsertionSortingPropertiesIsMutable() {
1061 if (!insertionSortingProperties_.isModifiable()) {
1062 insertionSortingProperties_ = makeMutableCopy(insertionSortingProperties_);
1063 }
1064 bitField0_ |= 0x00000002;
1065 }
1079 public java.util.List<com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.InsertionSortingProperty> getInsertionSortingPropertiesList() {
1080 return new com.google.protobuf.Internal.IntListAdapter<
1081 com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.InsertionSortingProperty>(insertionSortingProperties_, insertionSortingProperties_converter_);
1082 }
1083
1097 return insertionSortingProperties_.size();
1098 }
1099
1114 return insertionSortingProperties_converter_.convert(insertionSortingProperties_.getInt(index));
1115 }
1116
1132 int index, com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.InsertionSortingProperty value) {
1133 if (value == null) { throw new NullPointerException(); }
1134 ensureInsertionSortingPropertiesIsMutable();
1135 insertionSortingProperties_.setInt(index, value.getNumber());
1136 onChanged();
1137 return this;
1138 }
1139
1153 public Builder addInsertionSortingProperties(com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.InsertionSortingProperty value) {
1154 if (value == null) { throw new NullPointerException(); }
1155 ensureInsertionSortingPropertiesIsMutable();
1156 insertionSortingProperties_.addInt(value.getNumber());
1157 onChanged();
1158 return this;
1159 }
1160
1175 java.lang.Iterable<? extends com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.InsertionSortingProperty> values) {
1176 ensureInsertionSortingPropertiesIsMutable();
1177 for (com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.InsertionSortingProperty value : values) {
1178 insertionSortingProperties_.addInt(value.getNumber());
1179 }
1180 onChanged();
1181 return this;
1182 }
1183
1197 insertionSortingProperties_ = emptyIntList();
1198 bitField0_ = (bitField0_ & ~0x00000002);
1199 onChanged();
1200 return this;
1201 }
1202
1215 public java.util.List<java.lang.Integer>
1217 insertionSortingProperties_.makeImmutable();
1218 return insertionSortingProperties_;
1219 }
1220
1235 return insertionSortingProperties_.getInt(index);
1236 }
1237
1253 int index, int value) {
1254 ensureInsertionSortingPropertiesIsMutable();
1255 insertionSortingProperties_.setInt(index, value);
1256 onChanged();
1257 return this;
1258 }
1259
1273 public Builder addInsertionSortingPropertiesValue(int value) {
1274 ensureInsertionSortingPropertiesIsMutable();
1275 insertionSortingProperties_.addInt(value);
1276 onChanged();
1277 return this;
1278 }
1279
1294 java.lang.Iterable<java.lang.Integer> values) {
1295 ensureInsertionSortingPropertiesIsMutable();
1296 for (int value : values) {
1297 insertionSortingProperties_.addInt(value);
1298 }
1299 onChanged();
1300 return this;
1301 }
1302
1303 // @@protoc_insertion_point(builder_scope:operations_research.LocalCheapestInsertionParameters)
1304 }
1305
1306 // @@protoc_insertion_point(class_scope:operations_research.LocalCheapestInsertionParameters)
1308 static {
1309 DEFAULT_INSTANCE = new com.google.ortools.constraintsolver.LocalCheapestInsertionParameters();
1310 }
1311
1315
1316 private static final com.google.protobuf.Parser<LocalCheapestInsertionParameters>
1317 PARSER = new com.google.protobuf.AbstractParser<LocalCheapestInsertionParameters>() {
1318 @java.lang.Override
1319 public LocalCheapestInsertionParameters parsePartialFrom(
1320 com.google.protobuf.CodedInputStream input,
1321 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1322 throws com.google.protobuf.InvalidProtocolBufferException {
1323 Builder builder = newBuilder();
1324 try {
1325 builder.mergeFrom(input, extensionRegistry);
1326 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1327 throw e.setUnfinishedMessage(builder.buildPartial());
1328 } catch (com.google.protobuf.UninitializedMessageException e) {
1329 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1330 } catch (java.io.IOException e) {
1331 throw new com.google.protobuf.InvalidProtocolBufferException(e)
1332 .setUnfinishedMessage(builder.buildPartial());
1333 }
1334 return builder.buildPartial();
1335 }
1336 };
1337
1338 public static com.google.protobuf.Parser<LocalCheapestInsertionParameters> parser() {
1339 return PARSER;
1340 }
1341
1342 @java.lang.Override
1343 public com.google.protobuf.Parser<LocalCheapestInsertionParameters> getParserForType() {
1344 return PARSER;
1345 }
1346
1347 @java.lang.Override
1349 return DEFAULT_INSTANCE;
1350 }
1351
1352}
1353
com.google.ortools.constraintsolver.LocalCheapestInsertionParameters buildPartial()
Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.InsertionSortingProperty getInsertionSortingProperties(int index)
Builder setPickupDeliveryStrategy(com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.PairInsertionStrategy value)
Builder mergeFrom(com.google.ortools.constraintsolver.LocalCheapestInsertionParameters other)
Builder setInsertionSortingProperties(int index, com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.InsertionSortingProperty value)
Builder addAllInsertionSortingProperties(java.lang.Iterable<? extends com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.InsertionSortingProperty > values)
com.google.ortools.constraintsolver.LocalCheapestInsertionParameters build()
com.google.ortools.constraintsolver.LocalCheapestInsertionParameters getDefaultInstanceForType()
Builder addInsertionSortingProperties(com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.InsertionSortingProperty value)
com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.PairInsertionStrategy getPickupDeliveryStrategy()
java.util.List< com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.InsertionSortingProperty > getInsertionSortingPropertiesList()
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Builder addAllInsertionSortingPropertiesValue(java.lang.Iterable< java.lang.Integer > values)
static com.google.ortools.constraintsolver.LocalCheapestInsertionParameters parseDelimitedFrom(java.io.InputStream input)
static com.google.ortools.constraintsolver.LocalCheapestInsertionParameters parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.constraintsolver.LocalCheapestInsertionParameters parseFrom(java.io.InputStream input)
static com.google.ortools.constraintsolver.LocalCheapestInsertionParameters parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.constraintsolver.LocalCheapestInsertionParameters getDefaultInstance()
com.google.ortools.constraintsolver.LocalCheapestInsertionParameters getDefaultInstanceForType()
static com.google.ortools.constraintsolver.LocalCheapestInsertionParameters parseFrom(com.google.protobuf.CodedInputStream input)
com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.PairInsertionStrategy getPickupDeliveryStrategy()
static com.google.ortools.constraintsolver.LocalCheapestInsertionParameters parseFrom(com.google.protobuf.ByteString data)
com.google.protobuf.Parser< LocalCheapestInsertionParameters > getParserForType()
java.util.List< com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.InsertionSortingProperty > getInsertionSortingPropertiesList()
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
static com.google.ortools.constraintsolver.LocalCheapestInsertionParameters parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser< LocalCheapestInsertionParameters > parser()
static com.google.ortools.constraintsolver.LocalCheapestInsertionParameters parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.constraintsolver.LocalCheapestInsertionParameters parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
static Builder newBuilder(com.google.ortools.constraintsolver.LocalCheapestInsertionParameters prototype)
static com.google.ortools.constraintsolver.LocalCheapestInsertionParameters parseFrom(byte[] data)
com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.InsertionSortingProperty getInsertionSortingProperties(int index)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
static com.google.ortools.constraintsolver.LocalCheapestInsertionParameters parseFrom(java.nio.ByteBuffer data)
static com.google.ortools.constraintsolver.LocalCheapestInsertionParameters parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Internal.EnumLiteMap< InsertionSortingProperty > internalGetValueMap()
static InsertionSortingProperty valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
static PairInsertionStrategy valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
static com.google.protobuf.Internal.EnumLiteMap< PairInsertionStrategy > internalGetValueMap()