Package io.grpc.lb.v1
Class ClientStats.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<ClientStats.Builder>
-
- io.grpc.lb.v1.ClientStats.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ClientStatsOrBuilder,java.lang.Cloneable
- Enclosing class:
- ClientStats
public static final class ClientStats.Builder extends com.google.protobuf.GeneratedMessage.Builder<ClientStats.Builder> 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
-
-
Field Summary
Fields Modifier and Type Field Description private intbitField0_private java.util.List<ClientStatsPerToken>callsFinishedWithDrop_private com.google.protobuf.RepeatedFieldBuilder<ClientStatsPerToken,ClientStatsPerToken.Builder,ClientStatsPerTokenOrBuilder>callsFinishedWithDropBuilder_private longnumCallsFinished_private longnumCallsFinishedKnownReceived_private longnumCallsFinishedWithClientFailedToSend_private longnumCallsStarted_private com.google.protobuf.Timestamptimestamp_private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Timestamp,com.google.protobuf.Timestamp.Builder,com.google.protobuf.TimestampOrBuilder>timestampBuilder_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ClientStats.BuilderaddAllCallsFinishedWithDrop(java.lang.Iterable<? extends ClientStatsPerToken> values)The list of dropped calls.ClientStats.BuilderaddCallsFinishedWithDrop(int index, ClientStatsPerToken value)The list of dropped calls.ClientStats.BuilderaddCallsFinishedWithDrop(int index, ClientStatsPerToken.Builder builderForValue)The list of dropped calls.ClientStats.BuilderaddCallsFinishedWithDrop(ClientStatsPerToken value)The list of dropped calls.ClientStats.BuilderaddCallsFinishedWithDrop(ClientStatsPerToken.Builder builderForValue)The list of dropped calls.ClientStatsPerToken.BuilderaddCallsFinishedWithDropBuilder()The list of dropped calls.ClientStatsPerToken.BuilderaddCallsFinishedWithDropBuilder(int index)The list of dropped calls.ClientStatsbuild()ClientStatsbuildPartial()private voidbuildPartial0(ClientStats result)private voidbuildPartialRepeatedFields(ClientStats result)ClientStats.Builderclear()ClientStats.BuilderclearCallsFinishedWithDrop()The list of dropped calls.ClientStats.BuilderclearNumCallsFinished()The total number of RPCs that finished.ClientStats.BuilderclearNumCallsFinishedKnownReceived()The total number of RPCs that finished and are known to have been received by a server.ClientStats.BuilderclearNumCallsFinishedWithClientFailedToSend()The total number of RPCs that failed to reach a server except dropped RPCs.ClientStats.BuilderclearNumCallsStarted()The total number of RPCs that started.ClientStats.BuilderclearTimestamp()The timestamp of generating the report.private voidensureCallsFinishedWithDropIsMutable()ClientStatsPerTokengetCallsFinishedWithDrop(int index)The list of dropped calls.ClientStatsPerToken.BuildergetCallsFinishedWithDropBuilder(int index)The list of dropped calls.java.util.List<ClientStatsPerToken.Builder>getCallsFinishedWithDropBuilderList()The list of dropped calls.intgetCallsFinishedWithDropCount()The list of dropped calls.private com.google.protobuf.RepeatedFieldBuilder<ClientStatsPerToken,ClientStatsPerToken.Builder,ClientStatsPerTokenOrBuilder>getCallsFinishedWithDropFieldBuilder()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.ClientStatsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()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.TimestampgetTimestamp()The timestamp of generating the report.com.google.protobuf.Timestamp.BuildergetTimestampBuilder()The timestamp of generating the report.private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Timestamp,com.google.protobuf.Timestamp.Builder,com.google.protobuf.TimestampOrBuilder>getTimestampFieldBuilder()The timestamp of generating the report.com.google.protobuf.TimestampOrBuildergetTimestampOrBuilder()The timestamp of generating the report.booleanhasTimestamp()The timestamp of generating the report.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()private voidmaybeForceBuilderInitialization()ClientStats.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ClientStats.BuildermergeFrom(com.google.protobuf.Message other)ClientStats.BuildermergeFrom(ClientStats other)ClientStats.BuildermergeTimestamp(com.google.protobuf.Timestamp value)The timestamp of generating the report.ClientStats.BuilderremoveCallsFinishedWithDrop(int index)The list of dropped calls.ClientStats.BuildersetCallsFinishedWithDrop(int index, ClientStatsPerToken value)The list of dropped calls.ClientStats.BuildersetCallsFinishedWithDrop(int index, ClientStatsPerToken.Builder builderForValue)The list of dropped calls.ClientStats.BuildersetNumCallsFinished(long value)The total number of RPCs that finished.ClientStats.BuildersetNumCallsFinishedKnownReceived(long value)The total number of RPCs that finished and are known to have been received by a server.ClientStats.BuildersetNumCallsFinishedWithClientFailedToSend(long value)The total number of RPCs that failed to reach a server except dropped RPCs.ClientStats.BuildersetNumCallsStarted(long value)The total number of RPCs that started.ClientStats.BuildersetTimestamp(com.google.protobuf.Timestamp value)The timestamp of generating the report.ClientStats.BuildersetTimestamp(com.google.protobuf.Timestamp.Builder builderForValue)The timestamp of generating the report.-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
bitField0_
private int bitField0_
-
timestamp_
private com.google.protobuf.Timestamp timestamp_
-
timestampBuilder_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Timestamp,com.google.protobuf.Timestamp.Builder,com.google.protobuf.TimestampOrBuilder> timestampBuilder_
-
numCallsStarted_
private long numCallsStarted_
-
numCallsFinished_
private long numCallsFinished_
-
numCallsFinishedWithClientFailedToSend_
private long numCallsFinishedWithClientFailedToSend_
-
numCallsFinishedKnownReceived_
private long numCallsFinishedKnownReceived_
-
callsFinishedWithDrop_
private java.util.List<ClientStatsPerToken> callsFinishedWithDrop_
-
callsFinishedWithDropBuilder_
private com.google.protobuf.RepeatedFieldBuilder<ClientStatsPerToken,ClientStatsPerToken.Builder,ClientStatsPerTokenOrBuilder> callsFinishedWithDropBuilder_
-
-
Method Detail
-
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.Builder<ClientStats.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization()
-
clear
public ClientStats.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ClientStats.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ClientStats.Builder>
-
getDefaultInstanceForType
public ClientStats getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ClientStats build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ClientStats buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartialRepeatedFields
private void buildPartialRepeatedFields(ClientStats result)
-
buildPartial0
private void buildPartial0(ClientStats result)
-
mergeFrom
public ClientStats.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ClientStats.Builder>
-
mergeFrom
public ClientStats.Builder mergeFrom(ClientStats other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ClientStats.Builder>
-
mergeFrom
public ClientStats.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ClientStats.Builder>- Throws:
java.io.IOException
-
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.
-
setTimestamp
public ClientStats.Builder setTimestamp(com.google.protobuf.Timestamp value)
The timestamp of generating the report.
.google.protobuf.Timestamp timestamp = 1;
-
setTimestamp
public ClientStats.Builder setTimestamp(com.google.protobuf.Timestamp.Builder builderForValue)
The timestamp of generating the report.
.google.protobuf.Timestamp timestamp = 1;
-
mergeTimestamp
public ClientStats.Builder mergeTimestamp(com.google.protobuf.Timestamp value)
The timestamp of generating the report.
.google.protobuf.Timestamp timestamp = 1;
-
clearTimestamp
public ClientStats.Builder clearTimestamp()
The timestamp of generating the report.
.google.protobuf.Timestamp timestamp = 1;
-
getTimestampBuilder
public com.google.protobuf.Timestamp.Builder getTimestampBuilder()
The timestamp of generating the report.
.google.protobuf.Timestamp timestamp = 1;
-
getTimestampOrBuilder
public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder()
The timestamp of generating the report.
.google.protobuf.Timestamp timestamp = 1;- Specified by:
getTimestampOrBuilderin interfaceClientStatsOrBuilder
-
getTimestampFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Timestamp,com.google.protobuf.Timestamp.Builder,com.google.protobuf.TimestampOrBuilder> getTimestampFieldBuilder()
The timestamp of generating the report.
.google.protobuf.Timestamp timestamp = 1;
-
getNumCallsStarted
public long getNumCallsStarted()
The total number of RPCs that started.
int64 num_calls_started = 2;- Specified by:
getNumCallsStartedin interfaceClientStatsOrBuilder- Returns:
- The numCallsStarted.
-
setNumCallsStarted
public ClientStats.Builder setNumCallsStarted(long value)
The total number of RPCs that started.
int64 num_calls_started = 2;- Parameters:
value- The numCallsStarted to set.- Returns:
- This builder for chaining.
-
clearNumCallsStarted
public ClientStats.Builder clearNumCallsStarted()
The total number of RPCs that started.
int64 num_calls_started = 2;- Returns:
- This builder for chaining.
-
getNumCallsFinished
public long getNumCallsFinished()
The total number of RPCs that finished.
int64 num_calls_finished = 3;- Specified by:
getNumCallsFinishedin interfaceClientStatsOrBuilder- Returns:
- The numCallsFinished.
-
setNumCallsFinished
public ClientStats.Builder setNumCallsFinished(long value)
The total number of RPCs that finished.
int64 num_calls_finished = 3;- Parameters:
value- The numCallsFinished to set.- Returns:
- This builder for chaining.
-
clearNumCallsFinished
public ClientStats.Builder clearNumCallsFinished()
The total number of RPCs that finished.
int64 num_calls_finished = 3;- Returns:
- This builder for chaining.
-
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.
-
setNumCallsFinishedWithClientFailedToSend
public ClientStats.Builder setNumCallsFinishedWithClientFailedToSend(long value)
The total number of RPCs that failed to reach a server except dropped RPCs.
int64 num_calls_finished_with_client_failed_to_send = 6;- Parameters:
value- The numCallsFinishedWithClientFailedToSend to set.- Returns:
- This builder for chaining.
-
clearNumCallsFinishedWithClientFailedToSend
public ClientStats.Builder clearNumCallsFinishedWithClientFailedToSend()
The total number of RPCs that failed to reach a server except dropped RPCs.
int64 num_calls_finished_with_client_failed_to_send = 6;- Returns:
- This builder for chaining.
-
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.
-
setNumCallsFinishedKnownReceived
public ClientStats.Builder setNumCallsFinishedKnownReceived(long value)
The total number of RPCs that finished and are known to have been received by a server.
int64 num_calls_finished_known_received = 7;- Parameters:
value- The numCallsFinishedKnownReceived to set.- Returns:
- This builder for chaining.
-
clearNumCallsFinishedKnownReceived
public ClientStats.Builder clearNumCallsFinishedKnownReceived()
The total number of RPCs that finished and are known to have been received by a server.
int64 num_calls_finished_known_received = 7;- Returns:
- This builder for chaining.
-
ensureCallsFinishedWithDropIsMutable
private void ensureCallsFinishedWithDropIsMutable()
-
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
-
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
-
setCallsFinishedWithDrop
public ClientStats.Builder setCallsFinishedWithDrop(int index, ClientStatsPerToken value)
The list of dropped calls.
repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8;
-
setCallsFinishedWithDrop
public ClientStats.Builder setCallsFinishedWithDrop(int index, ClientStatsPerToken.Builder builderForValue)
The list of dropped calls.
repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8;
-
addCallsFinishedWithDrop
public ClientStats.Builder addCallsFinishedWithDrop(ClientStatsPerToken value)
The list of dropped calls.
repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8;
-
addCallsFinishedWithDrop
public ClientStats.Builder addCallsFinishedWithDrop(int index, ClientStatsPerToken value)
The list of dropped calls.
repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8;
-
addCallsFinishedWithDrop
public ClientStats.Builder addCallsFinishedWithDrop(ClientStatsPerToken.Builder builderForValue)
The list of dropped calls.
repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8;
-
addCallsFinishedWithDrop
public ClientStats.Builder addCallsFinishedWithDrop(int index, ClientStatsPerToken.Builder builderForValue)
The list of dropped calls.
repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8;
-
addAllCallsFinishedWithDrop
public ClientStats.Builder addAllCallsFinishedWithDrop(java.lang.Iterable<? extends ClientStatsPerToken> values)
The list of dropped calls.
repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8;
-
clearCallsFinishedWithDrop
public ClientStats.Builder clearCallsFinishedWithDrop()
The list of dropped calls.
repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8;
-
removeCallsFinishedWithDrop
public ClientStats.Builder removeCallsFinishedWithDrop(int index)
The list of dropped calls.
repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8;
-
getCallsFinishedWithDropBuilder
public ClientStatsPerToken.Builder getCallsFinishedWithDropBuilder(int index)
The list of dropped calls.
repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8;
-
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
-
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
-
addCallsFinishedWithDropBuilder
public ClientStatsPerToken.Builder addCallsFinishedWithDropBuilder()
The list of dropped calls.
repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8;
-
addCallsFinishedWithDropBuilder
public ClientStatsPerToken.Builder addCallsFinishedWithDropBuilder(int index)
The list of dropped calls.
repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8;
-
getCallsFinishedWithDropBuilderList
public java.util.List<ClientStatsPerToken.Builder> getCallsFinishedWithDropBuilderList()
The list of dropped calls.
repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8;
-
getCallsFinishedWithDropFieldBuilder
private com.google.protobuf.RepeatedFieldBuilder<ClientStatsPerToken,ClientStatsPerToken.Builder,ClientStatsPerTokenOrBuilder> getCallsFinishedWithDropFieldBuilder()
-
-