Package io.grpc.lb.v1
Class ClientStats
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
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,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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classContains client level statistics that are useful to load balancing.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intstatic final intprivate List<ClientStatsPerToken> private static final ClientStatsprivate bytestatic final intstatic final intstatic final intstatic final intprivate longprivate longprivate longprivate longprivate static final com.google.protobuf.Parser<ClientStats> private static final longprivate com.google.protobuf.Timestampstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateprivateClientStats(com.google.protobuf.GeneratedMessage.Builder<?> builder) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetCallsFinishedWithDrop(int index) The list of dropped calls.intThe list of dropped calls.The list of dropped calls.getCallsFinishedWithDropOrBuilder(int index) The list of dropped calls.List<? extends ClientStatsPerTokenOrBuilder> The list of dropped calls.static ClientStatsstatic final com.google.protobuf.Descriptors.DescriptorlongThe total number of RPCs that finished.longThe total number of RPCs that finished and are known to have been received by a server.longThe total number of RPCs that failed to reach a server except dropped RPCs.longThe total number of RPCs that started.com.google.protobuf.Parser<ClientStats> intcom.google.protobuf.TimestampThe timestamp of generating the report.com.google.protobuf.TimestampOrBuilderThe timestamp of generating the report.inthashCode()booleanThe timestamp of generating the report.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic ClientStats.Builderstatic ClientStats.BuildernewBuilder(ClientStats prototype) protected ClientStats.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static ClientStatsparseDelimitedFrom(InputStream input) static ClientStatsparseDelimitedFrom(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(InputStream input) static ClientStatsparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ClientStatsparseFrom(ByteBuffer data) static ClientStatsparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ClientStats> parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
bitField0_
private int bitField0_ -
TIMESTAMP_FIELD_NUMBER
public static final int TIMESTAMP_FIELD_NUMBER- See Also:
-
timestamp_
private com.google.protobuf.Timestamp timestamp_ -
NUM_CALLS_STARTED_FIELD_NUMBER
public static final int NUM_CALLS_STARTED_FIELD_NUMBER- See Also:
-
numCallsStarted_
private long numCallsStarted_ -
NUM_CALLS_FINISHED_FIELD_NUMBER
public static final int NUM_CALLS_FINISHED_FIELD_NUMBER- See Also:
-
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:
-
numCallsFinishedWithClientFailedToSend_
private long numCallsFinishedWithClientFailedToSend_ -
NUM_CALLS_FINISHED_KNOWN_RECEIVED_FIELD_NUMBER
public static final int NUM_CALLS_FINISHED_KNOWN_RECEIVED_FIELD_NUMBER- See Also:
-
numCallsFinishedKnownReceived_
private long numCallsFinishedKnownReceived_ -
CALLS_FINISHED_WITH_DROP_FIELD_NUMBER
public static final int CALLS_FINISHED_WITH_DROP_FIELD_NUMBER- See Also:
-
callsFinishedWithDrop_
-
memoizedIsInitialized
private byte memoizedIsInitialized -
DEFAULT_INSTANCE
-
PARSER
-
-
Constructor Details
-
ClientStats
private ClientStats(com.google.protobuf.GeneratedMessage.Builder<?> builder) -
ClientStats
private ClientStats()
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
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
The list of dropped calls.
repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8;- Specified by:
getCallsFinishedWithDropListin interfaceClientStatsOrBuilder
-
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
The list of dropped calls.
repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8;- Specified by:
getCallsFinishedWithDropin interfaceClientStatsOrBuilder
-
getCallsFinishedWithDropOrBuilder
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.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- 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(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ClientStats parseFrom(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
- Throws:
IOException
-
parseFrom
public static ClientStats parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static ClientStats parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ClientStats parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ClientStats.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-