Java Reference

Java Reference

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 15 of file sat/PartialVariableAssignment.java.

Classes

class  Builder
 

Public Member Functions

.lang.Override final com.google.protobuf.UnknownFieldSet getUnknownFields ()
 
.lang.Override java.util.List< java.lang.Integer > getVarsList ()
 repeated int32 vars = 1; More...
 
int getVarsCount ()
 repeated int32 vars = 1; More...
 
int getVars (int index)
 repeated int32 vars = 1; More...
 
.lang.Override java.util.List< java.lang.Long > getValuesList ()
 repeated int64 values = 2; More...
 
int getValuesCount ()
 repeated int64 values = 2; More...
 
long getValues (int index)
 repeated int64 values = 2; 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< PartialVariableAssignmentgetParserForType ()
 
.lang.Override 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

.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 268 of file sat/PartialVariableAssignment.java.

◆ getDefaultInstance()

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

Definition at line 757 of file sat/PartialVariableAssignment.java.

◆ getDefaultInstanceForType()

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

Definition at line 782 of file sat/PartialVariableAssignment.java.

◆ getDescriptor()

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

Definition at line 128 of file sat/PartialVariableAssignment.java.

◆ getParserForType()

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

Definition at line 777 of file sat/PartialVariableAssignment.java.

◆ getSerializedSize()

.lang.Override int getSerializedSize ( )

Definition at line 229 of file sat/PartialVariableAssignment.java.

◆ getUnknownFields()

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

Definition at line 38 of file sat/PartialVariableAssignment.java.

◆ getValues()

long getValues ( int  index)

repeated int64 values = 2;

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

Implements PartialVariableAssignmentOrBuilder.

Definition at line 191 of file sat/PartialVariableAssignment.java.

◆ getValuesCount()

int getValuesCount ( )

repeated int64 values = 2;

Returns
The count of values.

Implements PartialVariableAssignmentOrBuilder.

Definition at line 183 of file sat/PartialVariableAssignment.java.

◆ getValuesList()

.lang.Override java.util.List<java.lang.Long> getValuesList ( )

repeated int64 values = 2;

Returns
A list containing the values.

Implements PartialVariableAssignmentOrBuilder.

Definition at line 176 of file sat/PartialVariableAssignment.java.

◆ getVars()

int getVars ( int  index)

repeated int32 vars = 1;

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

Implements PartialVariableAssignmentOrBuilder.

Definition at line 163 of file sat/PartialVariableAssignment.java.

◆ getVarsCount()

int getVarsCount ( )

repeated int32 vars = 1;

Returns
The count of vars.

Implements PartialVariableAssignmentOrBuilder.

Definition at line 155 of file sat/PartialVariableAssignment.java.

◆ getVarsList()

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

repeated int32 vars = 1;

Returns
A list containing the vars.

Implements PartialVariableAssignmentOrBuilder.

Definition at line 148 of file sat/PartialVariableAssignment.java.

◆ hashCode()

.lang.Override int hashCode ( )

Definition at line 286 of file sat/PartialVariableAssignment.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 134 of file sat/PartialVariableAssignment.java.

◆ isInitialized()

.lang.Override final boolean isInitialized ( )

Definition at line 198 of file sat/PartialVariableAssignment.java.

◆ newBuilder() [1/2]

static Builder newBuilder ( )
static

Definition at line 377 of file sat/PartialVariableAssignment.java.

◆ newBuilder() [2/2]

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

Definition at line 380 of file sat/PartialVariableAssignment.java.

◆ newBuilderForType() [1/2]

.lang.Override Builder newBuilderForType ( )

Definition at line 376 of file sat/PartialVariableAssignment.java.

◆ newBuilderForType() [2/2]

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

Definition at line 390 of file sat/PartialVariableAssignment.java.

◆ newInstance()

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

Definition at line 31 of file sat/PartialVariableAssignment.java.

◆ parseDelimitedFrom() [1/2]

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

Definition at line 349 of file sat/PartialVariableAssignment.java.

◆ parseDelimitedFrom() [2/2]

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

Definition at line 354 of file sat/PartialVariableAssignment.java.

◆ parseFrom() [1/10]

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

Definition at line 327 of file sat/PartialVariableAssignment.java.

◆ parseFrom() [2/10]

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

Definition at line 331 of file sat/PartialVariableAssignment.java.

◆ parseFrom() [3/10]

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

Definition at line 316 of file sat/PartialVariableAssignment.java.

◆ parseFrom() [4/10]

static 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 321 of file sat/PartialVariableAssignment.java.

◆ parseFrom() [5/10]

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

Definition at line 361 of file sat/PartialVariableAssignment.java.

◆ parseFrom() [6/10]

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

Definition at line 367 of file sat/PartialVariableAssignment.java.

◆ parseFrom() [7/10]

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

Definition at line 337 of file sat/PartialVariableAssignment.java.

◆ parseFrom() [8/10]

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

Definition at line 342 of file sat/PartialVariableAssignment.java.

◆ parseFrom() [9/10]

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

Definition at line 305 of file sat/PartialVariableAssignment.java.

◆ parseFrom() [10/10]

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

Definition at line 310 of file sat/PartialVariableAssignment.java.

◆ parser()

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

Definition at line 772 of file sat/PartialVariableAssignment.java.

◆ toBuilder()

.lang.Override Builder toBuilder ( )

Definition at line 384 of file sat/PartialVariableAssignment.java.

◆ writeTo()

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

Definition at line 208 of file sat/PartialVariableAssignment.java.

Member Data Documentation

◆ VALUES_FIELD_NUMBER

final int VALUES_FIELD_NUMBER = 2
static

Definition at line 168 of file sat/PartialVariableAssignment.java.

◆ VARS_FIELD_NUMBER

final int VARS_FIELD_NUMBER = 1
static

Definition at line 140 of file sat/PartialVariableAssignment.java.


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