Google OR-Tools v9.9
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.sat.ElementConstraintProto Class Reference
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)
 
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
 

Protected Member Functions

java.lang.Object newInstance (UnusedPrivateParameter unused)
 
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable ()
 
Builder newBuilderForType (com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
 

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

Member Function Documentation

◆ equals()

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

Definition at line 165 of file ElementConstraintProto.java.

◆ getDefaultInstance()

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

Definition at line 682 of file ElementConstraintProto.java.

◆ getDefaultInstanceForType()

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

Definition at line 718 of file ElementConstraintProto.java.

◆ getDescriptor()

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

Definition at line 36 of file ElementConstraintProto.java.

◆ getIndex()

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

int32 index = 1;

Returns
The index.

Implements com.google.ortools.sat.ElementConstraintProtoOrBuilder.

Definition at line 55 of file ElementConstraintProto.java.

◆ getParserForType()

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

Definition at line 713 of file ElementConstraintProto.java.

◆ getSerializedSize()

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

Definition at line 132 of file ElementConstraintProto.java.

◆ getTarget()

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

int32 target = 2;

Returns
The target.

Implements com.google.ortools.sat.ElementConstraintProtoOrBuilder.

Definition at line 66 of file ElementConstraintProto.java.

◆ getVars()

int com.google.ortools.sat.ElementConstraintProto.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 95 of file ElementConstraintProto.java.

◆ getVarsCount()

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

repeated int32 vars = 3;

Returns
The count of vars.

Implements com.google.ortools.sat.ElementConstraintProtoOrBuilder.

Definition at line 87 of file ElementConstraintProto.java.

◆ getVarsList()

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

repeated int32 vars = 3;

Returns
A list containing the vars.

Implements com.google.ortools.sat.ElementConstraintProtoOrBuilder.

Definition at line 80 of file ElementConstraintProto.java.

◆ hashCode()

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

Definition at line 185 of file ElementConstraintProto.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 42 of file ElementConstraintProto.java.

◆ isInitialized()

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

Definition at line 102 of file ElementConstraintProto.java.

◆ newBuilder() [1/2]

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

Definition at line 278 of file ElementConstraintProto.java.

◆ newBuilder() [2/2]

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

Definition at line 281 of file ElementConstraintProto.java.

◆ newBuilderForType() [1/2]

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

Definition at line 277 of file ElementConstraintProto.java.

◆ newBuilderForType() [2/2]

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

Definition at line 291 of file ElementConstraintProto.java.

◆ newInstance()

java.lang.Object com.google.ortools.sat.ElementConstraintProto.newInstance ( UnusedPrivateParameter unused)
protected

Definition at line 30 of file ElementConstraintProto.java.

◆ parseDelimitedFrom() [1/2]

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

Definition at line 249 of file ElementConstraintProto.java.

◆ parseDelimitedFrom() [2/2]

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

◆ parseFrom() [1/10]

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

Definition at line 226 of file ElementConstraintProto.java.

◆ parseFrom() [2/10]

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

◆ parseFrom() [3/10]

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

◆ parseFrom() [4/10]

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

◆ parseFrom() [5/10]

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

Definition at line 262 of file ElementConstraintProto.java.

◆ parseFrom() [6/10]

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

◆ parseFrom() [7/10]

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

Definition at line 236 of file ElementConstraintProto.java.

◆ parseFrom() [8/10]

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

◆ parseFrom() [9/10]

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

Definition at line 204 of file ElementConstraintProto.java.

◆ parseFrom() [10/10]

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

◆ parser()

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

Definition at line 708 of file ElementConstraintProto.java.

◆ toBuilder()

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

Definition at line 285 of file ElementConstraintProto.java.

◆ writeTo()

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

Definition at line 112 of file ElementConstraintProto.java.

Member Data Documentation

◆ INDEX_FIELD_NUMBER

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

Definition at line 48 of file ElementConstraintProto.java.

◆ TARGET_FIELD_NUMBER

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

Definition at line 59 of file ElementConstraintProto.java.

◆ VARS_FIELD_NUMBER

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

Definition at line 70 of file ElementConstraintProto.java.


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