Package io.grpc.lb.v1

Class ClientStats

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

    public final class ClientStats
    extends com.google.protobuf.GeneratedMessage
    implements ClientStatsOrBuilder
     Contains client level statistics that are useful to load balancing. Each
     count except the timestamp should be reset to zero after reporting the stats.
     
    Protobuf type grpc.lb.v1.ClientStats
    See Also:
    Serialized Form
    • Field Detail

      • bitField0_

        private int bitField0_
      • timestamp_

        private com.google.protobuf.Timestamp timestamp_
      • NUM_CALLS_STARTED_FIELD_NUMBER

        public static final int NUM_CALLS_STARTED_FIELD_NUMBER
        See Also:
        Constant Field Values
      • numCallsStarted_

        private long numCallsStarted_
      • NUM_CALLS_FINISHED_FIELD_NUMBER

        public static final int NUM_CALLS_FINISHED_FIELD_NUMBER
        See Also:
        Constant Field Values
      • numCallsFinished_

        private long numCallsFinished_
      • NUM_CALLS_FINISHED_WITH_CLIENT_FAILED_TO_SEND_FIELD_NUMBER

        public static final int NUM_CALLS_FINISHED_WITH_CLIENT_FAILED_TO_SEND_FIELD_NUMBER
        See Also:
        Constant Field Values
      • numCallsFinishedWithClientFailedToSend_

        private long numCallsFinishedWithClientFailedToSend_
      • NUM_CALLS_FINISHED_KNOWN_RECEIVED_FIELD_NUMBER

        public static final int NUM_CALLS_FINISHED_KNOWN_RECEIVED_FIELD_NUMBER
        See Also:
        Constant Field Values
      • numCallsFinishedKnownReceived_

        private long numCallsFinishedKnownReceived_
      • CALLS_FINISHED_WITH_DROP_FIELD_NUMBER

        public static final int CALLS_FINISHED_WITH_DROP_FIELD_NUMBER
        See Also:
        Constant Field Values
      • memoizedIsInitialized

        private byte memoizedIsInitialized
      • DEFAULT_INSTANCE

        private static final ClientStats DEFAULT_INSTANCE
      • PARSER

        private static final com.google.protobuf.Parser<ClientStats> PARSER
    • Constructor Detail

      • ClientStats

        private ClientStats​(com.google.protobuf.GeneratedMessage.Builder<?> builder)
      • ClientStats

        private ClientStats()
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
      • hasTimestamp

        public boolean hasTimestamp()
         The timestamp of generating the report.
         
        .google.protobuf.Timestamp timestamp = 1;
        Specified by:
        hasTimestamp in interface ClientStatsOrBuilder
        Returns:
        Whether the timestamp field is set.
      • getTimestamp

        public com.google.protobuf.Timestamp getTimestamp()
         The timestamp of generating the report.
         
        .google.protobuf.Timestamp timestamp = 1;
        Specified by:
        getTimestamp in interface ClientStatsOrBuilder
        Returns:
        The timestamp.
      • getTimestampOrBuilder

        public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder()
         The timestamp of generating the report.
         
        .google.protobuf.Timestamp timestamp = 1;
        Specified by:
        getTimestampOrBuilder in interface ClientStatsOrBuilder
      • getNumCallsStarted

        public long getNumCallsStarted()
         The total number of RPCs that started.
         
        int64 num_calls_started = 2;
        Specified by:
        getNumCallsStarted in interface ClientStatsOrBuilder
        Returns:
        The numCallsStarted.
      • getNumCallsFinished

        public long getNumCallsFinished()
         The total number of RPCs that finished.
         
        int64 num_calls_finished = 3;
        Specified by:
        getNumCallsFinished in interface ClientStatsOrBuilder
        Returns:
        The numCallsFinished.
      • getNumCallsFinishedWithClientFailedToSend

        public long getNumCallsFinishedWithClientFailedToSend()
         The total number of RPCs that failed to reach a server except dropped RPCs.
         
        int64 num_calls_finished_with_client_failed_to_send = 6;
        Specified by:
        getNumCallsFinishedWithClientFailedToSend in interface ClientStatsOrBuilder
        Returns:
        The numCallsFinishedWithClientFailedToSend.
      • getNumCallsFinishedKnownReceived

        public long getNumCallsFinishedKnownReceived()
         The total number of RPCs that finished and are known to have been received
         by a server.
         
        int64 num_calls_finished_known_received = 7;
        Specified by:
        getNumCallsFinishedKnownReceived in interface ClientStatsOrBuilder
        Returns:
        The numCallsFinishedKnownReceived.
      • getCallsFinishedWithDropCount

        public int getCallsFinishedWithDropCount()
         The list of dropped calls.
         
        repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8;
        Specified by:
        getCallsFinishedWithDropCount in interface ClientStatsOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessage
      • 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.GeneratedMessage
        Throws:
        java.io.IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessage
      • 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 ClientStats parseFrom​(java.nio.ByteBuffer data)
                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

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

        protected ClientStats.Builder newBuilderForType​(com.google.protobuf.AbstractMessage.BuilderParent parent)
        Overrides:
        newBuilderForType in class com.google.protobuf.AbstractMessage
      • getDefaultInstance

        public static ClientStats getDefaultInstance()
      • parser

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

        public com.google.protobuf.Parser<ClientStats> 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.GeneratedMessage
      • getDefaultInstanceForType

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