Package io.grpc.lb.v1
Class ClientStats
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.grpc.lb.v1.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.GeneratedMessageV3 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 typegrpc.lb.v1.ClientStats- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classClientStats.BuilderContains client level statistics that are useful to load balancing.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intCALLS_FINISHED_WITH_DROP_FIELD_NUMBERstatic intNUM_CALLS_FINISHED_FIELD_NUMBERstatic intNUM_CALLS_FINISHED_KNOWN_RECEIVED_FIELD_NUMBERstatic intNUM_CALLS_FINISHED_WITH_CLIENT_FAILED_TO_SEND_FIELD_NUMBERstatic intNUM_CALLS_STARTED_FIELD_NUMBERstatic intTIMESTAMP_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)ClientStatsPerTokengetCallsFinishedWithDrop(int index)The list of dropped calls.intgetCallsFinishedWithDropCount()The list of dropped calls.java.util.List<ClientStatsPerToken>getCallsFinishedWithDropList()The list of dropped calls.ClientStatsPerTokenOrBuildergetCallsFinishedWithDropOrBuilder(int index)The list of dropped calls.java.util.List<? extends ClientStatsPerTokenOrBuilder>getCallsFinishedWithDropOrBuilderList()The list of dropped calls.static ClientStatsgetDefaultInstance()ClientStatsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()longgetNumCallsFinished()The total number of RPCs that finished.longgetNumCallsFinishedKnownReceived()The total number of RPCs that finished and are known to have been received by a server.longgetNumCallsFinishedWithClientFailedToSend()The total number of RPCs that failed to reach a server except dropped RPCs.longgetNumCallsStarted()The total number of RPCs that started.com.google.protobuf.Parser<ClientStats>getParserForType()intgetSerializedSize()com.google.protobuf.TimestampgetTimestamp()The timestamp of generating the report.com.google.protobuf.TimestampOrBuildergetTimestampOrBuilder()The timestamp of generating the report.inthashCode()booleanhasTimestamp()The timestamp of generating the report.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static ClientStats.BuildernewBuilder()static ClientStats.BuildernewBuilder(ClientStats prototype)ClientStats.BuildernewBuilderForType()protected ClientStats.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static ClientStatsparseDelimitedFrom(java.io.InputStream input)static ClientStatsparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ClientStatsparseFrom(byte[] data)static ClientStatsparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ClientStatsparseFrom(com.google.protobuf.ByteString data)static ClientStatsparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ClientStatsparseFrom(com.google.protobuf.CodedInputStream input)static ClientStatsparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ClientStatsparseFrom(java.io.InputStream input)static ClientStatsparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ClientStatsparseFrom(java.nio.ByteBuffer data)static ClientStatsparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<ClientStats>parser()ClientStats.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
TIMESTAMP_FIELD_NUMBER
public static final int TIMESTAMP_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NUM_CALLS_STARTED_FIELD_NUMBER
public static final int NUM_CALLS_STARTED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NUM_CALLS_FINISHED_FIELD_NUMBER
public static final int NUM_CALLS_FINISHED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
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
-
NUM_CALLS_FINISHED_KNOWN_RECEIVED_FIELD_NUMBER
public static final int NUM_CALLS_FINISHED_KNOWN_RECEIVED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CALLS_FINISHED_WITH_DROP_FIELD_NUMBER
public static final int CALLS_FINISHED_WITH_DROP_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasTimestamp
public boolean hasTimestamp()
The timestamp of generating the report.
.google.protobuf.Timestamp timestamp = 1;- Specified by:
hasTimestampin interfaceClientStatsOrBuilder- 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:
getTimestampin interfaceClientStatsOrBuilder- Returns:
- The timestamp.
-
getTimestampOrBuilder
public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder()
The timestamp of generating the report.
.google.protobuf.Timestamp timestamp = 1;- Specified by:
getTimestampOrBuilderin interfaceClientStatsOrBuilder
-
getNumCallsStarted
public long getNumCallsStarted()
The total number of RPCs that started.
int64 num_calls_started = 2;- Specified by:
getNumCallsStartedin interfaceClientStatsOrBuilder- Returns:
- The numCallsStarted.
-
getNumCallsFinished
public long getNumCallsFinished()
The total number of RPCs that finished.
int64 num_calls_finished = 3;- Specified by:
getNumCallsFinishedin interfaceClientStatsOrBuilder- 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:
getNumCallsFinishedWithClientFailedToSendin interfaceClientStatsOrBuilder- 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:
getNumCallsFinishedKnownReceivedin interfaceClientStatsOrBuilder- Returns:
- The numCallsFinishedKnownReceived.
-
getCallsFinishedWithDropList
public java.util.List<ClientStatsPerToken> getCallsFinishedWithDropList()
The list of dropped calls.
repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8;- Specified by:
getCallsFinishedWithDropListin interfaceClientStatsOrBuilder
-
getCallsFinishedWithDropOrBuilderList
public java.util.List<? extends ClientStatsPerTokenOrBuilder> getCallsFinishedWithDropOrBuilderList()
The list of dropped calls.
repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8;- Specified by:
getCallsFinishedWithDropOrBuilderListin interfaceClientStatsOrBuilder
-
getCallsFinishedWithDropCount
public int getCallsFinishedWithDropCount()
The list of dropped calls.
repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8;- Specified by:
getCallsFinishedWithDropCountin interfaceClientStatsOrBuilder
-
getCallsFinishedWithDrop
public ClientStatsPerToken getCallsFinishedWithDrop(int index)
The list of dropped calls.
repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8;- Specified by:
getCallsFinishedWithDropin interfaceClientStatsOrBuilder
-
getCallsFinishedWithDropOrBuilder
public ClientStatsPerTokenOrBuilder getCallsFinishedWithDropOrBuilder(int index)
The list of dropped calls.
repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8;- Specified by:
getCallsFinishedWithDropOrBuilderin interfaceClientStatsOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static ClientStats.Builder newBuilder()
-
newBuilder
public static ClientStats.Builder newBuilder(ClientStats prototype)
-
toBuilder
public ClientStats.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ClientStats.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static ClientStats getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<ClientStats> parser()
-
getParserForType
public com.google.protobuf.Parser<ClientStats> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ClientStats getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-