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

Detailed Description

The two arrays of variable each represent a function, the second is the
inverse of the first: f_direct[i] == j <=> f_inverse[j] == i.

Protobuf type operations_research.sat.InverseConstraintProto

Definition at line 17 of file InverseConstraintProto.java.

Inheritance diagram for com.google.ortools.sat.InverseConstraintProto:
com.google.ortools.sat.InverseConstraintProtoOrBuilder

Classes

class  Builder

Public Member Functions

java.util.List< java.lang.Integer > getFDirectList ()
int getFDirectCount ()
int getFDirect (int index)
java.util.List< java.lang.Integer > getFInverseList ()
int getFInverseCount ()
int getFInverse (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< InverseConstraintProtogetParserForType ()
com.google.ortools.sat.InverseConstraintProto getDefaultInstanceForType ()

Static Public Member Functions

static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
static com.google.ortools.sat.InverseConstraintProto parseFrom (java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
static com.google.ortools.sat.InverseConstraintProto parseFrom (java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
static com.google.ortools.sat.InverseConstraintProto parseFrom (com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
static com.google.ortools.sat.InverseConstraintProto parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
static com.google.ortools.sat.InverseConstraintProto parseFrom (byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
static com.google.ortools.sat.InverseConstraintProto parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
static com.google.ortools.sat.InverseConstraintProto parseFrom (java.io.InputStream input) throws java.io.IOException
static com.google.ortools.sat.InverseConstraintProto parseFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
static com.google.ortools.sat.InverseConstraintProto parseDelimitedFrom (java.io.InputStream input) throws java.io.IOException
static com.google.ortools.sat.InverseConstraintProto parseDelimitedFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
static com.google.ortools.sat.InverseConstraintProto parseFrom (com.google.protobuf.CodedInputStream input) throws java.io.IOException
static com.google.ortools.sat.InverseConstraintProto 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.InverseConstraintProto prototype)
static com.google.ortools.sat.InverseConstraintProto getDefaultInstance ()
static com.google.protobuf.Parser< InverseConstraintProtoparser ()

Static Public Attributes

static final int F_DIRECT_FIELD_NUMBER = 1
static final int F_INVERSE_FIELD_NUMBER = 2

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.InverseConstraintProto.equals ( final java.lang.Object obj)

Definition at line 185 of file InverseConstraintProto.java.

◆ getDefaultInstance()

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

Definition at line 684 of file InverseConstraintProto.java.

◆ getDefaultInstanceForType()

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

Definition at line 720 of file InverseConstraintProto.java.

◆ getDescriptor()

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

Definition at line 41 of file InverseConstraintProto.java.

◆ getFDirect()

int com.google.ortools.sat.InverseConstraintProto.getFDirect ( int index)

repeated int32 f_direct = 1;

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

Implements com.google.ortools.sat.InverseConstraintProtoOrBuilder.

Definition at line 78 of file InverseConstraintProto.java.

◆ getFDirectCount()

int com.google.ortools.sat.InverseConstraintProto.getFDirectCount ( )

repeated int32 f_direct = 1;

Returns
The count of fDirect.

Implements com.google.ortools.sat.InverseConstraintProtoOrBuilder.

Definition at line 70 of file InverseConstraintProto.java.

◆ getFDirectList()

java.util.List< java.lang.Integer > com.google.ortools.sat.InverseConstraintProto.getFDirectList ( )

repeated int32 f_direct = 1;

Returns
A list containing the fDirect.

Implements com.google.ortools.sat.InverseConstraintProtoOrBuilder.

Definition at line 63 of file InverseConstraintProto.java.

◆ getFInverse()

int com.google.ortools.sat.InverseConstraintProto.getFInverse ( int index)

repeated int32 f_inverse = 2;

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

Implements com.google.ortools.sat.InverseConstraintProtoOrBuilder.

Definition at line 108 of file InverseConstraintProto.java.

◆ getFInverseCount()

int com.google.ortools.sat.InverseConstraintProto.getFInverseCount ( )

repeated int32 f_inverse = 2;

Returns
The count of fInverse.

Implements com.google.ortools.sat.InverseConstraintProtoOrBuilder.

Definition at line 100 of file InverseConstraintProto.java.

◆ getFInverseList()

java.util.List< java.lang.Integer > com.google.ortools.sat.InverseConstraintProto.getFInverseList ( )

repeated int32 f_inverse = 2;

Returns
A list containing the fInverse.

Implements com.google.ortools.sat.InverseConstraintProtoOrBuilder.

Definition at line 93 of file InverseConstraintProto.java.

◆ getParserForType()

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

Definition at line 715 of file InverseConstraintProto.java.

◆ getSerializedSize()

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

Definition at line 146 of file InverseConstraintProto.java.

◆ hashCode()

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

Definition at line 203 of file InverseConstraintProto.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 47 of file InverseConstraintProto.java.

◆ isInitialized()

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

Definition at line 115 of file InverseConstraintProto.java.

◆ newBuilder() [1/2]

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

Definition at line 296 of file InverseConstraintProto.java.

◆ newBuilder() [2/2]

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

Definition at line 299 of file InverseConstraintProto.java.

◆ newBuilderForType() [1/2]

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

Definition at line 295 of file InverseConstraintProto.java.

◆ newBuilderForType() [2/2]

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

Definition at line 309 of file InverseConstraintProto.java.

◆ parseDelimitedFrom() [1/2]

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

Definition at line 267 of file InverseConstraintProto.java.

◆ parseDelimitedFrom() [2/2]

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

Definition at line 273 of file InverseConstraintProto.java.

◆ parseFrom() [1/10]

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

Definition at line 244 of file InverseConstraintProto.java.

◆ parseFrom() [2/10]

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

Definition at line 248 of file InverseConstraintProto.java.

◆ parseFrom() [3/10]

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

Definition at line 233 of file InverseConstraintProto.java.

◆ parseFrom() [4/10]

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

Definition at line 238 of file InverseConstraintProto.java.

◆ parseFrom() [5/10]

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

Definition at line 280 of file InverseConstraintProto.java.

◆ parseFrom() [6/10]

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

Definition at line 286 of file InverseConstraintProto.java.

◆ parseFrom() [7/10]

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

Definition at line 254 of file InverseConstraintProto.java.

◆ parseFrom() [8/10]

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

Definition at line 259 of file InverseConstraintProto.java.

◆ parseFrom() [9/10]

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

Definition at line 222 of file InverseConstraintProto.java.

◆ parseFrom() [10/10]

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

Definition at line 227 of file InverseConstraintProto.java.

◆ parser()

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

Definition at line 710 of file InverseConstraintProto.java.

◆ toBuilder()

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

Definition at line 303 of file InverseConstraintProto.java.

◆ writeTo()

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

Definition at line 125 of file InverseConstraintProto.java.

Member Data Documentation

◆ F_DIRECT_FIELD_NUMBER

final int com.google.ortools.sat.InverseConstraintProto.F_DIRECT_FIELD_NUMBER = 1
static

Definition at line 53 of file InverseConstraintProto.java.

◆ F_INVERSE_FIELD_NUMBER

final int com.google.ortools.sat.InverseConstraintProto.F_INVERSE_FIELD_NUMBER = 2
static

Definition at line 83 of file InverseConstraintProto.java.


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