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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public 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.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessage.Builder<SetCoverProto.Subset.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessage.Builder<SetCoverProto.Subset.Builder>
public SetCoverProto.Subset getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public SetCoverProto.Subset build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public SetCoverProto.Subset buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public SetCoverProto.Subset.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<SetCoverProto.Subset.Builder>
java.io.IOException
public boolean hasCost()
The cost for using the given subset.
optional double cost = 1;
hasCost
in interface SetCoverProto.SubsetOrBuilder
public double getCost()
The cost for using the given subset.
optional double cost = 1;
getCost
in interface SetCoverProto.SubsetOrBuilder
public 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.SubsetOrBuilder
public int getElementCount()
The list of elements in the subset.
repeated int32 element = 2 [packed = true];
getElementCount
in interface SetCoverProto.SubsetOrBuilder
public int getElement(int index)
The list of elements in the subset.
repeated int32 element = 2 [packed = true];
getElement
in interface SetCoverProto.SubsetOrBuilder
index
- 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 © 2025. All rights reserved.