Class SocketOptionTcpInfo.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, SocketOptionTcpInfoOrBuilder, Cloneable
    Enclosing class:
    SocketOptionTcpInfo

    public static final class SocketOptionTcpInfo.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<SocketOptionTcpInfo.Builder>
    implements SocketOptionTcpInfoOrBuilder
     For use with SocketOption's additional field.  Tcp info for
     SOL_TCP and TCP_INFO.
     
    Protobuf type grpc.channelz.v1.SocketOptionTcpInfo
    • 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<SocketOptionTcpInfo.Builder>
      • clear

        public SocketOptionTcpInfo.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<SocketOptionTcpInfo.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<SocketOptionTcpInfo.Builder>
      • getDefaultInstanceForType

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

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

        public SocketOptionTcpInfo buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public SocketOptionTcpInfo.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<SocketOptionTcpInfo.Builder>
      • setField

        public SocketOptionTcpInfo.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<SocketOptionTcpInfo.Builder>
      • clearField

        public SocketOptionTcpInfo.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<SocketOptionTcpInfo.Builder>
      • clearOneof

        public SocketOptionTcpInfo.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<SocketOptionTcpInfo.Builder>
      • setRepeatedField

        public SocketOptionTcpInfo.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<SocketOptionTcpInfo.Builder>
      • addRepeatedField

        public SocketOptionTcpInfo.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<SocketOptionTcpInfo.Builder>
      • mergeFrom

        public SocketOptionTcpInfo.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<SocketOptionTcpInfo.Builder>
      • isInitialized

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

        public SocketOptionTcpInfo.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<SocketOptionTcpInfo.Builder>
        Throws:
        IOException
      • setTcpiState

        public SocketOptionTcpInfo.Builder setTcpiState​(int value)
        uint32 tcpi_state = 1;
        Parameters:
        value - The tcpiState to set.
        Returns:
        This builder for chaining.
      • setTcpiCaState

        public SocketOptionTcpInfo.Builder setTcpiCaState​(int value)
        uint32 tcpi_ca_state = 2;
        Parameters:
        value - The tcpiCaState to set.
        Returns:
        This builder for chaining.
      • clearTcpiCaState

        public SocketOptionTcpInfo.Builder clearTcpiCaState()
        uint32 tcpi_ca_state = 2;
        Returns:
        This builder for chaining.
      • setTcpiRetransmits

        public SocketOptionTcpInfo.Builder setTcpiRetransmits​(int value)
        uint32 tcpi_retransmits = 3;
        Parameters:
        value - The tcpiRetransmits to set.
        Returns:
        This builder for chaining.
      • clearTcpiRetransmits

        public SocketOptionTcpInfo.Builder clearTcpiRetransmits()
        uint32 tcpi_retransmits = 3;
        Returns:
        This builder for chaining.
      • setTcpiProbes

        public SocketOptionTcpInfo.Builder setTcpiProbes​(int value)
        uint32 tcpi_probes = 4;
        Parameters:
        value - The tcpiProbes to set.
        Returns:
        This builder for chaining.
      • setTcpiBackoff

        public SocketOptionTcpInfo.Builder setTcpiBackoff​(int value)
        uint32 tcpi_backoff = 5;
        Parameters:
        value - The tcpiBackoff to set.
        Returns:
        This builder for chaining.
      • clearTcpiBackoff

        public SocketOptionTcpInfo.Builder clearTcpiBackoff()
        uint32 tcpi_backoff = 5;
        Returns:
        This builder for chaining.
      • setTcpiOptions

        public SocketOptionTcpInfo.Builder setTcpiOptions​(int value)
        uint32 tcpi_options = 6;
        Parameters:
        value - The tcpiOptions to set.
        Returns:
        This builder for chaining.
      • clearTcpiOptions

        public SocketOptionTcpInfo.Builder clearTcpiOptions()
        uint32 tcpi_options = 6;
        Returns:
        This builder for chaining.
      • setTcpiSndWscale

        public SocketOptionTcpInfo.Builder setTcpiSndWscale​(int value)
        uint32 tcpi_snd_wscale = 7;
        Parameters:
        value - The tcpiSndWscale to set.
        Returns:
        This builder for chaining.
      • clearTcpiSndWscale

        public SocketOptionTcpInfo.Builder clearTcpiSndWscale()
        uint32 tcpi_snd_wscale = 7;
        Returns:
        This builder for chaining.
      • setTcpiRcvWscale

        public SocketOptionTcpInfo.Builder setTcpiRcvWscale​(int value)
        uint32 tcpi_rcv_wscale = 8;
        Parameters:
        value - The tcpiRcvWscale to set.
        Returns:
        This builder for chaining.
      • clearTcpiRcvWscale

        public SocketOptionTcpInfo.Builder clearTcpiRcvWscale()
        uint32 tcpi_rcv_wscale = 8;
        Returns:
        This builder for chaining.
      • setTcpiRto

        public SocketOptionTcpInfo.Builder setTcpiRto​(int value)
        uint32 tcpi_rto = 9;
        Parameters:
        value - The tcpiRto to set.
        Returns:
        This builder for chaining.
      • setTcpiAto

        public SocketOptionTcpInfo.Builder setTcpiAto​(int value)
        uint32 tcpi_ato = 10;
        Parameters:
        value - The tcpiAto to set.
        Returns:
        This builder for chaining.
      • setTcpiSndMss

        public SocketOptionTcpInfo.Builder setTcpiSndMss​(int value)
        uint32 tcpi_snd_mss = 11;
        Parameters:
        value - The tcpiSndMss to set.
        Returns:
        This builder for chaining.
      • setTcpiRcvMss

        public SocketOptionTcpInfo.Builder setTcpiRcvMss​(int value)
        uint32 tcpi_rcv_mss = 12;
        Parameters:
        value - The tcpiRcvMss to set.
        Returns:
        This builder for chaining.
      • setTcpiUnacked

        public SocketOptionTcpInfo.Builder setTcpiUnacked​(int value)
        uint32 tcpi_unacked = 13;
        Parameters:
        value - The tcpiUnacked to set.
        Returns:
        This builder for chaining.
      • clearTcpiUnacked

        public SocketOptionTcpInfo.Builder clearTcpiUnacked()
        uint32 tcpi_unacked = 13;
        Returns:
        This builder for chaining.
      • setTcpiSacked

        public SocketOptionTcpInfo.Builder setTcpiSacked​(int value)
        uint32 tcpi_sacked = 14;
        Parameters:
        value - The tcpiSacked to set.
        Returns:
        This builder for chaining.
      • setTcpiLost

        public SocketOptionTcpInfo.Builder setTcpiLost​(int value)
        uint32 tcpi_lost = 15;
        Parameters:
        value - The tcpiLost to set.
        Returns:
        This builder for chaining.
      • setTcpiRetrans

        public SocketOptionTcpInfo.Builder setTcpiRetrans​(int value)
        uint32 tcpi_retrans = 16;
        Parameters:
        value - The tcpiRetrans to set.
        Returns:
        This builder for chaining.
      • clearTcpiRetrans

        public SocketOptionTcpInfo.Builder clearTcpiRetrans()
        uint32 tcpi_retrans = 16;
        Returns:
        This builder for chaining.
      • setTcpiFackets

        public SocketOptionTcpInfo.Builder setTcpiFackets​(int value)
        uint32 tcpi_fackets = 17;
        Parameters:
        value - The tcpiFackets to set.
        Returns:
        This builder for chaining.
      • clearTcpiFackets

        public SocketOptionTcpInfo.Builder clearTcpiFackets()
        uint32 tcpi_fackets = 17;
        Returns:
        This builder for chaining.
      • setTcpiLastDataSent

        public SocketOptionTcpInfo.Builder setTcpiLastDataSent​(int value)
        uint32 tcpi_last_data_sent = 18;
        Parameters:
        value - The tcpiLastDataSent to set.
        Returns:
        This builder for chaining.
      • clearTcpiLastDataSent

        public SocketOptionTcpInfo.Builder clearTcpiLastDataSent()
        uint32 tcpi_last_data_sent = 18;
        Returns:
        This builder for chaining.
      • setTcpiLastAckSent

        public SocketOptionTcpInfo.Builder setTcpiLastAckSent​(int value)
        uint32 tcpi_last_ack_sent = 19;
        Parameters:
        value - The tcpiLastAckSent to set.
        Returns:
        This builder for chaining.
      • clearTcpiLastAckSent

        public SocketOptionTcpInfo.Builder clearTcpiLastAckSent()
        uint32 tcpi_last_ack_sent = 19;
        Returns:
        This builder for chaining.
      • setTcpiLastDataRecv

        public SocketOptionTcpInfo.Builder setTcpiLastDataRecv​(int value)
        uint32 tcpi_last_data_recv = 20;
        Parameters:
        value - The tcpiLastDataRecv to set.
        Returns:
        This builder for chaining.
      • clearTcpiLastDataRecv

        public SocketOptionTcpInfo.Builder clearTcpiLastDataRecv()
        uint32 tcpi_last_data_recv = 20;
        Returns:
        This builder for chaining.
      • setTcpiLastAckRecv

        public SocketOptionTcpInfo.Builder setTcpiLastAckRecv​(int value)
        uint32 tcpi_last_ack_recv = 21;
        Parameters:
        value - The tcpiLastAckRecv to set.
        Returns:
        This builder for chaining.
      • clearTcpiLastAckRecv

        public SocketOptionTcpInfo.Builder clearTcpiLastAckRecv()
        uint32 tcpi_last_ack_recv = 21;
        Returns:
        This builder for chaining.
      • setTcpiPmtu

        public SocketOptionTcpInfo.Builder setTcpiPmtu​(int value)
        uint32 tcpi_pmtu = 22;
        Parameters:
        value - The tcpiPmtu to set.
        Returns:
        This builder for chaining.
      • setTcpiRcvSsthresh

        public SocketOptionTcpInfo.Builder setTcpiRcvSsthresh​(int value)
        uint32 tcpi_rcv_ssthresh = 23;
        Parameters:
        value - The tcpiRcvSsthresh to set.
        Returns:
        This builder for chaining.
      • clearTcpiRcvSsthresh

        public SocketOptionTcpInfo.Builder clearTcpiRcvSsthresh()
        uint32 tcpi_rcv_ssthresh = 23;
        Returns:
        This builder for chaining.
      • setTcpiRtt

        public SocketOptionTcpInfo.Builder setTcpiRtt​(int value)
        uint32 tcpi_rtt = 24;
        Parameters:
        value - The tcpiRtt to set.
        Returns:
        This builder for chaining.
      • setTcpiRttvar

        public SocketOptionTcpInfo.Builder setTcpiRttvar​(int value)
        uint32 tcpi_rttvar = 25;
        Parameters:
        value - The tcpiRttvar to set.
        Returns:
        This builder for chaining.
      • setTcpiSndSsthresh

        public SocketOptionTcpInfo.Builder setTcpiSndSsthresh​(int value)
        uint32 tcpi_snd_ssthresh = 26;
        Parameters:
        value - The tcpiSndSsthresh to set.
        Returns:
        This builder for chaining.
      • clearTcpiSndSsthresh

        public SocketOptionTcpInfo.Builder clearTcpiSndSsthresh()
        uint32 tcpi_snd_ssthresh = 26;
        Returns:
        This builder for chaining.
      • setTcpiSndCwnd

        public SocketOptionTcpInfo.Builder setTcpiSndCwnd​(int value)
        uint32 tcpi_snd_cwnd = 27;
        Parameters:
        value - The tcpiSndCwnd to set.
        Returns:
        This builder for chaining.
      • clearTcpiSndCwnd

        public SocketOptionTcpInfo.Builder clearTcpiSndCwnd()
        uint32 tcpi_snd_cwnd = 27;
        Returns:
        This builder for chaining.
      • setTcpiAdvmss

        public SocketOptionTcpInfo.Builder setTcpiAdvmss​(int value)
        uint32 tcpi_advmss = 28;
        Parameters:
        value - The tcpiAdvmss to set.
        Returns:
        This builder for chaining.
      • setTcpiReordering

        public SocketOptionTcpInfo.Builder setTcpiReordering​(int value)
        uint32 tcpi_reordering = 29;
        Parameters:
        value - The tcpiReordering to set.
        Returns:
        This builder for chaining.
      • clearTcpiReordering

        public SocketOptionTcpInfo.Builder clearTcpiReordering()
        uint32 tcpi_reordering = 29;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final SocketOptionTcpInfo.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<SocketOptionTcpInfo.Builder>
      • mergeUnknownFields

        public final SocketOptionTcpInfo.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<SocketOptionTcpInfo.Builder>