public static final class FlowArcProto.Builder extends com.google.protobuf.GeneratedMessage.Builder<FlowArcProto.Builder> implements FlowArcProtoOrBuilder
operations_research.FlowArcProto| Modifier and Type | Method and Description |
|---|---|
FlowArcProto |
build() |
FlowArcProto |
buildPartial() |
FlowArcProto.Builder |
clear() |
FlowArcProto.Builder |
clearCapacity()
Capacity of the arc.
|
FlowArcProto.Builder |
clearHead()
optional int64 head = 2; |
FlowArcProto.Builder |
clearTail()
A directed arc goes from a tail node to a head node.
|
FlowArcProto.Builder |
clearUnitCost()
Cost of this arc per unit of flow.
|
long |
getCapacity()
Capacity of the arc.
|
FlowArcProto |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getHead()
optional int64 head = 2; |
long |
getTail()
A directed arc goes from a tail node to a head node.
|
long |
getUnitCost()
Cost of this arc per unit of flow.
|
boolean |
hasCapacity()
Capacity of the arc.
|
boolean |
hasHead()
optional int64 head = 2; |
boolean |
hasTail()
A directed arc goes from a tail node to a head node.
|
boolean |
hasUnitCost()
Cost of this arc per unit of flow.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
FlowArcProto.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
FlowArcProto.Builder |
mergeFrom(FlowArcProto other) |
FlowArcProto.Builder |
mergeFrom(com.google.protobuf.Message other) |
FlowArcProto.Builder |
setCapacity(long value)
Capacity of the arc.
|
FlowArcProto.Builder |
setHead(long value)
optional int64 head = 2; |
FlowArcProto.Builder |
setTail(long value)
A directed arc goes from a tail node to a head node.
|
FlowArcProto.Builder |
setUnitCost(long value)
Cost of this arc per unit of flow.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<FlowArcProto.Builder>public FlowArcProto.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<FlowArcProto.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<FlowArcProto.Builder>public FlowArcProto getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic FlowArcProto build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic FlowArcProto buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic FlowArcProto.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<FlowArcProto.Builder>public FlowArcProto.Builder mergeFrom(FlowArcProto other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<FlowArcProto.Builder>public FlowArcProto.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<FlowArcProto.Builder>java.io.IOExceptionpublic boolean hasTail()
A directed arc goes from a tail node to a head node. Node ids must be non-negative (>= 0).
optional int64 tail = 1;hasTail in interface FlowArcProtoOrBuilderpublic long getTail()
A directed arc goes from a tail node to a head node. Node ids must be non-negative (>= 0).
optional int64 tail = 1;getTail in interface FlowArcProtoOrBuilderpublic 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;value - The tail to set.public 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;public boolean hasHead()
optional int64 head = 2;hasHead in interface FlowArcProtoOrBuilderpublic long getHead()
optional int64 head = 2;getHead in interface FlowArcProtoOrBuilderpublic FlowArcProto.Builder setHead(long value)
optional int64 head = 2;value - The head to set.public FlowArcProto.Builder clearHead()
optional int64 head = 2;public boolean 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];hasCapacity in interface FlowArcProtoOrBuilderpublic long 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];getCapacity in interface FlowArcProtoOrBuilderpublic 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];value - The capacity to set.public 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];public boolean 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];hasUnitCost in interface FlowArcProtoOrBuilderpublic long 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];getUnitCost in interface FlowArcProtoOrBuilderpublic 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];value - The unitCost to set.public 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];Copyright © 2024. All rights reserved.