Class Port.QueueStats

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, Port.QueueStatsOrBuilder
    Enclosing class:
    Port

    public static final class Port.QueueStats
    extends com.google.protobuf.GeneratedMessageV3
    implements Port.QueueStatsOrBuilder
    Protobuf type QueueStats
    See Also:
    Serialized Form
    • Field Detail

      • QUEUE_NUMBER_FIELD_NUMBER

        public static final int QUEUE_NUMBER_FIELD_NUMBER
        See Also:
        Constant Field Values
      • TAIL_DROP_PACKETS_FIELD_NUMBER

        public static final int TAIL_DROP_PACKETS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • RL_DROP_PACKETS_FIELD_NUMBER

        public static final int RL_DROP_PACKETS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • RL_DROP_BYTES_FIELD_NUMBER

        public static final int RL_DROP_BYTES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • RED_DROP_PACKETS_FIELD_NUMBER

        public static final int RED_DROP_PACKETS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • RED_DROP_BYTES_FIELD_NUMBER

        public static final int RED_DROP_BYTES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • AVG_BUFFER_OCCUPANCY_FIELD_NUMBER

        public static final int AVG_BUFFER_OCCUPANCY_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CUR_BUFFER_OCCUPANCY_FIELD_NUMBER

        public static final int CUR_BUFFER_OCCUPANCY_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PEAK_BUFFER_OCCUPANCY_FIELD_NUMBER

        public static final int PEAK_BUFFER_OCCUPANCY_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ALLOCATED_BUFFER_SIZE_FIELD_NUMBER

        public static final int ALLOCATED_BUFFER_SIZE_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • hasQueueNumber

        public boolean hasQueueNumber()
        optional uint32 queue_number = 1 [(.telemetry_options) = { ... }
        Specified by:
        hasQueueNumber in interface Port.QueueStatsOrBuilder
        Returns:
        Whether the queueNumber field is set.
      • getQueueNumber

        public int getQueueNumber()
        optional uint32 queue_number = 1 [(.telemetry_options) = { ... }
        Specified by:
        getQueueNumber in interface Port.QueueStatsOrBuilder
        Returns:
        The queueNumber.
      • 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 interface Port.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 interface Port.QueueStatsOrBuilder
        Returns:
        The packets.
      • 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 interface Port.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 interface Port.QueueStatsOrBuilder
        Returns:
        The bytes.
      • hasTailDropPackets

        public boolean hasTailDropPackets()
         Counter: the total number of tail dropped packets
         
        optional uint64 tail_drop_packets = 4 [(.telemetry_options) = { ... }
        Specified by:
        hasTailDropPackets in interface Port.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 interface Port.QueueStatsOrBuilder
        Returns:
        The tailDropPackets.
      • hasRlDropPackets

        public boolean hasRlDropPackets()
         Counter: the total number of rate-limitd packets
         
        optional uint64 rl_drop_packets = 5 [(.telemetry_options) = { ... }
        Specified by:
        hasRlDropPackets in interface Port.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 interface Port.QueueStatsOrBuilder
        Returns:
        The rlDropPackets.
      • hasRlDropBytes

        public boolean hasRlDropBytes()
         Counter: the total number of rate-limited bytes
         
        optional uint64 rl_drop_bytes = 6 [(.telemetry_options) = { ... }
        Specified by:
        hasRlDropBytes in interface Port.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 interface Port.QueueStatsOrBuilder
        Returns:
        The rlDropBytes.
      • hasRedDropPackets

        public boolean hasRedDropPackets()
         Counter: the total number of red-dropped packets
         
        optional uint64 red_drop_packets = 7 [(.telemetry_options) = { ... }
        Specified by:
        hasRedDropPackets in interface Port.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 interface Port.QueueStatsOrBuilder
        Returns:
        The redDropPackets.
      • hasRedDropBytes

        public boolean hasRedDropBytes()
         Counter: the total number of red-dropped bytes
         
        optional uint64 red_drop_bytes = 8 [(.telemetry_options) = { ... }
        Specified by:
        hasRedDropBytes in interface Port.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 interface Port.QueueStatsOrBuilder
        Returns:
        The redDropBytes.
      • 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 interface Port.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 interface Port.QueueStatsOrBuilder
        Returns:
        The avgBufferOccupancy.
      • hasCurBufferOccupancy

        public boolean hasCurBufferOccupancy()
         Gauge: current queue depth, in packets
         
        optional uint64 cur_buffer_occupancy = 10 [(.telemetry_options) = { ... }
        Specified by:
        hasCurBufferOccupancy in interface Port.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 interface Port.QueueStatsOrBuilder
        Returns:
        The curBufferOccupancy.
      • 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 interface Port.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 interface Port.QueueStatsOrBuilder
        Returns:
        The peakBufferOccupancy.
      • hasAllocatedBufferSize

        public boolean hasAllocatedBufferSize()
         allocated buffer size
         
        optional uint64 allocated_buffer_size = 12 [(.telemetry_options) = { ... }
        Specified by:
        hasAllocatedBufferSize in interface Port.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 interface Port.QueueStatsOrBuilder
        Returns:
        The allocatedBufferSize.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static Port.QueueStats parseFrom​(ByteBuffer data)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Port.QueueStats parseFrom​(ByteBuffer data,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Port.QueueStats parseFrom​(com.google.protobuf.ByteString data)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Port.QueueStats parseFrom​(com.google.protobuf.ByteString data,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Port.QueueStats parseFrom​(byte[] data)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Port.QueueStats parseFrom​(byte[] data,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Port.QueueStats parseFrom​(com.google.protobuf.CodedInputStream input,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws IOException
        Throws:
        IOException
      • newBuilderForType

        public Port.QueueStats.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public Port.QueueStats.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected Port.QueueStats.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • parser

        public static com.google.protobuf.Parser<Port.QueueStats> parser()
      • getParserForType

        public com.google.protobuf.Parser<Port.QueueStats> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public Port.QueueStats getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder