Google OR-Tools v9.11
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 ()
 
- Public Member Functions inherited from com.google.ortools.graph.FlowArcProtoOrBuilder

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 369 of file FlowArcProto.java.

Member Function Documentation

◆ build()

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

Definition at line 419 of file FlowArcProto.java.

◆ buildPartial()

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

Definition at line 428 of file FlowArcProto.java.

◆ clear()

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

Definition at line 397 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 697 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 637 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 597 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 757 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 668 of file FlowArcProto.java.

◆ getDefaultInstanceForType()

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

Definition at line 414 of file FlowArcProto.java.

◆ getDescriptor()

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

Definition at line 374 of file FlowArcProto.java.

◆ getDescriptorForType()

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

Definition at line 409 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 618 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 568 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 728 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 655 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 610 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 555 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 715 of file FlowArcProto.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 380 of file FlowArcProto.java.

◆ isInitialized()

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

Definition at line 487 of file FlowArcProto.java.

◆ mergeFrom() [1/3]

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

Definition at line 467 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 492 of file FlowArcProto.java.

◆ mergeFrom() [3/3]

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

Definition at line 458 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 681 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 626 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 581 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 741 of file FlowArcProto.java.


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