Class LocalCheapestInsertionParameters.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<LocalCheapestInsertionParameters.Builder>
com.google.protobuf.GeneratedMessage.Builder<LocalCheapestInsertionParameters.Builder>
com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.Builder
- All Implemented Interfaces:
LocalCheapestInsertionParametersOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
- Enclosing class:
LocalCheapestInsertionParameters
public static final class LocalCheapestInsertionParameters.Builder
extends com.google.protobuf.GeneratedMessage.Builder<LocalCheapestInsertionParameters.Builder>
implements LocalCheapestInsertionParametersOrBuilder
Parameters used to configure local cheapest insertion heuristics.Protobuf type
operations_research.LocalCheapestInsertionParameters-
Method Summary
Modifier and TypeMethodDescriptionaddAllInsertionSortingProperties(Iterable<? extends LocalCheapestInsertionParameters.InsertionSortingProperty> values) The properties used to sort insertion entries in the local cheapest insertion heuristic, in *decreasing* order of priority.The properties used to sort insertion entries in the local cheapest insertion heuristic, in *decreasing* order of priority.The properties used to sort insertion entries in the local cheapest insertion heuristic, in *decreasing* order of priority.addInsertionSortingPropertiesValue(int value) The properties used to sort insertion entries in the local cheapest insertion heuristic, in *decreasing* order of priority.build()clear()The properties used to sort insertion entries in the local cheapest insertion heuristic, in *decreasing* order of priority.Choice of insertion strategy for pickup/delivery pairs, used in local cheapest insertion, both first solution heuristic and LNS.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetInsertionSortingProperties(int index) The properties used to sort insertion entries in the local cheapest insertion heuristic, in *decreasing* order of priority.intThe properties used to sort insertion entries in the local cheapest insertion heuristic, in *decreasing* order of priority.The properties used to sort insertion entries in the local cheapest insertion heuristic, in *decreasing* order of priority.intgetInsertionSortingPropertiesValue(int index) The properties used to sort insertion entries in the local cheapest insertion heuristic, in *decreasing* order of priority.The properties used to sort insertion entries in the local cheapest insertion heuristic, in *decreasing* order of priority.Choice of insertion strategy for pickup/delivery pairs, used in local cheapest insertion, both first solution heuristic and LNS.intChoice of insertion strategy for pickup/delivery pairs, used in local cheapest insertion, both first solution heuristic and LNS.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setInsertionSortingProperties(int index, LocalCheapestInsertionParameters.InsertionSortingProperty value) The properties used to sort insertion entries in the local cheapest insertion heuristic, in *decreasing* order of priority.setInsertionSortingPropertiesValue(int index, int value) The properties used to sort insertion entries in the local cheapest insertion heuristic, in *decreasing* order of priority.Choice of insertion strategy for pickup/delivery pairs, used in local cheapest insertion, both first solution heuristic and LNS.setPickupDeliveryStrategyValue(int value) Choice of insertion strategy for pickup/delivery pairs, used in local cheapest insertion, both first solution heuristic and LNS.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<LocalCheapestInsertionParameters.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<LocalCheapestInsertionParameters.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<LocalCheapestInsertionParameters.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LocalCheapestInsertionParameters.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<LocalCheapestInsertionParameters.Builder>
-
mergeFrom
public LocalCheapestInsertionParameters.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LocalCheapestInsertionParameters.Builder>- Throws:
IOException
-
getPickupDeliveryStrategyValue
public int getPickupDeliveryStrategyValue()Choice of insertion strategy for pickup/delivery pairs, used in local cheapest insertion, both first solution heuristic and LNS.
.operations_research.LocalCheapestInsertionParameters.PairInsertionStrategy pickup_delivery_strategy = 1;- Specified by:
getPickupDeliveryStrategyValuein interfaceLocalCheapestInsertionParametersOrBuilder- Returns:
- The enum numeric value on the wire for pickupDeliveryStrategy.
-
setPickupDeliveryStrategyValue
Choice of insertion strategy for pickup/delivery pairs, used in local cheapest insertion, both first solution heuristic and LNS.
.operations_research.LocalCheapestInsertionParameters.PairInsertionStrategy pickup_delivery_strategy = 1;- Parameters:
value- The enum numeric value on the wire for pickupDeliveryStrategy to set.- Returns:
- This builder for chaining.
-
getPickupDeliveryStrategy
Choice of insertion strategy for pickup/delivery pairs, used in local cheapest insertion, both first solution heuristic and LNS.
.operations_research.LocalCheapestInsertionParameters.PairInsertionStrategy pickup_delivery_strategy = 1;- Specified by:
getPickupDeliveryStrategyin interfaceLocalCheapestInsertionParametersOrBuilder- Returns:
- The pickupDeliveryStrategy.
-
setPickupDeliveryStrategy
public LocalCheapestInsertionParameters.Builder setPickupDeliveryStrategy(LocalCheapestInsertionParameters.PairInsertionStrategy value) Choice of insertion strategy for pickup/delivery pairs, used in local cheapest insertion, both first solution heuristic and LNS.
.operations_research.LocalCheapestInsertionParameters.PairInsertionStrategy pickup_delivery_strategy = 1;- Parameters:
value- The pickupDeliveryStrategy to set.- Returns:
- This builder for chaining.
-
clearPickupDeliveryStrategy
Choice of insertion strategy for pickup/delivery pairs, used in local cheapest insertion, both first solution heuristic and LNS.
.operations_research.LocalCheapestInsertionParameters.PairInsertionStrategy pickup_delivery_strategy = 1;- Returns:
- This builder for chaining.
-
getInsertionSortingPropertiesList
public List<LocalCheapestInsertionParameters.InsertionSortingProperty> getInsertionSortingPropertiesList()The properties used to sort insertion entries in the local cheapest insertion heuristic, in *decreasing* order of priority. The properties listed here are applied hierarchically, from highest to lowest priority. When no properties are provided (SORTING_PROPERTY_ALLOWED_VEHICLES, SORTING_PROPERTY_PENALTY) is used by default.
repeated .operations_research.LocalCheapestInsertionParameters.InsertionSortingProperty insertion_sorting_properties = 2;- Specified by:
getInsertionSortingPropertiesListin interfaceLocalCheapestInsertionParametersOrBuilder- Returns:
- A list containing the insertionSortingProperties.
-
getInsertionSortingPropertiesCount
public int getInsertionSortingPropertiesCount()The properties used to sort insertion entries in the local cheapest insertion heuristic, in *decreasing* order of priority. The properties listed here are applied hierarchically, from highest to lowest priority. When no properties are provided (SORTING_PROPERTY_ALLOWED_VEHICLES, SORTING_PROPERTY_PENALTY) is used by default.
repeated .operations_research.LocalCheapestInsertionParameters.InsertionSortingProperty insertion_sorting_properties = 2;- Specified by:
getInsertionSortingPropertiesCountin interfaceLocalCheapestInsertionParametersOrBuilder- Returns:
- The count of insertionSortingProperties.
-
getInsertionSortingProperties
public LocalCheapestInsertionParameters.InsertionSortingProperty getInsertionSortingProperties(int index) The properties used to sort insertion entries in the local cheapest insertion heuristic, in *decreasing* order of priority. The properties listed here are applied hierarchically, from highest to lowest priority. When no properties are provided (SORTING_PROPERTY_ALLOWED_VEHICLES, SORTING_PROPERTY_PENALTY) is used by default.
repeated .operations_research.LocalCheapestInsertionParameters.InsertionSortingProperty insertion_sorting_properties = 2;- Specified by:
getInsertionSortingPropertiesin interfaceLocalCheapestInsertionParametersOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The insertionSortingProperties at the given index.
-
setInsertionSortingProperties
public LocalCheapestInsertionParameters.Builder setInsertionSortingProperties(int index, LocalCheapestInsertionParameters.InsertionSortingProperty value) The properties used to sort insertion entries in the local cheapest insertion heuristic, in *decreasing* order of priority. The properties listed here are applied hierarchically, from highest to lowest priority. When no properties are provided (SORTING_PROPERTY_ALLOWED_VEHICLES, SORTING_PROPERTY_PENALTY) is used by default.
repeated .operations_research.LocalCheapestInsertionParameters.InsertionSortingProperty insertion_sorting_properties = 2;- Parameters:
index- The index to set the value at.value- The insertionSortingProperties to set.- Returns:
- This builder for chaining.
-
addInsertionSortingProperties
public LocalCheapestInsertionParameters.Builder addInsertionSortingProperties(LocalCheapestInsertionParameters.InsertionSortingProperty value) The properties used to sort insertion entries in the local cheapest insertion heuristic, in *decreasing* order of priority. The properties listed here are applied hierarchically, from highest to lowest priority. When no properties are provided (SORTING_PROPERTY_ALLOWED_VEHICLES, SORTING_PROPERTY_PENALTY) is used by default.
repeated .operations_research.LocalCheapestInsertionParameters.InsertionSortingProperty insertion_sorting_properties = 2;- Parameters:
value- The insertionSortingProperties to add.- Returns:
- This builder for chaining.
-
addAllInsertionSortingProperties
public LocalCheapestInsertionParameters.Builder addAllInsertionSortingProperties(Iterable<? extends LocalCheapestInsertionParameters.InsertionSortingProperty> values) The properties used to sort insertion entries in the local cheapest insertion heuristic, in *decreasing* order of priority. The properties listed here are applied hierarchically, from highest to lowest priority. When no properties are provided (SORTING_PROPERTY_ALLOWED_VEHICLES, SORTING_PROPERTY_PENALTY) is used by default.
repeated .operations_research.LocalCheapestInsertionParameters.InsertionSortingProperty insertion_sorting_properties = 2;- Parameters:
values- The insertionSortingProperties to add.- Returns:
- This builder for chaining.
-
clearInsertionSortingProperties
The properties used to sort insertion entries in the local cheapest insertion heuristic, in *decreasing* order of priority. The properties listed here are applied hierarchically, from highest to lowest priority. When no properties are provided (SORTING_PROPERTY_ALLOWED_VEHICLES, SORTING_PROPERTY_PENALTY) is used by default.
repeated .operations_research.LocalCheapestInsertionParameters.InsertionSortingProperty insertion_sorting_properties = 2;- Returns:
- This builder for chaining.
-
getInsertionSortingPropertiesValueList
The properties used to sort insertion entries in the local cheapest insertion heuristic, in *decreasing* order of priority. The properties listed here are applied hierarchically, from highest to lowest priority. When no properties are provided (SORTING_PROPERTY_ALLOWED_VEHICLES, SORTING_PROPERTY_PENALTY) is used by default.
repeated .operations_research.LocalCheapestInsertionParameters.InsertionSortingProperty insertion_sorting_properties = 2;- Specified by:
getInsertionSortingPropertiesValueListin interfaceLocalCheapestInsertionParametersOrBuilder- Returns:
- A list containing the enum numeric values on the wire for insertionSortingProperties.
-
getInsertionSortingPropertiesValue
public int getInsertionSortingPropertiesValue(int index) The properties used to sort insertion entries in the local cheapest insertion heuristic, in *decreasing* order of priority. The properties listed here are applied hierarchically, from highest to lowest priority. When no properties are provided (SORTING_PROPERTY_ALLOWED_VEHICLES, SORTING_PROPERTY_PENALTY) is used by default.
repeated .operations_research.LocalCheapestInsertionParameters.InsertionSortingProperty insertion_sorting_properties = 2;- Specified by:
getInsertionSortingPropertiesValuein interfaceLocalCheapestInsertionParametersOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of insertionSortingProperties at the given index.
-
setInsertionSortingPropertiesValue
public LocalCheapestInsertionParameters.Builder setInsertionSortingPropertiesValue(int index, int value) The properties used to sort insertion entries in the local cheapest insertion heuristic, in *decreasing* order of priority. The properties listed here are applied hierarchically, from highest to lowest priority. When no properties are provided (SORTING_PROPERTY_ALLOWED_VEHICLES, SORTING_PROPERTY_PENALTY) is used by default.
repeated .operations_research.LocalCheapestInsertionParameters.InsertionSortingProperty insertion_sorting_properties = 2;- Parameters:
index- The index to set the value at.value- The enum numeric value on the wire for insertionSortingProperties to set.- Returns:
- This builder for chaining.
-
addInsertionSortingPropertiesValue
The properties used to sort insertion entries in the local cheapest insertion heuristic, in *decreasing* order of priority. The properties listed here are applied hierarchically, from highest to lowest priority. When no properties are provided (SORTING_PROPERTY_ALLOWED_VEHICLES, SORTING_PROPERTY_PENALTY) is used by default.
repeated .operations_research.LocalCheapestInsertionParameters.InsertionSortingProperty insertion_sorting_properties = 2;- Parameters:
value- The enum numeric value on the wire for insertionSortingProperties to add.- Returns:
- This builder for chaining.
-
addAllInsertionSortingPropertiesValue
public LocalCheapestInsertionParameters.Builder addAllInsertionSortingPropertiesValue(Iterable<Integer> values) The properties used to sort insertion entries in the local cheapest insertion heuristic, in *decreasing* order of priority. The properties listed here are applied hierarchically, from highest to lowest priority. When no properties are provided (SORTING_PROPERTY_ALLOWED_VEHICLES, SORTING_PROPERTY_PENALTY) is used by default.
repeated .operations_research.LocalCheapestInsertionParameters.InsertionSortingProperty insertion_sorting_properties = 2;- Parameters:
values- The enum numeric values on the wire for insertionSortingProperties to add.- Returns:
- This builder for chaining.
-