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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<LocalCheapestInsertionParameters.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<LocalCheapestInsertionParameters.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<LocalCheapestInsertionParameters.Builder>
    • getDefaultInstanceForType

      public LocalCheapestInsertionParameters getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public LocalCheapestInsertionParameters buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public LocalCheapestInsertionParameters.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<LocalCheapestInsertionParameters.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      getPickupDeliveryStrategyValue in interface LocalCheapestInsertionParametersOrBuilder
      Returns:
      The enum numeric value on the wire for pickupDeliveryStrategy.
    • setPickupDeliveryStrategyValue

      public LocalCheapestInsertionParameters.Builder setPickupDeliveryStrategyValue(int 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 enum numeric value on the wire for pickupDeliveryStrategy to set.
      Returns:
      This builder for chaining.
    • getPickupDeliveryStrategy

      public LocalCheapestInsertionParameters.PairInsertionStrategy 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:
      getPickupDeliveryStrategy in interface LocalCheapestInsertionParametersOrBuilder
      Returns:
      The pickupDeliveryStrategy.
    • setPickupDeliveryStrategy

      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

      public LocalCheapestInsertionParameters.Builder 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:
      getInsertionSortingPropertiesList in interface LocalCheapestInsertionParametersOrBuilder
      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:
      getInsertionSortingPropertiesCount in interface LocalCheapestInsertionParametersOrBuilder
      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:
      getInsertionSortingProperties in interface LocalCheapestInsertionParametersOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The insertionSortingProperties at the given index.
    • setInsertionSortingProperties

      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

      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

      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

      public LocalCheapestInsertionParameters.Builder 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

      public List<Integer> 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:
      getInsertionSortingPropertiesValueList in interface LocalCheapestInsertionParametersOrBuilder
      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:
      getInsertionSortingPropertiesValue in interface LocalCheapestInsertionParametersOrBuilder
      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

      public LocalCheapestInsertionParameters.Builder addInsertionSortingPropertiesValue(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:
      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.