@Test public void toSocketOptionTcpInfo() { assertEquals( socketOptionTcpInfo, ChannelzProtoUtil.toSocketOptionTcpInfo(channelzTcpInfo)); }
static SocketOption toSocketOptionTcpInfo(InternalChannelz.TcpInfo i) { SocketOptionTcpInfo tcpInfo = SocketOptionTcpInfo.newBuilder() .setTcpiState(i.state) .setTcpiCaState(i.caState) .setTcpiRetransmits(i.retransmits) .setTcpiProbes(i.probes) .setTcpiBackoff(i.backoff) .setTcpiOptions(i.options) .setTcpiSndWscale(i.sndWscale) .setTcpiRcvWscale(i.rcvWscale) .setTcpiRto(i.rto) .setTcpiAto(i.ato) .setTcpiSndMss(i.sndMss) .setTcpiRcvMss(i.rcvMss) .setTcpiUnacked(i.unacked) .setTcpiSacked(i.sacked) .setTcpiLost(i.lost) .setTcpiRetrans(i.retrans) .setTcpiFackets(i.fackets) .setTcpiLastDataSent(i.lastDataSent) .setTcpiLastAckSent(i.lastAckSent) .setTcpiLastDataRecv(i.lastDataRecv) .setTcpiLastAckRecv(i.lastAckRecv) .setTcpiPmtu(i.pmtu) .setTcpiRcvSsthresh(i.rcvSsthresh) .setTcpiRtt(i.rtt) .setTcpiRttvar(i.rttvar) .setTcpiSndSsthresh(i.sndSsthresh) .setTcpiSndCwnd(i.sndCwnd) .setTcpiAdvmss(i.advmss) .setTcpiReordering(i.reordering) .build(); return SocketOption .newBuilder() .setName(TCP_INFO) .setAdditional(Any.pack(tcpInfo)) .build(); }
ChannelzProtoUtil { static SocketOption toSocketOptionTcpInfo(InternalChannelz.TcpInfo i) { SocketOptionTcpInfo tcpInfo = SocketOptionTcpInfo.newBuilder() .setTcpiState(i.state) .setTcpiCaState(i.caState) .setTcpiRetransmits(i.retransmits) .setTcpiProbes(i.probes) .setTcpiBackoff(i.backoff) .setTcpiOptions(i.options) .setTcpiSndWscale(i.sndWscale) .setTcpiRcvWscale(i.rcvWscale) .setTcpiRto(i.rto) .setTcpiAto(i.ato) .setTcpiSndMss(i.sndMss) .setTcpiRcvMss(i.rcvMss) .setTcpiUnacked(i.unacked) .setTcpiSacked(i.sacked) .setTcpiLost(i.lost) .setTcpiRetrans(i.retrans) .setTcpiFackets(i.fackets) .setTcpiLastDataSent(i.lastDataSent) .setTcpiLastAckSent(i.lastAckSent) .setTcpiLastDataRecv(i.lastDataRecv) .setTcpiLastAckRecv(i.lastAckRecv) .setTcpiPmtu(i.pmtu) .setTcpiRcvSsthresh(i.rcvSsthresh) .setTcpiRtt(i.rtt) .setTcpiRttvar(i.rttvar) .setTcpiSndSsthresh(i.sndSsthresh) .setTcpiSndCwnd(i.sndCwnd) .setTcpiAdvmss(i.advmss) .setTcpiReordering(i.reordering) .build(); return SocketOption .newBuilder() .setName(TCP_INFO) .setAdditional(Any.pack(tcpInfo)) .build(); } }
ChannelzProtoUtil { static SocketOption toSocketOptionTcpInfo(InternalChannelz.TcpInfo i) { SocketOptionTcpInfo tcpInfo = SocketOptionTcpInfo.newBuilder() .setTcpiState(i.state) .setTcpiCaState(i.caState) .setTcpiRetransmits(i.retransmits) .setTcpiProbes(i.probes) .setTcpiBackoff(i.backoff) .setTcpiOptions(i.options) .setTcpiSndWscale(i.sndWscale) .setTcpiRcvWscale(i.rcvWscale) .setTcpiRto(i.rto) .setTcpiAto(i.ato) .setTcpiSndMss(i.sndMss) .setTcpiRcvMss(i.rcvMss) .setTcpiUnacked(i.unacked) .setTcpiSacked(i.sacked) .setTcpiLost(i.lost) .setTcpiRetrans(i.retrans) .setTcpiFackets(i.fackets) .setTcpiLastDataSent(i.lastDataSent) .setTcpiLastAckSent(i.lastAckSent) .setTcpiLastDataRecv(i.lastDataRecv) .setTcpiLastAckRecv(i.lastAckRecv) .setTcpiPmtu(i.pmtu) .setTcpiRcvSsthresh(i.rcvSsthresh) .setTcpiRtt(i.rtt) .setTcpiRttvar(i.rttvar) .setTcpiSndSsthresh(i.sndSsthresh) .setTcpiSndCwnd(i.sndCwnd) .setTcpiAdvmss(i.advmss) .setTcpiReordering(i.reordering) .build(); return SocketOption .newBuilder() .setName(TCP_INFO) .setAdditional(Any.pack(tcpInfo)) .build(); } private  ChannelzProtoUtil(); }
ChannelzProtoUtil { static SocketOption toSocketOptionTcpInfo(InternalChannelz.TcpInfo i) { SocketOptionTcpInfo tcpInfo = SocketOptionTcpInfo.newBuilder() .setTcpiState(i.state) .setTcpiCaState(i.caState) .setTcpiRetransmits(i.retransmits) .setTcpiProbes(i.probes) .setTcpiBackoff(i.backoff) .setTcpiOptions(i.options) .setTcpiSndWscale(i.sndWscale) .setTcpiRcvWscale(i.rcvWscale) .setTcpiRto(i.rto) .setTcpiAto(i.ato) .setTcpiSndMss(i.sndMss) .setTcpiRcvMss(i.rcvMss) .setTcpiUnacked(i.unacked) .setTcpiSacked(i.sacked) .setTcpiLost(i.lost) .setTcpiRetrans(i.retrans) .setTcpiFackets(i.fackets) .setTcpiLastDataSent(i.lastDataSent) .setTcpiLastAckSent(i.lastAckSent) .setTcpiLastDataRecv(i.lastDataRecv) .setTcpiLastAckRecv(i.lastAckRecv) .setTcpiPmtu(i.pmtu) .setTcpiRcvSsthresh(i.rcvSsthresh) .setTcpiRtt(i.rtt) .setTcpiRttvar(i.rttvar) .setTcpiSndSsthresh(i.sndSsthresh) .setTcpiSndCwnd(i.sndCwnd) .setTcpiAdvmss(i.advmss) .setTcpiReordering(i.reordering) .build(); return SocketOption .newBuilder() .setName(TCP_INFO) .setAdditional(Any.pack(tcpInfo)) .build(); } private  ChannelzProtoUtil();  }
ChannelzProtoUtil { static SocketOption toSocketOptionTcpInfo(InternalChannelz.TcpInfo i) { SocketOptionTcpInfo tcpInfo = SocketOptionTcpInfo.newBuilder() .setTcpiState(i.state) .setTcpiCaState(i.caState) .setTcpiRetransmits(i.retransmits) .setTcpiProbes(i.probes) .setTcpiBackoff(i.backoff) .setTcpiOptions(i.options) .setTcpiSndWscale(i.sndWscale) .setTcpiRcvWscale(i.rcvWscale) .setTcpiRto(i.rto) .setTcpiAto(i.ato) .setTcpiSndMss(i.sndMss) .setTcpiRcvMss(i.rcvMss) .setTcpiUnacked(i.unacked) .setTcpiSacked(i.sacked) .setTcpiLost(i.lost) .setTcpiRetrans(i.retrans) .setTcpiFackets(i.fackets) .setTcpiLastDataSent(i.lastDataSent) .setTcpiLastAckSent(i.lastAckSent) .setTcpiLastDataRecv(i.lastDataRecv) .setTcpiLastAckRecv(i.lastAckRecv) .setTcpiPmtu(i.pmtu) .setTcpiRcvSsthresh(i.rcvSsthresh) .setTcpiRtt(i.rtt) .setTcpiRttvar(i.rttvar) .setTcpiSndSsthresh(i.sndSsthresh) .setTcpiSndCwnd(i.sndCwnd) .setTcpiAdvmss(i.advmss) .setTcpiReordering(i.reordering) .build(); return SocketOption .newBuilder() .setName(TCP_INFO) .setAdditional(Any.pack(tcpInfo)) .build(); } private  ChannelzProtoUtil();  static final String SO_LINGER; static final String SO_TIMEOUT; static final String TCP_INFO; }