Package com.google.ortools.algorithms
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 Summary
Modifier and TypeMethodDescriptionaddAllSubset(Iterable<? extends Integer> values) The list of the subsets selected in the solution.addSubset(int value) The list of the subsets selected in the solution.build()clear()The cost of the solution, as computed by the algorithm.A lower bound of the solution, as computed by the algorithm.An automatically fingerprint for the solution.A reference to the model the solution applies to.The number of subsets that are selected in the solution.For future use.The list of the subsets selected in the solution.doublegetCost()The cost of the solution, as computed by the algorithm.doubleA lower bound of the solution, as computed by the algorithm.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorAn automatically fingerprint for the solution.An 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.A reference to the model the solution applies to.intThe number of subsets that are selected in the solution.For 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.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 booleanmergeFingerprint(Int128 value) An automatically fingerprint for the solution.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeModelFingerprint(Int128 value) A reference to the model the solution applies to.setCost(double value) The cost of the solution, as computed by the algorithm.setCostLowerBound(double value) A lower bound of the solution, as computed by the algorithm.setFingerprint(Int128 value) An automatically fingerprint for the solution.setFingerprint(Int128.Builder builderForValue) An automatically fingerprint for the solution.setModelFingerprint(Int128 value) A reference to the model the solution applies to.setModelFingerprint(Int128.Builder builderForValue) A reference to the model the solution applies to.setNumSubsets(int value) The number of subsets that are selected in the solution.For future use.setStatusValue(int value) For future use.setSubset(int index, int value) The list of the subsets selected in the solution.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 java.lang.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<SetCoverSolutionResponse.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<SetCoverSolutionResponse.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<SetCoverSolutionResponse.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<SetCoverSolutionResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
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.
-
setStatusValue
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
For future use. TODO(user): Implement.
optional .operations_research.SetCoverSolutionResponse.Status status = 1;- Specified by:
getStatusin interfaceSetCoverSolutionResponseOrBuilder- 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
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:
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.
-
setNumSubsets
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
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
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.
-
setSubset
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
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
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
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:
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.
-
setCost
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:
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.
-
setCostLowerBound
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
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:
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.
-
setFingerprint
An automatically fingerprint for the solution. TODO(user): Implement.
optional .operations_research.Int128 fingerprint = 6; -
setFingerprint
An automatically fingerprint for the solution. TODO(user): Implement.
optional .operations_research.Int128 fingerprint = 6; -
mergeFingerprint
An automatically fingerprint for the solution. TODO(user): Implement.
optional .operations_research.Int128 fingerprint = 6; -
clearFingerprint
An automatically fingerprint for the solution. TODO(user): Implement.
optional .operations_research.Int128 fingerprint = 6; -
getFingerprintBuilder
An automatically fingerprint for the solution. TODO(user): Implement.
optional .operations_research.Int128 fingerprint = 6; -
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.
-
setModelFingerprint
A reference to the model the solution applies to. TODO(user): Implement.
optional .operations_research.Int128 model_fingerprint = 7; -
setModelFingerprint
A reference to the model the solution applies to. TODO(user): Implement.
optional .operations_research.Int128 model_fingerprint = 7; -
mergeModelFingerprint
A reference to the model the solution applies to. TODO(user): Implement.
optional .operations_research.Int128 model_fingerprint = 7; -
clearModelFingerprint
A reference to the model the solution applies to. TODO(user): Implement.
optional .operations_research.Int128 model_fingerprint = 7; -
getModelFingerprintBuilder
A reference to the model the solution applies to. TODO(user): Implement.
optional .operations_research.Int128 model_fingerprint = 7; -
getModelFingerprintOrBuilder
A reference to the model the solution applies to. TODO(user): Implement.
optional .operations_research.Int128 model_fingerprint = 7;- Specified by:
getModelFingerprintOrBuilderin interfaceSetCoverSolutionResponseOrBuilder
-