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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public 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.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessage.Builder<FlowArcProto.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessage.Builder<FlowArcProto.Builder>
public FlowArcProto getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public FlowArcProto build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public FlowArcProto buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public FlowArcProto.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<FlowArcProto.Builder>
java.io.IOException
public 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 FlowArcProtoOrBuilder
public 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 FlowArcProtoOrBuilder
public 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 FlowArcProtoOrBuilder
public long getHead()
optional int64 head = 2;
getHead
in interface FlowArcProtoOrBuilder
public 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 FlowArcProtoOrBuilder
public 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 FlowArcProtoOrBuilder
public 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 FlowArcProtoOrBuilder
public 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 FlowArcProtoOrBuilder
public 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 © 2025. All rights reserved.