public static final class SetCoverProto.Subset.Builder extends com.google.protobuf.GeneratedMessage.Builder<SetCoverProto.Subset.Builder> implements SetCoverProto.SubsetOrBuilder
operations_research.SetCoverProto.Subset| Modifier and Type | Method and Description |
|---|---|
SetCoverProto.Subset.Builder |
addAllElement(java.lang.Iterable<? extends java.lang.Integer> values)
The list of elements in the subset.
|
SetCoverProto.Subset.Builder |
addElement(int value)
The list of elements in the subset.
|
SetCoverProto.Subset |
build() |
SetCoverProto.Subset |
buildPartial() |
SetCoverProto.Subset.Builder |
clear() |
SetCoverProto.Subset.Builder |
clearCost()
The cost for using the given subset.
|
SetCoverProto.Subset.Builder |
clearElement()
The list of elements in the subset.
|
double |
getCost()
The cost for using the given subset.
|
SetCoverProto.Subset |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
int |
getElement(int index)
The list of elements in the subset.
|
int |
getElementCount()
The list of elements in the subset.
|
java.util.List<java.lang.Integer> |
getElementList()
The list of elements in the subset.
|
boolean |
hasCost()
The cost for using the given subset.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
SetCoverProto.Subset.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SetCoverProto.Subset.Builder |
mergeFrom(com.google.protobuf.Message other) |
SetCoverProto.Subset.Builder |
mergeFrom(SetCoverProto.Subset other) |
SetCoverProto.Subset.Builder |
setCost(double value)
The cost for using the given subset.
|
SetCoverProto.Subset.Builder |
setElement(int index,
int value)
The list of elements in the subset.
|
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, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<SetCoverProto.Subset.Builder>public SetCoverProto.Subset.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<SetCoverProto.Subset.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<SetCoverProto.Subset.Builder>public SetCoverProto.Subset getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SetCoverProto.Subset build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SetCoverProto.Subset buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SetCoverProto.Subset.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SetCoverProto.Subset.Builder>public SetCoverProto.Subset.Builder mergeFrom(SetCoverProto.Subset other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<SetCoverProto.Subset.Builder>public SetCoverProto.Subset.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SetCoverProto.Subset.Builder>java.io.IOExceptionpublic boolean hasCost()
The cost for using the given subset.
optional double cost = 1;hasCost in interface SetCoverProto.SubsetOrBuilderpublic double getCost()
The cost for using the given subset.
optional double cost = 1;getCost in interface SetCoverProto.SubsetOrBuilderpublic SetCoverProto.Subset.Builder setCost(double value)
The cost for using the given subset.
optional double cost = 1;value - The cost to set.public SetCoverProto.Subset.Builder clearCost()
The cost for using the given subset.
optional double cost = 1;public java.util.List<java.lang.Integer> getElementList()
The list of elements in the subset.
repeated int32 element = 2 [packed = true];getElementList in interface SetCoverProto.SubsetOrBuilderpublic int getElementCount()
The list of elements in the subset.
repeated int32 element = 2 [packed = true];getElementCount in interface SetCoverProto.SubsetOrBuilderpublic int getElement(int index)
The list of elements in the subset.
repeated int32 element = 2 [packed = true];getElement in interface SetCoverProto.SubsetOrBuilderindex - The index of the element to return.public SetCoverProto.Subset.Builder setElement(int index, int value)
The list of elements in the subset.
repeated int32 element = 2 [packed = true];index - The index to set the value at.value - The element to set.public SetCoverProto.Subset.Builder addElement(int value)
The list of elements in the subset.
repeated int32 element = 2 [packed = true];value - The element to add.public SetCoverProto.Subset.Builder addAllElement(java.lang.Iterable<? extends java.lang.Integer> values)
The list of elements in the subset.
repeated int32 element = 2 [packed = true];values - The element to add.public SetCoverProto.Subset.Builder clearElement()
The list of elements in the subset.
repeated int32 element = 2 [packed = true];Copyright © 2024. All rights reserved.