Class SetCoverSolutionResponse

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.ortools.algorithms.SetCoverSolutionResponse
All Implemented Interfaces:
SetCoverSolutionResponseOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

public final class SetCoverSolutionResponse extends com.google.protobuf.GeneratedMessage implements SetCoverSolutionResponseOrBuilder
Protobuf type operations_research.SetCoverSolutionResponse
See Also:
  • Field Details

    • STATUS_FIELD_NUMBER

      public static final int STATUS_FIELD_NUMBER
      See Also:
    • NUM_SUBSETS_FIELD_NUMBER

      public static final int NUM_SUBSETS_FIELD_NUMBER
      See Also:
    • SUBSET_FIELD_NUMBER

      public static final int SUBSET_FIELD_NUMBER
      See Also:
    • COST_FIELD_NUMBER

      public static final int COST_FIELD_NUMBER
      See Also:
    • COST_LOWER_BOUND_FIELD_NUMBER

      public static final int COST_LOWER_BOUND_FIELD_NUMBER
      See Also:
    • FINGERPRINT_FIELD_NUMBER

      public static final int FINGERPRINT_FIELD_NUMBER
      See Also:
    • MODEL_FINGERPRINT_FIELD_NUMBER

      public static final int MODEL_FINGERPRINT_FIELD_NUMBER
      See Also:
  • 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
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static SetCoverSolutionResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SetCoverSolutionResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SetCoverSolutionResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SetCoverSolutionResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SetCoverSolutionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SetCoverSolutionResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SetCoverSolutionResponse parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SetCoverSolutionResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static SetCoverSolutionResponse parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static SetCoverSolutionResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SetCoverSolutionResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SetCoverSolutionResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static SetCoverSolutionResponse.Builder newBuilder()
    • newBuilder

      public static SetCoverSolutionResponse.Builder newBuilder(SetCoverSolutionResponse prototype)
    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected SetCoverSolutionResponse.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static SetCoverSolutionResponse getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<SetCoverSolutionResponse> parser()
    • getParserForType

      public com.google.protobuf.Parser<SetCoverSolutionResponse> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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