Google OR-Tools v9.9
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 clone ()
 
Builder setField (com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
 
Builder clearField (com.google.protobuf.Descriptors.FieldDescriptor field)
 
Builder clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof)
 
Builder setRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
 
Builder addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
 
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 ()
 
final Builder setUnknownFields (final com.google.protobuf.UnknownFieldSet unknownFields)
 
final Builder mergeUnknownFields (final com.google.protobuf.UnknownFieldSet unknownFields)
 

Static Public Member Functions

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

Protected Member Functions

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

Detailed Description

Protobuf type operations_research.FlowArcProto

Definition at line 367 of file FlowArcProto.java.

Member Function Documentation

◆ addRepeatedField()

Builder com.google.ortools.graph.FlowArcProto.Builder.addRepeatedField ( com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value )

Definition at line 482 of file FlowArcProto.java.

◆ build()

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

Definition at line 417 of file FlowArcProto.java.

◆ buildPartial()

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

Definition at line 426 of file FlowArcProto.java.

◆ clear()

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

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

◆ clearField()

Builder com.google.ortools.graph.FlowArcProto.Builder.clearField ( com.google.protobuf.Descriptors.FieldDescriptor field)

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

◆ clearOneof()

Builder com.google.ortools.graph.FlowArcProto.Builder.clearOneof ( com.google.protobuf.Descriptors.OneofDescriptor oneof)

Definition at line 471 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 627 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 787 of file FlowArcProto.java.

◆ clone()

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

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

◆ getDefaultInstanceForType()

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

Definition at line 412 of file FlowArcProto.java.

◆ getDescriptor()

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

Definition at line 372 of file FlowArcProto.java.

◆ getDescriptorForType()

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

Definition at line 407 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 648 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 598 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 758 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 685 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 640 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 585 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 745 of file FlowArcProto.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 378 of file FlowArcProto.java.

◆ isInitialized()

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

Definition at line 517 of file FlowArcProto.java.

◆ mergeFrom() [1/3]

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

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

◆ mergeFrom() [3/3]

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

Definition at line 488 of file FlowArcProto.java.

◆ mergeUnknownFields()

final Builder com.google.ortools.graph.FlowArcProto.Builder.mergeUnknownFields ( final com.google.protobuf.UnknownFieldSet unknownFields)

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

◆ setField()

Builder com.google.ortools.graph.FlowArcProto.Builder.setField ( com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value )

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

◆ setRepeatedField()

Builder com.google.ortools.graph.FlowArcProto.Builder.setRepeatedField ( com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value )

Definition at line 476 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 611 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 771 of file FlowArcProto.java.

◆ setUnknownFields()

final Builder com.google.ortools.graph.FlowArcProto.Builder.setUnknownFields ( final com.google.protobuf.UnknownFieldSet unknownFields)

Definition at line 794 of file FlowArcProto.java.


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