Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.sat.CpSolverSolution.Builder Class Reference
Inheritance diagram for com.google.ortools.sat.CpSolverSolution.Builder:
com.google.ortools.sat.CpSolverSolutionOrBuilder

Public Member Functions

Builder clear ()
 
com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
 
com.google.ortools.sat.CpSolverSolution getDefaultInstanceForType ()
 
com.google.ortools.sat.CpSolverSolution build ()
 
com.google.ortools.sat.CpSolverSolution buildPartial ()
 
Builder mergeFrom (com.google.protobuf.Message other)
 
Builder mergeFrom (com.google.ortools.sat.CpSolverSolution other)
 
final boolean isInitialized ()
 
Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
java.util.List< java.lang.Long > getValuesList ()
 
int getValuesCount ()
 
long getValues (int index)
 
Builder setValues (int index, long value)
 
Builder addValues (long value)
 
Builder addAllValues (java.lang.Iterable<? extends java.lang.Long > values)
 
Builder clearValues ()
 
- Public Member Functions inherited from com.google.ortools.sat.CpSolverSolutionOrBuilder

Static Public Member Functions

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

Protected Member Functions

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

Detailed Description

Just a message used to store dense solution.
This is used by the additional_solutions field.

Protobuf type operations_research.sat.CpSolverSolution

Definition at line 262 of file CpSolverSolution.java.

Member Function Documentation

◆ addAllValues()

Builder com.google.ortools.sat.CpSolverSolution.Builder.addAllValues ( java.lang.Iterable<? extends java.lang.Long > values)

repeated int64 values = 1;

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

Definition at line 479 of file CpSolverSolution.java.

◆ addValues()

Builder com.google.ortools.sat.CpSolverSolution.Builder.addValues ( long value)

repeated int64 values = 1;

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

Definition at line 466 of file CpSolverSolution.java.

◆ build()

com.google.ortools.sat.CpSolverSolution com.google.ortools.sat.CpSolverSolution.Builder.build ( )

Definition at line 309 of file CpSolverSolution.java.

◆ buildPartial()

com.google.ortools.sat.CpSolverSolution com.google.ortools.sat.CpSolverSolution.Builder.buildPartial ( )

Definition at line 318 of file CpSolverSolution.java.

◆ clear()

Builder com.google.ortools.sat.CpSolverSolution.Builder.clear ( )

Definition at line 290 of file CpSolverSolution.java.

◆ clearValues()

Builder com.google.ortools.sat.CpSolverSolution.Builder.clearValues ( )

repeated int64 values = 1;

Returns
This builder for chaining.

Definition at line 492 of file CpSolverSolution.java.

◆ getDefaultInstanceForType()

com.google.ortools.sat.CpSolverSolution com.google.ortools.sat.CpSolverSolution.Builder.getDefaultInstanceForType ( )

Definition at line 304 of file CpSolverSolution.java.

◆ getDescriptor()

static final com.google.protobuf.Descriptors.Descriptor com.google.ortools.sat.CpSolverSolution.Builder.getDescriptor ( )
static

Definition at line 267 of file CpSolverSolution.java.

◆ getDescriptorForType()

com.google.protobuf.Descriptors.Descriptor com.google.ortools.sat.CpSolverSolution.Builder.getDescriptorForType ( )

Definition at line 299 of file CpSolverSolution.java.

◆ getValues()

long com.google.ortools.sat.CpSolverSolution.Builder.getValues ( int index)

repeated int64 values = 1;

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

Implements com.google.ortools.sat.CpSolverSolutionOrBuilder.

Definition at line 443 of file CpSolverSolution.java.

◆ getValuesCount()

int com.google.ortools.sat.CpSolverSolution.Builder.getValuesCount ( )

repeated int64 values = 1;

Returns
The count of values.

Implements com.google.ortools.sat.CpSolverSolutionOrBuilder.

Definition at line 435 of file CpSolverSolution.java.

◆ getValuesList()

java.util.List< java.lang.Long > com.google.ortools.sat.CpSolverSolution.Builder.getValuesList ( )

repeated int64 values = 1;

Returns
A list containing the values.

Implements com.google.ortools.sat.CpSolverSolutionOrBuilder.

Definition at line 427 of file CpSolverSolution.java.

◆ internalGetFieldAccessorTable()

com.google.protobuf.GeneratedMessage.FieldAccessorTable com.google.ortools.sat.CpSolverSolution.Builder.internalGetFieldAccessorTable ( )
protected

Definition at line 273 of file CpSolverSolution.java.

◆ isInitialized()

final boolean com.google.ortools.sat.CpSolverSolution.Builder.isInitialized ( )

Definition at line 362 of file CpSolverSolution.java.

◆ mergeFrom() [1/3]

Builder com.google.ortools.sat.CpSolverSolution.Builder.mergeFrom ( com.google.ortools.sat.CpSolverSolution other)

Definition at line 343 of file CpSolverSolution.java.

◆ mergeFrom() [2/3]

Builder com.google.ortools.sat.CpSolverSolution.Builder.mergeFrom ( com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws java.io.IOException

Definition at line 367 of file CpSolverSolution.java.

◆ mergeFrom() [3/3]

Builder com.google.ortools.sat.CpSolverSolution.Builder.mergeFrom ( com.google.protobuf.Message other)

Definition at line 334 of file CpSolverSolution.java.

◆ setValues()

Builder com.google.ortools.sat.CpSolverSolution.Builder.setValues ( int index,
long value )

repeated int64 values = 1;

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

Definition at line 452 of file CpSolverSolution.java.


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