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.GeneratedMessageV3.Builder<ClientStats.Builder>
-
- io.grpc.lb.v1.ClientStats.Builder
-
- All Implemented Interfaces:
Message.Builder
,MessageLite.Builder
,MessageLiteOrBuilder
,MessageOrBuilder
,ClientStatsOrBuilder
,Cloneable
- Enclosing class:
- ClientStats
public static final class ClientStats.Builder extends GeneratedMessageV3.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
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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
-
-
-
-
Method Detail
-
getDescriptor
public static final Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classGeneratedMessageV3.Builder<ClientStats.Builder>
-
clear
public ClientStats.Builder clear()
- Specified by:
clear
in interfaceMessage.Builder
- Specified by:
clear
in interfaceMessageLite.Builder
- Overrides:
clear
in classGeneratedMessageV3.Builder<ClientStats.Builder>
-
getDescriptorForType
public Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfaceMessage.Builder
- Specified by:
getDescriptorForType
in interfaceMessageOrBuilder
- Overrides:
getDescriptorForType
in classGeneratedMessageV3.Builder<ClientStats.Builder>
-
getDefaultInstanceForType
public ClientStats getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfaceMessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceMessageOrBuilder
-
build
public ClientStats build()
- Specified by:
build
in interfaceMessage.Builder
- Specified by:
build
in interfaceMessageLite.Builder
-
buildPartial
public ClientStats buildPartial()
- Specified by:
buildPartial
in interfaceMessage.Builder
- Specified by:
buildPartial
in interfaceMessageLite.Builder
-
clone
public ClientStats.Builder clone()
- Specified by:
clone
in interfaceMessage.Builder
- Specified by:
clone
in interfaceMessageLite.Builder
- Overrides:
clone
in classGeneratedMessageV3.Builder<ClientStats.Builder>
-
setField
public ClientStats.Builder setField(Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfaceMessage.Builder
- Overrides:
setField
in classGeneratedMessageV3.Builder<ClientStats.Builder>
-
clearField
public ClientStats.Builder clearField(Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfaceMessage.Builder
- Overrides:
clearField
in classGeneratedMessageV3.Builder<ClientStats.Builder>
-
clearOneof
public ClientStats.Builder clearOneof(Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfaceMessage.Builder
- Overrides:
clearOneof
in classGeneratedMessageV3.Builder<ClientStats.Builder>
-
setRepeatedField
public ClientStats.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfaceMessage.Builder
- Overrides:
setRepeatedField
in classGeneratedMessageV3.Builder<ClientStats.Builder>
-
addRepeatedField
public ClientStats.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfaceMessage.Builder
- Overrides:
addRepeatedField
in classGeneratedMessageV3.Builder<ClientStats.Builder>
-
mergeFrom
public ClientStats.Builder mergeFrom(Message other)
- Specified by:
mergeFrom
in interfaceMessage.Builder
- Overrides:
mergeFrom
in classAbstractMessage.Builder<ClientStats.Builder>
-
mergeFrom
public ClientStats.Builder mergeFrom(ClientStats other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfaceMessageLiteOrBuilder
- Overrides:
isInitialized
in classGeneratedMessageV3.Builder<ClientStats.Builder>
-
mergeFrom
public ClientStats.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfaceMessage.Builder
- Specified by:
mergeFrom
in interfaceMessageLite.Builder
- Overrides:
mergeFrom
in classAbstractMessage.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 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(Timestamp value)
The timestamp of generating the report.
.google.protobuf.Timestamp timestamp = 1;
-
setTimestamp
public ClientStats.Builder setTimestamp(Timestamp.Builder builderForValue)
The timestamp of generating the report.
.google.protobuf.Timestamp timestamp = 1;
-
mergeTimestamp
public ClientStats.Builder mergeTimestamp(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 Timestamp.Builder getTimestampBuilder()
The timestamp of generating the report.
.google.protobuf.Timestamp timestamp = 1;
-
getTimestampOrBuilder
public TimestampOrBuilder getTimestampOrBuilder()
The timestamp of generating the report.
.google.protobuf.Timestamp timestamp = 1;
- Specified by:
getTimestampOrBuilder
in interfaceClientStatsOrBuilder
-
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.
-
getCallsFinishedWithDropList
public 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(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 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 List<ClientStatsPerToken.Builder> getCallsFinishedWithDropBuilderList()
The list of dropped calls.
repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8;
-
setUnknownFields
public final ClientStats.Builder setUnknownFields(UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfaceMessage.Builder
- Overrides:
setUnknownFields
in classGeneratedMessageV3.Builder<ClientStats.Builder>
-
mergeUnknownFields
public final ClientStats.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfaceMessage.Builder
- Overrides:
mergeUnknownFields
in classGeneratedMessageV3.Builder<ClientStats.Builder>
-
-