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

Public Member Functions

Builder clear ()
 
com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
 
com.google.ortools.linearsolver.PartialVariableAssignment getDefaultInstanceForType ()
 
com.google.ortools.linearsolver.PartialVariableAssignment build ()
 
com.google.ortools.linearsolver.PartialVariableAssignment buildPartial ()
 
Builder mergeFrom (com.google.protobuf.Message other)
 
Builder mergeFrom (com.google.ortools.linearsolver.PartialVariableAssignment 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.Integer > getVarIndexList ()
 
int getVarIndexCount ()
 
int getVarIndex (int index)
 
Builder setVarIndex (int index, int value)
 
Builder addVarIndex (int value)
 
Builder addAllVarIndex (java.lang.Iterable<? extends java.lang.Integer > values)
 
Builder clearVarIndex ()
 
java.util.List< java.lang.Double > getVarValueList ()
 
int getVarValueCount ()
 
double getVarValue (int index)
 
Builder setVarValue (int index, double value)
 
Builder addVarValue (double value)
 
Builder addAllVarValue (java.lang.Iterable<? extends java.lang.Double > values)
 
Builder clearVarValue ()
 
- Public Member Functions inherited from com.google.ortools.linearsolver.PartialVariableAssignmentOrBuilder

Static Public Member Functions

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

Protected Member Functions

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

Detailed Description

This message encodes a partial (or full) assignment of the variables of a
MPModelProto problem. The indices in var_index should be unique and valid
variable indices of the associated problem.

Protobuf type operations_research.PartialVariableAssignment

Definition at line 319 of file PartialVariableAssignment.java.

Member Function Documentation

◆ addAllVarIndex()

Builder com.google.ortools.linearsolver.PartialVariableAssignment.Builder.addAllVarIndex ( java.lang.Iterable<? extends java.lang.Integer > values)

repeated int32 var_index = 1 [packed = true];

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

Definition at line 569 of file PartialVariableAssignment.java.

◆ addAllVarValue()

Builder com.google.ortools.linearsolver.PartialVariableAssignment.Builder.addAllVarValue ( java.lang.Iterable<? extends java.lang.Double > values)

repeated double var_value = 2 [packed = true];

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

Definition at line 659 of file PartialVariableAssignment.java.

◆ addVarIndex()

Builder com.google.ortools.linearsolver.PartialVariableAssignment.Builder.addVarIndex ( int value)

repeated int32 var_index = 1 [packed = true];

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

Definition at line 556 of file PartialVariableAssignment.java.

◆ addVarValue()

Builder com.google.ortools.linearsolver.PartialVariableAssignment.Builder.addVarValue ( double value)

repeated double var_value = 2 [packed = true];

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

Definition at line 646 of file PartialVariableAssignment.java.

◆ build()

com.google.ortools.linearsolver.PartialVariableAssignment com.google.ortools.linearsolver.PartialVariableAssignment.Builder.build ( )

Definition at line 367 of file PartialVariableAssignment.java.

◆ buildPartial()

com.google.ortools.linearsolver.PartialVariableAssignment com.google.ortools.linearsolver.PartialVariableAssignment.Builder.buildPartial ( )

Definition at line 376 of file PartialVariableAssignment.java.

◆ clear()

Builder com.google.ortools.linearsolver.PartialVariableAssignment.Builder.clear ( )

Definition at line 347 of file PartialVariableAssignment.java.

◆ clearVarIndex()

Builder com.google.ortools.linearsolver.PartialVariableAssignment.Builder.clearVarIndex ( )

repeated int32 var_index = 1 [packed = true];

Returns
This builder for chaining.

Definition at line 582 of file PartialVariableAssignment.java.

◆ clearVarValue()

Builder com.google.ortools.linearsolver.PartialVariableAssignment.Builder.clearVarValue ( )

repeated double var_value = 2 [packed = true];

Returns
This builder for chaining.

Definition at line 672 of file PartialVariableAssignment.java.

◆ getDefaultInstanceForType()

com.google.ortools.linearsolver.PartialVariableAssignment com.google.ortools.linearsolver.PartialVariableAssignment.Builder.getDefaultInstanceForType ( )

Definition at line 362 of file PartialVariableAssignment.java.

◆ getDescriptor()

static final com.google.protobuf.Descriptors.Descriptor com.google.ortools.linearsolver.PartialVariableAssignment.Builder.getDescriptor ( )
static

Definition at line 324 of file PartialVariableAssignment.java.

◆ getDescriptorForType()

com.google.protobuf.Descriptors.Descriptor com.google.ortools.linearsolver.PartialVariableAssignment.Builder.getDescriptorForType ( )

Definition at line 357 of file PartialVariableAssignment.java.

◆ getVarIndex()

int com.google.ortools.linearsolver.PartialVariableAssignment.Builder.getVarIndex ( int index)

repeated int32 var_index = 1 [packed = true];

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

Implements com.google.ortools.linearsolver.PartialVariableAssignmentOrBuilder.

Definition at line 533 of file PartialVariableAssignment.java.

◆ getVarIndexCount()

int com.google.ortools.linearsolver.PartialVariableAssignment.Builder.getVarIndexCount ( )

repeated int32 var_index = 1 [packed = true];

Returns
The count of varIndex.

Implements com.google.ortools.linearsolver.PartialVariableAssignmentOrBuilder.

Definition at line 525 of file PartialVariableAssignment.java.

◆ getVarIndexList()

java.util.List< java.lang.Integer > com.google.ortools.linearsolver.PartialVariableAssignment.Builder.getVarIndexList ( )

repeated int32 var_index = 1 [packed = true];

Returns
A list containing the varIndex.

Implements com.google.ortools.linearsolver.PartialVariableAssignmentOrBuilder.

Definition at line 517 of file PartialVariableAssignment.java.

◆ getVarValue()

double com.google.ortools.linearsolver.PartialVariableAssignment.Builder.getVarValue ( int index)

repeated double var_value = 2 [packed = true];

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

Implements com.google.ortools.linearsolver.PartialVariableAssignmentOrBuilder.

Definition at line 623 of file PartialVariableAssignment.java.

◆ getVarValueCount()

int com.google.ortools.linearsolver.PartialVariableAssignment.Builder.getVarValueCount ( )

repeated double var_value = 2 [packed = true];

Returns
The count of varValue.

Implements com.google.ortools.linearsolver.PartialVariableAssignmentOrBuilder.

Definition at line 615 of file PartialVariableAssignment.java.

◆ getVarValueList()

java.util.List< java.lang.Double > com.google.ortools.linearsolver.PartialVariableAssignment.Builder.getVarValueList ( )

repeated double var_value = 2 [packed = true];

Returns
A list containing the varValue.

Implements com.google.ortools.linearsolver.PartialVariableAssignmentOrBuilder.

Definition at line 607 of file PartialVariableAssignment.java.

◆ internalGetFieldAccessorTable()

com.google.protobuf.GeneratedMessage.FieldAccessorTable com.google.ortools.linearsolver.PartialVariableAssignment.Builder.internalGetFieldAccessorTable ( )
protected

Definition at line 330 of file PartialVariableAssignment.java.

◆ isInitialized()

final boolean com.google.ortools.linearsolver.PartialVariableAssignment.Builder.isInitialized ( )

Definition at line 435 of file PartialVariableAssignment.java.

◆ mergeFrom() [1/3]

Builder com.google.ortools.linearsolver.PartialVariableAssignment.Builder.mergeFrom ( com.google.ortools.linearsolver.PartialVariableAssignment other)

Definition at line 405 of file PartialVariableAssignment.java.

◆ mergeFrom() [2/3]

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

Definition at line 440 of file PartialVariableAssignment.java.

◆ mergeFrom() [3/3]

Builder com.google.ortools.linearsolver.PartialVariableAssignment.Builder.mergeFrom ( com.google.protobuf.Message other)

Definition at line 396 of file PartialVariableAssignment.java.

◆ setVarIndex()

Builder com.google.ortools.linearsolver.PartialVariableAssignment.Builder.setVarIndex ( int index,
int value )

repeated int32 var_index = 1 [packed = true];

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

Definition at line 542 of file PartialVariableAssignment.java.

◆ setVarValue()

Builder com.google.ortools.linearsolver.PartialVariableAssignment.Builder.setVarValue ( int index,
double value )

repeated double var_value = 2 [packed = true];

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

Definition at line 632 of file PartialVariableAssignment.java.


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