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

Public Member Functions

Builder clear ()
 
com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
 
com.google.ortools.graph.FlowNodeProto getDefaultInstanceForType ()
 
com.google.ortools.graph.FlowNodeProto build ()
 
com.google.ortools.graph.FlowNodeProto buildPartial ()
 
Builder mergeFrom (com.google.protobuf.Message other)
 
Builder mergeFrom (com.google.ortools.graph.FlowNodeProto other)
 
final boolean isInitialized ()
 
Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
boolean hasId ()
 
long getId ()
 
Builder setId (long value)
 
Builder clearId ()
 
boolean hasSupply ()
 
long getSupply ()
 
Builder setSupply (long value)
 
Builder clearSupply ()
 

Static Public Member Functions

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

Protected Member Functions

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

Detailed Description

Protobuf type operations_research.FlowNodeProto

Definition at line 289 of file FlowNodeProto.java.

Member Function Documentation

◆ build()

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

Definition at line 337 of file FlowNodeProto.java.

◆ buildPartial()

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

Definition at line 346 of file FlowNodeProto.java.

◆ clear()

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

Definition at line 317 of file FlowNodeProto.java.

◆ clearId()

Builder com.google.ortools.graph.FlowNodeProto.Builder.clearId ( )
The ids must be non-negative (>= 0). They should be dense for good
performance. Note that it is not mandatory to include nodes with no supply
in a FlowModelProto.

optional int64 id = 1;

Returns
This builder for chaining.

Definition at line 495 of file FlowNodeProto.java.

◆ clearSupply()

Builder com.google.ortools.graph.FlowNodeProto.Builder.clearSupply ( )
The supply can be positive or negative in which case it means demand.
The sum of the supplies over all nodes must always be 0.

optional int64 supply = 2 [default = 0];

Returns
This builder for chaining.

Definition at line 555 of file FlowNodeProto.java.

◆ getDefaultInstanceForType()

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

Definition at line 332 of file FlowNodeProto.java.

◆ getDescriptor()

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

Definition at line 294 of file FlowNodeProto.java.

◆ getDescriptorForType()

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

Definition at line 327 of file FlowNodeProto.java.

◆ getId()

long com.google.ortools.graph.FlowNodeProto.Builder.getId ( )
The ids must be non-negative (>= 0). They should be dense for good
performance. Note that it is not mandatory to include nodes with no supply
in a FlowModelProto.

optional int64 id = 1;

Returns
The id.

Implements com.google.ortools.graph.FlowNodeProtoOrBuilder.

Definition at line 464 of file FlowNodeProto.java.

◆ getSupply()

long com.google.ortools.graph.FlowNodeProto.Builder.getSupply ( )
The supply can be positive or negative in which case it means demand.
The sum of the supplies over all nodes must always be 0.

optional int64 supply = 2 [default = 0];

Returns
The supply.

Implements com.google.ortools.graph.FlowNodeProtoOrBuilder.

Definition at line 526 of file FlowNodeProto.java.

◆ hasId()

boolean com.google.ortools.graph.FlowNodeProto.Builder.hasId ( )
The ids must be non-negative (>= 0). They should be dense for good
performance. Note that it is not mandatory to include nodes with no supply
in a FlowModelProto.

optional int64 id = 1;

Returns
Whether the id field is set.

Implements com.google.ortools.graph.FlowNodeProtoOrBuilder.

Definition at line 450 of file FlowNodeProto.java.

◆ hasSupply()

boolean com.google.ortools.graph.FlowNodeProto.Builder.hasSupply ( )
The supply can be positive or negative in which case it means demand.
The sum of the supplies over all nodes must always be 0.

optional int64 supply = 2 [default = 0];

Returns
Whether the supply field is set.

Implements com.google.ortools.graph.FlowNodeProtoOrBuilder.

Definition at line 513 of file FlowNodeProto.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 300 of file FlowNodeProto.java.

◆ isInitialized()

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

Definition at line 391 of file FlowNodeProto.java.

◆ mergeFrom() [1/3]

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

Definition at line 377 of file FlowNodeProto.java.

◆ mergeFrom() [2/3]

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

Definition at line 396 of file FlowNodeProto.java.

◆ mergeFrom() [3/3]

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

Definition at line 368 of file FlowNodeProto.java.

◆ setId()

Builder com.google.ortools.graph.FlowNodeProto.Builder.setId ( long value)
The ids must be non-negative (>= 0). They should be dense for good
performance. Note that it is not mandatory to include nodes with no supply
in a FlowModelProto.

optional int64 id = 1;

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

Definition at line 478 of file FlowNodeProto.java.

◆ setSupply()

Builder com.google.ortools.graph.FlowNodeProto.Builder.setSupply ( long value)
The supply can be positive or negative in which case it means demand.
The sum of the supplies over all nodes must always be 0.

optional int64 supply = 2 [default = 0];

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

Definition at line 539 of file FlowNodeProto.java.


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