Class LspStatsOuterClass.LspStatsRecord.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<LspStatsOuterClass.LspStatsRecord.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<LspStatsOuterClass.LspStatsRecord.Builder>
      • getDefaultInstanceForType

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

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

        public LspStatsOuterClass.LspStatsRecord buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<LspStatsOuterClass.LspStatsRecord.Builder>
      • setNameBytes

        public LspStatsOuterClass.LspStatsRecord.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Name of the LSP
         
        required string name = 1 [(.telemetry_options) = { ... }
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasInstanceIdentifier

        public boolean hasInstanceIdentifier()
         Instance Identifier for cases when RPD creates multiple instances
         
        required uint32 instance_identifier = 2 [(.telemetry_options) = { ... }
        Specified by:
        hasInstanceIdentifier in interface LspStatsOuterClass.LspStatsRecordOrBuilder
        Returns:
        Whether the instanceIdentifier field is set.
      • getInstanceIdentifier

        public int getInstanceIdentifier()
         Instance Identifier for cases when RPD creates multiple instances
         
        required uint32 instance_identifier = 2 [(.telemetry_options) = { ... }
        Specified by:
        getInstanceIdentifier in interface LspStatsOuterClass.LspStatsRecordOrBuilder
        Returns:
        The instanceIdentifier.
      • setInstanceIdentifier

        public LspStatsOuterClass.LspStatsRecord.Builder setInstanceIdentifier​(int value)
         Instance Identifier for cases when RPD creates multiple instances
         
        required uint32 instance_identifier = 2 [(.telemetry_options) = { ... }
        Parameters:
        value - The instanceIdentifier to set.
        Returns:
        This builder for chaining.
      • clearInstanceIdentifier

        public LspStatsOuterClass.LspStatsRecord.Builder clearInstanceIdentifier()
         Instance Identifier for cases when RPD creates multiple instances
         
        required uint32 instance_identifier = 2 [(.telemetry_options) = { ... }
        Returns:
        This builder for chaining.
      • hasCounterName

        public boolean hasCounterName()
         Name of the counter. This is useful when an LSP has multiple counters.
         When an LSP is resignalled, it is possible that a new counter is
         created in the hardware.
         
        required string counter_name = 3 [(.telemetry_options) = { ... }
        Specified by:
        hasCounterName in interface LspStatsOuterClass.LspStatsRecordOrBuilder
        Returns:
        Whether the counterName field is set.
      • getCounterName

        public String getCounterName()
         Name of the counter. This is useful when an LSP has multiple counters.
         When an LSP is resignalled, it is possible that a new counter is
         created in the hardware.
         
        required string counter_name = 3 [(.telemetry_options) = { ... }
        Specified by:
        getCounterName in interface LspStatsOuterClass.LspStatsRecordOrBuilder
        Returns:
        The counterName.
      • getCounterNameBytes

        public com.google.protobuf.ByteString getCounterNameBytes()
         Name of the counter. This is useful when an LSP has multiple counters.
         When an LSP is resignalled, it is possible that a new counter is
         created in the hardware.
         
        required string counter_name = 3 [(.telemetry_options) = { ... }
        Specified by:
        getCounterNameBytes in interface LspStatsOuterClass.LspStatsRecordOrBuilder
        Returns:
        The bytes for counterName.
      • setCounterName

        public LspStatsOuterClass.LspStatsRecord.Builder setCounterName​(String value)
         Name of the counter. This is useful when an LSP has multiple counters.
         When an LSP is resignalled, it is possible that a new counter is
         created in the hardware.
         
        required string counter_name = 3 [(.telemetry_options) = { ... }
        Parameters:
        value - The counterName to set.
        Returns:
        This builder for chaining.
      • clearCounterName

        public LspStatsOuterClass.LspStatsRecord.Builder clearCounterName()
         Name of the counter. This is useful when an LSP has multiple counters.
         When an LSP is resignalled, it is possible that a new counter is
         created in the hardware.
         
        required string counter_name = 3 [(.telemetry_options) = { ... }
        Returns:
        This builder for chaining.
      • setCounterNameBytes

        public LspStatsOuterClass.LspStatsRecord.Builder setCounterNameBytes​(com.google.protobuf.ByteString value)
         Name of the counter. This is useful when an LSP has multiple counters.
         When an LSP is resignalled, it is possible that a new counter is
         created in the hardware.
         
        required string counter_name = 3 [(.telemetry_options) = { ... }
        Parameters:
        value - The bytes for counterName to set.
        Returns:
        This builder for chaining.
      • setPackets

        public LspStatsOuterClass.LspStatsRecord.Builder setPackets​(long value)
         The total number of packets
         
        optional uint64 packets = 4 [(.telemetry_options) = { ... }
        Parameters:
        value - The packets to set.
        Returns:
        This builder for chaining.
      • setBytes

        public LspStatsOuterClass.LspStatsRecord.Builder setBytes​(long value)
         The total number of bytes
         
        optional uint64 bytes = 5 [(.telemetry_options) = { ... }
        Parameters:
        value - The bytes to set.
        Returns:
        This builder for chaining.
      • setPacketRate

        public LspStatsOuterClass.LspStatsRecord.Builder setPacketRate​(long value)
         Packet rate computed over the most recent 3 second interval
         
        optional uint64 packet_rate = 6;
        Parameters:
        value - The packetRate to set.
        Returns:
        This builder for chaining.
      • clearPacketRate

        public LspStatsOuterClass.LspStatsRecord.Builder clearPacketRate()
         Packet rate computed over the most recent 3 second interval
         
        optional uint64 packet_rate = 6;
        Returns:
        This builder for chaining.
      • setByteRate

        public LspStatsOuterClass.LspStatsRecord.Builder setByteRate​(long value)
         Byte rate computed over the most recent 3 second interval
         
        optional uint64 byte_rate = 7;
        Parameters:
        value - The byteRate to set.
        Returns:
        This builder for chaining.
      • clearByteRate

        public LspStatsOuterClass.LspStatsRecord.Builder clearByteRate()
         Byte rate computed over the most recent 3 second interval
         
        optional uint64 byte_rate = 7;
        Returns:
        This builder for chaining.