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

Classes

class  Builder
 

Public Member Functions

boolean hasId ()
 
long getId ()
 
boolean hasSupply ()
 
long getSupply ()
 
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< FlowNodeProtogetParserForType ()
 
com.google.ortools.graph.FlowNodeProto getDefaultInstanceForType ()
 

Static Public Member Functions

static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
 
static com.google.ortools.graph.FlowNodeProto parseFrom (java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.graph.FlowNodeProto parseFrom (java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.graph.FlowNodeProto parseFrom (com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.graph.FlowNodeProto parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.graph.FlowNodeProto parseFrom (byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.graph.FlowNodeProto parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.graph.FlowNodeProto parseFrom (java.io.InputStream input) throws java.io.IOException
 
static com.google.ortools.graph.FlowNodeProto parseFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
static com.google.ortools.graph.FlowNodeProto parseDelimitedFrom (java.io.InputStream input) throws java.io.IOException
 
static com.google.ortools.graph.FlowNodeProto parseDelimitedFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
static com.google.ortools.graph.FlowNodeProto parseFrom (com.google.protobuf.CodedInputStream input) throws java.io.IOException
 
static com.google.ortools.graph.FlowNodeProto 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.FlowNodeProto prototype)
 
static com.google.ortools.graph.FlowNodeProto getDefaultInstance ()
 
static com.google.protobuf.Parser< FlowNodeProtoparser ()
 

Static Public Attributes

static final int ID_FIELD_NUMBER = 1
 
static final int SUPPLY_FIELD_NUMBER = 2
 
static final com.google.protobuf.Parser< FlowNodeProtoPARSER
 

Protected Member Functions

java.lang.Object newInstance (UnusedPrivateParameter unused)
 
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable ()
 
Builder newBuilderForType (com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
 

Detailed Description

Protobuf type operations_research.FlowNodeProto

Definition at line 10 of file FlowNodeProto.java.

Member Function Documentation

◆ equals()

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

Definition at line 146 of file FlowNodeProto.java.

◆ getDefaultInstance()

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

Definition at line 612 of file FlowNodeProto.java.

◆ getDefaultInstanceForType()

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

Definition at line 648 of file FlowNodeProto.java.

◆ getDescriptor()

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

Definition at line 30 of file FlowNodeProto.java.

◆ getId()

long com.google.ortools.graph.FlowNodeProto.getId ( )
The ids must be non-negative (>= 0). They should be dense for good
performance. Note that it is not mandatory to include nodes with no supply
in a FlowModelProto.

optional int64 id = 1;

Returns
The id.

Implements com.google.ortools.graph.FlowNodeProtoOrBuilder.

Definition at line 70 of file FlowNodeProto.java.

◆ getParserForType()

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

Definition at line 643 of file FlowNodeProto.java.

◆ getSerializedSize()

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

Definition at line 127 of file FlowNodeProto.java.

◆ getSupply()

long com.google.ortools.graph.FlowNodeProto.getSupply ( )
The supply can be positive or negative in which case it means demand.
The sum of the supplies over all nodes must always be 0.

optional int64 supply = 2 [default = 0];

Returns
The supply.

Implements com.google.ortools.graph.FlowNodeProtoOrBuilder.

Definition at line 99 of file FlowNodeProto.java.

◆ hashCode()

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

Definition at line 170 of file FlowNodeProto.java.

◆ hasId()

boolean com.google.ortools.graph.FlowNodeProto.hasId ( )
The ids must be non-negative (>= 0). They should be dense for good
performance. Note that it is not mandatory to include nodes with no supply
in a FlowModelProto.

optional int64 id = 1;

Returns
Whether the id field is set.

Implements com.google.ortools.graph.FlowNodeProtoOrBuilder.

Definition at line 56 of file FlowNodeProto.java.

◆ hasSupply()

boolean com.google.ortools.graph.FlowNodeProto.hasSupply ( )
The supply can be positive or negative in which case it means demand.
The sum of the supplies over all nodes must always be 0.

optional int64 supply = 2 [default = 0];

Returns
Whether the supply field is set.

Implements com.google.ortools.graph.FlowNodeProtoOrBuilder.

Definition at line 86 of file FlowNodeProto.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 36 of file FlowNodeProto.java.

◆ isInitialized()

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

Definition at line 105 of file FlowNodeProto.java.

◆ newBuilder() [1/2]

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

Definition at line 265 of file FlowNodeProto.java.

◆ newBuilder() [2/2]

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

Definition at line 268 of file FlowNodeProto.java.

◆ newBuilderForType() [1/2]

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

Definition at line 264 of file FlowNodeProto.java.

◆ newBuilderForType() [2/2]

Builder com.google.ortools.graph.FlowNodeProto.newBuilderForType ( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected

Definition at line 278 of file FlowNodeProto.java.

◆ newInstance()

java.lang.Object com.google.ortools.graph.FlowNodeProto.newInstance ( UnusedPrivateParameter unused)
protected

Definition at line 24 of file FlowNodeProto.java.

◆ parseDelimitedFrom() [1/2]

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

Definition at line 236 of file FlowNodeProto.java.

◆ parseDelimitedFrom() [2/2]

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

Definition at line 242 of file FlowNodeProto.java.

◆ parseFrom() [1/10]

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

Definition at line 213 of file FlowNodeProto.java.

◆ parseFrom() [2/10]

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

Definition at line 217 of file FlowNodeProto.java.

◆ parseFrom() [3/10]

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

Definition at line 202 of file FlowNodeProto.java.

◆ parseFrom() [4/10]

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

Definition at line 207 of file FlowNodeProto.java.

◆ parseFrom() [5/10]

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

Definition at line 249 of file FlowNodeProto.java.

◆ parseFrom() [6/10]

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

Definition at line 255 of file FlowNodeProto.java.

◆ parseFrom() [7/10]

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

Definition at line 223 of file FlowNodeProto.java.

◆ parseFrom() [8/10]

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

Definition at line 228 of file FlowNodeProto.java.

◆ parseFrom() [9/10]

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

Definition at line 191 of file FlowNodeProto.java.

◆ parseFrom() [10/10]

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

Definition at line 196 of file FlowNodeProto.java.

◆ parser()

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

Definition at line 638 of file FlowNodeProto.java.

◆ toBuilder()

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

Definition at line 272 of file FlowNodeProto.java.

◆ writeTo()

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

Definition at line 115 of file FlowNodeProto.java.

Member Data Documentation

◆ ID_FIELD_NUMBER

final int com.google.ortools.graph.FlowNodeProto.ID_FIELD_NUMBER = 1
static

Definition at line 43 of file FlowNodeProto.java.

◆ PARSER

final com.google.protobuf.Parser<FlowNodeProto> com.google.ortools.graph.FlowNodeProto.PARSER
static
Initial value:
= new com.google.protobuf.AbstractParser<FlowNodeProto>() {
@java.lang.Override
public FlowNodeProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
}

Definition at line 617 of file FlowNodeProto.java.

◆ SUPPLY_FIELD_NUMBER

final int com.google.ortools.graph.FlowNodeProto.SUPPLY_FIELD_NUMBER = 2
static

Definition at line 74 of file FlowNodeProto.java.


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