Class Port.QueueStats.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable, Port.QueueStatsOrBuilder
    Enclosing class:
    Port.QueueStats

    public static final class Port.QueueStats.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<Port.QueueStats.Builder>
    implements Port.QueueStatsOrBuilder
    Protobuf type QueueStats
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Port.QueueStats.Builder>
      • clear

        public Port.QueueStats.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessage.Builder<Port.QueueStats.Builder>
      • clone

        public Port.QueueStats.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessage.Builder<Port.QueueStats.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Port.QueueStats.Builder>
      • getDefaultInstanceForType

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

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

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

        public Port.QueueStats.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Port.QueueStats.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Port.QueueStats.Builder>
      • mergeFrom

        public Port.QueueStats.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Port.QueueStats.Builder>
        Throws:
        java.io.IOException
      • hasPackets

        public boolean hasPackets()
        optional uint64 packets = 2;
         Counter: the total number of packets that have been added to this queue
         
        Specified by:
        hasPackets in interface Port.QueueStatsOrBuilder
      • getPackets

        public long getPackets()
        optional uint64 packets = 2;
         Counter: the total number of packets that have been added to this queue
         
        Specified by:
        getPackets in interface Port.QueueStatsOrBuilder
      • setPackets

        public Port.QueueStats.Builder setPackets​(long value)
        optional uint64 packets = 2;
         Counter: the total number of packets that have been added to this queue
         
      • clearPackets

        public Port.QueueStats.Builder clearPackets()
        optional uint64 packets = 2;
         Counter: the total number of packets that have been added to this queue
         
      • hasBytes

        public boolean hasBytes()
        optional uint64 bytes = 3;
         Counter: the total number of bytes that have been added to this queue
         
        Specified by:
        hasBytes in interface Port.QueueStatsOrBuilder
      • getBytes

        public long getBytes()
        optional uint64 bytes = 3;
         Counter: the total number of bytes that have been added to this queue
         
        Specified by:
        getBytes in interface Port.QueueStatsOrBuilder
      • setBytes

        public Port.QueueStats.Builder setBytes​(long value)
        optional uint64 bytes = 3;
         Counter: the total number of bytes that have been added to this queue
         
      • clearBytes

        public Port.QueueStats.Builder clearBytes()
        optional uint64 bytes = 3;
         Counter: the total number of bytes that have been added to this queue
         
      • hasTailDropPackets

        public boolean hasTailDropPackets()
        optional uint64 tail_drop_packets = 4;
         Counter: the total number of tail dropped packets
         
        Specified by:
        hasTailDropPackets in interface Port.QueueStatsOrBuilder
      • getTailDropPackets

        public long getTailDropPackets()
        optional uint64 tail_drop_packets = 4;
         Counter: the total number of tail dropped packets
         
        Specified by:
        getTailDropPackets in interface Port.QueueStatsOrBuilder
      • setTailDropPackets

        public Port.QueueStats.Builder setTailDropPackets​(long value)
        optional uint64 tail_drop_packets = 4;
         Counter: the total number of tail dropped packets
         
      • clearTailDropPackets

        public Port.QueueStats.Builder clearTailDropPackets()
        optional uint64 tail_drop_packets = 4;
         Counter: the total number of tail dropped packets
         
      • hasRlDropPackets

        public boolean hasRlDropPackets()
        optional uint64 rl_drop_packets = 5;
         Counter: the total number of rate-limitd packets
         
        Specified by:
        hasRlDropPackets in interface Port.QueueStatsOrBuilder
      • getRlDropPackets

        public long getRlDropPackets()
        optional uint64 rl_drop_packets = 5;
         Counter: the total number of rate-limitd packets
         
        Specified by:
        getRlDropPackets in interface Port.QueueStatsOrBuilder
      • setRlDropPackets

        public Port.QueueStats.Builder setRlDropPackets​(long value)
        optional uint64 rl_drop_packets = 5;
         Counter: the total number of rate-limitd packets
         
      • clearRlDropPackets

        public Port.QueueStats.Builder clearRlDropPackets()
        optional uint64 rl_drop_packets = 5;
         Counter: the total number of rate-limitd packets
         
      • hasRlDropBytes

        public boolean hasRlDropBytes()
        optional uint64 rl_drop_bytes = 6;
         Counter: the total number of rate-limited bytes
         
        Specified by:
        hasRlDropBytes in interface Port.QueueStatsOrBuilder
      • getRlDropBytes

        public long getRlDropBytes()
        optional uint64 rl_drop_bytes = 6;
         Counter: the total number of rate-limited bytes
         
        Specified by:
        getRlDropBytes in interface Port.QueueStatsOrBuilder
      • setRlDropBytes

        public Port.QueueStats.Builder setRlDropBytes​(long value)
        optional uint64 rl_drop_bytes = 6;
         Counter: the total number of rate-limited bytes
         
      • clearRlDropBytes

        public Port.QueueStats.Builder clearRlDropBytes()
        optional uint64 rl_drop_bytes = 6;
         Counter: the total number of rate-limited bytes
         
      • hasRedDropPackets

        public boolean hasRedDropPackets()
        optional uint64 red_drop_packets = 7;
         Counter: the total number of red-dropped packets
         
        Specified by:
        hasRedDropPackets in interface Port.QueueStatsOrBuilder
      • getRedDropPackets

        public long getRedDropPackets()
        optional uint64 red_drop_packets = 7;
         Counter: the total number of red-dropped packets
         
        Specified by:
        getRedDropPackets in interface Port.QueueStatsOrBuilder
      • setRedDropPackets

        public Port.QueueStats.Builder setRedDropPackets​(long value)
        optional uint64 red_drop_packets = 7;
         Counter: the total number of red-dropped packets
         
      • clearRedDropPackets

        public Port.QueueStats.Builder clearRedDropPackets()
        optional uint64 red_drop_packets = 7;
         Counter: the total number of red-dropped packets
         
      • hasRedDropBytes

        public boolean hasRedDropBytes()
        optional uint64 red_drop_bytes = 8;
         Counter: the total number of red-dropped bytes
         
        Specified by:
        hasRedDropBytes in interface Port.QueueStatsOrBuilder
      • getRedDropBytes

        public long getRedDropBytes()
        optional uint64 red_drop_bytes = 8;
         Counter: the total number of red-dropped bytes
         
        Specified by:
        getRedDropBytes in interface Port.QueueStatsOrBuilder
      • setRedDropBytes

        public Port.QueueStats.Builder setRedDropBytes​(long value)
        optional uint64 red_drop_bytes = 8;
         Counter: the total number of red-dropped bytes
         
      • clearRedDropBytes

        public Port.QueueStats.Builder clearRedDropBytes()
        optional uint64 red_drop_bytes = 8;
         Counter: the total number of red-dropped bytes
         
      • hasAvgBufferOccupancy

        public boolean hasAvgBufferOccupancy()
        optional uint64 avg_buffer_occupancy = 9;
         Average: avg queue depth,TAQL:time-average-queue-len, in packets, details TBD
         
        Specified by:
        hasAvgBufferOccupancy in interface Port.QueueStatsOrBuilder
      • getAvgBufferOccupancy

        public long getAvgBufferOccupancy()
        optional uint64 avg_buffer_occupancy = 9;
         Average: avg queue depth,TAQL:time-average-queue-len, in packets, details TBD
         
        Specified by:
        getAvgBufferOccupancy in interface Port.QueueStatsOrBuilder
      • setAvgBufferOccupancy

        public Port.QueueStats.Builder setAvgBufferOccupancy​(long value)
        optional uint64 avg_buffer_occupancy = 9;
         Average: avg queue depth,TAQL:time-average-queue-len, in packets, details TBD
         
      • clearAvgBufferOccupancy

        public Port.QueueStats.Builder clearAvgBufferOccupancy()
        optional uint64 avg_buffer_occupancy = 9;
         Average: avg queue depth,TAQL:time-average-queue-len, in packets, details TBD
         
      • setCurBufferOccupancy

        public Port.QueueStats.Builder setCurBufferOccupancy​(long value)
        optional uint64 cur_buffer_occupancy = 10;
         Gauge: current queue depth, in packets
         
      • clearCurBufferOccupancy

        public Port.QueueStats.Builder clearCurBufferOccupancy()
        optional uint64 cur_buffer_occupancy = 10;
         Gauge: current queue depth, in packets
         
      • hasPeakBufferOccupancy

        public boolean hasPeakBufferOccupancy()
        optional uint64 peak_buffer_occupancy = 11;
         Peak: the max measured queue depth, in packets, across all measurements since bo ot.
         
        Specified by:
        hasPeakBufferOccupancy in interface Port.QueueStatsOrBuilder
      • getPeakBufferOccupancy

        public long getPeakBufferOccupancy()
        optional uint64 peak_buffer_occupancy = 11;
         Peak: the max measured queue depth, in packets, across all measurements since bo ot.
         
        Specified by:
        getPeakBufferOccupancy in interface Port.QueueStatsOrBuilder
      • setPeakBufferOccupancy

        public Port.QueueStats.Builder setPeakBufferOccupancy​(long value)
        optional uint64 peak_buffer_occupancy = 11;
         Peak: the max measured queue depth, in packets, across all measurements since bo ot.
         
      • clearPeakBufferOccupancy

        public Port.QueueStats.Builder clearPeakBufferOccupancy()
        optional uint64 peak_buffer_occupancy = 11;
         Peak: the max measured queue depth, in packets, across all measurements since bo ot.
         
      • setAllocatedBufferSize

        public Port.QueueStats.Builder setAllocatedBufferSize​(long value)
        optional uint64 allocated_buffer_size = 12;
         allocated buffer size
         
      • clearAllocatedBufferSize

        public Port.QueueStats.Builder clearAllocatedBufferSize()
        optional uint64 allocated_buffer_size = 12;
         allocated buffer size