Package com.google.ortools.algorithms
Class SetCoverProto.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SetCoverProto.Builder>
com.google.ortools.algorithms.SetCoverProto.Builder
- All Implemented Interfaces:
SetCoverProtoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SetCoverProto
public static final class SetCoverProto.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SetCoverProto.Builder>
implements SetCoverProtoOrBuilder
TODO(user): use uint64 instead of int32 for indices, as the solver supports it.Protobuf type
operations_research.SetCoverProto-
Method Summary
Modifier and TypeMethodDescriptionaddAllSubset(Iterable<? extends SetCoverProto.Subset> values) The list of subsets in the model.addSubset(int index, SetCoverProto.Subset value) The list of subsets in the model.addSubset(int index, SetCoverProto.Subset.Builder builderForValue) The list of subsets in the model.addSubset(SetCoverProto.Subset value) The list of subsets in the model.addSubset(SetCoverProto.Subset.Builder builderForValue) The list of subsets in the model.The list of subsets in the model.addSubsetBuilder(int index) The list of subsets in the model.build()clear()An automatically fingerprint for the model.A user-defined name for the model.The list of subsets in the model.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorAn automatically fingerprint for the model.An automatically fingerprint for the model.An automatically fingerprint for the model.getName()A user-defined name for the model.com.google.protobuf.ByteStringA user-defined name for the model.getSubset(int index) The list of subsets in the model.getSubsetBuilder(int index) The list of subsets in the model.The list of subsets in the model.intThe list of subsets in the model.The list of subsets in the model.getSubsetOrBuilder(int index) The list of subsets in the model.List<? extends SetCoverProto.SubsetOrBuilder>The list of subsets in the model.booleanAn automatically fingerprint for the model.booleanhasName()A user-defined name for the model.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFingerprint(Int128 value) An automatically fingerprint for the model.mergeFrom(SetCoverProto other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeSubset(int index) The list of subsets in the model.setFingerprint(Int128 value) An automatically fingerprint for the model.setFingerprint(Int128.Builder builderForValue) An automatically fingerprint for the model.A user-defined name for the model.setNameBytes(com.google.protobuf.ByteString value) A user-defined name for the model.setSubset(int index, SetCoverProto.Subset value) The list of subsets in the model.setSubset(int index, SetCoverProto.Subset.Builder builderForValue) The list of subsets in the model.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<SetCoverProto.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<SetCoverProto.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<SetCoverProto.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<SetCoverProto.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SetCoverProto.Builder>
-
mergeFrom
public SetCoverProto.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<SetCoverProto.Builder>- Throws:
IOException
-
getSubsetList
The list of subsets in the model.
repeated .operations_research.SetCoverProto.Subset subset = 1;- Specified by:
getSubsetListin interfaceSetCoverProtoOrBuilder
-
getSubsetCount
public int getSubsetCount()The list of subsets in the model.
repeated .operations_research.SetCoverProto.Subset subset = 1;- Specified by:
getSubsetCountin interfaceSetCoverProtoOrBuilder
-
getSubset
The list of subsets in the model.
repeated .operations_research.SetCoverProto.Subset subset = 1;- Specified by:
getSubsetin interfaceSetCoverProtoOrBuilder
-
setSubset
The list of subsets in the model.
repeated .operations_research.SetCoverProto.Subset subset = 1; -
setSubset
The list of subsets in the model.
repeated .operations_research.SetCoverProto.Subset subset = 1; -
addSubset
The list of subsets in the model.
repeated .operations_research.SetCoverProto.Subset subset = 1; -
addSubset
The list of subsets in the model.
repeated .operations_research.SetCoverProto.Subset subset = 1; -
addSubset
The list of subsets in the model.
repeated .operations_research.SetCoverProto.Subset subset = 1; -
addSubset
The list of subsets in the model.
repeated .operations_research.SetCoverProto.Subset subset = 1; -
addAllSubset
The list of subsets in the model.
repeated .operations_research.SetCoverProto.Subset subset = 1; -
clearSubset
The list of subsets in the model.
repeated .operations_research.SetCoverProto.Subset subset = 1; -
removeSubset
The list of subsets in the model.
repeated .operations_research.SetCoverProto.Subset subset = 1; -
getSubsetBuilder
The list of subsets in the model.
repeated .operations_research.SetCoverProto.Subset subset = 1; -
getSubsetOrBuilder
The list of subsets in the model.
repeated .operations_research.SetCoverProto.Subset subset = 1;- Specified by:
getSubsetOrBuilderin interfaceSetCoverProtoOrBuilder
-
getSubsetOrBuilderList
The list of subsets in the model.
repeated .operations_research.SetCoverProto.Subset subset = 1;- Specified by:
getSubsetOrBuilderListin interfaceSetCoverProtoOrBuilder
-
addSubsetBuilder
The list of subsets in the model.
repeated .operations_research.SetCoverProto.Subset subset = 1; -
addSubsetBuilder
The list of subsets in the model.
repeated .operations_research.SetCoverProto.Subset subset = 1; -
getSubsetBuilderList
The list of subsets in the model.
repeated .operations_research.SetCoverProto.Subset subset = 1; -
hasName
public boolean hasName()A user-defined name for the model.
optional string name = 2;- Specified by:
hasNamein interfaceSetCoverProtoOrBuilder- Returns:
- Whether the name field is set.
-
getName
A user-defined name for the model.
optional string name = 2;- Specified by:
getNamein interfaceSetCoverProtoOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()A user-defined name for the model.
optional string name = 2;- Specified by:
getNameBytesin interfaceSetCoverProtoOrBuilder- Returns:
- The bytes for name.
-
setName
A user-defined name for the model.
optional string name = 2;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
A user-defined name for the model.
optional string name = 2;- Returns:
- This builder for chaining.
-
setNameBytes
A user-defined name for the model.
optional string name = 2;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasFingerprint
public boolean hasFingerprint()An automatically fingerprint for the model. TODO(user): Implement.
optional .operations_research.Int128 fingerprint = 3;- Specified by:
hasFingerprintin interfaceSetCoverProtoOrBuilder- Returns:
- Whether the fingerprint field is set.
-
getFingerprint
An automatically fingerprint for the model. TODO(user): Implement.
optional .operations_research.Int128 fingerprint = 3;- Specified by:
getFingerprintin interfaceSetCoverProtoOrBuilder- Returns:
- The fingerprint.
-
setFingerprint
An automatically fingerprint for the model. TODO(user): Implement.
optional .operations_research.Int128 fingerprint = 3; -
setFingerprint
An automatically fingerprint for the model. TODO(user): Implement.
optional .operations_research.Int128 fingerprint = 3; -
mergeFingerprint
An automatically fingerprint for the model. TODO(user): Implement.
optional .operations_research.Int128 fingerprint = 3; -
clearFingerprint
An automatically fingerprint for the model. TODO(user): Implement.
optional .operations_research.Int128 fingerprint = 3; -
getFingerprintBuilder
An automatically fingerprint for the model. TODO(user): Implement.
optional .operations_research.Int128 fingerprint = 3; -
getFingerprintOrBuilder
An automatically fingerprint for the model. TODO(user): Implement.
optional .operations_research.Int128 fingerprint = 3;- Specified by:
getFingerprintOrBuilderin interfaceSetCoverProtoOrBuilder
-