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

Classes

class  Builder
 

Public Member Functions

java.util.List< java.lang.Integer > getVarIndexList ()
 
int getVarIndexCount ()
 
int getVarIndex (int index)
 
java.util.List< java.lang.Double > getVarValueList ()
 
int getVarValueCount ()
 
double getVarValue (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.linearsolver.PartialVariableAssignment getDefaultInstanceForType ()
 
- Public Member Functions inherited from com.google.ortools.linearsolver.PartialVariableAssignmentOrBuilder

Static Public Member Functions

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

Static Public Attributes

static final int VAR_INDEX_FIELD_NUMBER = 1
 
static final int VAR_VALUE_FIELD_NUMBER = 2
 

Protected Member Functions

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

Detailed Description

This message encodes a partial (or full) assignment of the variables of a
MPModelProto problem. The indices in var_index should be unique and valid
variable indices of the associated problem.

Protobuf type operations_research.PartialVariableAssignment

Definition at line 16 of file PartialVariableAssignment.java.

Member Function Documentation

◆ equals()

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

Definition at line 181 of file PartialVariableAssignment.java.

◆ getDefaultInstance()

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

Definition at line 688 of file PartialVariableAssignment.java.

◆ getDefaultInstanceForType()

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

Definition at line 724 of file PartialVariableAssignment.java.

◆ getDescriptor()

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

Definition at line 40 of file PartialVariableAssignment.java.

◆ getParserForType()

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

Definition at line 719 of file PartialVariableAssignment.java.

◆ getSerializedSize()

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

Definition at line 145 of file PartialVariableAssignment.java.

◆ getVarIndex()

int com.google.ortools.linearsolver.PartialVariableAssignment.getVarIndex ( int index)

repeated int32 var_index = 1 [packed = true];

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

Implements com.google.ortools.linearsolver.PartialVariableAssignmentOrBuilder.

Definition at line 77 of file PartialVariableAssignment.java.

◆ getVarIndexCount()

int com.google.ortools.linearsolver.PartialVariableAssignment.getVarIndexCount ( )

repeated int32 var_index = 1 [packed = true];

Returns
The count of varIndex.

Implements com.google.ortools.linearsolver.PartialVariableAssignmentOrBuilder.

Definition at line 69 of file PartialVariableAssignment.java.

◆ getVarIndexList()

java.util.List< java.lang.Integer > com.google.ortools.linearsolver.PartialVariableAssignment.getVarIndexList ( )

repeated int32 var_index = 1 [packed = true];

Returns
A list containing the varIndex.

Implements com.google.ortools.linearsolver.PartialVariableAssignmentOrBuilder.

Definition at line 62 of file PartialVariableAssignment.java.

◆ getVarValue()

double com.google.ortools.linearsolver.PartialVariableAssignment.getVarValue ( int index)

repeated double var_value = 2 [packed = true];

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

Implements com.google.ortools.linearsolver.PartialVariableAssignmentOrBuilder.

Definition at line 107 of file PartialVariableAssignment.java.

◆ getVarValueCount()

int com.google.ortools.linearsolver.PartialVariableAssignment.getVarValueCount ( )

repeated double var_value = 2 [packed = true];

Returns
The count of varValue.

Implements com.google.ortools.linearsolver.PartialVariableAssignmentOrBuilder.

Definition at line 99 of file PartialVariableAssignment.java.

◆ getVarValueList()

java.util.List< java.lang.Double > com.google.ortools.linearsolver.PartialVariableAssignment.getVarValueList ( )

repeated double var_value = 2 [packed = true];

Returns
A list containing the varValue.

Implements com.google.ortools.linearsolver.PartialVariableAssignmentOrBuilder.

Definition at line 92 of file PartialVariableAssignment.java.

◆ hashCode()

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

Definition at line 199 of file PartialVariableAssignment.java.

◆ internalGetFieldAccessorTable()

com.google.protobuf.GeneratedMessage.FieldAccessorTable com.google.ortools.linearsolver.PartialVariableAssignment.internalGetFieldAccessorTable ( )
protected

Definition at line 46 of file PartialVariableAssignment.java.

◆ isInitialized()

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

Definition at line 114 of file PartialVariableAssignment.java.

◆ newBuilder() [1/2]

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

Definition at line 292 of file PartialVariableAssignment.java.

◆ newBuilder() [2/2]

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

Definition at line 295 of file PartialVariableAssignment.java.

◆ newBuilderForType() [1/2]

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

Definition at line 291 of file PartialVariableAssignment.java.

◆ newBuilderForType() [2/2]

Builder com.google.ortools.linearsolver.PartialVariableAssignment.newBuilderForType ( com.google.protobuf.GeneratedMessage.BuilderParent parent)
protected

Definition at line 305 of file PartialVariableAssignment.java.

◆ parseDelimitedFrom() [1/2]

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

Definition at line 263 of file PartialVariableAssignment.java.

◆ parseDelimitedFrom() [2/2]

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

Definition at line 269 of file PartialVariableAssignment.java.

◆ parseFrom() [1/10]

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

Definition at line 240 of file PartialVariableAssignment.java.

◆ parseFrom() [2/10]

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

Definition at line 244 of file PartialVariableAssignment.java.

◆ parseFrom() [3/10]

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

Definition at line 229 of file PartialVariableAssignment.java.

◆ parseFrom() [4/10]

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

Definition at line 234 of file PartialVariableAssignment.java.

◆ parseFrom() [5/10]

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

Definition at line 276 of file PartialVariableAssignment.java.

◆ parseFrom() [6/10]

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

Definition at line 282 of file PartialVariableAssignment.java.

◆ parseFrom() [7/10]

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

Definition at line 250 of file PartialVariableAssignment.java.

◆ parseFrom() [8/10]

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

Definition at line 255 of file PartialVariableAssignment.java.

◆ parseFrom() [9/10]

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

Definition at line 218 of file PartialVariableAssignment.java.

◆ parseFrom() [10/10]

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

Definition at line 223 of file PartialVariableAssignment.java.

◆ parser()

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

Definition at line 714 of file PartialVariableAssignment.java.

◆ toBuilder()

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

Definition at line 299 of file PartialVariableAssignment.java.

◆ writeTo()

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

Definition at line 124 of file PartialVariableAssignment.java.

Member Data Documentation

◆ VAR_INDEX_FIELD_NUMBER

final int com.google.ortools.linearsolver.PartialVariableAssignment.VAR_INDEX_FIELD_NUMBER = 1
static

Definition at line 52 of file PartialVariableAssignment.java.

◆ VAR_VALUE_FIELD_NUMBER

final int com.google.ortools.linearsolver.PartialVariableAssignment.VAR_VALUE_FIELD_NUMBER = 2
static

Definition at line 82 of file PartialVariableAssignment.java.


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