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

Public Member Functions

Builder clear ()
 
com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
 
com.google.ortools.sat.ElementConstraintProto getDefaultInstanceForType ()
 
com.google.ortools.sat.ElementConstraintProto build ()
 
com.google.ortools.sat.ElementConstraintProto buildPartial ()
 
Builder mergeFrom (com.google.protobuf.Message other)
 
Builder mergeFrom (com.google.ortools.sat.ElementConstraintProto other)
 
final boolean isInitialized ()
 
Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
int getIndex ()
 
Builder setIndex (int value)
 
Builder clearIndex ()
 
int getTarget ()
 
Builder setTarget (int value)
 
Builder clearTarget ()
 
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 ()
 
- Public Member Functions inherited from com.google.ortools.sat.ElementConstraintProtoOrBuilder

Static Public Member Functions

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

Protected Member Functions

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

Detailed Description

The constraint target = vars[index].
This enforces that index takes one of the value in [0, vars_size()).

Protobuf type operations_research.sat.ElementConstraintProto

Definition at line 306 of file ElementConstraintProto.java.

Member Function Documentation

◆ addAllVars()

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

repeated int32 vars = 3;

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

Definition at line 611 of file ElementConstraintProto.java.

◆ addVars()

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

repeated int32 vars = 3;

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

Definition at line 598 of file ElementConstraintProto.java.

◆ build()

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

Definition at line 355 of file ElementConstraintProto.java.

◆ buildPartial()

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

Definition at line 364 of file ElementConstraintProto.java.

◆ clear()

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

Definition at line 334 of file ElementConstraintProto.java.

◆ clearIndex()

Builder com.google.ortools.sat.ElementConstraintProto.Builder.clearIndex ( )

int32 index = 1;

Returns
This builder for chaining.

Definition at line 508 of file ElementConstraintProto.java.

◆ clearTarget()

Builder com.google.ortools.sat.ElementConstraintProto.Builder.clearTarget ( )

int32 target = 2;

Returns
This builder for chaining.

Definition at line 540 of file ElementConstraintProto.java.

◆ clearVars()

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

repeated int32 vars = 3;

Returns
This builder for chaining.

Definition at line 624 of file ElementConstraintProto.java.

◆ getDefaultInstanceForType()

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

Definition at line 350 of file ElementConstraintProto.java.

◆ getDescriptor()

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

Definition at line 311 of file ElementConstraintProto.java.

◆ getDescriptorForType()

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

Definition at line 345 of file ElementConstraintProto.java.

◆ getIndex()

int com.google.ortools.sat.ElementConstraintProto.Builder.getIndex ( )

int32 index = 1;

Returns
The index.

Implements com.google.ortools.sat.ElementConstraintProtoOrBuilder.

Definition at line 489 of file ElementConstraintProto.java.

◆ getTarget()

int com.google.ortools.sat.ElementConstraintProto.Builder.getTarget ( )

int32 target = 2;

Returns
The target.

Implements com.google.ortools.sat.ElementConstraintProtoOrBuilder.

Definition at line 521 of file ElementConstraintProto.java.

◆ getVars()

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

repeated int32 vars = 3;

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

Implements com.google.ortools.sat.ElementConstraintProtoOrBuilder.

Definition at line 575 of file ElementConstraintProto.java.

◆ getVarsCount()

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

repeated int32 vars = 3;

Returns
The count of vars.

Implements com.google.ortools.sat.ElementConstraintProtoOrBuilder.

Definition at line 567 of file ElementConstraintProto.java.

◆ getVarsList()

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

repeated int32 vars = 3;

Returns
A list containing the vars.

Implements com.google.ortools.sat.ElementConstraintProtoOrBuilder.

Definition at line 559 of file ElementConstraintProto.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 317 of file ElementConstraintProto.java.

◆ isInitialized()

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

Definition at line 420 of file ElementConstraintProto.java.

◆ mergeFrom() [1/3]

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

Definition at line 395 of file ElementConstraintProto.java.

◆ mergeFrom() [2/3]

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

Definition at line 425 of file ElementConstraintProto.java.

◆ mergeFrom() [3/3]

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

Definition at line 386 of file ElementConstraintProto.java.

◆ setIndex()

Builder com.google.ortools.sat.ElementConstraintProto.Builder.setIndex ( int value)

int32 index = 1;

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

Definition at line 497 of file ElementConstraintProto.java.

◆ setTarget()

Builder com.google.ortools.sat.ElementConstraintProto.Builder.setTarget ( int value)

int32 target = 2;

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

Definition at line 529 of file ElementConstraintProto.java.

◆ setVars()

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

repeated int32 vars = 3;

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

Definition at line 584 of file ElementConstraintProto.java.


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