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

Detailed Description

Protobuf type operations_research.FlowArcProto

Definition at line 371 of file FlowArcProto.java.

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 ()

Member Function Documentation

◆ build()

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

Definition at line 421 of file FlowArcProto.java.

◆ buildPartial()

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

Definition at line 430 of file FlowArcProto.java.

◆ clear()

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

Definition at line 399 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 699 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 639 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 599 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 759 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 670 of file FlowArcProto.java.

◆ getDefaultInstanceForType()

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

Definition at line 416 of file FlowArcProto.java.

◆ getDescriptor()

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

Definition at line 376 of file FlowArcProto.java.

◆ getDescriptorForType()

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

Definition at line 411 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 620 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 570 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 730 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 657 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 612 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 557 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 717 of file FlowArcProto.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 382 of file FlowArcProto.java.

◆ isInitialized()

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

Definition at line 489 of file FlowArcProto.java.

◆ mergeFrom() [1/3]

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

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

◆ mergeFrom() [3/3]

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

Definition at line 460 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 683 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 628 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 583 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 743 of file FlowArcProto.java.


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