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 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,com.google.protobuf.TimestampOrBuilder> timestampBuilder_
    • numCallsStarted_

      private long numCallsStarted_
    • numCallsFinished_

      private long numCallsFinished_
    • numCallsFinishedWithClientFailedToSend_

      private long numCallsFinishedWithClientFailedToSend_
    • numCallsFinishedKnownReceived_

      private long numCallsFinishedKnownReceived_
    • callsFinishedWithDrop_

      private List<ClientStatsPerToken> callsFinishedWithDrop_
    • callsFinishedWithDropBuilder_

      private com.google.protobuf.RepeatedFieldBuilder<ClientStatsPerToken,ClientStatsPerToken.Builder,ClientStatsPerTokenOrBuilder> callsFinishedWithDropBuilder_
  • 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 class com.google.protobuf.GeneratedMessage.Builder<ClientStats.Builder>
    • maybeForceBuilderInitialization

      private void maybeForceBuilderInitialization()
    • clear

      public ClientStats.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ClientStats.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ClientStats.Builder>
    • getDefaultInstanceForType

      public ClientStats getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ClientStats build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ClientStats buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.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 interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ClientStats.Builder>
    • mergeFrom

      public ClientStats.Builder mergeFrom(ClientStats other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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 interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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 interface ClientStatsOrBuilder
      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 interface ClientStatsOrBuilder
      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 interface ClientStatsOrBuilder
    • 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 interface ClientStatsOrBuilder
      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 interface ClientStatsOrBuilder
      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 interface ClientStatsOrBuilder
      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 interface ClientStatsOrBuilder
      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 List<ClientStatsPerToken> getCallsFinishedWithDropList()
       The list of dropped calls.
       
      repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8;
      Specified by:
      getCallsFinishedWithDropList in interface ClientStatsOrBuilder
    • getCallsFinishedWithDropCount

      public int getCallsFinishedWithDropCount()
       The list of dropped calls.
       
      repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8;
      Specified by:
      getCallsFinishedWithDropCount in interface ClientStatsOrBuilder
    • 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 interface ClientStatsOrBuilder
    • 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 interface ClientStatsOrBuilder
    • 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 interface ClientStatsOrBuilder
    • 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;
    • getCallsFinishedWithDropFieldBuilder

      private com.google.protobuf.RepeatedFieldBuilder<ClientStatsPerToken,ClientStatsPerToken.Builder,ClientStatsPerTokenOrBuilder> getCallsFinishedWithDropFieldBuilder()