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

Public Member Functions

Builder clear ()
 
com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
 
com.google.ortools.sat.TableConstraintProto getDefaultInstanceForType ()
 
com.google.ortools.sat.TableConstraintProto build ()
 
com.google.ortools.sat.TableConstraintProto buildPartial ()
 
Builder mergeFrom (com.google.protobuf.Message other)
 
Builder mergeFrom (com.google.ortools.sat.TableConstraintProto 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 ()
 
boolean getNegated ()
 
Builder setNegated (boolean value)
 
Builder clearNegated ()
 
- Public Member Functions inherited from com.google.ortools.sat.TableConstraintProtoOrBuilder

Static Public Member Functions

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

Protected Member Functions

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

Detailed Description

The values of the n-tuple formed by the given variables can only be one of
the listed n-tuples in values. The n-tuples are encoded in a flattened way:
[tuple0_v0, tuple0_v1, ..., tuple0_v{n-1}, tuple1_v0, ...].

Protobuf type operations_research.sat.TableConstraintProto

Definition at line 350 of file TableConstraintProto.java.

Member Function Documentation

◆ addAllValues()

Builder com.google.ortools.sat.TableConstraintProto.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 695 of file TableConstraintProto.java.

◆ addAllVars()

Builder com.google.ortools.sat.TableConstraintProto.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 611 of file TableConstraintProto.java.

◆ addValues()

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

repeated int64 values = 2;

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

Definition at line 682 of file TableConstraintProto.java.

◆ addVars()

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

repeated int32 vars = 1;

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

Definition at line 598 of file TableConstraintProto.java.

◆ build()

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

Definition at line 399 of file TableConstraintProto.java.

◆ buildPartial()

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

Definition at line 408 of file TableConstraintProto.java.

◆ clear()

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

Definition at line 378 of file TableConstraintProto.java.

◆ clearNegated()

Builder com.google.ortools.sat.TableConstraintProto.Builder.clearNegated ( )
If true, the meaning is "negated", that is we forbid any of the given
tuple from a feasible assignment.

bool negated = 3;

Returns
This builder for chaining.

Definition at line 755 of file TableConstraintProto.java.

◆ clearValues()

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

repeated int64 values = 2;

Returns
This builder for chaining.

Definition at line 708 of file TableConstraintProto.java.

◆ clearVars()

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

repeated int32 vars = 1;

Returns
This builder for chaining.

Definition at line 624 of file TableConstraintProto.java.

◆ getDefaultInstanceForType()

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

Definition at line 394 of file TableConstraintProto.java.

◆ getDescriptor()

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

Definition at line 355 of file TableConstraintProto.java.

◆ getDescriptorForType()

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

Definition at line 389 of file TableConstraintProto.java.

◆ getNegated()

boolean com.google.ortools.sat.TableConstraintProto.Builder.getNegated ( )
If true, the meaning is "negated", that is we forbid any of the given
tuple from a feasible assignment.

bool negated = 3;

Returns
The negated.

Implements com.google.ortools.sat.TableConstraintProtoOrBuilder.

Definition at line 726 of file TableConstraintProto.java.

◆ getValues()

long com.google.ortools.sat.TableConstraintProto.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.TableConstraintProtoOrBuilder.

Definition at line 659 of file TableConstraintProto.java.

◆ getValuesCount()

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

repeated int64 values = 2;

Returns
The count of values.

Implements com.google.ortools.sat.TableConstraintProtoOrBuilder.

Definition at line 651 of file TableConstraintProto.java.

◆ getValuesList()

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

repeated int64 values = 2;

Returns
A list containing the values.

Implements com.google.ortools.sat.TableConstraintProtoOrBuilder.

Definition at line 643 of file TableConstraintProto.java.

◆ getVars()

int com.google.ortools.sat.TableConstraintProto.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.TableConstraintProtoOrBuilder.

Definition at line 575 of file TableConstraintProto.java.

◆ getVarsCount()

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

repeated int32 vars = 1;

Returns
The count of vars.

Implements com.google.ortools.sat.TableConstraintProtoOrBuilder.

Definition at line 567 of file TableConstraintProto.java.

◆ getVarsList()

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

repeated int32 vars = 1;

Returns
A list containing the vars.

Implements com.google.ortools.sat.TableConstraintProtoOrBuilder.

Definition at line 559 of file TableConstraintProto.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 361 of file TableConstraintProto.java.

◆ isInitialized()

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

Definition at line 473 of file TableConstraintProto.java.

◆ mergeFrom() [1/3]

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

Definition at line 440 of file TableConstraintProto.java.

◆ mergeFrom() [2/3]

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

Definition at line 478 of file TableConstraintProto.java.

◆ mergeFrom() [3/3]

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

Definition at line 431 of file TableConstraintProto.java.

◆ setNegated()

Builder com.google.ortools.sat.TableConstraintProto.Builder.setNegated ( boolean value)
If true, the meaning is "negated", that is we forbid any of the given
tuple from a feasible assignment.

bool negated = 3;

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

Definition at line 739 of file TableConstraintProto.java.

◆ setValues()

Builder com.google.ortools.sat.TableConstraintProto.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 668 of file TableConstraintProto.java.

◆ setVars()

Builder com.google.ortools.sat.TableConstraintProto.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 584 of file TableConstraintProto.java.


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