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

Public Member Functions

Builder clear ()
 
com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
 
com.google.ortools.graph.FlowArcProto getDefaultInstanceForType ()
 
com.google.ortools.graph.FlowArcProto build ()
 
com.google.ortools.graph.FlowArcProto buildPartial ()
 
Builder mergeFrom (com.google.protobuf.Message other)
 
Builder mergeFrom (com.google.ortools.graph.FlowArcProto other)
 
final boolean isInitialized ()
 
Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
boolean hasTail ()
 
long getTail ()
 
Builder setTail (long value)
 
Builder clearTail ()
 
boolean hasHead ()
 
long getHead ()
 
Builder setHead (long value)
 
Builder clearHead ()
 
boolean hasCapacity ()
 
long getCapacity ()
 
Builder setCapacity (long value)
 
Builder clearCapacity ()
 
boolean hasUnitCost ()
 
long getUnitCost ()
 
Builder setUnitCost (long value)
 
Builder clearUnitCost ()
 

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.FlowArcProto

Definition at line 370 of file FlowArcProto.java.

Member Function Documentation

◆ build()

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

Definition at line 420 of file FlowArcProto.java.

◆ buildPartial()

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

Definition at line 429 of file FlowArcProto.java.

◆ clear()

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

Definition at line 398 of file FlowArcProto.java.

◆ clearCapacity()

Builder com.google.ortools.graph.FlowArcProto.Builder.clearCapacity ( )
Capacity of the arc. Must be non-negative (>= 0). If the capacity is zero,
it is equivalent to not including the arc in the FlowModelProto.

optional int64 capacity = 3 [default = 1];

Returns
This builder for chaining.

Definition at line 698 of file FlowArcProto.java.

◆ clearHead()

Builder com.google.ortools.graph.FlowArcProto.Builder.clearHead ( )

optional int64 head = 2;

Returns
This builder for chaining.

Definition at line 638 of file FlowArcProto.java.

◆ clearTail()

Builder com.google.ortools.graph.FlowArcProto.Builder.clearTail ( )
A directed arc goes from a tail node to a head node.
Node ids must be non-negative (>= 0).

optional int64 tail = 1;

Returns
This builder for chaining.

Definition at line 598 of file FlowArcProto.java.

◆ clearUnitCost()

Builder com.google.ortools.graph.FlowArcProto.Builder.clearUnitCost ( )
Cost of this arc per unit of flow.
Note that it can take any positive, negative or null value.

optional int64 unit_cost = 4 [default = 0];

Returns
This builder for chaining.

Definition at line 758 of file FlowArcProto.java.

◆ getCapacity()

long com.google.ortools.graph.FlowArcProto.Builder.getCapacity ( )
Capacity of the arc. Must be non-negative (>= 0). If the capacity is zero,
it is equivalent to not including the arc in the FlowModelProto.

optional int64 capacity = 3 [default = 1];

Returns
The capacity.

Implements com.google.ortools.graph.FlowArcProtoOrBuilder.

Definition at line 669 of file FlowArcProto.java.

◆ getDefaultInstanceForType()

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

Definition at line 415 of file FlowArcProto.java.

◆ getDescriptor()

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

Definition at line 375 of file FlowArcProto.java.

◆ getDescriptorForType()

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

Definition at line 410 of file FlowArcProto.java.

◆ getHead()

long com.google.ortools.graph.FlowArcProto.Builder.getHead ( )

optional int64 head = 2;

Returns
The head.

Implements com.google.ortools.graph.FlowArcProtoOrBuilder.

Definition at line 619 of file FlowArcProto.java.

◆ getTail()

long com.google.ortools.graph.FlowArcProto.Builder.getTail ( )
A directed arc goes from a tail node to a head node.
Node ids must be non-negative (>= 0).

optional int64 tail = 1;

Returns
The tail.

Implements com.google.ortools.graph.FlowArcProtoOrBuilder.

Definition at line 569 of file FlowArcProto.java.

◆ getUnitCost()

long com.google.ortools.graph.FlowArcProto.Builder.getUnitCost ( )
Cost of this arc per unit of flow.
Note that it can take any positive, negative or null value.

optional int64 unit_cost = 4 [default = 0];

Returns
The unitCost.

Implements com.google.ortools.graph.FlowArcProtoOrBuilder.

Definition at line 729 of file FlowArcProto.java.

◆ hasCapacity()

boolean com.google.ortools.graph.FlowArcProto.Builder.hasCapacity ( )
Capacity of the arc. Must be non-negative (>= 0). If the capacity is zero,
it is equivalent to not including the arc in the FlowModelProto.

optional int64 capacity = 3 [default = 1];

Returns
Whether the capacity field is set.

Implements com.google.ortools.graph.FlowArcProtoOrBuilder.

Definition at line 656 of file FlowArcProto.java.

◆ hasHead()

boolean com.google.ortools.graph.FlowArcProto.Builder.hasHead ( )

optional int64 head = 2;

Returns
Whether the head field is set.

Implements com.google.ortools.graph.FlowArcProtoOrBuilder.

Definition at line 611 of file FlowArcProto.java.

◆ hasTail()

boolean com.google.ortools.graph.FlowArcProto.Builder.hasTail ( )
A directed arc goes from a tail node to a head node.
Node ids must be non-negative (>= 0).

optional int64 tail = 1;

Returns
Whether the tail field is set.

Implements com.google.ortools.graph.FlowArcProtoOrBuilder.

Definition at line 556 of file FlowArcProto.java.

◆ hasUnitCost()

boolean com.google.ortools.graph.FlowArcProto.Builder.hasUnitCost ( )
Cost of this arc per unit of flow.
Note that it can take any positive, negative or null value.

optional int64 unit_cost = 4 [default = 0];

Returns
Whether the unitCost field is set.

Implements com.google.ortools.graph.FlowArcProtoOrBuilder.

Definition at line 716 of file FlowArcProto.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 381 of file FlowArcProto.java.

◆ isInitialized()

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

Definition at line 488 of file FlowArcProto.java.

◆ mergeFrom() [1/3]

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

Definition at line 468 of file FlowArcProto.java.

◆ mergeFrom() [2/3]

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

Definition at line 493 of file FlowArcProto.java.

◆ mergeFrom() [3/3]

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

Definition at line 459 of file FlowArcProto.java.

◆ setCapacity()

Builder com.google.ortools.graph.FlowArcProto.Builder.setCapacity ( long value)
Capacity of the arc. Must be non-negative (>= 0). If the capacity is zero,
it is equivalent to not including the arc in the FlowModelProto.

optional int64 capacity = 3 [default = 1];

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

Definition at line 682 of file FlowArcProto.java.

◆ setHead()

Builder com.google.ortools.graph.FlowArcProto.Builder.setHead ( long value)

optional int64 head = 2;

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

Definition at line 627 of file FlowArcProto.java.

◆ setTail()

Builder com.google.ortools.graph.FlowArcProto.Builder.setTail ( long value)
A directed arc goes from a tail node to a head node.
Node ids must be non-negative (>= 0).

optional int64 tail = 1;

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

Definition at line 582 of file FlowArcProto.java.

◆ setUnitCost()

Builder com.google.ortools.graph.FlowArcProto.Builder.setUnitCost ( long value)
Cost of this arc per unit of flow.
Note that it can take any positive, negative or null value.

optional int64 unit_cost = 4 [default = 0];

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

Definition at line 742 of file FlowArcProto.java.


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