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

Public Member Functions

Builder clear ()
 
com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
 
com.google.ortools.sat.PartialVariableAssignment getDefaultInstanceForType ()
 
com.google.ortools.sat.PartialVariableAssignment build ()
 
com.google.ortools.sat.PartialVariableAssignment buildPartial ()
 
Builder mergeFrom (com.google.protobuf.Message other)
 
Builder mergeFrom (com.google.ortools.sat.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 > getVarsList ()
 
int getVarsCount ()
 
int getVars (int index)
 
Builder setVars (int index, int value)
 
Builder addVars (int value)
 
Builder addAllVars (java.lang.Iterable<? extends java.lang.Integer > values)
 
Builder clearVars ()
 
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.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
CpModelProto. The variable indices should be unique and valid variable
indices.

Protobuf type operations_research.sat.PartialVariableAssignment

Definition at line 322 of file PartialVariableAssignment.java.

Member Function Documentation

◆ addAllValues()

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

repeated int64 values = 2;

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

Definition at line 655 of file PartialVariableAssignment.java.

◆ addAllVars()

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

repeated int32 vars = 1;

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

Definition at line 571 of file PartialVariableAssignment.java.

◆ addValues()

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

repeated int64 values = 2;

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

Definition at line 642 of file PartialVariableAssignment.java.

◆ addVars()

Builder com.google.ortools.sat.PartialVariableAssignment.Builder.addVars ( int value)

repeated int32 vars = 1;

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

Definition at line 558 of file PartialVariableAssignment.java.

◆ build()

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

Definition at line 370 of file PartialVariableAssignment.java.

◆ buildPartial()

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

Definition at line 379 of file PartialVariableAssignment.java.

◆ clear()

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

Definition at line 350 of file PartialVariableAssignment.java.

◆ clearValues()

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

repeated int64 values = 2;

Returns
This builder for chaining.

Definition at line 668 of file PartialVariableAssignment.java.

◆ clearVars()

Builder com.google.ortools.sat.PartialVariableAssignment.Builder.clearVars ( )

repeated int32 vars = 1;

Returns
This builder for chaining.

Definition at line 584 of file PartialVariableAssignment.java.

◆ getDefaultInstanceForType()

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

Definition at line 365 of file PartialVariableAssignment.java.

◆ getDescriptor()

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

Definition at line 327 of file PartialVariableAssignment.java.

◆ getDescriptorForType()

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

Definition at line 360 of file PartialVariableAssignment.java.

◆ getValues()

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

repeated int64 values = 2;

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

Implements com.google.ortools.sat.PartialVariableAssignmentOrBuilder.

Definition at line 619 of file PartialVariableAssignment.java.

◆ getValuesCount()

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

repeated int64 values = 2;

Returns
The count of values.

Implements com.google.ortools.sat.PartialVariableAssignmentOrBuilder.

Definition at line 611 of file PartialVariableAssignment.java.

◆ getValuesList()

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

repeated int64 values = 2;

Returns
A list containing the values.

Implements com.google.ortools.sat.PartialVariableAssignmentOrBuilder.

Definition at line 603 of file PartialVariableAssignment.java.

◆ getVars()

int com.google.ortools.sat.PartialVariableAssignment.Builder.getVars ( int index)

repeated int32 vars = 1;

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

Implements com.google.ortools.sat.PartialVariableAssignmentOrBuilder.

Definition at line 535 of file PartialVariableAssignment.java.

◆ getVarsCount()

int com.google.ortools.sat.PartialVariableAssignment.Builder.getVarsCount ( )

repeated int32 vars = 1;

Returns
The count of vars.

Implements com.google.ortools.sat.PartialVariableAssignmentOrBuilder.

Definition at line 527 of file PartialVariableAssignment.java.

◆ getVarsList()

java.util.List< java.lang.Integer > com.google.ortools.sat.PartialVariableAssignment.Builder.getVarsList ( )

repeated int32 vars = 1;

Returns
A list containing the vars.

Implements com.google.ortools.sat.PartialVariableAssignmentOrBuilder.

Definition at line 519 of file PartialVariableAssignment.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 333 of file PartialVariableAssignment.java.

◆ isInitialized()

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

Definition at line 438 of file PartialVariableAssignment.java.

◆ mergeFrom() [1/3]

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

Definition at line 408 of file PartialVariableAssignment.java.

◆ mergeFrom() [2/3]

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

Definition at line 443 of file PartialVariableAssignment.java.

◆ mergeFrom() [3/3]

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

Definition at line 399 of file PartialVariableAssignment.java.

◆ setValues()

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

repeated int64 values = 2;

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

Definition at line 628 of file PartialVariableAssignment.java.

◆ setVars()

Builder com.google.ortools.sat.PartialVariableAssignment.Builder.setVars ( int index,
int value )

repeated int32 vars = 1;

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

Definition at line 544 of file PartialVariableAssignment.java.


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