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

Public Member Functions

Builder clear ()
 
com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
 
com.google.ortools.algorithms.SetCoverProto.Subset getDefaultInstanceForType ()
 
com.google.ortools.algorithms.SetCoverProto.Subset build ()
 
com.google.ortools.algorithms.SetCoverProto.Subset buildPartial ()
 
Builder clone ()
 
Builder setField (com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
 
Builder clearField (com.google.protobuf.Descriptors.FieldDescriptor field)
 
Builder clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof)
 
Builder setRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
 
Builder addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
 
Builder mergeFrom (com.google.protobuf.Message other)
 
Builder mergeFrom (com.google.ortools.algorithms.SetCoverProto.Subset other)
 
final boolean isInitialized ()
 
Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
boolean hasCost ()
 
double getCost ()
 
Builder setCost (double value)
 
Builder clearCost ()
 
java.util.List< java.lang.Integer > getElementList ()
 
int getElementCount ()
 
int getElement (int index)
 
Builder setElement (int index, int value)
 
Builder addElement (int value)
 
Builder addAllElement (java.lang.Iterable<? extends java.lang.Integer > values)
 
Builder clearElement ()
 
final Builder setUnknownFields (final com.google.protobuf.UnknownFieldSet unknownFields)
 
final Builder mergeUnknownFields (final com.google.protobuf.UnknownFieldSet unknownFields)
 

Static Public Member Functions

static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
 

Protected Member Functions

com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable ()
 

Detailed Description

Protobuf type operations_research.SetCoverProto.Subset

Definition at line 397 of file SetCoverProto.java.

Member Function Documentation

◆ addAllElement()

Builder com.google.ortools.algorithms.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];

Parameters
valuesThe element to add.
Returns
This builder for chaining.

Definition at line 741 of file SetCoverProto.java.

◆ addElement()

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

repeated int32 element = 2 [packed = true];

Parameters
valueThe element to add.
Returns
This builder for chaining.

Definition at line 724 of file SetCoverProto.java.

◆ addRepeatedField()

Builder com.google.ortools.algorithms.SetCoverProto.Subset.Builder.addRepeatedField ( com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value )

Definition at line 502 of file SetCoverProto.java.

◆ build()

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

Definition at line 445 of file SetCoverProto.java.

◆ buildPartial()

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

Definition at line 454 of file SetCoverProto.java.

◆ clear()

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

Definition at line 425 of file SetCoverProto.java.

◆ clearCost()

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

optional double cost = 1;

Returns
This builder for chaining.

Definition at line 646 of file SetCoverProto.java.

◆ clearElement()

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

repeated int32 element = 2 [packed = true];

Returns
This builder for chaining.

Definition at line 758 of file SetCoverProto.java.

◆ clearField()

Builder com.google.ortools.algorithms.SetCoverProto.Subset.Builder.clearField ( com.google.protobuf.Descriptors.FieldDescriptor field)

Definition at line 486 of file SetCoverProto.java.

◆ clearOneof()

Builder com.google.ortools.algorithms.SetCoverProto.Subset.Builder.clearOneof ( com.google.protobuf.Descriptors.OneofDescriptor oneof)

Definition at line 491 of file SetCoverProto.java.

◆ clone()

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

Definition at line 476 of file SetCoverProto.java.

◆ getCost()

double com.google.ortools.algorithms.SetCoverProto.Subset.Builder.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 619 of file SetCoverProto.java.

◆ getDefaultInstanceForType()

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

Definition at line 440 of file SetCoverProto.java.

◆ getDescriptor()

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

Definition at line 402 of file SetCoverProto.java.

◆ getDescriptorForType()

com.google.protobuf.Descriptors.Descriptor com.google.ortools.algorithms.SetCoverProto.Subset.Builder.getDescriptorForType ( )

Definition at line 435 of file SetCoverProto.java.

◆ getElement()

int com.google.ortools.algorithms.SetCoverProto.Subset.Builder.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 693 of file SetCoverProto.java.

◆ getElementCount()

int com.google.ortools.algorithms.SetCoverProto.Subset.Builder.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 681 of file SetCoverProto.java.

◆ getElementList()

java.util.List< java.lang.Integer > com.google.ortools.algorithms.SetCoverProto.Subset.Builder.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 669 of file SetCoverProto.java.

◆ hasCost()

boolean com.google.ortools.algorithms.SetCoverProto.Subset.Builder.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 607 of file SetCoverProto.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 408 of file SetCoverProto.java.

◆ isInitialized()

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

Definition at line 539 of file SetCoverProto.java.

◆ mergeFrom() [1/3]

Builder com.google.ortools.algorithms.SetCoverProto.Subset.Builder.mergeFrom ( com.google.ortools.algorithms.SetCoverProto.Subset other)

Definition at line 517 of file SetCoverProto.java.

◆ mergeFrom() [2/3]

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

Definition at line 544 of file SetCoverProto.java.

◆ mergeFrom() [3/3]

Builder com.google.ortools.algorithms.SetCoverProto.Subset.Builder.mergeFrom ( com.google.protobuf.Message other)

Definition at line 508 of file SetCoverProto.java.

◆ mergeUnknownFields()

final Builder com.google.ortools.algorithms.SetCoverProto.Subset.Builder.mergeUnknownFields ( final com.google.protobuf.UnknownFieldSet unknownFields)

Definition at line 771 of file SetCoverProto.java.

◆ setCost()

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

optional double cost = 1;

Parameters
valueThe cost to set.
Returns
This builder for chaining.

Definition at line 631 of file SetCoverProto.java.

◆ setElement()

Builder com.google.ortools.algorithms.SetCoverProto.Subset.Builder.setElement ( int index,
int value )
The list of elements in the subset.

repeated int32 element = 2 [packed = true];

Parameters
indexThe index to set the value at.
valueThe element to set.
Returns
This builder for chaining.

Definition at line 706 of file SetCoverProto.java.

◆ setField()

Builder com.google.ortools.algorithms.SetCoverProto.Subset.Builder.setField ( com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value )

Definition at line 480 of file SetCoverProto.java.

◆ setRepeatedField()

Builder com.google.ortools.algorithms.SetCoverProto.Subset.Builder.setRepeatedField ( com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value )

Definition at line 496 of file SetCoverProto.java.

◆ setUnknownFields()

final Builder com.google.ortools.algorithms.SetCoverProto.Subset.Builder.setUnknownFields ( final com.google.protobuf.UnknownFieldSet unknownFields)

Definition at line 765 of file SetCoverProto.java.


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