public final class ClientStats extends 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 type
grpc.lb.v1.ClientStats| Modifier and Type | Class and Description |
|---|---|
static class |
ClientStats.Builder
Contains client level statistics that are useful to load balancing.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameterAbstractMessageLite.InternalOneOfEnum| Modifier and Type | Field and Description |
|---|---|
static int |
CALLS_FINISHED_WITH_DROP_FIELD_NUMBER |
static int |
NUM_CALLS_FINISHED_FIELD_NUMBER |
static int |
NUM_CALLS_FINISHED_KNOWN_RECEIVED_FIELD_NUMBER |
static int |
NUM_CALLS_FINISHED_WITH_CLIENT_FAILED_TO_SEND_FIELD_NUMBER |
static int |
NUM_CALLS_STARTED_FIELD_NUMBER |
static int |
TIMESTAMP_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCodecanUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int TIMESTAMP_FIELD_NUMBER
public static final int NUM_CALLS_STARTED_FIELD_NUMBER
public static final int NUM_CALLS_FINISHED_FIELD_NUMBER
public static final int NUM_CALLS_FINISHED_WITH_CLIENT_FAILED_TO_SEND_FIELD_NUMBER
public static final int NUM_CALLS_FINISHED_KNOWN_RECEIVED_FIELD_NUMBER
public static final int CALLS_FINISHED_WITH_DROP_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class GeneratedMessageV3public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public boolean hasTimestamp()
The timestamp of generating the report.
.google.protobuf.Timestamp timestamp = 1;hasTimestamp in interface ClientStatsOrBuilderpublic Timestamp getTimestamp()
The timestamp of generating the report.
.google.protobuf.Timestamp timestamp = 1;getTimestamp in interface ClientStatsOrBuilderpublic TimestampOrBuilder getTimestampOrBuilder()
The timestamp of generating the report.
.google.protobuf.Timestamp timestamp = 1;getTimestampOrBuilder in interface ClientStatsOrBuilderpublic long getNumCallsStarted()
The total number of RPCs that started.
int64 num_calls_started = 2;getNumCallsStarted in interface ClientStatsOrBuilderpublic long getNumCallsFinished()
The total number of RPCs that finished.
int64 num_calls_finished = 3;getNumCallsFinished in interface ClientStatsOrBuilderpublic 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;getNumCallsFinishedWithClientFailedToSend in interface ClientStatsOrBuilderpublic 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;getNumCallsFinishedKnownReceived in interface ClientStatsOrBuilderpublic List<ClientStatsPerToken> getCallsFinishedWithDropList()
The list of dropped calls.
repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8;getCallsFinishedWithDropList in interface ClientStatsOrBuilderpublic List<? extends ClientStatsPerTokenOrBuilder> getCallsFinishedWithDropOrBuilderList()
The list of dropped calls.
repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8;getCallsFinishedWithDropOrBuilderList in interface ClientStatsOrBuilderpublic int getCallsFinishedWithDropCount()
The list of dropped calls.
repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8;getCallsFinishedWithDropCount in interface ClientStatsOrBuilderpublic ClientStatsPerToken getCallsFinishedWithDrop(int index)
The list of dropped calls.
repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8;getCallsFinishedWithDrop in interface ClientStatsOrBuilderpublic ClientStatsPerTokenOrBuilder getCallsFinishedWithDropOrBuilder(int index)
The list of dropped calls.
repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8;getCallsFinishedWithDropOrBuilder in interface ClientStatsOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static ClientStats parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static ClientStats parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static ClientStats parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static ClientStats parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static ClientStats parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static ClientStats parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static ClientStats parseFrom(InputStream input) throws IOException
IOExceptionpublic static ClientStats parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ClientStats parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static ClientStats parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ClientStats parseFrom(CodedInputStream input) throws IOException
IOExceptionpublic static ClientStats parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic ClientStats.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static ClientStats.Builder newBuilder()
public static ClientStats.Builder newBuilder(ClientStats prototype)
public ClientStats.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected ClientStats.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static ClientStats getDefaultInstance()
public static Parser<ClientStats> parser()
public Parser<ClientStats> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public ClientStats getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder