Google OR-Tools v9.12
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

com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable ()
 
Builder newBuilderForType (com.google.protobuf.GeneratedMessage.BuilderParent parent)
 

Detailed Description

Protobuf type operations_research.SetCoverProto.Subset

Definition at line 107 of file SetCoverProto.java.

Member Function Documentation

◆ equals()

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

Definition at line 270 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 166 of file SetCoverProto.java.

◆ getDefaultInstance()

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

Definition at line 752 of file SetCoverProto.java.

◆ getDefaultInstanceForType()

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

Definition at line 788 of file SetCoverProto.java.

◆ getDescriptor()

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

Definition at line 130 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 207 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 195 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 184 of file SetCoverProto.java.

◆ getParserForType()

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

Definition at line 783 of file SetCoverProto.java.

◆ getSerializedSize()

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

Definition at line 241 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 154 of file SetCoverProto.java.

◆ hashCode()

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

Definition at line 292 of file SetCoverProto.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 136 of file SetCoverProto.java.

◆ isInitialized()

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

Definition at line 214 of file SetCoverProto.java.

◆ newBuilder() [1/2]

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

Definition at line 386 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 389 of file SetCoverProto.java.

◆ newBuilderForType() [1/2]

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

Definition at line 385 of file SetCoverProto.java.

◆ newBuilderForType() [2/2]

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

Definition at line 399 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 357 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 363 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 334 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 338 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 323 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 328 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 370 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 376 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 344 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 349 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 312 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 317 of file SetCoverProto.java.

◆ parser()

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

Definition at line 778 of file SetCoverProto.java.

◆ toBuilder()

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

Definition at line 393 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 224 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 143 of file SetCoverProto.java.

◆ ELEMENT_FIELD_NUMBER

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

Definition at line 170 of file SetCoverProto.java.


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