// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: stats.proto

package io.grpc.benchmarks.proto;

public final class Stats {
  private Stats() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
  }
  public interface ServerStatsOrBuilder extends
      // @@protoc_insertion_point(interface_extends:grpc.testing.ServerStats)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>optional double time_elapsed = 1;</code>
     *
     * <pre>
     * wall clock time change in seconds since last reset
     * </pre>
     */
    double getTimeElapsed();

    /**
     * <code>optional double time_user = 2;</code>
     *
     * <pre>
     * change in user time (in seconds) used by the server since last reset
     * </pre>
     */
    double getTimeUser();

    /**
     * <code>optional double time_system = 3;</code>
     *
     * <pre>
     * change in server time (in seconds) used by the server process and all
     * threads since last reset
     * </pre>
     */
    double getTimeSystem();
  }
  /**
   * Protobuf type {@code grpc.testing.ServerStats}
   */
  public  static final class ServerStats extends
      com.google.protobuf.GeneratedMessage implements
      // @@protoc_insertion_point(message_implements:grpc.testing.ServerStats)
      ServerStatsOrBuilder {
    // Use ServerStats.newBuilder() to construct.
    private ServerStats(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
      super(builder);
    }
    private ServerStats() {
      timeElapsed_ = 0D;
      timeUser_ = 0D;
      timeSystem_ = 0D;
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
    }
    private ServerStats(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
      this();
      int mutable_bitField0_ = 0;
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!input.skipField(tag)) {
                done = true;
              }
              break;
            }
            case 9: {

              timeElapsed_ = input.readDouble();
              break;
            }
            case 17: {

              timeUser_ = input.readDouble();
              break;
            }
            case 25: {

              timeSystem_ = input.readDouble();
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw new RuntimeException(e.setUnfinishedMessage(this));
      } catch (java.io.IOException e) {
        throw new RuntimeException(
            new com.google.protobuf.InvalidProtocolBufferException(
                e.getMessage()).setUnfinishedMessage(this));
      } finally {
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_ServerStats_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_ServerStats_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.grpc.benchmarks.proto.Stats.ServerStats.class, io.grpc.benchmarks.proto.Stats.ServerStats.Builder.class);
    }

    public static final int TIME_ELAPSED_FIELD_NUMBER = 1;
    private double timeElapsed_;
    /**
     * <code>optional double time_elapsed = 1;</code>
     *
     * <pre>
     * wall clock time change in seconds since last reset
     * </pre>
     */
    public double getTimeElapsed() {
      return timeElapsed_;
    }

    public static final int TIME_USER_FIELD_NUMBER = 2;
    private double timeUser_;
    /**
     * <code>optional double time_user = 2;</code>
     *
     * <pre>
     * change in user time (in seconds) used by the server since last reset
     * </pre>
     */
    public double getTimeUser() {
      return timeUser_;
    }

    public static final int TIME_SYSTEM_FIELD_NUMBER = 3;
    private double timeSystem_;
    /**
     * <code>optional double time_system = 3;</code>
     *
     * <pre>
     * change in server time (in seconds) used by the server process and all
     * threads since last reset
     * </pre>
     */
    public double getTimeSystem() {
      return timeSystem_;
    }

    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (timeElapsed_ != 0D) {
        output.writeDouble(1, timeElapsed_);
      }
      if (timeUser_ != 0D) {
        output.writeDouble(2, timeUser_);
      }
      if (timeSystem_ != 0D) {
        output.writeDouble(3, timeSystem_);
      }
    }

    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (timeElapsed_ != 0D) {
        size += com.google.protobuf.CodedOutputStream
          .computeDoubleSize(1, timeElapsed_);
      }
      if (timeUser_ != 0D) {
        size += com.google.protobuf.CodedOutputStream
          .computeDoubleSize(2, timeUser_);
      }
      if (timeSystem_ != 0D) {
        size += com.google.protobuf.CodedOutputStream
          .computeDoubleSize(3, timeSystem_);
      }
      memoizedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    public static io.grpc.benchmarks.proto.Stats.ServerStats parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static io.grpc.benchmarks.proto.Stats.ServerStats parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static io.grpc.benchmarks.proto.Stats.ServerStats parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static io.grpc.benchmarks.proto.Stats.ServerStats parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static io.grpc.benchmarks.proto.Stats.ServerStats parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static io.grpc.benchmarks.proto.Stats.ServerStats parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static io.grpc.benchmarks.proto.Stats.ServerStats parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static io.grpc.benchmarks.proto.Stats.ServerStats parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static io.grpc.benchmarks.proto.Stats.ServerStats parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static io.grpc.benchmarks.proto.Stats.ServerStats parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }

    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(io.grpc.benchmarks.proto.Stats.ServerStats prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code grpc.testing.ServerStats}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:grpc.testing.ServerStats)
        io.grpc.benchmarks.proto.Stats.ServerStatsOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_ServerStats_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_ServerStats_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                io.grpc.benchmarks.proto.Stats.ServerStats.class, io.grpc.benchmarks.proto.Stats.ServerStats.Builder.class);
      }

      // Construct using io.grpc.benchmarks.proto.Stats.ServerStats.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
        }
      }
      public Builder clear() {
        super.clear();
        timeElapsed_ = 0D;

        timeUser_ = 0D;

        timeSystem_ = 0D;

        return this;
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_ServerStats_descriptor;
      }

      public io.grpc.benchmarks.proto.Stats.ServerStats getDefaultInstanceForType() {
        return io.grpc.benchmarks.proto.Stats.ServerStats.getDefaultInstance();
      }

      public io.grpc.benchmarks.proto.Stats.ServerStats build() {
        io.grpc.benchmarks.proto.Stats.ServerStats result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public io.grpc.benchmarks.proto.Stats.ServerStats buildPartial() {
        io.grpc.benchmarks.proto.Stats.ServerStats result = new io.grpc.benchmarks.proto.Stats.ServerStats(this);
        result.timeElapsed_ = timeElapsed_;
        result.timeUser_ = timeUser_;
        result.timeSystem_ = timeSystem_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof io.grpc.benchmarks.proto.Stats.ServerStats) {
          return mergeFrom((io.grpc.benchmarks.proto.Stats.ServerStats)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(io.grpc.benchmarks.proto.Stats.ServerStats other) {
        if (other == io.grpc.benchmarks.proto.Stats.ServerStats.getDefaultInstance()) return this;
        if (other.getTimeElapsed() != 0D) {
          setTimeElapsed(other.getTimeElapsed());
        }
        if (other.getTimeUser() != 0D) {
          setTimeUser(other.getTimeUser());
        }
        if (other.getTimeSystem() != 0D) {
          setTimeSystem(other.getTimeSystem());
        }
        onChanged();
        return this;
      }

      public final boolean isInitialized() {
        return true;
      }

      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        io.grpc.benchmarks.proto.Stats.ServerStats parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (io.grpc.benchmarks.proto.Stats.ServerStats) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private double timeElapsed_ ;
      /**
       * <code>optional double time_elapsed = 1;</code>
       *
       * <pre>
       * wall clock time change in seconds since last reset
       * </pre>
       */
      public double getTimeElapsed() {
        return timeElapsed_;
      }
      /**
       * <code>optional double time_elapsed = 1;</code>
       *
       * <pre>
       * wall clock time change in seconds since last reset
       * </pre>
       */
      public Builder setTimeElapsed(double value) {
        
        timeElapsed_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional double time_elapsed = 1;</code>
       *
       * <pre>
       * wall clock time change in seconds since last reset
       * </pre>
       */
      public Builder clearTimeElapsed() {
        
        timeElapsed_ = 0D;
        onChanged();
        return this;
      }

      private double timeUser_ ;
      /**
       * <code>optional double time_user = 2;</code>
       *
       * <pre>
       * change in user time (in seconds) used by the server since last reset
       * </pre>
       */
      public double getTimeUser() {
        return timeUser_;
      }
      /**
       * <code>optional double time_user = 2;</code>
       *
       * <pre>
       * change in user time (in seconds) used by the server since last reset
       * </pre>
       */
      public Builder setTimeUser(double value) {
        
        timeUser_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional double time_user = 2;</code>
       *
       * <pre>
       * change in user time (in seconds) used by the server since last reset
       * </pre>
       */
      public Builder clearTimeUser() {
        
        timeUser_ = 0D;
        onChanged();
        return this;
      }

      private double timeSystem_ ;
      /**
       * <code>optional double time_system = 3;</code>
       *
       * <pre>
       * change in server time (in seconds) used by the server process and all
       * threads since last reset
       * </pre>
       */
      public double getTimeSystem() {
        return timeSystem_;
      }
      /**
       * <code>optional double time_system = 3;</code>
       *
       * <pre>
       * change in server time (in seconds) used by the server process and all
       * threads since last reset
       * </pre>
       */
      public Builder setTimeSystem(double value) {
        
        timeSystem_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional double time_system = 3;</code>
       *
       * <pre>
       * change in server time (in seconds) used by the server process and all
       * threads since last reset
       * </pre>
       */
      public Builder clearTimeSystem() {
        
        timeSystem_ = 0D;
        onChanged();
        return this;
      }
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return this;
      }

      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return this;
      }


      // @@protoc_insertion_point(builder_scope:grpc.testing.ServerStats)
    }

    // @@protoc_insertion_point(class_scope:grpc.testing.ServerStats)
    private static final io.grpc.benchmarks.proto.Stats.ServerStats DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new io.grpc.benchmarks.proto.Stats.ServerStats();
    }

    public static io.grpc.benchmarks.proto.Stats.ServerStats getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<ServerStats>
        PARSER = new com.google.protobuf.AbstractParser<ServerStats>() {
      public ServerStats parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        try {
          return new ServerStats(input, extensionRegistry);
        } catch (RuntimeException e) {
          if (e.getCause() instanceof
              com.google.protobuf.InvalidProtocolBufferException) {
            throw (com.google.protobuf.InvalidProtocolBufferException)
                e.getCause();
          }
          throw e;
        }
      }
    };

    public static com.google.protobuf.Parser<ServerStats> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<ServerStats> getParserForType() {
      return PARSER;
    }

    public io.grpc.benchmarks.proto.Stats.ServerStats getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface HistogramParamsOrBuilder extends
      // @@protoc_insertion_point(interface_extends:grpc.testing.HistogramParams)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>optional double resolution = 1;</code>
     *
     * <pre>
     * first bucket is [0, 1 + resolution)
     * </pre>
     */
    double getResolution();

    /**
     * <code>optional double max_possible = 2;</code>
     *
     * <pre>
     * use enough buckets to allow this value
     * </pre>
     */
    double getMaxPossible();
  }
  /**
   * Protobuf type {@code grpc.testing.HistogramParams}
   *
   * <pre>
   * Histogram params based on grpc/support/histogram.c
   * </pre>
   */
  public  static final class HistogramParams extends
      com.google.protobuf.GeneratedMessage implements
      // @@protoc_insertion_point(message_implements:grpc.testing.HistogramParams)
      HistogramParamsOrBuilder {
    // Use HistogramParams.newBuilder() to construct.
    private HistogramParams(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
      super(builder);
    }
    private HistogramParams() {
      resolution_ = 0D;
      maxPossible_ = 0D;
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
    }
    private HistogramParams(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
      this();
      int mutable_bitField0_ = 0;
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!input.skipField(tag)) {
                done = true;
              }
              break;
            }
            case 9: {

              resolution_ = input.readDouble();
              break;
            }
            case 17: {

              maxPossible_ = input.readDouble();
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw new RuntimeException(e.setUnfinishedMessage(this));
      } catch (java.io.IOException e) {
        throw new RuntimeException(
            new com.google.protobuf.InvalidProtocolBufferException(
                e.getMessage()).setUnfinishedMessage(this));
      } finally {
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_HistogramParams_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_HistogramParams_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.grpc.benchmarks.proto.Stats.HistogramParams.class, io.grpc.benchmarks.proto.Stats.HistogramParams.Builder.class);
    }

    public static final int RESOLUTION_FIELD_NUMBER = 1;
    private double resolution_;
    /**
     * <code>optional double resolution = 1;</code>
     *
     * <pre>
     * first bucket is [0, 1 + resolution)
     * </pre>
     */
    public double getResolution() {
      return resolution_;
    }

    public static final int MAX_POSSIBLE_FIELD_NUMBER = 2;
    private double maxPossible_;
    /**
     * <code>optional double max_possible = 2;</code>
     *
     * <pre>
     * use enough buckets to allow this value
     * </pre>
     */
    public double getMaxPossible() {
      return maxPossible_;
    }

    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (resolution_ != 0D) {
        output.writeDouble(1, resolution_);
      }
      if (maxPossible_ != 0D) {
        output.writeDouble(2, maxPossible_);
      }
    }

    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (resolution_ != 0D) {
        size += com.google.protobuf.CodedOutputStream
          .computeDoubleSize(1, resolution_);
      }
      if (maxPossible_ != 0D) {
        size += com.google.protobuf.CodedOutputStream
          .computeDoubleSize(2, maxPossible_);
      }
      memoizedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    public static io.grpc.benchmarks.proto.Stats.HistogramParams parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static io.grpc.benchmarks.proto.Stats.HistogramParams parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static io.grpc.benchmarks.proto.Stats.HistogramParams parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static io.grpc.benchmarks.proto.Stats.HistogramParams parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static io.grpc.benchmarks.proto.Stats.HistogramParams parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static io.grpc.benchmarks.proto.Stats.HistogramParams parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static io.grpc.benchmarks.proto.Stats.HistogramParams parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static io.grpc.benchmarks.proto.Stats.HistogramParams parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static io.grpc.benchmarks.proto.Stats.HistogramParams parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static io.grpc.benchmarks.proto.Stats.HistogramParams parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }

    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(io.grpc.benchmarks.proto.Stats.HistogramParams prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code grpc.testing.HistogramParams}
     *
     * <pre>
     * Histogram params based on grpc/support/histogram.c
     * </pre>
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:grpc.testing.HistogramParams)
        io.grpc.benchmarks.proto.Stats.HistogramParamsOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_HistogramParams_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_HistogramParams_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                io.grpc.benchmarks.proto.Stats.HistogramParams.class, io.grpc.benchmarks.proto.Stats.HistogramParams.Builder.class);
      }

      // Construct using io.grpc.benchmarks.proto.Stats.HistogramParams.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
        }
      }
      public Builder clear() {
        super.clear();
        resolution_ = 0D;

        maxPossible_ = 0D;

        return this;
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_HistogramParams_descriptor;
      }

      public io.grpc.benchmarks.proto.Stats.HistogramParams getDefaultInstanceForType() {
        return io.grpc.benchmarks.proto.Stats.HistogramParams.getDefaultInstance();
      }

      public io.grpc.benchmarks.proto.Stats.HistogramParams build() {
        io.grpc.benchmarks.proto.Stats.HistogramParams result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public io.grpc.benchmarks.proto.Stats.HistogramParams buildPartial() {
        io.grpc.benchmarks.proto.Stats.HistogramParams result = new io.grpc.benchmarks.proto.Stats.HistogramParams(this);
        result.resolution_ = resolution_;
        result.maxPossible_ = maxPossible_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof io.grpc.benchmarks.proto.Stats.HistogramParams) {
          return mergeFrom((io.grpc.benchmarks.proto.Stats.HistogramParams)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(io.grpc.benchmarks.proto.Stats.HistogramParams other) {
        if (other == io.grpc.benchmarks.proto.Stats.HistogramParams.getDefaultInstance()) return this;
        if (other.getResolution() != 0D) {
          setResolution(other.getResolution());
        }
        if (other.getMaxPossible() != 0D) {
          setMaxPossible(other.getMaxPossible());
        }
        onChanged();
        return this;
      }

      public final boolean isInitialized() {
        return true;
      }

      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        io.grpc.benchmarks.proto.Stats.HistogramParams parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (io.grpc.benchmarks.proto.Stats.HistogramParams) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private double resolution_ ;
      /**
       * <code>optional double resolution = 1;</code>
       *
       * <pre>
       * first bucket is [0, 1 + resolution)
       * </pre>
       */
      public double getResolution() {
        return resolution_;
      }
      /**
       * <code>optional double resolution = 1;</code>
       *
       * <pre>
       * first bucket is [0, 1 + resolution)
       * </pre>
       */
      public Builder setResolution(double value) {
        
        resolution_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional double resolution = 1;</code>
       *
       * <pre>
       * first bucket is [0, 1 + resolution)
       * </pre>
       */
      public Builder clearResolution() {
        
        resolution_ = 0D;
        onChanged();
        return this;
      }

      private double maxPossible_ ;
      /**
       * <code>optional double max_possible = 2;</code>
       *
       * <pre>
       * use enough buckets to allow this value
       * </pre>
       */
      public double getMaxPossible() {
        return maxPossible_;
      }
      /**
       * <code>optional double max_possible = 2;</code>
       *
       * <pre>
       * use enough buckets to allow this value
       * </pre>
       */
      public Builder setMaxPossible(double value) {
        
        maxPossible_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional double max_possible = 2;</code>
       *
       * <pre>
       * use enough buckets to allow this value
       * </pre>
       */
      public Builder clearMaxPossible() {
        
        maxPossible_ = 0D;
        onChanged();
        return this;
      }
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return this;
      }

      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return this;
      }


      // @@protoc_insertion_point(builder_scope:grpc.testing.HistogramParams)
    }

    // @@protoc_insertion_point(class_scope:grpc.testing.HistogramParams)
    private static final io.grpc.benchmarks.proto.Stats.HistogramParams DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new io.grpc.benchmarks.proto.Stats.HistogramParams();
    }

    public static io.grpc.benchmarks.proto.Stats.HistogramParams getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<HistogramParams>
        PARSER = new com.google.protobuf.AbstractParser<HistogramParams>() {
      public HistogramParams parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        try {
          return new HistogramParams(input, extensionRegistry);
        } catch (RuntimeException e) {
          if (e.getCause() instanceof
              com.google.protobuf.InvalidProtocolBufferException) {
            throw (com.google.protobuf.InvalidProtocolBufferException)
                e.getCause();
          }
          throw e;
        }
      }
    };

    public static com.google.protobuf.Parser<HistogramParams> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<HistogramParams> getParserForType() {
      return PARSER;
    }

    public io.grpc.benchmarks.proto.Stats.HistogramParams getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface HistogramDataOrBuilder extends
      // @@protoc_insertion_point(interface_extends:grpc.testing.HistogramData)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>repeated uint32 bucket = 1;</code>
     */
    java.util.List<java.lang.Integer> getBucketList();
    /**
     * <code>repeated uint32 bucket = 1;</code>
     */
    int getBucketCount();
    /**
     * <code>repeated uint32 bucket = 1;</code>
     */
    int getBucket(int index);

    /**
     * <code>optional double min_seen = 2;</code>
     */
    double getMinSeen();

    /**
     * <code>optional double max_seen = 3;</code>
     */
    double getMaxSeen();

    /**
     * <code>optional double sum = 4;</code>
     */
    double getSum();

    /**
     * <code>optional double sum_of_squares = 5;</code>
     */
    double getSumOfSquares();

    /**
     * <code>optional double count = 6;</code>
     */
    double getCount();
  }
  /**
   * Protobuf type {@code grpc.testing.HistogramData}
   *
   * <pre>
   * Histogram data based on grpc/support/histogram.c
   * </pre>
   */
  public  static final class HistogramData extends
      com.google.protobuf.GeneratedMessage implements
      // @@protoc_insertion_point(message_implements:grpc.testing.HistogramData)
      HistogramDataOrBuilder {
    // Use HistogramData.newBuilder() to construct.
    private HistogramData(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
      super(builder);
    }
    private HistogramData() {
      bucket_ = java.util.Collections.emptyList();
      minSeen_ = 0D;
      maxSeen_ = 0D;
      sum_ = 0D;
      sumOfSquares_ = 0D;
      count_ = 0D;
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
    }
    private HistogramData(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
      this();
      int mutable_bitField0_ = 0;
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!input.skipField(tag)) {
                done = true;
              }
              break;
            }
            case 8: {
              if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
                bucket_ = new java.util.ArrayList<java.lang.Integer>();
                mutable_bitField0_ |= 0x00000001;
              }
              bucket_.add(input.readUInt32());
              break;
            }
            case 10: {
              int length = input.readRawVarint32();
              int limit = input.pushLimit(length);
              if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) {
                bucket_ = new java.util.ArrayList<java.lang.Integer>();
                mutable_bitField0_ |= 0x00000001;
              }
              while (input.getBytesUntilLimit() > 0) {
                bucket_.add(input.readUInt32());
              }
              input.popLimit(limit);
              break;
            }
            case 17: {

              minSeen_ = input.readDouble();
              break;
            }
            case 25: {

              maxSeen_ = input.readDouble();
              break;
            }
            case 33: {

              sum_ = input.readDouble();
              break;
            }
            case 41: {

              sumOfSquares_ = input.readDouble();
              break;
            }
            case 49: {

              count_ = input.readDouble();
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw new RuntimeException(e.setUnfinishedMessage(this));
      } catch (java.io.IOException e) {
        throw new RuntimeException(
            new com.google.protobuf.InvalidProtocolBufferException(
                e.getMessage()).setUnfinishedMessage(this));
      } finally {
        if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
          bucket_ = java.util.Collections.unmodifiableList(bucket_);
        }
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_HistogramData_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_HistogramData_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.grpc.benchmarks.proto.Stats.HistogramData.class, io.grpc.benchmarks.proto.Stats.HistogramData.Builder.class);
    }

    private int bitField0_;
    public static final int BUCKET_FIELD_NUMBER = 1;
    private java.util.List<java.lang.Integer> bucket_;
    /**
     * <code>repeated uint32 bucket = 1;</code>
     */
    public java.util.List<java.lang.Integer>
        getBucketList() {
      return bucket_;
    }
    /**
     * <code>repeated uint32 bucket = 1;</code>
     */
    public int getBucketCount() {
      return bucket_.size();
    }
    /**
     * <code>repeated uint32 bucket = 1;</code>
     */
    public int getBucket(int index) {
      return bucket_.get(index);
    }
    private int bucketMemoizedSerializedSize = -1;

    public static final int MIN_SEEN_FIELD_NUMBER = 2;
    private double minSeen_;
    /**
     * <code>optional double min_seen = 2;</code>
     */
    public double getMinSeen() {
      return minSeen_;
    }

    public static final int MAX_SEEN_FIELD_NUMBER = 3;
    private double maxSeen_;
    /**
     * <code>optional double max_seen = 3;</code>
     */
    public double getMaxSeen() {
      return maxSeen_;
    }

    public static final int SUM_FIELD_NUMBER = 4;
    private double sum_;
    /**
     * <code>optional double sum = 4;</code>
     */
    public double getSum() {
      return sum_;
    }

    public static final int SUM_OF_SQUARES_FIELD_NUMBER = 5;
    private double sumOfSquares_;
    /**
     * <code>optional double sum_of_squares = 5;</code>
     */
    public double getSumOfSquares() {
      return sumOfSquares_;
    }

    public static final int COUNT_FIELD_NUMBER = 6;
    private double count_;
    /**
     * <code>optional double count = 6;</code>
     */
    public double getCount() {
      return count_;
    }

    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (getBucketList().size() > 0) {
        output.writeRawVarint32(10);
        output.writeRawVarint32(bucketMemoizedSerializedSize);
      }
      for (int i = 0; i < bucket_.size(); i++) {
        output.writeUInt32NoTag(bucket_.get(i));
      }
      if (minSeen_ != 0D) {
        output.writeDouble(2, minSeen_);
      }
      if (maxSeen_ != 0D) {
        output.writeDouble(3, maxSeen_);
      }
      if (sum_ != 0D) {
        output.writeDouble(4, sum_);
      }
      if (sumOfSquares_ != 0D) {
        output.writeDouble(5, sumOfSquares_);
      }
      if (count_ != 0D) {
        output.writeDouble(6, count_);
      }
    }

    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      {
        int dataSize = 0;
        for (int i = 0; i < bucket_.size(); i++) {
          dataSize += com.google.protobuf.CodedOutputStream
            .computeUInt32SizeNoTag(bucket_.get(i));
        }
        size += dataSize;
        if (!getBucketList().isEmpty()) {
          size += 1;
          size += com.google.protobuf.CodedOutputStream
              .computeInt32SizeNoTag(dataSize);
        }
        bucketMemoizedSerializedSize = dataSize;
      }
      if (minSeen_ != 0D) {
        size += com.google.protobuf.CodedOutputStream
          .computeDoubleSize(2, minSeen_);
      }
      if (maxSeen_ != 0D) {
        size += com.google.protobuf.CodedOutputStream
          .computeDoubleSize(3, maxSeen_);
      }
      if (sum_ != 0D) {
        size += com.google.protobuf.CodedOutputStream
          .computeDoubleSize(4, sum_);
      }
      if (sumOfSquares_ != 0D) {
        size += com.google.protobuf.CodedOutputStream
          .computeDoubleSize(5, sumOfSquares_);
      }
      if (count_ != 0D) {
        size += com.google.protobuf.CodedOutputStream
          .computeDoubleSize(6, count_);
      }
      memoizedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    public static io.grpc.benchmarks.proto.Stats.HistogramData parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static io.grpc.benchmarks.proto.Stats.HistogramData parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static io.grpc.benchmarks.proto.Stats.HistogramData parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static io.grpc.benchmarks.proto.Stats.HistogramData parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static io.grpc.benchmarks.proto.Stats.HistogramData parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static io.grpc.benchmarks.proto.Stats.HistogramData parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static io.grpc.benchmarks.proto.Stats.HistogramData parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static io.grpc.benchmarks.proto.Stats.HistogramData parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static io.grpc.benchmarks.proto.Stats.HistogramData parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static io.grpc.benchmarks.proto.Stats.HistogramData parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }

    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(io.grpc.benchmarks.proto.Stats.HistogramData prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code grpc.testing.HistogramData}
     *
     * <pre>
     * Histogram data based on grpc/support/histogram.c
     * </pre>
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:grpc.testing.HistogramData)
        io.grpc.benchmarks.proto.Stats.HistogramDataOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_HistogramData_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_HistogramData_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                io.grpc.benchmarks.proto.Stats.HistogramData.class, io.grpc.benchmarks.proto.Stats.HistogramData.Builder.class);
      }

      // Construct using io.grpc.benchmarks.proto.Stats.HistogramData.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
        }
      }
      public Builder clear() {
        super.clear();
        bucket_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        minSeen_ = 0D;

        maxSeen_ = 0D;

        sum_ = 0D;

        sumOfSquares_ = 0D;

        count_ = 0D;

        return this;
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_HistogramData_descriptor;
      }

      public io.grpc.benchmarks.proto.Stats.HistogramData getDefaultInstanceForType() {
        return io.grpc.benchmarks.proto.Stats.HistogramData.getDefaultInstance();
      }

      public io.grpc.benchmarks.proto.Stats.HistogramData build() {
        io.grpc.benchmarks.proto.Stats.HistogramData result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public io.grpc.benchmarks.proto.Stats.HistogramData buildPartial() {
        io.grpc.benchmarks.proto.Stats.HistogramData result = new io.grpc.benchmarks.proto.Stats.HistogramData(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((bitField0_ & 0x00000001) == 0x00000001)) {
          bucket_ = java.util.Collections.unmodifiableList(bucket_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.bucket_ = bucket_;
        result.minSeen_ = minSeen_;
        result.maxSeen_ = maxSeen_;
        result.sum_ = sum_;
        result.sumOfSquares_ = sumOfSquares_;
        result.count_ = count_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof io.grpc.benchmarks.proto.Stats.HistogramData) {
          return mergeFrom((io.grpc.benchmarks.proto.Stats.HistogramData)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(io.grpc.benchmarks.proto.Stats.HistogramData other) {
        if (other == io.grpc.benchmarks.proto.Stats.HistogramData.getDefaultInstance()) return this;
        if (!other.bucket_.isEmpty()) {
          if (bucket_.isEmpty()) {
            bucket_ = other.bucket_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureBucketIsMutable();
            bucket_.addAll(other.bucket_);
          }
          onChanged();
        }
        if (other.getMinSeen() != 0D) {
          setMinSeen(other.getMinSeen());
        }
        if (other.getMaxSeen() != 0D) {
          setMaxSeen(other.getMaxSeen());
        }
        if (other.getSum() != 0D) {
          setSum(other.getSum());
        }
        if (other.getSumOfSquares() != 0D) {
          setSumOfSquares(other.getSumOfSquares());
        }
        if (other.getCount() != 0D) {
          setCount(other.getCount());
        }
        onChanged();
        return this;
      }

      public final boolean isInitialized() {
        return true;
      }

      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        io.grpc.benchmarks.proto.Stats.HistogramData parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (io.grpc.benchmarks.proto.Stats.HistogramData) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private java.util.List<java.lang.Integer> bucket_ = java.util.Collections.emptyList();
      private void ensureBucketIsMutable() {
        if (!((bitField0_ & 0x00000001) == 0x00000001)) {
          bucket_ = new java.util.ArrayList<java.lang.Integer>(bucket_);
          bitField0_ |= 0x00000001;
         }
      }
      /**
       * <code>repeated uint32 bucket = 1;</code>
       */
      public java.util.List<java.lang.Integer>
          getBucketList() {
        return java.util.Collections.unmodifiableList(bucket_);
      }
      /**
       * <code>repeated uint32 bucket = 1;</code>
       */
      public int getBucketCount() {
        return bucket_.size();
      }
      /**
       * <code>repeated uint32 bucket = 1;</code>
       */
      public int getBucket(int index) {
        return bucket_.get(index);
      }
      /**
       * <code>repeated uint32 bucket = 1;</code>
       */
      public Builder setBucket(
          int index, int value) {
        ensureBucketIsMutable();
        bucket_.set(index, value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated uint32 bucket = 1;</code>
       */
      public Builder addBucket(int value) {
        ensureBucketIsMutable();
        bucket_.add(value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated uint32 bucket = 1;</code>
       */
      public Builder addAllBucket(
          java.lang.Iterable<? extends java.lang.Integer> values) {
        ensureBucketIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, bucket_);
        onChanged();
        return this;
      }
      /**
       * <code>repeated uint32 bucket = 1;</code>
       */
      public Builder clearBucket() {
        bucket_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }

      private double minSeen_ ;
      /**
       * <code>optional double min_seen = 2;</code>
       */
      public double getMinSeen() {
        return minSeen_;
      }
      /**
       * <code>optional double min_seen = 2;</code>
       */
      public Builder setMinSeen(double value) {
        
        minSeen_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional double min_seen = 2;</code>
       */
      public Builder clearMinSeen() {
        
        minSeen_ = 0D;
        onChanged();
        return this;
      }

      private double maxSeen_ ;
      /**
       * <code>optional double max_seen = 3;</code>
       */
      public double getMaxSeen() {
        return maxSeen_;
      }
      /**
       * <code>optional double max_seen = 3;</code>
       */
      public Builder setMaxSeen(double value) {
        
        maxSeen_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional double max_seen = 3;</code>
       */
      public Builder clearMaxSeen() {
        
        maxSeen_ = 0D;
        onChanged();
        return this;
      }

      private double sum_ ;
      /**
       * <code>optional double sum = 4;</code>
       */
      public double getSum() {
        return sum_;
      }
      /**
       * <code>optional double sum = 4;</code>
       */
      public Builder setSum(double value) {
        
        sum_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional double sum = 4;</code>
       */
      public Builder clearSum() {
        
        sum_ = 0D;
        onChanged();
        return this;
      }

      private double sumOfSquares_ ;
      /**
       * <code>optional double sum_of_squares = 5;</code>
       */
      public double getSumOfSquares() {
        return sumOfSquares_;
      }
      /**
       * <code>optional double sum_of_squares = 5;</code>
       */
      public Builder setSumOfSquares(double value) {
        
        sumOfSquares_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional double sum_of_squares = 5;</code>
       */
      public Builder clearSumOfSquares() {
        
        sumOfSquares_ = 0D;
        onChanged();
        return this;
      }

      private double count_ ;
      /**
       * <code>optional double count = 6;</code>
       */
      public double getCount() {
        return count_;
      }
      /**
       * <code>optional double count = 6;</code>
       */
      public Builder setCount(double value) {
        
        count_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional double count = 6;</code>
       */
      public Builder clearCount() {
        
        count_ = 0D;
        onChanged();
        return this;
      }
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return this;
      }

      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return this;
      }


      // @@protoc_insertion_point(builder_scope:grpc.testing.HistogramData)
    }

    // @@protoc_insertion_point(class_scope:grpc.testing.HistogramData)
    private static final io.grpc.benchmarks.proto.Stats.HistogramData DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new io.grpc.benchmarks.proto.Stats.HistogramData();
    }

    public static io.grpc.benchmarks.proto.Stats.HistogramData getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<HistogramData>
        PARSER = new com.google.protobuf.AbstractParser<HistogramData>() {
      public HistogramData parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        try {
          return new HistogramData(input, extensionRegistry);
        } catch (RuntimeException e) {
          if (e.getCause() instanceof
              com.google.protobuf.InvalidProtocolBufferException) {
            throw (com.google.protobuf.InvalidProtocolBufferException)
                e.getCause();
          }
          throw e;
        }
      }
    };

    public static com.google.protobuf.Parser<HistogramData> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<HistogramData> getParserForType() {
      return PARSER;
    }

    public io.grpc.benchmarks.proto.Stats.HistogramData getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface ClientStatsOrBuilder extends
      // @@protoc_insertion_point(interface_extends:grpc.testing.ClientStats)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>optional .grpc.testing.HistogramData latencies = 1;</code>
     *
     * <pre>
     * Latency histogram. Data points are in nanoseconds.
     * </pre>
     */
    boolean hasLatencies();
    /**
     * <code>optional .grpc.testing.HistogramData latencies = 1;</code>
     *
     * <pre>
     * Latency histogram. Data points are in nanoseconds.
     * </pre>
     */
    io.grpc.benchmarks.proto.Stats.HistogramData getLatencies();
    /**
     * <code>optional .grpc.testing.HistogramData latencies = 1;</code>
     *
     * <pre>
     * Latency histogram. Data points are in nanoseconds.
     * </pre>
     */
    io.grpc.benchmarks.proto.Stats.HistogramDataOrBuilder getLatenciesOrBuilder();

    /**
     * <code>optional double time_elapsed = 2;</code>
     *
     * <pre>
     * See ServerStats for details.
     * </pre>
     */
    double getTimeElapsed();

    /**
     * <code>optional double time_user = 3;</code>
     */
    double getTimeUser();

    /**
     * <code>optional double time_system = 4;</code>
     */
    double getTimeSystem();
  }
  /**
   * Protobuf type {@code grpc.testing.ClientStats}
   */
  public  static final class ClientStats extends
      com.google.protobuf.GeneratedMessage implements
      // @@protoc_insertion_point(message_implements:grpc.testing.ClientStats)
      ClientStatsOrBuilder {
    // Use ClientStats.newBuilder() to construct.
    private ClientStats(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
      super(builder);
    }
    private ClientStats() {
      timeElapsed_ = 0D;
      timeUser_ = 0D;
      timeSystem_ = 0D;
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
    }
    private ClientStats(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
      this();
      int mutable_bitField0_ = 0;
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!input.skipField(tag)) {
                done = true;
              }
              break;
            }
            case 10: {
              io.grpc.benchmarks.proto.Stats.HistogramData.Builder subBuilder = null;
              if (latencies_ != null) {
                subBuilder = latencies_.toBuilder();
              }
              latencies_ = input.readMessage(io.grpc.benchmarks.proto.Stats.HistogramData.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(latencies_);
                latencies_ = subBuilder.buildPartial();
              }

              break;
            }
            case 17: {

              timeElapsed_ = input.readDouble();
              break;
            }
            case 25: {

              timeUser_ = input.readDouble();
              break;
            }
            case 33: {

              timeSystem_ = input.readDouble();
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw new RuntimeException(e.setUnfinishedMessage(this));
      } catch (java.io.IOException e) {
        throw new RuntimeException(
            new com.google.protobuf.InvalidProtocolBufferException(
                e.getMessage()).setUnfinishedMessage(this));
      } finally {
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_ClientStats_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_ClientStats_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.grpc.benchmarks.proto.Stats.ClientStats.class, io.grpc.benchmarks.proto.Stats.ClientStats.Builder.class);
    }

    public static final int LATENCIES_FIELD_NUMBER = 1;
    private io.grpc.benchmarks.proto.Stats.HistogramData latencies_;
    /**
     * <code>optional .grpc.testing.HistogramData latencies = 1;</code>
     *
     * <pre>
     * Latency histogram. Data points are in nanoseconds.
     * </pre>
     */
    public boolean hasLatencies() {
      return latencies_ != null;
    }
    /**
     * <code>optional .grpc.testing.HistogramData latencies = 1;</code>
     *
     * <pre>
     * Latency histogram. Data points are in nanoseconds.
     * </pre>
     */
    public io.grpc.benchmarks.proto.Stats.HistogramData getLatencies() {
      return latencies_ == null ? io.grpc.benchmarks.proto.Stats.HistogramData.getDefaultInstance() : latencies_;
    }
    /**
     * <code>optional .grpc.testing.HistogramData latencies = 1;</code>
     *
     * <pre>
     * Latency histogram. Data points are in nanoseconds.
     * </pre>
     */
    public io.grpc.benchmarks.proto.Stats.HistogramDataOrBuilder getLatenciesOrBuilder() {
      return getLatencies();
    }

    public static final int TIME_ELAPSED_FIELD_NUMBER = 2;
    private double timeElapsed_;
    /**
     * <code>optional double time_elapsed = 2;</code>
     *
     * <pre>
     * See ServerStats for details.
     * </pre>
     */
    public double getTimeElapsed() {
      return timeElapsed_;
    }

    public static final int TIME_USER_FIELD_NUMBER = 3;
    private double timeUser_;
    /**
     * <code>optional double time_user = 3;</code>
     */
    public double getTimeUser() {
      return timeUser_;
    }

    public static final int TIME_SYSTEM_FIELD_NUMBER = 4;
    private double timeSystem_;
    /**
     * <code>optional double time_system = 4;</code>
     */
    public double getTimeSystem() {
      return timeSystem_;
    }

    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (latencies_ != null) {
        output.writeMessage(1, getLatencies());
      }
      if (timeElapsed_ != 0D) {
        output.writeDouble(2, timeElapsed_);
      }
      if (timeUser_ != 0D) {
        output.writeDouble(3, timeUser_);
      }
      if (timeSystem_ != 0D) {
        output.writeDouble(4, timeSystem_);
      }
    }

    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (latencies_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, getLatencies());
      }
      if (timeElapsed_ != 0D) {
        size += com.google.protobuf.CodedOutputStream
          .computeDoubleSize(2, timeElapsed_);
      }
      if (timeUser_ != 0D) {
        size += com.google.protobuf.CodedOutputStream
          .computeDoubleSize(3, timeUser_);
      }
      if (timeSystem_ != 0D) {
        size += com.google.protobuf.CodedOutputStream
          .computeDoubleSize(4, timeSystem_);
      }
      memoizedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    public static io.grpc.benchmarks.proto.Stats.ClientStats parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static io.grpc.benchmarks.proto.Stats.ClientStats parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static io.grpc.benchmarks.proto.Stats.ClientStats parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static io.grpc.benchmarks.proto.Stats.ClientStats parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static io.grpc.benchmarks.proto.Stats.ClientStats parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static io.grpc.benchmarks.proto.Stats.ClientStats parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static io.grpc.benchmarks.proto.Stats.ClientStats parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static io.grpc.benchmarks.proto.Stats.ClientStats parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static io.grpc.benchmarks.proto.Stats.ClientStats parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static io.grpc.benchmarks.proto.Stats.ClientStats parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }

    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(io.grpc.benchmarks.proto.Stats.ClientStats prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code grpc.testing.ClientStats}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:grpc.testing.ClientStats)
        io.grpc.benchmarks.proto.Stats.ClientStatsOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_ClientStats_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_ClientStats_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                io.grpc.benchmarks.proto.Stats.ClientStats.class, io.grpc.benchmarks.proto.Stats.ClientStats.Builder.class);
      }

      // Construct using io.grpc.benchmarks.proto.Stats.ClientStats.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
        }
      }
      public Builder clear() {
        super.clear();
        if (latenciesBuilder_ == null) {
          latencies_ = null;
        } else {
          latencies_ = null;
          latenciesBuilder_ = null;
        }
        timeElapsed_ = 0D;

        timeUser_ = 0D;

        timeSystem_ = 0D;

        return this;
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_ClientStats_descriptor;
      }

      public io.grpc.benchmarks.proto.Stats.ClientStats getDefaultInstanceForType() {
        return io.grpc.benchmarks.proto.Stats.ClientStats.getDefaultInstance();
      }

      public io.grpc.benchmarks.proto.Stats.ClientStats build() {
        io.grpc.benchmarks.proto.Stats.ClientStats result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public io.grpc.benchmarks.proto.Stats.ClientStats buildPartial() {
        io.grpc.benchmarks.proto.Stats.ClientStats result = new io.grpc.benchmarks.proto.Stats.ClientStats(this);
        if (latenciesBuilder_ == null) {
          result.latencies_ = latencies_;
        } else {
          result.latencies_ = latenciesBuilder_.build();
        }
        result.timeElapsed_ = timeElapsed_;
        result.timeUser_ = timeUser_;
        result.timeSystem_ = timeSystem_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof io.grpc.benchmarks.proto.Stats.ClientStats) {
          return mergeFrom((io.grpc.benchmarks.proto.Stats.ClientStats)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(io.grpc.benchmarks.proto.Stats.ClientStats other) {
        if (other == io.grpc.benchmarks.proto.Stats.ClientStats.getDefaultInstance()) return this;
        if (other.hasLatencies()) {
          mergeLatencies(other.getLatencies());
        }
        if (other.getTimeElapsed() != 0D) {
          setTimeElapsed(other.getTimeElapsed());
        }
        if (other.getTimeUser() != 0D) {
          setTimeUser(other.getTimeUser());
        }
        if (other.getTimeSystem() != 0D) {
          setTimeSystem(other.getTimeSystem());
        }
        onChanged();
        return this;
      }

      public final boolean isInitialized() {
        return true;
      }

      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        io.grpc.benchmarks.proto.Stats.ClientStats parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (io.grpc.benchmarks.proto.Stats.ClientStats) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private io.grpc.benchmarks.proto.Stats.HistogramData latencies_ = null;
      private com.google.protobuf.SingleFieldBuilder<
          io.grpc.benchmarks.proto.Stats.HistogramData, io.grpc.benchmarks.proto.Stats.HistogramData.Builder, io.grpc.benchmarks.proto.Stats.HistogramDataOrBuilder> latenciesBuilder_;
      /**
       * <code>optional .grpc.testing.HistogramData latencies = 1;</code>
       *
       * <pre>
       * Latency histogram. Data points are in nanoseconds.
       * </pre>
       */
      public boolean hasLatencies() {
        return latenciesBuilder_ != null || latencies_ != null;
      }
      /**
       * <code>optional .grpc.testing.HistogramData latencies = 1;</code>
       *
       * <pre>
       * Latency histogram. Data points are in nanoseconds.
       * </pre>
       */
      public io.grpc.benchmarks.proto.Stats.HistogramData getLatencies() {
        if (latenciesBuilder_ == null) {
          return latencies_ == null ? io.grpc.benchmarks.proto.Stats.HistogramData.getDefaultInstance() : latencies_;
        } else {
          return latenciesBuilder_.getMessage();
        }
      }
      /**
       * <code>optional .grpc.testing.HistogramData latencies = 1;</code>
       *
       * <pre>
       * Latency histogram. Data points are in nanoseconds.
       * </pre>
       */
      public Builder setLatencies(io.grpc.benchmarks.proto.Stats.HistogramData value) {
        if (latenciesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          latencies_ = value;
          onChanged();
        } else {
          latenciesBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <code>optional .grpc.testing.HistogramData latencies = 1;</code>
       *
       * <pre>
       * Latency histogram. Data points are in nanoseconds.
       * </pre>
       */
      public Builder setLatencies(
          io.grpc.benchmarks.proto.Stats.HistogramData.Builder builderForValue) {
        if (latenciesBuilder_ == null) {
          latencies_ = builderForValue.build();
          onChanged();
        } else {
          latenciesBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <code>optional .grpc.testing.HistogramData latencies = 1;</code>
       *
       * <pre>
       * Latency histogram. Data points are in nanoseconds.
       * </pre>
       */
      public Builder mergeLatencies(io.grpc.benchmarks.proto.Stats.HistogramData value) {
        if (latenciesBuilder_ == null) {
          if (latencies_ != null) {
            latencies_ =
              io.grpc.benchmarks.proto.Stats.HistogramData.newBuilder(latencies_).mergeFrom(value).buildPartial();
          } else {
            latencies_ = value;
          }
          onChanged();
        } else {
          latenciesBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <code>optional .grpc.testing.HistogramData latencies = 1;</code>
       *
       * <pre>
       * Latency histogram. Data points are in nanoseconds.
       * </pre>
       */
      public Builder clearLatencies() {
        if (latenciesBuilder_ == null) {
          latencies_ = null;
          onChanged();
        } else {
          latencies_ = null;
          latenciesBuilder_ = null;
        }

        return this;
      }
      /**
       * <code>optional .grpc.testing.HistogramData latencies = 1;</code>
       *
       * <pre>
       * Latency histogram. Data points are in nanoseconds.
       * </pre>
       */
      public io.grpc.benchmarks.proto.Stats.HistogramData.Builder getLatenciesBuilder() {
        
        onChanged();
        return getLatenciesFieldBuilder().getBuilder();
      }
      /**
       * <code>optional .grpc.testing.HistogramData latencies = 1;</code>
       *
       * <pre>
       * Latency histogram. Data points are in nanoseconds.
       * </pre>
       */
      public io.grpc.benchmarks.proto.Stats.HistogramDataOrBuilder getLatenciesOrBuilder() {
        if (latenciesBuilder_ != null) {
          return latenciesBuilder_.getMessageOrBuilder();
        } else {
          return latencies_ == null ?
              io.grpc.benchmarks.proto.Stats.HistogramData.getDefaultInstance() : latencies_;
        }
      }
      /**
       * <code>optional .grpc.testing.HistogramData latencies = 1;</code>
       *
       * <pre>
       * Latency histogram. Data points are in nanoseconds.
       * </pre>
       */
      private com.google.protobuf.SingleFieldBuilder<
          io.grpc.benchmarks.proto.Stats.HistogramData, io.grpc.benchmarks.proto.Stats.HistogramData.Builder, io.grpc.benchmarks.proto.Stats.HistogramDataOrBuilder> 
          getLatenciesFieldBuilder() {
        if (latenciesBuilder_ == null) {
          latenciesBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              io.grpc.benchmarks.proto.Stats.HistogramData, io.grpc.benchmarks.proto.Stats.HistogramData.Builder, io.grpc.benchmarks.proto.Stats.HistogramDataOrBuilder>(
                  getLatencies(),
                  getParentForChildren(),
                  isClean());
          latencies_ = null;
        }
        return latenciesBuilder_;
      }

      private double timeElapsed_ ;
      /**
       * <code>optional double time_elapsed = 2;</code>
       *
       * <pre>
       * See ServerStats for details.
       * </pre>
       */
      public double getTimeElapsed() {
        return timeElapsed_;
      }
      /**
       * <code>optional double time_elapsed = 2;</code>
       *
       * <pre>
       * See ServerStats for details.
       * </pre>
       */
      public Builder setTimeElapsed(double value) {
        
        timeElapsed_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional double time_elapsed = 2;</code>
       *
       * <pre>
       * See ServerStats for details.
       * </pre>
       */
      public Builder clearTimeElapsed() {
        
        timeElapsed_ = 0D;
        onChanged();
        return this;
      }

      private double timeUser_ ;
      /**
       * <code>optional double time_user = 3;</code>
       */
      public double getTimeUser() {
        return timeUser_;
      }
      /**
       * <code>optional double time_user = 3;</code>
       */
      public Builder setTimeUser(double value) {
        
        timeUser_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional double time_user = 3;</code>
       */
      public Builder clearTimeUser() {
        
        timeUser_ = 0D;
        onChanged();
        return this;
      }

      private double timeSystem_ ;
      /**
       * <code>optional double time_system = 4;</code>
       */
      public double getTimeSystem() {
        return timeSystem_;
      }
      /**
       * <code>optional double time_system = 4;</code>
       */
      public Builder setTimeSystem(double value) {
        
        timeSystem_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional double time_system = 4;</code>
       */
      public Builder clearTimeSystem() {
        
        timeSystem_ = 0D;
        onChanged();
        return this;
      }
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return this;
      }

      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return this;
      }


      // @@protoc_insertion_point(builder_scope:grpc.testing.ClientStats)
    }

    // @@protoc_insertion_point(class_scope:grpc.testing.ClientStats)
    private static final io.grpc.benchmarks.proto.Stats.ClientStats DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new io.grpc.benchmarks.proto.Stats.ClientStats();
    }

    public static io.grpc.benchmarks.proto.Stats.ClientStats getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<ClientStats>
        PARSER = new com.google.protobuf.AbstractParser<ClientStats>() {
      public ClientStats parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        try {
          return new ClientStats(input, extensionRegistry);
        } catch (RuntimeException e) {
          if (e.getCause() instanceof
              com.google.protobuf.InvalidProtocolBufferException) {
            throw (com.google.protobuf.InvalidProtocolBufferException)
                e.getCause();
          }
          throw e;
        }
      }
    };

    public static com.google.protobuf.Parser<ClientStats> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<ClientStats> getParserForType() {
      return PARSER;
    }

    public io.grpc.benchmarks.proto.Stats.ClientStats getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_grpc_testing_ServerStats_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_grpc_testing_ServerStats_fieldAccessorTable;
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_grpc_testing_HistogramParams_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_grpc_testing_HistogramParams_fieldAccessorTable;
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_grpc_testing_HistogramData_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_grpc_testing_HistogramData_fieldAccessorTable;
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_grpc_testing_ClientStats_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_grpc_testing_ClientStats_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n\013stats.proto\022\014grpc.testing\"K\n\013ServerSta" +
      "ts\022\024\n\014time_elapsed\030\001 \001(\001\022\021\n\ttime_user\030\002 " +
      "\001(\001\022\023\n\013time_system\030\003 \001(\001\";\n\017HistogramPar" +
      "ams\022\022\n\nresolution\030\001 \001(\001\022\024\n\014max_possible\030" +
      "\002 \001(\001\"w\n\rHistogramData\022\016\n\006bucket\030\001 \003(\r\022\020" +
      "\n\010min_seen\030\002 \001(\001\022\020\n\010max_seen\030\003 \001(\001\022\013\n\003su" +
      "m\030\004 \001(\001\022\026\n\016sum_of_squares\030\005 \001(\001\022\r\n\005count" +
      "\030\006 \001(\001\"{\n\013ClientStats\022.\n\tlatencies\030\001 \001(\013" +
      "2\033.grpc.testing.HistogramData\022\024\n\014time_el" +
      "apsed\030\002 \001(\001\022\021\n\ttime_user\030\003 \001(\001\022\023\n\013time_s",
      "ystem\030\004 \001(\001B!\n\030io.grpc.benchmarks.protoB" +
      "\005Statsb\006proto3"
    };
    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
        new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
          public com.google.protobuf.ExtensionRegistry assignDescriptors(
              com.google.protobuf.Descriptors.FileDescriptor root) {
            descriptor = root;
            return null;
          }
        };
    com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
        }, assigner);
    internal_static_grpc_testing_ServerStats_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_grpc_testing_ServerStats_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessage.FieldAccessorTable(
        internal_static_grpc_testing_ServerStats_descriptor,
        new java.lang.String[] { "TimeElapsed", "TimeUser", "TimeSystem", });
    internal_static_grpc_testing_HistogramParams_descriptor =
      getDescriptor().getMessageTypes().get(1);
    internal_static_grpc_testing_HistogramParams_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessage.FieldAccessorTable(
        internal_static_grpc_testing_HistogramParams_descriptor,
        new java.lang.String[] { "Resolution", "MaxPossible", });
    internal_static_grpc_testing_HistogramData_descriptor =
      getDescriptor().getMessageTypes().get(2);
    internal_static_grpc_testing_HistogramData_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessage.FieldAccessorTable(
        internal_static_grpc_testing_HistogramData_descriptor,
        new java.lang.String[] { "Bucket", "MinSeen", "MaxSeen", "Sum", "SumOfSquares", "Count", });
    internal_static_grpc_testing_ClientStats_descriptor =
      getDescriptor().getMessageTypes().get(3);
    internal_static_grpc_testing_ClientStats_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessage.FieldAccessorTable(
        internal_static_grpc_testing_ClientStats_descriptor,
        new java.lang.String[] { "Latencies", "TimeElapsed", "TimeUser", "TimeSystem", });
  }

  // @@protoc_insertion_point(outer_class_scope)
}
