Class SocketData

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, SocketDataOrBuilder, java.io.Serializable

    public final class SocketData
    extends com.google.protobuf.GeneratedMessageV3
    implements SocketDataOrBuilder
     SocketData is data associated for a specific Socket.  The fields present
     are specific to the implementation, so there may be minor differences in
     the semantics.  (e.g. flow control windows)
     
    Protobuf type grpc.channelz.v1.SocketData
    See Also:
    Serialized Form
    • Field Detail

      • STREAMS_STARTED_FIELD_NUMBER

        public static final int STREAMS_STARTED_FIELD_NUMBER
        See Also:
        Constant Field Values
      • STREAMS_SUCCEEDED_FIELD_NUMBER

        public static final int STREAMS_SUCCEEDED_FIELD_NUMBER
        See Also:
        Constant Field Values
      • STREAMS_FAILED_FIELD_NUMBER

        public static final int STREAMS_FAILED_FIELD_NUMBER
        See Also:
        Constant Field Values
      • MESSAGES_SENT_FIELD_NUMBER

        public static final int MESSAGES_SENT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • MESSAGES_RECEIVED_FIELD_NUMBER

        public static final int MESSAGES_RECEIVED_FIELD_NUMBER
        See Also:
        Constant Field Values
      • KEEP_ALIVES_SENT_FIELD_NUMBER

        public static final int KEEP_ALIVES_SENT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • LAST_LOCAL_STREAM_CREATED_TIMESTAMP_FIELD_NUMBER

        public static final int LAST_LOCAL_STREAM_CREATED_TIMESTAMP_FIELD_NUMBER
        See Also:
        Constant Field Values
      • LAST_REMOTE_STREAM_CREATED_TIMESTAMP_FIELD_NUMBER

        public static final int LAST_REMOTE_STREAM_CREATED_TIMESTAMP_FIELD_NUMBER
        See Also:
        Constant Field Values
      • LAST_MESSAGE_SENT_TIMESTAMP_FIELD_NUMBER

        public static final int LAST_MESSAGE_SENT_TIMESTAMP_FIELD_NUMBER
        See Also:
        Constant Field Values
      • LAST_MESSAGE_RECEIVED_TIMESTAMP_FIELD_NUMBER

        public static final int LAST_MESSAGE_RECEIVED_TIMESTAMP_FIELD_NUMBER
        See Also:
        Constant Field Values
      • LOCAL_FLOW_CONTROL_WINDOW_FIELD_NUMBER

        public static final int LOCAL_FLOW_CONTROL_WINDOW_FIELD_NUMBER
        See Also:
        Constant Field Values
      • REMOTE_FLOW_CONTROL_WINDOW_FIELD_NUMBER

        public static final int REMOTE_FLOW_CONTROL_WINDOW_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected java.lang.Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • getStreamsStarted

        public long getStreamsStarted()
         The number of streams that have been started.
         
        int64 streams_started = 1;
        Specified by:
        getStreamsStarted in interface SocketDataOrBuilder
        Returns:
        The streamsStarted.
      • getStreamsSucceeded

        public long getStreamsSucceeded()
         The number of streams that have ended successfully:
         On client side, received frame with eos bit set;
         On server side, sent frame with eos bit set.
         
        int64 streams_succeeded = 2;
        Specified by:
        getStreamsSucceeded in interface SocketDataOrBuilder
        Returns:
        The streamsSucceeded.
      • getStreamsFailed

        public long getStreamsFailed()
         The number of streams that have ended unsuccessfully:
         On client side, ended without receiving frame with eos bit set;
         On server side, ended without sending frame with eos bit set.
         
        int64 streams_failed = 3;
        Specified by:
        getStreamsFailed in interface SocketDataOrBuilder
        Returns:
        The streamsFailed.
      • getMessagesSent

        public long getMessagesSent()
         The number of grpc messages successfully sent on this socket.
         
        int64 messages_sent = 4;
        Specified by:
        getMessagesSent in interface SocketDataOrBuilder
        Returns:
        The messagesSent.
      • getMessagesReceived

        public long getMessagesReceived()
         The number of grpc messages received on this socket.
         
        int64 messages_received = 5;
        Specified by:
        getMessagesReceived in interface SocketDataOrBuilder
        Returns:
        The messagesReceived.
      • getKeepAlivesSent

        public long getKeepAlivesSent()
         The number of keep alives sent.  This is typically implemented with HTTP/2
         ping messages.
         
        int64 keep_alives_sent = 6;
        Specified by:
        getKeepAlivesSent in interface SocketDataOrBuilder
        Returns:
        The keepAlivesSent.
      • hasLastLocalStreamCreatedTimestamp

        public boolean hasLastLocalStreamCreatedTimestamp()
         The last time a stream was created by this endpoint.  Usually unset for
         servers.
         
        .google.protobuf.Timestamp last_local_stream_created_timestamp = 7;
        Specified by:
        hasLastLocalStreamCreatedTimestamp in interface SocketDataOrBuilder
        Returns:
        Whether the lastLocalStreamCreatedTimestamp field is set.
      • getLastLocalStreamCreatedTimestamp

        public com.google.protobuf.Timestamp getLastLocalStreamCreatedTimestamp()
         The last time a stream was created by this endpoint.  Usually unset for
         servers.
         
        .google.protobuf.Timestamp last_local_stream_created_timestamp = 7;
        Specified by:
        getLastLocalStreamCreatedTimestamp in interface SocketDataOrBuilder
        Returns:
        The lastLocalStreamCreatedTimestamp.
      • getLastLocalStreamCreatedTimestampOrBuilder

        public com.google.protobuf.TimestampOrBuilder getLastLocalStreamCreatedTimestampOrBuilder()
         The last time a stream was created by this endpoint.  Usually unset for
         servers.
         
        .google.protobuf.Timestamp last_local_stream_created_timestamp = 7;
        Specified by:
        getLastLocalStreamCreatedTimestampOrBuilder in interface SocketDataOrBuilder
      • hasLastRemoteStreamCreatedTimestamp

        public boolean hasLastRemoteStreamCreatedTimestamp()
         The last time a stream was created by the remote endpoint.  Usually unset
         for clients.
         
        .google.protobuf.Timestamp last_remote_stream_created_timestamp = 8;
        Specified by:
        hasLastRemoteStreamCreatedTimestamp in interface SocketDataOrBuilder
        Returns:
        Whether the lastRemoteStreamCreatedTimestamp field is set.
      • getLastRemoteStreamCreatedTimestamp

        public com.google.protobuf.Timestamp getLastRemoteStreamCreatedTimestamp()
         The last time a stream was created by the remote endpoint.  Usually unset
         for clients.
         
        .google.protobuf.Timestamp last_remote_stream_created_timestamp = 8;
        Specified by:
        getLastRemoteStreamCreatedTimestamp in interface SocketDataOrBuilder
        Returns:
        The lastRemoteStreamCreatedTimestamp.
      • getLastRemoteStreamCreatedTimestampOrBuilder

        public com.google.protobuf.TimestampOrBuilder getLastRemoteStreamCreatedTimestampOrBuilder()
         The last time a stream was created by the remote endpoint.  Usually unset
         for clients.
         
        .google.protobuf.Timestamp last_remote_stream_created_timestamp = 8;
        Specified by:
        getLastRemoteStreamCreatedTimestampOrBuilder in interface SocketDataOrBuilder
      • hasLastMessageSentTimestamp

        public boolean hasLastMessageSentTimestamp()
         The last time a message was sent by this endpoint.
         
        .google.protobuf.Timestamp last_message_sent_timestamp = 9;
        Specified by:
        hasLastMessageSentTimestamp in interface SocketDataOrBuilder
        Returns:
        Whether the lastMessageSentTimestamp field is set.
      • getLastMessageSentTimestamp

        public com.google.protobuf.Timestamp getLastMessageSentTimestamp()
         The last time a message was sent by this endpoint.
         
        .google.protobuf.Timestamp last_message_sent_timestamp = 9;
        Specified by:
        getLastMessageSentTimestamp in interface SocketDataOrBuilder
        Returns:
        The lastMessageSentTimestamp.
      • getLastMessageSentTimestampOrBuilder

        public com.google.protobuf.TimestampOrBuilder getLastMessageSentTimestampOrBuilder()
         The last time a message was sent by this endpoint.
         
        .google.protobuf.Timestamp last_message_sent_timestamp = 9;
        Specified by:
        getLastMessageSentTimestampOrBuilder in interface SocketDataOrBuilder
      • hasLastMessageReceivedTimestamp

        public boolean hasLastMessageReceivedTimestamp()
         The last time a message was received by this endpoint.
         
        .google.protobuf.Timestamp last_message_received_timestamp = 10;
        Specified by:
        hasLastMessageReceivedTimestamp in interface SocketDataOrBuilder
        Returns:
        Whether the lastMessageReceivedTimestamp field is set.
      • getLastMessageReceivedTimestamp

        public com.google.protobuf.Timestamp getLastMessageReceivedTimestamp()
         The last time a message was received by this endpoint.
         
        .google.protobuf.Timestamp last_message_received_timestamp = 10;
        Specified by:
        getLastMessageReceivedTimestamp in interface SocketDataOrBuilder
        Returns:
        The lastMessageReceivedTimestamp.
      • getLastMessageReceivedTimestampOrBuilder

        public com.google.protobuf.TimestampOrBuilder getLastMessageReceivedTimestampOrBuilder()
         The last time a message was received by this endpoint.
         
        .google.protobuf.Timestamp last_message_received_timestamp = 10;
        Specified by:
        getLastMessageReceivedTimestampOrBuilder in interface SocketDataOrBuilder
      • hasLocalFlowControlWindow

        public boolean hasLocalFlowControlWindow()
         The amount of window, granted to the local endpoint by the remote endpoint.
         This may be slightly out of date due to network latency.  This does NOT
         include stream level or TCP level flow control info.
         
        .google.protobuf.Int64Value local_flow_control_window = 11;
        Specified by:
        hasLocalFlowControlWindow in interface SocketDataOrBuilder
        Returns:
        Whether the localFlowControlWindow field is set.
      • getLocalFlowControlWindow

        public com.google.protobuf.Int64Value getLocalFlowControlWindow()
         The amount of window, granted to the local endpoint by the remote endpoint.
         This may be slightly out of date due to network latency.  This does NOT
         include stream level or TCP level flow control info.
         
        .google.protobuf.Int64Value local_flow_control_window = 11;
        Specified by:
        getLocalFlowControlWindow in interface SocketDataOrBuilder
        Returns:
        The localFlowControlWindow.
      • getLocalFlowControlWindowOrBuilder

        public com.google.protobuf.Int64ValueOrBuilder getLocalFlowControlWindowOrBuilder()
         The amount of window, granted to the local endpoint by the remote endpoint.
         This may be slightly out of date due to network latency.  This does NOT
         include stream level or TCP level flow control info.
         
        .google.protobuf.Int64Value local_flow_control_window = 11;
        Specified by:
        getLocalFlowControlWindowOrBuilder in interface SocketDataOrBuilder
      • hasRemoteFlowControlWindow

        public boolean hasRemoteFlowControlWindow()
         The amount of window, granted to the remote endpoint by the local endpoint.
         This may be slightly out of date due to network latency.  This does NOT
         include stream level or TCP level flow control info.
         
        .google.protobuf.Int64Value remote_flow_control_window = 12;
        Specified by:
        hasRemoteFlowControlWindow in interface SocketDataOrBuilder
        Returns:
        Whether the remoteFlowControlWindow field is set.
      • getRemoteFlowControlWindow

        public com.google.protobuf.Int64Value getRemoteFlowControlWindow()
         The amount of window, granted to the remote endpoint by the local endpoint.
         This may be slightly out of date due to network latency.  This does NOT
         include stream level or TCP level flow control info.
         
        .google.protobuf.Int64Value remote_flow_control_window = 12;
        Specified by:
        getRemoteFlowControlWindow in interface SocketDataOrBuilder
        Returns:
        The remoteFlowControlWindow.
      • getRemoteFlowControlWindowOrBuilder

        public com.google.protobuf.Int64ValueOrBuilder getRemoteFlowControlWindowOrBuilder()
         The amount of window, granted to the remote endpoint by the local endpoint.
         This may be slightly out of date due to network latency.  This does NOT
         include stream level or TCP level flow control info.
         
        .google.protobuf.Int64Value remote_flow_control_window = 12;
        Specified by:
        getRemoteFlowControlWindowOrBuilder in interface SocketDataOrBuilder
      • getOptionList

        public java.util.List<SocketOption> getOptionList()
         Socket options set on this socket.  May be absent if 'summary' is set
         on GetSocketRequest.
         
        repeated .grpc.channelz.v1.SocketOption option = 13;
        Specified by:
        getOptionList in interface SocketDataOrBuilder
      • getOptionOrBuilderList

        public java.util.List<? extends SocketOptionOrBuilder> getOptionOrBuilderList()
         Socket options set on this socket.  May be absent if 'summary' is set
         on GetSocketRequest.
         
        repeated .grpc.channelz.v1.SocketOption option = 13;
        Specified by:
        getOptionOrBuilderList in interface SocketDataOrBuilder
      • getOptionCount

        public int getOptionCount()
         Socket options set on this socket.  May be absent if 'summary' is set
         on GetSocketRequest.
         
        repeated .grpc.channelz.v1.SocketOption option = 13;
        Specified by:
        getOptionCount in interface SocketDataOrBuilder
      • getOption

        public SocketOption getOption​(int index)
         Socket options set on this socket.  May be absent if 'summary' is set
         on GetSocketRequest.
         
        repeated .grpc.channelz.v1.SocketOption option = 13;
        Specified by:
        getOption in interface SocketDataOrBuilder
      • getOptionOrBuilder

        public SocketOptionOrBuilder getOptionOrBuilder​(int index)
         Socket options set on this socket.  May be absent if 'summary' is set
         on GetSocketRequest.
         
        repeated .grpc.channelz.v1.SocketOption option = 13;
        Specified by:
        getOptionOrBuilder in interface SocketDataOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws java.io.IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        java.io.IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static SocketData parseFrom​(java.nio.ByteBuffer data)
                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SocketData parseFrom​(java.nio.ByteBuffer data,
                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SocketData parseFrom​(com.google.protobuf.ByteString data)
                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SocketData parseFrom​(com.google.protobuf.ByteString data,
                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SocketData parseFrom​(byte[] data)
                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SocketData parseFrom​(byte[] data,
                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SocketData parseFrom​(java.io.InputStream input)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static SocketData parseFrom​(java.io.InputStream input,
                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static SocketData parseDelimitedFrom​(java.io.InputStream input)
                                             throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static SocketData parseDelimitedFrom​(java.io.InputStream input,
                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                             throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static SocketData parseFrom​(com.google.protobuf.CodedInputStream input)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static SocketData parseFrom​(com.google.protobuf.CodedInputStream input,
                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • newBuilderForType

        public SocketData.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public SocketData.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected SocketData.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static SocketData getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<SocketData> parser()
      • getParserForType

        public com.google.protobuf.Parser<SocketData> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public SocketData getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder