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 int
bitField0_
private java.util.List<ClientStatsPerToken>
callsFinishedWithDrop_
private com.google.protobuf.RepeatedFieldBuilder<ClientStatsPerToken,ClientStatsPerToken.Builder,ClientStatsPerTokenOrBuilder>
callsFinishedWithDropBuilder_
private long
numCallsFinished_
private long
numCallsFinishedKnownReceived_
private long
numCallsFinishedWithClientFailedToSend_
private long
numCallsStarted_
private com.google.protobuf.Timestamp
timestamp_
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.Builder
addAllCallsFinishedWithDrop(java.lang.Iterable<? extends ClientStatsPerToken> values)
The list of dropped calls.ClientStats.Builder
addCallsFinishedWithDrop(int index, ClientStatsPerToken value)
The list of dropped calls.ClientStats.Builder
addCallsFinishedWithDrop(int index, ClientStatsPerToken.Builder builderForValue)
The list of dropped calls.ClientStats.Builder
addCallsFinishedWithDrop(ClientStatsPerToken value)
The list of dropped calls.ClientStats.Builder
addCallsFinishedWithDrop(ClientStatsPerToken.Builder builderForValue)
The list of dropped calls.ClientStatsPerToken.Builder
addCallsFinishedWithDropBuilder()
The list of dropped calls.ClientStatsPerToken.Builder
addCallsFinishedWithDropBuilder(int index)
The list of dropped calls.ClientStats
build()
ClientStats
buildPartial()
private void
buildPartial0(ClientStats result)
private void
buildPartialRepeatedFields(ClientStats result)
ClientStats.Builder
clear()
ClientStats.Builder
clearCallsFinishedWithDrop()
The list of dropped calls.ClientStats.Builder
clearNumCallsFinished()
The total number of RPCs that finished.ClientStats.Builder
clearNumCallsFinishedKnownReceived()
The total number of RPCs that finished and are known to have been received by a server.ClientStats.Builder
clearNumCallsFinishedWithClientFailedToSend()
The total number of RPCs that failed to reach a server except dropped RPCs.ClientStats.Builder
clearNumCallsStarted()
The total number of RPCs that started.ClientStats.Builder
clearTimestamp()
The timestamp of generating the report.private void
ensureCallsFinishedWithDropIsMutable()
ClientStatsPerToken
getCallsFinishedWithDrop(int index)
The list of dropped calls.ClientStatsPerToken.Builder
getCallsFinishedWithDropBuilder(int index)
The list of dropped calls.java.util.List<ClientStatsPerToken.Builder>
getCallsFinishedWithDropBuilderList()
The list of dropped calls.int
getCallsFinishedWithDropCount()
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.ClientStatsPerTokenOrBuilder
getCallsFinishedWithDropOrBuilder(int index)
The list of dropped calls.java.util.List<? extends ClientStatsPerTokenOrBuilder>
getCallsFinishedWithDropOrBuilderList()
The list of dropped calls.ClientStats
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
long
getNumCallsFinished()
The total number of RPCs that finished.long
getNumCallsFinishedKnownReceived()
The total number of RPCs that finished and are known to have been received by a server.long
getNumCallsFinishedWithClientFailedToSend()
The total number of RPCs that failed to reach a server except dropped RPCs.long
getNumCallsStarted()
The total number of RPCs that started.com.google.protobuf.Timestamp
getTimestamp()
The timestamp of generating the report.com.google.protobuf.Timestamp.Builder
getTimestampBuilder()
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.TimestampOrBuilder
getTimestampOrBuilder()
The timestamp of generating the report.boolean
hasTimestamp()
The timestamp of generating the report.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
private void
maybeForceBuilderInitialization()
ClientStats.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ClientStats.Builder
mergeFrom(com.google.protobuf.Message other)
ClientStats.Builder
mergeFrom(ClientStats other)
ClientStats.Builder
mergeTimestamp(com.google.protobuf.Timestamp value)
The timestamp of generating the report.ClientStats.Builder
removeCallsFinishedWithDrop(int index)
The list of dropped calls.ClientStats.Builder
setCallsFinishedWithDrop(int index, ClientStatsPerToken value)
The list of dropped calls.ClientStats.Builder
setCallsFinishedWithDrop(int index, ClientStatsPerToken.Builder builderForValue)
The list of dropped calls.ClientStats.Builder
setNumCallsFinished(long value)
The total number of RPCs that finished.ClientStats.Builder
setNumCallsFinishedKnownReceived(long value)
The total number of RPCs that finished and are known to have been received by a server.ClientStats.Builder
setNumCallsFinishedWithClientFailedToSend(long value)
The total number of RPCs that failed to reach a server except dropped RPCs.ClientStats.Builder
setNumCallsStarted(long value)
The total number of RPCs that started.ClientStats.Builder
setTimestamp(com.google.protobuf.Timestamp value)
The timestamp of generating the report.ClientStats.Builder
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
-
-
-
-
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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<ClientStats.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization()
-
clear
public ClientStats.Builder 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
public ClientStats getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ClientStats build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ClientStats buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ClientStats.Builder>
-
mergeFrom
public ClientStats.Builder mergeFrom(ClientStats other)
-
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 java.io.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:
java.io.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
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:
getTimestampOrBuilder
in 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:
getNumCallsStarted
in 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:
getNumCallsFinished
in 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:
getNumCallsFinishedWithClientFailedToSend
in 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:
getNumCallsFinishedKnownReceived
in 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:
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
public ClientStatsPerToken getCallsFinishedWithDrop(int index)
The list of dropped calls.
repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8;
- Specified by:
getCallsFinishedWithDrop
in 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:
getCallsFinishedWithDropOrBuilder
in 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:
getCallsFinishedWithDropOrBuilderList
in 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()
-
-