Google OR-Tools v9.9
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.sat.PartialVariableAssignment Class Reference
Inheritance diagram for com.google.ortools.sat.PartialVariableAssignment:
com.google.ortools.sat.PartialVariableAssignmentOrBuilder

Classes

class  Builder
 

Public Member Functions

java.util.List< java.lang.Integer > getVarsList ()
 
int getVarsCount ()
 
int getVars (int index)
 
java.util.List< java.lang.Long > getValuesList ()
 
int getValuesCount ()
 
long getValues (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< PartialVariableAssignmentgetParserForType ()
 
com.google.ortools.sat.PartialVariableAssignment getDefaultInstanceForType ()
 

Static Public Member Functions

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

Static Public Attributes

static final int VARS_FIELD_NUMBER = 1
 
static final int VALUES_FIELD_NUMBER = 2
 

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

This message encodes a partial (or full) assignment of the variables of a
CpModelProto. The variable indices should be unique and valid variable
indices.

Protobuf type operations_research.sat.PartialVariableAssignment

Definition at line 16 of file PartialVariableAssignment.java.

Member Function Documentation

◆ equals()

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

Definition at line 182 of file PartialVariableAssignment.java.

◆ getDefaultInstance()

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

Definition at line 726 of file PartialVariableAssignment.java.

◆ getDefaultInstanceForType()

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

Definition at line 762 of file PartialVariableAssignment.java.

◆ getDescriptor()

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

Definition at line 38 of file PartialVariableAssignment.java.

◆ getParserForType()

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

Definition at line 757 of file PartialVariableAssignment.java.

◆ getSerializedSize()

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

Definition at line 143 of file PartialVariableAssignment.java.

◆ getValues()

long com.google.ortools.sat.PartialVariableAssignment.getValues ( int index)

repeated int64 values = 2;

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

Implements com.google.ortools.sat.PartialVariableAssignmentOrBuilder.

Definition at line 105 of file PartialVariableAssignment.java.

◆ getValuesCount()

int com.google.ortools.sat.PartialVariableAssignment.getValuesCount ( )

repeated int64 values = 2;

Returns
The count of values.

Implements com.google.ortools.sat.PartialVariableAssignmentOrBuilder.

Definition at line 97 of file PartialVariableAssignment.java.

◆ getValuesList()

java.util.List< java.lang.Long > com.google.ortools.sat.PartialVariableAssignment.getValuesList ( )

repeated int64 values = 2;

Returns
A list containing the values.

Implements com.google.ortools.sat.PartialVariableAssignmentOrBuilder.

Definition at line 90 of file PartialVariableAssignment.java.

◆ getVars()

int com.google.ortools.sat.PartialVariableAssignment.getVars ( int index)

repeated int32 vars = 1;

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

Implements com.google.ortools.sat.PartialVariableAssignmentOrBuilder.

Definition at line 75 of file PartialVariableAssignment.java.

◆ getVarsCount()

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

repeated int32 vars = 1;

Returns
The count of vars.

Implements com.google.ortools.sat.PartialVariableAssignmentOrBuilder.

Definition at line 67 of file PartialVariableAssignment.java.

◆ getVarsList()

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

repeated int32 vars = 1;

Returns
A list containing the vars.

Implements com.google.ortools.sat.PartialVariableAssignmentOrBuilder.

Definition at line 60 of file PartialVariableAssignment.java.

◆ hashCode()

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

Definition at line 200 of file PartialVariableAssignment.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 44 of file PartialVariableAssignment.java.

◆ isInitialized()

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

Definition at line 112 of file PartialVariableAssignment.java.

◆ newBuilder() [1/2]

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

Definition at line 293 of file PartialVariableAssignment.java.

◆ newBuilder() [2/2]

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

Definition at line 296 of file PartialVariableAssignment.java.

◆ newBuilderForType() [1/2]

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

Definition at line 292 of file PartialVariableAssignment.java.

◆ newBuilderForType() [2/2]

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

Definition at line 306 of file PartialVariableAssignment.java.

◆ newInstance()

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

Definition at line 32 of file PartialVariableAssignment.java.

◆ parseDelimitedFrom() [1/2]

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

Definition at line 264 of file PartialVariableAssignment.java.

◆ parseDelimitedFrom() [2/2]

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

Definition at line 270 of file PartialVariableAssignment.java.

◆ parseFrom() [1/10]

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

Definition at line 241 of file PartialVariableAssignment.java.

◆ parseFrom() [2/10]

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

Definition at line 245 of file PartialVariableAssignment.java.

◆ parseFrom() [3/10]

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

Definition at line 230 of file PartialVariableAssignment.java.

◆ parseFrom() [4/10]

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

Definition at line 235 of file PartialVariableAssignment.java.

◆ parseFrom() [5/10]

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

Definition at line 277 of file PartialVariableAssignment.java.

◆ parseFrom() [6/10]

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

Definition at line 283 of file PartialVariableAssignment.java.

◆ parseFrom() [7/10]

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

Definition at line 251 of file PartialVariableAssignment.java.

◆ parseFrom() [8/10]

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

Definition at line 256 of file PartialVariableAssignment.java.

◆ parseFrom() [9/10]

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

Definition at line 219 of file PartialVariableAssignment.java.

◆ parseFrom() [10/10]

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

Definition at line 224 of file PartialVariableAssignment.java.

◆ parser()

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

Definition at line 752 of file PartialVariableAssignment.java.

◆ toBuilder()

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

Definition at line 300 of file PartialVariableAssignment.java.

◆ writeTo()

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

Definition at line 122 of file PartialVariableAssignment.java.

Member Data Documentation

◆ VALUES_FIELD_NUMBER

final int com.google.ortools.sat.PartialVariableAssignment.VALUES_FIELD_NUMBER = 2
static

Definition at line 80 of file PartialVariableAssignment.java.

◆ VARS_FIELD_NUMBER

final int com.google.ortools.sat.PartialVariableAssignment.VARS_FIELD_NUMBER = 1
static

Definition at line 50 of file PartialVariableAssignment.java.


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