Class Port.QueueStats.Builder

    • Method Detail

      • 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.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • 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.GeneratedMessageV3.Builder<Port.QueueStats.Builder>
      • setField

        public Port.QueueStats.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Port.QueueStats.Builder>
      • clearField

        public Port.QueueStats.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Port.QueueStats.Builder>
      • clearOneof

        public Port.QueueStats.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Port.QueueStats.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.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 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:
        IOException
      • 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.
      • 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 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.
      • 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 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.
      • 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 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.
      • 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 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.
      • 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 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.
      • 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 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.
      • 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 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.
      • 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 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.
      • 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 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.
      • 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 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.
      • 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 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.
      • 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 interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Port.QueueStats.Builder>
      • mergeUnknownFields

        public final Port.QueueStats.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Port.QueueStats.Builder>