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

Public Member Functions

Builder clear ()
 
com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
 
com.google.ortools.sat.InverseConstraintProto getDefaultInstanceForType ()
 
com.google.ortools.sat.InverseConstraintProto build ()
 
com.google.ortools.sat.InverseConstraintProto buildPartial ()
 
Builder mergeFrom (com.google.protobuf.Message other)
 
Builder mergeFrom (com.google.ortools.sat.InverseConstraintProto 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 > getFDirectList ()
 
int getFDirectCount ()
 
int getFDirect (int index)
 
Builder setFDirect (int index, int value)
 
Builder addFDirect (int value)
 
Builder addAllFDirect (java.lang.Iterable<? extends java.lang.Integer > values)
 
Builder clearFDirect ()
 
java.util.List< java.lang.Integer > getFInverseList ()
 
int getFInverseCount ()
 
int getFInverse (int index)
 
Builder setFInverse (int index, int value)
 
Builder addFInverse (int value)
 
Builder addAllFInverse (java.lang.Iterable<? extends java.lang.Integer > values)
 
Builder clearFInverse ()
 
- Public Member Functions inherited from com.google.ortools.sat.InverseConstraintProtoOrBuilder

Static Public Member Functions

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

Protected Member Functions

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

Detailed Description

The two arrays of variable each represent a function, the second is the
inverse of the first: f_direct[i] == j <=> f_inverse[j] == i.

Protobuf type operations_research.sat.InverseConstraintProto

Definition at line 320 of file InverseConstraintProto.java.

Member Function Documentation

◆ addAllFDirect()

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

repeated int32 f_direct = 1;

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

Definition at line 569 of file InverseConstraintProto.java.

◆ addAllFInverse()

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

repeated int32 f_inverse = 2;

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

Definition at line 653 of file InverseConstraintProto.java.

◆ addFDirect()

Builder com.google.ortools.sat.InverseConstraintProto.Builder.addFDirect ( int value)

repeated int32 f_direct = 1;

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

Definition at line 556 of file InverseConstraintProto.java.

◆ addFInverse()

Builder com.google.ortools.sat.InverseConstraintProto.Builder.addFInverse ( int value)

repeated int32 f_inverse = 2;

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

Definition at line 640 of file InverseConstraintProto.java.

◆ build()

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

Definition at line 368 of file InverseConstraintProto.java.

◆ buildPartial()

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

Definition at line 377 of file InverseConstraintProto.java.

◆ clear()

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

Definition at line 348 of file InverseConstraintProto.java.

◆ clearFDirect()

Builder com.google.ortools.sat.InverseConstraintProto.Builder.clearFDirect ( )

repeated int32 f_direct = 1;

Returns
This builder for chaining.

Definition at line 582 of file InverseConstraintProto.java.

◆ clearFInverse()

Builder com.google.ortools.sat.InverseConstraintProto.Builder.clearFInverse ( )

repeated int32 f_inverse = 2;

Returns
This builder for chaining.

Definition at line 666 of file InverseConstraintProto.java.

◆ getDefaultInstanceForType()

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

Definition at line 363 of file InverseConstraintProto.java.

◆ getDescriptor()

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

Definition at line 325 of file InverseConstraintProto.java.

◆ getDescriptorForType()

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

Definition at line 358 of file InverseConstraintProto.java.

◆ getFDirect()

int com.google.ortools.sat.InverseConstraintProto.Builder.getFDirect ( int index)

repeated int32 f_direct = 1;

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

Implements com.google.ortools.sat.InverseConstraintProtoOrBuilder.

Definition at line 533 of file InverseConstraintProto.java.

◆ getFDirectCount()

int com.google.ortools.sat.InverseConstraintProto.Builder.getFDirectCount ( )

repeated int32 f_direct = 1;

Returns
The count of fDirect.

Implements com.google.ortools.sat.InverseConstraintProtoOrBuilder.

Definition at line 525 of file InverseConstraintProto.java.

◆ getFDirectList()

java.util.List< java.lang.Integer > com.google.ortools.sat.InverseConstraintProto.Builder.getFDirectList ( )

repeated int32 f_direct = 1;

Returns
A list containing the fDirect.

Implements com.google.ortools.sat.InverseConstraintProtoOrBuilder.

Definition at line 517 of file InverseConstraintProto.java.

◆ getFInverse()

int com.google.ortools.sat.InverseConstraintProto.Builder.getFInverse ( int index)

repeated int32 f_inverse = 2;

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

Implements com.google.ortools.sat.InverseConstraintProtoOrBuilder.

Definition at line 617 of file InverseConstraintProto.java.

◆ getFInverseCount()

int com.google.ortools.sat.InverseConstraintProto.Builder.getFInverseCount ( )

repeated int32 f_inverse = 2;

Returns
The count of fInverse.

Implements com.google.ortools.sat.InverseConstraintProtoOrBuilder.

Definition at line 609 of file InverseConstraintProto.java.

◆ getFInverseList()

java.util.List< java.lang.Integer > com.google.ortools.sat.InverseConstraintProto.Builder.getFInverseList ( )

repeated int32 f_inverse = 2;

Returns
A list containing the fInverse.

Implements com.google.ortools.sat.InverseConstraintProtoOrBuilder.

Definition at line 601 of file InverseConstraintProto.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 331 of file InverseConstraintProto.java.

◆ isInitialized()

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

Definition at line 436 of file InverseConstraintProto.java.

◆ mergeFrom() [1/3]

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

Definition at line 406 of file InverseConstraintProto.java.

◆ mergeFrom() [2/3]

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

Definition at line 441 of file InverseConstraintProto.java.

◆ mergeFrom() [3/3]

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

Definition at line 397 of file InverseConstraintProto.java.

◆ setFDirect()

Builder com.google.ortools.sat.InverseConstraintProto.Builder.setFDirect ( int index,
int value )

repeated int32 f_direct = 1;

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

Definition at line 542 of file InverseConstraintProto.java.

◆ setFInverse()

Builder com.google.ortools.sat.InverseConstraintProto.Builder.setFInverse ( int index,
int value )

repeated int32 f_inverse = 2;

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

Definition at line 626 of file InverseConstraintProto.java.


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