Class Port.QueueStats.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Port.QueueStats.Builder>
-
- org.opennms.netmgt.telemetry.protocols.jti.adapter.proto.Port.QueueStats.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,Port.QueueStatsOrBuilder
- Enclosing class:
- Port.QueueStats
public static final class Port.QueueStats.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Port.QueueStats.Builder> implements Port.QueueStatsOrBuilder
Protobuf typeQueueStats
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Port.QueueStats.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Port.QueueStats
build()
Port.QueueStats
buildPartial()
Port.QueueStats.Builder
clear()
Port.QueueStats.Builder
clearAllocatedBufferSize()
allocated buffer sizePort.QueueStats.Builder
clearAvgBufferOccupancy()
Average: avg queue depth,TAQL:time-average-queue-len, in packets, details TBDPort.QueueStats.Builder
clearBytes()
Counter: the total number of bytes that have been added to this queuePort.QueueStats.Builder
clearCurBufferOccupancy()
Gauge: current queue depth, in packetsPort.QueueStats.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Port.QueueStats.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Port.QueueStats.Builder
clearPackets()
Counter: the total number of packets that have been added to this queuePort.QueueStats.Builder
clearPeakBufferOccupancy()
Peak: the max measured queue depth, in packets, across all measurements since bo ot.Port.QueueStats.Builder
clearQueueNumber()
optional uint32 queue_number = 1 [(.telemetry_options) = { ...
Port.QueueStats.Builder
clearRedDropBytes()
Counter: the total number of red-dropped bytesPort.QueueStats.Builder
clearRedDropPackets()
Counter: the total number of red-dropped packetsPort.QueueStats.Builder
clearRlDropBytes()
Counter: the total number of rate-limited bytesPort.QueueStats.Builder
clearRlDropPackets()
Counter: the total number of rate-limitd packetsPort.QueueStats.Builder
clearTailDropPackets()
Counter: the total number of tail dropped packetsPort.QueueStats.Builder
clone()
long
getAllocatedBufferSize()
allocated buffer sizelong
getAvgBufferOccupancy()
Average: avg queue depth,TAQL:time-average-queue-len, in packets, details TBDlong
getBytes()
Counter: the total number of bytes that have been added to this queuelong
getCurBufferOccupancy()
Gauge: current queue depth, in packetsPort.QueueStats
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
long
getPackets()
Counter: the total number of packets that have been added to this queuelong
getPeakBufferOccupancy()
Peak: the max measured queue depth, in packets, across all measurements since bo ot.int
getQueueNumber()
optional uint32 queue_number = 1 [(.telemetry_options) = { ...
long
getRedDropBytes()
Counter: the total number of red-dropped byteslong
getRedDropPackets()
Counter: the total number of red-dropped packetslong
getRlDropBytes()
Counter: the total number of rate-limited byteslong
getRlDropPackets()
Counter: the total number of rate-limitd packetslong
getTailDropPackets()
Counter: the total number of tail dropped packetsboolean
hasAllocatedBufferSize()
allocated buffer sizeboolean
hasAvgBufferOccupancy()
Average: avg queue depth,TAQL:time-average-queue-len, in packets, details TBDboolean
hasBytes()
Counter: the total number of bytes that have been added to this queueboolean
hasCurBufferOccupancy()
Gauge: current queue depth, in packetsboolean
hasPackets()
Counter: the total number of packets that have been added to this queueboolean
hasPeakBufferOccupancy()
Peak: the max measured queue depth, in packets, across all measurements since bo ot.boolean
hasQueueNumber()
optional uint32 queue_number = 1 [(.telemetry_options) = { ...
boolean
hasRedDropBytes()
Counter: the total number of red-dropped bytesboolean
hasRedDropPackets()
Counter: the total number of red-dropped packetsboolean
hasRlDropBytes()
Counter: the total number of rate-limited bytesboolean
hasRlDropPackets()
Counter: the total number of rate-limitd packetsboolean
hasTailDropPackets()
Counter: the total number of tail dropped packetsprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Port.QueueStats.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Port.QueueStats.Builder
mergeFrom(com.google.protobuf.Message other)
Port.QueueStats.Builder
mergeFrom(Port.QueueStats other)
Port.QueueStats.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Port.QueueStats.Builder
setAllocatedBufferSize(long value)
allocated buffer sizePort.QueueStats.Builder
setAvgBufferOccupancy(long value)
Average: avg queue depth,TAQL:time-average-queue-len, in packets, details TBDPort.QueueStats.Builder
setBytes(long value)
Counter: the total number of bytes that have been added to this queuePort.QueueStats.Builder
setCurBufferOccupancy(long value)
Gauge: current queue depth, in packetsPort.QueueStats.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Port.QueueStats.Builder
setPackets(long value)
Counter: the total number of packets that have been added to this queuePort.QueueStats.Builder
setPeakBufferOccupancy(long value)
Peak: the max measured queue depth, in packets, across all measurements since bo ot.Port.QueueStats.Builder
setQueueNumber(int value)
optional uint32 queue_number = 1 [(.telemetry_options) = { ...
Port.QueueStats.Builder
setRedDropBytes(long value)
Counter: the total number of red-dropped bytesPort.QueueStats.Builder
setRedDropPackets(long value)
Counter: the total number of red-dropped packetsPort.QueueStats.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Port.QueueStats.Builder
setRlDropBytes(long value)
Counter: the total number of rate-limited bytesPort.QueueStats.Builder
setRlDropPackets(long value)
Counter: the total number of rate-limitd packetsPort.QueueStats.Builder
setTailDropPackets(long value)
Counter: the total number of tail dropped packetsPort.QueueStats.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Port.QueueStats.Builder>
-
clear
public Port.QueueStats.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Port.QueueStats.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Port.QueueStats.Builder>
-
getDefaultInstanceForType
public Port.QueueStats getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Port.QueueStats build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Port.QueueStats buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Port.QueueStats.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Port.QueueStats.Builder>
-
setField
public Port.QueueStats.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Port.QueueStats.Builder>
-
clearField
public Port.QueueStats.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Port.QueueStats.Builder>
-
clearOneof
public Port.QueueStats.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Port.QueueStats.Builder>
-
setRepeatedField
public Port.QueueStats.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Port.QueueStats.Builder>
-
addRepeatedField
public Port.QueueStats.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Port.QueueStats.Builder>
-
mergeFrom
public Port.QueueStats.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Port.QueueStats.Builder>
-
mergeFrom
public Port.QueueStats.Builder mergeFrom(Port.QueueStats other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Port.QueueStats.Builder>
-
mergeFrom
public Port.QueueStats.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Port.QueueStats.Builder>
- Throws:
IOException
-
hasQueueNumber
public boolean hasQueueNumber()
optional uint32 queue_number = 1 [(.telemetry_options) = { ... }
- Specified by:
hasQueueNumber
in interfacePort.QueueStatsOrBuilder
- Returns:
- Whether the queueNumber field is set.
-
getQueueNumber
public int getQueueNumber()
optional uint32 queue_number = 1 [(.telemetry_options) = { ... }
- Specified by:
getQueueNumber
in interfacePort.QueueStatsOrBuilder
- Returns:
- The queueNumber.
-
setQueueNumber
public Port.QueueStats.Builder setQueueNumber(int value)
optional uint32 queue_number = 1 [(.telemetry_options) = { ... }
- Parameters:
value
- The queueNumber to set.- Returns:
- This builder for chaining.
-
clearQueueNumber
public Port.QueueStats.Builder clearQueueNumber()
optional uint32 queue_number = 1 [(.telemetry_options) = { ... }
- Returns:
- This builder for chaining.
-
hasPackets
public boolean hasPackets()
Counter: the total number of packets that have been added to this queue
optional uint64 packets = 2 [(.telemetry_options) = { ... }
- Specified by:
hasPackets
in interfacePort.QueueStatsOrBuilder
- Returns:
- Whether the packets field is set.
-
getPackets
public long getPackets()
Counter: the total number of packets that have been added to this queue
optional uint64 packets = 2 [(.telemetry_options) = { ... }
- Specified by:
getPackets
in interfacePort.QueueStatsOrBuilder
- Returns:
- The packets.
-
setPackets
public Port.QueueStats.Builder setPackets(long value)
Counter: the total number of packets that have been added to this queue
optional uint64 packets = 2 [(.telemetry_options) = { ... }
- Parameters:
value
- The packets to set.- Returns:
- This builder for chaining.
-
clearPackets
public Port.QueueStats.Builder clearPackets()
Counter: the total number of packets that have been added to this queue
optional uint64 packets = 2 [(.telemetry_options) = { ... }
- Returns:
- This builder for chaining.
-
hasBytes
public boolean hasBytes()
Counter: the total number of bytes that have been added to this queue
optional uint64 bytes = 3 [(.telemetry_options) = { ... }
- Specified by:
hasBytes
in interfacePort.QueueStatsOrBuilder
- Returns:
- Whether the bytes field is set.
-
getBytes
public long getBytes()
Counter: the total number of bytes that have been added to this queue
optional uint64 bytes = 3 [(.telemetry_options) = { ... }
- Specified by:
getBytes
in interfacePort.QueueStatsOrBuilder
- Returns:
- The bytes.
-
setBytes
public Port.QueueStats.Builder setBytes(long value)
Counter: the total number of bytes that have been added to this queue
optional uint64 bytes = 3 [(.telemetry_options) = { ... }
- Parameters:
value
- The bytes to set.- Returns:
- This builder for chaining.
-
clearBytes
public Port.QueueStats.Builder clearBytes()
Counter: the total number of bytes that have been added to this queue
optional uint64 bytes = 3 [(.telemetry_options) = { ... }
- Returns:
- This builder for chaining.
-
hasTailDropPackets
public boolean hasTailDropPackets()
Counter: the total number of tail dropped packets
optional uint64 tail_drop_packets = 4 [(.telemetry_options) = { ... }
- Specified by:
hasTailDropPackets
in interfacePort.QueueStatsOrBuilder
- Returns:
- Whether the tailDropPackets field is set.
-
getTailDropPackets
public long getTailDropPackets()
Counter: the total number of tail dropped packets
optional uint64 tail_drop_packets = 4 [(.telemetry_options) = { ... }
- Specified by:
getTailDropPackets
in interfacePort.QueueStatsOrBuilder
- Returns:
- The tailDropPackets.
-
setTailDropPackets
public Port.QueueStats.Builder setTailDropPackets(long value)
Counter: the total number of tail dropped packets
optional uint64 tail_drop_packets = 4 [(.telemetry_options) = { ... }
- Parameters:
value
- The tailDropPackets to set.- Returns:
- This builder for chaining.
-
clearTailDropPackets
public Port.QueueStats.Builder clearTailDropPackets()
Counter: the total number of tail dropped packets
optional uint64 tail_drop_packets = 4 [(.telemetry_options) = { ... }
- Returns:
- This builder for chaining.
-
hasRlDropPackets
public boolean hasRlDropPackets()
Counter: the total number of rate-limitd packets
optional uint64 rl_drop_packets = 5 [(.telemetry_options) = { ... }
- Specified by:
hasRlDropPackets
in interfacePort.QueueStatsOrBuilder
- Returns:
- Whether the rlDropPackets field is set.
-
getRlDropPackets
public long getRlDropPackets()
Counter: the total number of rate-limitd packets
optional uint64 rl_drop_packets = 5 [(.telemetry_options) = { ... }
- Specified by:
getRlDropPackets
in interfacePort.QueueStatsOrBuilder
- Returns:
- The rlDropPackets.
-
setRlDropPackets
public Port.QueueStats.Builder setRlDropPackets(long value)
Counter: the total number of rate-limitd packets
optional uint64 rl_drop_packets = 5 [(.telemetry_options) = { ... }
- Parameters:
value
- The rlDropPackets to set.- Returns:
- This builder for chaining.
-
clearRlDropPackets
public Port.QueueStats.Builder clearRlDropPackets()
Counter: the total number of rate-limitd packets
optional uint64 rl_drop_packets = 5 [(.telemetry_options) = { ... }
- Returns:
- This builder for chaining.
-
hasRlDropBytes
public boolean hasRlDropBytes()
Counter: the total number of rate-limited bytes
optional uint64 rl_drop_bytes = 6 [(.telemetry_options) = { ... }
- Specified by:
hasRlDropBytes
in interfacePort.QueueStatsOrBuilder
- Returns:
- Whether the rlDropBytes field is set.
-
getRlDropBytes
public long getRlDropBytes()
Counter: the total number of rate-limited bytes
optional uint64 rl_drop_bytes = 6 [(.telemetry_options) = { ... }
- Specified by:
getRlDropBytes
in interfacePort.QueueStatsOrBuilder
- Returns:
- The rlDropBytes.
-
setRlDropBytes
public Port.QueueStats.Builder setRlDropBytes(long value)
Counter: the total number of rate-limited bytes
optional uint64 rl_drop_bytes = 6 [(.telemetry_options) = { ... }
- Parameters:
value
- The rlDropBytes to set.- Returns:
- This builder for chaining.
-
clearRlDropBytes
public Port.QueueStats.Builder clearRlDropBytes()
Counter: the total number of rate-limited bytes
optional uint64 rl_drop_bytes = 6 [(.telemetry_options) = { ... }
- Returns:
- This builder for chaining.
-
hasRedDropPackets
public boolean hasRedDropPackets()
Counter: the total number of red-dropped packets
optional uint64 red_drop_packets = 7 [(.telemetry_options) = { ... }
- Specified by:
hasRedDropPackets
in interfacePort.QueueStatsOrBuilder
- Returns:
- Whether the redDropPackets field is set.
-
getRedDropPackets
public long getRedDropPackets()
Counter: the total number of red-dropped packets
optional uint64 red_drop_packets = 7 [(.telemetry_options) = { ... }
- Specified by:
getRedDropPackets
in interfacePort.QueueStatsOrBuilder
- Returns:
- The redDropPackets.
-
setRedDropPackets
public Port.QueueStats.Builder setRedDropPackets(long value)
Counter: the total number of red-dropped packets
optional uint64 red_drop_packets = 7 [(.telemetry_options) = { ... }
- Parameters:
value
- The redDropPackets to set.- Returns:
- This builder for chaining.
-
clearRedDropPackets
public Port.QueueStats.Builder clearRedDropPackets()
Counter: the total number of red-dropped packets
optional uint64 red_drop_packets = 7 [(.telemetry_options) = { ... }
- Returns:
- This builder for chaining.
-
hasRedDropBytes
public boolean hasRedDropBytes()
Counter: the total number of red-dropped bytes
optional uint64 red_drop_bytes = 8 [(.telemetry_options) = { ... }
- Specified by:
hasRedDropBytes
in interfacePort.QueueStatsOrBuilder
- Returns:
- Whether the redDropBytes field is set.
-
getRedDropBytes
public long getRedDropBytes()
Counter: the total number of red-dropped bytes
optional uint64 red_drop_bytes = 8 [(.telemetry_options) = { ... }
- Specified by:
getRedDropBytes
in interfacePort.QueueStatsOrBuilder
- Returns:
- The redDropBytes.
-
setRedDropBytes
public Port.QueueStats.Builder setRedDropBytes(long value)
Counter: the total number of red-dropped bytes
optional uint64 red_drop_bytes = 8 [(.telemetry_options) = { ... }
- Parameters:
value
- The redDropBytes to set.- Returns:
- This builder for chaining.
-
clearRedDropBytes
public Port.QueueStats.Builder clearRedDropBytes()
Counter: the total number of red-dropped bytes
optional uint64 red_drop_bytes = 8 [(.telemetry_options) = { ... }
- Returns:
- This builder for chaining.
-
hasAvgBufferOccupancy
public boolean hasAvgBufferOccupancy()
Average: avg queue depth,TAQL:time-average-queue-len, in packets, details TBD
optional uint64 avg_buffer_occupancy = 9 [(.telemetry_options) = { ... }
- Specified by:
hasAvgBufferOccupancy
in interfacePort.QueueStatsOrBuilder
- Returns:
- Whether the avgBufferOccupancy field is set.
-
getAvgBufferOccupancy
public long getAvgBufferOccupancy()
Average: avg queue depth,TAQL:time-average-queue-len, in packets, details TBD
optional uint64 avg_buffer_occupancy = 9 [(.telemetry_options) = { ... }
- Specified by:
getAvgBufferOccupancy
in interfacePort.QueueStatsOrBuilder
- Returns:
- The avgBufferOccupancy.
-
setAvgBufferOccupancy
public Port.QueueStats.Builder setAvgBufferOccupancy(long value)
Average: avg queue depth,TAQL:time-average-queue-len, in packets, details TBD
optional uint64 avg_buffer_occupancy = 9 [(.telemetry_options) = { ... }
- Parameters:
value
- The avgBufferOccupancy to set.- Returns:
- This builder for chaining.
-
clearAvgBufferOccupancy
public Port.QueueStats.Builder clearAvgBufferOccupancy()
Average: avg queue depth,TAQL:time-average-queue-len, in packets, details TBD
optional uint64 avg_buffer_occupancy = 9 [(.telemetry_options) = { ... }
- Returns:
- This builder for chaining.
-
hasCurBufferOccupancy
public boolean hasCurBufferOccupancy()
Gauge: current queue depth, in packets
optional uint64 cur_buffer_occupancy = 10 [(.telemetry_options) = { ... }
- Specified by:
hasCurBufferOccupancy
in interfacePort.QueueStatsOrBuilder
- Returns:
- Whether the curBufferOccupancy field is set.
-
getCurBufferOccupancy
public long getCurBufferOccupancy()
Gauge: current queue depth, in packets
optional uint64 cur_buffer_occupancy = 10 [(.telemetry_options) = { ... }
- Specified by:
getCurBufferOccupancy
in interfacePort.QueueStatsOrBuilder
- Returns:
- The curBufferOccupancy.
-
setCurBufferOccupancy
public Port.QueueStats.Builder setCurBufferOccupancy(long value)
Gauge: current queue depth, in packets
optional uint64 cur_buffer_occupancy = 10 [(.telemetry_options) = { ... }
- Parameters:
value
- The curBufferOccupancy to set.- Returns:
- This builder for chaining.
-
clearCurBufferOccupancy
public Port.QueueStats.Builder clearCurBufferOccupancy()
Gauge: current queue depth, in packets
optional uint64 cur_buffer_occupancy = 10 [(.telemetry_options) = { ... }
- Returns:
- This builder for chaining.
-
hasPeakBufferOccupancy
public boolean hasPeakBufferOccupancy()
Peak: the max measured queue depth, in packets, across all measurements since bo ot.
optional uint64 peak_buffer_occupancy = 11 [(.telemetry_options) = { ... }
- Specified by:
hasPeakBufferOccupancy
in interfacePort.QueueStatsOrBuilder
- Returns:
- Whether the peakBufferOccupancy field is set.
-
getPeakBufferOccupancy
public long getPeakBufferOccupancy()
Peak: the max measured queue depth, in packets, across all measurements since bo ot.
optional uint64 peak_buffer_occupancy = 11 [(.telemetry_options) = { ... }
- Specified by:
getPeakBufferOccupancy
in interfacePort.QueueStatsOrBuilder
- Returns:
- The peakBufferOccupancy.
-
setPeakBufferOccupancy
public Port.QueueStats.Builder setPeakBufferOccupancy(long value)
Peak: the max measured queue depth, in packets, across all measurements since bo ot.
optional uint64 peak_buffer_occupancy = 11 [(.telemetry_options) = { ... }
- Parameters:
value
- The peakBufferOccupancy to set.- Returns:
- This builder for chaining.
-
clearPeakBufferOccupancy
public Port.QueueStats.Builder clearPeakBufferOccupancy()
Peak: the max measured queue depth, in packets, across all measurements since bo ot.
optional uint64 peak_buffer_occupancy = 11 [(.telemetry_options) = { ... }
- Returns:
- This builder for chaining.
-
hasAllocatedBufferSize
public boolean hasAllocatedBufferSize()
allocated buffer size
optional uint64 allocated_buffer_size = 12 [(.telemetry_options) = { ... }
- Specified by:
hasAllocatedBufferSize
in interfacePort.QueueStatsOrBuilder
- Returns:
- Whether the allocatedBufferSize field is set.
-
getAllocatedBufferSize
public long getAllocatedBufferSize()
allocated buffer size
optional uint64 allocated_buffer_size = 12 [(.telemetry_options) = { ... }
- Specified by:
getAllocatedBufferSize
in interfacePort.QueueStatsOrBuilder
- Returns:
- The allocatedBufferSize.
-
setAllocatedBufferSize
public Port.QueueStats.Builder setAllocatedBufferSize(long value)
allocated buffer size
optional uint64 allocated_buffer_size = 12 [(.telemetry_options) = { ... }
- Parameters:
value
- The allocatedBufferSize to set.- Returns:
- This builder for chaining.
-
clearAllocatedBufferSize
public Port.QueueStats.Builder clearAllocatedBufferSize()
allocated buffer size
optional uint64 allocated_buffer_size = 12 [(.telemetry_options) = { ... }
- Returns:
- This builder for chaining.
-
setUnknownFields
public final Port.QueueStats.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Port.QueueStats.Builder>
-
mergeUnknownFields
public final Port.QueueStats.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Port.QueueStats.Builder>
-
-