Package com.google.ortools.algorithms
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typeoperations_research.SetCoverSolutionResponsestatic enumResult of the optimization.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleandoublegetCost()The cost of the solution, as computed by the algorithm.doubleA lower bound of the solution, as computed by the algorithm.static SetCoverSolutionResponsestatic final com.google.protobuf.Descriptors.DescriptorAn automatically fingerprint for the solution.An automatically fingerprint for the solution.A reference to the model the solution applies to.A reference to the model the solution applies to.intThe number of subsets that are selected in the solution.com.google.protobuf.Parser<SetCoverSolutionResponse>intFor future use.intFor future use.intgetSubset(int index) The list of the subsets selected in the solution.intThe list of the subsets selected in the solution.The list of the subsets selected in the solution.booleanhasCost()The cost of the solution, as computed by the algorithm.booleanA lower bound of the solution, as computed by the algorithm.booleanAn automatically fingerprint for the solution.inthashCode()booleanA reference to the model the solution applies to.booleanThe number of subsets that are selected in the solution.booleanFor future use.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(SetCoverSolutionResponse prototype) protected SetCoverSolutionResponse.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static SetCoverSolutionResponseparseDelimitedFrom(InputStream input) static SetCoverSolutionResponseparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SetCoverSolutionResponseparseFrom(byte[] data) static SetCoverSolutionResponseparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SetCoverSolutionResponseparseFrom(com.google.protobuf.ByteString data) static SetCoverSolutionResponseparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SetCoverSolutionResponseparseFrom(com.google.protobuf.CodedInputStream input) static SetCoverSolutionResponseparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SetCoverSolutionResponseparseFrom(InputStream input) static SetCoverSolutionResponseparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SetCoverSolutionResponseparseFrom(ByteBuffer data) static SetCoverSolutionResponseparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<SetCoverSolutionResponse>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
hasStatus
public boolean hasStatus()For future use. TODO(user): Implement.
optional .operations_research.SetCoverSolutionResponse.Status status = 1;- Specified by:
hasStatusin interfaceSetCoverSolutionResponseOrBuilder- 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:
getStatusValuein interfaceSetCoverSolutionResponseOrBuilder- Returns:
- The enum numeric value on the wire for status.
-
getStatus
For future use. TODO(user): Implement.
optional .operations_research.SetCoverSolutionResponse.Status status = 1;- Specified by:
getStatusin interfaceSetCoverSolutionResponseOrBuilder- 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:
hasNumSubsetsin interfaceSetCoverSolutionResponseOrBuilder- 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:
getNumSubsetsin interfaceSetCoverSolutionResponseOrBuilder- Returns:
- The numSubsets.
-
getSubsetList
The list of the subsets selected in the solution.
repeated int32 subset = 3 [packed = true];- Specified by:
getSubsetListin interfaceSetCoverSolutionResponseOrBuilder- 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:
getSubsetCountin interfaceSetCoverSolutionResponseOrBuilder- 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:
getSubsetin interfaceSetCoverSolutionResponseOrBuilder- 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:
hasCostin interfaceSetCoverSolutionResponseOrBuilder- 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:
getCostin interfaceSetCoverSolutionResponseOrBuilder- 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:
hasCostLowerBoundin interfaceSetCoverSolutionResponseOrBuilder- 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:
getCostLowerBoundin interfaceSetCoverSolutionResponseOrBuilder- Returns:
- The costLowerBound.
-
hasFingerprint
public boolean hasFingerprint()An automatically fingerprint for the solution. TODO(user): Implement.
optional .operations_research.Int128 fingerprint = 6;- Specified by:
hasFingerprintin interfaceSetCoverSolutionResponseOrBuilder- Returns:
- Whether the fingerprint field is set.
-
getFingerprint
An automatically fingerprint for the solution. TODO(user): Implement.
optional .operations_research.Int128 fingerprint = 6;- Specified by:
getFingerprintin interfaceSetCoverSolutionResponseOrBuilder- Returns:
- The fingerprint.
-
getFingerprintOrBuilder
An automatically fingerprint for the solution. TODO(user): Implement.
optional .operations_research.Int128 fingerprint = 6;- Specified by:
getFingerprintOrBuilderin interfaceSetCoverSolutionResponseOrBuilder
-
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:
hasModelFingerprintin interfaceSetCoverSolutionResponseOrBuilder- Returns:
- Whether the modelFingerprint field is set.
-
getModelFingerprint
A reference to the model the solution applies to. TODO(user): Implement.
optional .operations_research.Int128 model_fingerprint = 7;- Specified by:
getModelFingerprintin interfaceSetCoverSolutionResponseOrBuilder- Returns:
- The modelFingerprint.
-
getModelFingerprintOrBuilder
A reference to the model the solution applies to. TODO(user): Implement.
optional .operations_research.Int128 model_fingerprint = 7;- Specified by:
getModelFingerprintOrBuilderin interfaceSetCoverSolutionResponseOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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
- Throws:
IOException
-
parseFrom
public static SetCoverSolutionResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected SetCoverSolutionResponse.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-