All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.navercorp.pinpoint.grpc.trace.PEachUriStat Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: v1/Stat.proto

package com.navercorp.pinpoint.grpc.trace;

/**
 * Protobuf type {@code v1.PEachUriStat}
 */
public final class PEachUriStat extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:v1.PEachUriStat)
    PEachUriStatOrBuilder {
private static final long serialVersionUID = 0L;
  // Use PEachUriStat.newBuilder() to construct.
  private PEachUriStat(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private PEachUriStat() {
    uri_ = "";
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new PEachUriStat();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private PEachUriStat(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 10: {
            java.lang.String s = input.readStringRequireUtf8();

            uri_ = s;
            break;
          }
          case 18: {
            com.navercorp.pinpoint.grpc.trace.PUriHistogram.Builder subBuilder = null;
            if (totalHistogram_ != null) {
              subBuilder = totalHistogram_.toBuilder();
            }
            totalHistogram_ = input.readMessage(com.navercorp.pinpoint.grpc.trace.PUriHistogram.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(totalHistogram_);
              totalHistogram_ = subBuilder.buildPartial();
            }

            break;
          }
          case 26: {
            com.navercorp.pinpoint.grpc.trace.PUriHistogram.Builder subBuilder = null;
            if (failedHistogram_ != null) {
              subBuilder = failedHistogram_.toBuilder();
            }
            failedHistogram_ = input.readMessage(com.navercorp.pinpoint.grpc.trace.PUriHistogram.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(failedHistogram_);
              failedHistogram_ = subBuilder.buildPartial();
            }

            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.navercorp.pinpoint.grpc.trace.StatProto.internal_static_v1_PEachUriStat_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.navercorp.pinpoint.grpc.trace.StatProto.internal_static_v1_PEachUriStat_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.navercorp.pinpoint.grpc.trace.PEachUriStat.class, com.navercorp.pinpoint.grpc.trace.PEachUriStat.Builder.class);
  }

  public static final int URI_FIELD_NUMBER = 1;
  private volatile java.lang.Object uri_;
  /**
   * string uri = 1;
   * @return The uri.
   */
  @java.lang.Override
  public java.lang.String getUri() {
    java.lang.Object ref = uri_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      uri_ = s;
      return s;
    }
  }
  /**
   * string uri = 1;
   * @return The bytes for uri.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getUriBytes() {
    java.lang.Object ref = uri_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      uri_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TOTALHISTOGRAM_FIELD_NUMBER = 2;
  private com.navercorp.pinpoint.grpc.trace.PUriHistogram totalHistogram_;
  /**
   * .v1.PUriHistogram totalHistogram = 2;
   * @return Whether the totalHistogram field is set.
   */
  @java.lang.Override
  public boolean hasTotalHistogram() {
    return totalHistogram_ != null;
  }
  /**
   * .v1.PUriHistogram totalHistogram = 2;
   * @return The totalHistogram.
   */
  @java.lang.Override
  public com.navercorp.pinpoint.grpc.trace.PUriHistogram getTotalHistogram() {
    return totalHistogram_ == null ? com.navercorp.pinpoint.grpc.trace.PUriHistogram.getDefaultInstance() : totalHistogram_;
  }
  /**
   * .v1.PUriHistogram totalHistogram = 2;
   */
  @java.lang.Override
  public com.navercorp.pinpoint.grpc.trace.PUriHistogramOrBuilder getTotalHistogramOrBuilder() {
    return getTotalHistogram();
  }

  public static final int FAILEDHISTOGRAM_FIELD_NUMBER = 3;
  private com.navercorp.pinpoint.grpc.trace.PUriHistogram failedHistogram_;
  /**
   * .v1.PUriHistogram failedHistogram = 3;
   * @return Whether the failedHistogram field is set.
   */
  @java.lang.Override
  public boolean hasFailedHistogram() {
    return failedHistogram_ != null;
  }
  /**
   * .v1.PUriHistogram failedHistogram = 3;
   * @return The failedHistogram.
   */
  @java.lang.Override
  public com.navercorp.pinpoint.grpc.trace.PUriHistogram getFailedHistogram() {
    return failedHistogram_ == null ? com.navercorp.pinpoint.grpc.trace.PUriHistogram.getDefaultInstance() : failedHistogram_;
  }
  /**
   * .v1.PUriHistogram failedHistogram = 3;
   */
  @java.lang.Override
  public com.navercorp.pinpoint.grpc.trace.PUriHistogramOrBuilder getFailedHistogramOrBuilder() {
    return getFailedHistogram();
  }

  private byte memoizedIsInitialized = -1;
  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (!getUriBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_);
    }
    if (totalHistogram_ != null) {
      output.writeMessage(2, getTotalHistogram());
    }
    if (failedHistogram_ != null) {
      output.writeMessage(3, getFailedHistogram());
    }
    unknownFields.writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (!getUriBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_);
    }
    if (totalHistogram_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, getTotalHistogram());
    }
    if (failedHistogram_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, getFailedHistogram());
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof com.navercorp.pinpoint.grpc.trace.PEachUriStat)) {
      return super.equals(obj);
    }
    com.navercorp.pinpoint.grpc.trace.PEachUriStat other = (com.navercorp.pinpoint.grpc.trace.PEachUriStat) obj;

    if (!getUri()
        .equals(other.getUri())) return false;
    if (hasTotalHistogram() != other.hasTotalHistogram()) return false;
    if (hasTotalHistogram()) {
      if (!getTotalHistogram()
          .equals(other.getTotalHistogram())) return false;
    }
    if (hasFailedHistogram() != other.hasFailedHistogram()) return false;
    if (hasFailedHistogram()) {
      if (!getFailedHistogram()
          .equals(other.getFailedHistogram())) return false;
    }
    if (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + URI_FIELD_NUMBER;
    hash = (53 * hash) + getUri().hashCode();
    if (hasTotalHistogram()) {
      hash = (37 * hash) + TOTALHISTOGRAM_FIELD_NUMBER;
      hash = (53 * hash) + getTotalHistogram().hashCode();
    }
    if (hasFailedHistogram()) {
      hash = (37 * hash) + FAILEDHISTOGRAM_FIELD_NUMBER;
      hash = (53 * hash) + getFailedHistogram().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.navercorp.pinpoint.grpc.trace.PEachUriStat parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.navercorp.pinpoint.grpc.trace.PEachUriStat parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.navercorp.pinpoint.grpc.trace.PEachUriStat parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.navercorp.pinpoint.grpc.trace.PEachUriStat parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.navercorp.pinpoint.grpc.trace.PEachUriStat parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.navercorp.pinpoint.grpc.trace.PEachUriStat parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.navercorp.pinpoint.grpc.trace.PEachUriStat parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.navercorp.pinpoint.grpc.trace.PEachUriStat parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }
  public static com.navercorp.pinpoint.grpc.trace.PEachUriStat parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.navercorp.pinpoint.grpc.trace.PEachUriStat parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static com.navercorp.pinpoint.grpc.trace.PEachUriStat parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.navercorp.pinpoint.grpc.trace.PEachUriStat parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(com.navercorp.pinpoint.grpc.trace.PEachUriStat prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code v1.PEachUriStat}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:v1.PEachUriStat)
      com.navercorp.pinpoint.grpc.trace.PEachUriStatOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.navercorp.pinpoint.grpc.trace.StatProto.internal_static_v1_PEachUriStat_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.navercorp.pinpoint.grpc.trace.StatProto.internal_static_v1_PEachUriStat_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.navercorp.pinpoint.grpc.trace.PEachUriStat.class, com.navercorp.pinpoint.grpc.trace.PEachUriStat.Builder.class);
    }

    // Construct using com.navercorp.pinpoint.grpc.trace.PEachUriStat.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      uri_ = "";

      if (totalHistogramBuilder_ == null) {
        totalHistogram_ = null;
      } else {
        totalHistogram_ = null;
        totalHistogramBuilder_ = null;
      }
      if (failedHistogramBuilder_ == null) {
        failedHistogram_ = null;
      } else {
        failedHistogram_ = null;
        failedHistogramBuilder_ = null;
      }
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.navercorp.pinpoint.grpc.trace.StatProto.internal_static_v1_PEachUriStat_descriptor;
    }

    @java.lang.Override
    public com.navercorp.pinpoint.grpc.trace.PEachUriStat getDefaultInstanceForType() {
      return com.navercorp.pinpoint.grpc.trace.PEachUriStat.getDefaultInstance();
    }

    @java.lang.Override
    public com.navercorp.pinpoint.grpc.trace.PEachUriStat build() {
      com.navercorp.pinpoint.grpc.trace.PEachUriStat result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.navercorp.pinpoint.grpc.trace.PEachUriStat buildPartial() {
      com.navercorp.pinpoint.grpc.trace.PEachUriStat result = new com.navercorp.pinpoint.grpc.trace.PEachUriStat(this);
      result.uri_ = uri_;
      if (totalHistogramBuilder_ == null) {
        result.totalHistogram_ = totalHistogram_;
      } else {
        result.totalHistogram_ = totalHistogramBuilder_.build();
      }
      if (failedHistogramBuilder_ == null) {
        result.failedHistogram_ = failedHistogram_;
      } else {
        result.failedHistogram_ = failedHistogramBuilder_.build();
      }
      onBuilt();
      return result;
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }
    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.setField(field, value);
    }
    @java.lang.Override
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }
    @java.lang.Override
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }
    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }
    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }
    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.navercorp.pinpoint.grpc.trace.PEachUriStat) {
        return mergeFrom((com.navercorp.pinpoint.grpc.trace.PEachUriStat)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.navercorp.pinpoint.grpc.trace.PEachUriStat other) {
      if (other == com.navercorp.pinpoint.grpc.trace.PEachUriStat.getDefaultInstance()) return this;
      if (!other.getUri().isEmpty()) {
        uri_ = other.uri_;
        onChanged();
      }
      if (other.hasTotalHistogram()) {
        mergeTotalHistogram(other.getTotalHistogram());
      }
      if (other.hasFailedHistogram()) {
        mergeFailedHistogram(other.getFailedHistogram());
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      com.navercorp.pinpoint.grpc.trace.PEachUriStat parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.navercorp.pinpoint.grpc.trace.PEachUriStat) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private java.lang.Object uri_ = "";
    /**
     * string uri = 1;
     * @return The uri.
     */
    public java.lang.String getUri() {
      java.lang.Object ref = uri_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        uri_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string uri = 1;
     * @return The bytes for uri.
     */
    public com.google.protobuf.ByteString
        getUriBytes() {
      java.lang.Object ref = uri_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        uri_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string uri = 1;
     * @param value The uri to set.
     * @return This builder for chaining.
     */
    public Builder setUri(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      uri_ = value;
      onChanged();
      return this;
    }
    /**
     * string uri = 1;
     * @return This builder for chaining.
     */
    public Builder clearUri() {
      
      uri_ = getDefaultInstance().getUri();
      onChanged();
      return this;
    }
    /**
     * string uri = 1;
     * @param value The bytes for uri to set.
     * @return This builder for chaining.
     */
    public Builder setUriBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      uri_ = value;
      onChanged();
      return this;
    }

    private com.navercorp.pinpoint.grpc.trace.PUriHistogram totalHistogram_;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.navercorp.pinpoint.grpc.trace.PUriHistogram, com.navercorp.pinpoint.grpc.trace.PUriHistogram.Builder, com.navercorp.pinpoint.grpc.trace.PUriHistogramOrBuilder> totalHistogramBuilder_;
    /**
     * .v1.PUriHistogram totalHistogram = 2;
     * @return Whether the totalHistogram field is set.
     */
    public boolean hasTotalHistogram() {
      return totalHistogramBuilder_ != null || totalHistogram_ != null;
    }
    /**
     * .v1.PUriHistogram totalHistogram = 2;
     * @return The totalHistogram.
     */
    public com.navercorp.pinpoint.grpc.trace.PUriHistogram getTotalHistogram() {
      if (totalHistogramBuilder_ == null) {
        return totalHistogram_ == null ? com.navercorp.pinpoint.grpc.trace.PUriHistogram.getDefaultInstance() : totalHistogram_;
      } else {
        return totalHistogramBuilder_.getMessage();
      }
    }
    /**
     * .v1.PUriHistogram totalHistogram = 2;
     */
    public Builder setTotalHistogram(com.navercorp.pinpoint.grpc.trace.PUriHistogram value) {
      if (totalHistogramBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        totalHistogram_ = value;
        onChanged();
      } else {
        totalHistogramBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * .v1.PUriHistogram totalHistogram = 2;
     */
    public Builder setTotalHistogram(
        com.navercorp.pinpoint.grpc.trace.PUriHistogram.Builder builderForValue) {
      if (totalHistogramBuilder_ == null) {
        totalHistogram_ = builderForValue.build();
        onChanged();
      } else {
        totalHistogramBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * .v1.PUriHistogram totalHistogram = 2;
     */
    public Builder mergeTotalHistogram(com.navercorp.pinpoint.grpc.trace.PUriHistogram value) {
      if (totalHistogramBuilder_ == null) {
        if (totalHistogram_ != null) {
          totalHistogram_ =
            com.navercorp.pinpoint.grpc.trace.PUriHistogram.newBuilder(totalHistogram_).mergeFrom(value).buildPartial();
        } else {
          totalHistogram_ = value;
        }
        onChanged();
      } else {
        totalHistogramBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * .v1.PUriHistogram totalHistogram = 2;
     */
    public Builder clearTotalHistogram() {
      if (totalHistogramBuilder_ == null) {
        totalHistogram_ = null;
        onChanged();
      } else {
        totalHistogram_ = null;
        totalHistogramBuilder_ = null;
      }

      return this;
    }
    /**
     * .v1.PUriHistogram totalHistogram = 2;
     */
    public com.navercorp.pinpoint.grpc.trace.PUriHistogram.Builder getTotalHistogramBuilder() {
      
      onChanged();
      return getTotalHistogramFieldBuilder().getBuilder();
    }
    /**
     * .v1.PUriHistogram totalHistogram = 2;
     */
    public com.navercorp.pinpoint.grpc.trace.PUriHistogramOrBuilder getTotalHistogramOrBuilder() {
      if (totalHistogramBuilder_ != null) {
        return totalHistogramBuilder_.getMessageOrBuilder();
      } else {
        return totalHistogram_ == null ?
            com.navercorp.pinpoint.grpc.trace.PUriHistogram.getDefaultInstance() : totalHistogram_;
      }
    }
    /**
     * .v1.PUriHistogram totalHistogram = 2;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.navercorp.pinpoint.grpc.trace.PUriHistogram, com.navercorp.pinpoint.grpc.trace.PUriHistogram.Builder, com.navercorp.pinpoint.grpc.trace.PUriHistogramOrBuilder> 
        getTotalHistogramFieldBuilder() {
      if (totalHistogramBuilder_ == null) {
        totalHistogramBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.navercorp.pinpoint.grpc.trace.PUriHistogram, com.navercorp.pinpoint.grpc.trace.PUriHistogram.Builder, com.navercorp.pinpoint.grpc.trace.PUriHistogramOrBuilder>(
                getTotalHistogram(),
                getParentForChildren(),
                isClean());
        totalHistogram_ = null;
      }
      return totalHistogramBuilder_;
    }

    private com.navercorp.pinpoint.grpc.trace.PUriHistogram failedHistogram_;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.navercorp.pinpoint.grpc.trace.PUriHistogram, com.navercorp.pinpoint.grpc.trace.PUriHistogram.Builder, com.navercorp.pinpoint.grpc.trace.PUriHistogramOrBuilder> failedHistogramBuilder_;
    /**
     * .v1.PUriHistogram failedHistogram = 3;
     * @return Whether the failedHistogram field is set.
     */
    public boolean hasFailedHistogram() {
      return failedHistogramBuilder_ != null || failedHistogram_ != null;
    }
    /**
     * .v1.PUriHistogram failedHistogram = 3;
     * @return The failedHistogram.
     */
    public com.navercorp.pinpoint.grpc.trace.PUriHistogram getFailedHistogram() {
      if (failedHistogramBuilder_ == null) {
        return failedHistogram_ == null ? com.navercorp.pinpoint.grpc.trace.PUriHistogram.getDefaultInstance() : failedHistogram_;
      } else {
        return failedHistogramBuilder_.getMessage();
      }
    }
    /**
     * .v1.PUriHistogram failedHistogram = 3;
     */
    public Builder setFailedHistogram(com.navercorp.pinpoint.grpc.trace.PUriHistogram value) {
      if (failedHistogramBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        failedHistogram_ = value;
        onChanged();
      } else {
        failedHistogramBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * .v1.PUriHistogram failedHistogram = 3;
     */
    public Builder setFailedHistogram(
        com.navercorp.pinpoint.grpc.trace.PUriHistogram.Builder builderForValue) {
      if (failedHistogramBuilder_ == null) {
        failedHistogram_ = builderForValue.build();
        onChanged();
      } else {
        failedHistogramBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * .v1.PUriHistogram failedHistogram = 3;
     */
    public Builder mergeFailedHistogram(com.navercorp.pinpoint.grpc.trace.PUriHistogram value) {
      if (failedHistogramBuilder_ == null) {
        if (failedHistogram_ != null) {
          failedHistogram_ =
            com.navercorp.pinpoint.grpc.trace.PUriHistogram.newBuilder(failedHistogram_).mergeFrom(value).buildPartial();
        } else {
          failedHistogram_ = value;
        }
        onChanged();
      } else {
        failedHistogramBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * .v1.PUriHistogram failedHistogram = 3;
     */
    public Builder clearFailedHistogram() {
      if (failedHistogramBuilder_ == null) {
        failedHistogram_ = null;
        onChanged();
      } else {
        failedHistogram_ = null;
        failedHistogramBuilder_ = null;
      }

      return this;
    }
    /**
     * .v1.PUriHistogram failedHistogram = 3;
     */
    public com.navercorp.pinpoint.grpc.trace.PUriHistogram.Builder getFailedHistogramBuilder() {
      
      onChanged();
      return getFailedHistogramFieldBuilder().getBuilder();
    }
    /**
     * .v1.PUriHistogram failedHistogram = 3;
     */
    public com.navercorp.pinpoint.grpc.trace.PUriHistogramOrBuilder getFailedHistogramOrBuilder() {
      if (failedHistogramBuilder_ != null) {
        return failedHistogramBuilder_.getMessageOrBuilder();
      } else {
        return failedHistogram_ == null ?
            com.navercorp.pinpoint.grpc.trace.PUriHistogram.getDefaultInstance() : failedHistogram_;
      }
    }
    /**
     * .v1.PUriHistogram failedHistogram = 3;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.navercorp.pinpoint.grpc.trace.PUriHistogram, com.navercorp.pinpoint.grpc.trace.PUriHistogram.Builder, com.navercorp.pinpoint.grpc.trace.PUriHistogramOrBuilder> 
        getFailedHistogramFieldBuilder() {
      if (failedHistogramBuilder_ == null) {
        failedHistogramBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.navercorp.pinpoint.grpc.trace.PUriHistogram, com.navercorp.pinpoint.grpc.trace.PUriHistogram.Builder, com.navercorp.pinpoint.grpc.trace.PUriHistogramOrBuilder>(
                getFailedHistogram(),
                getParentForChildren(),
                isClean());
        failedHistogram_ = null;
      }
      return failedHistogramBuilder_;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


    // @@protoc_insertion_point(builder_scope:v1.PEachUriStat)
  }

  // @@protoc_insertion_point(class_scope:v1.PEachUriStat)
  private static final com.navercorp.pinpoint.grpc.trace.PEachUriStat DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.navercorp.pinpoint.grpc.trace.PEachUriStat();
  }

  public static com.navercorp.pinpoint.grpc.trace.PEachUriStat getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public PEachUriStat parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new PEachUriStat(input, extensionRegistry);
    }
  };

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

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

  @java.lang.Override
  public com.navercorp.pinpoint.grpc.trace.PEachUriStat getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy