Google OR-Tools v9.9
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.algorithms.SetCoverProto.Subset Class Reference
Inheritance diagram for com.google.ortools.algorithms.SetCoverProto.Subset:
com.google.ortools.algorithms.SetCoverProto.SubsetOrBuilder

Classes

class  Builder
 

Public Member Functions

boolean hasCost ()
 
double getCost ()
 
java.util.List< java.lang.Integer > getElementList ()
 
int getElementCount ()
 
int getElement (int index)
 
final boolean isInitialized ()
 
void writeTo (com.google.protobuf.CodedOutputStream output) throws java.io.IOException
 
int getSerializedSize ()
 
boolean equals (final java.lang.Object obj)
 
int hashCode ()
 
Builder newBuilderForType ()
 
Builder toBuilder ()
 
com.google.protobuf.Parser< SubsetgetParserForType ()
 
com.google.ortools.algorithms.SetCoverProto.Subset getDefaultInstanceForType ()
 

Static Public Member Functions

static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
 
static com.google.ortools.algorithms.SetCoverProto.Subset parseFrom (java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.algorithms.SetCoverProto.Subset parseFrom (java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.algorithms.SetCoverProto.Subset parseFrom (com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.algorithms.SetCoverProto.Subset parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.algorithms.SetCoverProto.Subset parseFrom (byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.algorithms.SetCoverProto.Subset parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.algorithms.SetCoverProto.Subset parseFrom (java.io.InputStream input) throws java.io.IOException
 
static com.google.ortools.algorithms.SetCoverProto.Subset parseFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
static com.google.ortools.algorithms.SetCoverProto.Subset parseDelimitedFrom (java.io.InputStream input) throws java.io.IOException
 
static com.google.ortools.algorithms.SetCoverProto.Subset parseDelimitedFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
static com.google.ortools.algorithms.SetCoverProto.Subset parseFrom (com.google.protobuf.CodedInputStream input) throws java.io.IOException
 
static com.google.ortools.algorithms.SetCoverProto.Subset parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
static Builder newBuilder ()
 
static Builder newBuilder (com.google.ortools.algorithms.SetCoverProto.Subset prototype)
 
static com.google.ortools.algorithms.SetCoverProto.Subset getDefaultInstance ()
 
static com.google.protobuf.Parser< Subsetparser ()
 

Static Public Attributes

static final int COST_FIELD_NUMBER = 1
 
static final int ELEMENT_FIELD_NUMBER = 2
 

Protected Member Functions

java.lang.Object newInstance (UnusedPrivateParameter unused)
 
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable ()
 
Builder newBuilderForType (com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
 

Detailed Description

Protobuf type operations_research.SetCoverProto.Subset

Definition at line 99 of file SetCoverProto.java.

Member Function Documentation

◆ equals()

boolean com.google.ortools.algorithms.SetCoverProto.Subset.equals ( final java.lang.Object obj)

Definition at line 260 of file SetCoverProto.java.

◆ getCost()

double com.google.ortools.algorithms.SetCoverProto.Subset.getCost ( )
The cost for using the given subset.

optional double cost = 1;

Returns
The cost.

Implements com.google.ortools.algorithms.SetCoverProto.SubsetOrBuilder.

Definition at line 156 of file SetCoverProto.java.

◆ getDefaultInstance()

static com.google.ortools.algorithms.SetCoverProto.Subset com.google.ortools.algorithms.SetCoverProto.Subset.getDefaultInstance ( )
static

Definition at line 786 of file SetCoverProto.java.

◆ getDefaultInstanceForType()

com.google.ortools.algorithms.SetCoverProto.Subset com.google.ortools.algorithms.SetCoverProto.Subset.getDefaultInstanceForType ( )

Definition at line 822 of file SetCoverProto.java.

◆ getDescriptor()

static final com.google.protobuf.Descriptors.Descriptor com.google.ortools.algorithms.SetCoverProto.Subset.getDescriptor ( )
static

Definition at line 120 of file SetCoverProto.java.

◆ getElement()

int com.google.ortools.algorithms.SetCoverProto.Subset.getElement ( int index)
The list of elements in the subset.

repeated int32 element = 2 [packed = true];

Parameters
indexThe index of the element to return.
Returns
The element at the given index.

Implements com.google.ortools.algorithms.SetCoverProto.SubsetOrBuilder.

Definition at line 197 of file SetCoverProto.java.

◆ getElementCount()

int com.google.ortools.algorithms.SetCoverProto.Subset.getElementCount ( )
The list of elements in the subset.

repeated int32 element = 2 [packed = true];

Returns
The count of element.

Implements com.google.ortools.algorithms.SetCoverProto.SubsetOrBuilder.

Definition at line 185 of file SetCoverProto.java.

◆ getElementList()

java.util.List< java.lang.Integer > com.google.ortools.algorithms.SetCoverProto.Subset.getElementList ( )
The list of elements in the subset.

repeated int32 element = 2 [packed = true];

Returns
A list containing the element.

Implements com.google.ortools.algorithms.SetCoverProto.SubsetOrBuilder.

Definition at line 174 of file SetCoverProto.java.

◆ getParserForType()

com.google.protobuf.Parser< Subset > com.google.ortools.algorithms.SetCoverProto.Subset.getParserForType ( )

Definition at line 817 of file SetCoverProto.java.

◆ getSerializedSize()

int com.google.ortools.algorithms.SetCoverProto.Subset.getSerializedSize ( )

Definition at line 231 of file SetCoverProto.java.

◆ hasCost()

boolean com.google.ortools.algorithms.SetCoverProto.Subset.hasCost ( )
The cost for using the given subset.

optional double cost = 1;

Returns
Whether the cost field is set.

Implements com.google.ortools.algorithms.SetCoverProto.SubsetOrBuilder.

Definition at line 144 of file SetCoverProto.java.

◆ hashCode()

int com.google.ortools.algorithms.SetCoverProto.Subset.hashCode ( )

Definition at line 282 of file SetCoverProto.java.

◆ internalGetFieldAccessorTable()

com.google.protobuf.GeneratedMessageV3.FieldAccessorTable com.google.ortools.algorithms.SetCoverProto.Subset.internalGetFieldAccessorTable ( )
protected

Definition at line 126 of file SetCoverProto.java.

◆ isInitialized()

final boolean com.google.ortools.algorithms.SetCoverProto.Subset.isInitialized ( )

Definition at line 204 of file SetCoverProto.java.

◆ newBuilder() [1/2]

static Builder com.google.ortools.algorithms.SetCoverProto.Subset.newBuilder ( )
static

Definition at line 376 of file SetCoverProto.java.

◆ newBuilder() [2/2]

static Builder com.google.ortools.algorithms.SetCoverProto.Subset.newBuilder ( com.google.ortools.algorithms.SetCoverProto.Subset prototype)
static

Definition at line 379 of file SetCoverProto.java.

◆ newBuilderForType() [1/2]

Builder com.google.ortools.algorithms.SetCoverProto.Subset.newBuilderForType ( )

Definition at line 375 of file SetCoverProto.java.

◆ newBuilderForType() [2/2]

Builder com.google.ortools.algorithms.SetCoverProto.Subset.newBuilderForType ( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected

Definition at line 389 of file SetCoverProto.java.

◆ newInstance()

java.lang.Object com.google.ortools.algorithms.SetCoverProto.Subset.newInstance ( UnusedPrivateParameter unused)
protected

Definition at line 114 of file SetCoverProto.java.

◆ parseDelimitedFrom() [1/2]

static com.google.ortools.algorithms.SetCoverProto.Subset com.google.ortools.algorithms.SetCoverProto.Subset.parseDelimitedFrom ( java.io.InputStream input) throws java.io.IOException
static

Definition at line 347 of file SetCoverProto.java.

◆ parseDelimitedFrom() [2/2]

static com.google.ortools.algorithms.SetCoverProto.Subset com.google.ortools.algorithms.SetCoverProto.Subset.parseDelimitedFrom ( java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws java.io.IOException
static

Definition at line 353 of file SetCoverProto.java.

◆ parseFrom() [1/10]

static com.google.ortools.algorithms.SetCoverProto.Subset com.google.ortools.algorithms.SetCoverProto.Subset.parseFrom ( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 324 of file SetCoverProto.java.

◆ parseFrom() [2/10]

static com.google.ortools.algorithms.SetCoverProto.Subset com.google.ortools.algorithms.SetCoverProto.Subset.parseFrom ( byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 328 of file SetCoverProto.java.

◆ parseFrom() [3/10]

static com.google.ortools.algorithms.SetCoverProto.Subset com.google.ortools.algorithms.SetCoverProto.Subset.parseFrom ( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 313 of file SetCoverProto.java.

◆ parseFrom() [4/10]

static com.google.ortools.algorithms.SetCoverProto.Subset com.google.ortools.algorithms.SetCoverProto.Subset.parseFrom ( com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 318 of file SetCoverProto.java.

◆ parseFrom() [5/10]

static com.google.ortools.algorithms.SetCoverProto.Subset com.google.ortools.algorithms.SetCoverProto.Subset.parseFrom ( com.google.protobuf.CodedInputStream input) throws java.io.IOException
static

Definition at line 360 of file SetCoverProto.java.

◆ parseFrom() [6/10]

static com.google.ortools.algorithms.SetCoverProto.Subset com.google.ortools.algorithms.SetCoverProto.Subset.parseFrom ( com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws java.io.IOException
static

Definition at line 366 of file SetCoverProto.java.

◆ parseFrom() [7/10]

static com.google.ortools.algorithms.SetCoverProto.Subset com.google.ortools.algorithms.SetCoverProto.Subset.parseFrom ( java.io.InputStream input) throws java.io.IOException
static

Definition at line 334 of file SetCoverProto.java.

◆ parseFrom() [8/10]

static com.google.ortools.algorithms.SetCoverProto.Subset com.google.ortools.algorithms.SetCoverProto.Subset.parseFrom ( java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws java.io.IOException
static

Definition at line 339 of file SetCoverProto.java.

◆ parseFrom() [9/10]

static com.google.ortools.algorithms.SetCoverProto.Subset com.google.ortools.algorithms.SetCoverProto.Subset.parseFrom ( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 302 of file SetCoverProto.java.

◆ parseFrom() [10/10]

static com.google.ortools.algorithms.SetCoverProto.Subset com.google.ortools.algorithms.SetCoverProto.Subset.parseFrom ( java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 307 of file SetCoverProto.java.

◆ parser()

static com.google.protobuf.Parser< Subset > com.google.ortools.algorithms.SetCoverProto.Subset.parser ( )
static

Definition at line 812 of file SetCoverProto.java.

◆ toBuilder()

Builder com.google.ortools.algorithms.SetCoverProto.Subset.toBuilder ( )

Definition at line 383 of file SetCoverProto.java.

◆ writeTo()

void com.google.ortools.algorithms.SetCoverProto.Subset.writeTo ( com.google.protobuf.CodedOutputStream output) throws java.io.IOException

Definition at line 214 of file SetCoverProto.java.

Member Data Documentation

◆ COST_FIELD_NUMBER

final int com.google.ortools.algorithms.SetCoverProto.Subset.COST_FIELD_NUMBER = 1
static

Definition at line 133 of file SetCoverProto.java.

◆ ELEMENT_FIELD_NUMBER

final int com.google.ortools.algorithms.SetCoverProto.Subset.ELEMENT_FIELD_NUMBER = 2
static

Definition at line 160 of file SetCoverProto.java.


The documentation for this class was generated from the following file: