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

Public Member Functions

Builder clear ()
 
com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
 
com.google.ortools.sat.DenseMatrixProto getDefaultInstanceForType ()
 
com.google.ortools.sat.DenseMatrixProto build ()
 
com.google.ortools.sat.DenseMatrixProto buildPartial ()
 
Builder mergeFrom (com.google.protobuf.Message other)
 
Builder mergeFrom (com.google.ortools.sat.DenseMatrixProto other)
 
final boolean isInitialized ()
 
Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
int getNumRows ()
 
Builder setNumRows (int value)
 
Builder clearNumRows ()
 
int getNumCols ()
 
Builder setNumCols (int value)
 
Builder clearNumCols ()
 
java.util.List< java.lang.Integer > getEntriesList ()
 
int getEntriesCount ()
 
int getEntries (int index)
 
Builder setEntries (int index, int value)
 
Builder addEntries (int value)
 
Builder addAllEntries (java.lang.Iterable<? extends java.lang.Integer > values)
 
Builder clearEntries ()
 
- Public Member Functions inherited from com.google.ortools.sat.DenseMatrixProtoOrBuilder

Static Public Member Functions

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

Protected Member Functions

com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable ()
 

Detailed Description

A dense matrix of numbers encoded in a flat way, row by row.
That is matrix[i][j] = entries[i * num_cols + j];

Protobuf type operations_research.sat.DenseMatrixProto

Definition at line 306 of file DenseMatrixProto.java.

Member Function Documentation

◆ addAllEntries()

Builder com.google.ortools.sat.DenseMatrixProto.Builder.addAllEntries ( java.lang.Iterable<? extends java.lang.Integer > values)

repeated int32 entries = 3;

Parameters
valuesThe entries to add.
Returns
This builder for chaining.

Definition at line 611 of file DenseMatrixProto.java.

◆ addEntries()

Builder com.google.ortools.sat.DenseMatrixProto.Builder.addEntries ( int value)

repeated int32 entries = 3;

Parameters
valueThe entries to add.
Returns
This builder for chaining.

Definition at line 598 of file DenseMatrixProto.java.

◆ build()

com.google.ortools.sat.DenseMatrixProto com.google.ortools.sat.DenseMatrixProto.Builder.build ( )

Definition at line 355 of file DenseMatrixProto.java.

◆ buildPartial()

com.google.ortools.sat.DenseMatrixProto com.google.ortools.sat.DenseMatrixProto.Builder.buildPartial ( )

Definition at line 364 of file DenseMatrixProto.java.

◆ clear()

Builder com.google.ortools.sat.DenseMatrixProto.Builder.clear ( )

Definition at line 334 of file DenseMatrixProto.java.

◆ clearEntries()

Builder com.google.ortools.sat.DenseMatrixProto.Builder.clearEntries ( )

repeated int32 entries = 3;

Returns
This builder for chaining.

Definition at line 624 of file DenseMatrixProto.java.

◆ clearNumCols()

Builder com.google.ortools.sat.DenseMatrixProto.Builder.clearNumCols ( )

int32 num_cols = 2;

Returns
This builder for chaining.

Definition at line 540 of file DenseMatrixProto.java.

◆ clearNumRows()

Builder com.google.ortools.sat.DenseMatrixProto.Builder.clearNumRows ( )

int32 num_rows = 1;

Returns
This builder for chaining.

Definition at line 508 of file DenseMatrixProto.java.

◆ getDefaultInstanceForType()

com.google.ortools.sat.DenseMatrixProto com.google.ortools.sat.DenseMatrixProto.Builder.getDefaultInstanceForType ( )

Definition at line 350 of file DenseMatrixProto.java.

◆ getDescriptor()

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

Definition at line 311 of file DenseMatrixProto.java.

◆ getDescriptorForType()

com.google.protobuf.Descriptors.Descriptor com.google.ortools.sat.DenseMatrixProto.Builder.getDescriptorForType ( )

Definition at line 345 of file DenseMatrixProto.java.

◆ getEntries()

int com.google.ortools.sat.DenseMatrixProto.Builder.getEntries ( int index)

repeated int32 entries = 3;

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

Implements com.google.ortools.sat.DenseMatrixProtoOrBuilder.

Definition at line 575 of file DenseMatrixProto.java.

◆ getEntriesCount()

int com.google.ortools.sat.DenseMatrixProto.Builder.getEntriesCount ( )

repeated int32 entries = 3;

Returns
The count of entries.

Implements com.google.ortools.sat.DenseMatrixProtoOrBuilder.

Definition at line 567 of file DenseMatrixProto.java.

◆ getEntriesList()

java.util.List< java.lang.Integer > com.google.ortools.sat.DenseMatrixProto.Builder.getEntriesList ( )

repeated int32 entries = 3;

Returns
A list containing the entries.

Implements com.google.ortools.sat.DenseMatrixProtoOrBuilder.

Definition at line 559 of file DenseMatrixProto.java.

◆ getNumCols()

int com.google.ortools.sat.DenseMatrixProto.Builder.getNumCols ( )

int32 num_cols = 2;

Returns
The numCols.

Implements com.google.ortools.sat.DenseMatrixProtoOrBuilder.

Definition at line 521 of file DenseMatrixProto.java.

◆ getNumRows()

int com.google.ortools.sat.DenseMatrixProto.Builder.getNumRows ( )

int32 num_rows = 1;

Returns
The numRows.

Implements com.google.ortools.sat.DenseMatrixProtoOrBuilder.

Definition at line 489 of file DenseMatrixProto.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 317 of file DenseMatrixProto.java.

◆ isInitialized()

final boolean com.google.ortools.sat.DenseMatrixProto.Builder.isInitialized ( )

Definition at line 420 of file DenseMatrixProto.java.

◆ mergeFrom() [1/3]

Builder com.google.ortools.sat.DenseMatrixProto.Builder.mergeFrom ( com.google.ortools.sat.DenseMatrixProto other)

Definition at line 395 of file DenseMatrixProto.java.

◆ mergeFrom() [2/3]

Builder com.google.ortools.sat.DenseMatrixProto.Builder.mergeFrom ( com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws java.io.IOException

Definition at line 425 of file DenseMatrixProto.java.

◆ mergeFrom() [3/3]

Builder com.google.ortools.sat.DenseMatrixProto.Builder.mergeFrom ( com.google.protobuf.Message other)

Definition at line 386 of file DenseMatrixProto.java.

◆ setEntries()

Builder com.google.ortools.sat.DenseMatrixProto.Builder.setEntries ( int index,
int value )

repeated int32 entries = 3;

Parameters
indexThe index to set the value at.
valueThe entries to set.
Returns
This builder for chaining.

Definition at line 584 of file DenseMatrixProto.java.

◆ setNumCols()

Builder com.google.ortools.sat.DenseMatrixProto.Builder.setNumCols ( int value)

int32 num_cols = 2;

Parameters
valueThe numCols to set.
Returns
This builder for chaining.

Definition at line 529 of file DenseMatrixProto.java.

◆ setNumRows()

Builder com.google.ortools.sat.DenseMatrixProto.Builder.setNumRows ( int value)

int32 num_rows = 1;

Parameters
valueThe numRows to set.
Returns
This builder for chaining.

Definition at line 497 of file DenseMatrixProto.java.


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