Class SetCoverSolutionResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SetCoverSolutionResponse.Builder>
com.google.ortools.algorithms.SetCoverSolutionResponse.Builder
All Implemented Interfaces:
SetCoverSolutionResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SetCoverSolutionResponse

public static final class SetCoverSolutionResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<SetCoverSolutionResponse.Builder> implements SetCoverSolutionResponseOrBuilder
Protobuf type operations_research.SetCoverSolutionResponse
  • 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<SetCoverSolutionResponse.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<SetCoverSolutionResponse.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<SetCoverSolutionResponse.Builder>
    • getDefaultInstanceForType

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

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

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

      public SetCoverSolutionResponse.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<SetCoverSolutionResponse.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<SetCoverSolutionResponse.Builder>
    • mergeFrom

      public SetCoverSolutionResponse.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<SetCoverSolutionResponse.Builder>
      Throws:
      IOException
    • hasStatus

      public boolean hasStatus()
       For future use. TODO(user): Implement.
       
      optional .operations_research.SetCoverSolutionResponse.Status status = 1;
      Specified by:
      hasStatus in interface SetCoverSolutionResponseOrBuilder
      Returns:
      Whether the status field is set.
    • getStatusValue

      public int getStatusValue()
       For future use. TODO(user): Implement.
       
      optional .operations_research.SetCoverSolutionResponse.Status status = 1;
      Specified by:
      getStatusValue in interface SetCoverSolutionResponseOrBuilder
      Returns:
      The enum numeric value on the wire for status.
    • setStatusValue

      public SetCoverSolutionResponse.Builder setStatusValue(int value)
       For future use. TODO(user): Implement.
       
      optional .operations_research.SetCoverSolutionResponse.Status status = 1;
      Parameters:
      value - The enum numeric value on the wire for status to set.
      Returns:
      This builder for chaining.
    • getStatus

      public SetCoverSolutionResponse.Status getStatus()
       For future use. TODO(user): Implement.
       
      optional .operations_research.SetCoverSolutionResponse.Status status = 1;
      Specified by:
      getStatus in interface SetCoverSolutionResponseOrBuilder
      Returns:
      The status.
    • setStatus

       For future use. TODO(user): Implement.
       
      optional .operations_research.SetCoverSolutionResponse.Status status = 1;
      Parameters:
      value - The status to set.
      Returns:
      This builder for chaining.
    • clearStatus

      public SetCoverSolutionResponse.Builder clearStatus()
       For future use. TODO(user): Implement.
       
      optional .operations_research.SetCoverSolutionResponse.Status status = 1;
      Returns:
      This builder for chaining.
    • hasNumSubsets

      public boolean hasNumSubsets()
       The number of subsets that are selected in the solution. This is used
       to decompress their indices below.
       
      optional int32 num_subsets = 2;
      Specified by:
      hasNumSubsets in interface SetCoverSolutionResponseOrBuilder
      Returns:
      Whether the numSubsets field is set.
    • getNumSubsets

      public int getNumSubsets()
       The number of subsets that are selected in the solution. This is used
       to decompress their indices below.
       
      optional int32 num_subsets = 2;
      Specified by:
      getNumSubsets in interface SetCoverSolutionResponseOrBuilder
      Returns:
      The numSubsets.
    • setNumSubsets

      public SetCoverSolutionResponse.Builder setNumSubsets(int value)
       The number of subsets that are selected in the solution. This is used
       to decompress their indices below.
       
      optional int32 num_subsets = 2;
      Parameters:
      value - The numSubsets to set.
      Returns:
      This builder for chaining.
    • clearNumSubsets

      public SetCoverSolutionResponse.Builder clearNumSubsets()
       The number of subsets that are selected in the solution. This is used
       to decompress their indices below.
       
      optional int32 num_subsets = 2;
      Returns:
      This builder for chaining.
    • getSubsetList

      public List<Integer> getSubsetList()
       The list of the subsets selected in the solution.
       
      repeated int32 subset = 3 [packed = true];
      Specified by:
      getSubsetList in interface SetCoverSolutionResponseOrBuilder
      Returns:
      A list containing the subset.
    • getSubsetCount

      public int getSubsetCount()
       The list of the subsets selected in the solution.
       
      repeated int32 subset = 3 [packed = true];
      Specified by:
      getSubsetCount in interface SetCoverSolutionResponseOrBuilder
      Returns:
      The count of subset.
    • getSubset

      public int getSubset(int index)
       The list of the subsets selected in the solution.
       
      repeated int32 subset = 3 [packed = true];
      Specified by:
      getSubset in interface SetCoverSolutionResponseOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The subset at the given index.
    • setSubset

      public SetCoverSolutionResponse.Builder setSubset(int index, int value)
       The list of the subsets selected in the solution.
       
      repeated int32 subset = 3 [packed = true];
      Parameters:
      index - The index to set the value at.
      value - The subset to set.
      Returns:
      This builder for chaining.
    • addSubset

      public SetCoverSolutionResponse.Builder addSubset(int value)
       The list of the subsets selected in the solution.
       
      repeated int32 subset = 3 [packed = true];
      Parameters:
      value - The subset to add.
      Returns:
      This builder for chaining.
    • addAllSubset

      public SetCoverSolutionResponse.Builder addAllSubset(Iterable<? extends Integer> values)
       The list of the subsets selected in the solution.
       
      repeated int32 subset = 3 [packed = true];
      Parameters:
      values - The subset to add.
      Returns:
      This builder for chaining.
    • clearSubset

      public SetCoverSolutionResponse.Builder clearSubset()
       The list of the subsets selected in the solution.
       
      repeated int32 subset = 3 [packed = true];
      Returns:
      This builder for chaining.
    • hasCost

      public boolean hasCost()
       The cost of the solution, as computed by the algorithm.
       
      optional double cost = 4;
      Specified by:
      hasCost in interface SetCoverSolutionResponseOrBuilder
      Returns:
      Whether the cost field is set.
    • getCost

      public double getCost()
       The cost of the solution, as computed by the algorithm.
       
      optional double cost = 4;
      Specified by:
      getCost in interface SetCoverSolutionResponseOrBuilder
      Returns:
      The cost.
    • setCost

      public SetCoverSolutionResponse.Builder setCost(double value)
       The cost of the solution, as computed by the algorithm.
       
      optional double cost = 4;
      Parameters:
      value - The cost to set.
      Returns:
      This builder for chaining.
    • clearCost

       The cost of the solution, as computed by the algorithm.
       
      optional double cost = 4;
      Returns:
      This builder for chaining.
    • hasCostLowerBound

      public boolean hasCostLowerBound()
       A lower bound of the solution, as computed by the algorithm.
       
      optional double cost_lower_bound = 5;
      Specified by:
      hasCostLowerBound in interface SetCoverSolutionResponseOrBuilder
      Returns:
      Whether the costLowerBound field is set.
    • getCostLowerBound

      public double getCostLowerBound()
       A lower bound of the solution, as computed by the algorithm.
       
      optional double cost_lower_bound = 5;
      Specified by:
      getCostLowerBound in interface SetCoverSolutionResponseOrBuilder
      Returns:
      The costLowerBound.
    • setCostLowerBound

      public SetCoverSolutionResponse.Builder setCostLowerBound(double value)
       A lower bound of the solution, as computed by the algorithm.
       
      optional double cost_lower_bound = 5;
      Parameters:
      value - The costLowerBound to set.
      Returns:
      This builder for chaining.
    • clearCostLowerBound

      public SetCoverSolutionResponse.Builder clearCostLowerBound()
       A lower bound of the solution, as computed by the algorithm.
       
      optional double cost_lower_bound = 5;
      Returns:
      This builder for chaining.
    • hasFingerprint

      public boolean hasFingerprint()
       An automatically fingerprint for the solution. TODO(user): Implement.
       
      optional .operations_research.Int128 fingerprint = 6;
      Specified by:
      hasFingerprint in interface SetCoverSolutionResponseOrBuilder
      Returns:
      Whether the fingerprint field is set.
    • getFingerprint

      public Int128 getFingerprint()
       An automatically fingerprint for the solution. TODO(user): Implement.
       
      optional .operations_research.Int128 fingerprint = 6;
      Specified by:
      getFingerprint in interface SetCoverSolutionResponseOrBuilder
      Returns:
      The fingerprint.
    • setFingerprint

      public SetCoverSolutionResponse.Builder setFingerprint(Int128 value)
       An automatically fingerprint for the solution. TODO(user): Implement.
       
      optional .operations_research.Int128 fingerprint = 6;
    • setFingerprint

      public SetCoverSolutionResponse.Builder setFingerprint(Int128.Builder builderForValue)
       An automatically fingerprint for the solution. TODO(user): Implement.
       
      optional .operations_research.Int128 fingerprint = 6;
    • mergeFingerprint

      public SetCoverSolutionResponse.Builder mergeFingerprint(Int128 value)
       An automatically fingerprint for the solution. TODO(user): Implement.
       
      optional .operations_research.Int128 fingerprint = 6;
    • clearFingerprint

      public SetCoverSolutionResponse.Builder clearFingerprint()
       An automatically fingerprint for the solution. TODO(user): Implement.
       
      optional .operations_research.Int128 fingerprint = 6;
    • getFingerprintBuilder

      public Int128.Builder getFingerprintBuilder()
       An automatically fingerprint for the solution. TODO(user): Implement.
       
      optional .operations_research.Int128 fingerprint = 6;
    • getFingerprintOrBuilder

      public Int128OrBuilder getFingerprintOrBuilder()
       An automatically fingerprint for the solution. TODO(user): Implement.
       
      optional .operations_research.Int128 fingerprint = 6;
      Specified by:
      getFingerprintOrBuilder in interface SetCoverSolutionResponseOrBuilder
    • hasModelFingerprint

      public boolean hasModelFingerprint()
       A reference to the model the solution applies to. TODO(user): Implement.
       
      optional .operations_research.Int128 model_fingerprint = 7;
      Specified by:
      hasModelFingerprint in interface SetCoverSolutionResponseOrBuilder
      Returns:
      Whether the modelFingerprint field is set.
    • getModelFingerprint

      public Int128 getModelFingerprint()
       A reference to the model the solution applies to. TODO(user): Implement.
       
      optional .operations_research.Int128 model_fingerprint = 7;
      Specified by:
      getModelFingerprint in interface SetCoverSolutionResponseOrBuilder
      Returns:
      The modelFingerprint.
    • setModelFingerprint

      public SetCoverSolutionResponse.Builder setModelFingerprint(Int128 value)
       A reference to the model the solution applies to. TODO(user): Implement.
       
      optional .operations_research.Int128 model_fingerprint = 7;
    • setModelFingerprint

      public SetCoverSolutionResponse.Builder setModelFingerprint(Int128.Builder builderForValue)
       A reference to the model the solution applies to. TODO(user): Implement.
       
      optional .operations_research.Int128 model_fingerprint = 7;
    • mergeModelFingerprint

      public SetCoverSolutionResponse.Builder mergeModelFingerprint(Int128 value)
       A reference to the model the solution applies to. TODO(user): Implement.
       
      optional .operations_research.Int128 model_fingerprint = 7;
    • clearModelFingerprint

      public SetCoverSolutionResponse.Builder clearModelFingerprint()
       A reference to the model the solution applies to. TODO(user): Implement.
       
      optional .operations_research.Int128 model_fingerprint = 7;
    • getModelFingerprintBuilder

      public Int128.Builder getModelFingerprintBuilder()
       A reference to the model the solution applies to. TODO(user): Implement.
       
      optional .operations_research.Int128 model_fingerprint = 7;
    • getModelFingerprintOrBuilder

      public Int128OrBuilder getModelFingerprintOrBuilder()
       A reference to the model the solution applies to. TODO(user): Implement.
       
      optional .operations_research.Int128 model_fingerprint = 7;
      Specified by:
      getModelFingerprintOrBuilder in interface SetCoverSolutionResponseOrBuilder