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

Classes

class  Builder
 

Public Member Functions

boolean hasTail ()
 
long getTail ()
 
boolean hasHead ()
 
long getHead ()
 
boolean hasCapacity ()
 
long getCapacity ()
 
boolean hasUnitCost ()
 
long getUnitCost ()
 
final boolean isInitialized ()
 
void writeTo (com.google.protobuf.CodedOutputStream output) throws java.io.IOException
 
int getSerializedSize ()
 
boolean equals (final java.lang.Object obj)
 
int hashCode ()
 
Builder newBuilderForType ()
 
Builder toBuilder ()
 
com.google.protobuf.Parser< FlowArcProtogetParserForType ()
 
com.google.ortools.graph.FlowArcProto getDefaultInstanceForType ()
 
- Public Member Functions inherited from com.google.ortools.graph.FlowArcProtoOrBuilder

Static Public Member Functions

static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
 
static com.google.ortools.graph.FlowArcProto parseFrom (java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.graph.FlowArcProto parseFrom (java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.graph.FlowArcProto parseFrom (com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.graph.FlowArcProto parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.graph.FlowArcProto parseFrom (byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.graph.FlowArcProto parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.graph.FlowArcProto parseFrom (java.io.InputStream input) throws java.io.IOException
 
static com.google.ortools.graph.FlowArcProto parseFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
static com.google.ortools.graph.FlowArcProto parseDelimitedFrom (java.io.InputStream input) throws java.io.IOException
 
static com.google.ortools.graph.FlowArcProto parseDelimitedFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
static com.google.ortools.graph.FlowArcProto parseFrom (com.google.protobuf.CodedInputStream input) throws java.io.IOException
 
static com.google.ortools.graph.FlowArcProto parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
static Builder newBuilder ()
 
static Builder newBuilder (com.google.ortools.graph.FlowArcProto prototype)
 
static com.google.ortools.graph.FlowArcProto getDefaultInstance ()
 
static com.google.protobuf.Parser< FlowArcProtoparser ()
 

Static Public Attributes

static final int TAIL_FIELD_NUMBER = 1
 
static final int HEAD_FIELD_NUMBER = 2
 
static final int CAPACITY_FIELD_NUMBER = 3
 
static final int UNIT_COST_FIELD_NUMBER = 4
 

Protected Member Functions

com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable ()
 
Builder newBuilderForType (com.google.protobuf.GeneratedMessage.BuilderParent parent)
 

Detailed Description

Protobuf type operations_research.FlowArcProto

Definition at line 10 of file FlowArcProto.java.

Member Function Documentation

◆ equals()

boolean com.google.ortools.graph.FlowArcProto.equals ( final java.lang.Object obj)

Definition at line 209 of file FlowArcProto.java.

◆ getCapacity()

long com.google.ortools.graph.FlowArcProto.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 119 of file FlowArcProto.java.

◆ getDefaultInstance()

static com.google.ortools.graph.FlowArcProto com.google.ortools.graph.FlowArcProto.getDefaultInstance ( )
static

Definition at line 773 of file FlowArcProto.java.

◆ getDefaultInstanceForType()

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

Definition at line 809 of file FlowArcProto.java.

◆ getDescriptor()

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

Definition at line 33 of file FlowArcProto.java.

◆ getHead()

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

optional int64 head = 2;

Returns
The head.

Implements com.google.ortools.graph.FlowArcProtoOrBuilder.

Definition at line 90 of file FlowArcProto.java.

◆ getParserForType()

com.google.protobuf.Parser< FlowArcProto > com.google.ortools.graph.FlowArcProto.getParserForType ( )

Definition at line 804 of file FlowArcProto.java.

◆ getSerializedSize()

int com.google.ortools.graph.FlowArcProto.getSerializedSize ( )

Definition at line 182 of file FlowArcProto.java.

◆ getTail()

long com.google.ortools.graph.FlowArcProto.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 71 of file FlowArcProto.java.

◆ getUnitCost()

long com.google.ortools.graph.FlowArcProto.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 148 of file FlowArcProto.java.

◆ hasCapacity()

boolean com.google.ortools.graph.FlowArcProto.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 106 of file FlowArcProto.java.

◆ hashCode()

int com.google.ortools.graph.FlowArcProto.hashCode ( )

Definition at line 243 of file FlowArcProto.java.

◆ hasHead()

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

optional int64 head = 2;

Returns
Whether the head field is set.

Implements com.google.ortools.graph.FlowArcProtoOrBuilder.

Definition at line 82 of file FlowArcProto.java.

◆ hasTail()

boolean com.google.ortools.graph.FlowArcProto.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 58 of file FlowArcProto.java.

◆ hasUnitCost()

boolean com.google.ortools.graph.FlowArcProto.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 135 of file FlowArcProto.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 39 of file FlowArcProto.java.

◆ isInitialized()

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

Definition at line 154 of file FlowArcProto.java.

◆ newBuilder() [1/2]

static Builder com.google.ortools.graph.FlowArcProto.newBuilder ( )
static

Definition at line 348 of file FlowArcProto.java.

◆ newBuilder() [2/2]

static Builder com.google.ortools.graph.FlowArcProto.newBuilder ( com.google.ortools.graph.FlowArcProto prototype)
static

Definition at line 351 of file FlowArcProto.java.

◆ newBuilderForType() [1/2]

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

Definition at line 347 of file FlowArcProto.java.

◆ newBuilderForType() [2/2]

Builder com.google.ortools.graph.FlowArcProto.newBuilderForType ( com.google.protobuf.GeneratedMessage.BuilderParent parent)
protected

Definition at line 361 of file FlowArcProto.java.

◆ parseDelimitedFrom() [1/2]

static com.google.ortools.graph.FlowArcProto com.google.ortools.graph.FlowArcProto.parseDelimitedFrom ( java.io.InputStream input) throws java.io.IOException
static

Definition at line 319 of file FlowArcProto.java.

◆ parseDelimitedFrom() [2/2]

static com.google.ortools.graph.FlowArcProto com.google.ortools.graph.FlowArcProto.parseDelimitedFrom ( java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws java.io.IOException
static

Definition at line 325 of file FlowArcProto.java.

◆ parseFrom() [1/10]

static com.google.ortools.graph.FlowArcProto com.google.ortools.graph.FlowArcProto.parseFrom ( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 296 of file FlowArcProto.java.

◆ parseFrom() [2/10]

static com.google.ortools.graph.FlowArcProto com.google.ortools.graph.FlowArcProto.parseFrom ( byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 300 of file FlowArcProto.java.

◆ parseFrom() [3/10]

static com.google.ortools.graph.FlowArcProto com.google.ortools.graph.FlowArcProto.parseFrom ( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 285 of file FlowArcProto.java.

◆ parseFrom() [4/10]

static com.google.ortools.graph.FlowArcProto com.google.ortools.graph.FlowArcProto.parseFrom ( com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 290 of file FlowArcProto.java.

◆ parseFrom() [5/10]

static com.google.ortools.graph.FlowArcProto com.google.ortools.graph.FlowArcProto.parseFrom ( com.google.protobuf.CodedInputStream input) throws java.io.IOException
static

Definition at line 332 of file FlowArcProto.java.

◆ parseFrom() [6/10]

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

Definition at line 338 of file FlowArcProto.java.

◆ parseFrom() [7/10]

static com.google.ortools.graph.FlowArcProto com.google.ortools.graph.FlowArcProto.parseFrom ( java.io.InputStream input) throws java.io.IOException
static

Definition at line 306 of file FlowArcProto.java.

◆ parseFrom() [8/10]

static com.google.ortools.graph.FlowArcProto com.google.ortools.graph.FlowArcProto.parseFrom ( java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws java.io.IOException
static

Definition at line 311 of file FlowArcProto.java.

◆ parseFrom() [9/10]

static com.google.ortools.graph.FlowArcProto com.google.ortools.graph.FlowArcProto.parseFrom ( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 274 of file FlowArcProto.java.

◆ parseFrom() [10/10]

static com.google.ortools.graph.FlowArcProto com.google.ortools.graph.FlowArcProto.parseFrom ( java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 279 of file FlowArcProto.java.

◆ parser()

static com.google.protobuf.Parser< FlowArcProto > com.google.ortools.graph.FlowArcProto.parser ( )
static

Definition at line 799 of file FlowArcProto.java.

◆ toBuilder()

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

Definition at line 355 of file FlowArcProto.java.

◆ writeTo()

void com.google.ortools.graph.FlowArcProto.writeTo ( com.google.protobuf.CodedOutputStream output) throws java.io.IOException

Definition at line 164 of file FlowArcProto.java.

Member Data Documentation

◆ CAPACITY_FIELD_NUMBER

final int com.google.ortools.graph.FlowArcProto.CAPACITY_FIELD_NUMBER = 3
static

Definition at line 94 of file FlowArcProto.java.

◆ HEAD_FIELD_NUMBER

final int com.google.ortools.graph.FlowArcProto.HEAD_FIELD_NUMBER = 2
static

Definition at line 75 of file FlowArcProto.java.

◆ TAIL_FIELD_NUMBER

final int com.google.ortools.graph.FlowArcProto.TAIL_FIELD_NUMBER = 1
static

Definition at line 46 of file FlowArcProto.java.

◆ UNIT_COST_FIELD_NUMBER

final int com.google.ortools.graph.FlowArcProto.UNIT_COST_FIELD_NUMBER = 4
static

Definition at line 123 of file FlowArcProto.java.


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