Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.sat.ElementConstraintProto Class Reference

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 17 of file ElementConstraintProto.java.

Inheritance diagram for com.google.ortools.sat.ElementConstraintProto:
com.google.ortools.sat.ElementConstraintProtoOrBuilder

Classes

class  Builder

Public Member Functions

int getIndex ()
int getTarget ()
java.util.List< java.lang.Integer > getVarsList ()
int getVarsCount ()
int getVars (int index)
boolean hasLinearIndex ()
com.google.ortools.sat.LinearExpressionProto getLinearIndex ()
com.google.ortools.sat.LinearExpressionProtoOrBuilder getLinearIndexOrBuilder ()
boolean hasLinearTarget ()
com.google.ortools.sat.LinearExpressionProto getLinearTarget ()
com.google.ortools.sat.LinearExpressionProtoOrBuilder getLinearTargetOrBuilder ()
java.util.List< com.google.ortools.sat.LinearExpressionProtogetExprsList ()
java.util.List<? extends com.google.ortools.sat.LinearExpressionProtoOrBuildergetExprsOrBuilderList ()
int getExprsCount ()
com.google.ortools.sat.LinearExpressionProto getExprs (int index)
com.google.ortools.sat.LinearExpressionProtoOrBuilder getExprsOrBuilder (int index)
final boolean isInitialized ()
void writeTo (com.google.protobuf.CodedOutputStream output) throws java.io.IOException
int getSerializedSize ()
boolean equals (final java.lang.Object obj)
int hashCode ()
Builder newBuilderForType ()
Builder toBuilder ()
com.google.protobuf.Parser< ElementConstraintProtogetParserForType ()
com.google.ortools.sat.ElementConstraintProto getDefaultInstanceForType ()

Static Public Member Functions

static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
static com.google.ortools.sat.ElementConstraintProto parseFrom (java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
static com.google.ortools.sat.ElementConstraintProto parseFrom (java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
static com.google.ortools.sat.ElementConstraintProto parseFrom (com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
static com.google.ortools.sat.ElementConstraintProto parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
static com.google.ortools.sat.ElementConstraintProto parseFrom (byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
static com.google.ortools.sat.ElementConstraintProto parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
static com.google.ortools.sat.ElementConstraintProto parseFrom (java.io.InputStream input) throws java.io.IOException
static com.google.ortools.sat.ElementConstraintProto parseFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
static com.google.ortools.sat.ElementConstraintProto parseDelimitedFrom (java.io.InputStream input) throws java.io.IOException
static com.google.ortools.sat.ElementConstraintProto parseDelimitedFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
static com.google.ortools.sat.ElementConstraintProto parseFrom (com.google.protobuf.CodedInputStream input) throws java.io.IOException
static com.google.ortools.sat.ElementConstraintProto parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
static Builder newBuilder ()
static Builder newBuilder (com.google.ortools.sat.ElementConstraintProto prototype)
static com.google.ortools.sat.ElementConstraintProto getDefaultInstance ()
static com.google.protobuf.Parser< ElementConstraintProtoparser ()

Static Public Attributes

static final int INDEX_FIELD_NUMBER = 1
static final int TARGET_FIELD_NUMBER = 2
static final int VARS_FIELD_NUMBER = 3
static final int LINEAR_INDEX_FIELD_NUMBER = 4
static final int LINEAR_TARGET_FIELD_NUMBER = 5
static final int EXPRS_FIELD_NUMBER = 6

Protected Member Functions

com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable ()
Builder newBuilderForType (com.google.protobuf.GeneratedMessage.BuilderParent parent)

Member Function Documentation

◆ equals()

boolean com.google.ortools.sat.ElementConstraintProto.equals ( final java.lang.Object obj)

Definition at line 317 of file ElementConstraintProto.java.

◆ getDefaultInstance()

com.google.ortools.sat.ElementConstraintProto com.google.ortools.sat.ElementConstraintProto.getDefaultInstance ( )
static

Definition at line 1495 of file ElementConstraintProto.java.

◆ getDefaultInstanceForType()

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

Definition at line 1531 of file ElementConstraintProto.java.

◆ getDescriptor()

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

Definition at line 41 of file ElementConstraintProto.java.

◆ getExprs()

com.google.ortools.sat.LinearExpressionProto com.google.ortools.sat.ElementConstraintProto.getExprs ( int index)

repeated .operations_research.sat.LinearExpressionProto exprs = 6;

Implements com.google.ortools.sat.ElementConstraintProtoOrBuilder.

Definition at line 219 of file ElementConstraintProto.java.

◆ getExprsCount()

int com.google.ortools.sat.ElementConstraintProto.getExprsCount ( )

repeated .operations_research.sat.LinearExpressionProto exprs = 6;

Implements com.google.ortools.sat.ElementConstraintProtoOrBuilder.

Definition at line 212 of file ElementConstraintProto.java.

◆ getExprsList()

java.util.List< com.google.ortools.sat.LinearExpressionProto > com.google.ortools.sat.ElementConstraintProto.getExprsList ( )

repeated .operations_research.sat.LinearExpressionProto exprs = 6;

Implements com.google.ortools.sat.ElementConstraintProtoOrBuilder.

Definition at line 197 of file ElementConstraintProto.java.

◆ getExprsOrBuilder()

com.google.ortools.sat.LinearExpressionProtoOrBuilder com.google.ortools.sat.ElementConstraintProto.getExprsOrBuilder ( int index)

repeated .operations_research.sat.LinearExpressionProto exprs = 6;

Implements com.google.ortools.sat.ElementConstraintProtoOrBuilder.

Definition at line 226 of file ElementConstraintProto.java.

◆ getExprsOrBuilderList()

java.util.List<? extends com.google.ortools.sat.LinearExpressionProtoOrBuilder > com.google.ortools.sat.ElementConstraintProto.getExprsOrBuilderList ( )

repeated .operations_research.sat.LinearExpressionProto exprs = 6;

Implements com.google.ortools.sat.ElementConstraintProtoOrBuilder.

Definition at line 205 of file ElementConstraintProto.java.

◆ getIndex()

int com.google.ortools.sat.ElementConstraintProto.getIndex ( )
Legacy field.

int32 index = 1;

Returns
The index.

Implements com.google.ortools.sat.ElementConstraintProtoOrBuilder.

Definition at line 65 of file ElementConstraintProto.java.

◆ getLinearIndex()

com.google.ortools.sat.LinearExpressionProto com.google.ortools.sat.ElementConstraintProto.getLinearIndex ( )
All expressions below must be affine function with at most one variable.

.operations_research.sat.LinearExpressionProto linear_index = 4;

Returns
The linearIndex.

Implements com.google.ortools.sat.ElementConstraintProtoOrBuilder.

Definition at line 149 of file ElementConstraintProto.java.

◆ getLinearIndexOrBuilder()

com.google.ortools.sat.LinearExpressionProtoOrBuilder com.google.ortools.sat.ElementConstraintProto.getLinearIndexOrBuilder ( )
All expressions below must be affine function with at most one variable.

.operations_research.sat.LinearExpressionProto linear_index = 4;

Implements com.google.ortools.sat.ElementConstraintProtoOrBuilder.

Definition at line 160 of file ElementConstraintProto.java.

◆ getLinearTarget()

com.google.ortools.sat.LinearExpressionProto com.google.ortools.sat.ElementConstraintProto.getLinearTarget ( )

.operations_research.sat.LinearExpressionProto linear_target = 5;

Returns
The linearTarget.

Implements com.google.ortools.sat.ElementConstraintProtoOrBuilder.

Definition at line 179 of file ElementConstraintProto.java.

◆ getLinearTargetOrBuilder()

com.google.ortools.sat.LinearExpressionProtoOrBuilder com.google.ortools.sat.ElementConstraintProto.getLinearTargetOrBuilder ( )

.operations_research.sat.LinearExpressionProto linear_target = 5;

Implements com.google.ortools.sat.ElementConstraintProtoOrBuilder.

Definition at line 186 of file ElementConstraintProto.java.

◆ getParserForType()

com.google.protobuf.Parser< ElementConstraintProto > com.google.ortools.sat.ElementConstraintProto.getParserForType ( )

Definition at line 1526 of file ElementConstraintProto.java.

◆ getSerializedSize()

int com.google.ortools.sat.ElementConstraintProto.getSerializedSize ( )

Definition at line 272 of file ElementConstraintProto.java.

◆ getTarget()

int com.google.ortools.sat.ElementConstraintProto.getTarget ( )
Legacy field.

int32 target = 2;

Returns
The target.

Implements com.google.ortools.sat.ElementConstraintProtoOrBuilder.

Definition at line 80 of file ElementConstraintProto.java.

◆ getVars()

int com.google.ortools.sat.ElementConstraintProto.getVars ( int index)
Legacy field.

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 121 of file ElementConstraintProto.java.

◆ getVarsCount()

int com.google.ortools.sat.ElementConstraintProto.getVarsCount ( )
Legacy field.

repeated int32 vars = 3;

Returns
The count of vars.

Implements com.google.ortools.sat.ElementConstraintProtoOrBuilder.

Definition at line 109 of file ElementConstraintProto.java.

◆ getVarsList()

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

repeated int32 vars = 3;

Returns
A list containing the vars.

Implements com.google.ortools.sat.ElementConstraintProtoOrBuilder.

Definition at line 98 of file ElementConstraintProto.java.

◆ hashCode()

int com.google.ortools.sat.ElementConstraintProto.hashCode ( )

Definition at line 349 of file ElementConstraintProto.java.

◆ hasLinearIndex()

boolean com.google.ortools.sat.ElementConstraintProto.hasLinearIndex ( )
All expressions below must be affine function with at most one variable.

.operations_research.sat.LinearExpressionProto linear_index = 4;

Returns
Whether the linearIndex field is set.

Implements com.google.ortools.sat.ElementConstraintProtoOrBuilder.

Definition at line 137 of file ElementConstraintProto.java.

◆ hasLinearTarget()

boolean com.google.ortools.sat.ElementConstraintProto.hasLinearTarget ( )

.operations_research.sat.LinearExpressionProto linear_target = 5;

Returns
Whether the linearTarget field is set.

Implements com.google.ortools.sat.ElementConstraintProtoOrBuilder.

Definition at line 171 of file ElementConstraintProto.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 47 of file ElementConstraintProto.java.

◆ isInitialized()

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

Definition at line 233 of file ElementConstraintProto.java.

◆ newBuilder() [1/2]

Builder com.google.ortools.sat.ElementConstraintProto.newBuilder ( )
static

Definition at line 454 of file ElementConstraintProto.java.

◆ newBuilder() [2/2]

Builder com.google.ortools.sat.ElementConstraintProto.newBuilder ( com.google.ortools.sat.ElementConstraintProto prototype)
static

Definition at line 457 of file ElementConstraintProto.java.

◆ newBuilderForType() [1/2]

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

Definition at line 453 of file ElementConstraintProto.java.

◆ newBuilderForType() [2/2]

Builder com.google.ortools.sat.ElementConstraintProto.newBuilderForType ( com.google.protobuf.GeneratedMessage.BuilderParent parent)
protected

Definition at line 467 of file ElementConstraintProto.java.

◆ parseDelimitedFrom() [1/2]

com.google.ortools.sat.ElementConstraintProto com.google.ortools.sat.ElementConstraintProto.parseDelimitedFrom ( java.io.InputStream input) throws java.io.IOException
static

Definition at line 425 of file ElementConstraintProto.java.

◆ parseDelimitedFrom() [2/2]

com.google.ortools.sat.ElementConstraintProto com.google.ortools.sat.ElementConstraintProto.parseDelimitedFrom ( java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws java.io.IOException
static

Definition at line 431 of file ElementConstraintProto.java.

◆ parseFrom() [1/10]

com.google.ortools.sat.ElementConstraintProto com.google.ortools.sat.ElementConstraintProto.parseFrom ( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 402 of file ElementConstraintProto.java.

◆ parseFrom() [2/10]

com.google.ortools.sat.ElementConstraintProto com.google.ortools.sat.ElementConstraintProto.parseFrom ( byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 406 of file ElementConstraintProto.java.

◆ parseFrom() [3/10]

com.google.ortools.sat.ElementConstraintProto com.google.ortools.sat.ElementConstraintProto.parseFrom ( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 391 of file ElementConstraintProto.java.

◆ parseFrom() [4/10]

com.google.ortools.sat.ElementConstraintProto com.google.ortools.sat.ElementConstraintProto.parseFrom ( com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 396 of file ElementConstraintProto.java.

◆ parseFrom() [5/10]

com.google.ortools.sat.ElementConstraintProto com.google.ortools.sat.ElementConstraintProto.parseFrom ( com.google.protobuf.CodedInputStream input) throws java.io.IOException
static

Definition at line 438 of file ElementConstraintProto.java.

◆ parseFrom() [6/10]

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

Definition at line 444 of file ElementConstraintProto.java.

◆ parseFrom() [7/10]

com.google.ortools.sat.ElementConstraintProto com.google.ortools.sat.ElementConstraintProto.parseFrom ( java.io.InputStream input) throws java.io.IOException
static

Definition at line 412 of file ElementConstraintProto.java.

◆ parseFrom() [8/10]

com.google.ortools.sat.ElementConstraintProto com.google.ortools.sat.ElementConstraintProto.parseFrom ( java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws java.io.IOException
static

Definition at line 417 of file ElementConstraintProto.java.

◆ parseFrom() [9/10]

com.google.ortools.sat.ElementConstraintProto com.google.ortools.sat.ElementConstraintProto.parseFrom ( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 380 of file ElementConstraintProto.java.

◆ parseFrom() [10/10]

com.google.ortools.sat.ElementConstraintProto com.google.ortools.sat.ElementConstraintProto.parseFrom ( java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 385 of file ElementConstraintProto.java.

◆ parser()

com.google.protobuf.Parser< ElementConstraintProto > com.google.ortools.sat.ElementConstraintProto.parser ( )
static

Definition at line 1521 of file ElementConstraintProto.java.

◆ toBuilder()

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

Definition at line 461 of file ElementConstraintProto.java.

◆ writeTo()

void com.google.ortools.sat.ElementConstraintProto.writeTo ( com.google.protobuf.CodedOutputStream output) throws java.io.IOException

Definition at line 243 of file ElementConstraintProto.java.

Member Data Documentation

◆ EXPRS_FIELD_NUMBER

final int com.google.ortools.sat.ElementConstraintProto.EXPRS_FIELD_NUMBER = 6
static

Definition at line 190 of file ElementConstraintProto.java.

◆ INDEX_FIELD_NUMBER

final int com.google.ortools.sat.ElementConstraintProto.INDEX_FIELD_NUMBER = 1
static

Definition at line 54 of file ElementConstraintProto.java.

◆ LINEAR_INDEX_FIELD_NUMBER

final int com.google.ortools.sat.ElementConstraintProto.LINEAR_INDEX_FIELD_NUMBER = 4
static

Definition at line 126 of file ElementConstraintProto.java.

◆ LINEAR_TARGET_FIELD_NUMBER

final int com.google.ortools.sat.ElementConstraintProto.LINEAR_TARGET_FIELD_NUMBER = 5
static

Definition at line 164 of file ElementConstraintProto.java.

◆ TARGET_FIELD_NUMBER

final int com.google.ortools.sat.ElementConstraintProto.TARGET_FIELD_NUMBER = 2
static

Definition at line 69 of file ElementConstraintProto.java.

◆ VARS_FIELD_NUMBER

final int com.google.ortools.sat.ElementConstraintProto.VARS_FIELD_NUMBER = 3
static

Definition at line 84 of file ElementConstraintProto.java.


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