Google OR-Tools v9.12
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.graph.FlowModelProto.Builder Class Reference
Inheritance diagram for com.google.ortools.graph.FlowModelProto.Builder:
com.google.ortools.graph.FlowModelProtoOrBuilder

Public Member Functions

Builder clear ()
 
com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
 
com.google.ortools.graph.FlowModelProto getDefaultInstanceForType ()
 
com.google.ortools.graph.FlowModelProto build ()
 
com.google.ortools.graph.FlowModelProto buildPartial ()
 
Builder mergeFrom (com.google.protobuf.Message other)
 
Builder mergeFrom (com.google.ortools.graph.FlowModelProto other)
 
final boolean isInitialized ()
 
Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
java.util.List< com.google.ortools.graph.FlowNodeProtogetNodesList ()
 
int getNodesCount ()
 
com.google.ortools.graph.FlowNodeProto getNodes (int index)
 
Builder setNodes (int index, com.google.ortools.graph.FlowNodeProto value)
 
Builder setNodes (int index, com.google.ortools.graph.FlowNodeProto.Builder builderForValue)
 
Builder addNodes (com.google.ortools.graph.FlowNodeProto value)
 
Builder addNodes (int index, com.google.ortools.graph.FlowNodeProto value)
 
Builder addNodes (com.google.ortools.graph.FlowNodeProto.Builder builderForValue)
 
Builder addNodes (int index, com.google.ortools.graph.FlowNodeProto.Builder builderForValue)
 
Builder addAllNodes (java.lang.Iterable<? extends com.google.ortools.graph.FlowNodeProto > values)
 
Builder clearNodes ()
 
Builder removeNodes (int index)
 
com.google.ortools.graph.FlowNodeProto.Builder getNodesBuilder (int index)
 
com.google.ortools.graph.FlowNodeProtoOrBuilder getNodesOrBuilder (int index)
 
java.util.List<? extends com.google.ortools.graph.FlowNodeProtoOrBuildergetNodesOrBuilderList ()
 
com.google.ortools.graph.FlowNodeProto.Builder addNodesBuilder ()
 
com.google.ortools.graph.FlowNodeProto.Builder addNodesBuilder (int index)
 
java.util.List< com.google.ortools.graph.FlowNodeProto.BuildergetNodesBuilderList ()
 
java.util.List< com.google.ortools.graph.FlowArcProtogetArcsList ()
 
int getArcsCount ()
 
com.google.ortools.graph.FlowArcProto getArcs (int index)
 
Builder setArcs (int index, com.google.ortools.graph.FlowArcProto value)
 
Builder setArcs (int index, com.google.ortools.graph.FlowArcProto.Builder builderForValue)
 
Builder addArcs (com.google.ortools.graph.FlowArcProto value)
 
Builder addArcs (int index, com.google.ortools.graph.FlowArcProto value)
 
Builder addArcs (com.google.ortools.graph.FlowArcProto.Builder builderForValue)
 
Builder addArcs (int index, com.google.ortools.graph.FlowArcProto.Builder builderForValue)
 
Builder addAllArcs (java.lang.Iterable<? extends com.google.ortools.graph.FlowArcProto > values)
 
Builder clearArcs ()
 
Builder removeArcs (int index)
 
com.google.ortools.graph.FlowArcProto.Builder getArcsBuilder (int index)
 
com.google.ortools.graph.FlowArcProtoOrBuilder getArcsOrBuilder (int index)
 
java.util.List<? extends com.google.ortools.graph.FlowArcProtoOrBuildergetArcsOrBuilderList ()
 
com.google.ortools.graph.FlowArcProto.Builder addArcsBuilder ()
 
com.google.ortools.graph.FlowArcProto.Builder addArcsBuilder (int index)
 
java.util.List< com.google.ortools.graph.FlowArcProto.BuildergetArcsBuilderList ()
 
boolean hasProblemType ()
 
com.google.ortools.graph.FlowModelProto.ProblemType getProblemType ()
 
Builder setProblemType (com.google.ortools.graph.FlowModelProto.ProblemType value)
 
Builder clearProblemType ()
 

Static Public Member Functions

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

Protected Member Functions

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

Detailed Description

Holds a flow problem, see NodeProto and ArcProto for more details.

Protobuf type operations_research.FlowModelProto

Definition at line 465 of file FlowModelProto.java.

Member Function Documentation

◆ addAllArcs()

Builder com.google.ortools.graph.FlowModelProto.Builder.addAllArcs ( java.lang.Iterable<? extends com.google.ortools.graph.FlowArcProto > values)

repeated .operations_research.FlowArcProto arcs = 2;

Definition at line 1099 of file FlowModelProto.java.

◆ addAllNodes()

Builder com.google.ortools.graph.FlowModelProto.Builder.addAllNodes ( java.lang.Iterable<? extends com.google.ortools.graph.FlowNodeProto > values)

repeated .operations_research.FlowNodeProto nodes = 1;

Definition at line 859 of file FlowModelProto.java.

◆ addArcs() [1/4]

Builder com.google.ortools.graph.FlowModelProto.Builder.addArcs ( com.google.ortools.graph.FlowArcProto value)

repeated .operations_research.FlowArcProto arcs = 2;

Definition at line 1038 of file FlowModelProto.java.

◆ addArcs() [2/4]

Builder com.google.ortools.graph.FlowModelProto.Builder.addArcs ( com.google.ortools.graph.FlowArcProto.Builder builderForValue)

repeated .operations_research.FlowArcProto arcs = 2;

Definition at line 1071 of file FlowModelProto.java.

◆ addArcs() [3/4]

Builder com.google.ortools.graph.FlowModelProto.Builder.addArcs ( int index,
com.google.ortools.graph.FlowArcProto value )

repeated .operations_research.FlowArcProto arcs = 2;

Definition at line 1054 of file FlowModelProto.java.

◆ addArcs() [4/4]

Builder com.google.ortools.graph.FlowModelProto.Builder.addArcs ( int index,
com.google.ortools.graph.FlowArcProto.Builder builderForValue )

repeated .operations_research.FlowArcProto arcs = 2;

Definition at line 1085 of file FlowModelProto.java.

◆ addArcsBuilder() [1/2]

com.google.ortools.graph.FlowArcProto.Builder com.google.ortools.graph.FlowModelProto.Builder.addArcsBuilder ( )

repeated .operations_research.FlowArcProto arcs = 2;

Definition at line 1168 of file FlowModelProto.java.

◆ addArcsBuilder() [2/2]

com.google.ortools.graph.FlowArcProto.Builder com.google.ortools.graph.FlowModelProto.Builder.addArcsBuilder ( int index)

repeated .operations_research.FlowArcProto arcs = 2;

Definition at line 1175 of file FlowModelProto.java.

◆ addNodes() [1/4]

Builder com.google.ortools.graph.FlowModelProto.Builder.addNodes ( com.google.ortools.graph.FlowNodeProto value)

repeated .operations_research.FlowNodeProto nodes = 1;

Definition at line 798 of file FlowModelProto.java.

◆ addNodes() [2/4]

Builder com.google.ortools.graph.FlowModelProto.Builder.addNodes ( com.google.ortools.graph.FlowNodeProto.Builder builderForValue)

repeated .operations_research.FlowNodeProto nodes = 1;

Definition at line 831 of file FlowModelProto.java.

◆ addNodes() [3/4]

Builder com.google.ortools.graph.FlowModelProto.Builder.addNodes ( int index,
com.google.ortools.graph.FlowNodeProto value )

repeated .operations_research.FlowNodeProto nodes = 1;

Definition at line 814 of file FlowModelProto.java.

◆ addNodes() [4/4]

Builder com.google.ortools.graph.FlowModelProto.Builder.addNodes ( int index,
com.google.ortools.graph.FlowNodeProto.Builder builderForValue )

repeated .operations_research.FlowNodeProto nodes = 1;

Definition at line 845 of file FlowModelProto.java.

◆ addNodesBuilder() [1/2]

com.google.ortools.graph.FlowNodeProto.Builder com.google.ortools.graph.FlowModelProto.Builder.addNodesBuilder ( )

repeated .operations_research.FlowNodeProto nodes = 1;

Definition at line 928 of file FlowModelProto.java.

◆ addNodesBuilder() [2/2]

com.google.ortools.graph.FlowNodeProto.Builder com.google.ortools.graph.FlowModelProto.Builder.addNodesBuilder ( int index)

repeated .operations_research.FlowNodeProto nodes = 1;

Definition at line 935 of file FlowModelProto.java.

◆ build()

com.google.ortools.graph.FlowModelProto com.google.ortools.graph.FlowModelProto.Builder.build ( )

Definition at line 526 of file FlowModelProto.java.

◆ buildPartial()

com.google.ortools.graph.FlowModelProto com.google.ortools.graph.FlowModelProto.Builder.buildPartial ( )

Definition at line 535 of file FlowModelProto.java.

◆ clear()

Builder com.google.ortools.graph.FlowModelProto.Builder.clear ( )

Definition at line 493 of file FlowModelProto.java.

◆ clearArcs()

Builder com.google.ortools.graph.FlowModelProto.Builder.clearArcs ( )

repeated .operations_research.FlowArcProto arcs = 2;

Definition at line 1114 of file FlowModelProto.java.

◆ clearNodes()

Builder com.google.ortools.graph.FlowModelProto.Builder.clearNodes ( )

repeated .operations_research.FlowNodeProto nodes = 1;

Definition at line 874 of file FlowModelProto.java.

◆ clearProblemType()

Builder com.google.ortools.graph.FlowModelProto.Builder.clearProblemType ( )

optional .operations_research.FlowModelProto.ProblemType problem_type = 3;

Returns
This builder for chaining.

Definition at line 1237 of file FlowModelProto.java.

◆ getArcs()

com.google.ortools.graph.FlowArcProto com.google.ortools.graph.FlowModelProto.Builder.getArcs ( int index)

repeated .operations_research.FlowArcProto arcs = 2;

Implements com.google.ortools.graph.FlowModelProtoOrBuilder.

Definition at line 997 of file FlowModelProto.java.

◆ getArcsBuilder()

com.google.ortools.graph.FlowArcProto.Builder com.google.ortools.graph.FlowModelProto.Builder.getArcsBuilder ( int index)

repeated .operations_research.FlowArcProto arcs = 2;

Definition at line 1140 of file FlowModelProto.java.

◆ getArcsBuilderList()

java.util.List< com.google.ortools.graph.FlowArcProto.Builder > com.google.ortools.graph.FlowModelProto.Builder.getArcsBuilderList ( )

repeated .operations_research.FlowArcProto arcs = 2;

Definition at line 1184 of file FlowModelProto.java.

◆ getArcsCount()

int com.google.ortools.graph.FlowModelProto.Builder.getArcsCount ( )

repeated .operations_research.FlowArcProto arcs = 2;

Implements com.google.ortools.graph.FlowModelProtoOrBuilder.

Definition at line 987 of file FlowModelProto.java.

◆ getArcsList()

java.util.List< com.google.ortools.graph.FlowArcProto > com.google.ortools.graph.FlowModelProto.Builder.getArcsList ( )

repeated .operations_research.FlowArcProto arcs = 2;

Implements com.google.ortools.graph.FlowModelProtoOrBuilder.

Definition at line 977 of file FlowModelProto.java.

◆ getArcsOrBuilder()

com.google.ortools.graph.FlowArcProtoOrBuilder com.google.ortools.graph.FlowModelProto.Builder.getArcsOrBuilder ( int index)

repeated .operations_research.FlowArcProto arcs = 2;

Implements com.google.ortools.graph.FlowModelProtoOrBuilder.

Definition at line 1147 of file FlowModelProto.java.

◆ getArcsOrBuilderList()

java.util.List<? extends com.google.ortools.graph.FlowArcProtoOrBuilder > com.google.ortools.graph.FlowModelProto.Builder.getArcsOrBuilderList ( )

repeated .operations_research.FlowArcProto arcs = 2;

Implements com.google.ortools.graph.FlowModelProtoOrBuilder.

Definition at line 1158 of file FlowModelProto.java.

◆ getDefaultInstanceForType()

com.google.ortools.graph.FlowModelProto com.google.ortools.graph.FlowModelProto.Builder.getDefaultInstanceForType ( )

Definition at line 521 of file FlowModelProto.java.

◆ getDescriptor()

static final com.google.protobuf.Descriptors.Descriptor com.google.ortools.graph.FlowModelProto.Builder.getDescriptor ( )
static

Definition at line 470 of file FlowModelProto.java.

◆ getDescriptorForType()

com.google.protobuf.Descriptors.Descriptor com.google.ortools.graph.FlowModelProto.Builder.getDescriptorForType ( )

Definition at line 516 of file FlowModelProto.java.

◆ getNodes()

com.google.ortools.graph.FlowNodeProto com.google.ortools.graph.FlowModelProto.Builder.getNodes ( int index)

repeated .operations_research.FlowNodeProto nodes = 1;

Implements com.google.ortools.graph.FlowModelProtoOrBuilder.

Definition at line 757 of file FlowModelProto.java.

◆ getNodesBuilder()

com.google.ortools.graph.FlowNodeProto.Builder com.google.ortools.graph.FlowModelProto.Builder.getNodesBuilder ( int index)

repeated .operations_research.FlowNodeProto nodes = 1;

Definition at line 900 of file FlowModelProto.java.

◆ getNodesBuilderList()

java.util.List< com.google.ortools.graph.FlowNodeProto.Builder > com.google.ortools.graph.FlowModelProto.Builder.getNodesBuilderList ( )

repeated .operations_research.FlowNodeProto nodes = 1;

Definition at line 944 of file FlowModelProto.java.

◆ getNodesCount()

int com.google.ortools.graph.FlowModelProto.Builder.getNodesCount ( )

repeated .operations_research.FlowNodeProto nodes = 1;

Implements com.google.ortools.graph.FlowModelProtoOrBuilder.

Definition at line 747 of file FlowModelProto.java.

◆ getNodesList()

java.util.List< com.google.ortools.graph.FlowNodeProto > com.google.ortools.graph.FlowModelProto.Builder.getNodesList ( )

repeated .operations_research.FlowNodeProto nodes = 1;

Implements com.google.ortools.graph.FlowModelProtoOrBuilder.

Definition at line 737 of file FlowModelProto.java.

◆ getNodesOrBuilder()

com.google.ortools.graph.FlowNodeProtoOrBuilder com.google.ortools.graph.FlowModelProto.Builder.getNodesOrBuilder ( int index)

repeated .operations_research.FlowNodeProto nodes = 1;

Implements com.google.ortools.graph.FlowModelProtoOrBuilder.

Definition at line 907 of file FlowModelProto.java.

◆ getNodesOrBuilderList()

java.util.List<? extends com.google.ortools.graph.FlowNodeProtoOrBuilder > com.google.ortools.graph.FlowModelProto.Builder.getNodesOrBuilderList ( )

repeated .operations_research.FlowNodeProto nodes = 1;

Implements com.google.ortools.graph.FlowModelProtoOrBuilder.

Definition at line 918 of file FlowModelProto.java.

◆ getProblemType()

com.google.ortools.graph.FlowModelProto.ProblemType com.google.ortools.graph.FlowModelProto.Builder.getProblemType ( )

optional .operations_research.FlowModelProto.ProblemType problem_type = 3;

Returns
The problemType.

Implements com.google.ortools.graph.FlowModelProtoOrBuilder.

Definition at line 1215 of file FlowModelProto.java.

◆ hasProblemType()

boolean com.google.ortools.graph.FlowModelProto.Builder.hasProblemType ( )

optional .operations_research.FlowModelProto.ProblemType problem_type = 3;

Returns
Whether the problemType field is set.

Implements com.google.ortools.graph.FlowModelProtoOrBuilder.

Definition at line 1207 of file FlowModelProto.java.

◆ internalGetFieldAccessorTable()

com.google.protobuf.GeneratedMessage.FieldAccessorTable com.google.ortools.graph.FlowModelProto.Builder.internalGetFieldAccessorTable ( )
protected

Definition at line 476 of file FlowModelProto.java.

◆ isInitialized()

final boolean com.google.ortools.graph.FlowModelProto.Builder.isInitialized ( )

Definition at line 647 of file FlowModelProto.java.

◆ mergeFrom() [1/3]

Builder com.google.ortools.graph.FlowModelProto.Builder.mergeFrom ( com.google.ortools.graph.FlowModelProto other)

Definition at line 584 of file FlowModelProto.java.

◆ mergeFrom() [2/3]

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

Definition at line 652 of file FlowModelProto.java.

◆ mergeFrom() [3/3]

Builder com.google.ortools.graph.FlowModelProto.Builder.mergeFrom ( com.google.protobuf.Message other)

Definition at line 575 of file FlowModelProto.java.

◆ removeArcs()

Builder com.google.ortools.graph.FlowModelProto.Builder.removeArcs ( int index)

repeated .operations_research.FlowArcProto arcs = 2;

Definition at line 1127 of file FlowModelProto.java.

◆ removeNodes()

Builder com.google.ortools.graph.FlowModelProto.Builder.removeNodes ( int index)

repeated .operations_research.FlowNodeProto nodes = 1;

Definition at line 887 of file FlowModelProto.java.

◆ setArcs() [1/2]

Builder com.google.ortools.graph.FlowModelProto.Builder.setArcs ( int index,
com.google.ortools.graph.FlowArcProto value )

repeated .operations_research.FlowArcProto arcs = 2;

Definition at line 1007 of file FlowModelProto.java.

◆ setArcs() [2/2]

Builder com.google.ortools.graph.FlowModelProto.Builder.setArcs ( int index,
com.google.ortools.graph.FlowArcProto.Builder builderForValue )

repeated .operations_research.FlowArcProto arcs = 2;

Definition at line 1024 of file FlowModelProto.java.

◆ setNodes() [1/2]

Builder com.google.ortools.graph.FlowModelProto.Builder.setNodes ( int index,
com.google.ortools.graph.FlowNodeProto value )

repeated .operations_research.FlowNodeProto nodes = 1;

Definition at line 767 of file FlowModelProto.java.

◆ setNodes() [2/2]

Builder com.google.ortools.graph.FlowModelProto.Builder.setNodes ( int index,
com.google.ortools.graph.FlowNodeProto.Builder builderForValue )

repeated .operations_research.FlowNodeProto nodes = 1;

Definition at line 784 of file FlowModelProto.java.

◆ setProblemType()

Builder com.google.ortools.graph.FlowModelProto.Builder.setProblemType ( com.google.ortools.graph.FlowModelProto.ProblemType value)

optional .operations_research.FlowModelProto.ProblemType problem_type = 3;

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

Definition at line 1224 of file FlowModelProto.java.


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