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

Public Member Functions

Builder clear ()
 
com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
 
com.google.ortools.sat.NoOverlapConstraintProto getDefaultInstanceForType ()
 
com.google.ortools.sat.NoOverlapConstraintProto build ()
 
com.google.ortools.sat.NoOverlapConstraintProto buildPartial ()
 
Builder mergeFrom (com.google.protobuf.Message other)
 
Builder mergeFrom (com.google.ortools.sat.NoOverlapConstraintProto 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 > getIntervalsList ()
 
int getIntervalsCount ()
 
int getIntervals (int index)
 
Builder setIntervals (int index, int value)
 
Builder addIntervals (int value)
 
Builder addAllIntervals (java.lang.Iterable<? extends java.lang.Integer > values)
 
Builder clearIntervals ()
 
- Public Member Functions inherited from com.google.ortools.sat.NoOverlapConstraintProtoOrBuilder

Static Public Member Functions

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

Protected Member Functions

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

Detailed Description

All the intervals (index of IntervalConstraintProto) must be disjoint. More
formally, there must exist a sequence so that for each consecutive intervals,
we have end_i <= start_{i+1}. In particular, intervals of size zero do matter
for this constraint. This is also known as a disjunctive constraint in
scheduling.

Protobuf type operations_research.sat.NoOverlapConstraintProto

Definition at line 268 of file NoOverlapConstraintProto.java.

Member Function Documentation

◆ addAllIntervals()

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

repeated int32 intervals = 1;

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

Definition at line 485 of file NoOverlapConstraintProto.java.

◆ addIntervals()

Builder com.google.ortools.sat.NoOverlapConstraintProto.Builder.addIntervals ( int value)

repeated int32 intervals = 1;

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

Definition at line 472 of file NoOverlapConstraintProto.java.

◆ build()

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

Definition at line 315 of file NoOverlapConstraintProto.java.

◆ buildPartial()

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

Definition at line 324 of file NoOverlapConstraintProto.java.

◆ clear()

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

Definition at line 296 of file NoOverlapConstraintProto.java.

◆ clearIntervals()

Builder com.google.ortools.sat.NoOverlapConstraintProto.Builder.clearIntervals ( )

repeated int32 intervals = 1;

Returns
This builder for chaining.

Definition at line 498 of file NoOverlapConstraintProto.java.

◆ getDefaultInstanceForType()

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

Definition at line 310 of file NoOverlapConstraintProto.java.

◆ getDescriptor()

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

Definition at line 273 of file NoOverlapConstraintProto.java.

◆ getDescriptorForType()

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

Definition at line 305 of file NoOverlapConstraintProto.java.

◆ getIntervals()

int com.google.ortools.sat.NoOverlapConstraintProto.Builder.getIntervals ( int index)

repeated int32 intervals = 1;

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

Implements com.google.ortools.sat.NoOverlapConstraintProtoOrBuilder.

Definition at line 449 of file NoOverlapConstraintProto.java.

◆ getIntervalsCount()

int com.google.ortools.sat.NoOverlapConstraintProto.Builder.getIntervalsCount ( )

repeated int32 intervals = 1;

Returns
The count of intervals.

Implements com.google.ortools.sat.NoOverlapConstraintProtoOrBuilder.

Definition at line 441 of file NoOverlapConstraintProto.java.

◆ getIntervalsList()

java.util.List< java.lang.Integer > com.google.ortools.sat.NoOverlapConstraintProto.Builder.getIntervalsList ( )

repeated int32 intervals = 1;

Returns
A list containing the intervals.

Implements com.google.ortools.sat.NoOverlapConstraintProtoOrBuilder.

Definition at line 433 of file NoOverlapConstraintProto.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 279 of file NoOverlapConstraintProto.java.

◆ isInitialized()

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

Definition at line 368 of file NoOverlapConstraintProto.java.

◆ mergeFrom() [1/3]

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

Definition at line 349 of file NoOverlapConstraintProto.java.

◆ mergeFrom() [2/3]

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

Definition at line 373 of file NoOverlapConstraintProto.java.

◆ mergeFrom() [3/3]

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

Definition at line 340 of file NoOverlapConstraintProto.java.

◆ setIntervals()

Builder com.google.ortools.sat.NoOverlapConstraintProto.Builder.setIntervals ( int index,
int value )

repeated int32 intervals = 1;

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

Definition at line 458 of file NoOverlapConstraintProto.java.


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