Java Reference

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

Classes

class  Builder
 

Public Member Functions

.lang.Override final com.google.protobuf.UnknownFieldSet getUnknownFields ()
 
.lang.Override int getIndex ()
 int32 index = 1; More...
 
.lang.Override int getTarget ()
 int32 target = 2; More...
 
.lang.Override java.util.List< java.lang.Integer > getVarsList ()
 repeated int32 vars = 3; More...
 
int getVarsCount ()
 repeated int32 vars = 3; More...
 
int getVars (int index)
 repeated int32 vars = 3; More...
 
.lang.Override final boolean isInitialized ()
 
.lang.Override void writeTo (com.google.protobuf.CodedOutputStream output) throws java.io.IOException
 
.lang.Override int getSerializedSize ()
 
.lang.Override boolean equals (final java.lang.Object obj)
 
.lang.Override int hashCode ()
 
.lang.Override Builder newBuilderForType ()
 
.lang.Override Builder toBuilder ()
 
.lang.Override com.google.protobuf.Parser< ElementConstraintProtogetParserForType ()
 
.lang.Override 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

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

Member Function Documentation

◆ equals()

.lang.Override boolean equals ( final java.lang.Object  obj)

Definition at line 239 of file ElementConstraintProto.java.

◆ getDefaultInstance()

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

Definition at line 707 of file ElementConstraintProto.java.

◆ getDefaultInstanceForType()

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

Definition at line 732 of file ElementConstraintProto.java.

◆ getDescriptor()

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

Definition at line 112 of file ElementConstraintProto.java.

◆ getIndex()

.lang.Override int getIndex ( )

int32 index = 1;

Returns
The index.

Implements ElementConstraintProtoOrBuilder.

Definition at line 131 of file ElementConstraintProto.java.

◆ getParserForType()

.lang.Override com.google.protobuf.Parser<ElementConstraintProto> getParserForType ( )

Definition at line 727 of file ElementConstraintProto.java.

◆ getSerializedSize()

.lang.Override int getSerializedSize ( )

Definition at line 206 of file ElementConstraintProto.java.

◆ getTarget()

.lang.Override int getTarget ( )

int32 target = 2;

Returns
The target.

Implements ElementConstraintProtoOrBuilder.

Definition at line 142 of file ElementConstraintProto.java.

◆ getUnknownFields()

.lang.Override final com.google.protobuf.UnknownFieldSet getUnknownFields ( )

Definition at line 36 of file ElementConstraintProto.java.

◆ getVars()

int getVars ( int  index)

repeated int32 vars = 3;

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

Implements ElementConstraintProtoOrBuilder.

Definition at line 169 of file ElementConstraintProto.java.

◆ getVarsCount()

int getVarsCount ( )

repeated int32 vars = 3;

Returns
The count of vars.

Implements ElementConstraintProtoOrBuilder.

Definition at line 161 of file ElementConstraintProto.java.

◆ getVarsList()

.lang.Override java.util.List<java.lang.Integer> getVarsList ( )

repeated int32 vars = 3;

Returns
A list containing the vars.

Implements ElementConstraintProtoOrBuilder.

Definition at line 154 of file ElementConstraintProto.java.

◆ hashCode()

.lang.Override int hashCode ( )

Definition at line 259 of file ElementConstraintProto.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 118 of file ElementConstraintProto.java.

◆ isInitialized()

.lang.Override final boolean isInitialized ( )

Definition at line 176 of file ElementConstraintProto.java.

◆ newBuilder() [1/2]

static Builder newBuilder ( )
static

Definition at line 350 of file ElementConstraintProto.java.

◆ newBuilder() [2/2]

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

Definition at line 353 of file ElementConstraintProto.java.

◆ newBuilderForType() [1/2]

.lang.Override Builder newBuilderForType ( )

Definition at line 349 of file ElementConstraintProto.java.

◆ newBuilderForType() [2/2]

.lang.Override Builder newBuilderForType ( com.google.protobuf.GeneratedMessageV3.BuilderParent  parent)
protected

Definition at line 363 of file ElementConstraintProto.java.

◆ newInstance()

.lang.Override java.lang.Object newInstance ( UnusedPrivateParameter  unused)
protected

Definition at line 29 of file ElementConstraintProto.java.

◆ parseDelimitedFrom() [1/2]

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

Definition at line 322 of file ElementConstraintProto.java.

◆ parseDelimitedFrom() [2/2]

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

Definition at line 327 of file ElementConstraintProto.java.

◆ parseFrom() [1/10]

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

Definition at line 300 of file ElementConstraintProto.java.

◆ parseFrom() [2/10]

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

Definition at line 304 of file ElementConstraintProto.java.

◆ parseFrom() [3/10]

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

Definition at line 289 of file ElementConstraintProto.java.

◆ parseFrom() [4/10]

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

◆ parseFrom() [5/10]

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

Definition at line 334 of file ElementConstraintProto.java.

◆ parseFrom() [6/10]

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

Definition at line 340 of file ElementConstraintProto.java.

◆ parseFrom() [7/10]

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

Definition at line 310 of file ElementConstraintProto.java.

◆ parseFrom() [8/10]

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

Definition at line 315 of file ElementConstraintProto.java.

◆ parseFrom() [9/10]

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

Definition at line 278 of file ElementConstraintProto.java.

◆ parseFrom() [10/10]

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

Definition at line 283 of file ElementConstraintProto.java.

◆ parser()

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

Definition at line 722 of file ElementConstraintProto.java.

◆ toBuilder()

.lang.Override Builder toBuilder ( )

Definition at line 357 of file ElementConstraintProto.java.

◆ writeTo()

.lang.Override void writeTo ( com.google.protobuf.CodedOutputStream  output) throws java.io.IOException

Definition at line 186 of file ElementConstraintProto.java.

Member Data Documentation

◆ INDEX_FIELD_NUMBER

final int INDEX_FIELD_NUMBER = 1
static

Definition at line 124 of file ElementConstraintProto.java.

◆ TARGET_FIELD_NUMBER

final int TARGET_FIELD_NUMBER = 2
static

Definition at line 135 of file ElementConstraintProto.java.

◆ VARS_FIELD_NUMBER

final int VARS_FIELD_NUMBER = 3
static

Definition at line 146 of file ElementConstraintProto.java.


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