Package io.grpc.lb.v1
Class ClientStats.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ClientStats.Builder>
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
,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 type
grpc.lb.v1.ClientStats
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private List
<ClientStatsPerToken> private com.google.protobuf.RepeatedFieldBuilder
<ClientStatsPerToken, ClientStatsPerToken.Builder, ClientStatsPerTokenOrBuilder> private long
private long
private long
private long
private com.google.protobuf.Timestamp
private com.google.protobuf.SingleFieldBuilder
<com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllCallsFinishedWithDrop
(Iterable<? extends ClientStatsPerToken> values) The list of dropped calls.addCallsFinishedWithDrop
(int index, ClientStatsPerToken value) The list of dropped calls.addCallsFinishedWithDrop
(int index, ClientStatsPerToken.Builder builderForValue) The list of dropped calls.The list of dropped calls.addCallsFinishedWithDrop
(ClientStatsPerToken.Builder builderForValue) The list of dropped calls.The list of dropped calls.addCallsFinishedWithDropBuilder
(int index) The list of dropped calls.build()
private void
buildPartial0
(ClientStats result) private void
clear()
The list of dropped calls.The total number of RPCs that finished.The total number of RPCs that finished and are known to have been received by a server.The total number of RPCs that failed to reach a server except dropped RPCs.The total number of RPCs that started.The timestamp of generating the report.private void
getCallsFinishedWithDrop
(int index) The list of dropped calls.getCallsFinishedWithDropBuilder
(int index) The list of dropped calls.The list of dropped calls.int
The list of dropped calls.private com.google.protobuf.RepeatedFieldBuilder
<ClientStatsPerToken, ClientStatsPerToken.Builder, ClientStatsPerTokenOrBuilder> The list of dropped calls.getCallsFinishedWithDropOrBuilder
(int index) The list of dropped calls.List
<? extends ClientStatsPerTokenOrBuilder> The list of dropped calls.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
long
The total number of RPCs that finished.long
The total number of RPCs that finished and are known to have been received by a server.long
The total number of RPCs that failed to reach a server except dropped RPCs.long
The total number of RPCs that started.com.google.protobuf.Timestamp
The timestamp of generating the report.com.google.protobuf.Timestamp.Builder
The timestamp of generating the report.private com.google.protobuf.SingleFieldBuilder
<com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> The timestamp of generating the report.com.google.protobuf.TimestampOrBuilder
The timestamp of generating the report.boolean
The timestamp of generating the report.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
private void
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(ClientStats other) mergeTimestamp
(com.google.protobuf.Timestamp value) The timestamp of generating the report.removeCallsFinishedWithDrop
(int index) The list of dropped calls.setCallsFinishedWithDrop
(int index, ClientStatsPerToken value) The list of dropped calls.setCallsFinishedWithDrop
(int index, ClientStatsPerToken.Builder builderForValue) The list of dropped calls.setNumCallsFinished
(long value) The total number of RPCs that finished.setNumCallsFinishedKnownReceived
(long value) The total number of RPCs that finished and are known to have been received by a server.setNumCallsFinishedWithClientFailedToSend
(long value) The total number of RPCs that failed to reach a server except dropped RPCs.setNumCallsStarted
(long value) The total number of RPCs that started.setTimestamp
(com.google.protobuf.Timestamp value) The timestamp of generating the report.setTimestamp
(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
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
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, timestampBuilder_com.google.protobuf.TimestampOrBuilder> -
numCallsStarted_
private long numCallsStarted_ -
numCallsFinished_
private long numCallsFinished_ -
numCallsFinishedWithClientFailedToSend_
private long numCallsFinishedWithClientFailedToSend_ -
numCallsFinishedKnownReceived_
private long numCallsFinishedKnownReceived_ -
callsFinishedWithDrop_
-
callsFinishedWithDropBuilder_
private com.google.protobuf.RepeatedFieldBuilder<ClientStatsPerToken,ClientStatsPerToken.Builder, callsFinishedWithDropBuilder_ClientStatsPerTokenOrBuilder>
-
-
Constructor Details
-
Builder
private Builder() -
Builder
private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<ClientStats.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<ClientStats.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<ClientStats.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartialRepeatedFields
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ClientStats.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<ClientStats.Builder>
-
mergeFrom
public ClientStats.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ClientStats.Builder>
- Throws:
IOException
-
hasTimestamp
public boolean hasTimestamp()The timestamp of generating the report.
.google.protobuf.Timestamp timestamp = 1;
- Specified by:
hasTimestamp
in 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:
getTimestamp
in interfaceClientStatsOrBuilder
- Returns:
- The timestamp.
-
setTimestamp
The timestamp of generating the report.
.google.protobuf.Timestamp timestamp = 1;
-
setTimestamp
The timestamp of generating the report.
.google.protobuf.Timestamp timestamp = 1;
-
mergeTimestamp
The timestamp of generating the report.
.google.protobuf.Timestamp timestamp = 1;
-
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:
getTimestampOrBuilder
in interfaceClientStatsOrBuilder
-
getTimestampFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Timestamp,com.google.protobuf.Timestamp.Builder, getTimestampFieldBuilder()com.google.protobuf.TimestampOrBuilder> 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:
getNumCallsStarted
in interfaceClientStatsOrBuilder
- Returns:
- The numCallsStarted.
-
setNumCallsStarted
The total number of RPCs that started.
int64 num_calls_started = 2;
- Parameters:
value
- The numCallsStarted to set.- Returns:
- This builder for chaining.
-
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:
getNumCallsFinished
in interfaceClientStatsOrBuilder
- Returns:
- The numCallsFinished.
-
setNumCallsFinished
The total number of RPCs that finished.
int64 num_calls_finished = 3;
- Parameters:
value
- The numCallsFinished to set.- Returns:
- This builder for chaining.
-
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:
getNumCallsFinishedWithClientFailedToSend
in interfaceClientStatsOrBuilder
- Returns:
- The numCallsFinishedWithClientFailedToSend.
-
setNumCallsFinishedWithClientFailedToSend
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
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:
getNumCallsFinishedKnownReceived
in interfaceClientStatsOrBuilder
- Returns:
- The numCallsFinishedKnownReceived.
-
setNumCallsFinishedKnownReceived
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
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
The list of dropped calls.
repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8;
- Specified by:
getCallsFinishedWithDropList
in interfaceClientStatsOrBuilder
-
getCallsFinishedWithDropCount
public int getCallsFinishedWithDropCount()The list of dropped calls.
repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8;
- Specified by:
getCallsFinishedWithDropCount
in interfaceClientStatsOrBuilder
-
getCallsFinishedWithDrop
The list of dropped calls.
repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8;
- Specified by:
getCallsFinishedWithDrop
in interfaceClientStatsOrBuilder
-
setCallsFinishedWithDrop
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
The list of dropped calls.
repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8;
-
addCallsFinishedWithDrop
The list of dropped calls.
repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8;
-
addCallsFinishedWithDrop
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(Iterable<? extends ClientStatsPerToken> values) The list of dropped calls.
repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8;
-
clearCallsFinishedWithDrop
The list of dropped calls.
repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8;
-
removeCallsFinishedWithDrop
The list of dropped calls.
repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8;
-
getCallsFinishedWithDropBuilder
The list of dropped calls.
repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8;
-
getCallsFinishedWithDropOrBuilder
The list of dropped calls.
repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8;
- Specified by:
getCallsFinishedWithDropOrBuilder
in interfaceClientStatsOrBuilder
-
getCallsFinishedWithDropOrBuilderList
The list of dropped calls.
repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8;
- Specified by:
getCallsFinishedWithDropOrBuilderList
in interfaceClientStatsOrBuilder
-
addCallsFinishedWithDropBuilder
The list of dropped calls.
repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8;
-
addCallsFinishedWithDropBuilder
The list of dropped calls.
repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8;
-
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, getCallsFinishedWithDropFieldBuilder()ClientStatsPerTokenOrBuilder>
-