Google OR-Tools v9.14
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 466 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 1100 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 860 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 1039 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 1072 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 1055 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 1086 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 1169 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 1176 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 799 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 832 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 815 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 846 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 929 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 936 of file FlowModelProto.java.

◆ build()

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

Definition at line 527 of file FlowModelProto.java.

◆ buildPartial()

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

Definition at line 536 of file FlowModelProto.java.

◆ clear()

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

Definition at line 494 of file FlowModelProto.java.

◆ clearArcs()

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

repeated .operations_research.FlowArcProto arcs = 2;

Definition at line 1115 of file FlowModelProto.java.

◆ clearNodes()

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

repeated .operations_research.FlowNodeProto nodes = 1;

Definition at line 875 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 1236 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 998 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 1141 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 1185 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 988 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 978 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 1148 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 1159 of file FlowModelProto.java.

◆ getDefaultInstanceForType()

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

Definition at line 522 of file FlowModelProto.java.

◆ getDescriptor()

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

Definition at line 471 of file FlowModelProto.java.

◆ getDescriptorForType()

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

Definition at line 517 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 758 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 901 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 945 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 748 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 738 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 908 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 919 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 1216 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 1208 of file FlowModelProto.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 477 of file FlowModelProto.java.

◆ isInitialized()

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

Definition at line 648 of file FlowModelProto.java.

◆ mergeFrom() [1/3]

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

Definition at line 585 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 653 of file FlowModelProto.java.

◆ mergeFrom() [3/3]

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

Definition at line 576 of file FlowModelProto.java.

◆ removeArcs()

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

repeated .operations_research.FlowArcProto arcs = 2;

Definition at line 1128 of file FlowModelProto.java.

◆ removeNodes()

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

repeated .operations_research.FlowNodeProto nodes = 1;

Definition at line 888 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 1008 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 1025 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 768 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 785 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 1225 of file FlowModelProto.java.


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