Java Reference

Java Reference

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 328 of file NoOverlapConstraintProto.java.

Public Member Functions

.lang.Override Builder clear ()
 
.lang.Override com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
 
.lang.Override com.google.ortools.sat.NoOverlapConstraintProto getDefaultInstanceForType ()
 
.lang.Override com.google.ortools.sat.NoOverlapConstraintProto build ()
 
.lang.Override com.google.ortools.sat.NoOverlapConstraintProto buildPartial ()
 
.lang.Override Builder clone ()
 
.lang.Override Builder setField (com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
 
.lang.Override Builder clearField (com.google.protobuf.Descriptors.FieldDescriptor field)
 
.lang.Override Builder clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof)
 
.lang.Override Builder setRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
 
.lang.Override Builder addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
 
.lang.Override Builder mergeFrom (com.google.protobuf.Message other)
 
Builder mergeFrom (com.google.ortools.sat.NoOverlapConstraintProto other)
 
.lang.Override final boolean isInitialized ()
 
.lang.Override Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
java.util.List< java.lang.Integer > getIntervalsList ()
 repeated int32 intervals = 1; More...
 
int getIntervalsCount ()
 repeated int32 intervals = 1; More...
 
int getIntervals (int index)
 repeated int32 intervals = 1; More...
 
Builder setIntervals (int index, int value)
 repeated int32 intervals = 1; More...
 
Builder addIntervals (int value)
 repeated int32 intervals = 1; More...
 
Builder addAllIntervals (java.lang.Iterable<? extends java.lang.Integer > values)
 repeated int32 intervals = 1; More...
 
Builder clearIntervals ()
 repeated int32 intervals = 1; More...
 
.lang.Override final Builder setUnknownFields (final com.google.protobuf.UnknownFieldSet unknownFields)
 
.lang.Override final Builder mergeUnknownFields (final com.google.protobuf.UnknownFieldSet unknownFields)
 

Static Public Member Functions

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

Protected Member Functions

.lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable ()
 

Member Function Documentation

◆ addAllIntervals()

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 545 of file NoOverlapConstraintProto.java.

◆ addIntervals()

Builder addIntervals ( int  value)

repeated int32 intervals = 1;

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

Definition at line 534 of file NoOverlapConstraintProto.java.

◆ addRepeatedField()

.lang.Override Builder addRepeatedField ( com.google.protobuf.Descriptors.FieldDescriptor  field,
java.lang.Object  value 
)

Definition at line 428 of file NoOverlapConstraintProto.java.

◆ build()

Definition at line 380 of file NoOverlapConstraintProto.java.

◆ buildPartial()

.lang.Override com.google.ortools.sat.NoOverlapConstraintProto buildPartial ( )

Definition at line 389 of file NoOverlapConstraintProto.java.

◆ clear()

.lang.Override Builder clear ( )

Definition at line 361 of file NoOverlapConstraintProto.java.

◆ clearField()

.lang.Override Builder clearField ( com.google.protobuf.Descriptors.FieldDescriptor  field)

Definition at line 412 of file NoOverlapConstraintProto.java.

◆ clearIntervals()

Builder clearIntervals ( )

repeated int32 intervals = 1;

Returns
This builder for chaining.

Definition at line 557 of file NoOverlapConstraintProto.java.

◆ clearOneof()

.lang.Override Builder clearOneof ( com.google.protobuf.Descriptors.OneofDescriptor  oneof)

Definition at line 417 of file NoOverlapConstraintProto.java.

◆ clone()

.lang.Override Builder clone ( )

Definition at line 402 of file NoOverlapConstraintProto.java.

◆ getDefaultInstanceForType()

.lang.Override com.google.ortools.sat.NoOverlapConstraintProto getDefaultInstanceForType ( )

Definition at line 375 of file NoOverlapConstraintProto.java.

◆ getDescriptor()

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

Definition at line 333 of file NoOverlapConstraintProto.java.

◆ getDescriptorForType()

.lang.Override com.google.protobuf.Descriptors.Descriptor getDescriptorForType ( )

Definition at line 370 of file NoOverlapConstraintProto.java.

◆ getIntervals()

int getIntervals ( int  index)

repeated int32 intervals = 1;

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

Implements NoOverlapConstraintProtoOrBuilder.

Definition at line 513 of file NoOverlapConstraintProto.java.

◆ getIntervalsCount()

int getIntervalsCount ( )

repeated int32 intervals = 1;

Returns
The count of intervals.

Implements NoOverlapConstraintProtoOrBuilder.

Definition at line 505 of file NoOverlapConstraintProto.java.

◆ getIntervalsList()

java.util.List<java.lang.Integer> getIntervalsList ( )

repeated int32 intervals = 1;

Returns
A list containing the intervals.

Implements NoOverlapConstraintProtoOrBuilder.

Definition at line 497 of file NoOverlapConstraintProto.java.

◆ internalGetFieldAccessorTable()

.lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable ( )
protected

Definition at line 339 of file NoOverlapConstraintProto.java.

◆ isInitialized()

.lang.Override final boolean isInitialized ( )

Definition at line 461 of file NoOverlapConstraintProto.java.

◆ mergeFrom() [1/3]

◆ mergeFrom() [2/3]

.lang.Override Builder mergeFrom ( com.google.protobuf.CodedInputStream  input,
com.google.protobuf.ExtensionRegistryLite  extensionRegistry 
) throws java.io.IOException

Definition at line 466 of file NoOverlapConstraintProto.java.

◆ mergeFrom() [3/3]

.lang.Override Builder mergeFrom ( com.google.protobuf.Message  other)

Definition at line 434 of file NoOverlapConstraintProto.java.

◆ mergeUnknownFields()

.lang.Override final Builder mergeUnknownFields ( final com.google.protobuf.UnknownFieldSet  unknownFields)

Definition at line 570 of file NoOverlapConstraintProto.java.

◆ setField()

.lang.Override Builder setField ( com.google.protobuf.Descriptors.FieldDescriptor  field,
java.lang.Object  value 
)

Definition at line 406 of file NoOverlapConstraintProto.java.

◆ setIntervals()

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 522 of file NoOverlapConstraintProto.java.

◆ setRepeatedField()

.lang.Override Builder setRepeatedField ( com.google.protobuf.Descriptors.FieldDescriptor  field,
int  index,
java.lang.Object  value 
)

Definition at line 422 of file NoOverlapConstraintProto.java.

◆ setUnknownFields()

.lang.Override final Builder setUnknownFields ( final com.google.protobuf.UnknownFieldSet  unknownFields)

Definition at line 564 of file NoOverlapConstraintProto.java.


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